careadlinkat: Use 'restrict'.
[gnulib.git] / ChangeLog
blobfc7190c20db982d3d29ed6e797098fdec0f712db
1 2020-02-23  Bruno Haible  <bruno@clisp.org>
3         careadlinkat: Use 'restrict'.
4         * lib/careadlinkat.h (careadlinkat): Use 'restrict'.
5         * modules/careadlinkat (configure.ac): Require AC_C_RESTRICT.
6         * modules/relocatable-prog-wrapper (configure.ac): Likewise.
8         regex-quote: Use 'restrict'.
9         * lib/regex-quote.h (regex_quote_copy): Use 'restrict'.
10         * modules/regex-quote (configure.ac): Require AC_C_RESTRICT.
12         system-quote: Use 'restrict'.
13         * lib/system-quote.h (system_quote_copy): Use 'restrict'.
14         * modules/system-quote (configure.ac): Require AC_C_RESTRICT.
16         sh-quote: Use 'restrict'.
17         * lib/sh-quote.h (shell_quote_copy): Use 'restrict'.
18         * modules/sh-quote (configure.ac): Require AC_C_RESTRICT.
20         quotearg: Use 'restrict'.
21         * lib/quotearg.h (quotearg_buffer): Use 'restrict'.
22         * m4/quotearg.m4 (gl_QUOTEARG): Require AC_C_RESTRICT.
24         parse-datetime: Use 'restrict'.
25         * lib/parse-datetime.h (parse_datetime, parse_datetime2): Use
26         'restrict'.
27         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Require AC_C_RESTRICT.
29         nstrftime: Use 'restrict'.
30         * lib/strftime.h (nstrftime): Use 'restrict'.
31         * m4/nstrftime.m4 (gl_FUNC_GNU_STRFTIME): Require AC_C_RESTRICT.
33         mbstok_r: Use 'restrict'.
34         * lib/string.in.h (mbstok_r): Use 'restrict'.
36         xmemcoll: Use 'restrict'.
37         * lib/xmemcoll.h (xmemcoll): Use 'restrict'.
38         * modules/xmemcoll (configure.ac): Require AC_C_RESTRICT.
40         memcoll: Use 'restrict'.
41         * lib/memcoll.h (memcoll): Use 'restrict'.
42         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_C_RESTRICT.
44         vasnprintf: Use 'restrict'.
45         * lib/vasnprintf.h (asnprintf, vasnprintf): Use 'restrict'.
46         * modules/vasnprintf (configure.ac): Require AC_C_RESTRICT.
48         c-vasnprintf: Use 'restrict'.
49         * lib/c-vasnprintf.h (c_vasnprintf): Use 'restrict'.
50         * modules/c-vasnprintf (configure.ac): Require AC_C_RESTRICT.
52         c-vsnprintf: Use 'restrict'.
53         * lib/c-vsnprintf.h (c_vsnprintf): Use 'restrict'.
54         * modules/c-vsnprintf (configure.ac): Require AC_C_RESTRICT.
56         c-snprintf: Use 'restrict'.
57         * lib/c-snprintf.h (c_snprintf): Use 'restrict'.
58         * modules/c-snprintf (configure.ac): Require AC_C_RESTRICT.
60         astrxfrm: Use 'restrict'.
61         * lib/astrxfrm.h (astrxfrm): Use 'restrict'.
62         * modules/astrxfrm (configure.ac): Require AC_C_RESTRICT.
64         amemxfrm: Use 'restrict'.
65         * lib/amemxfrm.h (amemxfrm): Use 'restrict'.
66         * modules/amemxfrm (configure.ac): Require AC_C_RESTRICT.
68 2020-02-22  Paul Eggert  <eggert@cs.ucla.edu>
70         fchmodat, lchmod: simplify
71         It appears that we may have overengineered lchmod and fchmodat,
72         in that the code was prepared for some hypothetical platforms but
73         was so complicated that it was hard to understand.  I attempted to
74         improve the situation by simplifying the code when this
75         simplification should not hurt on real platforms; we can re-add
76         complexity later to port to platforms I didn’t know about.
77         * lib/fchmodat.c (fchmodat):
78         * lib/lchmod.c (lchmod):
79         Put the ‘defined __linux__ || defined __ANDROID__’ #ifdef only
80         around the /proc code that needs it.
81         * lib/fchmodat.c (fchmodat): Coalese calls to orig_fchmodat.
82         * lib/lchmod.c (__need_system_sys_stat_h): Omit; no longer needed.
83         Do not include <config.h> twice.
84         (orig_lchmod) [HAVE_LCHMOD]: Remove, since we need not wrap
85         lchmod on any known hosts.
86         (lchmod): Do not defer to fchmodat, so that the lchmod module
87         need not depend on the fchmodat module (which is a circular
88         dependency).  Do not use openat, since ‘open’ suffices.
89         Coalesce calls to lchmod/chmod.
90         * lib/lchmod.c, lib/sys_stat.in.h (lchmod):
91         * m4/sys_stat_h.m4 (REPLACE_FSTAT):
92         * modules/lchmod (Depends-on, configure.ac):
93         * modules/sys_stat (Depends-on):
94         Do not worry about replacing lchmod, since that shouldn’t happen.
95         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Do not check for fchmodat.
96         Do not worry about whether lchmod works on non-symlinks,
97         since every known lchmod works on non-symlinks.
98         * modules/lchmod (Depends-on):
99         Remove circular dependency on fchmodat.
101 2020-02-22  Bruno Haible  <bruno@clisp.org>
103         lchmod: Fix link error on Solaris 10 (regression from 2020-02-16).
104         * lib/lchmod.c (lchmod): Use the code with lstat and chmod also when
105         NEED_LCHMOD_NONSYMLINK_FIX is not defined.
107 2020-02-22  Bruno Haible  <bruno@clisp.org>
109         Use 'restrict' in all POSIX function declarations.
110         * lib/iconv.in.h (iconv): Use 'restrict'.
111         * lib/inttypes.in.h (strtoimax, strtoumax): Likewise.
112         * lib/monetary.in.h (strfmon_l): Likewise.
113         * lib/pthread.in.h (pthread_create, pthread_mutex_init,
114         pthread_mutexattr_gettype, pthread_mutexattr_getrobust,
115         pthread_mutex_timedlock, pthread_rwlock_init,
116         pthread_rwlock_timedrdlock, pthread_rwlock_timedwrlock,
117         pthread_cond_init, pthread_cond_wait, pthread_cond_timedwait): Likewise.
118         * lib/search.in.h (tdelete): Likewise.
119         * lib/signal.in.h (pthread_sigmask, sigprocmask): Likewise.
120         * lib/stdio.in.h (dprintf, fgets, fopen, fprintf, fputs, fread, freopen,
121         fscanf, fwrite, getdelim, getline, printf, scanf, snprintf, sprintf,
122         vdprintf, vfprintf, vfscanf, vprintf, vscanf, vsnprintf, vsprintf):
123         Likewise.
124         * lib/stdlib.in.h (mbtowc, realpath, strtod, strtold, strtoll,
125         strtoull): Likewise.
126         * lib/string.in.h (strncat): Likewise.
127         * lib/sys_socket.in.h (accept, getpeername, getsockname, getsockopt,
128         recvfrom): Likewise.
129         * lib/sys_stat.in.h (fstatat, lstat, stat): Likewise.
130         * lib/time.in.h (strftime): Likewise.
131         * lib/unistd.in.h (readlink, readlinkat): Likewise.
132         * lib/wchar.in.h (mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs, wcrtomb,
133         wcsrtombs, wcsnrtombs, wmemcpy, wcscpy, wcpcpy, wcsncpy, wcpncpy,
134         wcscat, wcsncat, wcsxfrm, wcsstr, wcstok, wcsftime): Likewise.
135         * m4/iconv_h.m4 (gl_ICONV_H): Require AC_C_RESTRICT.
136         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Likewise.
137         * m4/monetary_h.m4 (gl_MONETARY_H): Likewise.
138         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
139         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
140         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
141         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
142         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
143         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
144         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
145         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
146         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Make consistent with the
147         other *_h.m4 files.
148         * m4/time_h.m4 (gl_HEADER_TIME_H): Likewise.
150 2020-02-22  Bruno Haible  <bruno@clisp.org>
152         Update NEWS.
153         * NEWS: Mention the last change.
155 2020-02-22  Paul Eggert  <eggert@cs.ucla.edu>
157         chmodat, chownat: new modules
158         These are split from fchmodat, fchownat.  GNU Emacs needs the
159         POSIX-specified fchmodat, but not the gnulib-specified chmodat and
160         lchmodat.  Split the latter two into a new module chmodat.
161         Similarly for fchownat.  This the same basic idea for why statat
162         was split from fstatat on 2013-01-23.
163         * lib/chmodat.c, lib/openat.h (CHMODAT_INLINE):
164         Rename from FCHMODAT_INLINE.  All uses changed.
165         * lib/chownat.c, lib/openat.h (CHOWNAT_INLINE):
166         Rename from FCHOWNAT_INLINE.  All uses changed.
167         * lib/openat.h:
168         (chownat, lchownat): Define if GNULIB_CHOWNAT, not GNULIB_FCHOWNAT.
169         (chmodat, lchmodat): Define if GNULIB_CHMODAT, not GNULIB_FCHMODAT.
170         * modules/chmodat, modules/chownat, tests/test-chownat.c: New files.
171         * modules/fchmodat (Files:): Remove lib/fchmodat.c.
172         (configure.ac): Remove fchmodat module indicator.
173         (Makefile.am): Omit chmodat.c.
174         (Maintainer): Add self.
175         * modules/fchownat: Similarly, but for chown.
176         * tests/test-fchownat.c (BASE): Don't define if already defined.
177         (do_chown, do_lchown) [!TEST_CHOWNAT]: Test fchownat instead.
179 2020-02-22  Bruno Haible  <bruno@clisp.org>
181         users.txt: Add groff.
182         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is>.
183         * users.txt: Add groff.
185 2020-02-22  Bruno Haible  <bruno@clisp.org>
187         gnulib-tool: Ensure copied files are writable.
188         Reported by Benno Fünfstück <benno.fuenfstueck@gmail.com> in
189         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00101.html>.
190         * gnulib-tool (func_ensure_writable): New function.
191         (func_ln_s, func_hardlink, func_lookup_file, func_import,
192         func_create_testdir, copy-file): Invoke it after copying a file.
194 2020-02-22  Bruno Haible  <bruno@clisp.org>
196         users.txt: Update.
197         * users.txt: Update URLs to projects that have moved or switched to git.
198         Use canonical host names. Prefer gitweb over cgit. Prefer the tree view
199         over the summary view. Add gawk.
201 2020-02-21  Paul Eggert  <eggert@cs.ucla.edu>
203         largefile: remove _DARWIN_USE_64_BIT_INODE
204         It’s not needed in currently-supported macOS versions, and was
205         problematic anyway in MacOS X 10.5 which was the only version that
206         could use it.  Problem reported by Peter Eisentraut in:
207         https://lists.gnu.org/r/bug-autoconf/2020-02/msg00004.html
208         * m4/largefile.m4 (AC_SYS_LARGEFILE):
209         Don’t define _DARWIN_USE_64_BIT_INODE.
210         This syncs with Autoconf master.
212         Add ‘extern "C"’ to count-one-bits.h etc.
213         This ports these .h files to C++.
214         Problem reported by Simon Marchi in:
215         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00110.html
216         * lib/count-leading-zeros.h, lib/count-one-bits.h:
217         * lib/count-trailing-zeros.h: Add ‘extern "C"’.
219 2020-02-19  Bruno Haible  <bruno@clisp.org>
221         uninorm/decompose-internal: Avoid "no previous prototype" warning.
222         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
223         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00105.html>.
224         * lib/array-mergesort.h: Accept an optional macro definition
225         STATIC_FROMTO.
226         * lib/uninorm/decompose-internal.c (STATIC_FROMTO): New macro.
228 2020-02-16  Bruno Haible  <bruno@clisp.org>
230         fchmodat: Make more future-proof.
231         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Define
232         NEED_FCHMODAT_NONSYMLINK_FIX.
233         (gl_PREREQ_FCHMODAT): New macro.
234         * lib/fchmodat.c (fchmodat): Test NEED_FCHMODAT_NONSYMLINK_FIX. Access
235         /proc only on Linux. Return EOPNOTSUPP only on Linux and on platforms
236         without lchmod function.
237         * modules/fchmodat (configure.ac): Invoke gl_PREREQ_FCHMODAT.
239 2020-02-16  Bruno Haible  <bruno@clisp.org>
241         lchmod: Make more future-proof.
242         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Define NEED_LCHMOD_NONSYMLINK_FIX.
243         (gl_PREREQ_LCHMOD): New macro.
244         * lib/lchmod.c (orig_lchmod): New function.
245         (lchmod): Test NEED_LCHMOD_NONSYMLINK_FIX. Access /proc only on Linux.
246         Return EOPNOTSUPP only on Linux and on platforms without lchmod
247         function.
248         * modules/lchmod (configure.ac): Invoke gl_PREREQ_LCHMOD.
250         lchmod: Fix buggy override on macOS, HP-UX (regression from 2020-02-08).
251         * modules/lchmod (Makefile.am): Don't add lchmod.c to lib_SOURCES.
253 2020-02-16  Paul Eggert  <eggert@cs.ucla.edu>
255         xnanosleep: prefer pause, and get remaining time
256         Problem reported by Vladimir Panteleev in:
257         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00052.html
258         * lib/xnanosleep.c: Include intprops.h, unistd.h.
259         (xnanosleep) [HAVE_PAUSE]: Prefer pause when sleeping infinitely.
260         (xnanosleep): Obtain remaining time when nanosleep is interrupted.
261         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Check for 'pause'.
262         * modules/xnanosleep (Depends-on): Add intprops, unistd.
264 2020-02-16  Bruno Haible  <bruno@clisp.org>
266         lchmod: Improve cross-compilation guess.
267         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require AC_CANONICAL_HOST. When
268         cross-compiling, guess depending on the platform.
270 2020-02-16  Bruno Haible  <bruno@clisp.org>
272         fstrcmp: Add API to clean up resources.
273         Reported by Akim Demaille <akim@lrde.epita.fr> in
274         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00080.html>.
275         * lib/fstrcmp.h (fstrcmp_free_resources): New declaration.
276         * lib/fstrcmp.c (fstrcmp_free_resources): New function.
278 2020-02-14  Bruno Haible  <bruno@clisp.org>
280         wctype-h: Fix compilation errors in C++ (regression from 2020-01-25).
281         Reported by Christian Biesinger in
282         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00064.html>.
283         * lib/wctype.in.h (iswdigit, iswxdigit): Don't declare if the
284         corresponding module is not enabled.
285         * tests/test-wctype-h-c++.cc (iswdigit, iswxdigit): Don't check the
286         prototype if the corresponding module is not enabled.
288 2020-02-13  Paul Eggert  <eggert@cs.ucla.edu>
290         fchmodat, lchmod: port to buggy Linux filesystems
291         Problem reported by Florian Weimer in:
292         https://www.sourceware.org/ml/libc-alpha/2020-02/msg00534.html
293         * lib/fchmodat.c (fchmodat):
294         * lib/lchmod.c (lchmod):
295         Don’t assume that chmod on the O_PATH-opened fd will do
296         the right thing on a symbolic link.
297         * lib/fchmodat.c (fchmodat):
298         Don’t attempt to special-case
299         any flag value other than AT_SYMLINK_NOFOLLOW.
301 2020-02-11  Paul Eggert  <eggert@cs.ucla.edu>
303         lchmod: pacify Coverity CID 1491216
304         * lib/lchmod.c (lchmod): Redo #if nesting so that Coverity does
305         not complain about unreachable code at the ‘struct stat st;’
306         declaration.
308 2020-02-10  Bruno Haible  <bruno@clisp.org>
310         copysignf: Fix link error on HP-UX with cc.
311         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Require AC_CANONICAL_HOST. On
312         HP-UX, set COPYSIGNF_LIBM to -lm.
314 2020-02-10  Bruno Haible  <bruno@clisp.org>
316         pthread-mutex-tests, pthread-rwlock-tests: Fix link errors on HP-UX.
317         * modules/pthread-mutex-tests (Makefile.am): Link test-pthread-mutex
318         with $(LIB_SEMAPHORE).
319         * modules/pthread-rwlock-tests (Makefile.am): Link test-pthread-rwlock
320         with $(LIB_SEMAPHORE).
322 2020-02-10  Bruno Haible  <bruno@clisp.org>
324         ptsname_r-tests: Avoid unused function warning.
325         * tests/test-ptsname_r.c: Don't include null-ptr.h if we don't need it.
327 2020-02-08  Bruno Haible  <bruno@clisp.org>
329         lchmod: Add tests.
330         * tests/test-lchmod.c: New file.
331         * modules/lchmod-tests: New file.
333 2020-02-08  Bruno Haible  <bruno@clisp.org>
335         lchmod: Ensure declaration on HP-UX.
336         * lib/sys_stat.in.h (lchown): Declare also on HP-UX.
337         * doc/glibc-functions/lchmod.texi: Mention the HP-UX problem.
339 2020-02-08  Bruno Haible  <bruno@clisp.org>
341         fchmodat: Strengthen tests.
342         * tests/test-fchmodat.c (BASE): New macro.
343         (main): Use it, to avoid conflicts with other unit tests. Verify that
344         fchmodat changed the file permission bits.
346 2020-02-08  Bruno Haible  <bruno@clisp.org>
348         fchmodat: Fix endless recursion on Cygwin (regression from 2020-02-07).
349         * lib/fchmodat.c (orig_fchmodat): Move definition to immediately after
350         '#undef __need_system_sys_stat_h'.
352 2020-02-08  Bruno Haible  <bruno@clisp.org>
354         fchmodat: Improve cross-compilation guesses.
355         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Require AC_CANONICAL_HOST. When
356         cross-compiling, guess depending on the platform.
357         * doc/posix-functions/fchmodat.texi: Clarify.
359 2020-02-08  Bruno Haible  <bruno@clisp.org>
361         Fix compilation errors in a testdir created with --with-c++-tests.
362         * lib/c++defs.h (_GL_CXXALIASWARN1_2): Do not use __typeof__ (func),
363         since it does not work any more with g++ >= 4.4.
365 2020-02-08  Bruno Haible  <bruno@clisp.org>
367         doc: Update for glibc 2.31.
368         * doc/glibc-functions/pthread_clockjoin_np.texi: New file.
369         * doc/gnulib.texi: Include it.
370         * doc/pastposix-functions/h_errno.texi: Update.
371         * doc/posix-functions/*.texi: Likewise.
373 2020-02-08  Kenneth D'souza  <kdsouza@redhat.com>
375         mountlist: consider smb3 file systems as remote
376         * lib/mountlist.c (ME_REMOTE): Recognize file systems of type
377         "smb3" as remote.
379 2020-02-07  Paul Eggert  <eggert@cs.ucla.edu>
381         fchmodat: AT_SYMLINK_NOFOLLOW fix for non-symlinks
382         Fix lchmod, and fchmodat with AT_SYMLINK_NOFOLLOW, so that
383         they act like chmod on non-symlinks.
384         * NEWS:
385         * doc/glibc-functions/lchmod.texi (lchmod):
386         * doc/posix-functions/fchmodat.texi (fchmodat):
387         Mention this.
388         * lib/fchmodat.c: Define __need_system_sys_stat_h before including
389         config.h, and undef it after including sys/stat.h the first time.
390         Include fcntl.h, stdio.h, unistd.h, intprops.h, and include
391         sys/stat.h a second time after defining orig_fchmodat.
392         (orig_fchmodat) [HAVE_FCHMODAT]: New function.
393         (fchmodat) [HAVE_FCHMODAT]: Work around the AT_SYMLINK_NOFOLLOW bug.
394         * lib/lchmod.c: New file.
395         * lib/sys_stat.in.h (fchmodat, lchmod):
396         Support replacing these functions.
397         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): If fchmodat exists,
398         test that AT_SYMLINK_NOFOLLOW works on non-symlinks.
399         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Check for lstat.
400         Test that lchmod works on non-symlinks.
401         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS):
402         Default REPLACE_FCHMODAT and REPLACE_LCHMOD to 0.
403         * modules/fchmodat (Depends-on): Add fstatat, intprops, lchmod, unistd.
404         (Depends-on, configure.ac): Check REPLACE_FCHMODAT too.
405         * modules/lchmod (Files): Add lib/lchmod.c.
406         (Depends-on): Add errno, fcntl-h, fchmodat, intprops, lstat, unistd.
407         (configure.ac): Compile lchmod.c if needed.
408         (lib_SOURCES): Add lchmod.c.
409         * modules/sys_stat (sys/stat.h): Substitute REPLACE_FCHMODAT
410         and REPLACE_LCHMOD.
411         * tests/test-fchmodat.c: Include fcntl.h, sys/stat.h.
412         (main): Test fchmodat with AT_SYMLINK_NOFOLLOW on non-symlinks.
414 2020-02-05  Marc Dionne  <marc.dionne@auristor.com>  (tiny change)
416         mountlist: Consider AFS filesystems as remote
417         df --local relies on the ME_REMOTE macro to determine if a given
418         mount entry should be considered "local".  There is special logic
419         for nfs and smb/cifs mounts, but /afs as mounted by OpenAFS, the
420         kernel's kafs module or AuriStorFS is treated as a local mount.
421         * lib/mountlist.c (ME_REMOTE): Treat mounts of type 'afs'
422         (OpenAFS, kernel kafs) and 'auristorfs' (AuriStorFS) as remote.
424 2020-02-04  Paul Eggert  <eggert@cs.ucla.edu>
426         Port _Noreturn to older Clang
427         Problem reported by Jeffery Walton in:
428         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00013.html
429         * lib/_Noreturn.h (_Noreturn):
430         * m4/gnulib-common.m4 (gl_COMMON_BODY):
431         Assume _Noreturn works in Clang 3.5 and later.
432         It is documented to work in Clang 3.5:
433         http://releases.llvm.org/3.5.0/tools/clang/docs/AttributeReference.html
434         and is not documented in Clang 3.4:
435         https://releases.llvm.org/3.4/tools/clang/docs/LanguageExtensions.html
436         Apple sets __clang_version__ to a different value, so use
437         __apple_build_version__ there.  See:
438         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00017.html
440 2020-02-04  Pádraig Brady  <P@draigBrady.com>
442         test-canonicalize: avoid unused function warning
443         * tests/test-canonicalize.c: Protect the inclusion of null-ptr.h
444         with the same guard as that used to protect usage of the null_ptr
445         function, so that one doesn't get a -Wunused warning.
446         * tests/test-canonicalize-lgpl.c: Likewise.
448 2020-02-03  Paul Eggert  <eggert@cs.ucla.edu>
450         libc-config: port to Apple’s Clang variant
451         * lib/libc-config.h (__glibc_clang_prereq):
452         Port to Apple’s Clang variant, which uses a different
453         numbering scheme for __clang_major__.
455 2020-02-02  Bruno Haible  <bruno@clisp.org>
457         Document the new modules list-c++, set-c++, oset-c++, map-c++, omap-c++.
458         * doc/containers.texi: Document these new modules.
460 2020-02-02  Bruno Haible  <bruno@clisp.org>
462         omap-c++: Add tests.
463         * tests/test-omap-c++.cc: New file.
464         * modules/omap-c++-tests: New file.
466         omap-c++: New module.
467         * lib/gl_omap.hh: New file, based on lib/gl_omap.h.
468         * modules/omap-c++: New file.
470 2020-02-02  Bruno Haible  <bruno@clisp.org>
472         map-c++: Add tests.
473         * tests/test-map-c++.cc: New file.
474         * modules/map-c++-tests: New file.
476         map-c++: New module.
477         * lib/gl_map.hh: New file, based on lib/gl_map.h.
478         * modules/map-c++: New file.
480 2020-02-02  Bruno Haible  <bruno@clisp.org>
482         oset-c++: Add tests.
483         * tests/test-oset-c++.cc: New file.
484         * modules/oset-c++-tests: New file.
486         oset-c++: New module.
487         * lib/gl_oset.hh: New file, based on lib/gl_oset.h.
488         * modules/oset-c++: New file.
490 2020-02-02  Bruno Haible  <bruno@clisp.org>
492         set-c++: Add tests.
493         * tests/test-set-c++.cc: New file.
494         * modules/set-c++-tests: New file.
496         set-c++: New module.
497         * lib/gl_set.hh: New file, based on lib/gl_set.h.
498         * modules/set-c++: New file.
500 2020-02-02  Bruno Haible  <bruno@clisp.org>
502         list-c++: Add tests.
503         * tests/test-list-c++.cc: New file.
504         * modules/list-c++-tests: New file.
506         list-c++: New module.
507         * lib/gl_list.hh: New file, based on lib/gl_list.h.
508         * modules/list-c++: New file.
510 2020-02-02  Bruno Haible  <bruno@clisp.org>
512         xalloc: Fix compilation error in C++ mode on FreeBSD 12.
513         * lib/xalloc.h (xalloc_die): Comment out 'extern' keyword before
514         '_Noreturn'.
515         * lib/sigpipe-die.h (sigpipe_die): Likewise.
517 2020-02-02  Pádraig Brady  <P@draigBrady.com>
519         read-file: reduce max size from SIZE_MAX to PTRDIFF_MAX
520         On x86_64 with glibc-2.30, gcc 9.2 is giving:
521           error: argument 2 value '18446744073709551615'
522           exceeds maximum object size 9223372036854775807
523           [-Werror=alloc-size-larger-than=]
524         The details of this restriction are discussed at:
525         https://stackoverflow.com/q/42574890/4421
526         * lib/read-file.c: s/SIZE_MAX/PTRDIFF_MAX/
528 2020-02-02  Pádraig Brady  <P@draigBrady.com>
530         sysctl.h: avoid including on glibc
531         * lib/nproc.c: Avoid including deprecated and unneeded header on GLIBC.
532         * lib/physmem.c: Likewise.
534 2020-02-02  Bruno Haible  <bruno@clisp.org>
536         list, set, oset, map, omap: Avoid imperative voice in documentation.
537         * lib/gl_list.h: Use descriptive sentences instead of imperative voice
538         in the specification of functions.
539         * lib/gl_set.h: Likewise.
540         * lib/gl_oset.h: Likewise.
541         * lib/gl_map.h: Likewise.
542         * lib/gl_omap.h: Likewise.
543         * lib/gl_*.h: Likewise.
545 2020-02-01  Bruno Haible  <bruno@clisp.org>
547         ansi-c++-opt: Set CXXFLAGS to "-g -O2" by default.
548         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Determine CXXFLAGS like AC_PROG_CXX
549         does.
551 2020-01-29  Bruno Haible  <bruno@clisp.org>
553         array-map, hash-map, linkedhash-map: Fix module description.
554         * modules/array-map (Description): Fix description.
555         * modules/hash-map (Description): Likewise.
556         * modules/linkedhash-map (Description): Likewise.
558 2020-01-29  Paul Eggert  <eggert@cs.ucla.edu>
560         dfa: do not depend on isblank
561         This removes a difference between Gawk dfa.c and Gnulib dfa.c.
562         * lib/dfa.c (isblank): Define if neither system nor Gnulib does.
563         * modules/dfa (Depends-on): Remove isblank.
564         * modules/isblank: Add a module indicator, for lib/dfa.c.
566         dfa: do not assume 64-bit int
567         Problem reported for VAX/VMS C (!) by Arnold Robbins in:
568         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00173.html
569         * lib/dfa.c (CHARCLASS_PAIR): Bring back this macro.
570         (CHARCLASS_WORD_BITS, charclass_word) [!UINT_LEAST64_MAX]:
571         Fall back to 32-bit words.
572         (CHARCLASS_INIT): Go back to having 8 32-bit args instead
573         of 4 64-bit args.  All uses changed.
575 2020-01-27  Paul Eggert  <eggert@cs.ucla.edu>
577         regex: remove limits-h dependency
578         * modules/regex (Depends-on): Remove limits-h, since the
579         code no longer depends on ULONG_WIDTH already being defined.
581         regex: port to non-GCC pre-IEC-60559
582         Problem reported by Arnold Robbins in:
583         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00154.html
584         * lib/regex_internal.h (ULONG_WIDTH): Make this usable in #if.
586 2020-01-25  Bruno Haible  <bruno@clisp.org>
588         c32isxdigit: Add tests.
589         * tests/test-c32isxdigit.c: New file, based on tests/test-iswxdigit.c.
590         * tests/test-c32isxdigit.sh: New file.
591         * modules/c32isxdigit-tests: New file.
593         c32isxdigit: New module.
594         * lib/c32isxdigit.c: New file.
595         * modules/c32isxdigit: New file.
596         * doc/posix-functions/iswxdigit.texi: Mention the new module.
598 2020-01-25  Bruno Haible  <bruno@clisp.org>
600         c32isupper: Add tests.
601         * tests/test-c32isupper.c: New file.
602         * tests/test-c32isupper.sh: New file.
603         * modules/c32isupper-tests: New file.
605         c32isupper: New module.
606         * lib/c32isupper.c: New file.
607         * modules/c32isupper: New file.
608         * doc/posix-functions/iswupper.texi: Mention the new module.
610 2020-01-25  Bruno Haible  <bruno@clisp.org>
612         c32isspace: Add tests.
613         * tests/test-c32isspace.c: New file.
614         * tests/test-c32isspace.sh: New file.
615         * modules/c32isspace-tests: New file.
617         c32isspace: New module.
618         * lib/c32isspace.c: New file.
619         * modules/c32isspace: New file.
620         * doc/posix-functions/iswspace.texi: Mention the new module.
622 2020-01-25  Bruno Haible  <bruno@clisp.org>
624         c32ispunct: Add tests.
625         * tests/test-c32ispunct.c: New file.
626         * tests/test-c32ispunct.sh: New file.
627         * modules/c32ispunct-tests: New file.
629         c32ispunct: New module.
630         * lib/c32ispunct.c: New file.
631         * modules/c32ispunct: New file.
632         * doc/posix-functions/iswpunct.texi: Mention the new module.
634 2020-01-25  Bruno Haible  <bruno@clisp.org>
636         c32isprint: Add tests.
637         * tests/test-c32isprint.c: New file.
638         * tests/test-c32isprint.sh: New file.
639         * modules/c32isprint-tests: New file.
641         c32isprint: New module.
642         * lib/c32isprint.c: New file.
643         * modules/c32isprint: New file.
644         * doc/posix-functions/iswprint.texi: Mention the new module.
646 2020-01-25  Bruno Haible  <bruno@clisp.org>
648         c32islower: Add tests.
649         * tests/test-c32islower.c: New file.
650         * tests/test-c32islower.sh: New file.
651         * modules/c32islower-tests: New file.
653         c32islower: New module.
654         * lib/c32islower.c: New file.
655         * modules/c32islower: New file.
656         * doc/posix-functions/iswlower.texi: Mention the new module.
658 2020-01-25  Bruno Haible  <bruno@clisp.org>
660         c32isgraph: Add tests.
661         * tests/test-c32isgraph.c: New file.
662         * tests/test-c32isgraph.sh: New file.
663         * modules/c32isgraph-tests: New file.
665         c32isgraph: New module.
666         * lib/c32isgraph.c: New file.
667         * modules/c32isgraph: New file.
668         * doc/posix-functions/iswgraph.texi: Mention the new module.
670 2020-01-25  Bruno Haible  <bruno@clisp.org>
672         c32isdigit: Add tests.
673         * tests/test-c32isdigit.c: New file, based on tests/test-iswdigit.c.
674         * tests/test-c32isdigit.sh: New file.
675         * modules/c32isdigit-tests: New file.
677         c32isdigit: New module.
678         * lib/c32isdigit.c: New file.
679         * modules/c32isdigit: New file.
680         * doc/posix-functions/iswdigit.texi: Mention the new module.
682 2020-01-25  Bruno Haible  <bruno@clisp.org>
684         c32iscntrl: Add tests.
685         * tests/test-c32iscntrl.c: New file.
686         * tests/test-c32iscntrl.sh: New file.
687         * modules/c32iscntrl-tests: New file.
689         c32iscntrl: New module.
690         * lib/c32iscntrl.c: New file.
691         * modules/c32iscntrl: New file.
692         * doc/posix-functions/iswcntrl.texi: Mention the new module.
694 2020-01-25  Bruno Haible  <bruno@clisp.org>
696         c32isblank: Add tests.
697         * tests/test-c32isblank.c: New file.
698         * tests/test-c32isblank.sh: New file.
699         * modules/c32isblank-tests: New file.
701         c32isblank: New module.
702         * lib/c32isblank.c: New file.
703         * modules/c32isblank: New file.
704         * doc/posix-functions/iswblank.texi: Mention the new module.
706 2020-01-25  Bruno Haible  <bruno@clisp.org>
708         c32isalpha: Add tests.
709         * tests/test-c32isalpha.c: New file.
710         * tests/test-c32isalpha.sh: New file.
711         * modules/c32isalpha-tests: New file.
713         c32isalpha: New module.
714         * lib/c32isalpha.c: New file.
715         * modules/c32isalpha: New file.
716         * doc/posix-functions/iswalpha.texi: Mention the new module.
718 2020-01-25  Bruno Haible  <bruno@clisp.org>
720         c32isalnum: Add tests.
721         * tests/test-c32isalnum.c: New file.
722         * tests/test-c32isalnum.sh: New file.
723         * modules/c32isalnum-tests: New file.
725         c32isalnum: New module.
726         * lib/c32isalnum.c: New file.
727         * lib/c32is-impl.h: New file.
728         * modules/c32isalnum: New file.
729         * doc/posix-functions/iswalnum.texi: Mention the new module.
731 2020-01-25  Bruno Haible  <bruno@clisp.org>
733         uchar: Preparations for modules c32isalnum, ..., c32isxdigit.
734         * lib/uchar.in.h (c32isalnum, c32isalpha, c32isblank, c32iscntrl,
735         c32isdigit, c32isgraph, c32islower, c32isprint, c32ispunct, c32isspace,
736         c32isupper, c32isxdigit): New declarations.
737         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32ISALNUM,
738         GNULIB_C32ISALPHA, GNULIB_C32ISBLANK, GNULIB_C32ISCNTRL,
739         GNULIB_C32ISDIGIT, GNULIB_C32ISGRAPH, GNULIB_C32ISLOWER,
740         GNULIB_C32ISPRINT, GNULIB_C32ISPUNCT, GNULIB_C32ISSPACE,
741         GNULIB_C32ISUPPER, GNULIB_C32ISXDIGIT.
742         * modules/uchar (Makefile.am): Substitute GNULIB_C32ISALNUM,
743         GNULIB_C32ISALPHA, GNULIB_C32ISBLANK, GNULIB_C32ISCNTRL,
744         GNULIB_C32ISDIGIT, GNULIB_C32ISGRAPH, GNULIB_C32ISLOWER,
745         GNULIB_C32ISPRINT, GNULIB_C32ISPUNCT, GNULIB_C32ISSPACE,
746         GNULIB_C32ISUPPER, GNULIB_C32ISXDIGIT.
747         * tests/test-uchar-c++.cc: Test the signature of c32isalnum, c32isalpha,
748         c32isblank, c32iscntrl, c32isdigit, c32isgraph, c32islower, c32isprint,
749         c32ispunct, c32isspace, c32isupper, c32isxdigit.
751 2020-01-25  Bruno Haible  <bruno@clisp.org>
753         mbchar, wctype: Use the corrected iswxdigit function.
754         * modules/mbchar (Depends-on): Add iswxdigit.
755         * modules/wctype (Depends-on): Likewise.
757         iswxdigit: Add tests.
758         * tests/test-iswxdigit.c: New file.
759         * tests/test-iswxdigit.sh: New file.
760         * modules/iswxdigit-tests: New file.
762         iswxdigit: New module.
763         * m4/iswxdigit.m4: New file.
764         * lib/wctype.in.h (iswxdigit): Potentially override.
765         (iswxdigit, rpl_iswxdigit): Test REPLACE_ISWXDIGIT, not
766         REPLACE_ISWCNTRL. Rely on ISO C compliant definition.
767         * lib/iswxdigit.c: New file.
768         * m4/wctype_h.m4 (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWXDIGIT,
769         REPLACE_ISWXDIGIT.
770         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWXDIGIT,
771         REPLACE_ISWXDIGIT.
772         * modules/iswxdigit: New file.
773         * doc/posix-functions/iswxdigit.texi: Mention the portability problem.
775 2020-01-25  Bruno Haible  <bruno@clisp.org>
777         lseek: Fix the override to not undo the effects of AC_SYS_LARGEFILE.
778         Reported by John Donoghue <john.david.donoghue@gmail.com> in
779         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00146.html>.
780         * lib/lseek.c (rpl_lseek): When AC_SYS_LARGEFILE has enabled a 64-bit
781         off_t on mingw, invoke _lseeki64 instead of lseek.
783 2020-01-25  Bruno Haible  <bruno@clisp.org>
785         iswdigit tests: Avoid test failure on Cygwin.
786         * tests/test-iswdigit.c (for_character): If mbrtowc cannot convert the
787         byte sequence, return 0.
789         iswdigit: Fix test failure on native Windows.
790         * lib/wctype.in.h (rpl_iswdigit): Rely on ISO C compliant definition.
792         mbchar, wctype: Use the corrected iswdigit function.
793         * modules/mbchar (Depends-on): Add iswdigit.
794         * modules/wctype (Depends-on): Likewise.
796         iswdigit: Add tests.
797         * tests/test-iswdigit.c: New file.
798         * tests/test-iswdigit.sh: New file.
799         * modules/iswdigit-tests: New file.
801         iswdigit: New module.
802         * m4/iswdigit.m4: New file.
803         * lib/wctype.in.h (iswdigit): Potentially override.
804         (iswdigit, rpl_iswdigit): Test REPLACE_ISWDIGIT, not REPLACE_ISWCNTRL.
805         * lib/iswdigit.c: New file.
806         * m4/wctype_h.m4 (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWDIGIT,
807         REPLACE_ISWDIGIT.
808         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWDIGIT,
809         REPLACE_ISWDIGIT.
810         * modules/iswdigit: New file.
811         * doc/posix-functions/iswdigit.texi: Mention the portability problem.
813 2020-01-25  Bruno Haible  <bruno@clisp.org>
815         hard-locale tests: Make it easy to reuse the musl test.
816         * m4/musl.m4: New file, extracted from modules/hard-locale-tests.
817         * modules/hard-locale-tests (Files): Add it.
818         (configure.ac): Invoke gl_MUSL_LIBC.
820 2020-01-24  Paul Eggert  <eggert@cs.ucla.edu>
822         regex: port to Gawk on nonstandard platforms
823         * lib/regex_internal.h (ULONG_WIDTH): Define if not already defined.
824         This is useful for Gawk, which does not use the Gnulib stdlib-h
825         module.  Problem reported by Arnold Robbins in:
826         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00138.html
828 2020-01-21  Paul Eggert  <eggert@cs.ucla.edu>
830         regex: fix bug with >=16 subexpressions
831         * lib/regex_internal.h (struct re_backref_cache_entry):
832         Use bitset_word_t as the type of eps_reachable_subexps_map,
833         instead of unsigned short int.  This fixes a bug I introduced
834         to glibc in 2005-09-28T17:33:18Z!drepper@redhat.com (glibc commit
835         2c05d33f90861d074dc12808dafbde30f487b1a0, BZ #1302).
836         Remove unused member 'unused'.
838         regex: simplify definition of BITSET_WORD_BITS
839         * config/srclist.txt: Remove regex.c, regex_internal.h temporarily.
840         * lib/regex.c (__STDC_WANT_IEC_60559_BFP_EXT__): Define.
841         * lib/regex_internal.h (BITSET_WORD_BITS):
842         * modules/regex (Depends-on): Add limits-h.
843         Simplify now that we can use ULONG_WIDTH.
845 2020-01-20  Bruno Haible  <bruno@clisp.org>
847         mbrtoc32: Add note about FreeBSD 12.
848         * m4/mbrtoc32.m4 (gl_MBRTOC32_SANITYCHECK): Guess no also on FreeBSD.
849         * doc/posix-functions/mbrtoc32.texi: Mention that FreeBSD 12 is also
850         affected.
852 2020-01-20  Bruno Haible  <bruno@clisp.org>
854         unistr/u8-uctomb: Fix warning.
855         Reported by Andreas Schwab <schwab@suse.de> in
856         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00127.html>.
857         * lib/unistr/u8-uctomb.c (FALLTHROUGH): New macro.
858         (u8_uctomb): Add FALLTHROUGH markers.
860 2020-01-20  Bruno Haible  <bruno@clisp.org>
862         lock: Fix test-once1 failure on FreeBSD 11 (regression from 2020-01-19).
863         * lib/glthread/lock.c (glthread_once_multithreaded): New function.
864         * lib/glthread/lock.h (glthread_once_multithreaded): New declaration.
865         (glthread_once): Use it.
867 2020-01-19  Bruno Haible  <bruno@clisp.org>
869         threadlib: Disable use of weak symbols on FreeBSD 11.
870         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
871         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00061.html>.
872         * m4/threadlib.m4 (gl_WEAK_SYMBOLS): Require AC_CANONICAL_HOST. Test
873         against a bug in FreeBSD 11.
875 2020-01-19  Bruno Haible  <bruno@clisp.org>
877         iconv_open: Improve z/OS support.
878         * lib/iconv_open-zos.gperf: Choose better aliases. Add mapping for
879         ISO-8859-3, KOI8-R, KOI8-U, CP775, CP857, CP865, CP1129, CP1131, CP1257.
880         Remove mapping for EUC-TW.
882 2020-01-18  Bruno Haible  <bruno@clisp.org>
884         Rename ~~gnulib.m4 to zzgnulib.m4.
885         Suggested by Paul Eggert.
886         * m4/zzgnulib.m4: Renamed from m4/~~gnulib.m4.
887         * gnulib-tool (func_get_filelist): Update.
888         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
890 2020-01-18  Bruno Haible  <bruno@clisp.org>
892         doc: Update license notices.
893         * doc/*.texi: Reference the GFDL 1.3 through a URL, rather than by
894         reference to a section or to a "file as part of this distribution".
896 2020-01-18  Bruno Haible  <bruno@clisp.org>
898         Avoid error "m4_require: circular dependency of AC_LANG_COMPILER(C)".
899         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se> in
900         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00109.html>.
901         * m4/00gnulib.m4 (gl_COMPILER_CLANG): Use _AC_COMPILE_IFELSE, not
902         AC_EGREP_CPP.
904 2020-01-18  Bruno Haible  <bruno@clisp.org>
906         Ensure Automake does not drop ~~gnulib.m4.
907         * m4/~~gnulib.m4 (gl_ZZGNULIB): New macro.
908         * m4/gnulib-common.m4 (gl_COMMON): Require it.
910 2020-01-18  Bruno Haible  <bruno@clisp.org>
912         Fix major regression from 2020-01-10.
913         Reported by Paul Eggert in
914         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00079.html>.
915         * m4/00gnulib.m4 (gl_COMPILER_CLANG, gl_COMPILER_PREPARE_CHECK_DECL):
916         Don't AC_REQUIRE anything.
917         (gl_COMPILER_PREPARE_CHECK_DECL): Define through AC_DEFUN, not
918         AC_DEFUN_ONCE. Use _AC_COMPILE_IFELSE, not AC_COMPILE_IFELSE.
919         (_AC_CHECK_DECL_BODY): If ac_compile_for_check_decl has not been set,
920         use ac_compile instead.
921         (AC_CHECK_DECL): Remove override.
922         * m4/~~gnulib.m4: New file.
923         * gnulib-tool (func_get_filelist): Add also ~~gnulib.m4.
924         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
926 2020-01-17  Bruno Haible  <bruno@clisp.org>
927             Paul Eggert  <eggert@cs.ucla.edu>
929         glob: Fix use-after-free bug.
930         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
931         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00102.html>.
932         * lib/glob.c (__glob): Delay freeing dirname until after the use of
933         end_name.
935 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
937         vcs-to-changelog: Fix parsing of fndecl without args.
938         * build-aux/vcstocl/frontend_c.py (FNDECL_RE): Fix regular expression
939         for empty arguments.
941 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
943         vcs-to-changelog: Add documentation.
944         * doc/vcs-to-changelog.texi: New file.
945         * doc/gnulib.texi (Build Infrastructure Modules): Add vcs-to-changelog
946         section.
948 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
950         vcs-to-changelog: Allow loading of custom quirks file.
951         * build-aux/vcs_to_changelog.py: New commandline option -q.
953 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
955         vcs-to-changelog: Fix formatting of ChangeLog output.
956         * build-aux/vcstocl/vcs_git.py (list_changes): Add newline in print
957         output.
959 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
961         vcs-to-changelog: Drop python3 shebang from frontend_c.py.
962         Reported in
963         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00050.html>.
964         * build-aux/vcstocl/frontend_c.py: Remove shebang.
966 2020-01-15  Simon Josefsson  <simon@josefsson.org>
968         crypto/gc-pbkdf2: New module.
969         * MODULES.html.sh (func_all_modules): Add gc-pbkdf2.
970         * NEWS: Deprecated gc-pbkdf2-sha1 in favor of gc-pbkdf2.
971         * lib/gc-pbkdf2.c: New file.
972         * lib/gc-pbkdf2-sha1.c: Use new interface.
973         * lib/gc.h (GC_MAX_DIGEST_SIZE, gc_pbkdf2_hmac): Add.
974         * modules/crypto/gc-pbkdf2: New file.
975         * modules/crypto/gc-pbkdf2-tests: New file.
976         * tests/test-gc-pbkdf2.c: New file.
978 2020-01-12  Bruno Haible  <bruno@clisp.org>
980         c32stombs: Add tests.
981         * tests/test-c32stombs.c: New file, based on tests/test-c32srtombs.c.
982         * tests/test-c32stombs-1.sh: New file, based on
983         tests/test-c32srtombs-1.sh.
984         * tests/test-c32stombs-2.sh: New file, based on
985         tests/test-c32srtombs-2.sh.
986         * tests/test-c32stombs-3.sh: New file, based on
987         tests/test-c32srtombs-3.sh.
988         * tests/test-c32stombs-4.sh: New file, based on
989         tests/test-c32srtombs-4.sh.
990         * modules/c32stombs-tests: New file, based on modules/c32srtombs-tests.
992         c32stombs: New module.
993         * lib/uchar.in.h (c32stombs): New declaration.
994         * lib/c32stombs.c: New file.
995         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32STOMBS.
996         * modules/uchar (Makefile.am): Substitute GNULIB_C32STOMBS.
997         * modules/c32stombs: New file.
998         * tests/test-uchar-c++.cc: Test the signature of c32stombs.
999         * doc/posix-functions/wcstombs.texi: Mention the new module.
1001 2020-01-11  Jim Meyering  <meyering@fb.com>
1003         perl: require the "warnings" module
1004         * m4/perl.m4: Also "use warnings", so we reject the perl found
1005         on at least one IRIX 6.5 system. Reported by Bruno Haible in
1006         https://lists.gnu.org/r/sed-devel/2020-01/msg00004.html
1008 2020-01-10  Bruno Haible  <bruno@clisp.org>
1010         Fix major regression from 2020-01-04.
1011         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se> in
1012         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00072.html>.
1013         * m4/00gnulib.m4 (gl_COMPILER_PREPARE_CHECK_DECL): Define through
1014         AC_DEFUN_ONCE.
1015         (AC_CHECK_DECL): Invoke, not require, it.
1017 2020-01-10  Bruno Haible  <bruno@clisp.org>
1019         c32snrtombs: Add tests.
1020         * tests/test-c32snrtombs.c: New file, based on tests/test-wcsnrtombs.c.
1021         * tests/test-c32snrtombs-1.sh: New file, based on
1022         tests/test-wcsnrtombs1.sh.
1023         * tests/test-c32snrtombs-2.sh: New file, based on
1024         tests/test-wcsnrtombs2.sh.
1025         * tests/test-c32snrtombs-3.sh: New file, based on
1026         tests/test-wcsnrtombs3.sh.
1027         * tests/test-c32snrtombs-4.sh: New file, based on
1028         tests/test-wcsnrtombs4.sh.
1029         * modules/c32snrtombs-tests: New file, based on
1030         modules/wcsnrtombs-tests.
1032         c32snrtombs: New module.
1033         * lib/uchar.in.h (c32snrtombs): New declaration.
1034         * lib/wcsnrtombs-impl.h: Parameterize: Use macros FUNC, SCHAR_T,
1035         INTERNAL_STATE, WCRTOMB.
1036         * lib/wcsnrtombs.c (FUNC, SCHAR_T, INTERNAL_STATE, WCRTOMB): New macros.
1037         * lib/c32snrtombs.c: New file.
1038         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32SNRTOMBS.
1039         * modules/uchar (Makefile.am): Substitute GNULIB_C32SNRTOMBS.
1040         * modules/c32snrtombs: New file.
1041         * tests/test-uchar-c++.cc: Test the signature of c32snrtombs.
1042         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
1044 2020-01-09  Bruno Haible  <bruno@clisp.org>
1046         c32srtombs: Add tests.
1047         * tests/test-c32srtombs.c: New file, based on tests/test-wcsrtombs.c.
1048         * tests/test-c32srtombs-1.sh: New file, based on
1049         tests/test-wcsrtombs1.sh.
1050         * tests/test-c32srtombs-2.sh: New file, based on
1051         tests/test-wcsrtombs2.sh.
1052         * tests/test-c32srtombs-3.sh: New file, based on
1053         tests/test-wcsrtombs3.sh.
1054         * tests/test-c32srtombs-4.sh: New file, based on
1055         tests/test-wcsrtombs4.sh.
1056         * modules/c32srtombs-tests: New file, based on modules/wcsrtombs-tests.
1058         c32srtombs: New module.
1059         * lib/uchar.in.h (c32srtombs): New declaration.
1060         * lib/wcsrtombs-impl.h: Parameterize: Use macros FUNC, SCHAR_T,
1061         INTERNAL_STATE, WCRTOMB.
1062         * lib/wcsrtombs.c (FUNC, SCHAR_T, INTERNAL_STATE, WCRTOMB): New macros.
1063         * lib/c32srtombs.c: New file.
1064         * lib/c32srtombs-state.c: New file, based on lib/wcsrtombs-state.c.
1065         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32SRTOMBS.
1066         * modules/uchar (Makefile.am): Substitute GNULIB_C32SRTOMBS.
1067         * modules/c32srtombs: New file.
1068         * tests/test-uchar-c++.cc: Test the signature of c32srtombs.
1069         * doc/posix-functions/wcsrtombs.texi: Mention the new module.
1071 2020-01-08  Bruno Haible  <bruno@clisp.org>
1073         c32tob: Make consistent with mbrtoc32.
1074         * lib/c32tob.c: Include <stdio.h>, <string.h>, <wchar.h>.
1075         (c32tob): If the char32_t encoding and the wchar_t encoding may differ,
1076         use c32rtomb, not wctob.
1077         * modules/c32tob (Files): Add m4/mbrtoc32.m4.
1078         (Depends-on): Add c32rtomb.
1079         (configure.ac): Require gl_MBRTOC32_SANITYCHECK.
1081 2020-01-08  Bruno Haible  <bruno@clisp.org>
1083         c32rtomb: Add tests.
1084         * tests/test-c32rtomb.c: New file, based on tests/test-wcrtomb.c.
1085         * tests/test-c32rtomb.sh: New file, based on tests/test-wcrtomb.sh.
1086         * tests/test-c32rtomb-w32.c: New file, based on
1087         tests/test-wcrtomb-w32.c.
1088         * tests/test-c32rtomb-w32-1.sh: New file, based on
1089         tests/test-wcrtomb-w32-1.sh.
1090         * tests/test-c32rtomb-w32-2.sh: New file, based on
1091         tests/test-wcrtomb-w32-2.sh.
1092         * tests/test-c32rtomb-w32-3.sh: New file, based on
1093         tests/test-wcrtomb-w32-3.sh.
1094         * tests/test-c32rtomb-w32-4.sh: New file, based on
1095         tests/test-wcrtomb-w32-4.sh.
1096         * tests/test-c32rtomb-w32-5.sh: New file, based on
1097         tests/test-wcrtomb-w32-5.sh.
1098         * tests/test-c32rtomb-w32-6.sh: New file, based on
1099         tests/test-wcrtomb-w32-6.sh.
1100         * tests/test-c32rtomb-w32-7.sh: New file, based on
1101         tests/test-wcrtomb-w32-7.sh.
1102         * modules/c32rtomb-tests: New file.
1104         c32rtomb: New module.
1105         * lib/uchar.in.h (c32rtomb): New declaration.
1106         * lib/c32rtomb.c: New file, based on lib/unistr/u8-uctomb-aux.c.
1107         * m4/c32rtomb.m4: New file.
1108         * m4/uchar.m4 (gl_UCHAR_H): Test whether c32rtomb is declared.
1109         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32RTOMB, HAVE_C32RTOMB,
1110         REPLACE_C32RTOMB.
1111         * modules/uchar (Makefile.am): Substitute GNULIB_C32RTOMB,
1112         HAVE_C32RTOMB, REPLACE_C32RTOMB.
1113         * modules/c32rtomb: New file.
1114         * tests/test-uchar-c++.cc: Test the signature of c32rtomb.
1115         * doc/posix-functions/c32rtomb.texi: Document the new module.
1116         * doc/posix-functions/wcrtomb.texi: Mention the new module.
1118 2020-01-08  Bruno Haible  <bruno@clisp.org>
1120         mbrtoc32: Use the system's mbrtoc32 if it exists and basically works.
1121         * m4/mbrtoc32.m4 (gl_MBRTOC32_SANITYCHECK): New macro.
1122         (gl_FUNC_MBRTOC32): Require it. Set REPLACE_MBRTOC32 if mbrtoc32 exists
1123         but is not working.
1124         * lib/mbrtoc32.c: Include hard-locale.h, <locale.h>.
1125         (mbrtoc32): If the char32_t encoding and the wchar_t encoding may
1126         differ, use the system's mbrtoc32, adding workarounds.
1127         * modules/mbrtoc32 (Depends-on): Add hard-locale.
1128         * doc/posix-functions/mbrtoc32.texi: Mention the Solaris and native
1129         Windows problem.
1130         * lib/btoc32.c: Include <stdio.h>, <string.h>.
1131         (btoc32): If the char32_t encoding and the wchar_t encoding may differ,
1132         use mbrtoc32, not btowc.
1133         * modules/btoc32 (Depends-on): Add mbrtoc32.
1134         * lib/mbsrtoc32s.c (mbsrtoc32s): If the char32_t encoding and the
1135         wchar_t encoding may differ, use mbrtoc32, not mbsrtowcs.
1136         * modules/mbsrtoc32s (Depends-on): Update conditions.
1137         (configure.ac): Compile mbsrtoc32s-state.c unconditionally.
1138         * lib/mbsnrtoc32s.c (mbsnrtoc32s): If the char32_t encoding and the
1139         wchar_t encoding may differ, use mbrtoc32, not mbsnrtowcs.
1140         * modules/mbsnrtoc32s (Depends-on): Update conditions.
1141         (configure.ac): Compile mbsrtoc32s-state.c unconditionally.
1143 2020-01-07  Bruno Haible  <bruno@clisp.org>
1145         wcrtomb: Make multithread-safe, except possibly on IRIX.
1146         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Don't set REPLACE_WCRTOMB to 1 when
1147         REPLACE_MBSTATE_T is set. Define WCRTOMB_C_LOCALE_BUG and
1148         WCRTOMB_RETVAL_BUG.
1149         * lib/wcrtomb.c (wcrtomb): Use original wcrtomb whenever available. Use
1150         wctomb only on IRIX.
1152 2020-01-05  Jim Meyering  <meyering@fb.com>
1154         tests: skip thread-using tests when threading is disabled
1155         sed's configure.ac specifies gl_DISABLE_THREADS, and that caused three
1156         thread-using gnulib tests to fail. Add an #if-guarded exit (77) to each
1157         of those, so they are skipped in this case.
1158         * tests/test-nl_langinfo-mt.c (main): Exit 77 when threading is disabled.
1159         * tests/test-setlocale_null-mt-all.c (main): Likewise.
1160         * tests/test-setlocale_null-mt-one.c (main): Likewise.
1162 2020-01-05  Bruno Haible  <bruno@clisp.org>
1164         tests: Avoid GCC over-optimization caused by _GL_ARG_NONNULL attributes.
1165         Reported by Jim Meyering in
1166         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00040.html>.
1167         * lib/stdlib.in.h (GNULIB_defined_canonicalize_file_name): New macro.
1168         (GNULIB_defined_ptsname_r): New macro.
1169         * tests/test-canonicalize.c (_GL_ARG_NONNULL): Define to empty.
1170         (main): Disable the NULL argument test if canonicalize_file_name does
1171         not come from gnulib.
1172         * tests/test-canonicalize-lgpl.c (_GL_ARG_NONNULL): Define to empty.
1173         (main): Disable the NULL argument test if canonicalize_file_name does
1174         not come from gnulib.
1175         * tests/test-ptsname_r.c (_GL_ARG_NONNULL): Define to empty.
1176         (test_errors): Disable the NULL argument test if ptsname_r does not come
1177         from gnulib.
1179 2020-01-04  Jim Meyering  <meyering@fb.com>
1181         update-copyright: reenable its always-skipped test
1182         * tests/test-update-copyright.sh: Restore the "-pi" options removed
1183         on 2019-06-15. Without those, an internal preliminary test would
1184         fail, causing this test always to be skipped.
1185         Verify that the test is now run and passes via this:
1186           ./gnulib-tool --test --dir /tmp/x --with-tests update-copyright
1188 2020-01-05  Bruno Haible  <bruno@clisp.org>
1190         mbstoc32s: Add tests.
1191         * tests/test-mbstoc32s.c: New file, based on tests/test-mbsrtoc32s.c.
1192         * tests/test-mbstoc32s-1.sh: New file, based on
1193         tests/test-mbsrtoc32s-1.sh.
1194         * tests/test-mbstoc32s-2.sh: New file, based on
1195         tests/test-mbsrtoc32s-2.sh.
1196         * tests/test-mbstoc32s-3.sh: New file, based on
1197         tests/test-mbsrtoc32s-3.sh.
1198         * tests/test-mbstoc32s-4.sh: New file, based on
1199         tests/test-mbsrtoc32s-4.sh.
1200         * modules/mbstoc32s-tests: New file, based on modules/mbsrtoc32s-tests.
1202         mbstoc32s: New module.
1203         * lib/uchar.in.h (mbstoc32s): New declaration.
1204         * lib/mbstoc32s.c: New file.
1205         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSTOC32S.
1206         * modules/uchar (Makefile.am): Substitute GNULIB_MBSTOC32S.
1207         * modules/mbstoc32s: New file.
1208         * tests/test-uchar-c++.cc: Test the signature of mbstoc32s.
1209         * doc/posix-functions/mbstowcs.texi: Mention the new module.
1211 2020-01-05  Bruno Haible  <bruno@clisp.org>
1213         Tweak recently added tests.
1214         * tests/test-mbrtoc32.c: Make signature consistent with uchar.in.h.
1215         * tests/test-mbsrtoc32s.c: Likewise.
1216         * tests/test-mbsnrtoc32s.c: Likewise.
1218 2020-01-04  Bruno Haible  <bruno@clisp.org>
1220         mbsnrtoc32s: Add tests.
1221         * tests/test-mbsnrtoc32s.c: New file, based on tests/test-mbsnrtowcs.c.
1222         * tests/test-mbsnrtoc32s-1.sh: New file, based on
1223         tests/test-mbsnrtowcs1.sh.
1224         * tests/test-mbsnrtoc32s-2.sh: New file, based on
1225         tests/test-mbsnrtowcs2.sh.
1226         * tests/test-mbsnrtoc32s-3.sh: New file, based on
1227         tests/test-mbsnrtowcs3.sh.
1228         * tests/test-mbsnrtoc32s-4.sh: New file, based on
1229         tests/test-mbsnrtowcs4.sh.
1230         * modules/mbsnrtoc32s-tests: New file, based on
1231         modules/mbsnrtowcs-tests.
1233         mbsnrtoc32s: New module.
1234         * lib/uchar.in.h (mbsnrtoc32s): New declaration.
1235         * lib/mbsnrtowcs-impl.h: Parameterize: Use macros FUNC, DCHAR_T,
1236         INTERNAL_STATE, MBRTOWC.
1237         * lib/mbsnrtowcs.c (FUNC, DCHAR_T, INTERNAL_STATE, MBRTOWC): New macros.
1238         * lib/mbsnrtoc32s.c: New file.
1239         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOC32S.
1240         * modules/uchar (Makefile.am): Substitute GNULIB_MBSNRTOC32S.
1241         * modules/mbsnrtoc32s: New file.
1242         * tests/test-uchar-c++.cc: Test the signature of mbsnrtoc32s.
1243         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module.
1245 2020-01-04  Bruno Haible  <bruno@clisp.org>
1247         mbsrtoc32s tests: Enhance test.
1248         * tests/test-mbsrtoc32s.c (main): Include a non-BMP character in the
1249         test strings for UTF-8 and GB18030.
1251 2020-01-04  Bruno Haible  <bruno@clisp.org>
1253         mbsrtoc32s: Fix bug.
1254         * modules/mbsrtoc32s (configure.ac): Require gl_UCHAR_H, to make sure
1255         that SMALL_WCHAR_T is defined.
1257 2020-01-04  Bruno Haible  <bruno@clisp.org>
1259         mbsrtoc32s: Add tests.
1260         * tests/test-mbsrtoc32s.c: New file, based on tests/test-mbsrtowcs.c.
1261         * tests/test-mbsrtoc32s-1.sh: New file, based on
1262         tests/test-mbsrtowcs1.sh.
1263         * tests/test-mbsrtoc32s-2.sh: New file, based on
1264         tests/test-mbsrtowcs2.sh.
1265         * tests/test-mbsrtoc32s-3.sh: New file, based on
1266         tests/test-mbsrtowcs3.sh.
1267         * tests/test-mbsrtoc32s-4.sh: New file, based on
1268         tests/test-mbsrtowcs4.sh.
1269         * modules/mbsrtoc32s-tests: New file, based on modules/mbsrtowcs-tests.
1271         mbsrtoc32s: New module.
1272         * lib/uchar.in.h (mbsrtoc32s): New declaration.
1273         * lib/mbsrtowcs-impl.h: Parameterize: Use macros FUNC, DCHAR_T,
1274         INTERNAL_STATE, MBRTOWC.
1275         * lib/mbsrtowcs.c (FUNC, DCHAR_T, INTERNAL_STATE, MBRTOWC): New macros.
1276         * lib/mbsrtoc32s.c: New file.
1277         * lib/mbsrtoc32s-state.c: New file, based on lib/mbsrtowcs-state.c.
1278         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOC32S.
1279         * modules/uchar (Makefile.am): Substitute GNULIB_MBSRTOC32S.
1280         * modules/mbsrtoc32s: New file.
1281         * tests/test-uchar-c++.cc: Test the signature of mbsrtoc32s.
1282         * doc/posix-functions/mbsrtowcs.texi: Mention the new module.
1284 2020-01-04  Bruno Haible  <bruno@clisp.org>
1286         mbrtowc, mbrtoc32: Tighten dependendies.
1287         * modules/mbrtowc (Depends-on): Disable hard-locale, mbsinit if
1288         REPLACE_MBSTATE_T is 1.
1289         (configure.ac): Don't compile lc-charset-dispatch.c and mbtowc-lock.c if
1290         REPLACE_MBSTATE_T is 0.
1291         * modules/mbrtoc32 (Depends-on): Remove hard-locale, mbsinit. Disable
1292         mbrtowc dependency if REPLACE_MBSTATE_T is 1.
1293         (configure.ac): Don't compile lc-charset-dispatch.c and mbtowc-lock.c if
1294         REPLACE_MBSTATE_T is 0.
1296 2020-01-04  Bruno Haible  <bruno@clisp.org>
1298         uchar: Decide about _GL_LARGE_CHAR32_T at configure time.
1299         * m4/uchar.m4 (gl_UCHAR_H): Set SMALL_WCHAR_T.
1300         * modules/uchar (Files): Add stdint.m4.
1301         (Makefile.am): Substitute SMALL_WCHAR_T.
1302         * lib/uchar.in.h (_GL_LARGE_CHAR32_T): Rely on SMALL_WCHAR_T.
1304 2020-01-04  Bruno Haible  <bruno@clisp.org>
1306         Fix AC_CHECK_DECL so that it deactivates clang's built-in declarations.
1307         Reported by Martin Storsjö <martin@martin.st> in
1308         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00016.html>.
1309         * m4/00gnulib.m4 (gl_COMPILER_CLANG, gl_COMPILER_PREPARE_CHECK_DECL):
1310         New macros.
1311         (_AC_CHECK_DECL_BODY, AC_CHECK_DECL): Augment.
1313 2020-01-04  Bruno Haible  <bruno@clisp.org>
1315         btoc32: Add tests.
1316         * tests/test-btoc32.c: New file, based on tests/test-btowc.c.
1317         * tests/test-btoc32-1.sh: New file, based on tests/test-btowc1.sh.
1318         * tests/test-btoc32-2.sh: New file, based on tests/test-btowc2.sh.
1319         * modules/btoc32-tests: New file, based on modules/btowc-tests.
1321         btoc32: New module.
1322         * lib/uchar.in.h (btoc32): New declaration.
1323         * lib/btoc32.c: New file.
1324         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_BTOC32.
1325         * modules/uchar (Makefile.am): Substitute GNULIB_BTOC32.
1326         * modules/btoc32: New file.
1327         * tests/test-uchar-c++.cc: Test the signature of btoc32.
1328         * doc/posix-functions/btowc.texi: Mention the new module.
1330 2020-01-03  Bruno Haible  <bruno@clisp.org>
1332         uchar tests: Avoid compilation error with HP cc.
1333         * tests/test-uchar.c: Disable a test when HP cc is in use.
1335 2020-01-03  Bruno Haible  <bruno@clisp.org>
1337         mbrtoc32: Add tests.
1338         * tests/test-mbrtoc32.c: New file, based on tests/test-mbrtowc.c.
1339         * tests/test-mbrtoc32-1.sh: New file, based on tests/test-mbrtowc1.sh.
1340         * tests/test-mbrtoc32-2.sh: New file, based on tests/test-mbrtowc2.sh.
1341         * tests/test-mbrtoc32-3.sh: New file, based on tests/test-mbrtowc3.sh.
1342         * tests/test-mbrtoc32-4.sh: New file, based on tests/test-mbrtowc4.sh.
1343         * tests/test-mbrtoc32-5.sh: New file, based on tests/test-mbrtowc5.sh.
1344         * tests/test-mbrtoc32-w32.c: New file, based on tests/test-mbrtowc-w32.c.
1345         * tests/test-mbrtoc32-w32-1.sh: New file, based on
1346         tests/test-mbrtowc-w32-1.sh.
1347         * tests/test-mbrtoc32-w32-2.sh: New file, based on
1348         tests/test-mbrtowc-w32-2.sh.
1349         * tests/test-mbrtoc32-w32-3.sh: New file, based on
1350         tests/test-mbrtowc-w32-3.sh.
1351         * tests/test-mbrtoc32-w32-4.sh: New file, based on
1352         tests/test-mbrtowc-w32-4.sh.
1353         * tests/test-mbrtoc32-w32-5.sh: New file, based on
1354         tests/test-mbrtowc-w32-5.sh.
1355         * tests/test-mbrtoc32-w32-6.sh: New file, based on
1356         tests/test-mbrtowc-w32-6.sh.
1357         * tests/test-mbrtoc32-w32-7.sh: New file, based on
1358         tests/test-mbrtowc-w32-7.sh.
1359         * modules/mbrtoc32-tests: New file, based on modules/mbrtowc-tests.
1361         mbrtoc32: New module.
1362         * lib/uchar.in.h (mbrtoc32): New declaration.
1363         * lib/mbrtoc32.c: New file, based on lib/mbrtowc.c.
1364         * m4/mbrtoc32.m4: New file, based on m4/mbrtowc.m4.
1365         * m4/uchar.m4 (gl_UCHAR_H): Test whether mbrtoc32 is declared.
1366         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOC32, HAVE_MBRTOC32,
1367         REPLACE_MBRTOC32.
1368         * modules/uchar (Makefile.am): Substitute GNULIB_MBRTOC32,
1369         HAVE_MBRTOC32, REPLACE_MBRTOC32.
1370         * modules/mbrtoc32: New file, based on modules/mbrtowc.
1371         * tests/test-uchar-c++.cc (mbrtoc32): Verify the signature.
1372         * modules/uchar-c++-tests (Makefile.am): Link test-uchar-c++ with
1373         $(LIB_MBRTOWC).
1374         * doc/posix-functions/mbrtoc32.texi: Document the new module.
1375         * doc/posix-functions/mbrtowc.texi: Mention the new module.
1377 2020-01-03  Bruno Haible  <bruno@clisp.org>
1379         mbrtowc: Refactor to share code with mbrtoc32.
1380         * lib/mbrtowc-impl.h: New file, extracted from lib/mbrtowc.c.
1381         * lib/mbrtowc-impl-utf8.h: Likewise.
1382         * lib/mbrtowc.c (mbrtowc): Define macro FITS_IN_CHAR_TYPE. Include
1383         mbrtowc-impl.h.
1384         * modules/mbrtowc (Files): Add the new files.
1386 2020-01-03  Jim Meyering  <meyering@fb.com>
1388         doc: fix time.texi wording
1389         * doc/posix-headers/time.texi (time.h): Typo.
1391 2020-01-03  Bruno Haible  <bruno@clisp.org>
1393         mbrtowc: Refactor locale charset dispatching.
1394         * lib/lc-charset-dispatch.h: New file, extracted from lib/mbrtowc.c.
1395         * lib/lc-charset-dispatch.c: New file, extracted from lib/mbrtowc.c.
1396         * lib/mbrtowc.c: Include lc-charset-dispatch.h. Don't include
1397         localcharset.h, streq.h.
1398         (enc_t): Remove type.
1399         (locale_enc): Remove function.
1400         (cached_locale_enc): Remove variable.
1401         (locale_enc_cached): Remove function.
1402         (mbrtowc): Invoke locale_encoding_classification.
1403         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Update comment.
1404         * modules/mbrtowc (Files): Add lc-charset-dispatch.h,
1405         lc-charset-dispatch.c.
1406         (configure.ac): Arrange to compile lc-charset-dispatch.c.
1408 2020-01-03  Paul Eggert  <eggert@cs.ucla.edu>
1410         doc: mention 32-bit time_t issue
1411         * doc/posix-headers/sys_stat.texi (sys/stat.h):
1412         * doc/posix-headers/time.texi (time.h): Mention 2038.
1414 2020-01-03  Bruno Haible  <bruno@clisp.org>
1416         mbrtowc: Ensure the mbtowc_lock is unique.
1417         * lib/mbtowc-lock.c: New file, based on lib/setlocale-lock.c.
1418         * lib/mbtowc-lock.h: New file, extracted from lib/mbrtowc.c and
1419         lib/setlocale_null.c.
1420         * lib/mbrtowc.c: Include headers needed for mbtowc-lock.h. Don't include
1421         glthread/lock.h. Include mbtowc-lock.h.
1422         (mbtowc_lock): Remove declaration.
1423         (mbrtowc): Use mbtowc_with_lock.
1424         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Require gl_PTHREADLIB. Check for
1425         threads.h. Set LIB_MBRTOWC.
1426         (gl_PREREQ_MBTOWC_LOCK): New macro.
1427         * modules/mbrtowc (Files): Add lib/mbtowc-lock.h, lib/mbtowc-lock.c,
1428         lib/windows-initguard.h, m4/threadlib.m4, m4/visibility.m4.
1429         (Depends-on): Remove lock.
1430         (configure.ac): Arrange to compile mbtowc-lock.c.
1431         (Link): Mention $(LIB_MBRTOWC) instead of $(LIBTHREAD).
1432         * modules/acl (Link): Likewise.
1433         * modules/argmatch (Link): Likewise.
1434         * modules/backup-rename (Link): Likewise.
1435         * modules/backupfile (Link): Likewise.
1436         * modules/closein (Link): Likewise.
1437         * modules/closeout (Link): Likewise.
1438         * modules/copy-file (Link): Likewise.
1439         * modules/csharpcomp (Link): Likewise.
1440         * modules/csharpexec (Link): Likewise.
1441         * modules/dfa (Link): Likewise.
1442         * modules/exclude (Link): Likewise.
1443         * modules/fnmatch (Link): Likewise.
1444         * modules/fnmatch-gnu (Link): Likewise.
1445         * modules/fnmatch-posix (Link): Likewise.
1446         * modules/glob (Link): Likewise.
1447         * modules/human (Link): Likewise.
1448         * modules/javacomp (Link): Likewise.
1449         * modules/javaexec (Link): Likewise.
1450         * modules/javaversion (Link): Likewise.
1451         * modules/mbfile (Link): Likewise.
1452         * modules/mbiter (Link): Likewise.
1453         * modules/mbmemcasecmp (Link): Likewise.
1454         * modules/mbmemcasecoll (Link): Likewise.
1455         * modules/mbrlen (Link): Likewise.
1456         * modules/mbscasecmp (Link): Likewise.
1457         * modules/mbscasestr (Link): Likewise.
1458         * modules/mbschr (Link): Likewise.
1459         * modules/mbscspn (Link): Likewise.
1460         * modules/mbsinit (Link): Likewise.
1461         * modules/mbslen (Link): Likewise.
1462         * modules/mbsncasecmp (Link): Likewise.
1463         * modules/mbsnlen (Link): Likewise.
1464         * modules/mbsnrtowcs (Link): Likewise.
1465         * modules/mbspbrk (Link): Likewise.
1466         * modules/mbspcasecmp (Link): Likewise.
1467         * modules/mbsrchr (Link): Likewise.
1468         * modules/mbsrtowcs (Link): Likewise.
1469         * modules/mbssep (Link): Likewise.
1470         * modules/mbsspn (Link): Likewise.
1471         * modules/mbsstr (Link): Likewise.
1472         * modules/mbstok_r (Link): Likewise.
1473         * modules/mbswidth (Link): Likewise.
1474         * modules/mbuiter (Link): Likewise.
1475         * modules/mkdir-p (Link): Likewise.
1476         * modules/propername (Link): Likewise.
1477         * modules/quote (Link): Likewise.
1478         * modules/quotearg (Link): Likewise.
1479         * modules/quotearg-simple (Link): Likewise.
1480         * modules/regex-quote (Link): Likewise.
1481         * modules/rpmatch (Link): Likewise.
1482         * modules/sh-quote (Link): Likewise.
1483         * modules/system-quote (Link): Likewise.
1484         * modules/trim (Link): Likewise.
1485         * modules/unistdio/ulc-asnprintf (Link): Likewise.
1486         * modules/unistdio/ulc-fprintf (Link): Likewise.
1487         * modules/unistdio/ulc-vasnprintf (Link): Likewise.
1488         * modules/unistdio/ulc-vasprintf (Link): Likewise.
1489         * modules/unistdio/ulc-vfprintf (Link): Likewise.
1490         * modules/unistdio/ulc-vsnprintf (Link): Likewise.
1491         * modules/unistdio/ulc-vsprintf (Link): Likewise.
1492         * modules/xfreopen (Link): Likewise.
1493         * modules/xmemcoll (Link): Likewise.
1494         * modules/yesno (Link): Likewise.
1495         * modules/regex (Link): Add $(LIB_MBRTOWC).
1496         * modules/acl-tests (Makefile.am): Link the programs with $(LIB_MBRTOWC)
1497         instead of $(LIBTHREAD).
1498         * modules/argmatch-tests (Makefile.am): Likewise.
1499         * modules/closein-tests (Makefile.am): Likewise.
1500         * modules/copy-file-tests (Makefile.am): Likewise.
1501         * modules/dfa-tests (Makefile.am): Likewise.
1502         * modules/fnmatch-tests (Makefile.am): Likewise.
1503         * modules/glob-tests (Makefile.am): Likewise.
1504         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
1505         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
1506         * modules/mbrtowc-tests (Makefile.am): Likewise.
1507         * modules/mbscasecmp-tests (Makefile.am): Likewise.
1508         * modules/mbscasestr-tests (Makefile.am): Likewise.
1509         * modules/mbschr-tests (Makefile.am): Likewise.
1510         * modules/mbscspn-tests (Makefile.am): Likewise.
1511         * modules/mbsinit-tests (Makefile.am): Likewise.
1512         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
1513         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
1514         * modules/mbspbrk-tests (Makefile.am): Likewise.
1515         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
1516         * modules/mbsrchr-tests (Makefile.am): Likewise.
1517         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
1518         * modules/mbsspn-tests (Makefile.am): Likewise.
1519         * modules/mbsstr-tests (Makefile.am): Likewise.
1520         * modules/quotearg-simple-tests (Makefile.am): Likewise.
1521         * modules/quotearg-tests (Makefile.am): Likewise.
1522         * modules/readtokens-tests (Makefile.am): Likewise.
1523         * modules/sh-quote-tests (Makefile.am): Likewise.
1524         * modules/system-quote-tests (Makefile.am): Likewise.
1525         * modules/unistdio/ulc-asnprintf-tests (Makefile.am): Likewise.
1526         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
1527         * modules/unistdio/ulc-vasprintf-tests (Makefile.am): Likewise.
1528         * modules/unistdio/ulc-vsnprintf-tests (Makefile.am): Likewise.
1529         * modules/unistdio/ulc-vsprintf-tests (Makefile.am): Likewise.
1530         * modules/yesno-tests (Makefile.am): Likewise.
1531         * modules/exclude-tests (Makefile.am): Link the programs with
1532         $(LIB_MBRTOWC).
1533         * modules/regex-tests (Makefile.am): Likewise.
1534         * modules/regex-quote-tests (Makefile.am): Likewise.
1536 2020-01-03  Bruno Haible  <bruno@clisp.org>
1538         getopt-posix: Fix compilation failure in testdirs.
1539         * lib/unistd.in.h: Include <getopt-cdefs.h> and <getopt-pfx-core.h> only
1540         when the gnulib module 'getopt-posix' is enabled.
1541         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETOPT_POSIX.
1542         * modules/getopt-posix (configure.ac): Set GNULIB_GETOPT_POSIX as a
1543         module indicator.
1544         * modules/unistd (Makefile.am): Substitute GNULIB_GETOPT_POSIX.
1546 2020-01-03  Bruno Haible  <bruno@clisp.org>
1548         doc: Mention the 64-bit inode number problem.
1549         * m4/largefile.m4 (AC_SYS_LARGEFILE): Mention that this macro fixes the
1550         64-bit inode number problem.
1551         * doc/posix-functions/stat.texi: Mention that this module fixes the
1552         64-bit inode number problem.
1553         * doc/posix-functions/lstat.texi: Likewise.
1554         * doc/posix-functions/fstat.texi: Likewise.
1555         * doc/posix-functions/readdir.texi: Add more details.
1556         * doc/posix-functions/readdir_r.texi: Likewise.
1558 2020-01-02  Bruno Haible  <bruno@clisp.org>
1560         wcrtomb: Add more tests.
1561         * tests/test-wcrtomb-w32.c: Include localcharset.h.
1562         (test_one_locale): For the GB18030 and UTF-8 tests, verify that
1563         locale_charset() returns the expected value; otherwise, skip the test.
1564         * tests/test-wcrtomb-w32-6.sh: Remove old comment.
1565         * tests/test-wcrtomb-w32-7.sh: Likewise.
1566         * modules/wcrtomb-tests (Files): Add these files.
1567         (Depends-on): Add localcharset.
1568         (TESTS): Add test-wcrtomb-w32-6.sh, test-wcrtomb-w32-7.sh.
1570 2020-01-02  Bruno Haible  <bruno@clisp.org>
1572         mbrtowc: Add more tests.
1573         * tests/test-mbrtowc-w32.c: Include localcharset.h.
1574         (test_one_locale): For the GB18030 and UTF-8 tests, verify that
1575         locale_charset() returns the expected value; otherwise, skip the test.
1576         * tests/test-mbrtowc-w32-6.sh: Remove old comment.
1577         * tests/test-mbrtowc-w32-7.sh: Likewise.
1578         * modules/mbrtowc-tests (Files): Add these files.
1579         (Depends-on): Add localcharset.
1580         (TESTS): Add test-mbrtowc-w32-6.sh, test-mbrtowc-w32-7.sh.
1582 2020-01-02  Bruno Haible  <bruno@clisp.org>
1584         mbrtowc: Fix test failures on MSVC (regression by previous commit).
1585         * m4/mbrtowc.m4 (gl_MBRTOWC_STORES_INCOMPLETE): New macro.
1586         (gl_FUNC_MBRTOWC): Invoke it. Define MBRTOWC_STORES_INCOMPLETE_BUG.
1587         * lib/mbrtowc.c (rpl_mbrtowc): Add workaround for
1588         MBRTOWC_STORES_INCOMPLETE_BUG.
1589         * doc/posix-functions/mbrtowc.texi: Mention the MSVC bug.
1591 2020-01-02  Paul Eggert  <eggert@cs.ucla.edu>
1593         doc: mention glibc bug 24269
1594         * doc/regex.texi (Back-reference Operator): Add glibc bug 24269.
1595         Reformat slightly so that it looks nicer in the Grep manual.
1597 2020-01-02  Bruno Haible  <bruno@clisp.org>
1599         mbrtowc: Don't replace mbstate_t on MSVC.
1600         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN): Require AC_CANONICAL_HOST. Ignore
1601         a missing mbsinit function on native Windows.
1602         * lib/wchar.in.h (GNULIB_defined_mbstate_t): Likewise.
1603         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Strengthen the test, to detect an
1604         MSVC bug.
1605         * doc/posix-functions/wcrtomb.texi: Mention the MSVC bug.
1607 2020-01-02  Bruno Haible  <bruno@clisp.org>
1609         setlocale-null: Avoid crashing the MSVC linker.
1610         * lib/setlocale-lock.c: Don't define IMP(gl_get_setlocale_null_lock) on
1611         MSVC.
1613 2020-01-02  Bruno Haible  <bruno@clisp.org>
1615         wchar: Make the HP-UX workaround work on HP-UX 11.31.
1616         * modules/wchar (Depends-on): Add inttypes-incomplete.
1617         * lib/inttypes.in.h: Define _GL_FINISHED_INCLUDING_SYSTEM_INTTYPES_H.
1618         * lib/wchar.in.h: Test _GL_FINISHED_INCLUDING_SYSTEM_INTTYPES_H instead
1619         of strtoimax.
1621 2020-01-02  Bruno Haible  <bruno@clisp.org>
1623         mbrtowc: Fix compilation error on IRIX (regression from 2019-12-26).
1624         * lib/mbrtowc.c: Include <stdint.h>.
1625         * modules/mbrtowc (Depends-on): Add stdint.
1627 2020-01-01  Pádraig Brady  <P@draigBrady.com>
1629         md5, sha1, sha256, sha512: support --with-openssl=auto-gpl-compat
1630         * m4/gl-openssl.m4: Add a new "auto-gpl-compat" mode,
1631         which will auto enable use of openssl, only for >= version 3,
1632         which is newly licensed under the Apache Software License.
1634 2020-01-01  Bruno Haible  <bruno@clisp.org>
1636         mbrtowc: Include function name in macro names.
1637         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Define
1638         MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ, not C_LOCALE_MAYBE_EILSEQ.
1639         (gl_MBRTOWC_C_LOCALE): Change cache variable name to
1640         gl_cv_func_mbrtowc_C_locale_sans_EILSEQ.
1641         * lib/mbrtowc.c: Test MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ, not
1642         C_LOCALE_MAYBE_EILSEQ.
1644 2020-01-01  Bruno Haible  <bruno@clisp.org>
1646         c32tob: New module.
1647         * lib/uchar.in.h (_GL_LARGE_CHAR32_T): New macro.
1648         (c32tob): New declaration.
1649         * lib/c32tob.c: New file.
1650         * m4/uchar.m4 (gl_UCHAR_MODULE_INDICATOR, gl_UCHAR_H_DEFAULTS): New
1651         macros.
1652         (gl_UCHAR_H): Require gl_UCHAR_H_DEFAULTS.
1653         * modules/uchar (Depends-on): Add snippet/c++defs.
1654         (Makefile.am): Include c++defs.h and substitute GNULIB_C32TOB in
1655         uchar.h.
1656         * modules/c32tob: New file.
1657         * tests/test-uchar.c: Verify that _GL_LARGE_CHAR32_T is correctly
1658         defined.
1659         * tests/test-uchar-c++.cc: Include signature.h. Test the signature of
1660         c32tob.
1661         * modules/uchar-c++-tests (Files): Add tests/signature.h.
1662         * doc/posix-functions/wctob.texi: Mention the new module.
1664 2020-01-01  Bruno Haible  <bruno@clisp.org>
1666         locale C++ tests: Fix link error on AIX (regression from 2019-12-18).
1667         * modules/locale-c++-tests (Makefile.am): Link test-locale-c++ with
1668         $(LIB_SETLOCALE).
1670 2020-01-01  Bruno Haible  <bruno@clisp.org>
1672         hard-locale tests: Fix a conflict with the C++ tests.
1673         * modules/hard-locale-tests (Makefile.am): Build a program named
1674         'current-locale', not 'locale'.
1676 2020-01-01  Bruno Haible  <bruno@clisp.org>
1678         doc: Update documentation about wchar_t.
1679         * doc/*/*wc*.texi: Clarify that 64-bit AIX does not have a too small
1680         wchar_t type.
1682 2020-01-01  Bruno Haible  <bruno@clisp.org>
1684         mbrtowc tests: Fix typos.
1685         * tests/test-mbrtowc.c (main): Fix typo.
1686         * tests/test-mbrtowc-w32.c (test_one_locale): Likewise.
1688 2019-12-31  Paul Eggert  <eggert@cs.ucla.edu>
1690         maint: update copyright notices
1691         Before doing the following changes done by hand, I also ran ‘make
1692         update-copyright’ and ‘config/srclist-update <config/srclist.txt’
1693         to do most of the copyright years automatically.  A few upstream
1694         sources are still in 2019 but these should eventually be changed
1695         automatically too.
1696         * build-aux/declared.sh (func_version):
1697         * build-aux/libtool-next-version (func_version):
1698         * build-aux/run-test (func_version):
1699         Update these notices by hand.  Put just the last year
1700         in output of programs, as per GNU coding standards.
1702 2019-12-31  Bruno Haible  <bruno@clisp.org>
1704         uchar: Add C++ tests.
1705         * tests/test-uchar-c++.cc: New file.
1706         * tests/test-uchar-c++2.cc: New file.
1707         * modules/uchar-c++-tests: New file.
1709         uchar: Add tests.
1710         * tests/test-uchar.c: New file.
1711         * modules/uchar-tests: New file.
1713         uchar: New module.
1714         * lib/uchar.in.h: New file.
1715         * m4/uchar.m4: New file.
1716         * modules/uchar: New file.
1717         * doc/posix-headers/uchar.texi: Mention the new module.
1719 2019-12-30  Jim Meyering  <meyering@fb.com>
1721         localeinfo: ->simple would be wrong for LC_ALL=C
1722         That would lead to using unnecessary and expensive code paths in dfa.c.
1723         * lib/localeinfo.c (using_simple_locale): Fix recently-introduced logic
1724         error that would have made grep many times slower in the C locale.
1725         With this change, and a file created like this:
1726           yes 00 | head -10000000 > in
1727         Running grep as follows becomes more than 40 times faster:
1728           LC_ALL=C grep -Fw 0 in
1730 2019-12-30  Paul Eggert  <eggert@cs.ucla.edu>
1732         doc: document trouble with back-references
1733         * doc/regex.texi (Back-reference Operator): Mention bugs etc.
1735 2019-12-29  Paul Eggert  <eggert@cs.ucla.edu>
1737         doc: use “back-reference” for \1 etc.
1738         * doc/regex.texi: Consistently spell “back-reference” with
1739         a hyphen, since that’s how POSIX does it.
1741 2019-12-26  Jim Meyering  <meyering@fb.com>
1743         test-framework-sh: tighten an internal grep regexp
1744         * tests/init.sh (gl_shell_test_script_): Tighten the grep regexp
1745         that helps test for a working printf.
1747 2019-12-26  Bruno Haible  <bruno@clisp.org>
1749         test-framework-sh: Avoid /bin/sh on AIX 7.2 due to its printf built-in.
1750         Reported by Paul Eggert in
1751         <https://lists.gnu.org/archive/html/grep-devel/2019-12/msg00020.html>.
1752         Simplification by Jim Meyering.
1753         * tests/init.sh (gl_shell_test_script_): Add a test of printf of an
1754         octal escape sequence in a UTF-8 locale.
1756 2019-12-26  Paul Eggert  <eggert@cs.ucla.edu>
1758         mbrtowc: port better to narrow-wchar_t platforms
1759         * lib/mbrtowc.c (mbrtowc): On platforms like AIX 7.2, where
1760         wchar_t is too narrow to represent all the Unicode characters,
1761         consider a byte sequence for an out-of-wchar_t-range character to
1762         be an encoding error.  This fixes grep’s surrogate-pair test
1763         failure on AIX 7.2.
1765 2019-12-24  Bruno Haible  <bruno@clisp.org>
1767         localcharset: Avoid referencing rpl_setlocale on native Windows.
1768         * lib/localcharset.c (setlocale): Undefine.
1770 2019-12-24  Bruno Haible  <bruno@clisp.org>
1772         lock tests: Fix link error on HP-UX/hppa (regression from 2019-12-21).
1773         * m4/semaphore.m4: New file.
1774         * modules/lock-tests (Files): Add it.
1775         (configure.ac): Require gl_SEMAPHORE.
1776         (Makefile.am): Link test-lock with $(LIB_SEMAPHORE).
1778 2019-12-24  Paul Eggert  <eggert@cs.ucla.edu>
1780         strptime: fix typo in previous patch
1781         Problem and fix reported by Bruno Haible in:
1782         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00202.html
1783         * lib/strptime.c (day_of_the_week): Fix paren bug.
1785 2019-12-24  Bruno Haible  <bruno@clisp.org>
1787         setlocale-null: Make it easy to rely on the lock in another library.
1788         * lib/setlocale-lock.c: Do not define anything if OMIT_SETLOCALE_LOCK is
1789         defined.
1791 2019-12-23  Paul Eggert  <eggert@cs.ucla.edu>
1793         gethrxtime, mktime, nstrftime, strptime: tweak division performance
1794         Performanced analyzed by Bruno Haible in:
1795         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00200.html
1796         * config/srclist.txt: Do not sync mktime.c for now.
1797         * lib/mktime.c (shr, ydhms_diff):
1798         * lib/nstrftime.c (SHR, tm_diff, __strftime_internal):
1799         * lib/strptime.c (day_of_the_week):
1800         * lib/xtime.h (xtime_sec):
1801         Redo with neither ‘%’ nor conditional branches.
1803 2019-12-23  Bruno Haible  <bruno@clisp.org>
1805         setlocale-null: Export the lock function also on non-Windows platforms.
1806         * lib/setlocale-lock.c (DLL_EXPORTED): New macro.
1807         (gl_get_setlocale_null_lock): Declare as DLL_EXPORTED.
1808         * m4/setlocale_null.m4 (gl_PREREQ_SETLOCALE_LOCK): New macro.
1809         * modules/setlocale-null (configure.ac): Invoke it.
1810         (Files): Add m4/visibility.m4.
1812 2019-12-22  Paul Eggert  <eggert@cs.ucla.edu>
1814         gethrxtime: fix rounding bug with negative args
1815         Problem reported by Bruno Haible in:
1816         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00192.html
1817         * lib/xtime.h (xtime_sec): Simplify calculation and correct bug
1818         with negative rounding.  Common platforms can compute / and % with
1819         a single instruction, so the simplified code should be shorter and
1820         faster on these platforms anyway.
1822 2019-12-22  Bruno Haible  <bruno@clisp.org>
1824         gethrxtime: remove incorrect overflow detection
1825         * lib/xtime.h (xtime_make): Remove attempt to prevent internal
1826         integer overflow, as it didn’t suffice.  This reverts the xtime.h
1827         part of 2018-10-12T04:46:09Z!akim.demaille@gmail.com, which I
1828         cannot now see the need for anyway (even in cases where it works),
1829         as the patch is helpful only when the signs of S and NS disagree,
1830         and all callers pass nonnegative values for S and NS.
1832 2019-12-22  Bruno Haible  <bruno@clisp.org>
1834         setlocale-null: Add standalone include file.
1835         * lib/setlocale_null.h: New file, extracted from lib/locale.in.h.
1836         * lib/locale.in.h: Include setlocale_null.h.
1837         (SETLOCALE_NULL_MAX, SETLOCALE_NULL_ALL_MAX, setlocale_null_r,
1838         setlocale_null): Remove declarations.
1839         * lib/setlocale_null.c: Include setlocale_null.h.
1840         * lib/localename.c: Likewise.
1841         * modules/setlocale-null (Files): Add lib/setlocale_null.h.
1842         (Depends-on): Add snippet/arg-nonnull.
1843         (Include): Allow either "setlocale_null.h" or <locale.h>.
1845 2019-12-22  Bruno Haible  <bruno@clisp.org>
1847         strfmon_l: Fix test failures on FreeBSD and Cygwin.
1848         * m4/strfmon_l.m4 (gl_FUNC_STRFMON_L): Require gt_LOCALE_FR_UTF8. Add an
1849         AC_RUN_IFELSE test.
1850         * modules/strfmon_l (Files): Add locale-fr.m4, codeset.m4.
1851         * doc/posix-functions/strfmon_l.texi: Mention the FreeBSD and Cygwin
1852         problem.
1854 2019-12-22  Bruno Haible  <bruno@clisp.org>
1856         Prefer lib_SOURCES to unconditional AC_LIBOBJ.
1857         * modules/at-internal: Prefer a lib_SOURCES augmentation to an
1858         unconditional AC_LIBOBJ.
1859         * modules/selinux-at: Likewise.
1860         * modules/xmemdup0: Likewise.
1861         * modules/xstrtoll: Likewise.
1863 2019-12-22  Bruno Haible  <bruno@clisp.org>
1865         longlong: Mark module obsolete.
1866         * modules/longlong (Status, Notice): New sections.
1868         stdint: Assume that the compiler supports 'long long'.
1869         * lib/stdint.in.h (int64_t, uint64_t, intmax_t, uintmax_t, INT64_C,
1870         UINT64_C, INTMAX_C, UINTMAX_C): Assume HAVE_LONG_LONG_INT and
1871         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
1872         * m4/stdint.m4 (gl_STDINT_H): Don't require AC_TYPE_LONG_LONG_INT,
1873         AC_TYPE_UNSIGNED_LONG_LONG_INT.
1874         * modules/stdint (Files): Remove longlong.m4.
1875         (Makefile.am): Don't substitute HAVE_LONG_LONG_INT,
1876         HAVE_UNSIGNED_LONG_LONG_INT.
1878         inttypes-incomplete: Assume that the compiler supports 'long long'.
1879         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
1880         _SCNu64_PREFIX): Assume HAVE_LONG_LONG_INT and
1881         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
1882         * m4/inttypes.m4 (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): Assume
1883         HAVE_LONG_LONG_INT to be 1.
1884         * modules/inttypes-incomplete (Makefile.am): Don't substitute
1885         HAVE_LONG_LONG_INT, HAVE_UNSIGNED_LONG_LONG_INT.
1887         malloca: Assume that the compiler supports 'long long'.
1888         * lib/malloca.h: Assume HAVE_LONG_LONG_INT to be 1.
1889         * m4/malloca.m4 (gl_MALLOCA): Don't require AC_TYPE_LONG_LONG_INT.
1890         * modules/malloca (Files): Remove longlong.m4.
1891         * modules/relocatable-prog-wrapper (Files): Likewise.
1893         atoll: Assume that the compiler supports 'long long'.
1894         * m4/atoll.m4 (gl_FUNC_ATOLL): Don't require AC_TYPE_LONG_LONG_INT.
1895         * modules/atoll (Files): Remove longlong.m4.
1897         strtoll: Assume that the compiler supports 'long long'.
1898         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Don't require AC_TYPE_LONG_LONG_INT.
1899         * modules/strtoll (Files): Remove longlong.m4.
1901         strtoull: Assume that the compiler supports 'long long'.
1902         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Don't require
1903         AC_TYPE_UNSIGNED_LONG_LONG_INT.
1904         * modules/strtoull (Files): Remove longlong.m4.
1906         strtoimax, strtoumax: Assume that the compiler supports 'long long'.
1907         * lib/strtoimax.c: Assume HAVE_LONG_LONG_INT and
1908         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
1909         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Don't require
1910         AC_TYPE_LONG_LONG_INT.
1911         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't require
1912         AC_TYPE_UNSIGNED_LONG_LONG_INT.
1913         * modules/strtoimax (Files): Remove longlong.m4.
1914         * modules/strtoumax (Files): Likewise.
1916         xstrtoll: Assume that the compiler supports 'long long'.
1917         * lib/xstrtol.h (xstrtoll, xstrtoull): Declare unconditionally.
1918         * modules/xstrtoll (configure.ac): Don't invoke AC_TYPE_LONG_LONG_INT.
1920         vasnprintf: Assume that the compiler supports 'long long'.
1921         * lib/printf-args.h: Assume HAVE_LONG_LONG_INT to be 1.
1922         * lib/printf-args.c (PRINTF_FETCHARGS): Likewise.
1923         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
1924         * lib/vasnprintf.c (MAX_ROOM_NEEDED, VASNPRINTF): Likewise.
1925         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Don't
1926         require AC_TYPE_LONG_LONG_INT.
1927         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
1928         gl_PREREQ_VASNPRINTF): Likewise.
1929         * modules/vasnprintf (Files): Remove longlong.m4.
1930         * modules/c-vasnprintf (Files): Likewise.
1931         * modules/unistdio/u8-vasnprintf (Files): Likewise.
1932         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
1933         * modules/unistdio/u16-vasnprintf (Files): Likewise.
1934         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
1935         * modules/unistdio/u32-vasnprintf (Files): Likewise.
1936         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
1937         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
1939         gethrxtime: Assume that the compiler supports 'long long'.
1940         * lib/xtime.h (xtime_t): Define to 'long long int' always.
1941         (XTIME_PRECISION): Define to 1000000000 always.
1942         (xtime_make, xtime_sec): Optimize accordingly.
1943         * m4/gethrxtime.m4 (gl_XTIME): Don't require AC_TYPE_LONG_LONG_INT.
1944         * modules/gethrxtime (Files): Remove longlong.m4.
1946         integer_length*: Assume that the compiler supports 'long long'.
1947         * lib/integer_length.h (integer_length_ll): Declare unconditionally.
1948         * modules/integer_length (Files): Remove longlong.m4.
1949         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
1950         * modules/integer_length_l (Files): Remove longlong.m4.
1951         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
1952         * modules/integer_length_ll (Files): Remove longlong.m4.
1953         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
1955         count-one-bits: Assume that the compiler supports 'long long'.
1956         * lib/count-one-bits.h (count_one_bits_ll): Define unconditionally.
1957         * m4/count-one-bits.m4: Remove file.
1958         * modules/count-one-bits (Files): Remove it.
1959         (configure.ac): Don't invoke gl_COUNT_ONE_BITS.
1960         * tests/test-count-one-bits.c (main): Test count_one_bits_ll
1961         unconditionally.
1963         count-trailing-zeros: Assume that the compiler supports 'long long'.
1964         * lib/count-trailing-zeros.h (count_trailing_zeros_ll): Define
1965         unconditionally.
1966         * m4/count-trailing-zeros.m4: Remove file.
1967         * modules/count-trailing-zeros (Files): Remove it.
1968         (configure.ac): Don't invoke gl_COUNT_TRAILING_ZEROS.
1969         * tests/test-count-trailing-zeros.c (main): Test count_trailing_zeros_ll
1970         unconditionally.
1972         count-leading-zeros: Assume that the compiler supports 'long long'.
1973         * lib/count-leading-zeros.h (count_leading_zeros_ll): Define
1974         unconditionally.
1975         * m4/count-leading-zeros.m4: Remove file.
1976         * modules/count-leading-zeros (Files): Remove it.
1977         (configure.ac): Don't invoke gl_COUNT_LEADING_ZEROS.
1978         * tests/test-count-leading-zeros.c (main): Test count_leading_zeros_ll
1979         unconditionally.
1981 2019-12-22  Bruno Haible  <bruno@clisp.org>
1983         localcharset: Update support for OpenBSD.
1984         * lib/localcharset.c (alias_table): Map "US-ASCII" to "ASCII".
1986 2019-12-21  Bruno Haible  <bruno@clisp.org>
1988         pthread_sigmask: Avoid test failure on NetBSD 8.0.
1989         * tests/test-pthread_sigmask2.c (main): Skip the error handling test on
1990         NetBSD.
1991         * doc/posix-functions/pthread_sigmask.texi: Mention the NetBSD problem.
1993 2019-12-21  Bruno Haible  <bruno@clisp.org>
1995         threadlib: Improve code structure.
1996         * m4/threadlib.m4: Reorder macros. Add comments.
1998 2019-12-21  Bruno Haible  <bruno@clisp.org>
2000         threadlib: Fix LIBMULTITHREAD on FreeBSD with --enable-threads=isoc.
2001         * m4/threadlib.m4 (gl_STDTHREADLIB_BODY): New macro (some code moved
2002         here from m4/threads.m4).
2003         (gl_THREADLIB_BODY): Don't test whether mtx_lock and cnd_timedwait exist
2004         in libc. Instead, rely on gl_STDTHREADLIB_BODY.
2005         (gl_STDTHREADLIB): New macro.
2006         * m4/threads.m4 (gl_THREADS_H): Require gl_STDTHREADLIB instead of
2007         gl_THREADLIB_BODY and gl_YIELD. Don't set LIBSTDTHREAD here.
2009 2019-12-21  Bruno Haible  <bruno@clisp.org>
2011         sched_yield: Don't depend on threadlib and yield.
2012         * m4/threadlib.m4 (gl_PTHREADLIB): Document that it sets
2013         LIB_SCHED_YIELD.
2014         (gl_PTHREADLIB_BODY): Set LIB_SCHED_YIELD (code moved here from
2015         m4/yield.m4).
2016         * m4/sched_yield.m4 (gl_FUNC_SCHED_YIELD): Require gl_PTHREADLIB, not
2017         gl_THREADLIB and gl_YIELD.
2018         * m4/yield.m4 (gl_YIELD): Require gl_PTHREADLIB. Determine YIELD_LIB
2019         based on $(LIB_SCHED_YIELD).
2020         * m4/threads.m4 (gl_THREADS_H): Don't require gl_YIELD. Use
2021         $(LIB_SCHED_YIELD), not $(YIELD_LIB).
2022         * modules/sched_yield (Files): Remove yield.m4. Add threadlib.m4.
2023         (Depends-on): Remove threadlib.
2024         (Link): Mention $(LIB_SCHED_YIELD), not $(YIELD_LIB).
2025         * modules/threads-h (Files): Remove m4/yield.m4.
2026         * modules/pthread-cond-tests (Makefile.am): Link the programs against
2027         $(LIB_SCHED_YIELD), not $(YIELD_LIB).
2028         * modules/pthread-mutex-tests (Makefile.am): Likewise.
2029         * modules/pthread-once-tests (Makefile.am): Likewise.
2030         * modules/pthread-rwlock-tests (Makefile.am): Likewise.
2031         * modules/pthread-tss-tests (Makefile.am): Likewise.
2033 2019-12-21  Bruno Haible  <bruno@clisp.org>
2035         threads-h: Don't depend on threadlib.
2036         * modules/threads-h (configure.ac-early): Invoke gl_ANYTHREADLIB_EARLY,
2037         not gl_THREADLIB_EARLY.
2039 2019-12-21  Bruno Haible  <bruno@clisp.org>
2041         nl_langinfo tests: Fix link error (regression from 2019-12-18).
2042         * modules/nl_langinfo-tests (Makefile.am): Link also test-nl_langinfo
2043         with $(LIB_SETLOCALE).
2045 2019-12-21  Bruno Haible  <bruno@clisp.org>
2047         threadlib: Remove unused dependency (left over from 2019-07-06).
2048         * modules/threadlib (Depends-on): Remove havelib.
2050 2019-12-21  Bruno Haible  <bruno@clisp.org>
2052         New convention for multithread-safety tests.
2053         * tests/test-setlocale_null-mt-one.c: Renamed from
2054         tests/test-setlocale_null-one.c.
2055         * tests/test-setlocale_null-mt-all.c: Renamed from
2056         tests/test-setlocale_null-all.c.
2057         * modules/setlocale-null-tests (Files, Makefile.am): Update.
2059 2019-12-21  Bruno Haible  <bruno@clisp.org>
2061         quotearg tests: Fix conflict with hard-locale tests.
2062         * tests/testlocale: Renamed from tests/locale.
2063         * modules/quotearg-tests (Files): Update.
2064         * tests/test-quotearg.sh (LOCALEDIR): Likewise.
2066 2019-12-21  Bruno Haible  <bruno@clisp.org>
2068         pthread-thread, lock: On z/OS, use PTHREAD_RWLOCK_INITIALIZER_NP.
2069         Reported by Daniel Richard G. in
2070         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00001.html>
2071         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00167.html>
2072         * lib/pthread.in.h (PTHREAD_RWLOCK_INITIALIZER): Define to
2073         PTHREAD_RWLOCK_INITIALIZER_NP when possible.
2074         * lib/glthread/lock.h: Allow PTHREAD_RWLOCK_INITIALIZER_NP as an
2075         alternative to PTHREAD_RWLOCK_INITIALIZER.
2076         * lib/glthread/lock.c: Likewise.
2078 2019-12-21  Bruno Haible  <bruno@clisp.org>
2080         memcmp tests: Work around the clang bug.
2081         * tests/test-memcmp.c (main): Use a volatile function pointer to disable
2082         the clang optimization.
2084 2019-12-20  Bruno Haible  <bruno@clisp.org>
2086         localcharset: Add support for z/OS encoding names.
2087         * lib/localcharset.h: Mention which encodings are used as locale
2088         encodings on z/OS.
2090 2019-12-20  Bruno Haible  <bruno@clisp.org>
2092         iconv_open: Add support for z/OS encoding names.
2093         Reported by Daniel Richard G. in
2094         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00172.html>.
2095         * lib/iconv_open-zos.gperf: New file.
2096         * modules/iconv_open (Files): Add iconv_open-zos.gperf.
2097         (Makefile.am): Add rules for generating iconv_open-zos.h from it.
2098         * lib/iconv_open.c (ICONV_FLAVOR_ZOS): New macro.
2099         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): On z/OS, use ICONV_FLAVOR_ZOS.
2100         * doc/posix-functions/iconv_open.texi: Mention z/OS.
2102 2019-12-20  Bruno Haible  <bruno@clisp.org>
2104         doc: Document the problem of the per-thread locale functions on z/OS.
2105         * doc/posix-functions/uselocale.texi: Document the z/OS problem.
2106         * doc/posix-functions/newlocale.texi: Likewise.
2107         * doc/posix-functions/duplocale.texi: Likewise.
2108         * doc/posix-functions/freelocale.texi: Likewise.
2110 2019-12-20  Bruno Haible  <bruno@clisp.org>
2112         localename, gettext: Fix host_os value for z/OS.
2113         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): Fix host_os value in
2114         cross-configuration code.
2116 2019-12-19  Jim Meyering  <meyering@fb.com>
2118         nstrftime: avoid a shadowing warning
2119         * lib/nstrftime.c (libc_hidden_def): Rename inner "i" to "j",
2120         to avoid shadowing an "i" declared hundreds of lines above.
2122 2019-12-19  Paul Eggert  <eggert@cs.ucla.edu>
2124         dfa: struct dfamust now uses flexible array
2125         * lib/dfa.c: Include flexmember.h.
2126         (dfamust, dfamustfree): Adjust to struct dfamust change.
2127         This saves a call to malloc+free.
2128         * lib/dfa.h (struct dfamust): Make the final member a
2129         flexible array member.
2130         * modules/dfa (Depends-on): Add flexmember.
2132         dfa: fast->small for array elements
2133         * lib/dfa.c (charclass_word): Use uint_least64_t not uint_fast64_t,
2134         since this type is used in arrays.  This change is more for
2135         documentation than for any practical effect, since the two types
2136         are the same on all known platforms.
2138 2019-12-19  Bruno Haible  <bruno@clisp.org>
2140         iconv tests: Test canonicalized, not system-dependent, encoding names.
2141         * tests/test-iconv.c (main): Revert part of the 2016-08-17 patch.
2142         * modules/iconv-tests (Depends-on): Add iconv_open.
2144 2019-12-18  Bruno Haible  <bruno@clisp.org>
2146         localename: Fix test failure on AIX 7.2.
2147         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Enable nameless
2148         locales on AIX.
2149         * lib/localename.c (gl_locale_name_thread_unsafe): Handle nameless
2150         locales on AIX.
2152 2019-12-18  Paul Eggert  <eggert@cs.ucla.edu>
2154         Improve port of AC_C_RESTRICT to Oracle C++
2155         Problem reported by Christian Biesinger in:
2156         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00159.html
2157         * m4/gnulib-common.m4 (AC_C_RESTRICT): Port better to
2158         Oracle Developer Studio C++ 12.5 or later.
2160 2019-12-18  Bruno Haible  <bruno@clisp.org>
2162         wchar: Fix test failures on AIX and MSVC (regression from 2019-12-07).
2163         * lib/wchar.in.h (GNULIB_defined_mbstate_t): Do define on AIX and MSVC.
2165 2019-12-18  Bruno Haible  <bruno@clisp.org>
2167         localename: Ensure multithread-safety in future changes.
2168         * lib/localename.c (setlocale): Reference the system's setlocale().
2169         (get_locale_t_name): Invoke setlocale_null instead of setlocale.
2170         (gl_locale_name_posix): Likewise.
2171         * modules/localename (Depends-on): Add setlocale-null.
2173 2019-12-18  Bruno Haible  <bruno@clisp.org>
2175         setlocale-null: Make API more useful.
2176         * lib/locale.in.h (setlocale_null_r): Renamed from setlocale_null. All
2177         callers changed.
2178         (setlocale_null): New declaration.
2179         * lib/setlocale_null.c (setlocale_null_androidfix): New function,
2180         extracted from setlocale_null_unlocked.
2181         (setlocale_null_unlocked): Invoke it.
2182         (setlocale_null_r): Renamed from setlocale_null.
2183         (setlocale_null): New function, extracted from setlocale_mtsafe in
2184         setlocale.c.
2185         * lib/setlocale.c: Don't include <errno.h>.
2186         (setlocale_mtsafe): Invoke setlocale_null.
2187         * lib/setlocale-lock.c: Update comments.
2188         * doc/posix-functions/setlocale.texi: Mention both functions.
2190 2019-12-18  Bruno Haible  <bruno@clisp.org>
2192         localename: Optimize code for native Windows.
2193         * lib/localename.c (gl_locale_name_posix): Remove handling of LC_ALL
2194         category (not allowed here).
2196 2019-12-18  Bruno Haible  <bruno@clisp.org>
2198         setlocale: Make calls with NULL argument multithread-safe.
2199         * lib/setlocale.c: Include <errno.h>.
2200         (setlocale_mtsafe): New function.
2201         (setlocale_unixlike): Invoke setlocale_mtsafe instead of setlocale.
2202         (setlocale_improved): Renamed from rpl_setlocale.
2203         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Require gl_FUNC_SETLOCALE_NULL.
2204         Set and define NEED_SETLOCALE_IMPROVED and NEED_SETLOCALE_MTSAFE. Set
2205         LIB_SETLOCALE.
2206         * modules/setlocale (Depends-on): Add setlocale-null. Update conditions.
2207         (Link): New section.
2208         * tests/locale.c: Undefine setlocale.
2209         * tests/test-setlocale_null-one.c: Likewise.
2210         * tests/test-setlocale_null-all.c: Likewise.
2211         * modules/setlocale-tests (Makefile.am): Link the test programs with
2212         $(LIB_SETLOCALE).
2213         * modules/astrxfrm-tests (Makefile.am): Likewise.
2214         * modules/btowc-tests (Makefile.am): Likewise.
2215         * modules/c-ctype-tests (Makefile.am): Likewise.
2216         * modules/c-snprintf-tests (Makefile.am): Likewise.
2217         * modules/c-strcase-tests (Makefile.am): Likewise.
2218         * modules/c-vasprintf-tests (Makefile.am): Likewise.
2219         * modules/c-vsnprintf-tests (Makefile.am): Likewise.
2220         * modules/c-xvasprintf-tests (Makefile.am): Likewise.
2221         * modules/dfa-tests (Makefile.am): Likewise.
2222         * modules/duplocale-tests (Makefile.am): Likewise.
2223         * modules/hard-locale-tests (Makefile.am): Likewise.
2224         * modules/localcharset-tests (Makefile.am): Likewise.
2225         * modules/localename-tests (Makefile.am): Likewise.
2226         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
2227         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
2228         * modules/mbrtowc-tests (Makefile.am): Likewise.
2229         * modules/mbscasecmp-tests (Makefile.am): Likewise.
2230         * modules/mbscasestr-tests (Makefile.am): Likewise.
2231         * modules/mbschr-tests (Makefile.am): Likewise.
2232         * modules/mbscspn-tests (Makefile.am): Likewise.
2233         * modules/mbsinit-tests (Makefile.am): Likewise.
2234         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
2235         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
2236         * modules/mbspbrk-tests (Makefile.am): Likewise.
2237         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
2238         * modules/mbsrchr-tests (Makefile.am): Likewise.
2239         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
2240         * modules/mbsspn-tests (Makefile.am): Likewise.
2241         * modules/mbsstr-tests (Makefile.am): Likewise.
2242         * modules/nl_langinfo-tests (Makefile.am): Likewise.
2243         * modules/quotearg-tests (Makefile.am): Likewise.
2244         * modules/regex-tests (Makefile.am): Likewise.
2245         * modules/strfmon_l-tests (Makefile.am): Likewise.
2246         * modules/strtod-tests (Makefile.am): Likewise.
2247         * modules/strtold-tests (Makefile.am): Likewise.
2248         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
2249         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
2250         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
2251         * modules/unigbrk/ulc-grapheme-breaks-tests (Makefile.am): Likewise.
2252         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
2253         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
2254         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
2255         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
2256         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
2257         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
2258         * modules/wcrtomb-tests (Makefile.am): Likewise.
2259         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
2260         * modules/wcsrtombs-tests (Makefile.am): Likewise.
2261         * modules/wcwidth-tests (Makefile.am): Likewise.
2262         * doc/posix-functions/setlocale.texi: Mention that the multithread-
2263         safety fix is also available in module 'setlocale'.
2265 2019-12-18  Bruno Haible  <bruno@clisp.org>
2267         hard-locale: Make multithread-safe.
2268         * lib/hard-locale.h (hard_locale): Move documentation to here.
2269         * lib/hard-locale.c: Don't include <stdlib.h>.
2270         (GLIBC_VERSION): Remove macro.
2271         (hard_locale): Assume that all systems name the "C" and "POSIX" locales
2272         "C" or "POSIX". Invoke setlocale_null instead of setlocale.
2273         * modules/hard-locale (Depends-on): Remove strdup. Add setlocale-null.
2274         (configure.ac): Require gl_FUNC_SETLOCALE_NULL. Set LIB_HARD_LOCALE.
2275         (Link): New section.
2276         * modules/hard-locale-tests (Makefile.am): Link test-hard-locale against
2277         $(LIB_HARD_LOCALE).
2279 2019-12-18  Bruno Haible  <bruno@clisp.org>
2281         hard-locale: Avoid test failure on Haiku.
2282         * tests/test-hard-locale.c (test_one): Treat Haiku like recent OpenBSD.
2284 2019-12-18  Bruno Haible  <bruno@clisp.org>
2286         setlocale-null: Handle NULL result from setlocale.
2287         * lib/locale.in.h (setlocale_null): Document EINVAL return value.
2288         * lib/setlocale_null.c (setlocale_null_unlocked): Handle NULL result
2289         from setlocale or _wsetlocale.
2291 2019-12-18  Bruno Haible  <bruno@clisp.org>
2293         hard-locale: Add test.
2294         * tests/test-hard-locale.c: New file.
2295         * tests/locale.c: New file.
2296         * modules/hard-locale-tests: New file.
2298 2019-12-17  Paul Eggert  <eggert@cs.ucla.edu>
2300         dfa: do not match invalid UTF-8
2301         * lib/dfa.c (struct dfa): Grow utf8_anychar_classes member array
2302         from 5 to 9 tokens; this is needed due to the changes to
2303         add_utf8_anychar.
2304         (charclass_index): 2nd arg is now pointer-to-const.
2305         (add_utf8_anychar): Match only valid UTF-8 byte sequences
2306         instead of allowing overlong encodings or surrogate halves.
2308         dfa: simplify charclass by assuming C99
2309         * lib/dfa.c (CHARCLASS_WORD_BITS): Now always 64.
2310         (charclass_word): Now always uint_fast64_t.
2311         (CHARCLASS_PAIR): Remove.
2312         (CHARCLASS_INIT): Take 4 arguments instead of 8.  All uses changed.
2314         fts: tune via calloc
2315         * lib/fts.c (fts_open): Prefer calloc to malloc + memset.
2317         dfa: tune via xzalloc
2318         * lib/dfa.c (dfaoptimize): Prefer xzalloc to xmalloc + memset.
2320 2019-12-17  Bruno Haible  <bruno@clisp.org>
2322         localcharset: Fix multithread-safety bug on Windows and OS/2.
2323         * lib/localcharset.h (locale_charset): Clarify when the result becomes
2324         invalid.
2325         * lib/localcharset.c (locale_charset): Use a stack-allocated buffer to
2326         assemble the result.
2328 2019-12-17  Bruno Haible  <bruno@clisp.org>
2330         localcharset: Optimize code for native Windows.
2331         * lib/localcharset.c (locale_charset): Don't bother calling
2332         setlocale (LC_ALL, NULL) since we're not interested in its result.
2334 2019-12-17  Bruno Haible  <bruno@clisp.org>
2336         nl_langinfo: Fix multithread-safety bug on OpenBSD 3.8.
2337         * lib/nl_langinfo.c (ctype_codeset): Invoke setlocale_null instead of
2338         setlocale.
2339         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Require
2340         gl_FUNC_SETLOCALE_NULL. Set LIB_NL_LANGINFO.
2341         * modules/nl_langinfo (Depends-on): Add setlocale-null.
2343 2019-12-17  Bruno Haible  <bruno@clisp.org>
2345         nl_langinfo: Fix multithread-safety bug on mingw and MSVC.
2346         * lib/nl_langinfo.c (ctype_codeset, rpl_nl_langinfo): Use a
2347         stack-allocated buffer to assemble each result and different static
2348         buffers to return it.
2349         * tests/test-nl_langinfo-mt.c: New file.
2350         * modules/nl_langinfo-tests (Files): Add it.
2351         (Depends-on): Add thread, nanosleep.
2352         (Makefile.am): Build test-nl_langinfo-mt test.
2354 2019-12-17  Bruno Haible  <bruno@clisp.org>
2356         langinfo: Document more details.
2357         * doc/posix-headers/langinfo.texi: List platform details.
2358         * doc/posix-functions/nl_langinfo.texi: Likewise.
2360 2019-12-17  Bruno Haible  <bruno@clisp.org>
2362         mbsinit: Fix compilation error in mingw-w64 7.0 with _UCRT defined.
2363         Reported by Tom Kacvinsky <tom.kacvinsky@vector.com>
2364         and Martin Storsjö <martin@martin.st>
2365         in <https://savannah.gnu.org/bugs/?57406>.
2366         * lib/mbsinit.c: Accommodate an MSVC-like mbstate_t definition with
2367         mingw.
2369 2019-12-17  Bruno Haible  <bruno@clisp.org>
2371         glob: Avoid warning on mingw.
2372         Reported by Christian Biesinger <cbiesinger@google.com> in
2373         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00122.html>.
2374         * lib/glob.c (__stat64): Undefine first.
2376 2019-12-17  Paul Eggert  <eggert@cs.ucla.edu>
2378         xalloc: tune xzalloc for fresh allocations
2379         * lib/xmalloc.c (xzalloc): Use xcalloc rather than xmalloc+memset,
2380         because when the memory is freshly allocated from the OS via sbrk
2381         or mmap, calloc can avoid doing the memset.
2383         dfa: new function dfacopysyntax
2384         * lib/dfa.c (struct dfa): Move syntax member later so
2385         that dfacopysyntax can easily clear earlier members.
2386         (dfacopysyntax): New function, used by Gawk.
2388 2019-12-16  Paul Eggert  <eggert@cs.ucla.edu>
2390         dfa: port _GL_ATTRIBUTE_MALLOC to Gawk
2391         Gawk does not use Gnulib, and does not define _GL_ATTRIBUTE_MALLOC.
2392         * lib/dfa.h (_GL_ATTRIBUTE_MALLOC): Define to empty
2393         if not already defined.
2395         dfa: remove one dependency on MB_CUR_MAX
2396         * lib/dfa.c (dfamust): No need to refer to MB_CUR_MAX here.
2398         dfa: remove struct lexer_state.cur_mb_len
2399         * lib/dfa.c (struct lexer_state): Remove cur_mb_len member,
2400         as it’s not needed and the code is simpler without it.
2401         All uses removed.
2403 2019-12-16  Bruno Haible  <bruno@clisp.org>
2405         setlocale-null: Remove need for -lpthread on musl libc, *BSD, Haiku.
2406         Reported by Arnold Robbins <arnold@skeeve.com>.
2407         * lib/setlocale_null.c (c11_threads_in_use, pthread_in_use): New macros,
2408         copied from lib/glthread/lock.h.
2409         (pthread_mutex_lock, pthread_mutex_unlock): Mark as weak.
2410         (setlocale_null_with_lock): If pthread_in_use() is false, use
2411         setlocale_null_unlocked directly.
2412         * m4/threadlib.m4 (gl_WEAK_SYMBOLS): New macro, extracted from
2413         gl_THREADLIB_BODY. Define HAVE_WEAK_SYMBOLS.
2414         (gl_THREADLIB_BODY): Invoke gl_WEAK_SYMBOLS.
2415         * m4/setlocale_null.m4 (gl_FUNC_SETLOCALE_NULL): Invoke gl_WEAK_SYMBOLS.
2416         Set LIB_SETLOCALE_NULL to empty if weak symbols are supported.
2417         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Add comment.
2419 2019-12-16  Paul Eggert  <eggert@cs.ucla.edu>
2421         dfa: make dfasyntax thread-safe
2422         Problem reported by Bruno Haible in:
2423         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00099.html
2424         * lib/dfa.c: Do not include locale.h.
2425         (struct dfa): Remove simple_locale member.
2426         All uses replaced by localeinfo.simple.
2427         (using_simple_locale): Remove; now present (with some
2428         changes) in localeinfo.c.
2429         (dfasyntax): No need to initialize removed member.
2431         localeinfo: record whether locale is simple
2432         * lib/localeinfo.c (using_simple_locale): New function,
2433         copied here from lib/dfa.c but with a change: it uses
2434         strcoll for its heuristic, instead of using setlocale.
2435         This lets it be thread-safe.
2436         * lib/localeinfo.h (struct localeinfo): New member ‘simple’.
2438 2019-12-15  Bruno Haible  <bruno@clisp.org>
2440         duplocale: Fix multithread-safety bug on AIX.
2441         * lib/duplocale.c: Don't include <stdlib.h>.
2442         (rpl_duplocale): Invoke setlocale_null instead of setlocale.
2443         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Require gl_FUNC_SETLOCALE_NULL.
2444         Set LIB_DUPLOCALE.
2445         * modules/duplocale (Depends-on): Add setlocale-null.
2446         (Link): New section.
2447         * modules/duplocale-tests (Makefile.am): Link test-duplocale with
2448         $(LIB_DUPLOCALE).
2450 2019-12-15  Bruno Haible  <bruno@clisp.org>
2452         setlocale-null: Add tests.
2453         * tests/test-setlocale_null.c: New file.
2454         * tests/test-setlocale_null-one.c: New file.
2455         * tests/test-setlocale_null-all.c: New file.
2456         * modules/setlocale-null-tests: New file.
2458         setlocale-null: New module.
2459         * lib/locale.in.h (SETLOCALE_NULL_MAX, SETLOCALE_NULL_ALL_MAX,
2460         setlocale_null): New declarations.
2461         * lib/setlocale_null.c: New file.
2462         * lib/setlocale-lock.c: New file.
2463         * m4/threadlib.m4 (gl_PTHREADLIB_BODY): Define C macro HAVE_PTHREAD_API.
2464         * m4/setlocale_null.m4: New file.
2465         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize
2466         GNULIB_SETLOCALE_NULL.
2467         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE_NULL.
2468         * modules/setlocale-null: New file.
2469         * doc/posix-functions/setlocale.texi: Mention the new module.
2471 2019-12-15  Bruno Haible  <bruno@clisp.org>
2473         lock tests: Skip test when no multithreading is enabled.
2474         * tests/test-rwlock1.c: Skip the test when no multithreading is enabled.
2476 2019-12-14  Bruno Haible  <bruno@clisp.org>
2478         locale, duplocale, localename: Fix last patch.
2479         Reported by Daniel Richard G. in
2480         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00093.html>.
2481         * lib/locale.in.h (HAVE_WORKING_NEWLOCALE, HAVE_WORKING_DUPLOCALE):
2482         Don't define if locale_t does not exist.
2484 2019-12-13  Bruno Haible  <bruno@clisp.org>
2486         locale, duplocale, localename: Fix errors if locale_t does not exist.
2487         Reported by Daniel Richard G. in
2488         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00078.html>.
2489         * lib/locale.in.h (HAVE_WORKING_NEWLOCALE, HAVE_WORKING_DUPLOCALE): New
2490         macros.
2491         * tests/test-locale.c: Test HAVE_WORKING_NEWLOCALE instead of
2492         HAVE_NEWLOCALE.
2493         * tests/test-localename.c: Likewise.
2494         * tests/test-duplocale.c: Test HAVE_WORKING_DUPLOCALE instead of
2495         HAVE_DUPLOCALE.
2496         * tests/test-locale-c++.cc: Likewise.
2498 2019-12-13  Bruno Haible  <bruno@clisp.org>
2500         wcstok: Fix test failure on HP-UX.
2501         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Set REPLACE_WCSTOK to 1 on HP-UX.
2502         * doc/posix-functions/wcstok.texi: Mention the HP-UX bug.
2504 2019-12-12  Bruno Haible  <bruno@clisp.org>
2506         strtod, strtold tests: Avoid test failure on AIX 7.2.
2507         * tests/test-strtod1.c (main): Allow implementations in which ',' and
2508         '.' both are radix characters.
2509         * tests/test-strtold1.c (main): Likewise.
2511 2019-12-12  Paul Eggert  <eggert@cs.ucla.edu>
2513         dfa: prefer ptrdiff_t for API, too
2514         Also, use ‘idx_t’ for ptrdiff_t values that must be nonnegative,
2515         but do this only for internal use for now.
2516         * NEWS: Mention the API change.
2517         * lib/dfa.c (idx_t, IDX_MAX): New type and max value, for internal
2518         use for now.  Use them instead of ptrdiff_t and PTRDIFF_MAX for
2519         values known to be nonnegative.
2520         (dfaparse, dfaexec_mb, dfaexec_sb, dfaexec_noop, dfaexec):
2521         Prefer idx_t or ptrdiff_t to size_t for API.
2522         * lib/dfa.h (dfaparse, dfacomp, dfaexec):
2523         Prefer ptrdiff_t to size_t for API.
2525         stdalign: port to xlclang 16.01
2526         Problem reportd by Bruno Haible in:
2527         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00064.html
2528         * lib/stdalign.in.h (_Alignas): Do not use __attribute__
2529         ((__aligned__ (...))) with xlclang, as a top-level
2530         ‘char __attribute__ ((__aligned__ (8))) c;’ does not work with
2531         xlclang version 16.01.0000.0001; the alignment directive is ignored.
2533 2019-12-12  Bruno Haible  <bruno@clisp.org>
2535         duplocale: Fix test failure on AIX 7.2 with xlclang.
2536         * lib/duplocale.c: Include <stdlib.h>.
2537         (rpl_duplocale): Use a heap-allocated copy of the first setlocale return
2538         value.
2540 2019-12-12  Bruno Haible  <bruno@clisp.org>
2542         stddef: Document the AIX xlc issue.
2543         * doc/posix-headers/stddef.texi: Document the NULL issue with AIX xlc.
2545 2019-12-12  Bruno Haible  <bruno@clisp.org>
2547         duplocale: Don't attempt to override if locale_t does not exist.
2548         Reported by Daniel Richard G. in
2549         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00039.html>.
2550         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): If locale_t does not exist, set
2551         HAVE_DUPLOCALE to 0.
2553 2019-12-12  Bruno Haible  <bruno@clisp.org>
2555         wcwidth: Avoid test failure on AIX 7.2.
2556         * tests/test-wcwidth.c (main): Don't fail if wcwidth(0x200B) is
2557         negative.
2558         * doc/posix-functions/wcwidth.texi: Mention the AIX issue.
2560 2019-12-12  Bruno Haible  <bruno@clisp.org>
2562         ilogbl: Work around Cygwin bug.
2563         * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Test whether ilogbl(0.0L) is
2564         correct.
2565         * doc/posix-functions/ilogbl.texi: Mention the Cygwin bug.
2567 2019-12-12  Bruno Haible  <bruno@clisp.org>
2569         strtold: Work around Cygwin bug.
2570         * m4/strtold.m4 (gl_FUNC_STRTOLD): Add test for the underflow problem.
2571         If it is present, define STRTOLD_HAS_UNDERFLOW_BUG.
2572         * lib/strtod.c (HAVE_UNDERLYING_STRTOD): Set to 0 if
2573         STRTOLD_HAS_UNDERFLOW_BUG is defined.
2574         * doc/posix-functions/strtold.texi: Mention the Cygwin bug.
2576 2019-12-12  Bruno Haible  <bruno@clisp.org>
2578         strtold: Fix autoconf test.
2579         * m4/strtold.m4 (gl_FUNC_STRTOLD): Test strtold, not strtod.
2581 2019-12-11  Bruno Haible  <bruno@clisp.org>
2583         fsync tests: Skip test that is known to fail.
2584         * doc/posix-functions/fsync.texi: Update list of platforms.
2585         * tests/test-fsync.c (main): Skip test with read-only file descriptors
2586         that is known to fail on AIX and Cygwin.
2588 2019-12-11  Bruno Haible  <bruno@clisp.org>
2590         getaddrinfo: Fix calling convention in 32-bit mode on native Windows.
2591         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Test whether getaddrinfo has a
2592         non-POSIX signature. If so, set REPLACE_GETADDRINFO. Define
2593         HAVE_GETADDRINFO as a C macro.
2594         * lib/netdb.in.h (getaddrinfo, freeaddrinfo): If REPLACE_GETADDRINFO,
2595         declare as replacement functions.
2596         * lib/getaddrinfo.c (getaddrinfo, freeaddrinfo): If HAVE_GETADDRINFO,
2597         define as no-op overrides.
2598         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize REPLACE_GETADDRINFO.
2599         * modules/netdb (Makefile.am): Substitute REPLACE_GETADDRINFO.
2600         * modules/getaddrinfo (Depends-on, configure.ac): Test
2601         REPLACE_GETADDRINFO.
2602         * doc/posix-functions/getaddrinfo.texi: Mention calling convention
2603         problem.
2604         * doc/posix-functions/freeaddrinfo.texi: Mention header file and calling
2605         convention problems.
2607 2019-12-11  Paul Eggert  <eggert@cs.ucla.edu>
2609         dfa: prefer signed integers for internals
2610         Signed integers can be checked more easily for integer overflow.
2611         * lib/dfa.c (position, struct lexer_state, struct parser_state)
2612         (struct dfa, mbs_to_wchar, fetch_wc, parse_bracket_exp)
2613         (struct lexptr, lex, addtok_mb, add_utf8_anychar, atom)
2614         (nsubtoks, copytoks, closure, alloc_position_set, delete)
2615         (replace, state_index, epsclosure, charclass_context)
2616         (state_separate_contexts, merge_nfa_state, dfaoptimize)
2617         (dfaanalyze, build_state, dfaexec_main, dfa_supported)
2618         (maybe_disable_superset_dfa, dfassbuild, dfafree, enlist)
2619         (comsubs, inboth, allocmust):
2620         Prefer a signed to an unsigned integer when calculating indexes,
2621         unless the integer is part of the external API (a bigger deal,
2622         and to be done later).
2624         dfa: fix index overflow
2625         * lib/dfa.c (compare): Avoid integer overflow when analyzing
2626         very large regular expressions.
2628         dfa: update commentary for previous change
2629         * NEWS: Mention the change.
2630         * lib/dfa.c, lib/dfa.h (dfaparse, dfamust, dfacomp): Update comments.
2632 2019-12-11  Norihiro Tanaka  <noritnk@kcn.ne.jp>
2634         dfa: separate parse and compile phase
2635         ‘dfamust’ must be called after parsing and before tokens are
2636         reordered, but both are executed in the compilation phase.
2637         Token reordering was introduced in Gnulib commit
2638         2018-10-22T15:01:08Z!noritnk@kcn.ne.jp
2639         (5c7a0371823876cca7a1347fa09ca26bbbff0c98).
2640         * lib/dfa.c (dfaparse): Change it to global function.
2641         (dfacomp): If first argument is NULL, skip parse.
2642         * lib/dfa.h: (dfaparse): Add a prototype.
2644 2019-12-11  Bruno Haible  <bruno@clisp.org>
2646         unistd tests: Fix link error on MSVC.
2647         * modules/unistd-c++-tests (Makefile.am): Link test-unistd-c++ against
2648         $(LIB_GETLOGIN).
2650 2019-12-11  Bruno Haible  <bruno@clisp.org>
2652         doc: Document that ISO C or POSIX substitutes are supported in C++ mode.
2653         * doc/gnulib-intro.texi (Various Kinds of Modules): Document that ISO C
2654         and POSIX substitutes are supported in C++ mode.
2655         * NEWS: Likewise.
2657 2019-12-11  Bruno Haible  <bruno@clisp.org>
2659         stddef: Fix compilation error in C++ mode on MSVC.
2660         * lib/stddef.in.h (max_align_t): With MSVC in C++ mode, don't define it;
2661         instead, include <cstddef>.
2663 2019-12-11  Bruno Haible  <bruno@clisp.org>
2665         unistd: Fix compilation error in C++ mode on MSVC.
2666         * lib/unistd.in.h: Don't do include[_next] <unistd.h> if the platform
2667         does not have <unistd.h>.
2669 2019-12-11  Bruno Haible  <bruno@clisp.org>
2671         locale: Fix compilation error in C++ mode on MSVC.
2672         * m4/locale_h.m4 (gl_LOCALE_H): Don't set REPLACE_STRUCT_LCONV on MSVC.
2673         * lib/locale.in.h (int_p_cs_precedes, int_p_sign_posn,
2674         int_p_sep_by_space, int_n_cs_precedes, int_n_sign_posn,
2675         int_n_sep_by_space): Define as macros on MSVC.
2677 2019-12-11  Bruno Haible  <bruno@clisp.org>
2679         wchar: Fix compilation error in C++ mode on MSVC.
2680         * lib/wchar.in.h (mbstate_t): Don't override on MSVC.
2682 2019-12-11  Bruno Haible  <bruno@clisp.org>
2684         pthread-thread: Fix compilation error in C++ mode on MSVC.
2685         * lib/pthread.in.h (pthread_exit): Don't use _Noreturn in the
2686         _GL_CXXALIAS_RPL invocation.
2688 2019-12-08  Bruno Haible  <bruno@clisp.org>
2690         Fix compilation errors in C++ mode on Haiku.
2691         * lib/stdio.in.h (vdprintf): Disable _GL_CXXALIASWARN invocation on
2692         non-glibc systems.
2693         * lib/spawn.in.h (posix_spawnattr_getschedpolicy,
2694         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
2695         posix_spawnattr_setschedparam): Likewise.
2696         * lib/stdlib.in.h (random, initstate_r, setstate_r): Use
2697         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
2698         * lib/unistd.in.h (usleep): Likewise.
2700 2019-12-08  Bruno Haible  <bruno@clisp.org>
2702         Fix compilation errors in 32-bit C++ mode on HP-UX 11/ia64.
2703         * m4/largefile.m4 (gl_SET_LARGEFILE_SOURCE): New macro.
2704         * modules/fseeko (configure.ac-early): Require it instead of
2705         AC_FUNC_FSEEKO.
2706         * modules/ftello (configure.ac-early): Likewise.
2707         * modules/fflush (configure.ac-early): Likewise.
2709 2019-12-08  Bruno Haible  <bruno@clisp.org>
2711         Fix compilation error in C++ mode on HP-UX 11.
2712         * lib/unistd.in.h (getpagesize): Declare on HP-UX.
2713         * doc/glibc-functions/getpagesize.texi: Mention the HP-UX problem.
2715 2019-12-08  Bruno Haible  <bruno@clisp.org>
2717         Fix compilation errors on HP-UX 11/ia64.
2718         * lib/math.in.h (copysignf, fmaf, fma): Undefine before
2719         _GL_FUNCDECL_SYS.
2721 2019-12-08  Bruno Haible  <bruno@clisp.org>
2723         Fix compilation error in C++ mode on OpenBSD.
2724         * lib/signal.in.h (signal): Declare on OpenBSD.
2726 2019-12-08  Bruno Haible  <bruno@clisp.org>
2728         math tests: Don't fail if isfinite, isinf, isnan, signbit is a macro.
2729         * tests/test-math-c++.cc (isfinite, isinf, isnan, signbit): Use #warning
2730         instead of #error.
2732 2019-12-08  Bruno Haible  <bruno@clisp.org>
2734         Fix compilation errors in C++ mode on FreeBSD.
2735         * lib/pthread.in.h (pthread_exit): Remove _Noreturn from prototype.
2736         * tests/test-pthread-c++.cc (GNULIB_NAMESPACE::pthread_exit): Likewise.
2737         * lib/threads.in.h (thrd_exit): Likewise.
2738         * tests/test-threads-c++.cc (GNULIB_NAMESPACE::thrd_exit): Likewise.
2740 2019-12-08  Bruno Haible  <bruno@clisp.org>
2742         Fix compilation errors in C++ mode on macOS and FreeBSD.
2743         * lib/math.in.h (isfinite, isinf, isnan, signbit): In C++ mode on macOS
2744         or FreeBSD with clang, use the approach without C preprocessor macro.
2746 2019-12-07  Bruno Haible  <bruno@clisp.org>
2748         Fix compilation errors in C++ mode on AIX with xlclang++.
2749         Reported by Christian Biesinger <cbiesinger@google.com> in
2750         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00009.html>.
2751         * lib/wchar.in.h (mbstate_t): Don't override on AIX.
2753 2019-12-07  Bruno Haible  <bruno@clisp.org>
2755         Document compilation error in C++ mode on NetBSD 8.0.
2756         * doc/posix-headers/monetary.texi: Mention the NetBSD bug.
2758 2019-12-07  Bruno Haible  <bruno@clisp.org>
2760         Fix compilation errors in C++ mode on Solaris 10.
2761         * m4/stdbool.m4 (AM_STDBOOL_H): Require AC_CANONICAL_HOST. Set STDBOOL_H
2762         to non-empty on Solaris with a non-GCC compiler.
2763         * doc/posix-headers/stdbool.texi: Mention the Solaris issue.
2765 2019-12-07  Bruno Haible  <bruno@clisp.org>
2767         Reword NEWS entry.
2768         * NEWS: Reword the latest NEWS entry.
2770 2019-12-05  Pino Toscano  <ptoscano@redhat.com>
2772         Move xstrtol_fatal to a new xstrtol-error module.
2773         * lib/xstrtol.h: Stop including <getopt.h>.
2774         (xstrtol_fatal): Move ...
2775         * lib/xstrtol-error.h: ... here.  New file.
2776         * lib/xstrtol-error.c: Include xstrtol-error.h instead of xstrtol.h.
2777         * tests/test-xstrtol.c: Likewise.
2778         * modules/xstrtol (Files): Remove lib/xstrtol-error.c.
2779         (Depends-on): Remove exitfail, error, getopt-gnu, and gettext-h.
2780         (Makefile.am): Remove xstrtol-error.c from lib_SOURCES.
2781         * modules/xstrtol-error: New file.
2782         * modules/xstrtol-tests (Depends-on): Add xstrtol-error.
2783         * MODULES.html.sh: Add xstrtol-error.
2784         * NEWS: Document the change.
2786 2019-12-06  Paul Eggert  <eggert@cs.ucla.edu>
2788         nstrftime: better width support for %N, %z
2789         * lib/nstrftime.c (width_add, width_add1, width_cpy):
2790         New macros, which generalize ‘add’, ‘add1’, ‘cpy’ by adding
2791         a new WIDTH parameter.
2792         (add, add1, cpy): Use these macros.
2793         (width_add): Do not treat digits == 0 as a special case,
2794         do not pad if padding is ‘-’, and do not use a negative width.
2795         (__strftime_internal): Redo formatting of nanoseconds and numeric
2796         timezones to avoid buffer misuse in unusual cases, and so that
2797         widths make more sense.  Add support for widths greater than 9 to
2798         the %N format; they are zero filled on the right.
2799         * tests/test-nstrftime.c (posixtm_test): Add a %12N test.
2801 2019-12-05  Bruno Haible  <bruno@clisp.org>
2803         Fix compilation errors in C++ mode on Solaris 10 and Solaris 11.
2804         * m4/isfinite.m4 (gl_ISFINITE): Require AC_CANONICAL_HOST. On Solaris,
2805         set REPLACE_ISFINITE to 1.
2806         * m4/isinf.m4 (gl_ISINF): Require AC_CANONICAL_HOST. On Solaris, set
2807         REPLACE_ISINF to 1.
2808         * m4/signbit.m4 (gl_SIGNBIT): On Solaris, set REPLACE_SIGNBIT to 1.
2809         * lib/pthread.in.h (pthread_create, pthread_once, pthread_key_create):
2810         Use _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
2811         * lib/threads.in.h (call_once): Likewise.
2812         * lib/iconv.in.h (iconv): Likewise.
2814 2019-12-05  Bruno Haible  <bruno@clisp.org>
2816         wchar: Add more C++ tests.
2817         Reported by Christian Biesinger <cbiesinger@google.com> in
2818         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00009.html>.
2819         * tests/test-wchar-c++3.cc: New file.
2820         * modules/wchar-c++-tests (Files): Add it.
2821         (Makefile.am): Compile it.
2823 2019-12-05  Bruno Haible  <bruno@clisp.org>
2825         Add more C++ tests.
2827         assert-h: Add C++ tests.
2828         * tests/test-assert-h-c++.cc: New file.
2829         * tests/test-assert-h-c++2.cc: New file.
2830         * modules/assert-h-c++-tests: New file.
2831         * modules/assert-h-tests: New file.
2833         ctype: Add C++ tests.
2834         * tests/test-ctype-c++.cc: New file.
2835         * tests/test-ctype-c++2.cc: New file.
2836         * modules/ctype-c++-tests: New file.
2837         * modules/ctype-tests (Depends-on): Add ctype-c++-tests.
2839         errno: Add C++ tests.
2840         * tests/test-errno-c++.cc: New file.
2841         * tests/test-errno-c++2.cc: New file.
2842         * modules/errno-c++-tests: New file.
2843         * modules/errno-tests (Depends-on): Add errno-c++-tests.
2845         float: Add C++ tests.
2846         * tests/test-float-c++.cc: New file.
2847         * tests/test-float-c++2.cc: New file.
2848         * modules/float-c++-tests: New file.
2849         * modules/float-tests (Depends-on): Add float-c++-tests.
2851         inttypes: Add more C++ tests.
2852         * tests/test-inttypes-c++2.cc: New file.
2853         * modules/inttypes-c++-tests (Files): Add it.
2854         (Makefile.am): Compile it.
2856         limits-h: Add C++ tests.
2857         * tests/test-limits-h-c++.cc: New file.
2858         * tests/test-limits-h-c++2.cc: New file.
2859         * modules/limits-h-c++-tests: New file.
2860         * modules/limits-h-tests (Depends-on): Add limits-h-c++-tests.
2862         stdarg: Add C++ tests.
2863         * tests/test-stdarg-c++.cc: New file.
2864         * tests/test-stdarg-c++2.cc: New file.
2865         * modules/stdarg-c++-tests: New file.
2866         * modules/stdarg-tests: New file.
2868         stdbool: Add C++ tests.
2869         * tests/test-stdbool-c++.cc: New file.
2870         * tests/test-stdbool-c++2.cc: New file.
2871         * modules/stdbool-c++-tests: New file.
2872         * modules/stdbool-tests (Depends-on): Add stdbool-c++-tests.
2874         stddef: Add C++ tests.
2875         * tests/test-stddef-c++.cc: New file.
2876         * tests/test-stddef-c++2.cc: New file.
2877         * modules/stddef-c++-tests: New file.
2878         * modules/stddef-tests (Depends-on): Add stddef-c++-tests.
2880         stdint: Add C++ tests.
2881         * tests/test-stdint-c++.cc: New file.
2882         * tests/test-stdint-c++2.cc: New file.
2883         * modules/stdint-c++-tests: New file.
2884         * modules/stdint-tests (Depends-on): Add stdint-c++-tests.
2886         wchar: Add more C++ tests.
2887         * tests/test-wchar-c++2.cc: New file.
2888         * modules/wchar-c++-tests (Files): Add it.
2889         (Makefile.am): Compile it.
2891         wctype-h: Add more C++ tests.
2892         * tests/test-wctype-h-c++2.cc: New file.
2893         * modules/wctype-h-c++-tests (Files): Add it.
2894         (Makefile.am): Compile it.
2896 2019-12-04  Bruno Haible  <bruno@clisp.org>
2898         Fix compilation errors in C++ mode with xlclang++ on AIX.
2899         * lib/math.in.h (expm1l, fmal, remainderl, roundl): Don't redeclare in
2900         C++ mode on AIX.
2901         (isfinite, signbit): In C++ mode on AIX with clang, use the approach
2902         without C preprocessor macro.
2903         * lib/pthread.in.h (pthread_exit): Use _GL_CXXALIAS_SYS_CAST instead of
2904         _GL_CXXALIAS_SYS.
2905         * lib/threads.in.h (thrd_exit): Likewise.
2907 2019-12-04  Bruno Haible  <bruno@clisp.org>
2909         Fix compilation error in C++ mode on Solaris 11 OpenIndiana.
2910         * lib/wchar.in.h (wcsnrtombs): Force declaration in C++ mode on Solaris.
2911         * doc/posix-functions/wcsnrtombs.texi: Mention the issue.
2913 2019-12-04  Bruno Haible  <bruno@clisp.org>
2915         Disable more _GL_CXXALIASWARN on all platforms other than glibc systems.
2916         * lib/wchar.in.h (wcsnrtombs, wcwidth, wcswidth): Disable
2917         _GL_CXXALIASWARN invocation on non-glibc systems.
2918         * lib/wctype.in.h (iswalnum, iswalpha, iswcntrl, iswdigit, iswgraph,
2919         iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit, wctype,
2920         iswctype, towlower, towupper): Likewise.
2922 2019-12-03  Bruno Haible  <bruno@clisp.org>
2924         Avoid hassles caused by [[noreturn]] in C++.
2925         Reported by Christian Biesinger <cbiesinger@google.com> in
2926         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00010.html>.
2927         * m4/gnulib-common.m4 (gl_COMMON_BODY): Disable the use of [[noreturn]].
2928         * lib/_Noreturn.h: Likewise.
2930 2019-12-02  Bruno Haible  <bruno@clisp.org>
2932         Fix mistakes in --enable-threads=isoc fixes from 2019-12-01.
2933         * m4/pthread-mutex.m4 (gl_PTHREAD_MUTEX): Use LIBPMULTITHREAD, not
2934         LIBMULTITHREAD.
2935         * m4/pthread-rwlock.m4 (gl_PTHREAD_RWLOCK): Likewise.
2936         * m4/pthread-thread.m4 (gl_PTHREAD_THREAD): Likewise.
2937         * m4/timer_time.m4 (gl_TIMER_TIME): Likewise. Require gl_PTHREADLIB, not
2938         gl_THREADLIB.
2939         * modules/timer-time (Depends-on): Add pthread-h. Remove threadlib.
2941 2019-12-02  Bruno Haible  <bruno@clisp.org>
2943         Fix some more link errors with --enable-threads=isoc.
2944         * modules/pthread-mutex (Depends-on): Test $gl_threads_api differently.
2945         * modules/pthread-rwlock (Depends-on): Likewise.
2947 2019-12-02  Bruno Haible  <bruno@clisp.org>
2949         Fix link errors with --enable-threads=posix on AIX.
2950         * modules/string-c++-tests (Makefile.am): Link the test-string-c++
2951         program with $(LIBTHREAD).
2952         * modules/wchar-c++-tests (Makefile.am): Link the test-wchar-c++
2953         program with $(LIBTHREAD).
2955 2019-12-02  Bruno Haible  <bruno@clisp.org>
2957         Fix link errors with --enable-threads=posix on AIX.
2958         * modules/mbrtowc (Link): New section.
2959         * modules/acl (Link): Likewise.
2960         * modules/argmatch (Link): Likewise.
2961         * modules/backup-rename (Link): Likewise.
2962         * modules/backupfile (Link): Likewise.
2963         * modules/closein (Link): Likewise.
2964         * modules/closeout (Link): Likewise.
2965         * modules/copy-file (Link): Likewise.
2966         * modules/csharpcomp (Link): Likewise.
2967         * modules/csharpexec (Link): Likewise.
2968         * modules/dfa (Link): Likewise.
2969         * modules/exclude (Link): Likewise.
2970         * modules/fnmatch (Link): Likewise.
2971         * modules/fnmatch-gnu (Link): Likewise.
2972         * modules/fnmatch-posix (Link): Likewise.
2973         * modules/glob (Link): Likewise.
2974         * modules/human (Link): Likewise.
2975         * modules/javacomp (Link): Likewise.
2976         * modules/javaexec (Link): Likewise.
2977         * modules/javaversion (Link): Likewise.
2978         * modules/mbfile (Link): Likewise.
2979         * modules/mbiter (Link): Likewise.
2980         * modules/mbmemcasecmp (Link): Likewise.
2981         * modules/mbmemcasecoll (Link): Likewise.
2982         * modules/mbrlen (Link): Likewise.
2983         * modules/mbscasecmp (Link): Likewise.
2984         * modules/mbscasestr (Link): Likewise.
2985         * modules/mbschr (Link): Likewise.
2986         * modules/mbscspn (Link): Likewise.
2987         * modules/mbsinit (Link): Likewise.
2988         * modules/mbslen (Link): Likewise.
2989         * modules/mbsncasecmp (Link): Likewise.
2990         * modules/mbsnlen (Link): Likewise.
2991         * modules/mbsnrtowcs (Link): Likewise.
2992         * modules/mbspbrk (Link): Likewise.
2993         * modules/mbspcasecmp (Link): Likewise.
2994         * modules/mbsrchr (Link): Likewise.
2995         * modules/mbsrtowcs (Link): Likewise.
2996         * modules/mbssep (Link): Likewise.
2997         * modules/mbsspn (Link): Likewise.
2998         * modules/mbsstr (Link): Likewise.
2999         * modules/mbstok_r (Link): Likewise.
3000         * modules/mbswidth (Link): Likewise.
3001         * modules/mbuiter (Link): Likewise.
3002         * modules/mkdir-p (Link): Likewise.
3003         * modules/propername (Link): Likewise.
3004         * modules/quote (Link): Likewise.
3005         * modules/quotearg (Link): Likewise.
3006         * modules/quotearg-simple (Link): Likewise.
3007         * modules/regex-quote (Link): Likewise.
3008         * modules/rpmatch (Link): Likewise.
3009         * modules/sh-quote (Link): Likewise.
3010         * modules/system-quote (Link): Likewise.
3011         * modules/trim (Link): Likewise.
3012         * modules/unistdio/ulc-asnprintf (Link): Likewise.
3013         * modules/unistdio/ulc-fprintf (Link): Likewise.
3014         * modules/unistdio/ulc-vasnprintf (Link): Likewise.
3015         * modules/unistdio/ulc-vasprintf (Link): Likewise.
3016         * modules/unistdio/ulc-vfprintf (Link): Likewise.
3017         * modules/unistdio/ulc-vsnprintf (Link): Likewise.
3018         * modules/unistdio/ulc-vsprintf (Link): Likewise.
3019         * modules/xfreopen (Link): Likewise.
3020         * modules/xmemcoll (Link): Likewise.
3021         * modules/yesno (Link): Likewise.
3022         * modules/acl-tests (Makefile.am): Link the programs with $(LIBTHREAD).
3023         * modules/argmatch-tests (Makefile.am): Likewise.
3024         * modules/closein-tests (Makefile.am): Likewise.
3025         * modules/copy-file-tests (Makefile.am): Likewise.
3026         * modules/dfa-tests (Makefile.am): Likewise.
3027         * modules/fnmatch-tests (Makefile.am): Likewise.
3028         * modules/glob-tests (Makefile.am): Likewise.
3029         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
3030         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
3031         * modules/mbrtowc-tests (Makefile.am): Likewise.
3032         * modules/mbscasecmp-tests (Makefile.am): Likewise.
3033         * modules/mbscasestr-tests (Makefile.am): Likewise.
3034         * modules/mbschr-tests (Makefile.am): Likewise.
3035         * modules/mbscspn-tests (Makefile.am): Likewise.
3036         * modules/mbsinit-tests (Makefile.am): Likewise.
3037         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
3038         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
3039         * modules/mbspbrk-tests (Makefile.am): Likewise.
3040         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
3041         * modules/mbsrchr-tests (Makefile.am): Likewise.
3042         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
3043         * modules/mbsspn-tests (Makefile.am): Likewise.
3044         * modules/mbsstr-tests (Makefile.am): Likewise.
3045         * modules/quotearg-tests (Makefile.am): Likewise.
3046         * modules/quotearg-simple-tests (Makefile.am): Likewise.
3047         * modules/readtokens-tests (Makefile.am): Likewise.
3048         * modules/regex-quote-tests (Makefile.am): Likewise.
3049         * modules/sh-quote-tests (Makefile.am): Likewise.
3050         * modules/system-quote-tests (Makefile.am): Likewise.
3051         * modules/unistdio/ulc-asnprintf-tests (Makefile.am): Likewise.
3052         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
3053         * modules/unistdio/ulc-vasprintf-tests (Makefile.am): Likewise.
3054         * modules/unistdio/ulc-vsnprintf-tests (Makefile.am): Likewise.
3055         * modules/unistdio/ulc-vsprintf-tests (Makefile.am): Likewise.
3056         * modules/yesno-tests (Makefile.am): Likewise.
3058 2019-12-02  Bruno Haible  <bruno@clisp.org>
3060         Simplify link sections.
3061         * modules/threadlib (Link): Stop mentioning LTLIBTHREAD.
3062         * modules/lock (Link): Likewise.
3063         * modules/cond (Link): Likewise.
3064         * modules/tls (Link): Likewise.
3065         * modules/yield (Link): Likewise.
3066         * modules/regex (Link): Likewise.
3067         * modules/localename (Link): Likewise.
3068         * modules/unicase/locale-language (Link): Likewise.
3069         * modules/thread (Link): Stop mentioning LTLIBMULTITHREAD.
3071 2019-12-02  Bruno Haible  <bruno@clisp.org>
3073         thread tests: Avoid link error with --enable-threads=isoc+posix on AIX.
3074         * tests/test-thread_self.c (main): Disable test on AIX.
3076 2019-12-01  Bruno Haible  <bruno@clisp.org>
3078         pthread-h: Fix link errors with --enable-threads=isoc on AIX.
3079         * m4/threadlib.m4 (gl_ANYTHREADLIB_EARLY): New macro, extracted from
3080         gl_THREADLIB_EARLY_BODY.
3081         (gl_THREADLIB_EARLY_BODY): Invoke it.
3082         (gl_PTHREADLIB_BODY): New macro, extracted from gl_THREADLIB_BODY.
3083         (gl_THREADLIB_BODY): Invoke it.
3084         (gl_PTHREADLIB): New macro.
3085         * m4/pthread_h.m4 (gl_PTHREAD_H): Require gl_PTHREADLIB. Require
3086         gl_THREADLIB and test $gl_threads_api only if module 'threadlib' is
3087         present. Define LIB_PTHREAD using LIBPMULTITHREAD, not LIBMULTITHREAD.
3088         * modules/pthread-h (Files): Add threadlib.m4.
3089         (Depends-on): Remove threadlib.
3090         (configure.ac-early): Invoke gl_ANYTHREADLIB_EARLY. Don't set _REENTRANT
3091         and _THREAD_SAFE here.
3092         (Link): Use LIBPTHREAD, not LIBTHREAD.
3093         * modules/pthread-thread (Link): Use LIBPMULTITHREAD, not
3094         LIBMULTITHREAD.
3095         * modules/pthread-once (Link): Likewise.
3096         * modules/pthread-mutex (Link): Likewise.
3097         * modules/pthread-rwlock (Link): Likewise.
3098         * modules/pthread-cond (Link): Likewise.
3099         * modules/pthread-tss (Link): Likewise.
3100         * modules/pthread-spin (Link): Likewise.
3101         * modules/pthread (Link): Likewise.
3102         * modules/pthread-h-c++-tests (test_pthread_c___LDADD): Likewise.
3103         * modules/pthread-thread-tests (test_pthread_thread_LDADD): Likewise.
3104         * modules/pthread-once-tests (test_pthread_once1_LDADD,
3105         test_pthread_once2_LDADD): Likewise.
3106         * modules/pthread-mutex-tests (test_pthread_mutex_LDADD): Likewise.
3107         * modules/pthread-rwlock-tests (test_pthread_rwlock_LDADD): Likewise.
3108         * modules/pthread-cond-tests (test_pthread_cond_LDADD): Likewise.
3109         * modules/pthread-tss-tests (test_pthread_tss_LDADD): Likewise.
3111 2019-12-01  Bruno Haible  <bruno@clisp.org>
3113         cond: State linking requirements.
3114         * modules/cond (Link): New section.
3116 2019-12-01  Bruno Haible  <bruno@clisp.org>
3118         threadlib: Remove unnecessary file (left over from 2019-07-06).
3119         * modules/threadlib (Files): Remove config.rpath.
3121 2019-11-29  Tim Rühsen  <tim.ruehsen@gmx.de>
3123         gnulib-tool.py: Fix libgnu_la_LDFLAGS section in generated Makefile.am.
3124         Reported by Dagobert Michelsen <dam@opencsw.org> in
3125         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00086.html>.
3126         * pygnulib/GLModuleSystem.py (getLink): Don't join the parts. Return a
3127         list of strings instead of one string.
3128         * pygnulib/GLEmiter.py (lib_Makefile_am): Adapt accordingly.
3129         * pygnulib/GLImport.py (execute): Likewise.
3131 2019-11-27  Bruno Haible  <bruno@clisp.org>
3133         openpty, forkpty: Fix build error on Solaris 11.4.
3134         * m4/pty_h.m4 (gl_PTY_H): Test for termios.h. Look for the declarations
3135         also in <termios.h>.
3136         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Look for the declaration
3137         of the function also in <termios.h>.
3138         * doc/glibc-functions/openpty.texi: Mention the Solaris 11.4 problems.
3139         * doc/glibc-functions/forkpty.texi: Likewise.
3141 2019-11-27  Bruno Haible  <bruno@clisp.org>
3143         New options --enable-threads=isoc and --enable-threads=isoc+posix.
3144         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Accept the options
3145         --enable-threads=isoc and --enable-threads=isoc+posix.
3146         (gl_THREADLIB_BODY): Test whether the ISO C threads API is available.
3147         When both the ISO C and the POSIX threads API are available, choose
3148         USE_ISOC_AND_POSIX_THREADS instead of USE_POSIX_THREADS if
3149         --enable-threads=isoc+posix was specified. When only the ISO C threads
3150         API is available and --enable-threads=iso was specified, choose
3151         USE_ISOC_THREADS.
3152         * lib/glthread/lock.h: Add new code for USE_ISOC_THREADS ||
3153         USE_ISOC_AND_POSIX_THREADS.
3154         * lib/glthread/lock.c: Likewise.
3155         * lib/glthread/cond.h: Likewise.
3156         * lib/glthread/cond.c: Likewise.
3157         * lib/glthread/tls.h: Likewise.
3158         * lib/glthread/tls.c: Likewise.
3159         * lib/glthread/yield.h: Likewise.
3160         * lib/glthread/thread.h: Add new code for USE_ISOC_THREADS. Treat
3161         USE_ISOC_AND_POSIX_THREADS like USE_POSIX_THREADS.
3162         * lib/glthread/thread.c: Likewise.
3163         * lib/glthread/threadlib.c: Likewise.
3164         * tests/test-lock.c: Save and restore the values of USE_ISOC_THREADS and
3165         USE_ISOC_AND_POSIX_THREADS.
3166         * tests/test-cond.c: Consider USE_ISOC_THREADS and
3167         USE_ISOC_AND_POSIX_THREADS.
3168         * tests/test-tls.c: Likewise.
3169         * tests/test-thread_create.c (main): Likewise.
3170         * tests/test-pthread-cond.c: Likewise.
3171         * tests/test-pthread-mutex.c: Likewise.
3172         * tests/test-pthread-once2.c: Likewise.
3173         * tests/test-pthread-rwlock.c: Likewise.
3174         * tests/test-pthread-tss.c: Likewise.
3175         * tests/test-pthread_sigmask2.c: Treat USE_ISOC_AND_POSIX_THREADS like
3176         USE_POSIX_THREADS.
3178 2019-11-24  Bruno Haible  <bruno@clisp.org>
3180         mbrtowc: Modernize autoconf test.
3181         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Require
3182         gt_LOCALE_FR_UTF8. If a traditional Japanese locale is not available,
3183         try a UTF-8 locale.
3184         * doc/posix-functions/mbrtowc.texi: Update info about AIX.
3186 2019-11-24  Bruno Haible  <bruno@clisp.org>
3188         Fix errors in C++ mode on mingw.
3189         * lib/arpa_inet.in.h (inet_ntop, inet_pton): Use _GL_CXXALIAS_SYS_CAST
3190         instead of _GL_CXXALIAS_SYS.
3191         * lib/signal.in.h (pthread_sigmask): Likewise.
3192         * lib/spawn.in.h (posix_spawn_file_actions_addopen,
3193         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
3194         Likewise.
3195         * lib/wchar.in.h (btowc): Likewise.
3197 2019-11-24  Bruno Haible  <bruno@clisp.org>
3199         sys_time: Fix errors in C++ mode on mingw.
3200         * lib/sys_time.in.h (timeval): Restore the redirection
3201         '#define timeval rpl_timeval', for when the symbol timeval is being used
3202         outside the 'gnulib' namespace.
3203         * lib/sys_select.in.h (select): In C++, write 'timeval', not
3204         'struct timeval'.
3206 2019-11-24  Bruno Haible  <bruno@clisp.org>
3208         iswctype: Fix errors in C++ mode on mingw.
3209         * lib/wctype.in.h (rpl_iswctype): Override if GNULIB_OVERRIDES_WINT_T
3210         is 1.
3211         * lib/iswctype.c (iswctype): Add another implementation, for the
3212         GNULIB_defined_wint_t case.
3213         * modules/iswctype (configure.ac): Compile iswctype.c also if
3214         GNULIB_OVERRIDES_WINT_T is 1.
3216 2019-11-24  Bruno Haible  <bruno@clisp.org>
3218         windows-timedmutex: Fix errors in C++ mode on mingw.
3219         * lib/windows-timedmutex.h: Add closing brace.
3221 2019-11-24  Bruno Haible  <bruno@clisp.org>
3223         Fix errors in C++ mode on Cygwin.
3224         * lib/sys_wait.in.h (waitpid): Use _GL_CXXALIAS_SYS_CAST instead of
3225         _GL_CXXALIAS_SYS.
3227 2019-11-24  Bruno Haible  <bruno@clisp.org>
3229         time_r: Fix for mingw (regression from 2019-11-16).
3230         * m4/time_r.m4 (gl_TIME_R): Revert to using AC_CHECK_FUNCS_ONCE. Use the
3231         AC_LINK_IFELSE test only if the function does not appear to exist.
3233 2019-11-24  Bruno Haible  <bruno@clisp.org>
3235         wcstok: Add tests.
3236         * tests/test-wcstok.c: New file.
3237         * modules/wcstok-tests: New file.
3239 2019-11-24  Bruno Haible  <bruno@clisp.org>
3241         wcstok: Work around wrong signature on native Windows.
3242         * lib/wchar.in.h (wcstok): Override when REPLACE_WCSTOK is 1.
3243         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Check for signature of wcstok. Set
3244         REPLACE_WCSTOK.
3245         * m4/wchar_h.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSTOK.
3246         * modules/wchar (Makefile.am): Substitute REPLACE_WCSTOK.
3247         * modules/wcstok (Depends-on, configure.ac): Consider REPLACE_WCSTOK.
3248         * doc/posix-functions/wcstok.texi: Mention the problem.
3250 2019-11-22  Paul Eggert  <eggert@cs.ucla.edu>
3252         intprops: INT_MULTIPLY_WRAPV speedup for GCC 8.4+
3253         * lib/intprops.h (INT_MULTIPLY_WRAPV): If GCC 8.x where 4 <= x,
3254         remove workaround for GCC bug 91450 as the bug should be fixed
3255         there too.
3257 2019-11-21  Bruno Haible  <bruno@clisp.org>
3259         Disable many _GL_CXXALIASWARN on all platforms other than glibc systems.
3260         Reported by Christian Biesinger <cbiesinger@google.com> in
3261         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00066.html>.
3262         * lib/fnmatch.in.h (fnmatch): Disable _GL_CXXALIASWARN invocation on
3263         non-glibc systems.
3264         * lib/locale.in.h (localeconv, setlocale): Likewise.
3265         * lib/math.in.h (cbrt, ceil, copysign, exp2, expm1, floor, fma, fmod,
3266         frexp, hypot, ilogb, log, log10, log1p, log2, logb, modf, remainder,
3267         rint, round, trunc): Likewise.
3268         * lib/monetary.in.h (strfmon_l): Likewise.
3269         * lib/pthread.in.h (pthread_mutexattr_getrobust,
3270         pthread_mutexattr_setrobust, pthread_mutex_lock, pthread_spin_init,
3271         pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock,
3272         pthread_spin_destroy): Likewise.
3273         * lib/signal.in.h (raise, signal): Likewise.
3274         * lib/stdio.in.h (fclose, fflush, fgetc, fgets, fopen, fprintf, fputc,
3275         fputs, fread, freopen, fscanf, fseek, ftell, fwrite, getc, getchar,
3276         perror, printf, putc, putchar, puts, remove, rename, scanf, sprintf,
3277         tmpfile, vfprintf, vprintf, vsprintf): Likewise.
3278         * lib/stdlib.in.h (calloc, malloc, mbtowc, realloc, strtod, wctomb):
3279         Likewise.
3280         * lib/string.in.h (memchr, strncat, strpbrk, strstr, strerror):
3281         Likewise.
3282         * lib/time.in.h (mktime, localtime, ctime, strftime): Likewise.
3283         * lib/wchar.in.h (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs,
3284         wcrtomb, wcsrtombs, wmemchr, wmemcmp, wmemcpy, wmemmove, wmemset,
3285         wcslen, wcscpy, wcsncpy, wcscat, wcsncat, wcscmp, wcsncmp, wcscoll,
3286         wcsxfrm, wcschr, wcsrchr, wcscspn, wcsspn, wcspbrk, wcsstr, wcstok,
3287         wcsftime): Likewise.
3288         * lib/wctype.in.h (iswblank, wctrans, towctrans): Likewise.
3290 2019-11-21  Bruno Haible  <bruno@clisp.org>
3292         Fix various errors in _GL_CXXALIAS_SYS invocations.
3293         * lib/locale.in.h (freelocale): Use _GL_CXXALIAS_SYS_CAST instead of
3294         _GL_CXXALIAS_SYS.
3295         * lib/pthread.in.h (pthread_mutexattr_gettype,
3296         pthread_mutexattr_getrobust): Likewise.
3297         * lib/stdlib.in.h (srandom, initstate, setstate): Likewise.
3298         * lib/sys_socket.in.h (recv, send): Likewise.
3299         * lib/unistd.in.h (getdtablesize): Likewise.
3300         * lib/sys_select.in.h (select): In C++, write 'timeval' instead of
3301         'struct timeval'.
3303 2019-11-21  Bruno Haible  <bruno@clisp.org>
3305         math tests: Update after 2019-08-28 change.
3306         * tests/test-math-c++.cc (isfinite, isinf, isnan, signbit): Expect a
3307         return type of 'bool', not 'int'.
3309 2019-11-21  Bruno Haible  <bruno@clisp.org>
3311         pthread-spin: Fix errors in C++ mode.
3312         * m4/pthread-spin.m4 (gl_PTHREAD_SPIN): Mark the pthread_spin_*
3313         functions as nonexistent when <pthread.h> exists but does not define
3314         the pthread_spinlock_t type.
3316 2019-11-21  Bruno Haible  <bruno@clisp.org>
3318         pthread-mutex: Fix errors in C++ mode.
3319         * m4/pthread-mutex.m4 (gl_PTHREAD_MUTEX): Test whether
3320         pthread_mutexattr_getrobust exists. If not, define
3321         PTHREAD_MUTEXATTR_ROBUST_UNIMPLEMENTED.
3322         * lib/pthread-mutex.c (pthread_mutexattr_getrobust,
3323         pthread_mutexattr_setrobust): Define also if <pthread.h> exists but
3324         PTHREAD_MUTEXATTR_ROBUST_UNIMPLEMENTED.
3325         * modules/pthread-mutex (configure.ac): Compile pthread-mutex.c also
3326         when <pthread.h> exists but pthread_mutexattr_getrobust needs a gnulib
3327         definition.
3329 2019-11-19  Bruno Haible  <bruno@clisp.org>
3331         threads-h tests: Fix typo.
3332         * tests/test-threads-c++.cc: Fix references to undefined type 'mtx'.
3334 2019-11-19  Bruno Haible  <bruno@clisp.org>
3336         pthread-thread: Fix prototype of pthread_attr_getdetachstate.
3337         * lib/pthread.in.h (pthread_attr_getdetachstate): Change first parameter
3338         to 'const pthread_attr_t *'.
3339         * lib/pthread-thread.c (pthread_attr_getdetachstate): Likewise.
3340         * tests/test-pthread-c++.cc (pthread_attr_getdetachstate): Likewise.
3342 2019-11-19  Paul Eggert  <eggert@cs.ucla.edu>
3344         intprops: speed up INT_MULTIPLY_WRAPV in GCC 9.3
3345         * lib/intprops.h (INT_MULTIPLY_WRAPV): If GCC 9.3 or later, do not
3346         work around GCC bug 91450 as the bug should be fixed there.
3348 2019-11-18  Paul Eggert  <eggert@cs.ucla.edu>
3350         glob: get closer to glibc glob.c
3351         Omit differences from glibc when the differences don’t matter.
3352         * lib/glob.c [_LIBC]: Include shlib-compat.h.
3353         (__glob) [!_LIBC]: New macro.  All uses of glob changed to __glob.
3354         (glob_lstat): New function.
3355         (glob_in_dir): Use it.
3356         (GLOB_ATTRIBUTE): Define to empty if not already defined.
3357         Use changed.
3359 2019-11-18  Bruno Haible  <bruno@clisp.org>
3361         stdint: Define [u]intptr_t correctly on 64-bit native Windows.
3362         * lib/stdint.in.h (gl_intptr_t, gl_uintptr_t, INTPTR_MIN, INTPTR_MAX,
3363         UINTPTR_MAX): Consider _WIN64.
3364         * tests/test-stdint.c: Verify that [u]intptr_t is large enough to hold
3365         a pointer.
3367 2019-11-18  Bruno Haible  <bruno@clisp.org>
3369         stdint: Fix value of WINT_MAX when we override wint_t.
3370         * lib/stdint.in.h (WINT_MIN, WINT_MAX): Don't override a second time
3371         when GNULIB_OVERRIDES_WINT_T is 1.
3373 2019-11-18  Bruno Haible  <bruno@clisp.org>
3375         vcs-to-changelog: New module.
3376         * modules/vcs-to-changelog: New file.
3377         * MODULES.html.sh (func_all_modules): Add it.
3379 2019-11-01  Siddhesh Poyarekar  <siddhesh@gotplt.org>
3381         vcs-to-changelog: New script to generate ChangeLog-like output.
3382         Discussion:
3383         <https://lists.gnu.org/archive/html/bug-gnulib/2019-10/msg00062.html>
3384         * build-aux/vcs_to_changelog.py: New file.
3385         * build-aux/vcstocl/frontend_c.py: New file.
3386         * build-aux/vcstocl/misc_util.py: New file.
3387         * build-aux/vcstocl/vcs_git.py: New file.
3389 2019-11-18  Bruno Haible  <bruno@clisp.org>
3391         stdint: Avoid triggering a "conflicting types" error on mingw 5.22.
3392         Reported by Keith Marshall <keith@users.osdn.me> in
3393         <https://lists.gnu.org/archive/html/bug-gnulib/2019-10/msg00044.html>
3394         and <https://osdn.net/projects/mingw/ticket/39677>.
3395         * lib/stdint.in.h (intptr_t, uintptr_t): Don't define if the types have
3396         already been defined by mingw's <crtdefs.h>.
3398 2019-11-18  Bruno Haible  <bruno@clisp.org>
3400         gnulib-tool: Fix build error on macOS with --conditional-dependencies.
3401         * gnulib-tool (func_modules_add_dummy): Ignore modules that are
3402         conditionally enabled.
3404 2019-11-18  Bruno Haible  <bruno@clisp.org>
3406         gc: Mirror libgcrypt.m4 from libgcrypt.
3407         * config/srclistvars.sh (LIBGCRYPT): New variable.
3408         * config/srclist.txt: Use it to fetch m4/libgcrypt.m4.
3410 2019-11-17  Bruno Haible  <bruno@clisp.org>
3412         locale, localename: Improve z/OS support.
3413         Reported by Daniel Richard G. in
3414         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00001.html>.
3415         * m4/locale_h.m4 (gl_LOCALE_T): New macro, partially extracted from
3416         gl_LOCALE_H.
3417         (gl_LOCALE_H): Require it.
3418         * m4/localename.m4 (gl_LOCALENAME): Likewise. If locale_t is not
3419         defined, don't even check for newlocale, duplocale, freelocale.
3420         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): Make the test fail when
3421         locale_t is not defined.
3423 2019-11-17  Bruno Haible  <bruno@clisp.org>
3425         havelib: Make libdirstems processing more flexible.
3426         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Set 3 libdirstem
3427         variables: Consider 'lib' always, also on Solaris. Look for lib32 in
3428         addition to lib64. Don't invoke /usr/bin/gcc (reverting the second
3429         patch from 2017-02-19).
3430         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Consider up to 3 additional
3431         libdirs, even when the first one exists as a directory.
3433 2019-11-17  Bruno Haible  <bruno@clisp.org>
3435         havelib: Match the bitness when searching for libraries.
3436         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Define a function
3437         acl_is_expected_elfclass.
3438         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): When testing whether a library
3439         file exists, in ELF, also test whether it has the ELF class that
3440         corresponds to the host's bitness.
3442 2019-11-17  Bruno Haible  <bruno@clisp.org>
3444         host-cpu-c-abi: Add support for unknown CPUs.
3445         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI_32BIT): Set
3446         gl_cv_host_cpu_c_abi_32bit to 'unknown' if we don't know whether it's
3447         32-bit or 64-bit.
3449 2019-11-17  Bruno Haible  <bruno@clisp.org>
3451         havelib: Remove redundant code.
3452         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Remove Solaris specific
3453         test for 64-bit host. Use gl_HOST_CPU_C_ABI_32BIT result instead.
3455 2019-11-17  Bruno Haible  <bruno@clisp.org>
3457         havelib: Fix a bug in dependency processing.
3458         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): During dependency processing
3459         of .la files, don't overwrite the value of additional_libdir for the
3460         next rounds.
3462 2019-11-16  Bruno Haible  <bruno@clisp.org>
3464         wctype-h: When overriding wint_t, override also the related functions.
3465         Reported by Christian Biesinger <cbiesinger@google.com> in
3466         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00027.html>.
3467         * m4/wctype_h.m4 (gl_WCTYPE_H): When GNULIB_OVERRIDES_WINT_T is 1, set
3468         REPLACE_ISWCNTRL to 1.
3469         * lib/wctype.in.h (rpl_iswalnum, rpl_iswalpha, rpl_iswblank,
3470         rpl_iswcntrl, rpl_iswdigit, rpl_iswgraph, rpl_iswlower, rpl_iswprint,
3471         rpl_iswpunct, rpl_iswspace, rpl_iswupper, rpl_iswxdigit, rpl_towlower,
3472         rpl_towupper): New definitions when GNULIB_OVERRIDES_WINT_T is 1.
3473         * doc/posix-headers/wchar.texi: Mention that wint_t is also overridden
3474         on mingw.
3475         * doc/posix-headers/wctype.texi: Likewise.
3477 2019-11-16  Bruno Haible  <bruno@clisp.org>
3479         time_r: Fix for mingw.
3480         Reported by Christian Biesinger <cbiesinger@google.com> in
3481         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00014.html>.
3482         * lib/time.in.h: On mingw, include <unistd.h>.
3483         * m4/time_r.m4 (gl_TIME_R): On mingw, include <unistd.h> before
3484         <time.h>. Test for localtime_r in a way that works when it is defined
3485         as an inline function.
3487 2019-11-13  Bruno Haible  <bruno@clisp.org>
3489         havelib: Revert last change.
3490         * build-aux/config.rpath: Revert last change. We can add msys2 support
3491         when it has been added to libtool.m4 upstream.
3493 2019-11-09  Paul Eggert  <eggert@cs.ucla.edu>
3495         config: add msys support
3496         Requested by Arnold Robbins in:
3497         https://lists.gnu.org/r/bug-gnulib/2019-11/msg00008.html
3498         He also requested a change to config.guess, which I’ll forward
3499         upstream.
3500         * build-aux/ar-lib (func_file_conv):
3501         * build-aux/compile (func_file_conv):
3502         * build-aux/config.rpath (wl, with_gnu_ld)
3503         (hardcode_libdir_flag_spec, libext, shrext, library_names_spec):
3504         Treat msys like cygwin.
3506 2019-11-06  Paul Eggert  <eggert@cs.ucla.edu>
3508         regex: now back in sync with glibc
3509         * config/srclist.txt: regcomp.c, regex_internal.c, regex_internal.h,
3510         regexec.c got merged into glibc and are now copies again.
3512 2019-10-27  Bruno Haible  <bruno@clisp.org>
3514         host-cpu-c-abi: Recognize i386 and a couple of other CPUs as 32-bit.
3515         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Include i386 in the case
3516         statement.
3517         (gl_HOST_CPU_C_ABI_32BIT): Likewise. Also recognize a couple of other
3518         32-bit CPUs.
3520 2019-10-24  Paul Eggert  <eggert@cs.ucla.edu>
3522         timespec-add, timespec-sub: simplify
3523         * lib/timespec-add.c (timespec_add):
3524         * lib/timespec-sub.c (timespec_sub):
3525         Simplify, now that INT_ADD_WRAPV and INT_SUBTRACT_WRAPV
3526         work on unsigned integers.
3528 2019-10-23  Paul Eggert  <eggert@cs.ucla.edu>
3530         nstrftime: speed up integer overflow checking
3531         * lib/nstrftime.c: Include intprops.h.
3532         (INT_STRLEN_BOUND): Remove, as we can use intprops.h’s defn.
3533         (__strftime_internal): Use INT_MULTIPLY_WRAPV and INT_ADD_WRAPV
3534         instead of doing it by hand.
3535         * modules/nstrftime (Depends-on): Add intprops.
3537         Port better to GCC under macOS
3538         Work around macOS header that has ‘#define __has_builtin(x) 0’
3539         when compiled by GCC.  Apple really, really doesn’t want you to
3540         use GCC, apparently.  Rroblem reported by Akim Demaille in:
3541         https://lists.gnu.org/r/bug-bison/2019-10/msg00071.html
3542         The fix is to not trust __has_builtin when being compiled by
3543         recent-enough GCC.
3544         * lib/intprops.h (__has_builtin)
3545         (_GL_HAS___builtin_add_overflow, _GL_TEMPDEF___has_builtin):
3546         * lib/verify.h (__has_builtin, _GL_HAS___builtin_unreachable)
3547         (_GL_HAS___builtin_trap, _GL_TEMPDEF___has_builtin):
3548         Remove.  All uses removed.
3549         * lib/intprops.h (_GL_HAS_BUILTIN_ADD_OVERFLOW): Use __has_builtin
3550         directly, if defined and if not newer GCC.
3551         * lib/verify.h (_GL_HAS_BUILTIN_TRAP, _GL_HAS_BUILTIN_UNREACHABLE):
3552         New macro, that use __has_builtin directly, if defined and if
3553         not newer GCC.
3554         (assume): Use them.
3556 2019-10-22  Akim Demaille  <akim@lrde.epita.fr>
3558         maintainer-makefile: update rule for argmatch.
3559         * top/maint.mk (sc_prohibit_argmatch_without_use): Add ARGMATCH_DEFINE_GROUP.
3561 2019-10-21  Akim Demaille  <akim@lrde.epita.fr>
3563         bitset: let freeing functions accept NULL.
3564         * lib/bitset.c (bitset_free, bitset_obstack_free): Do nothing if
3565         given NULL.
3566         * lib/bitset.h: Document that.
3567         * doc/bitset.texi: Fix the example, and demonstrate bitset_free.
3569 2019-10-15  Paul Eggert  <eggert@cs.ucla.edu>
3571         inttypes: use more-robust test for int range
3572         This fixes Bison 3.4.2 when built with Oracle Solaris Studio 12.3.
3573         Problem reported by Dagobert Michelsen in:
3574         https://lists.gnu.org/r/bug-gnulib/2019-10/msg00042.html
3575         * lib/inttypes.in.h: Rely only on limits.h when checking
3576         int range.
3578 2019-10-15  Bruno Haible  <bruno@clisp.org>
3580         libtextstyle-optional: Sync with current not-yet-released libtextstyle.
3581         * libtextstyle-optional (styled_ostream_get_hyperlink_ref,
3582         styled_ostream_get_hyperlink_id, styled_ostream_set_hyperlink,
3583         term_ostream_get_hyperlink_ref, term_ostream_get_hyperlink_id,
3584         term_ostream_set_hyperlink): New functions.
3585         (term_styled_ostream_get_hyperlink_ref,
3586         term_styled_ostream_get_hyperlink_id,
3587         term_styled_ostream_set_hyperlink): New function aliases.
3589 2019-10-14  Paul Eggert  <eggert@cs.ucla.edu>
3591         update-copyright: use en dashes in .texi ranges
3592         * build-aux/update-copyright: Match year ranges like "1998--2019",
3593         which are used in the Autoconf manual.  Also, update ranges in
3594         .tex, .texi, and .texinfo files to use en dashes instead of
3595         hyphens.
3597 2019-10-13  Paul Eggert  <eggert@cs.ucla.edu>
3599         * config/srclist.txt: Remove posix/regex_internal.c for now.
3601 2019-10-13  Bruno Haible  <bruno@clisp.org>
3603         git-version-gen: Allow 'snapshot' as .tarball-version contents.
3604         * build-aux/git-version-gen: Don't map non-numeric .tarball-version
3605         contents to the empty string.
3607 2019-10-12  Bruno Haible  <bruno@clisp.org>
3609         intprops tests: Fix compilation errors on HP-UX/ia64 with cc.
3610         * tests/test-intprops.c (main): Disable two more tests when using
3611         HP-UX cc.
3613 2019-10-11  Paul Eggert  <eggert@cs.ucla.edu>
3615         Simplify and regularize regex use of ‘assert’
3616         Also, tell GCC about the asserts even when compiling without
3617         debugging, to give it further optimization opportunities.
3618         * lib/regex_internal.h (DEBUG_ASSERT): New macro.
3619         * lib/regcomp.c (link_nfa_nodes, calc_eclosure)
3620         (parse_expression, parse_bracket_exp):
3621         * lib/regex_internal.c (build_wcs_buffer)
3622         (build_wcs_upper_buffer, re_string_reconstruct)
3623         (re_string_context_at):
3624         * lib/regexec.c (re_search_stub, re_copy_regs)
3625         (re_search_internal, prune_impossible_nodes, check_matching)
3626         (check_halt_state_context, set_regs, sift_states_backward)
3627         (build_sifted_states, transit_state_mb, transit_state_bkref)
3628         (check_arrival_add_next_nodes, check_arrival_expand_ecl)
3629         (match_ctx_add_subtop):
3630         Use it instead of plain ‘assert’.
3632 2019-10-09  Paul Eggert  <eggert@cs.ucla.edu>
3634         regex: omit debug assignment when not debugging
3635         * lib/regexec.c (re_search_internal) [!DEBUG]:
3636         Remove unnecessary assignment.
3638         regex: tell compiler there’s at most 256 arcs out
3639         Partly this is to help the reader (and maybe help GCC);
3640         partly this is to pacify Coverity.
3641         * lib/regex_internal.h: Include verify.h.
3642         * lib/regexec.c (group_nodes_into_DFAstates):
3643         Tell the compiler that ndests cannot exceed SBC_MAX.
3644         * modules/regex (Depends-on): Add ‘verify’.
3646         regex: simplify by assuming C99
3647         * config/srclist.txt: Comment out regex_internal.h and regexec.c
3648         temporarily.
3649         * lib/regex_internal.h (lock_define, re_match_context_t):
3650         Simplify by assuming C99 macros and const.
3651         * lib/regexec.c (re_search_internal): Simplify by assuming C99
3652         initializers.  Remove unnecessary assignment, as mctx is now
3653         safely initialized earlier.
3655         regex: avoid copying of uninitialized storage
3656         * config/srclist.txt: Comment out regcomp.c temporarily.
3657         * lib/regcomp.c (build_charclass_op, create_tree) [! (GCC_LINT||lint)]:
3658         Initialize even when not checking for lint, as the behavior is
3659         arguably undefined otherwise and Coverity warns about it.
3661 2019-10-06  Bruno Haible  <bruno@clisp.org>
3663         access tests: Fix test failure when run as root.
3664         * tests/test-access.c: Include root-uid.h.
3665         (geteuid): Define fallback.
3666         (main): Don't expect that writing to a read-only file would fail when
3667         running as root. Also, remove the created files at the end.
3668         * modules/access-tests (Depends-on): Add root-uid.
3669         (configure.ac): Test whether geteuid exists.
3671 2019-10-06  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
3673         users.txt: add GNU nano
3674         Nano has been making use of gnulib since March 2017, version 2.8.0.
3676 2019-10-05  Paul Eggert  <eggert@cs.ucla.edu>
3678         bootstrap: simplify debugging of wget failures
3679         Problem reported by Tim Rühsen in:
3680         https://lists.gnu.org/r/bug-gnulib/2019-10/msg00000.html
3681         * build-aux/bootstrap (po_download_command_format):
3682         Invoke wget with -nv instead of -q, to make debugging easier.
3684 2019-09-29  Bruno Haible  <bruno@clisp.org>
3686         avltree-list: Fix compilation warning (introduced on 2014-09-16).
3687         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Remove
3688         'const' attribute.
3690 2019-09-29  Bruno Haible  <bruno@clisp.org>
3692         fbufmode: Fix compilation error on glibc >= 2.28 systems.
3693         * lib/stdio-impl.h (_IO_UNBUFFERED): Define fallback on glibc >= 2.28.
3695 2019-09-28  Bruno Haible  <bruno@clisp.org>
3697         Update comments that refer to POSIX.
3698         * lib/creat.c, lib/fopen.c, lib/open.c, lib/openat.c: Cite the relevant
3699         sentence about trailing slashes.
3700         * lib/fflush.c: Clarify the reasoning.
3701         * tests/test-fflush2.c: Cite the relevant sentence.
3703 2019-09-28  Bruno Haible  <bruno@clisp.org>
3705         access: Document limitations on Windows.
3706         Suggested by Zaretskii <eliz@gnu.org>.
3707         * doc/posix-functions/access.texi: Mention two limitations on Windows.
3709 2019-09-28  Bruno Haible  <bruno@clisp.org>
3711         findprog-in: Fix comment.
3712         Reported by Eli Zaretskii <eliz@gnu.org>.
3713         * lib/findprog.h (find_in_given_path): Extend description of EACCES
3714         condition.
3715         * lib/stat.c (rpl_stat): Fix typo in comment.
3716         * lib/utime.c (_gl_utimens_windows): Likewise.
3718 2019-09-23  Paul Eggert  <eggert@cs.ucla.edu>
3720         Update URLs and associated text
3721         (Thanks to Bruno Haible for proofreading this patch.)
3722         Prefer https: to http: in URLs where either will do, for the usual
3723         security reasons.  I also updated broken and/or moved URLs
3724         discovered during the process. In a few places I had to resort to
3725         archive.org, since I didn't find the originals elsewhere.
3727 2019-09-15  Paul Smith  <psmith@gnu.org>
3728             Bruno Haible  <bruno@clisp.org>
3730         findprog-in: Set errno when the search fails.
3731         * lib/findprog-in.c: Include <errno.h>.
3732         (find_in_given_path): Set errno before returning NULL.
3733         * lib/findprog.h (find_in_given_path): Update comment accordingly.
3734         Define the term "slash".
3736 2019-09-15  Bruno Haible  <bruno@clisp.org>
3738         findprog, findprog-lgpl, findprog-in: Fix crash on MSVC.
3739         * modules/findprog (Depends-on): Add access.
3740         * modules/findprog-lgpl (Depends-on): Likewise.
3741         * modules/findprog-in (Depends-on): Likewise.
3743 2019-09-15  Bruno Haible  <bruno@clisp.org>
3745         access: Add tests.
3746         * tests/test-access.c: New file.
3747         * modules/access-tests: New file.
3749         access: New module.
3750         * lib/unistd.in.h (access): New declaration.
3751         * lib/access.c: New file.
3752         * m4/access.m4: New file.
3753         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether access is declared.
3754         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ACCESS, REPLACE_ACCESS.
3755         * modules/unistd (Makefile.am): Substitute GNULIB_ACCESS,
3756         REPLACE_ACCESS.
3757         * modules/access: New file.
3758         * tests/test-unistd-c++.cc (access): Check signature.
3759         * doc/posix-functions/access.texi: Mention the new module.
3761 2019-09-15  Bruno Haible  <bruno@clisp.org>
3763         fcntl-h: Fix compilation error of creat.c on MSVC.
3764         * lib/fcntl.in.h: Include <io.h> also when __need_system_fcntl_h is
3765         defined.
3767 2019-09-15  Bruno Haible  <bruno@clisp.org>
3769         creat: Add tests.
3770         * tests/test-creat.c: New file, based on tests/test-open.h.
3771         * modules/creat-tests: New file.
3773         creat: New module.
3774         * lib/fcntl.in.h (creat): New declaration.
3775         * lib/creat.c: New file, based on lib/open.c.
3776         * m4/creat.m4: New file.
3777         * m4/open-slash.m4: New file, extracted from m4/open.m4.
3778         * m4/open.m4 (gl_FUNC_OPEN): Move trailing-slash test to open-slash.m4.
3779         Invoke gl_OPEN_TRAILING_SLASH_BUG.
3780         * modules/open (Files): Add m4/open-slash.m4.
3781         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_CREAT,
3782         REPLACE_CREAT.
3783         * modules/fcntl-h (Makefile.am): Substitute GNULIB_CREAT, REPLACE_CREAT.
3784         * modules/creat: New file.
3785         * tests/test-fcntl-h-c++.cc (creat): Check signature.
3786         * doc/posix-functions/creat.texi: Mention the new module.
3788 2019-09-15  Bruno Haible  <bruno@clisp.org>
3790         open tests: Enhance test.
3791         * tests/test-open.h (test_open): Test the creation of an executable
3792         regular file. Also improve initial cleanup.
3794 2019-09-15  Bruno Haible  <bruno@clisp.org>
3796         intprops tests: Avoid build failure with HP-UX cc.
3797         * tests/test-intprops.c: Disable a check that makes HP cc choke with
3798         "error 4018: Macro param too large after substitution - use -H option.".
3800 2019-09-14  Bruno Haible  <bruno@clisp.org>
3802         Make autoconf tests work with -Werror=implicit-function-declaration.
3803         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Include <wctype.h>, for
3804         towupper() declaration.
3805         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Include <stdlib.h>, for ptsname()
3806         declaration.
3808 2019-09-14  Bruno Haible  <bruno@clisp.org>
3810         findprog-in: Better mimic the system on native Windows.
3811         Reported by Paul Smith <psmith@gnu.org>.
3812         * lib/findprog-in.c (find_in_given_path): On native Windows, don't try
3813         non-empty suffixes when the file name already contains a '.'.
3815 2019-09-10  Bruno Haible  <bruno@clisp.org>
3817         wctob: Fix autoconf test.
3818         Based on patch by Florian Weimer <fweimer@redhat.com>.
3819         * m4/wctob.m4 (gl_FUNC_WCTOB): Include <stdlib.h> before using mbtowc.
3821 2019-09-09  Akim Demaille  <akim@lrde.epita.fr>
3823         xhash: provide hash_xinitialize.
3824         Suggested by Egor Pugin <egor.pugin@gmail.com>
3825         https://lists.gnu.org/archive/html/bison-patches/2019-09/msg00026.html
3826         * modules/xhash, lib/xhash.c: New.
3827         * lib/hash.h (hash_xinitialize): New.
3829 2019-09-09  Bruno Haible  <bruno@clisp.org>
3831         findprog-in: Make exec optimization optional.
3832         * lib/findprog.h: Add double-inclusion guard. Include <stdbool.h>.
3833         (find_in_given_path): Add optimize_for_exec parameter.
3834         * lib/findprog-in.c (find_in_given_path): Likewise.
3836 2019-09-08  Bruno Haible  <bruno@clisp.org>
3838         Add option to assume the best, not the worst, when cross-compiling.
3839         Suggested by Jonas Termansen <sortie@maxsi.org>.
3840         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add --enable-cross-guesses=...
3841         option. Set gl_cross_guess_normal and gl_cross_guess_inverted.
3842         * m4/argz.m4 (gl_FUNC_ARGZ): Obey --enable-cross-guesses for
3843         lt_cv_sys_argz_works.
3844         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Obey --enable-cross-guesses for
3845         ac_cv_func_calloc_0_nonnull.
3846         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Obey
3847         --enable-cross-guesses for gl_cv_func_realpath_works.
3848         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Obey --enable-cross-guesses for
3849         gl_cv_func_cbrtl_ieee.
3850         * m4/ceil.m4 (gl_FUNC_CEIL): Obey --enable-cross-guesses for
3851         gl_cv_func_ceil_ieee.
3852         * m4/ceilf.m4 (gl_FUNC_CEILF): Obey --enable-cross-guesses for
3853         gl_cv_func_ceilf_ieee.
3854         * m4/ceill.m4 (gl_FUNC_CEILL): Obey --enable-cross-guesses for
3855         gl_cv_func_ceill_ieee.
3856         * m4/chown.m4 (AC_FUNC_CHOWN): Obey --enable-cross-guesses for
3857         ac_cv_func_chown_works.
3858         (gl_FUNC_CHOWN): Obey --enable-cross-guesses for
3859         gl_cv_func_chown_slash_works, gl_cv_func_chown_ctime_works.
3860         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Obey
3861         --enable-cross-guesses for gl_cv_struct_dirent_d_ino.
3862         * m4/exp2l.m4 (gl_FUNC_EXP2L): Obey --enable-cross-guesses for
3863         gl_cv_func_exp2l_works, gl_cv_func_exp2l_ieee.
3864         * m4/expl.m4 (gl_FUNC_EXPL): Obey --enable-cross-guesses for
3865         gl_cv_func_expl_works.
3866         * m4/expm1.m4 (gl_FUNC_EXPM1): Obey --enable-cross-guesses for
3867         gl_cv_func_expm1_ieee.
3868         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Obey --enable-cross-guesses for
3869         gl_cv_func_expm1l_works.
3870         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Obey --enable-cross-guesses for
3871         gl_cv_func_open_directory_works.
3872         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Obey
3873         --enable-cross-guesses for gl_cv_func_fchownat_nofollow_works.
3874         (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Obey --enable-cross-guesses for
3875         gl_cv_func_fchownat_empty_filename_works.
3876         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Obey --enable-cross-guesses for
3877         gl_cv_func_fdopendir_works.
3878         * m4/floor.m4 (gl_FUNC_FLOOR): Obey --enable-cross-guesses for
3879         gl_cv_func_floor_ieee.
3880         * m4/floorf.m4 (gl_FUNC_FLOORF): Obey --enable-cross-guesses for
3881         gl_cv_func_floorf_ieee.
3882         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Obey --enable-cross-guesses for
3883         gl_cv_func_fma_works.
3884         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Obey --enable-cross-guesses for
3885         gl_cv_func_fmaf_works.
3886         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Obey --enable-cross-guesses for
3887         gl_cv_func_fmal_works.
3888         * m4/fmod.m4 (gl_FUNC_FMOD): Obey --enable-cross-guesses for
3889         gl_cv_func_fmod_ieee.
3890         * m4/fmodf.m4 (gl_FUNC_FMODF): Obey --enable-cross-guesses for
3891         gl_cv_func_fmodf_ieee.
3892         * m4/fmodl.m4 (gl_FUNC_FMODL): Obey --enable-cross-guesses for
3893         gl_cv_func_fmodl_ieee.
3894         * m4/fpurge.m4 (gl_FUNC_FPURGE): Obey --enable-cross-guesses for
3895         gl_cv_func_fpurge_works.
3896         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Obey
3897         --enable-cross-guesses for gl_cv_func_getcwd_path_max.
3898         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Obey --enable-cross-guesses for
3899         gl_cv_func_getcwd_null.
3900         (gl_FUNC_GETCWD): Update for getcwd-path-max.m4 change.
3901         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Obey --enable-cross-guesses for
3902         gl_cv_func_working_getdelim.
3903         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Obey --enable-cross-guesses for
3904         ac_cv_func_getgroups_works. Keep this macro also in Autoconf >= 2.70.
3905         (gl_FUNC_GETGROUPS): Obey --enable-cross-guesses for
3906         gl_cv_func_getgroups_works.
3907         * m4/getline.m4 (gl_FUNC_GETLINE): Obey --enable-cross-guesses for
3908         am_cv_func_working_getline.
3909         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Obey --enable-cross-guesses
3910         for gl_cv_func_getopt_gnu.
3911         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Obey
3912         --enable-cross-guesses for gl_cv_func_gettimeofday_clobber.
3913         * m4/hypot.m4 (gl_FUNC_HYPOT): Obey --enable-cross-guesses for
3914         gl_cv_func_hypot_ieee.
3915         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Obey --enable-cross-guesses for
3916         gl_cv_func_hypotf_ieee.
3917         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Obey --enable-cross-guesses for
3918         gl_cv_func_hypotl_ieee.
3919         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): Obey
3920         --enable-cross-guesses for gl_cv_func_iconv_supports_utf.
3921         * m4/link.m4 (gl_FUNC_LINK): Obey --enable-cross-guesses for
3922         gl_cv_func_link_works.
3923         * m4/linkat.m4 (gl_FUNC_LINKAT): Obey --enable-cross-guesses for
3924         gl_cv_func_linkat_slash.
3925         * m4/log.m4 (gl_FUNC_LOG): Obey --enable-cross-guesses for
3926         gl_cv_func_log_ieee.
3927         * m4/logf.m4 (gl_FUNC_LOGF): Obey --enable-cross-guesses for
3928         gl_cv_func_logf_ieee.
3929         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Obey --enable-cross-guesses for
3930         gl_cv_func_logl_works.
3931         * m4/log10.m4 (gl_FUNC_LOG10): Obey --enable-cross-guesses for
3932         gl_cv_func_log10_ieee.
3933         * m4/log10f.m4 (gl_FUNC_LOG10F): Obey --enable-cross-guesses for
3934         gl_cv_func_log10f_ieee.
3935         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Obey --enable-cross-guesses for
3936         gl_cv_func_log10l_works.
3937         * m4/log1p.m4 (gl_FUNC_LOG1P): Obey --enable-cross-guesses for
3938         gl_cv_func_log1p_ieee.
3939         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Obey --enable-cross-guesses for
3940         gl_cv_func_log1pf_ieee.
3941         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Obey --enable-cross-guesses for
3942         gl_cv_func_log1pl_ieee.
3943         * m4/log2.m4 (gl_FUNC_LOG2): Obey --enable-cross-guesses for
3944         gl_cv_func_log2_ieee.
3945         * m4/log2f.m4 (gl_FUNC_LOG2F): Obey --enable-cross-guesses for
3946         gl_cv_func_log2f_ieee.
3947         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Obey
3948         --enable-cross-guesses for
3949         gl_cv_func_lstat_dereferences_slashed_symlink.
3950         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Obey --enable-cross-guesses for
3951         ac_cv_func_malloc_0_nonnull. Keep this macro also in Autoconf >= 2.70.
3952         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Obey --enable-cross-guesses for
3953         gl_cv_C_locale_sans_EILSEQ.
3954         * m4/memchr.m4 (gl_FUNC_MEMCHR): Obey --enable-cross-guesses for
3955         gl_cv_func_memchr_works.
3956         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Obey --enable-cross-guesses for
3957         gl_cv_func_memmem_works_always.
3958         (gl_FUNC_MEMMEM): Obey --enable-cross-guesses for
3959         gl_cv_func_memmem_works_fast.
3960         * m4/mkdir.m4 (gl_FUNC_MKDIR): Obey --enable-cross-guesses for
3961         gl_cv_func_mkdir_trailing_slash_works,
3962         gl_cv_func_mkdir_trailing_dot_works.
3963         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Obey --enable-cross-guesses for
3964         gl_cv_func_mkfifo_works.
3965         * m4/mknod.m4 (gl_FUNC_MKNOD): Obey --enable-cross-guesses for
3966         gl_cv_func_mknod_works.
3967         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Obey --enable-cross-guesses for
3968         gl_cv_func_working_mkstemp.
3969         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Obey --enable-cross-guesses for
3970         gl_cv_func_working_mktime.
3971         * m4/modf.m4 (gl_FUNC_MODF): Obey --enable-cross-guesses for
3972         gl_cv_func_modf_ieee.
3973         * m4/modff.m4 (gl_FUNC_MODFF): Obey --enable-cross-guesses for
3974         gl_cv_func_modff_ieee.
3975         * m4/modfl.m4 (gl_FUNC_MODFL): Obey --enable-cross-guesses for
3976         gl_cv_func_modfl_ieee.
3977         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Obey --enable-cross-guesses for
3978         gl_cv_func_nanosleep.
3979         * m4/perror.m4 (gl_FUNC_PERROR): Obey --enable-cross-guesses for
3980         gl_cv_func_perror_works.
3981         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Obey --enable-cross-guesses for
3982         gl_cv_func_printf_sizes_c99.
3983         (gl_PRINTF_INFINITE): Obey --enable-cross-guesses for
3984         gl_cv_func_printf_infinite.
3985         (gl_PRINTF_INFINITE_LONG_DOUBLE): Obey --enable-cross-guesses for
3986         gl_cv_func_printf_infinite_long_double.
3987         (gl_PRINTF_DIRECTIVE_A): Obey --enable-cross-guesses for
3988         gl_cv_func_printf_directive_a.
3989         (gl_PRINTF_DIRECTIVE_F): Obey --enable-cross-guesses for
3990         gl_cv_func_printf_directive_f.
3991         (gl_PRINTF_FLAG_ZERO): Obey --enable-cross-guesses for
3992         gl_cv_func_printf_flag_zero.
3993         (gl_PRINTF_ENOMEM): Obey --enable-cross-guesses for
3994         gl_cv_func_printf_enomem.
3995         (gl_SNPRINTF_TRUNCATION_C99): Obey --enable-cross-guesses for
3996         gl_cv_func_snprintf_truncation_c99.
3997         (gl_SNPRINTF_RETVAL_C99): Obey --enable-cross-guesses for
3998         gl_cv_func_snprintf_retval_c99.
3999         (gl_SNPRINTF_DIRECTIVE_N): Obey --enable-cross-guesses for
4000         gl_cv_func_snprintf_directive_n.
4001         (gl_VSNPRINTF_ZEROSIZE_C99): Obey --enable-cross-guesses for
4002         gl_cv_func_vsnprintf_zerosize_c99.
4003         * m4/pselect.m4 (gl_FUNC_PSELECT): Obey --enable-cross-guesses for
4004         gl_cv_func_pselect_detects_ebadf.
4005         * m4/pthread_rwlock_rdlock.m4 (gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER):
4006         Obey --enable-cross-guesses for
4007         gl_cv_pthread_rwlock_rdlock_prefer_writer.
4008         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Obey --enable-cross-guesses for
4009         gl_cv_func_ptsname_sets_errno.
4010         * m4/putenv.m4 (gl_FUNC_PUTENV): Obey --enable-cross-guesses for
4011         gl_cv_func_svid_putenv.
4012         * m4/readlink.m4 (gl_FUNC_READLINK): Obey --enable-cross-guesses for
4013         gl_cv_func_readlink_works.
4014         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Obey --enable-cross-guesses for
4015         ac_cv_func_realloc_0_nonnull. Keep this macro also in Autoconf >= 2.70.
4016         * m4/regex.m4 (gl_REGEX): Obey --enable-cross-guesses for
4017         gl_cv_func_re_compile_pattern_working.
4018         * m4/remainder.m4 (gl_FUNC_REMAINDER): Obey --enable-cross-guesses for
4019         gl_cv_func_remainder_ieee.
4020         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Obey --enable-cross-guesses for
4021         gl_cv_func_remainderf_ieee.
4022         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Obey --enable-cross-guesses for
4023         gl_cv_func_remainderl_ieee.
4024         * m4/rintl.m4 (gl_FUNC_RINTL): Obey --enable-cross-guesses for
4025         gl_cv_func_rintl_works.
4026         * m4/rmdir.m4 (gl_FUNC_RMDIR): Obey --enable-cross-guesses for
4027         gl_cv_func_rmdir_works.
4028         * m4/round.m4 (gl_FUNC_ROUND): Obey --enable-cross-guesses for
4029         gl_cv_func_round_ieee.
4030         * m4/roundf.m4 (gl_FUNC_ROUNDF): Obey --enable-cross-guesses for
4031         gl_cv_func_roundf_ieee.
4032         * m4/roundl.m4 (gl_FUNC_ROUNDL): Obey --enable-cross-guesses for
4033         gl_cv_func_roundl_ieee.
4034         * m4/select.m4 (gl_FUNC_SELECT): Obey --enable-cross-guesses for
4035         gl_cv_func_select_detects_ebadf.
4036         * m4/setenv.m4 (gl_FUNC_SETENV): Obey --enable-cross-guesses for
4037         gl_cv_func_setenv_works.
4038         (gl_FUNC_UNSETENV): Obey --enable-cross-guesses for
4039         gl_cv_func_unsetenv_works.
4040         * m4/signbit.m4 (gl_SIGNBIT): Obey --enable-cross-guesses for
4041         gl_cv_func_signbit, gl_cv_func_signbit_gcc.
4042         * m4/sleep.m4 (gl_FUNC_SLEEP): Obey --enable-cross-guesses for
4043         gl_cv_func_sleep_works.
4044         * m4/stat.m4 (gl_FUNC_STAT): Obey --enable-cross-guesses for
4045         gl_cv_func_stat_file_slash.
4046         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Obey --enable-cross-guesses for
4047         gl_cv_func_stpncpy.
4048         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Obey
4049         --enable-cross-guesses for gl_cv_func_strcasestr_works_always.
4050         (gl_FUNC_STRCASESTR): Obey --enable-cross-guesses for
4051         gl_cv_func_strcasestr_linear.
4052         * m4/strerror.m4 (gl_FUNC_STRERROR): Obey --enable-cross-guesses for
4053         gl_cv_func_working_strerror.
4054         (gl_FUNC_STRERROR_0): Obey --enable-cross-guesses for
4055         gl_cv_func_strerror_0_works.
4056         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Obey
4057         --enable-cross-guesses for gl_cv_func_strerror_r_works.
4058         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Obey --enable-cross-guesses for
4059         gl_cv_func_strstr_works_always.
4060         (gl_FUNC_STRSTR): Obey --enable-cross-guesses for
4061         gl_cv_func_strstr_linear.
4062         * m4/strtod.m4 (gl_FUNC_STRTOD): Obey --enable-cross-guesses for
4063         gl_cv_func_strtod_works.
4064         * m4/strtold.m4 (gl_FUNC_STRTOLD): Obey --enable-cross-guesses for
4065         gl_cv_func_strtold_works.
4066         * m4/symlink.m4 (gl_FUNC_SYMLINK): Obey --enable-cross-guesses for
4067         gl_cv_func_symlink_works.
4068         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Obey --enable-cross-guesses for
4069         gl_cv_func_symlinkat_works.
4070         * m4/trunc.m4 (gl_FUNC_TRUNC): Obey --enable-cross-guesses for
4071         gl_cv_func_trunc_ieee.
4072         * m4/truncf.m4 (gl_FUNC_TRUNCF): Obey --enable-cross-guesses for
4073         gl_cv_func_truncf_ieee.
4074         * m4/truncl.m4 (gl_FUNC_TRUNCL): Obey --enable-cross-guesses for
4075         gl_cv_func_truncl_ieee.
4076         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Obey --enable-cross-guesses for
4077         gl_cv_func_tzset_clobber.
4078         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Obey --enable-cross-guesses for
4079         gl_cv_func_ungetc_works.
4080         * m4/unlink.m4 (gl_FUNC_UNLINK): Obey --enable-cross-guesses for
4081         gl_cv_func_unlink_honors_slashes, gl_cv_func_unlink_parent_fails.
4082         * m4/usleep.m4 (gl_FUNC_USLEEP): Obey --enable-cross-guesses for
4083         gl_cv_func_usleep_works.
4084         * m4/utimens.m4 (gl_UTIMENS): Obey --enable-cross-guesses for
4085         gl_cv_func_futimesat_works.
4086         * m4/utimes.m4 (gl_FUNC_UTIMES): Obey --enable-cross-guesses for
4087         gl_cv_func_working_utimes.
4088         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Obey --enable-cross-guesses for
4089         gl_cv_func_wcwidth_works.
4090         * m4/glob.m4 (gl_GLOB): When cross-compiling, don't create symlinks for
4091         testing. Obey --enable-cross-guesses for gl_cv_glob_lists_symlinks.
4092         * m4/rename.m4 (gl_FUNC_RENAME): When cross-compiling, don't create
4093         links for testing. Obey --enable-cross-guesses for
4094         gl_cv_func_rename_slash_dst_works, gl_cv_func_rename_slash_src_works,
4095         gl_cv_func_rename_link_works, gl_cv_func_rename_dest_works.
4097 2019-09-08  Bruno Haible  <bruno@clisp.org>
4099         Clarify that cross-compilation guesses are guesses.
4100         * m4/threads.m4 (gl_THREADS_H): Say "guessing yes" or "guessing no" when
4101         cross-compiling.
4103 2019-09-08  Bruno Haible  <bruno@clisp.org>
4105         chown: Fix configure output (regression from 2019-03-23).
4106         * m4/chown.m4 (gl_FUNC_CHOWN): Fix reference to
4107         gl_cv_func_chown_follows_symlink variable.
4109 2019-09-08  Bruno Haible  <bruno@clisp.org>
4111         findprog-in: New module.
4112         Suggested by Paul Smith <psmith@gnu.org>.
4113         * lib/findprog.h (find_in_given_path): New declaration.
4114         * lib/findprog-in.c: New file, based on lib/findprog.c.
4115         * m4/findprog-in.m4: New file, based on m4/findprog.m4.
4116         * modules/findprog-in: New file.
4118 2019-09-08  Bruno Haible  <bruno@clisp.org>
4120         findprog: Remove unused dependency.
4121         * modules/findprog (Depends-on): Remove strdup.
4123 2019-09-08  Bruno Haible  <bruno@clisp.org>
4125         findprog: Remove test that is obsolete since 2006-04-24.
4126         * m4/findprog.m4 (gl_FINDPROG): Don't test for unistd.h.
4128 2019-09-06  Akim Demaille  <akim@lrde.epita.fr>
4130         bitset: style changes
4131         * lib/bitset/vector.c (vbitset_resize): Factor computation.
4132         * lib/bitset.c, lib/bitset/stats.c, lib/bitsetv.c: Prefer
4133         xzalloc to xcalloc.
4134         Suggested by Paul Eggert.
4136 2019-09-06  Akim Demaille  <akim@lrde.epita.fr>
4138         bitset: check memory allocation
4139         Reported by 江 祖铭 (Zu-Ming Jiang).
4140         With help from Paul Eggert.
4141         https://lists.gnu.org/archive/html/bug-bison/2019-08/msg00016.html
4142         * lib/bitset/table.c (tbitset_resize): When growing, use xrealloc
4143         instead of realloc.
4144         When shrinking, accept failures.
4145         * lib/bitset/vector.c (vbitset_resize): Likewise.
4147 2019-09-07  Paul Eggert  <eggert@cs.ucla.edu>
4149         scratch_buffer: sync from glibc
4150         * config/srclist.txt: Add the scratch_buffer source
4151         code from glibc, since these should be in sync.
4152         Autoupdate.
4154 2019-09-07  Bruno Haible  <bruno@clisp.org>
4156         doc: Update for glibc 2.30.
4157         * doc/glibc-functions/gettid.texi: New file.
4158         * doc/glibc-functions/pthread_cond_clockwait.texi: New file.
4159         * doc/glibc-functions/pthread_mutex_clocklock.texi: New file.
4160         * doc/glibc-functions/pthread_rwlock_clockrdlock.texi: New file.
4161         * doc/glibc-functions/pthread_rwlock_clockwrlock.texi: New file.
4162         * doc/glibc-functions/sem_clockwait.texi: New file.
4163         * doc/glibc-functions/tgkill.texi: New file.
4164         * doc/glibc-functions/twalk_r.texi: New file.
4165         * doc/gnulib.texi: Include them.
4166         (Glibc semaphore.h): New section.
4167         * doc/pastposix-functions/h_errno.texi: Update.
4168         * doc/posix-functions/*.texi: Likewise.
4170 2019-09-06  Bruno Haible  <bruno@clisp.org>
4172         symlink tests: Avoid test failure on Linux with Lustre file system.
4173         Reported by Thomas C Oppe <Thomas.C.Oppe@erdc.dren.mil>
4174         at <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=37312>.
4175         * tests/test-symlink.h (test_symlink): Accept errno value ENOENT.
4177 2019-09-01  Bruno Haible  <bruno@clisp.org>
4179         gitsub.sh: Add support for shallow-cloning of subdirectories.
4180         * top/gitsub.sh (func_usage): Document allowed git options with
4181         'git pull'.
4182         (func_pull): Accept GIT_OPTIONS argument.
4183         (pull): Parse git options before complaining about too many arguments.
4184         Pass the git options to func_pull.
4186 2019-08-29  Bruno Haible  <bruno@clisp.org>
4188         lock: Fix cross-compilation guesses.
4189         * m4/pthread_rwlock_rdlock.m4 (gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER):
4190         Require AC_CANONICAL_HOST. When cross-compiling, guess no on most
4191         platforms.
4193 2019-08-28  Bruno Haible  <bruno@clisp.org>
4195         isfinite, isinf, isnan, signbit: Fix error in C++ mode on mingw.
4196         Reported by Martin Storsjö <martin@martin.st> in
4197         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00075.html>.
4198         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Add more arguments.
4199         (isfinite, isinf, isnan, signbit): On platforms that use C++ include
4200         files from GCC 6 or newer, use an override through '#define', because
4201         the inline definitions in the platform's <cmath> cannot be overridden
4202         in another way.
4204 2019-08-27  Paul Eggert  <eggert@cs.ucla.edu>
4206         Revert macOS INT_MULTIPLY_WRAPV patch
4207         Problem reported by Bruno Haible in:
4208         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00076.html
4209         * lib/intprops.h (_GL_HAS___builtin_mul_overflow): Remove.
4210         (_GL_HAS_BUILTIN_MUL_OVERFLOW):
4211         Go back to working around the Clang bug on macOS.
4213 2019-08-27  Bruno Haible  <bruno@clisp.org>
4215         libtool-next-version: Fix error output.
4216         * build-aux/libtool-next-version (func_fatal_error): Fix the program
4217         name.
4219 2019-08-27  Paul Eggert  <eggert@cs.ucla.edu>
4221         Speed up INT_MULTIPLY_WRAPV on macOS
4222         Assume that __builtin_mul_overflow works OK with Clang on macOS.
4223         Mattias Engdegård says it’s safe to assume the relevant library
4224         is always available there.
4225         * lib/intprops.h (_GL_HAS___builtin_mul_overflow):
4226         New temporary internal macro.
4227         (_GL_HAS_BUILTIN_MUL_OVERFLOW):
4228         No need to work around the Clang bug on macOS.
4230 2019-08-25  Paul Eggert  <eggert@cs.ucla.edu>
4232         intprops.h, verify.h: port better to clang
4233         Improve code generated by INT_ADD_WRAPV and INT_SUBTRACT_WRAPV
4234         with Clang.  Problem reported privately by Mattias Engdegård.
4235         Also, insulate intprops.h and verify.h better against each other’s
4236         definitions of __has_builtin on non-Clang hosts.
4237         * lib/intprops.h (__has_builtin): Define a temporary substitute
4238         if __has_builtin is not already defined.
4239         (_GL_HAS___builtin_add_overflow, _GL_TEMPDEF___has_builtin):
4240         New temporary internal macros.
4241         (_GL_HAS_BUILTIN_ADD_OVERFLOW, _GL_HAS_BUILTIN_MUL_OVERFLOW):
4242         Now two separate macros, replacing the old
4243         _GL_HAS_BUILTIN_OVERFLOW, since we no longer assume that
4244         __builtin_mul_overflow is like the rest.  All uses changed.
4245         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV):
4246         Adjust to above changes.
4247         (_GL_INT_OP_WRAPV): Remove ‘builtin’ arg, since it’s no
4248         longer relevant.  All uses changed.
4249         * lib/verify.h (__has_builtin): Treat like intprops.h,
4250         so that the two .h files do not collide with each other.
4251         (_GL_HAS___builtin_unreachable, _GL_HAS___builtin_trap)
4252         (_GL_TEMPDEF___has_builtin): New temporary internal macros.
4254 2019-08-24  Paul Eggert  <eggert@cs.ucla.edu>
4256         intprops: say why not Clang __builtin_add_overflow
4257         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW):
4258         Mention Clang in comment, responding to a query from
4259         Mattias Engdegård.
4261 2019-08-24  Bruno Haible  <bruno@clisp.org>
4263         doc: Document most of the files outside of modules.
4264         * doc/gnulib.texi (Build Infrastructure Files,
4265         Release Management Files): New chapters.
4267 2019-08-24  Bruno Haible  <bruno@clisp.org>
4269         bootstrap: Keep in sync with the 'gettext' module.
4270         Reported by Assaf Gordon in
4271         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00045.html>.
4272         * build-aux/po/Makefile.in.in: Update to gettext 0.20.
4273         * build-aux/po/remove-potcdate.sin: Likewise.
4275 2019-08-24  Bruno Haible  <bruno@clisp.org>
4277         crypto/gc-sha512: Add tests.
4278         * tests/test-gc-sha512.c: New file, based on tests/test-gc-sha1.c.
4279         * modules/crypto/gc-sha512-tests: New file.
4281         crypto/gc-sha256: Add tests.
4282         * tests/test-gc-sha256.c: New file, based on tests/test-gc-sha1.c.
4283         * modules/crypto/gc-sha256-tests: New file.
4285         crypto/gc-sha256, crypto/gc-sha512: New modules.
4286         * lib/gc.h (gc_sha256, gc_sha512): New declarations.
4287         * lib/gc-gnulib.c: Include sha256.h, sha512.h.
4288         (MAX_DIGEST_SIZE): Set to 64.
4289         (_gc_hash_ctx, gc_hash_open, gc_hash_digest_length, gc_hash_write,
4290         gc_hash_read, gc_hash_buffer): Add support for sha256 and sha512.
4291         (gc_sha256, gc_sha512): New functions.
4292         * lib/gc-libgcrypt.c (gc_sha256, gc_sha512): New functions.
4293         * modules/crypto/gc-sha256: New file, based on modules/crypto/gc-sha1.
4294         * modules/crypto/gc-sha512: New file, based on modules/crypto/gc-sha1.
4296 2019-08-24  Bruno Haible  <bruno@clisp.org>
4298         crypto/gc-sha1 tests: Improve output when the test fails.
4299         * tests/test-gc-sha1.c (main): In case of mismatch, print the entire
4300         output.
4302 2019-08-24  Bruno Haible  <bruno@clisp.org>
4304         crypto/gc-sm3: Fix compilation error with --with-libgcrypt.
4305         * m4/gc-sm3.m4 (gl_GC_SM3): Test whether libgcrypt supports SM3. Define
4306         LIBGCRYPT_HAS_MD_SM3.
4307         * lib/gc-libgcrypt.c: Include sm3.h.
4308         (_gc_hash_ctx, gc_hash_open, gc_hash_hmac_setkey, gc_hash_write,
4309         gc_hash_read, gc_hash_close, gc_hash_buffer, gc_sm3): Use the gnulib
4310         implementation if libgcrypt does not support SM3.
4312 2019-08-24  Bruno Haible  <bruno@clisp.org>
4314         crypto/gc-md2: Optimize and clarify code.
4315         * lib/gc-gnulib.c (gc_hash_open): Comment out md2_init_ctx invocation.
4316         * lib/gc-libgcrypt.c (gc_hash_open): Clarify why md2_init_ctx invocation
4317         is not needed.
4319 2019-08-24  Bruno Haible  <bruno@clisp.org>
4321         crypto/gc-md2: Add comment.
4322         * lib/gc-libgcrypt.c: Add comment.
4324 2019-08-24  Bruno Haible  <bruno@clisp.org>
4326         crypto/gc-{md[24],rijndael} tests: Fix link error with --with-libgcrypt.
4327         * modules/crypto/gc-md2-tests (test_gc_md2_LDADD): New variable.
4328         * modules/crypto/gc-md4-tests (test_gc_md4_LDADD): New variable.
4329         * modules/crypto/gc-rijndael-tests (test_gc_rijndael_LDADD): New
4330         variable.
4332 2019-08-24  Bruno Haible  <bruno@clisp.org>
4334         crypto/gc: Fix link error with --with-libgcrypt.
4335         * m4/gc.m4 (gl_GC): Set LIB_CRYPTO to the value found by the
4336         AC_LIB_HAVE_LINKFLAGS invocation.
4338 2019-08-24  Bruno Haible  <bruno@clisp.org>
4340         crypto/gc: Access the module indicators correctly.
4341         * lib/gc-gnulib.c: Use '#if GNULIB_GC_*', not '#ifdef GNULIB_GC_*'.
4342         * lib/gc-libgcrypt.c: Likewise.
4344 2019-08-24  Bruno Haible  <bruno@clisp.org>
4346         crypto/gc: Fix configuration with --with-libgcrypt.
4347         * m4/libgcrypt.m4: New file, copied from libgcrypt/src/libgcrypt.m4.
4348         * modules/crypto/gc (Files): Add it.
4349         * m4/gc.m4 (gl_GC): Assume AM_PATH_LIBGCRYPT is defined.
4351 2019-08-24  Bruno Haible  <bruno@clisp.org>
4353         Remove unused file.
4354         * m4/stat-macros.m4: Remove file.
4356 2019-08-21  Paul Eggert  <eggert@cs.ucla.edu>
4358         New strip-trailing-space option for srclist-update
4359         * config/srclist-update (fixfile): Support new option.
4360         * config/srclist.txt (texinfo.tex, maintain.texi, standards.texi):
4361         Use it.
4363 2019-08-20  Eric Blake  <eblake@redhat.com>
4365         accept4: Support SOCK_NONBLOCK, if defined
4366         * lib/accept4.c (accept4): If SOCK_NONBLOCK is defined, honor it.
4368         accept4: Fix compilation when native accept4() exists.
4369         Reported by Richard W.M. Jones <rjones@redhat.com> in
4370         https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00029.html
4371         * lib/accept4.c (accept4): Match witness symbol to m4 file update.
4373 2019-08-18  Bruno Haible  <bruno@clisp.org>
4375         Defeat -flto GCC optimization in math autoconf tests.
4376         Reported by Tomasz Kłoczko <kloczko.tomasz@gmail.com>
4377         at <https://savannah.gnu.org/bugs/?56109>.
4378         * m4/mathfunc.m4 (gl_MATHFUNC): Mark function pointer as 'volatile'.
4379         * m4/acosl.m4 (gl_FUNC_ACOSL): Likewise.
4380         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
4381         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
4382         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
4383         * m4/exp2.m4 (gl_FUNC_EXP2): Likewise.
4384         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
4385         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
4386         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Likewise.
4387         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
4388         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
4389         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
4391 2019-08-17  Bruno Haible  <bruno@clisp.org>
4393         windows-spin: Implement declared functions.
4394         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
4395         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00024.html>.
4396         * lib/windows-spin.c (glwthread_spin_trylock): Fix typo in function
4397         name.
4399 2019-08-17  Paul Eggert  <eggert@cs.ucla.edu>
4401         intprops: port to Oracle Developer Studio 12.6
4402         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix recently-introduced
4403         typos that were in a section not compiled by GCC.
4405 2019-08-14  Paul Eggert  <eggert@cs.ucla.edu>
4407         intprops: support uchar, ushort _WRAPV dests
4408         * lib/intprops.h (_GL_INT_OP_WRAPV_SMALLISH): New macro, defined
4409         when __builtin_add_overflow etc. and _Generic are not used.
4410         (_GL_INT_OP_WRAPV): Use it to support destinations that
4411         are unsigned char or unsigned short, even in compilers
4412         that lack __typeof__ and are not C11-compatible.
4414         intprops: pacify picky GCC
4415         * lib/intprops.h (_GL_BUILTIN_MUL_OVERFLOW):
4416         Pacify GCC’s complaints about ignoring __builtin_mul_overflow’s
4417         possibly-incorrect result.
4418         (_GL_INT_MULTIPLY_RANGE_OVERFLOW): Pacify GCC’s complaints
4419         about (A) used as a boolean, when A is an expression like 3 * 4.
4421         intprops: support unsigned *_WRAPV results
4422         Add support for unsigned, unsigned long, and unsigned long long
4423         results to INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, and
4424         INT_MULTIPLY_WRAPV.  Also, work around GCC bug 91450, and fix a
4425         bug with unsigned inputs reported by Eli Zaretskii in:
4426         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00012.html
4427         * config/srclist.txt: Break the glibc connection for intprops.h
4428         temporarily, while more testing is done in Gnulib-using apps.
4429         * lib/intprops.h (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
4430         (INT_MULTIPLY_WRAPV, _GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH):
4431         Support unsigned results no narrower than unsigned int.  Report
4432         overflow correctly if some arguments are unsigned.
4433         (_GL_BUILTIN_MUL_OVERFLOW): New macro, to work around GCC bug 91450.
4434         (_GL_INT_OP_CALC): Simplify now that the OVERFLOW argument does
4435         the right thing with narrow args.
4436         (_GL_INT_OP_CALC1): Remove.  All callers removed.
4437         (_GL_INT_ADD_RANGE_OVERFLOW, _GL_INT_SUBTRACT_RANGE_OVERFLOW)
4438         (_GL_INT_MULTIPLY_RANGE_OVERFLOW): New macros.
4439         * tests/test-intprops.c: Check for bugs and test new behavior.
4441 2019-08-14  Bruno Haible  <bruno@clisp.org>
4443         get_progname_of: New module.
4444         * lib/get_progname_of.h: New file.
4445         * lib/get_progname_of.c: New file, based on lib/getprogname.c.
4446         * lib/getprogname.c (getprogname): Tweak coding style.
4447         * lib/vma-iter.c (vma_iterate_bsd): Update comment.
4448         * modules/get_progname_of: New file.
4450 2019-08-14  Bruno Haible  <bruno@clisp.org>
4452         get_ppid_of: New module.
4453         * lib/get_ppid_of.h: New file.
4454         * lib/get_ppid_of.c: New file.
4455         * modules/get_ppid_of: New file.
4457 2019-08-13  Bruno Haible  <bruno@clisp.org>
4459         libtextstyle-optional tests: Support the NO_COLOR environment variable.
4460         * tests/test-libtextstyle.c (main): Do not emit styling when the
4461         environment variable NO_COLOR is set.
4463 2019-08-12  Paul Eggert  <eggert@cs.ucla.edu>
4465         verify: improve diagnostic quality in recent GCC
4466         If ‘verify’ fails in a deeply-nested macro, GCC does not output a
4467         useful line number containing the top-level caller of the macro.
4468         So, bring back the older way of issuing a diagnostic containing
4469         the top-level call’s arg, so that it is easier to diagnose
4470         ‘verify’ failures with recent GCC.
4471         * lib/verify.h (_GL_VERIFY_TRUE, _GL_VERIFY_TYPE):
4472         Bring back DIAGNOSTIC arg.  All callers changed.
4473         (verify): Just use _GL_VERIFY.
4475 2019-08-11  Bruno Haible  <bruno@clisp.org>
4477         localcharset: Add more aliases for OS/2.
4478         Based on patch by KO Myung-Hun <komh78@gmail.com> in
4479         <https://lists.gnu.org/archive/html/bug-gnu-libiconv/2019-08/msg00004.html>.
4480         * lib/localcharset.c (alias_table) [OS2]: Add more aliases.
4482 2019-08-10  Eric Blake  <eblake@redhat.com>
4484         configmake: Update advice on usage.
4485         * modules/configmake (Include): No longer necessary to include
4486         last, since configmake.h itself worries about collision avoidance.
4488 2019-08-10  Assaf Gordon <assafgordon@gmail.com>
4490         parse-datetime: fix 'T' military timezone handling
4491         * lib/parse-datetime.y (zone):
4492         follow-up to the previous commit: the 'T' case is handled outside the
4493         conversion table (used as either military timezone UTC-7 or ISO8601
4494         separator). Change it from "HOUR(7)" to "-HOUR(7)" to match other
4495         timezone letters.
4497 2019-08-09  Paul Eggert  <eggert@cs.ucla.edu>
4499         parse-datetime: fix military timezone letters
4500         Problem and trivial fix reported by Neil Hoggarth in:
4501         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00005.html
4502         * lib/parse-datetime.y (military_table):
4503         Do it the right way, not the RFC 822 way.
4505 2019-08-08  Eric Blake  <eblake@redhat.com>
4507         configmake: Avoid namespace pollution issue on mingw.
4508         * modules/configmake (Makefile.am): If the project uses
4509         <winsock2.h>, include that header before defining DATADIR.
4511 2019-07-28  Bruno Haible  <bruno@clisp.org>
4513         mbrtowc tests: Fix regression on mingw (regression from 2018-02-24).
4514         * tests/test-mbrtowc.c (main): Fix expected value of wc.
4516 2019-07-24  Bruno Haible  <bruno@clisp.org>
4518         pthread-h: Fix definitions of types and macros on mingw.
4519         * lib/pthread.in.h (pthread_t, pthread_attr_t, PTHREAD_CREATE_JOINABLE,
4520         PTHREAD_CREATE_DETACHED): Define also when module 'pthread-thread' is
4521         not in use.
4522         (pthread_once_t, PTHREAD_ONCE_INIT): Define also when module
4523         'pthread-once' is not in use.
4524         (pthread_mutex_t, pthread_mutexattr_t, PTHREAD_MUTEX_INITIALIZER,
4525         PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL, PTHREAD_MUTEX_ERRORCHECK,
4526         PTHREAD_MUTEX_RECURSIVE): Define also when module 'pthread-mutex' is not
4527         in use.
4528         (pthread_rwlock_t, pthread_rwlockattr_t, PTHREAD_RWLOCK_INITIALIZER):
4529         Define also when module 'pthread-rwlock' is not in use.
4530         (pthread_cond_t, pthread_condattr_t, PTHREAD_COND_INITIALIZER): Define
4531         also when module 'pthread-cond' is not in use.
4532         (pthread_key_t, PTHREAD_DESTRUCTOR_ITERATIONS): Define also when module
4533         'pthread-tss' is not in use.
4534         (pthread_spinlock_t): Define also when module 'pthread-spin' is not in
4535         use.
4537 2019-07-24  Simon Josefsson  <simon@josefsson.org>
4539         crypto/gc: Cope with libgcrypt without SM3.
4540         * lib/gc-libgcrypt.c (gc_hash_open): Guard SM3 usage.
4542 2019-07-23  Paul Eggert  <eggert@cs.ucla.edu>
4544         backupfile: fix resource leak on memory failure
4545         Problem found by Coverity (CID 1484214).
4546         * lib/backupfile.c (backupfile_internal): Don’t leak dirp.
4548 2019-07-22  Bruno Haible  <bruno@clisp.org>
4550         Avoid missing-declarations warning in various tests.
4551         * tests/test-argp.c (fail, test1, test2, test_file, test3, test4, test5,
4552         test6, test_optional, test7, test8, test9, test10, test11, test12,
4553         test13, test14, test15, test_fun): Declare static.
4554         * tests/test-cnd.c (test_cnd_wait): Likewise.
4555         * tests/test-cond.c (test_cond): Likewise.
4557 2019-07-22  Bernhard Voelker  <mail@bernhard-voelker.de>
4559         pthread tests: Avoid missing-declarations warning.
4560         * tests/test-pthread-cond.c (test_pthread_cond_wait): Declare static.
4562 2019-07-19  Bruno Haible  <bruno@clisp.org>
4564         parse-datetime: Avoid warnings from bison versions >= 3.3.
4565         Reported by Bernhard Voelker <mail@bernhard-voelker.de>.
4566         * modules/parse-datetime (Makefile.am): Don't pass option '-y' to bison.
4568 2019-07-19  Bruno Haible  <bruno@clisp.org>
4570         parse-datetime: Require Bison 2.4 or newer.
4571         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Set PARSE_DATETIME_BISON.
4572         Code taken from gettext's intl.m4.
4573         * modules/parse-datetime (Makefile.am): Use PARSE_DATETIME_BISON instead
4574         of YACC.
4576 2019-07-19  Bruno Haible  <bruno@clisp.org>
4578         areadlink-with-size, xgethostname, xgetdomainname: Fix GCC warning.
4579         * lib/areadlink-with-size.c: Include <string.h>.
4580         * lib/areadlinkat-with-size.c: Likewise.
4581         * lib/xgethostname.c: Likewise.
4582         * lib/xgetdomainname.c: Likewise.
4584 2019-07-19  Bernhard Voelker  <mail@bernhard-voelker.de>
4586         parse-datetime: avoid "%pure-parser" deprecation warning from Bison 3.4
4587         * lib/parse-datetime.y: Use "%define api.pure" rather than obsolescent
4588         "%pure-parser".  The former is available since Bison 2.3b (2008),
4589         while the latter is marked as obsolete since version 3.4 (May 2019).
4591 2019-07-16  Bruno Haible  <bruno@clisp.org>
4593         update-copyright: Make it work again (regression from 2019-06-15).
4594         Reported by Brian C. Lane <bcl@redhat.com>.
4595         * build-aux/update-copyright: Add back the -0777, -p, -i options.
4597 2019-07-14  Bruno Haible  <bruno@clisp.org>
4599         doc: Update info about <pthread.h>.
4600         * doc/posix-headers/pthread.texi: Mention the module 'pthread-h' instead
4601         of 'pthread'.
4603 2019-07-14  Bruno Haible  <bruno@clisp.org>
4605         pthread_sigmask tests: Use new multithread modules.
4606         * tests/test-pthread_sigmask2.c: Include <pthread.h> instead of
4607         glthread/thread.h.
4608         (main_thread, killer_thread): Change type to pthread_t.
4609         (main): Update accordingly.
4610         * modules/pthread_sigmask-tests (Depends-on): Add pthread-thread. Remove
4611         thread.
4613 2019-07-14  Bruno Haible  <bruno@clisp.org>
4615         pthread-tss: Add tests.
4616         * tests/test-pthread-tss.c: New file, based on tests/test-tls.c and
4617         tests/test-tss.c.
4618         * modules/pthread-tss-tests: New file.
4620 2019-07-14  Bruno Haible  <bruno@clisp.org>
4622         pthread-cond: Add tests.
4623         * tests/test-pthread-cond.c: New file, based on tests/test-cond.c and
4624         tests/test-cnd.c.
4625         * modules/pthread-cond-tests: New file.
4627 2019-07-14  Bruno Haible  <bruno@clisp.org>
4629         pthread-rwlock: Add tests.
4630         * tests/test-pthread-rwlock.c: New file, based on tests/test-lock.c.
4631         * modules/pthread-rwlock-tests: New file.
4633 2019-07-14  Bruno Haible  <bruno@clisp.org>
4635         pthread-mutex: Add tests.
4636         * tests/test-pthread-mutex.c: New file, based on tests/test-lock.c and
4637         tests/test-mtx.c.
4638         * modules/pthread-mutex-tests: New file.
4640 2019-07-14  Bruno Haible  <bruno@clisp.org>
4642         pthread-once: Add tests.
4643         * tests/test-pthread-once1.c: New file, based on tests/test-once.c and
4644         tests/test-call_once.c.
4645         * tests/test-pthread-once2.c: New file, based on tests/test-lock.c and
4646         tests/test-mtx.c.
4647         * modules/pthread-once-tests: New file.
4649 2019-07-14  Bruno Haible  <bruno@clisp.org>
4651         pthread-thread: Add tests.
4652         * tests/test-pthread-thread.c: New file, based on
4653         tests/test-thread_create.c and tests/test-thrd_create.c.
4654         * modules/pthread-thread-tests: New file.
4656 2019-07-14  Bruno Haible  <bruno@clisp.org>
4658         pthread: Turn into a convenience module.
4659         * lib/pthread.in.h: Remove declarations for extern inline functions.
4660         * lib/pthread.c: Remove file.
4661         * modules/pthread (Files): Remove it.
4662         (Depends-on): Add pthread-thread, pthread-once, pthread-mutex,
4663         pthread-rwlock, pthread-cond, pthread-tss, pthread-spin.
4664         (configure.ac): Don't compile lib/pthread.c. Don't set GNULIB_PTHREAD.
4665         * m4/pthread_h.m4 (gl_PTHREAD_H_DEFAULTS): Don't initialize
4666         GNULIB_PTHREAD.
4667         * modules/pthread-h (Makefile.am): Don't substitute GNULIB_PTHREAD.
4669 2019-07-14  Bruno Haible  <bruno@clisp.org>
4671         pthread-spin: New module.
4672         * lib/pthread.in.h (pthread_spin_init, pthread_spin_destroy,
4673         pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock): Remove
4674         inline definitions.
4675         * lib/pthread-spin.c: New file.
4676         * m4/pthread-spin.m4: New file.
4677         * modules/pthread-spin: New file.
4678         * doc/posix-functions/pthread_spin_init.texi: Mention the new module.
4679         * doc/posix-functions/pthread_spin_lock.texi: Likewise.
4680         * doc/posix-functions/pthread_spin_trylock.texi: Likewise.
4681         * doc/posix-functions/pthread_spin_unlock.texi: Likewise.
4682         * doc/posix-functions/pthread_spin_destroy.texi: Likewise.
4684 2019-07-14  Bruno Haible  <bruno@clisp.org>
4686         pthread-tss: New module.
4687         * lib/pthread-tss.c: New file.
4688         * m4/pthread-tss.m4: New file.
4689         * modules/pthread-tss: New file.
4690         * doc/posix-functions/pthread_key_create.texi: Mention the new module.
4691         * doc/posix-functions/pthread_setspecific.texi: Likewise.
4692         * doc/posix-functions/pthread_getspecific.texi: Likewise.
4693         * doc/posix-functions/pthread_key_delete.texi: Likewise.
4695 2019-07-14  Bruno Haible  <bruno@clisp.org>
4697         pthread-cond: New module.
4698         * lib/pthread.in.h (pthread_cond_destroy, pthread_cond_init,
4699         pthread_cond_signal, pthread_cond_wait): Remove inline definitions.
4700         * lib/pthread-cond.c: New file.
4701         * m4/pthread-cond.m4: New file.
4702         * modules/pthread-cond: New file.
4703         * doc/posix-functions/pthread_cond_init.texi: Mention the new module.
4704         * doc/posix-functions/pthread_condattr_init.texi: Likewise.
4705         * doc/posix-functions/pthread_condattr_destroy.texi: Likewise.
4706         * doc/posix-functions/pthread_cond_wait.texi: Likewise.
4707         * doc/posix-functions/pthread_cond_timedwait.texi: Likewise.
4708         * doc/posix-functions/pthread_cond_signal.texi: Likewise.
4709         * doc/posix-functions/pthread_cond_broadcast.texi: Likewise.
4710         * doc/posix-functions/pthread_cond_destroy.texi: Likewise.
4712 2019-07-14  Bruno Haible  <bruno@clisp.org>
4714         pthread-rwlock: New module.
4715         * lib/pthread-rwlock.c: New file, based on lib/glthread/lock.c.
4716         * m4/pthread-rwlock.m4: New file.
4717         * modules/pthread-rwlock: New file.
4718         * doc/posix-functions/pthread_rwlock_init.texi: Mention the new module
4719         and the Android problem.
4720         * doc/posix-functions/pthread_rwlockattr_init.texi: Likewise.
4721         * doc/posix-functions/pthread_rwlockattr_destroy.texi: Likewise.
4722         * doc/posix-functions/pthread_rwlock_rdlock.texi: Likewise.
4723         * doc/posix-functions/pthread_rwlock_wrlock.texi: Likewise.
4724         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likewise.
4725         * doc/posix-functions/pthread_rwlock_trywrlock.texi: Likewise.
4726         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
4727         * doc/posix-functions/pthread_rwlock_timedwrlock.texi: Likewise.
4728         * doc/posix-functions/pthread_rwlock_unlock.texi: Likewise.
4729         * doc/posix-functions/pthread_rwlock_destroy.texi: Likewise.
4731 2019-07-14  Bruno Haible  <bruno@clisp.org>
4733         pthread-mutex: New module.
4734         * lib/pthread.in.h (pthread_mutexattr_destroy, pthread_mutexattr_init,
4735         pthread_mutexattr_settype, pthread_mutex_destroy, pthread_mutex_init,
4736         pthread_mutex_lock, pthread_mutex_trylock, pthread_mutex_timedlock,
4737         pthread_mutex_unlock): Remove inline definitions.
4738         * lib/pthread-mutex.c: New file.
4739         * m4/pthread-mutex.m4: New file.
4740         * modules/pthread-mutex: New file.
4741         * doc/posix-functions/pthread_mutex_init.texi: Mention the new module.
4742         * doc/posix-functions/pthread_mutexattr_init.texi: Likewise.
4743         * doc/posix-functions/pthread_mutexattr_gettype.texi: Likewise.
4744         * doc/posix-functions/pthread_mutexattr_settype.texi: Likewise.
4745         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
4746         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
4747         * doc/posix-functions/pthread_mutexattr_destroy.texi: Likewise.
4748         * doc/posix-functions/pthread_mutex_lock.texi: Likewise.
4749         * doc/posix-functions/pthread_mutex_trylock.texi: Likewise.
4750         * doc/posix-functions/pthread_mutex_timedlock.texi: Likewise.
4751         * doc/posix-functions/pthread_mutex_unlock.texi: Likewise.
4752         * doc/posix-functions/pthread_mutex_destroy.texi: Likewise.
4754 2019-07-14  Bruno Haible  <bruno@clisp.org>
4756         pthread-once: New module.
4757         * lib/pthread-once.c: New file.
4758         * m4/pthread-once.m4: New file.
4759         * modules/pthread-once: New file.
4760         * doc/posix-functions/pthread_once.texi: Mention the new module.
4762 2019-07-14  Bruno Haible  <bruno@clisp.org>
4764         pthread-thread: New module.
4765         * lib/pthread.in.h (pthread_create, pthread_exit, pthread_join): Remove
4766         inline definitions.
4767         * lib/pthread-thread.c: New file.
4768         * m4/pthread-thread.m4: New file.
4769         * modules/pthread-thread: New file.
4770         * doc/posix-functions/pthread_create.texi: Mention the new module.
4771         * doc/posix-functions/pthread_attr_init.texi: Likewise.
4772         * doc/posix-functions/pthread_attr_getdetachstate.texi: Likewise.
4773         * doc/posix-functions/pthread_attr_setdetachstate.texi: Likewise.
4774         * doc/posix-functions/pthread_attr_destroy.texi: Likewise.
4775         * doc/posix-functions/pthread_self.texi: Likewise.
4776         * doc/posix-functions/pthread_equal.texi: Likewise.
4777         * doc/posix-functions/pthread_detach.texi: Likewise.
4778         * doc/posix-functions/pthread_join.texi: Likewise.
4779         * doc/posix-functions/pthread_exit.texi: Likewise.
4781 2019-07-14  Bruno Haible  <bruno@clisp.org>
4783         pthread-h: Prepare for adding new modules.
4784         * lib/pthread.in.h: Define the types and macros for each of the
4785         facilities separately.
4786         * m4/pthread_h.m4 (gl_PTHREAD_H): Set HAVE_PTHREAD_CREATE_DETACHED,
4787         HAVE_PTHREAD_MUTEX_RECURSIVE, HAVE_PTHREAD_MUTEX_ROBUST,
4788         HAVE_PTHREAD_PROCESS_SHARED.
4789         (gl_PTHREAD_H_DEFAULTS): Initialize HAVE_PTHREAD_CREATE_DETACHED,
4790         HAVE_PTHREAD_MUTEX_RECURSIVE, HAVE_PTHREAD_MUTEX_ROBUST,
4791         HAVE_PTHREAD_PROCESS_SHARED.
4792         * modules/pthread-h (Makefile.am): Substitute
4793         HAVE_PTHREAD_CREATE_DETACHED, HAVE_PTHREAD_MUTEX_RECURSIVE,
4794         HAVE_PTHREAD_MUTEX_ROBUST, HAVE_PTHREAD_PROCESS_SHARED.
4796 2019-07-14  Bruno Haible  <bruno@clisp.org>
4798         pthread-h: Add declarations of essential pthread functions.
4799         * lib/pthread.in.h: Include snippets.
4800         (pthread_create, pthread_attr_init, pthread_attr_getdetachstate,
4801         pthread_attr_setdetachstate, pthread_attr_destroy, pthread_self,
4802         pthread_equal, pthread_detach, pthread_join, pthread_exit, pthread_once,
4803         pthread_mutex_init, pthread_mutexattr_init, pthread_mutexattr_gettype,
4804         pthread_mutexattr_settype, pthread_mutexattr_getrobust,
4805         pthread_mutexattr_setrobust, pthread_mutexattr_destroy,
4806         pthread_mutex_lock, pthread_mutex_trylock, pthread_mutex_unlock,
4807         pthread_mutex_destroy, pthread_rwlock_init, pthread_rwlockattr_init,
4808         pthread_rwlockattr_destroy, pthread_rwlock_rdlock,
4809         pthread_rwlock_wrlock, pthread_rwlock_tryrdlock,
4810         pthread_rwlock_trywrlock, pthread_rwlock_timedrdlock,
4811         pthread_rwlock_timedwrlock, pthread_rwlock_unlock,
4812         pthread_rwlock_destroy, pthread_cond_init, pthread_condattr_init,
4813         pthread_condattr_destroy, pthread_cond_wait, pthread_cond_timedwait,
4814         pthread_cond_signal, pthread_cond_broadcast, pthread_cond_destroy,
4815         pthread_key_create, pthread_setspecific, pthread_getspecific,
4816         pthread_key_delete, pthread_spin_init, pthread_spin_lock,
4817         pthread_spin_trylock, pthread_spin_unlock, pthread_spin_destroy): New
4818         declarations.
4819         (pthread_mutex_timedlock): Move declaration.
4820         * m4/pthread_h.m4 (gl_PTHREAD_H): Check whether the new functions are
4821         declared.
4822         (gl_PTHREAD_H_DEFAULTS): Initialize GNULIB_PTHREAD_THREAD,
4823         GNULIB_PTHREAD_ONCE, GNULIB_PTHREAD_MUTEX, GNULIB_PTHREAD_RWLOCK,
4824         GNULIB_PTHREAD_COND, GNULIB_PTHREAD_TSS, GNULIB_PTHREAD_SPIN and the
4825         HAVE_* and REPLACE_* variables for the new functions.
4826         * modules/pthread-h (Depends-on): Add snippet/c++defs,
4827         snippet/_Noreturn, snippet/arg-nonnull, snippet/warn-on-use.
4828         (Makefile.am): Substitute GNULIB_PTHREAD_THREAD, GNULIB_PTHREAD_ONCE,
4829         GNULIB_PTHREAD_MUTEX, GNULIB_PTHREAD_RWLOCK, GNULIB_PTHREAD_COND,
4830         GNULIB_PTHREAD_TSS, GNULIB_PTHREAD_SPIN and the HAVE_* and REPLACE_*
4831         variables for the new functions. Split the sed script, to avoid the
4832         limit of 99 commands of HP-UX sed.
4833         * tests/test-pthread-c++.cc: Check the signature of the new functions.
4835 2019-07-14  Bruno Haible  <bruno@clisp.org>
4837         pthread-h: Respect --enable-threads={posix|windows} option on mingw.
4838         * m4/pthread_h.m4 (gl_PTHREAD_H): Require gl_THREADLIB. Set
4839         HAVE_PTHREAD_H if gl_threads_api is 'windows'.
4840         (LIB_PTHREAD): Rely on $LIBMULTITHREAD from threadlib.m4.
4841         * modules/pthread (Link): Change to $(LIBMULTITHREAD).
4842         * modules/pthread-h (Depends-on): Add threadlib.
4843         (Link): Change to $(LIBTHREAD).
4844         * modules/pthread-h-c++-tests (test_pthread_c___LDADD): Use
4845         $(LIBMULTITHREAD) instead of $(LIB_PTHREAD).
4847 2019-07-14  Bruno Haible  <bruno@clisp.org>
4849         pthread-h: Add C++ tests.
4850         * tests/test-pthread-c++.cc: New file.
4851         * modules/pthread-h-c++-tests: New file.
4853 2019-07-14  Bruno Haible  <bruno@clisp.org>
4855         pthread-h: Add tests.
4856         * tests/test-pthread.c: New file.
4857         * modules/pthread-h-tests: New file.
4859 2019-07-14  Bruno Haible  <bruno@clisp.org>
4861         pthread-h: New module.
4862         * lib/pthread.in.h: Define replacement functions only if GNULIB_PTHREAD
4863         is 1.
4864         * m4/pthread_h.m4: Renamed from m4/pthread.m4.
4865         (gl_PTHREAD_H): Renamed from gl_PTHREAD_CHECK. Don't test whether
4866         <pthread.h> pollutes the namespace; instead, prepare for generating a
4867         pthread.h always. Substitute HAVE_PTHREAD_H here.
4868         (gl_PTHREAD_H_DEFAULTS): Renamed from gl_PTHREAD_DEFAULTS. Initialize
4869         GNULIB_PTHREAD. Don't initialize HAVE_PTHREAD_H here.
4870         * modules/pthread-h: New file, based on modules/pthread.
4871         * modules/pthread: Rely on 'pthread-h'.
4872         * m4/pthread_mutex_timedlock.m4 (gl_FUNC_PTHREAD_MUTEX_TIMEDLOCK):
4873         Update.
4874         * modules/pthread_mutex_timedlock (Depends-on): Add pthread-h. Remove
4875         pthread.
4877 2019-07-14  Bruno Haible  <bruno@clisp.org>
4879         sched_yield: New module.
4880         * lib/sched.in.h: Add _GL_FUNCDECL_RPL, _GL_WARN_ON_USE placeholders.
4881         (sched_yield): New declaration.
4882         * lib/sched_yield.c: New file.
4883         * m4/sched_yield.m4: New file.
4884         * m4/sched_h.m4 (gl_SCHED_H): Require gl_SCHED_H_DEFAULTS. Arrange to
4885         provide a replacement sched.h always. Test whether sched_yield is
4886         declared.
4887         (gl_SCHED_MODULE_INDICATOR, gl_SCHED_H_DEFAULTS): New macros.
4888         * modules/sched (Depends-on): Add snippet/c++defs, snippet/warn-on-use.
4889         (Makefile.am): Provide a replacement sched.h always. Substitute
4890         GNULIB_SCHED_YIELD, HAVE_SCHED_YIELD, REPLACE_SCHED_YIELD,
4891         _GL_FUNCDECL_RPL, _GL_WARN_ON_USE.
4892         * modules/sched_yield: New file.
4893         * doc/posix-functions/sched_yield.texi: Mention the new module.
4895 2019-07-14  Bruno Haible  <bruno@clisp.org>
4897         windows-spin: New module.
4898         * lib/windows-spin.h: New file.
4899         * lib/windows-spin.c: New file.
4900         * modules/windows-spin: New file.
4902 2019-07-14  Bruno Haible  <bruno@clisp.org>
4904         windows-timedrwlock: New module.
4905         * lib/windows-timedrwlock.h: New file, based on windows-rwlock.h.
4906         * lib/windows-timedrwlock.c: New file, based on windows-rwlock.c and
4907         windows-cond.c.
4908         * lib/windows-cond.h (struct glwthread_waitqueue_link): Protect against
4909         redefinition conflict with windows-timedrwlock.h.
4910         * modules/windows-timedrwlock: New file.
4912 2019-07-14  Bruno Haible  <bruno@clisp.org>
4914         windows-rwlock: New module.
4915         * lib/windows-rwlock.h: New file, extracted from lib/glthread/lock.h.
4916         * lib/windows-rwlock.c: New file, extracted from lib/glthread/lock.c.
4917         * lib/glthread/lock.h: Include windows-rwlock.h. Don't include
4918         windows-initguard.h.
4919         (gl_rwlock_t): Define using glwthread_rwlock_t.
4920         (gl_rwlock_initializer): Define using GLWTHREAD_RWLOCK_INIT.
4921         (glthread_rwlock_init): Define using glwthread_rwlock_init.
4922         (glthread_rwlock_rdlock): Define using glwthread_rwlock_rdlock.
4923         (glthread_rwlock_wrlock): Define using glwthread_rwlock_wrlock.
4924         (glthread_rwlock_unlock): Define using glwthread_rwlock_unlock.
4925         (glthread_rwlock_destroy): Define using glwthread_rwlock_destroy.
4926         (glthread_rwlock_init_func, glthread_rwlock_rdlock_func,
4927         glthread_rwlock_wrlock_func, glthread_rwlock_unlock_func,
4928         glthread_rwlock_destroy_func): Remove declarations.
4929         * lib/glthread/lock.c (gl_waitqueue_t): Remove type.
4930         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_notify_first,
4931         gl_waitqueue_notify_all, glthread_rwlock_init_func,
4932         glthread_rwlock_rdlock_func, glthread_rwlock_wrlock_func,
4933         glthread_rwlock_unlock_func, glthread_rwlock_destroy_func): Remove
4934         functions.
4935         * modules/windows-rwlock: New file.
4936         * modules/lock (Depends-on): Add windows-rwlock.
4938 2019-07-14  Bruno Haible  <bruno@clisp.org>
4940         windows-thread: Add support for creating a thread in detached state.
4941         * lib/windows-thread.h (GLWTHREAD_ATTR_DETACHED): New macro.
4942         (glwthread_thread_create): Add attr argument.
4943         * lib/windows-thread.c (glwthread_thread_create): Likewise.
4944         * lib/glthread/thread.h (glthread_create): Update.
4945         * lib/thrd.c (thrd_create): Update.
4947 2019-07-14  Bruno Haible  <bruno@clisp.org>
4949         windows-*: Rename glwthread_spinlock_t to glwthread_initguard_t.
4950         * lib/windows-initguard.h: Renamed from lib/windows-spinlock.h.
4951         (glwthread_initguard_t): Renamed from glwthread_spinlock_t.
4952         (GLWTHREAD_INITGUARD_INIT): Renamed from GLWTHREAD_SPINLOCK_INIT.
4953         * lib/windows-mutex.h: Update.
4954         * lib/windows-recmutex.h: Likewise.
4955         * lib/windows-timedmutex.h: Likewise.
4956         * lib/windows-timedrecmutex.h: Likewise.
4957         * lib/windows-cond.h: Likewise.
4958         * lib/glthread/lock.h: Likewise.
4959         * modules/windows-mutex (Files): Add lib/windows-initguard.h. Remove
4960         lib/windows-spinlock.h.
4961         * modules/windows-recmutex (Files): Likewise.
4962         * modules/windows-timedmutex (Files): Likewise.
4963         * modules/windows-timedrecmutex (Files): Likewise.
4964         * modules/windows-cond (Files): Likewise.
4965         * modules/threads-h (Files): Likewise.
4967 2019-07-14  Bruno Haible  <bruno@clisp.org>
4969         doc: Fix info about pthread API in HP-UX.
4970         * doc/posix-functions/pthread_*.texi: Fix info about HP-UX 11.
4972 2019-07-14  Bruno Haible  <bruno@clisp.org>
4974         threads-h: Fix generation of threads.h.
4975         * modules/threads-h (Makefile.am): Insert the required header file
4976         snippets.
4978 2019-07-09  Bruno Haible  <bruno@clisp.org>
4980         striconveh test: Fix a compilation failure when iconv is not available.
4981         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4982         * tests/test-striconveh.c (main): Move iconv_close invocations inside
4983         HAVE_ICONV.
4985 2019-07-07  Akim Demaille  <akim@lrde.epita.fr>
4987         argmatch: adjust columns for help2man.
4988         * lib/argmatch.h (argmatch_##Name##_doc_col): If some argument
4989         requires column 20 or more, return 20.
4991 2019-07-06  Paul Eggert  <eggert@cs.ucla.edu>
4993         areadlink-with-size: avoid realloc when size==0
4994         * lib/areadlink-with-size.c (areadlink_with_size):
4995         * lib/areadlinkat-with-size.c (areadlinkat_with_size):
4996         Reallocate at the end to the actual size, to avoid memory waste,
4997         as suggested by Bruno Haible.  But when the guessed size is zero -
4998         useful when the size is unknown - do the initial small readlink
4999         into the stack, to avoid that realloc in the usual case.
5001 2019-07-06  Pádraig Brady  <P@draigBrady.com>
5003         areadlink-with-size: guess a buffer size with 0 size
5004         The size is usually taken from st_size, which can be zero,
5005         resulting in inefficient operation.
5006         Instead let zero select an initial memory allocation
5007         of 128 bytes, which most symlinks fit within.
5008         * lib/areadlink-with-size.c (areadlink_with_size):
5009         Start with a 128 byte buffer, for SIZE == 0.
5010         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Likewise.
5012 2019-07-06  Konstantin Kharlamov  <Hi-Angel@yandex.ru>
5014         Replace manually crafted hex regexes with [:xdigit:]
5015         * build-aux/gitlog-to-changelog (parse_amend_file)
5016         (git_dir_option):
5017         Replace various combinations of [0-9a-fA-F] with [[:xdigit:]].
5018         This patch is backported from Emacs (Bug#36167).
5020 2019-07-06  Bruno Haible  <bruno@clisp.org>
5022         error: Fix documentation.
5023         * doc/glibc-functions/error_at_line.texi: Document what the 'error'
5024         module provides.
5025         * doc/glibc-functions/error_message_count.texi: Likewise.
5026         * doc/glibc-functions/error_one_per_line.texi: Likewise.
5027         * doc/glibc-functions/error_print_progname.texi: Likewise.
5029 2019-07-06  Bruno Haible  <bruno@clisp.org>
5031         doc: Remove documentation of glibc <= 2.1.x as a supported platform.
5032         * doc/gnulib-intro.texi (Target Platforms): Mention that glibc 2.1.x
5033         and older is unsupported.
5034         * doc/**/*.texi: Update.
5036 2019-07-06  Bruno Haible  <bruno@clisp.org>
5038         doc: Remove documentation of Linux libc5 as a supported platform.
5039         * doc/posix-functions/iswalnum.texi: Don't mention workarounds specific
5040         to Linux libc5.
5041         * doc/posix-functions/iswalpha.texi: Likewise.
5042         * doc/posix-functions/iswblank.texi: Likewise.
5043         * doc/posix-functions/iswcntrl.texi: Likewise.
5044         * doc/posix-functions/iswdigit.texi: Likewise.
5045         * doc/posix-functions/iswgraph.texi: Likewise.
5046         * doc/posix-functions/iswlower.texi: Likewise.
5047         * doc/posix-functions/iswprint.texi: Likewise.
5048         * doc/posix-functions/iswpunct.texi: Likewise.
5049         * doc/posix-functions/iswspace.texi: Likewise.
5050         * doc/posix-functions/iswupper.texi: Likewise.
5051         * doc/posix-functions/iswxdigit.texi: Likewise.
5052         * doc/posix-functions/snprintf.texi: Likewise.
5053         * doc/posix-functions/vsnprintf.texi: Likewise.
5055 2019-07-06  Bruno Haible  <bruno@clisp.org>
5057         doc: Remove documentation of Tandem/NSK as a supported platform.
5058         * doc/posix-headers/stdlib.texi: Don't mention workarounds specific to
5059         Tandem/NSK.
5060         * doc/**/*.texi: Update.
5062 2019-07-06  Bruno Haible  <bruno@clisp.org>
5064         doc: Remove documentation of Mac OS X <= 10.4 as a supported platform.
5065         * doc/gnulib-intro.texi (Target Platforms): Mention that Mac OS X 10.4
5066         and older is unsupported.
5067         * doc/posix-functions/acosl.texi: Don't mention workarounds specific to
5068         Mac OS X 10.4 and older.
5069         * doc/posix-functions/asinl.texi: Likewise.
5070         * doc/posix-functions/atanl.texi: Likewise.
5071         * doc/posix-functions/cosl.texi: Likewise.
5072         * doc/posix-functions/expl.texi: Likewise.
5073         * doc/posix-functions/frexpl.texi: Likewise.
5074         * doc/posix-functions/gettimeofday.texi: Likewise.
5075         * doc/posix-functions/logl.texi: Likewise.
5076         * doc/posix-functions/mkstemp.texi: Likewise.
5077         * doc/posix-functions/sinl.texi: Likewise.
5078         * doc/posix-functions/sqrtl.texi: Likewise.
5079         * doc/posix-functions/tanl.texi: Likewise.
5080         * doc/posix-functions/wcswidth.texi: Likewise.
5081         * doc/**/*.texi: Update.
5083 2019-07-06  Bruno Haible  <bruno@clisp.org>
5085         doc: Remove documentation of AIX 4 as a supported platform.
5086         * doc/gnulib-intro.texi (Target Platforms): Mention that AIX 4 is
5087         unsupported.
5088         * doc/posix-functions/nanosleep.texi: Don't mention AIX 4 specific
5089         workarounds.
5090         * doc/posix-functions/strnlen.texi: Likewise.
5091         * doc/posix-headers/inttypes.texi: Likewise.
5092         * doc/**/*.texi: Update.
5094 2019-07-06  Bruno Haible  <bruno@clisp.org>
5096         doc: Remove documentation of HP-UX 10 as a supported platform.
5097         * doc/gnulib-intro.texi (Target Platforms): Mention that HP-UX 10 is
5098         unsupported.
5099         * doc/*-functions/*printf.texi: Don't mention HP-UX 10 specific
5100         workarounds.
5101         * doc/posix-functions/gmtime_r.texi: Likewise.
5102         * doc/posix-functions/localtime_r.texi: Likewise.
5103         * doc/posix-functions/mkstemp.texi: Likewise.
5104         * doc/**/*.texi: Update.
5106 2019-07-06  Bruno Haible  <bruno@clisp.org>
5108         doc: Remove documentation of Interix 3.5 as a supported platform.
5109         * doc/gnulib-intro.texi (Target Platforms): Mention that Interix is
5110         unsupported.
5111         * doc/posix-functions/select.texi: Don't mention Interix specific
5112         workarounds.
5113         * doc/posix-headers/signal.texi: Likewise.
5114         * doc/**/*.texi: Update.
5116 2019-07-06  Bruno Haible  <bruno@clisp.org>
5118         doc: Remove documentation of IRIX 6.4 and older as supported platforms.
5119         * doc/gnulib-intro.texi (Target Platforms): Mention that IRIX <= 6.4 is
5120         unsupported.
5121         * doc/pastposix-functions/usleep.texi: Don't mention IRIX specific
5122         workarounds.
5123         * doc/posix-functions/nl_langinfo.texi: Likewise.
5124         * doc/posix-functions/remainder.texi: Likewise.
5125         * doc/posix-functions/towlower.texi: Likewise.
5126         * doc/posix-functions/towupper.texi: Likewise.
5127         * doc/posix-functions/vsnprintf.texi: Likewise.
5128         * doc/posix-functions/wcscat.texi: Likewise.
5129         * doc/posix-functions/wcschr.texi: Likewise.
5130         * doc/posix-functions/wcscmp.texi: Likewise.
5131         * doc/posix-functions/wcscpy.texi: Likewise.
5132         * doc/posix-functions/wcscspn.texi: Likewise.
5133         * doc/posix-functions/wcslen.texi: Likewise.
5134         * doc/posix-functions/wcsncat.texi: Likewise.
5135         * doc/posix-functions/wcsncmp.texi: Likewise.
5136         * doc/posix-functions/wcsncpy.texi: Likewise.
5137         * doc/posix-functions/wcspbrk.texi: Likewise.
5138         * doc/posix-functions/wcsrchr.texi: Likewise.
5139         * doc/posix-functions/wcsspn.texi: Likewise.
5140         * doc/posix-headers/langinfo.texi: Likewise.
5141         * doc/posix-headers/signal.texi: Likewise.
5142         * doc/posix-headers/wchar.texi: Likewise.
5143         * doc/posix-headers/wctype.texi: Likewise.
5144         * doc/**/*.texi: Update.
5146 2019-07-05  Bruno Haible  <bruno@clisp.org>
5148         doc: Remove documentation of OSF/1 as supported platform.
5149         * doc/gnulib-intro.texi (Target Platforms): Mention that OSF/1 is
5150         unsupported.
5151         * doc/glibc-functions/getdomainname.texi: Don't mention OSF/1 specific
5152         workarounds.
5153         * doc/glibc-functions/pthread_setname_np.texi: Likewise.
5154         * doc/glibc-functions/ptsname_r.texi: Likewise.
5155         * doc/posix-functions/ceil.texi: Likewise.
5156         * doc/posix-functions/ceilf.texi: Likewise.
5157         * doc/posix-functions/ceill.texi: Likewise.
5158         * doc/posix-functions/fchdir.texi: Likewise.
5159         * doc/posix-functions/floor.texi: Likewise.
5160         * doc/posix-functions/floorf.texi: Likewise.
5161         * doc/posix-functions/fmod.texi: Likewise.
5162         * doc/posix-functions/fmodf.texi: Likewise.
5163         * doc/posix-functions/fmodl.texi: Likewise.
5164         * doc/posix-functions/log.texi: Likewise.
5165         * doc/posix-functions/logf.texi: Likewise.
5166         * doc/posix-functions/logl.texi: Likewise.
5167         * doc/posix-functions/log10.texi: Likewise.
5168         * doc/posix-functions/log10f.texi: Likewise.
5169         * doc/posix-functions/log10l.texi: Likewise.
5170         * doc/posix-functions/log2.texi: Likewise.
5171         * doc/posix-functions/log2f.texi: Likewise.
5172         * doc/posix-functions/log2l.texi: Likewise.
5173         * doc/posix-functions/mbrtowc.texi: Likewise.
5174         * doc/posix-functions/recv.texi: Likewise.
5175         * doc/posix-functions/recvfrom.texi: Likewise.
5176         * doc/posix-functions/remainder.texi: Likewise.
5177         * doc/posix-functions/remainderf.texi: Likewise.
5178         * doc/posix-functions/remainderl.texi: Likewise.
5179         * doc/posix-functions/round.texi: Likewise.
5180         * doc/posix-functions/roundf.texi: Likewise.
5181         * doc/posix-functions/roundl.texi: Likewise.
5182         * doc/posix-functions/send.texi: Likewise.
5183         * doc/posix-functions/sendto.texi: Likewise.
5184         * doc/posix-functions/setenv.texi: Likewise.
5185         * doc/posix-functions/snprintf.texi: Likewise.
5186         * doc/posix-functions/tcgetsid.texi: Likewise.
5187         * doc/posix-functions/trunc.texi: Likewise.
5188         * doc/posix-functions/truncf.texi: Likewise.
5189         * doc/posix-functions/truncl.texi: Likewise.
5190         * doc/posix-functions/ttyname_r.texi: Likewise.
5191         * doc/posix-functions/unsetenv.texi: Likewise.
5192         * doc/posix-functions/wcsrtombs.texi: Likewise.
5193         * doc/posix-headers/sys_select.texi: Likewise.
5194         * doc/posix-headers/wchar.texi: Likewise.
5195         * doc/posix-headers/wctype.texi: Likewise.
5196         * doc/**/*.texi: Update.
5198 2019-07-05  Bruno Haible  <bruno@clisp.org>
5200         doc: Remove documentation of BSDI and BSD/OS as supported platforms.
5201         * doc/**/*.texi: Update.
5203 2019-07-05  Bruno Haible  <bruno@clisp.org>
5205         doc: Remove documentation of Solaris 8 and older as supported platforms.
5206         * doc/gnulib-intro.texi (Target Platforms): Mention that Solaris <= 8 is
5207         unsupported.
5208         * doc/posix-functions/mbrtowc.texi: Don't mention Solaris specific
5209         workarounds.
5210         * doc/posix-functions/memcmp.texi: Likewise.
5211         * doc/posix-functions/rename.texi: Likewise.
5212         * doc/posix-functions/tzset.texi: Likewise.
5213         * doc/posix-headers/wctype.texi: Likewise.
5214         * doc/**/*.texi: Update.
5216 2019-07-05  Bruno Haible  <bruno@clisp.org>
5218         doc: Remove documentation of Interix 3.5 as a supported platform.
5219         * doc/**/*.texi: Update.
5221 2019-07-05  Bruno Haible  <bruno@clisp.org>
5223         doc: Remove documentation of BeOS as a supported platform.
5224         * doc/gnulib-intro.texi (Target Platforms): Mention that BeOS is
5225         unsupported.
5226         * doc/*-functions/*printf.texi: Don't mention BeOS specific workarounds.
5227         * doc/posix-functions/getdelim.texi: Likewise.
5228         * doc/**/*.texi: Update.
5230 2019-07-05  Bruno Haible  <bruno@clisp.org>
5232         thread, lock, cond, tls: Remove support for Pth threads.
5233         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Don't document
5234         --enable-threads=pth any more.
5235         (gl_THREADLIB_BODY): Don't set USE_PTH_THREADS any more.
5236         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Update comment.
5237         * m4/threads.m4 (gl_THREADS_H): Remove test for conflict between Pth
5238         threads and ISO C11 threads.
5239         * lib/glthread/thread.h: Remove code for USE_PTH_THREADS.
5240         * lib/glthread/lock.h: Likewise.
5241         * lib/glthread/lock.c: Likewise.
5242         * lib/glthread/cond.h: Likewise.
5243         * lib/glthread/cond.c: Likewise.
5244         * lib/glthread/tls.h: Likewise.
5245         * lib/glthread/tls.c: Likewise.
5246         * lib/glthread/yield.h: Likewise.
5247         * lib/regex_internal.h: Likewise.
5248         * tests/test-thread_create.c: Likewise.
5249         * tests/test-lock.c: Likewise.
5250         * tests/test-cond.c: Likewise.
5251         * tests/test-tls.c: Likewise.
5252         * tests/test-rwlock1.c: Don't include glthread/yield.h.
5253         (main): Sleep without calling gl_thread_yield.
5255 2019-07-05  Bruno Haible  <bruno@clisp.org>
5257         thread, lock, cond, tls: Remove support for old Solaris threads.
5258         Solaris >= 2.5.1 has POSIX threads.
5259         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Don't document
5260         --enable-threads=solaris any more.
5261         (gl_THREADLIB_BODY): Don't set USE_SOLARIS_THREADS any more.
5262         * lib/glthread/thread.c: Update comment.
5263         * lib/glthread/thread.h: Remove code for USE_SOLARIS_THREADS.
5264         * lib/glthread/lock.h: Likewise.
5265         * lib/glthread/lock.c: Likewise.
5266         * lib/glthread/cond.h: Likewise.
5267         * lib/glthread/cond.c: Likewise.
5268         * lib/glthread/tls.h: Likewise.
5269         * lib/glthread/tls.c: Likewise.
5270         * lib/glthread/yield.h: Likewise.
5271         * lib/regex_internal.h: Likewise.
5272         * tests/test-thread_create.c: Likewise.
5273         * tests/test-lock.c: Likewise.
5274         * tests/test-cond.c: Likewise.
5275         * tests/test-tls.c: Likewise.
5277 2019-07-05  Bruno Haible  <bruno@clisp.org>
5279         getcwd-lgpl, getcwd: Don't call realloc when it is pointless.
5280         * lib/getcwd-lgpl.c (rpl_getcwd): Don't call realloc if the result's
5281         needed size is equal to the allocated size.
5282         * lib/getcwd.c (__getcwd): Likewise.
5284 2019-07-05  Bruno Haible  <bruno@clisp.org>
5286         xgetdomainname: Don't return an excessive memory allocation.
5287         * lib/xgetdomainname.c (xgetdomainname): Shrink the domainname buffer
5288         before returning it.
5290 2019-07-05  Bruno Haible  <bruno@clisp.org>
5292         xgethostname: Don't return an excessive memory allocation.
5293         * lib/xgethostname.c (xgethostname): Shrink the hostname buffer before
5294         returning it.
5296 2019-07-05  Bruno Haible  <bruno@clisp.org>
5298         areadlinkat-with-size: Don't return an excessive memory allocation.
5299         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Shrink the buffer
5300         before returning it.
5302 2019-07-05  Bruno Haible  <bruno@clisp.org>
5304         areadlink-with-size: Don't return an excessive memory allocation.
5305         Reported by Andreas Dilger <adilger@whamcloud.com>.
5306         * lib/areadlink-with-size.c (areadlink_with_size): Shrink the buffer
5307         before returning it.
5309 2019-07-03  Bruno Haible  <bruno@clisp.org>
5311         renameatu: Fix test failure on MSVC.
5312         * lib/at-func2.c (at_func2): Fail with ENOENT if file1 or file2 is the
5313         empty string.
5315 2019-07-03  Bruno Haible  <bruno@clisp.org>
5317         mbrtowc: Fix invalid use of mbtowc() on MSVC.
5318         * lib/mbrtowc.c: Include glthread/lock.h.
5319         (mbtowc_lock): New variable.
5320         (mbrtowc): Treat UTF-8 encoding without locking. For the other
5321         encodings, explicitly reset the internal state of mbtowc, and protect
5322         this through a lock.
5323         * modules/mbrtowc (Depends-on): Add lock.
5325 2019-07-03  Akim Demaille  <akim@lrde.epita.fr>
5327         argmatch: don't define _ in the header.
5328         Reported by Jim Meyering.
5329         * lib/argmatch.h (N_, _): Don't define.
5330         Use gettext instead.
5331         * lib/argmatch.h (_): Define.
5332         * tests/test-argmatch.c (N_): Define.
5334 2019-07-02  Paul Eggert  <eggert@cs.ucla.edu>
5336         verify: document ‘assume’ better
5337         * lib/verify.h: Reword doc (Bug#36370).
5339 2019-07-02  Bruno Haible  <bruno@clisp.org>
5341         localcharset, nl_langinfo: Fix return value for UTF-8 locales on MSVC.
5342         * lib/localcharset.c (locale_charset): Return "UTF-8" instead of
5343         "CPutf8".
5344         * lib/nl_langinfo.c (ctype_codeset): Likewise.
5346 2019-07-02  Bruno Haible  <bruno@clisp.org>
5348         getcwd: Fix crash when invoked with size = 0 on MSVC.
5349         * lib/getcwd.c: Include msvc-inval.h.
5350         (getcwd_nothrow): New function/macro.
5351         (getcwd_system): New macro.
5352         (__getcwd): Use it instead of getcwd.
5353         * modules/getcwd (Depends-on): Add msvc-inval.
5354         * doc/posix-functions/getcwd.texi: Mention the MSVC issue.
5356 2019-07-02  Bruno Haible  <bruno@clisp.org>
5358         nonblocking-pipe tests: Fix test failure on MSVC.
5359         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE): Set to 10000 on
5360         native Windows.
5362 2019-07-02  Bruno Haible  <bruno@clisp.org>
5364         usleep: Implement with millisecond resolution on native Windows.
5365         * lib/usleep.c (usleep): On native Windows, implement using Sleep().
5366         * doc/pastposix-functions/usleep.texi: Update accordingly.
5368 2019-07-02  Bruno Haible  <bruno@clisp.org>
5370         lstat tests: Fix test failure on MSVC.
5371         * tests/test-lstat.h (test_lstat_func): Don't test SAME_INODE values on
5372         native Windows, unless _GL_WINDOWS_STAT_INODES is defined.
5374 2019-07-02  Bruno Haible  <bruno@clisp.org>
5376         stat tests: Fix test failure on MSVC.
5377         * tests/test-stat.h (test_stat_func): Don't test SAME_INODE values on
5378         native Windows, unless _GL_WINDOWS_STAT_INODES is defined.
5380 2019-07-02  Bruno Haible  <bruno@clisp.org>
5382         getaddrinfo tests: Fix test failure on MSVC.
5383         * tests/test-getaddrinfo.c: Include sockets.h.
5384         (main): Invoke gl_sockets_startup.
5385         * modules/getaddrinfo-tests (Depends-on): Add sockets.
5387 2019-07-01  Hannes Müller  <h.c.f.mueller@gmx.de>
5389         poll: Fix type of timeout pointer passed to select() on mingw x86_64.
5390         * lib/poll.c: Call Windows native select() with Windows native timeval.
5392 2019-06-30  Bruno Haible  <bruno@clisp.org>
5394         argmatch: Fix compilation errors.
5395         * lib/argmatch.h: Include <limits.h>, for INT_MAX.
5396         * tests/test-argmatch.c (main): Update after last-minute function names
5397         change.
5399 2019-06-30  Bruno Haible  <bruno@clisp.org>
5401         Include <stdlib.h> when needed.
5402         * lib/cnd.c: Include <stdlib.h>, needed for abort().
5403         * lib/fcntl.c: Likewise.
5404         * lib/mbscasestr.c: Likewise.
5405         * lib/mbssep.c: Likewise.
5406         * lib/mbsstr.c: Likewise.
5407         * lib/openat.c: Include <stdlib.h>, needed for free().
5408         * lib/windows-tls.c: Include <stdlib.h>, needed for malloc(), free(),
5409         abort().
5411 2019-06-30  Bruno Haible  <bruno@clisp.org>
5413         Include <stdlib.h> when needed.
5414         * lib/areadlinkat.c: Include <stdlib.h>, needed for free() in at-func.c.
5415         * lib/faccessat.c: Likewise.
5416         * lib/fchmodat.c: Likewise.
5417         * lib/fchownat.c: Likewise.
5418         * lib/fstatat.c: Likewise.
5419         * lib/mkfifoat.c: Likewise.
5420         * lib/mknodat.c: Likewise.
5421         * lib/readlinkat.c: Likewise.
5422         * lib/symlinkat.c: Likewise.
5423         * lib/utimensat.c: Likewise.
5424         * lib/mkdirat.c: Likewise. Include also the specification header.
5426 2019-06-30  Bruno Haible  <bruno@clisp.org>
5428         inet_ntop, inet_pton: Avoid conflict with native Windows functions.
5429         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WS2TCPIP): New macro, extracted
5430         from gl_PREREQ_SYS_H_SOCKET.
5431         (gl_PREREQ_SYS_H_SOCKET): Invoke it.
5432         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Invoke
5433         gl_PREREQ_SYS_H_WS2TCPIP.
5434         * modules/arpa_inet (Files): Add m4/sys_socket_h.m4, m4/socklen.m4.
5435         (Makefile.am): Substitute HAVE_WS2TCPIP_H.
5436         * lib/arpa_inet.in.h: Include <ws2tcpip.h>.
5438 2019-06-30  Bruno Haible  <bruno@clisp.org>
5440         inet_ntop, inet_pton: Forward-compatibility with newer Windows versions.
5441         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): On native Windows, set
5442         REPLACE_INET_NTOP to 1 always.
5443         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): On native Windows, set
5444         REPLACE_INET_PTON to 1 always.
5446 2019-06-30  Bruno Haible  <bruno@clisp.org>
5448         inet_pton: Fix link error on mingw with _WIN32_WINNT >= 0x0600.
5449         * modules/inet_pton (Depends-on, configure.ac): Test REPLACE_INET_PTON,
5450         not REPLACE_INET_NTOP.
5452 2019-06-30  Bruno Haible  <bruno@clisp.org>
5454         poll: Add comment.
5455         * lib/poll.c: Add comment about WSAPoll.
5457 2019-06-30  Bruno Haible  <bruno@clisp.org>
5459         poll-h: Fix compilation error on mingw with _WIN32_WINNT >= 0x0600.
5460         Reported by Hannes Müller <h.c.f.mueller@gmx.de>.
5461         * lib/poll.in.h: Include <winsock2.h>.
5462         (POLL*, pollfd): Override on native Windows.
5463         * m4/poll_h.m4 (gl_POLL_H): Invoke gl_PREREQ_SYS_H_WINSOCK2.
5464         * modules/poll-h (Files): Add m4/sys_socket_h.m4.
5465         (Makefile.am): Substitute HAVE_WINSOCK2_H.
5467 2019-06-28  Bruno Haible  <bruno@clisp.org>
5469         accept4: Fix compilation error on OpenIndiana.
5470         Reported by Michal Nowak <mnowak@startmail.com>
5471         via Mark H Weaver <mhw@netris.org>.
5472         * m4/accept.m4 (gl_FUNC_ACCEPT4): Test whether accept4 is declared, not
5473         whether it exists as a function.
5475 2019-06-26  Paul Eggert  <eggert@cs.ucla.edu>
5477         strverscmp: sync from glibc
5478         * lib/strverscmp.c: Sync from glibc, except use UTF-8 encoding in
5479         comments, include libc-config.h, define __strverscmp to be
5480         strverscmp, and don’t assume types line uint8_t and int8_t that
5481         that C99 doesn’t guarantee.
5482         [!_LIBC]: Include libc-config.h; define __strverscmp.
5483         Include stdint.h.
5484         (__strverscmp): Assume C99.  Use uint_least8_t
5485         and int_least8_t instead of unsigned char and signed char.
5486         * modules/strverscmp (Depends-on): Add libc-config, stdint.
5488 2019-06-25  Bruno Haible  <bruno@clisp.org>
5490         tss tests: Add tests for destructors and races.
5491         * tests/test-tss.c (worker_thread): Fix typo in debug message.
5492         (test_tss_dtorcheck1, test_tss_dtorcheck2, test_tss_racecheck): New
5493         functions.
5494         (main): Invoke them.
5495         * modules/tls-tests (Depends-on): Add mtx.
5497 2019-06-25  Bruno Haible  <bruno@clisp.org>
5499         tls tests: Add tests for destructors and races.
5500         * tests/test-tls.c: Include glthread/lock.h.
5501         (test_tls_dtorcheck1, test_tls_dtorcheck2, test_tls_racecheck): New
5502         functions.
5503         (main): Invoke them.
5504         * modules/tls-tests (Depends-on): Add lock.
5506 2019-06-25  Bruno Haible  <bruno@clisp.org>
5508         windows-tls: Implement TLS key destructors for native Windows.
5509         * lib/windows-tls.h (glwthread_tls_process_destructors): New
5510         declaration.
5511         (GLWTHREAD_DESTRUCTOR_ITERATIONS): New macro.
5512         * lib/windows-tls.c: Include <limits.h>, windows-once.h.
5513         (dtor_table_init_once, dtor_table_lock: New variables.
5514         (struct dtor): New type.
5515         (dtor_table, dtors_count, dtors_used, dtors_allocated,
5516         dtor_processing_threads): New variables.
5517         (dtor_table_initialize, dtor_table_ensure_initialized,
5518         dtor_table_shrink_used, glwthread_tls_process_destructors): New
5519         functions.
5520         (glwthread_tls_key_create, glwthread_tls_key_delete): Rewritten to
5521         handle non-NULL destructors.
5522         * modules/windows-tls (Depends-on): Add windows-once.
5523         * lib/glthread/tls.h (glthread_tls_key_init, glthread_tls_key_destroy):
5524         Use the functions declared in windows-tls.h.
5525         * lib/threads.in.h (TSS_DTOR_ITERATIONS): Define using
5526         GLWTHREAD_DESTRUCTOR_ITERATIONS.
5527         * lib/windows-thread.c: Include windows-tls.h.
5528         (wrapper_func, glwthread_thread_exit): Invoke
5529         glwthread_tls_process_destructors.
5530         * modules/windows-thread (Depends-on): Add windows-tls.
5532 2019-06-25  Bruno Haible  <bruno@clisp.org>
5534         threadlib: Avoid autoconf warning "was expanded before it was required".
5535         * modules/threadlib (configure.ac): Require gl_THREADLIB.
5537 2019-06-25  Akim Demaille  <akim@lrde.epita.fr>
5539         argmatch: remove duplicate const qualifier
5540         * lib/argmatch.h (ARGMATCH_DEFINE_GROUP): Here.
5542 2019-06-24  Paul Eggert  <eggert@cs.ucla.edu>
5544         unistd: stddef.h and sys/types.h namespace cleanup
5545         * lib/unistd.in.h [__GLIBC__]:
5546         Do not include stddef.h or sys/types.h.
5547         [!__GLIBC__]: Always include sys/types.h, since unistd.h is
5548         supposed to declare off_t and ssize_t.  Problem found when looking
5549         at why @GNULIB_PWRITE@ was different from the newly-added
5550         @GNULIB_COPY_FILE_RANGE@ with respect to ssize_t.
5552 2019-06-22  Akim Demaille  <akim@lrde.epita.fr>
5554         maintainer-makefile: restore portability to non-GNU awks
5555         Reported by Tim Rühsen.
5556         * top/maint.mk (AWK): New variable.  Use it.
5557         (sc_prohibit_gnu_make_extensions): Skip if $(AWK) is not gawk.
5559 2019-06-23  Paul Eggert  <eggert@cs.ucla.edu>
5561         Document setvbuf _IOLBF problem
5562         * doc/posix-functions/setvbuf.texi (setvbuf):
5563         Document MS-Windows portability problem with _IOLBF.
5565         Document lseek SEEK_DATA/SEEK_HOLE
5566         * doc/posix-functions/lseek.texi (lseek):
5567         Document some systems that do not support SEEK_DATA and SEEK_HOLE.
5569 2019-06-22  Akim Demaille  <akim@lrde.epita.fr>
5571         argmatch: put all the docs member last.
5572         Reported by Bruno Haible.
5573         * lib/argmatch.h (argmatch_##Name##_group_type): Put the args
5574         member before the docs done.
5575         * doc/argmatch.texi, tests/test-argmatch.c: Adjust.
5577 2019-06-21  Akim Demaille  <akim@lrde.epita.fr>
5579         argmatch: add support to generate the usage message.
5580         * lib/argmatch.c: Move some #includes and gettext support to...
5581         * lib/argmatch.h: here.
5582         (ARGMATCH_DEFINE_GROUP): New macro.
5583         * tests/test-argmatch.c (argmatch_backup_docs, argmatch_backup_args)
5584         (argmatch_backup_group): New.
5585         (CHECK): New.
5586         (main): Check argmatch_backup_value, argmatch_backup_xvalue,
5587         argmatch_backup_argument and argmatch_backup_usage.
5588         * modules/argmatch: We depend on c99.
5589         * doc/argmatch.texi (Recognizing Option Arguments): New.
5590         * doc/gnulib.texi: Use it.
5592 2019-06-21  Bruno Haible  <bruno@clisp.org>
5594         thrd: Add comment.
5595         * lib/thrd.c (pthread_main_func): Add comment.
5597 2019-06-21  Bruno Haible  <bruno@clisp.org>
5599         threads-h: Define 'thread_local' if and only if it actually works.
5600         * m4/threads.m4 (gl_THREAD_LOCAL_DEFINITION): New macro.
5601         (gl_THREADS_H): Define _Thread_local to __thread also for ARM C, IBM C,
5602         Oracle Solaris Studio C. Compile a simple program, to see whether
5603         _Thread_local basically works. Set HAVE_THREAD_LOCAL and LIBTHREADLOCAL.
5604         (gl_THREADS_H_DEFAULTS): Initialize HAVE_THREAD_LOCAL.
5605         * lib/threads.in.h (thread_local): Undefine if it does not work.
5606         * modules/threads-h (Makefile.am): Substitute HAVE_THREAD_LOCAL.
5607         (Link): Mention LIBTHREADLOCAL.
5608         * tests/test-threads.c: Don't check that thread_local is defined.
5609         * tests/test-thread_local.c: New file.
5610         * modules/threads-h-tests (Files): Add it and macros.h.
5611         (Depends-on): Add thrd and stdint.
5612         (configure.ac): Test whether 'alarm' is declared.
5613         (Makefile.am): Arrange to build and link test-thread_local.
5614         * doc/posix-headers/threads.texi: Mention the platforms that don't
5615         support 'thread_local'.
5617 2019-06-20  Bruno Haible  <bruno@clisp.org>
5619         threads-h: Simplify link dependencies.
5620         * m4/threads.m4 (gl_THREADS_H): Bail out if Pth threading is requested.
5621         Don't set LTLIBSTDTHREAD.
5622         * modules/thrd (Link): Simplify accordingly.
5623         * modules/mtx (Link): Likewise.
5624         * modules/cnd (Link): Likewise.
5625         * modules/tss (Link): Likewise.
5626         * modules/threads (Link): Likewise.
5628 2019-06-20  Bruno Haible  <bruno@clisp.org>
5630         threads-h: Fix link error on FreeBSD 11.
5631         * m4/threads.m4 (gl_THREADS_H): When linking with -lstdthreads, link
5632         also with -lpthread.
5634 2019-06-20  Bruno Haible  <bruno@clisp.org>
5636         threadlib: Fix typo (regression from today).
5637         * m4/threadlib.m4 (gl_THREADLIB_BODY): Fix typo in comment marker.
5639 2019-06-20  Bruno Haible  <bruno@clisp.org>
5641         windows-thread, windows-tls: Fix compilation error on 32-bit mingw.
5642         * lib/windows-thread.c: Include <errno.h>.
5643         * lib/windows-tls.c: Likewise.
5645 2019-06-20  Bruno Haible  <bruno@clisp.org>
5647         tss tests: Small improvement.
5648         * tests/test-tss.c (test_tss): Pass a different id to each thread.
5650 2019-06-20  Bruno Haible  <bruno@clisp.org>
5652         threads: New module.
5653         * modules/threads: New file.
5655 2019-06-20  Bruno Haible  <bruno@clisp.org>
5657         tss: Add tests.
5658         * tests/test-tss.c: New file, based on tests/test-tls.c.
5659         * modules/tss-tests: New file.
5661 2019-06-20  Bruno Haible  <bruno@clisp.org>
5663         cnd: Add tests.
5664         * tests/test-cnd.c: New file, based on tests/test-cond.c.
5665         * modules/cnd-tests: New file.
5667 2019-06-20  Bruno Haible  <bruno@clisp.org>
5669         mtx: Add tests.
5670         * tests/test-mtx.c: New file, based on tests/test-lock.c.
5671         * tests/test-call_once.c: New file, based on tests/test-once.c.
5672         * modules/mtx-tests: New file.
5674 2019-06-20  Bruno Haible  <bruno@clisp.org>
5676         thrd: Add tests.
5677         * tests/test-thrd_create.c: New file, based on
5678         tests/test-thread_create.c.
5679         * tests/test-thrd_current.c: New file, based on
5680         tests/test-thread_self.c.
5681         * modules/thrd-tests: New file.
5683 2019-06-20  Bruno Haible  <bruno@clisp.org>
5685         tss: New module.
5686         * lib/tss.c: New file.
5687         * modules/tss: New file.
5688         * doc/posix-functions/tss_create.texi: Mention the new module.
5689         * doc/posix-functions/tss_set.texi: Likewise.
5690         * doc/posix-functions/tss_get.texi: Likewise.
5691         * doc/posix-functions/tss_delete.texi: Likewise.
5693 2019-06-20  Bruno Haible  <bruno@clisp.org>
5695         cnd: New module.
5696         * lib/cnd.c: New file.
5697         * modules/cnd: New file.
5698         * doc/posix-functions/cnd_init.texi: Mention the new module.
5699         * doc/posix-functions/cnd_wait.texi: Likewise.
5700         * doc/posix-functions/cnd_timedwait.texi: Likewise.
5701         * doc/posix-functions/cnd_signal.texi: Likewise.
5702         * doc/posix-functions/cnd_broadcast.texi: Likewise.
5703         * doc/posix-functions/cnd_destroy.texi: Likewise.
5705 2019-06-20  Bruno Haible  <bruno@clisp.org>
5707         mtx: New module.
5708         * lib/mtx.c: New file.
5709         * modules/mtx: New file.
5710         * doc/posix-functions/call_once.texi: Mention the new module.
5711         * doc/posix-functions/mtx_init.texi: Likewise.
5712         * doc/posix-functions/mtx_lock.texi: Likewise.
5713         * doc/posix-functions/mtx_trylock.texi: Likewise.
5714         * doc/posix-functions/mtx_timedlock.texi: Likewise.
5715         * doc/posix-functions/mtx_unlock.texi: Likewise.
5716         * doc/posix-functions/mtx_destroy.texi: Likewise.
5718 2019-06-20  Bruno Haible  <bruno@clisp.org>
5720         thrd: New module.
5721         * lib/thrd.c: New file.
5722         * m4/thrd.m4: New file.
5723         * modules/thrd: New file.
5724         * doc/posix-functions/thrd_current.texi: Mention the new module.
5725         * doc/posix-functions/thrd_detach.texi: Likewise.
5726         * doc/posix-functions/thrd_equal.texi: Likewise.
5727         * doc/posix-functions/thrd_exit.texi: Likewise.
5728         * doc/posix-functions/thrd_sleep.texi: Likewise.
5729         * doc/posix-functions/thrd_yield.texi: Likewise.
5730         * doc/posix-functions/thrd_create.texi: Mention the new module and the
5731         AIX bug.
5732         * doc/posix-functions/thrd_join.texi: Mention the new module and the
5733         AIX and Solaris bugs.
5735 2019-06-20  Bruno Haible  <bruno@clisp.org>
5737         threads-h: Add tests.
5738         * tests/test-threads.c: New file.
5739         * modules/threads-h-tests: New file.
5740         * tests/test-threads-c++.cc: New file.
5741         * modules/threads-h-c++-tests: New file.
5743 2019-06-20  Bruno Haible  <bruno@clisp.org>
5745         threads-h: New module.
5746         * lib/threads.in.h: New file.
5747         * m4/threads.m4: New file.
5748         * m4/yield.m4 (gl_YIELD): Update comment.
5749         * modules/threads-h: New file.
5750         * modules/yields (configure.ac): Use AC_REQUIRE.
5751         * doc/posix-headers/threads.texi: Mention the new module and the AIX
5752         bugs.
5754 2019-06-20  Bruno Haible  <bruno@clisp.org>
5756         windows-thread: New module.
5757         * lib/windows-thread.h: New file, based on lib/glthread/thread.h.
5758         * lib/windows-thread.c: New file, based on lib/glthread/thread.c.
5759         * lib/glthread/thread.h: Include windows-thread.h.
5760         (gl_thread_t): Define using glwthread_thread_t.
5761         (glthread_create): Define using glwthread_thread_create.
5762         (glthread_join): Define using glwthread_thread_join.
5763         (gl_thread_self): Define using glwthread_thread_self.
5764         (gl_thread_exit): Define using glwthread_thread_exit.
5765         (glthread_create_func, glthread_join_func, gl_thread_self_func,
5766         gl_thread_exit_func): Remove declarations.
5767         * lib/glthread/thread.c (self_key): Remove variable.
5768         (do_init_self_key, init_self_key): Remove functions.
5769         (struct gl_thread_struct): Remove type.
5770         (get_current_thread_handle, gl_thread_self_func, wrapper_func,
5771         glthread_create_func, glthread_join_func, gl_thread_exit_func): Remove
5772         functions.
5773         * modules/windows-thread: New file.
5774         * modules/thread (Depends-on): Add windows-thread.
5776 2019-06-20  Bruno Haible  <bruno@clisp.org>
5778         windows-tls: New module.
5779         * lib/windows-tls.h: New file, based on lib/glthread/tls.h.
5780         * lib/windows-tls.c: New file, based on lib/glthread/tls.h.
5781         * lib/glthread/tls.h: Include windows-tls.h.
5782         (gl_tls_key_t): Define using glwthread_tls_key_t.
5783         * modules/windows-tls: New file.
5784         * modules/tls (Depends-on): Add windows-tls.
5786 2019-06-20  Bruno Haible  <bruno@clisp.org>
5788         windows-cond: New module.
5789         * lib/windows-cond.h: New file, based on lib/glthread/cond.h.
5790         * lib/windows-cond.c: New file, based on lib/glthread/cond.c.
5791         * lib/glthread/cond.h: Include windows-cond.h.
5792         (struct gl_waitqueue_link, gl_linked_waitqueue_t): Remove types.
5793         (gl_cond_t): Define using glwthread_cond_t.
5794         (gl_cond_initializer): Define using GLWTHREAD_COND_INIT.
5795         (glthread_cond_init): Define using glwthread_cond_init.
5796         (glthread_cond_wait): Define using glwthread_cond_wait.
5797         (glthread_cond_timedwait): Define using glwthread_cond_timedwait.
5798         (glthread_cond_signal): Define using glwthread_cond_signal.
5799         (glthread_cond_broadcast): Define using glwthread_cond_broadcast.
5800         (glthread_cond_destroy): Define using glwthread_cond_destroy.
5801         (glthread_cond_init_func, glthread_cond_wait_func,
5802         glthread_cond_timedwait_func, glthread_cond_signal_func,
5803         glthread_cond_broadcast_func, glthread_cond_destroy_func): Remove
5804         declarations.
5805         * lib/glthread/cond.c (gl_waitqueue_t, gl_waitqueue_element): Remove
5806         types.
5807         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
5808         gl_waitqueue_notify_first, gl_waitqueue_notify_all,
5809         glthread_cond_init_func, glthread_cond_wait_func,
5810         glthread_cond_timedwait_func, glthread_cond_signal_func,
5811         glthread_cond_broadcast_func, glthread_cond_destroy_func): Remove
5812         functions.
5813         * modules/windows-cond: New file.
5814         * modules/cond (Depends-on): Add windows-cond. Remove gettimeofday.
5816 2019-06-20  Bruno Haible  <bruno@clisp.org>
5818         windows-timedrecmutex: New module.
5819         * lib/windows-timedrecmutex.h: New file, based on windows-recmutex.h.
5820         * lib/windows-timedrecmutex.c: New file, based on windows-recmutex.c.
5821         * modules/windows-timedrecmutex: New file.
5823 2019-06-20  Bruno Haible  <bruno@clisp.org>
5825         windows-timedmutex: New module.
5826         * lib/windows-timedmutex.h: New file, based on windows-mutex.h.
5827         * lib/windows-timedmutex.c: New file, based on windows-mutex.c.
5828         * modules/windows-timedmutex: New file.
5830 2019-06-20  Bruno Haible  <bruno@clisp.org>
5832         windows-recmutex: New module.
5833         * lib/windows-recmutex.h: New file, extracted from lib/glthread/lock.h.
5834         * lib/windows-recmutex.c: New file, extracted from lib/glthread/lock.c.
5835         * lib/glthread/lock.h: Include windows-recmutex.h.
5836         (gl_recursive_lock_t): Define using glwthread_recmutex_t.
5837         (gl_recursive_lock_initializer): Define using GLWTHREAD_RECMUTEX_INIT.
5838         (glthread_recursive_lock_init): Define using glwthread_recmutex_init.
5839         (glthread_recursive_lock_lock): Define using glwthread_recmutex_lock.
5840         (glthread_recursive_lock_unlock): Define using
5841         glwthread_recmutex_unlock.
5842         (glthread_recursive_lock_destroy): Define using
5843         glwthread_recmutex_destroy.
5844         (glthread_recursive_lock_init_func, glthread_recursive_lock_lock_func,
5845         glthread_recursive_lock_unlock_func,
5846         glthread_recursive_lock_destroy_func): Remove declarations.
5847         * lib/glthread/lock.c (glthread_recursive_lock_init_func,
5848         glthread_recursive_lock_lock_func, glthread_recursive_lock_unlock_func,
5849         glthread_recursive_lock_destroy_func): Remove functions.
5850         * modules/windows-recmutex: New file.
5851         * modules/lock (Depends-on): Add windows-recmutex.
5853 2019-06-20  Bruno Haible  <bruno@clisp.org>
5855         windows-mutex: New module.
5856         * lib/windows-mutex.h: New file, extracted from lib/glthread/lock.h.
5857         * lib/windows-mutex.c: New file, extracted from lib/glthread/lock.c.
5858         * lib/windows-spinlock.h: New file, extracted from lib/glthread/lock.h.
5859         * lib/glthread/lock.h: Include windows-spinlock.h, windows-mutex.h.
5860         (gl_spinlock_t): Remove type.
5861         (gl_lock_t): Define using glwthread_mutex_t.
5862         (gl_lock_initializer): Define using GLWTHREAD_MUTEX_INIT.
5863         (glthread_lock_init): Define using glwthread_mutex_init.
5864         (glthread_lock_lock): Define using glwthread_mutex_lock.
5865         (glthread_lock_unlock): Define using glwthread_mutex_unlock.
5866         (glthread_lock_destroy): Define using glwthread_mutex_destroy.
5867         (glthread_lock_init_func, glthread_lock_lock_func,
5868         glthread_lock_unlock_func, glthread_lock_destroy_func): Remove
5869         declarations.
5870         Use glwthread_spinlock_t instead of gl_spinlock_t.
5871         (gl_rwlock_initializer, gl_recursive_lock_initializer): Define using
5872         GLWTHREAD_SPINLOCK_INIT.
5873         * lib/glthread/lock.c (glthread_lock_init_func, glthread_lock_lock_func,
5874         glthread_lock_unlock_func, glthread_lock_destroy_func): Remove
5875         functions.
5876         * lib/glthread/cond.h: Use glwthread_spinlock_t instead of
5877         gl_spinlock_t.
5878         * modules/windows-mutex: New file.
5879         * modules/lock (Depends-on): Add windows-mutex.
5881 2019-06-20  Bruno Haible  <bruno@clisp.org>
5883         windows-once: New module.
5884         * lib/windows-once.h: New file, extracted from lib/glthread/lock.h.
5885         * lib/windows-once.c: New file, extracted from lib/glthread/lock.c.
5886         * lib/glthread/lock.h: Include windows-once.h.
5887         (gl_once_t): Define using glwthread_once_t.
5888         (gl_once_define): Define using GLWTHREAD_ONCE_INIT.
5889         (glthread_once): Define using glwthread_once.
5890         (glthread_once_func): Remove declaration.
5891         * lib/glthread/lock.c (glthread_once_func): Remove function.
5892         * modules/windows-once: New file.
5893         * modules/lock (Depends-on): Add windows-once.
5895 2019-06-20  Bruno Haible  <bruno@clisp.org>
5897         lock, cond: Avoid possible counter wraparound on Windows.
5898         * lib/glthread/lock.c (glthread_lock_lock_func): Leave the 'started'
5899         field of the guard unchanged if it was already positive.
5900         (glthread_rwlock_rdlock_func): Likewise.
5901         (glthread_rwlock_wrlock_func): Likewise.
5902         (glthread_recursive_lock_lock_func): Likewise.
5903         * lib/glthread/cond.c (glthread_cond_wait_func): Likewise.
5904         (glthread_cond_timedwait_func): Likewise.
5906 2019-06-20  Bruno Haible  <bruno@clisp.org>
5908         cond: Make glthread_cond_timedwait more reliable on Windows.
5909         * lib/glthread/cond.c (glthread_cond_timedwait_func): Initialize the
5910         condition variable before looking at the current time.
5912 2019-06-20  Bruno Haible  <bruno@clisp.org>
5914         pthread_mutex_timedlock: New module.
5915         * lib/pthread.in.h (pthread_mutex_timedlock): New dummy function and
5916         new declaration.
5917         * lib/pthread_mutex_timedlock.c: New file.
5918         * m4/pthread_mutex_timedlock.m4: New file.
5919         * m4/pthread.m4 (gl_PTHREAD_CHECK): Don't call AC_LIBOBJ here. Test
5920         whether pthread_mutex_timedlock is declared.
5921         (gl_PTHREAD_MODULE_INDICATOR): New macro.
5922         (gl_PTHREAD_DEFAULTS): Initialize GNULIB_PTHREAD_MUTEX_TIMEDLOCK,
5923         HAVE_PTHREAD_MUTEX_TIMEDLOCK.
5924         * modules/pthread (configure.ac): Call AC_LIBOBJ here.
5925         (Makefile.am): Substitute GNULIB_PTHREAD_MUTEX_TIMEDLOCK,
5926         HAVE_PTHREAD_MUTEX_TIMEDLOCK.
5927         * modules/pthread_mutex_timedlock: New file.
5928         * doc/posix-functions/pthread_mutex_timedlock.texi: Mention the new
5929         module.
5931 2019-06-20  Bruno Haible  <bruno@clisp.org>
5933         thread, lock, cond, tls: Recognize C11 multithreaded applications.
5934         * m4/threadlib.m4 (gl_THREADLIB_BODY): Test for <threads.h>.
5935         * lib/glthread/thread.h (c11_threads_in_use): New macro.
5936         (pthread_in_use, pth_in_use, thread_in_use): Use it.
5937         * lib/glthread/lock.h (c11_threads_in_use): New macro.
5938         (pthread_in_use, pth_in_use, thread_in_use): Use it.
5939         * lib/glthread/cond.h (c11_threads_in_use): New macro.
5940         (pthread_in_use, pth_in_use, thread_in_use): Use it.
5941         * lib/glthread/tls.h (c11_threads_in_use): New macro.
5942         (pthread_in_use, pth_in_use, thread_in_use): Use it.
5944 2019-06-20  Bruno Haible  <bruno@clisp.org>
5946         tls tests: Small improvements.
5947         * tests/test-tls.c: Include <stdint.h>.
5948         (worker_thread): Avoid gcc warning on 64-bit mingw.
5949         (test_tls): Pass a different id to each thread.
5950         * modules/tls-tests (Depends-on): Add stdint.
5952 2019-06-20  Bruno Haible  <bruno@clisp.org>
5954         cond tests: Simplify.
5955         * tests/test-cond.c (test_timedcond): Remove redundant assignment.
5957 2019-06-20  Bruno Haible  <bruno@clisp.org>
5959         lock tests: Avoid reference to undefined variable if !ENABLE_LOCKING.
5960         * tests/test-lock.c (test_once): Don't reference fire_signal if
5961         !ENABLE_LOCKING.
5963 2019-06-19  Bruno Haible  <bruno@clisp.org>
5965         nanosleep: Relicense under LGPLv2+.
5966         Approved by Jim Meyering, Paul Eggert, Eric Blake, Pádraig Brady.
5967         * modules/nanosleep (License): Change to LGPLv2+.
5969 2019-06-19  Bruno Haible  <bruno@clisp.org>
5971         Reorder pieces of header in perl scripts.
5972         The desired order is
5973         - Prologue part 1 (2 lines with #!)
5974         - Program short description
5975         - Copyright and license notice
5976         - Written-by notice
5977         - Program short description (optional)
5978         - Program long description (optional)
5979         - Prologue part 2
5980         - Time stamp
5981         - Code
5982         Reported by Paul Eggert.
5983         * build-aux/announce-gen: Reorder header.
5984         * build-aux/gitlog-to-changelog: Likewise.
5985         * build-aux/useless-if-before-free: Likewise.
5986         * build-aux/prefix-gnulib-mk: Add copyright notice and short
5987         description.
5988         * build-aux/update-copyright: Likewise. Add short description. Bump
5989         time-stamp-line-limit to 200.
5991 2019-06-18  Paul Eggert  <eggert@cs.ucla.edu>
5993         verify-tests: work around xlc bug
5994         Problem reported by Bruno Haible in:
5995         https://lists.gnu.org/r/bug-gnulib/2019-06/msg00049.html
5996         * tests/test-verify.c (item): Move the arithmetic inside the
5997         verify_expr, to avoid tickling a bug in IBM AIX xlc V12.1.
5999 2019-06-16  Bruno Haible  <bruno@clisp.org>
6001         Restore Emacs time-stamp hook applicability.
6002         Reported by Darshit Shah <darnir@gnu.org>.
6003         * build-aux/useless-if-before-free: Bump time-stamp-line-limit to 50.
6004         * build-aux/announce-gen: Likewise.
6005         * build-aux/gitlog-to-changelog: Likewise.
6006         * build-aux/prefix-gnulib-mk: Likewise.
6007         * build-aux/update-copyright: Likewise.
6009 2019-06-15  Bruno Haible  <bruno@clisp.org>
6011         Fix scripts to have valid executable format on Alpine Linux.
6012         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
6013         Idea by Paul Eggert.
6014         * build-aux/useless-if-before-free: Use a prologue that starts with
6015         '#!/bin/sh'.
6016         * build-aux/announce-gen: Likewise.
6017         * build-aux/gitlog-to-changelog: Likewise.
6018         * build-aux/prefix-gnulib-mk: Likewise.
6019         * build-aux/update-copyright: Likewise.
6020         * tests/test-update-copyright.sh: Update test program accordingly.
6022 2019-06-10  Bruno Haible  <bruno@clisp.org>
6024         nproc: Ensure nproc(NPROC_ALL) ≥ nproc(NPROC_CURRENT) with glibc ≥ 2.26.
6025         Reported by Nikita Ermakov <arei@altlinux.org> in
6026         <https://lists.gnu.org/archive/html/bug-gnulib/2019-06/msg00003.html>.
6027         * lib/nproc.c (num_processors_ignoring_omp): Treat a return value of
6028         sysconf (_SC_NPROCESSORS_CONF) == 2 like a return value == 1.
6030 2019-06-10  Bruno Haible  <bruno@clisp.org>
6032         posix_spawn_file_actions_addchdir: Fix possible use-after-free bug.
6033         * lib/spawn_int.h (struct __spawn_action): Remove 'const' from path.
6034         * lib/spawn_faction_addchdir.c (posix_spawn_file_actions_addchdir): Make
6035         a copy of the path argument.
6036         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Free
6037         it.
6039 2019-06-10  Bruno Haible  <bruno@clisp.org>
6041         posix_spawn_file_actions_addopen: Fix possible use-after-free bug.
6042         Reported at <https://sourceware.org/bugzilla/show_bug.cgi?id=17048>.
6043         * lib/spawn_int.h (struct __spawn_action): Remove 'const' from path.
6044         * lib/spawn_faction_addopen.c (posix_spawn_file_actions_addopen): Make
6045         a copy of the path argument.
6046         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Free
6047         it.
6049 2019-06-10  Bruno Haible  <bruno@clisp.org>
6051         posix_spawn_file_actions_addfchdir: Add tests.
6052         * tests/test-posix_spawn_file_actions_addfchdir.c: New file.
6053         * tests/test-posix_spawn5.c: New file.
6054         * modules/posix_spawn_file_actions_addfchdir-tests: New file.
6056 2019-06-10  Bruno Haible  <bruno@clisp.org>
6058         posix_spawn_file_actions_addfchdir: New module.
6059         * lib/spawn.in.h (posix_spawn_file_actions_addfchdir): New declaration.
6060         * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_fchdir' and
6061         union member 'fchdir_action'.
6062         * lib/spawn_faction_addfchdir.c: New file.
6063         * lib/spawni.c (__spawni): Implement the spawn_do_fchdir action.
6064         * m4/posix_spawn_faction_addfchdir.m4: New file.
6065         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
6066         'posix_spawn_file_actions_addfchdir' is present and whether
6067         posix_spawn_file_actions_addfchdir_np exists. Set REPLACE_POSIX_SPAWN.
6068         * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
6069         posix_spawn_file_actions_addfchdir is declared.
6070         (gl_SPAWN_H_DEFAULTS): Initialize
6071         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
6072         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
6073         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR.
6074         * modules/spawn (Makefile.am): Substitute
6075         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
6076         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
6077         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR.
6078         * modules/posix_spawn_file_actions_addfchdir: New file.
6079         * tests/test-spawn-c++.cc (posix_spawn_file_actions_addfchdir): Check
6080         signature.
6081         * doc/posix-functions/posix_spawn.texi: Mention the new module.
6082         * doc/posix-functions/posix_spawnp.texi: Likewise.
6083         * doc/glibc-functions/posix_spawn_file_actions_addfchdir_np.texi:
6084         Likewise.
6086 2019-06-10  Bruno Haible  <bruno@clisp.org>
6088         doc: Document existence of posix_spawn_file_actions_addchdir module.
6089         * doc/glibc-functions/posix_spawn_file_actions_addchdir_np.texi: Mention
6090         the posix_spawn_file_actions_addchdir module.
6092 2019-06-10  Bruno Haible  <bruno@clisp.org>
6094         posix_spawn-internal: Fix module description.
6095         * modules/posix_spawn (configure.ac): Move request to compile spawni.c
6096         from here...
6097         * modules/posix_spawnp (configure.ac): ... and here...
6098         * modules/posix_spawn-internal (configure.ac): ... to here.
6100 2019-06-10  Bruno Haible  <bruno@clisp.org>
6102         doc: Update and improve documentation of glibc functions.
6103         This is a series of commits that
6104         - updates the documentation to the state of glibc 2.29,
6105         - adds references to Linux man pages and glibc documentation,
6106         - marks Linux specific functions as such.
6107         These are the commits:
6108         doc: Update after removal of crypt functions from glibc 2.28.
6109         doc: Remove mention of function vm86 (does not exist on x86_64).
6110         doc: Remove mention of functions that are gone from glibc.
6111         doc: Mention that glibc no longer provides h_errno.
6112         doc: Mention the availability of specific functions in glibc versions.
6113         doc: Mention eaccess.
6114         doc: Add references to Linux man pages.
6115         doc: Add references to glibc documentation.
6116         doc: Mention inotify_* functions.
6117         doc: Mention ppoll.
6118         doc: Mention sched_getcpu.
6119         doc: Mention sync_file_range.
6120         doc: Mention epoll_pwait.
6121         doc: Mention eventfd, eventfd_read, eventfd_write.
6122         doc: Mention signalfd.
6123         doc: Mention timerfd_create, timerfd_gettime, timerfd_settime.
6124         doc: Mention epoll_create1.
6125         doc: Mention getauxval.
6126         doc: Mention pthread_getattr_default_np, pthread_setattr_default_np.
6127         doc: Mention nextdown, nextup.
6128         doc: Mention more ISO TS 18661-1 <math.h> functions.
6129         doc: Mention ISO TS 18661-1 <fenv.h> functions.
6130         doc: Mention getrandom, getentropy.
6131         doc: Mention strfromf, strfromd, strfroml.
6132         doc: Mention preadv2, pwritev2.
6133         doc: Mention copy_file_range.
6134         doc: Mention memfd_create.
6135         doc: Mention mlock2.
6136         doc: Mention pkey_alloc, pkey_set, pkey_get, pkey_free, pkey_mprotect.
6137         doc: Mention more ISO TS 18661-1 <math.h> functions.
6138         doc: Mention renameat2.
6139         doc: Mention statx.
6140         doc: Mention the ISO C11 multithreading header and functions.
6141         doc: Mention getcpu.
6142         doc: Mention posix_spawn_file_actions_add[f]chdir_np.
6143         doc: Some glibc functions also exist on IRIX 6.5 in 32-bit mode.
6144         doc: Some glibc functions also exist on FreeBSD, AIX, HP-UX, Solaris 11.
6145         doc: Some glibc functions also exist on FreeBSD, Solaris 11.
6146         doc: Some glibc functions also exist on Solaris 11.
6147         doc: Some glibc functions also exist on Solaris 11.4.
6148         doc: Some glibc functions also exist on FreeBSD.
6149         doc: Some glibc functions also exist on BeOS.
6150         doc: Some glibc functions also exist on Haiku.
6151         doc: Mark functions which exist only on Linux.
6152         doc: Mark functions which exist only on Linux and illumos.
6154 2019-06-06  Paul Eggert  <eggert@cs.ucla.edu>
6156         copy-file: fix typo
6157         * lib/copy-file.c (qcopy_file_preserving): Remove unused label.
6159         copy-file-range: simplify into a stub
6160         Based on a comment by Florian Weimer in:
6161         https://lists.gnu.org/r/bug-gnulib/2019-06/msg00007.html
6162         It turns out that Emacs (which will use this module) won’t need an
6163         emulation and I suspect other programs won’t either, because these
6164         programs will need to fall back on read+write anyway.  Perhaps I
6165         am wrong and other programs will be able to use an emulation; if
6166         so, this patch can be reverted.
6167         * lib/copy-file-range.c (COPY_FILE_RANGE): Replace with a stub.
6168         Just call it copy_file_range.
6169         * m4/copy-file-range.m4 (gl_FUNC_COPY_FILE_RANGE):
6170         Check via AC_LINK_IFELSE.
6171         * modules/copy-file-range (Depends-on): Remove modules no longer used.
6173 2019-06-04  Paul Eggert  <eggert@cs.ucla.edu>
6175         copy-file: prefer copy_file_range
6176         * lib/copy-file.c: Do not include xalloc.h.
6177         (qcopy_file_preserving): Allocate a buffer only if
6178         copy_file_range does not suffice.  If the allocation fails
6179         don't give up; just use a small stack-based buffer.
6180         Prefer copy_file_range if it works.
6181         * modules/copy-file (Depends-on): Add copy-file-range.
6182         Remove xalloc.
6184         copy-file-range: new module
6185         * MODULES.html.sh: Add copy-file-range.
6186         * lib/copy-file-range.c, m4/copy-file-range.m4:
6187         * modules/copy-file-range: New files.
6188         * lib/unistd.in.h (copy_file_range): Declare.
6189         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS):
6190         Set up GNULIB_COPY_FILE_RANGE and HAVE_COPY_FILE_RANGE.
6191         * modules/unistd (unistd.h): Substitute them.
6193 2019-05-28  Bruno Haible  <bruno@clisp.org>
6195         binary-io: Attempted use of O_BINARY on consoles no longer fails.
6196         Reported by KO Myung-Hun <komh78@gmail.com> in
6197         <https://lists.gnu.org/archive/html/bug-gnulib/2019-05/msg00124.html>.
6198         * lib/binary-io.h (__gl_setmode_check): Remove function.
6199         (set_binary_mode): Declare as notinline on DJGPP and EMX.
6200         * lib/binary-io.c (__gl_setmode_check): Remove function.
6201         (set_binary_mode): Define here on DJGPP and EMX. Inline
6202         __gl_setmode_check. In case of a tty, don't return an error code.
6204 2019-05-28  James Youngman  <jay@gnu.org>
6206         dirent-safer: Make opendir_safer usable from C++.
6207         * lib/dirent-safer.h: use extern "C".
6209 2019-05-28  James Youngman  <jay@gnu.org>
6211         canonicalize: Make canonicalize_filename_mode usable from C++.
6212         * lib/canonicalize.h: use extern "C".
6214 2019-05-26  Akim Demaille  <akim@lrde.epita.fr>
6216         prefix-gnulib-mk: Fix CPPFLAGS migration.
6217         * build-aux/prefix-gnulib-mk (prefix_assignment): Don't forget the
6218         _a part of the library name.
6220 2019-05-24  Paul Eggert  <eggert@cs.ucla.edu>
6222         flexmember: update comments again
6223         * lib/flexmember.h, m4/flexmember.m4: Improve comments further.
6225         flexmember: update comment
6226         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER): Improve comment.
6228 2019-05-20  Bruno Haible  <bruno@clisp.org>
6230         setlocale: Improve fallback on macOS.
6231         * lib/setlocale.c (search): Optimize away a redundant strcmp()
6232         invocation.
6233         (locales_with_principal_territory): New array.
6234         (langcmp, get_main_locale_with_same_language): New functions.
6235         (locales_with_principal_language): New array.
6236         (terrcmp, get_main_locale_with_same_territory): New functions.
6237         (rpl_setlocale): When setlocale_single failed, try again with a locale
6238         that is more likely to exist. Don't warn if the environment variable
6239         SETLOCALE_VERBOSE is not set.
6241 2019-05-19  Bruno Haible  <bruno@clisp.org>
6243         localename: Fix default on macOS.
6244         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Don't test for CFLocaleCopyCurrent.
6245         * lib/localename.c: Remove includes for HAVE_CFLOCALECOPYCURRENT.
6246         (gl_locale_name_environ, gl_locale_name_default): Remove code for
6247         HAVE_CFLOCALECOPYCURRENT.
6248         * lib/localename.h (gl_locale_name_default): Update.
6250 2019-05-19  Karl Berry  <karl@freefriends.org>
6252         * config/srclistvars.sh (TEXINFOTEX): make ftp.gnu.org be the
6253         source for texinfo.tex, replacing TEXINFOSRC, per Texinfo maintainer.
6254         * config/srclist.txt (texinfo.tex): use it. (Also doc changes.)
6256 2019-05-18  Akim Demaille  <akim@lrde.epita.fr>
6258         maintainer-makefile: catch uses of $< in non-implicit rules
6259         * top/maint.mk (sc_prohibit_magic_number_exit): New.
6261 2019-05-18  Bruno Haible  <bruno@clisp.org>
6263         threadlib: Provide an easy way to avoid mingw's winpthreads library.
6264         * m4/threadlib.m4 (gl_AVOID_WINPTHREAD): New macro.
6265         (gl_THREADLIB_EARLY_BODY): Recognize when it was invoked, and set
6266         gl_use_threads accordingly.
6268 2019-05-18  Bruno Haible  <bruno@clisp.org>
6270         pthread_sigmask: Fix compilation error with --enable-threads=windows.
6271         Reported by Tim Rühsen in
6272         <https://lists.gnu.org/archive/html/bug-gnulib/2018-01/msg00018.html>
6273         and Michele Locati in
6274         <https://lists.gnu.org/archive/html/bug-gettext/2019-04/msg00057.html>.
6275         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Revert change from
6276         2015-06-01. Test whether pthread_sigmask is a macro, regardless of
6277         $LIBMULTITHREAD. Consider it regardless whether module 'threadlib' is
6278         in use and regardless which threads API is chosen.
6280 2019-05-14  Paul Eggert  <eggert@cs.ucla.edu>
6282         close-stream, closein, closeout: simplify
6283         I noticed this opportunity for simplification while drafting a
6284         new, related module that I haven’t had time to finish yet.
6285         * m4/close-stream.m4, m4/closein.m4, m4/closeout.m4: Remove.
6286         * modules/close-stream (Files): Remove m4/close-stream.m4.
6287         (configure.ac): Omit gl_CLOSE_STREAM.
6288         * modules/closein (Files): Remove m4/closein.m4
6289         (configure.ac): Omit gl_CLOSEIN.
6290         * modules/closeout (Files): Remove m4/closeout.m4.
6291         (configure.ac): Omit gl_CLOSEOUT.
6293 2019-05-12  Bruno Haible  <bruno@clisp.org>
6295         libtool-next-version: New program.
6296         * build-aux/libtool-next-version: New file.
6298 2019-05-11  John Darrington  <john@darrington.wattle.id.au>
6299             Bruno Haible  <bruno@clisp.org>
6301         version-etc: Ease translation.
6302         * lib/version-etc.c (version_etc_arn, emit_bug_reporting_address): Move
6303         URLs and formatting newlines out of translatable string.
6305 2019-05-11  Bruno Haible  <bruno@clisp.org>
6307         gnupload: Explain how to create symlinks.
6308         * build-aux/gnupload (usage): Add an example that creates symlinks.
6310 2019-05-11  Paul Eggert  <eggert@cs.ucla.edu>
6312         fpucw: port to gcc -pedantic
6313         * lib/fpucw.h (GET_FPUCW, SET_FPUCW):
6314         Use __extension__ if using ({ ... }).
6316         crypto/af_alg: port to strict C compilers
6317         * lib/af_alg.c: Include af_alg.h regardless, so that the
6318         compilation unit is nonempty.
6320 2019-05-10  Bruno Haible  <bruno@clisp.org>
6322         base64: Avoid false positive warning from Coverity.
6323         Reported by Kamil Dudka <kdudka@redhat.com>.
6324         Idea by Paul Eggert.
6325         * lib/base64.c (base64_encode_fast, base64_encode): Add a no-op
6326         '& 0x3f' to the array index expressions. This convinces Coverity that
6327         there is no out-of-bounds array reference, regardless of the input.
6329 2019-05-09  Bruno Haible  <bruno@clisp.org>
6331         gettext: Update to gettext 0.20.
6332         * modules/gettext (Files): Remove m4/codeset.m4, m4/fcntl-o.m4,
6333         m4/glibc2.m4, m4/glibc21.m4, m4/intdiv0.m4, m4/intl.m4, m4/intldir.m4,
6334         m4/intmax.m4, m4/inttypes_h.m4, m4/inttypes-pri.m4, m4/lcmessage.m4,
6335         m4/lock.m4, m4/longlong.m4, m4/printf-posix.m4, m4/size_max.m4,
6336         m4/stdint_h.m4, m4/threadlib.m4, m4/uintmax_t.m4, m4/visibility.m4,
6337         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4. Add m4/host-cpu-c-abi.m4.
6338         (configure.ac): Request infrastructure compatible with gettext 0.20.
6339         * m4/glibc2.m4: Remove file.
6340         * m4/intdiv0.m4: Remove file.
6341         * m4/intl.m4: Remove file.
6342         * m4/intldir.m4: Remove file.
6343         * m4/intmax.m4: Remove file.
6344         * m4/printf-posix.m4: Remove file.
6345         * m4/uintmax_t.m4: Remove file.
6346         * m4/gettext.m4: Update from gettext 0.20.
6347         * m4/po.m4: Likewise.
6349 2019-05-09  Paul Eggert  <eggert@cs.ucla.edu>
6351         verify: remove verify_true
6352         * NEWS: Mention this.
6353         * lib/verify.h (verify_true): Remove.
6354         * tests/test-verify.c (item): Test verify_expr, not verify_true.
6356         Support C2X and C++17 static_assert
6357         C2X and C++17 finally added support for a simple, single-argument
6358         ‘static_assert’ that implements what the Gnulib ‘verify’ macro was
6359         doing back in 2005.  Implement static_assert on older platforms.
6360         The only remaining advantage of ‘verify’ is a shorter name.
6361         * doc/posix-headers/assert.texi (assert.h):
6362         * doc/verify.texi (Compile-time Assertions):
6363         Modernize for C2X and C++17.
6364         * lib/verify.h (_GL_HAVE__STATIC_ASSERT1, _GL_HAVE_STATIC_ASSERT1):
6365         New macros.
6366         (_GL_HAVE__STATIC_ASSERT): Remove.
6367         (_GL_HAVE__STATIC_ASSERT): Rely more heavily on __STDC_VERSION__.
6368         (_GL_VERIFY_TRUE, _GL_VERIFY_TYPE): Remove 2nd arg, the diagnostic
6369         string.  All callers changed.
6370         (_GL_VERIFY): Require 3 or more args, of which only the first 2
6371         are used.  All callers changed.
6372         (_Static_assert): Allow either 1 or 2 args, and define if
6373         !_GL_HAVE__STATIC_ASSERT1 instead of defining if
6374         !_GL_HAVE__STATIC_ASSERT.
6375         (static_assert): Define if !_GL_HAVE_STATIC_ASSERT1 instead
6376         of defining if !_GL_HAVE_STATIC_ASSERT.
6377         (verify_expr, verify): Don’t bother trying to copy the expression
6378         into the diagnostic, since 1-argument static_assert doesn’t.
6379         (verify): Prefer 1-argument _Static_assert if it works.
6380         * m4/assert_h.m4 (gl_ASSERT_H): Check for 1-argument static_assert.
6382 2019-05-08  Paul Eggert  <eggert@cs.ucla.edu>
6384         Fix _GL_HAVE__STATIC_ASSERT typo
6385         * lib/verify.h (_Static_assert): For the FreeBSD workaround,
6386         use _GL_HAVE__STATIC_ASSERT, not _GL_HAVE_STATIC_ASSERT.
6388 2019-05-05  Bruno Haible  <bruno@clisp.org>
6390         wcwidth: Ensure width 1, not 2, for ambiguous characters.
6391         Reported by Kiyoshi KANAZAWA <yoi_no_myoujou@yahoo.co.jp>
6392         via Akim Demaille <akim.demaille@gmail.com>.
6393         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the width of U+2202. Use an
6394         en_US.UTF-8 locale, since that is more likely to be present than an
6395         fr_FR.UTF-8 locale.
6396         * tests/test-wcwidth.c (main): Check the width of U+2202.
6397         * doc/posix-functions/wcwidth.texi: Mention the issue.
6399 2019-05-03  Paul Eggert  <eggert@cs.ucla.edu>
6401         Port manywarnings to GCC 9
6402         * build-aux/gcc-warning.spec: Sort.  Add -Wattribute-alias,
6403         -Wc11-c2x-compat, -Wcast-result (for the D programming language),
6404         -Wclass-conversion, -Wdeprecated-copy, -Wdeprecated-copy-dtor,
6405         -Winit-list-lifetime, -Wpessimizing-move, -Wprio-ctor-dtor,
6406         -Wredundant-move.  Adjust to minor wording changes in GCC 9’s
6407         --help=warnings output.
6408         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wabsolute-value,
6409         -Waddress-of-packed-member, -Wattribute-warning, -Wcannot-profile,
6410         -Wmissing-profile.  Change -Wattribute-alias to -Wattribute-alias=2.
6412 2019-04-30  Paul Eggert  <eggert@cs.ucla.edu>
6414         Sync lib/mktime-internal.h from glibc
6415         * config/srclist.txt: Add entry for lib/mktime-internal.h.
6416         * lib/mktime-internal.h: Autoupdate.
6418 2019-04-28  Bruno Haible  <bruno@clisp.org>
6420         tls tests: Prevent that the test takes too long.
6421         * tests/test-tls.c: Include <signal.h>, <unistd.h>.
6422         (main): Let the test fail if it takes more than 10 minutes.
6423         * modules/tls-tests (configure.ac): Test whether 'alarm' is declared.
6425 2019-04-27  Bruno Haible  <bruno@clisp.org>
6427         lock tests: Prevent that the test takes too long.
6428         * tests/test-lock.c: Include <signal.h>, <unistd.h>.
6429         (main): Let the test fail if it takes more than 10 minutes.
6430         * modules/lock-tests (configure.ac): Test whether 'alarm' is declared.
6432 2019-04-27  Bruno Haible  <bruno@clisp.org>
6434         localename: Fix crash on mingw (regression from 2018-11-23).
6435         * lib/localename.c (gl_locale_name_posix): Don't attempt to convert a
6436         locale name that is null.
6438 2019-04-27  Bruno Haible  <bruno@clisp.org>
6440         Fix gcc warnings on 64-bit mode mingw.
6441         * lib/clean-temp.c: Include <stdint.h> instead of defining uintptr_t.
6442         * lib/gl_array_list.c: Likewise.
6443         * lib/gl_array_map.c: Likewise.
6444         * lib/gl_array_set.c: Likewise.
6445         * lib/gl_carray_list.c: Likewise.
6446         * lib/gl_sublist.c: Likewise.
6447         * lib/gl_avltreehash_list.c (uintptr_t): Remove definition.
6448         * lib/gl_rbtreehash_list.c (uintptr_t): Likewise.
6449         * lib/gl_hash_map.c (uintptr_t): Likewise.
6450         * lib/gl_hash_set.c (uintptr_t): Likewise.
6451         * lib/gl_linkedhash_list.c (uintptr_t): Likewise.
6452         * lib/gl_linkedhash_map.c (uintptr_t): Likewise.
6453         * lib/gl_linkedhash_set.c (uintptr_t): Likewise.
6454         * lib/iconv.c (uintptr_t): Likewise.
6455         * lib/iconv_close.c (uintptr_t): Likewise.
6456         * tests/test-lock.c: Include <stdint.h>.
6457         (once_contender_thread, test_once): Cast through 'intptr_t' instead of
6458         'long'.
6459         * modules/clean-temp (Depends-on): Add stdint.
6460         * modules/array-list (Depends-on): Likewise.
6461         * modules/array-map (Depends-on): Likewise.
6462         * modules/array-set (Depends-on): Likewise.
6463         * modules/carray-list (Depends-on): Likewise.
6464         * modules/sublist (Depends-on): Likewise.
6465         * modules/lock-tests (Depends-on): Likewise.
6467 2019-04-27  Bruno Haible  <bruno@clisp.org>
6469         error: Tweak indentation.
6470         * lib/error.c: Correct indentation.
6472 2019-04-27  Bruno Haible  <bruno@clisp.org>
6474         term-style-control: Fix gcc warning on mingw.
6475         * lib/term-style-control.c (ensure_other_signal_handlers): Reduce scope
6476         of i.
6478 2019-04-26  Bruno Haible  <bruno@clisp.org>
6480         pipe-filter-gi, pipe-filter-ii: Fix gcc warning.
6481         * lib/pipe-filter-aux.h (read): Undefine before redefinition.
6483 2019-04-26  Bruno Haible  <bruno@clisp.org>
6485         relocatable-prog: Fix gcc warning on mingw.
6486         * lib/progreloc.c (maybe_executable): Don't define on native Windows and
6487         on EMX.
6489 2019-04-02  Bruno Haible  <bruno@clisp.org>
6491         gitsub.sh: New file.
6492         * top/gitsub.sh: New file.
6494 2019-04-18  Akim Demaille  <akim@lrde.epita.fr>
6496         argmatch: use void* for raw memory pointers
6497         * lib/argmatch.h, lib/argmatch.c (argmatch, argmatch_valid)
6498         (__xargmatch_internal, argmatch_to_argument): Use void* for pointers
6499         to "values", keep char* for strings.
6501 2019-04-21  Akim Demaille  <akim@lrde.epita.fr>
6503         prefix-gnulib-mk: fix the support for gnulib-po
6504         * build-aux/prefix-gnulib-mk (prefix_assignment): Remove useless $res.
6505         Don't touch HAVE_* variables.
6506         Map AM_CPPFLAGS and AM_CPPFLAGS to the library's corresponding variables.
6508 2019-04-18  Bernhard Voelker  <mail@bernhard-voelker.de>
6510         di-set: allow free with 'ino_map' being NULL.
6511         * lib/di-set.c (di_set_free): Avoid ino_map_free() when dis->ino_map
6512         is NULL.  Bug introduced in commit 3703dbbe88dd.
6513         * tests/test-di-set.c: Add di_set_free() right after di_set_alloc()
6514         as a test.
6516 2019-04-14  Paul Eggert  <eggert@cs.ucla.edu>
6518         * lib/str-two-way.h: Fix comment typo.
6520 2019-04-13  Bruno Haible  <bruno@clisp.org>
6522         x-to-1: Restore ability to use original calling convention.
6523         * build-aux/x-to-1.in: Add comments. Accept the original form of
6524         HELP2MAN argument as well as the form expected since 2012-12-12.
6526 2019-04-13  Bruno Haible  <bruno@clisp.org>
6528         x-to-1: Avoid failure due to missing perl modules.
6529         * build-aux/x-to-1.in: Test whether all the perl modules that help2man
6530         needs are installed.
6532 2019-04-13  Bruno Haible  <bruno@clisp.org>
6534         openmp-init: New module.
6535         * modules/openmp-init: New file.
6536         * modules/openmp: (Files, Depends-on, configure.ac, Makefile.am): Revert
6537         the changes from 2019-04-09.
6539 2019-04-12  Bruno Haible  <bruno@clisp.org>
6541         signbit: Fix compilation error when gnulib's math.h exists twice.
6542         * lib/math.in.h (GNULIB_defined_signbit): New macro.
6544 2019-04-12  Bruno Haible  <bruno@clisp.org>
6546         openmp: Fix compilation error on platforms without OpenMP.
6547         * lib/omp-init.c: Include <omp.h> only if _OPENMP.
6549 2019-04-09  Bernhard Voelker  <mail@bernhard-voelker.de>
6551         mountlist: make parsing /proc/self/mountinfo more robust
6552         Cater for the following issues with mountinfo parsing (the first
6553         one was reported by Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
6554         in <https://bugs.gnu.org/35137>).
6555         1. The fields source, target, mntroot and fstype may contain characters
6556         like '\r'; sscanf(3) fails to read such values with the %s format
6557         specifier because it would stop at such characters.
6558         Example: "mount -t tmpfs tmpfs /foo^Mbar".
6559         The only true separator in that file is the ' ' character.
6560         2. The source field may be an empty string, which happens e.g. with
6561         "mount -t tmpfs '' /target".
6562         3. The fstype field may contain mangled characters as well which need
6563         unescaping.
6564         * lib/mountlist.c (terminate_at_blank): Add utility function.
6565         (read_file_system_list): In the block trying to read the mountinfo file,
6566         avoid using sscanf(3) with %s format; instead, parse the above fields
6567         separated by spaces one by one.
6568         This also handles the case when the source field is an empty string.
6569         Unescape the fstype field.
6571 2019-04-09  Bruno Haible  <bruno@clisp.org>
6573         openmp: Add workaround for 32-bit programs on AIX.
6574         * lib/omp.in.h: New file.
6575         * lib/omp-init.c: New file, based on lib/nproc.c.
6576         * m4/omp_h.m4: New file.
6577         * modules/openmp (Files): Add them.
6578         (Depends-on): Add include_next, c-ctype, setenv.
6579         (configure.ac): Invoke gl_OMP_H.
6580         (Makefile.am): Add rules to create omp.h and compile omp-init.c.
6581         (Include): Mention <omp.h>.
6583 2019-04-09  Bruno Haible  <bruno@clisp.org>
6585         nproc: Fix return value for privileged processes.
6586         * lib/nproc.c (num_processors_ignoring_omp): Test getuid(), not
6587         getpid().
6589 2019-04-07  Bruno Haible  <bruno@clisp.org>
6591         Add copyright notices in several files.
6592         Reported by <ineiev@gnu.org> in <https://savannah.gnu.org/bugs/?54809>.
6593         * lib/_Noreturn.h: Add LGPLv2+ copyright notice.
6594         * lib/libunistring.valgrind: Likewise.
6595         * lib/iconv_open-*.gperf: Add GPLv2+ copyright notice.
6596         * lib/uniname/gen-uninames.lisp: Add GPLv3+ copyright notice.
6597         * lib/memchr.valgrind: Likewise.
6598         * lib/memchr2.valgrind: Likewise.
6599         * lib/rawmemchr.valgrind: Likewise.
6600         * lib/relocatable.valgrind: Likewise.
6601         * lib/strchrnul.valgrind: Likewise.
6603 2019-03-25  Bruno Haible  <bruno@clisp.org>
6605         term-style-control tests: Fix link error.
6606         Reported by Tom G. Christensen in
6607         <https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00108.html>.
6608         * modules/term-style-control-tests (Makefile.am): Link
6609         test-term-style-control-hello and test-term-style-control-yes against
6610         LIBINTL.
6612 2019-03-24  Bruno Haible  <bruno@clisp.org>
6614         term-style-control: Add tests.
6615         * tests/test-term-style-control-hello.c: New file.
6616         * tests/test-term-style-control-yes.c: New file.
6617         * modules/term-style-control-tests: New file.
6619         term-style-control: New module.
6620         * lib/term-style-control.h: New file, based on libtextstyle's
6621         term-ostream.oo.h and term-ostream.oo.c.
6622         * lib/term-style-control.c: New file, based on libtextstyle's
6623         term-ostream.oo.c.
6624         * modules/term-style-control: New file.
6626 2019-03-22  Akim Demaille  <akim@lrde.epita.fr>
6628         _Noreturn: beware of C's _Noreturn in C++ pre C++11.
6629         * lib/_Noreturn.h, m4/gnulib-common.m4: Using C's _Noreturn in
6630         C++98 appears to be supported by Clang, but not by GCC nor ICC.
6632 2019-03-23  Bruno Haible  <bruno@clisp.org>
6634         Support cross-compilation to musl libc.
6635         Reported by Necktwi Ozfguah <necktwi@ferryfair.com>.
6636         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Add cross-compilation guesses for
6637         musl libc.
6638         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
6639         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
6640         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
6641         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
6642         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
6643         * m4/chown.m4 (gl_FUNC_CHOWN): Likewise.
6644         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
6645         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
6646         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
6647         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
6648         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Likewise.
6649         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Likewise.
6650         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
6651         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
6652         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
6653         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
6654         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
6655         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
6656         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
6657         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
6658         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
6659         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
6660         * m4/getgroups.m4 (AC_FUNC_GETGROUPS, gl_FUNC_GETGROUPS): Likewise.
6661         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
6662         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
6663         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
6664         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
6665         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
6666         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): Likewise.
6667         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
6668         * m4/log.m4 (gl_FUNC_LOG): Likewise.
6669         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
6670         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
6671         * m4/log10.m4 (gl_FUNC_LOG10): Likewise.
6672         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
6673         * m4/log10l.m4 (gl_FUNC_LOG10L): Likewise.
6674         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
6675         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Likewise.
6676         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
6677         * m4/log2.m4 (gl_FUNC_LOG2): Likewise.
6678         * m4/log2f.m4 (gl_FUNC_LOG2F): Likewise.
6679         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Likewise.
6680         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
6681         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
6682         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
6683         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
6684         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
6685         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
6686         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_INFINITE,
6687         gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_A,
6688         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO, gl_SNPRINTF_TRUNCATION_C99,
6689         gl_SNPRINTF_RETVAL_C99, gl_SNPRINTF_DIRECTIVE_N,
6690         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
6691         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
6692         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
6693         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Likewise.
6694         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
6695         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
6696         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
6697         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
6698         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
6699         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
6700         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
6701         * m4/setenv.m4 (gl_FUNC_SETENV): Likewise.
6702         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
6703         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
6704         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
6705         * m4/strerror.m4 (gl_FUNC_STRERROR, gl_FUNC_STRERROR_0): Likewise.
6706         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
6707         * m4/strtold.m4 (gl_FUNC_STRTOLD): Likewise.
6708         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
6709         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
6710         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
6711         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
6712         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
6713         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
6714         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
6715         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
6717 2019-03-23  Bruno Haible  <bruno@clisp.org>
6719         posix_spawn_file_actions_*: Document musl libc bugs.
6720         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
6721         the bug.
6722         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Likewise.
6723         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Likewise.
6724         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): When
6725         cross-compiling to a musl system, guess no.
6726         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): Likewise.
6727         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
6729 2019-03-23  Bruno Haible  <bruno@clisp.org>
6731         futimens: Document musl libc bug.
6732         * doc/posix-functions/futimens.texi: Mention the bug.
6733         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Require AC_CANONICAL_HOST. When
6734         cross-compiling, guess no on glibc and musl systems.
6736 2019-03-23  Bruno Haible  <bruno@clisp.org>
6738         Clarify that cross-compilation guesses are guesses.
6739         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): When cross-compiling, add
6740         prefix 'guessing ' to gl_cv_func_chown_follows_symlink.
6741         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): When cross-compiling, add
6742         prefix 'guessing ' to gl_cv_func_fchownat_nofollow_works.
6743         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): When
6744         cross-compiling, add prefix 'guessing ' to gl_cv_func_getcwd_abort_bug.
6745         * m4/glob.m4 (gl_GLOB): When cross-compiling, add prefix 'guessing ' to
6746         gl_cv_glob_lists_symlinks.
6747         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): When cross-compiling, add prefix
6748         'guessing ' to ac_cv_func_malloc_0_nonnull.
6749         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): When cross-compiling, add prefix
6750         'guessing ' to ac_cv_func_realloc_0_nonnull.
6751         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, add prefix
6752         'guessing ' to gl_cv_func_poll.
6753         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): When cross-
6754         compiling, add prefix 'guessing ' to gl_cv_func_iconv_supports_utf.
6755         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Update accordingly.
6757 2019-03-23  Bruno Haible  <bruno@clisp.org>
6759         strtold: Fix typo.
6760         * m4/strtold.m4 (gl_FUNC_STRTOLD): Fix typo in variable name.
6762 2019-03-23  Bruno Haible  <bruno@clisp.org>
6764         noreturn: In C++ mode with clang, use _Noreturn as fallback.
6765         Reported by Akim Demaille.
6766         * lib/noreturn.h (_GL_NORETURN_FUNC): In C++ mode with clang, when
6767         [[noreturn]] would not work, use _Noreturn instead.
6769 2019-03-22  Akim Demaille  <akim@lrde.epita.fr>
6771         libtextstyle-optional: Fix compiler warnings.
6772         * lib/textstyle.in.h (html_styled_ostream_create): Flag arguments
6773         as unused.
6775 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
6777         bitset: fix memory leaks
6778         Reported by Bruno Haible.
6779         https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00027.html
6780         * lib/bitset/vector.c (vbitset_free): New.
6781         (vbitset_vtable): Use it.
6783 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
6785         bitset: minor changes
6786         * lib/bitset/base.h (bitset_alloc_type): Remove, unused.
6787         * lib/bitset/table.c: Formatting changes.
6788         Remove useless braces.
6789         Prefer using else in cascades of if/else-if with returns.
6790         * lib/bitset/vector.c: Reduce scopes.
6792 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
6794         bitset: expose bitset_resize
6795         * lib/bitset.h (bitset_resize): Bounce on the polymorphic implementation.
6796         * tests/test-bitset.c (check_attributes): Check bitset_resize.
6797         (main): Use a variable bitset as reference, since fixed does not support resize.
6799 2019-03-19  Bruno Haible  <bruno@clisp.org>
6801         doc: Document the 'stdnoreturn' and 'noreturn' modules.
6802         Reported by Akim Demaille.
6803         * doc/noreturn.texi: New file.
6804         * doc/gnulib.texi: Include it.
6806 2019-03-19  Bruno Haible  <bruno@clisp.org>
6808         doc: Document how to use 'static inline'.
6809         * doc/static-inline.texi: New file.
6810         * doc/gnulib.texi: Include it.
6812 2019-03-19  Bruno Haible  <bruno@clisp.org>
6814         libtextstyle-optional: Add tests.
6815         * tests/test-libtextstyle.c: New file, based on libtextstyle's
6816         adhoc-tests/hello.c.
6817         * tests/test-libtextstyle-default.css: New file, copied from
6818         libtextstyle's adhoc-tests/hello-default.css.
6819         * modules/libtextstyle-optional-tests: New file.
6821         libtextstyle-optional: New module.
6822         * lib/textstyle.in.h: New file, based on libtextstyle's textstyle.h.
6823         * m4/libtextstyle-optional.m4: New file, based on m4/libtextstyle.m4.
6824         * modules/libtextstyle-optional: New file.
6826 2019-03-19  Bruno Haible  <bruno@clisp.org>
6828         c-stack: Make signal handlers more reliable.
6829         * lib/c-stack.c (progname): New variable.
6830         (die): Use it.
6831         (c_stack_action): Initialize it.
6832         (segv_handler): Save and restore errno.
6834 2019-03-19  Bruno Haible  <bruno@clisp.org>
6836         Help making signal handlers more reliable.
6837         * m4/gnulib-common.m4 (gl_COMMON_BODY): Emit definition of
6838         _GL_ASYNC_SAFE into config.h.
6839         * lib/nanosleep.c (sighandler): Mark as _GL_ASYNC_SAFE.
6840         * lib/fatal-signal.h (at_fatal_signal): Add _GL_ASYNC_SAFE marker to
6841         argument.
6842         * lib/fatal-signal.c (action_t, uninstall_handlers,
6843         fatal_signal_handler): Mark as _GL_ASYNC_SAFE.
6844         * lib/clean-temp.c (cleanup_action): Mark as _GL_ASYNC_SAFE.
6845         * lib/wait-process.c (cleanup_slaves, cleanup_slaves_action): Mark as
6846         _GL_ASYNC_SAFE.
6847         * lib/c-stack.h (c_stack_action): Add _GL_ASYNC_SAFE marker to argument.
6848         * lib/c-stack.c: Add _GL_ASYNC_SAFE markers.
6850 2019-03-18  Bruno Haible  <bruno@clisp.org>
6852         _Noreturn: clang and MSVC do support [[noreturn]] in C++11 mode.
6853         * lib/_Noreturn.h: Use [[noreturn]] if __GNUC__ and __GNUC_MINOR__
6854         indicate clang, or if _MSC_VER indicates MSVC++ 14.0 or newer.
6856 2019-03-17  Akim Demaille  <akim@lrde.epita.fr>
6858         _Noreturn: GCC 4.7 does not support [[noreturn]] in C++11 mode
6859         * lib/_Noreturn.h, m4/gnulib-common.m4: Don't use [[noreturn]] before
6860         GCC 4.8.
6862 2019-03-17  Paul Eggert  <eggert@cs.ucla.edu>
6864         fts: minor simplification
6865         * lib/fts.c (fts_safe_changedir): Remove redundant assignment.
6867 2019-03-17  Akim Demaille  <akim@lrde.epita.fr>
6869         bitset, timevar: Depend on c99.
6870         Reported by Bruno Haible.
6871         * modules/bitset, modules/timevar (Depends-on): Add c99.
6873 2019-03-16  Akim Demaille  <akim@lrde.epita.fr>
6875         bitset: a bit (...) more tests
6876         * tests/test-bitset.c (check_attributes): Check zero and ones.
6878 2019-03-16  Akim Demaille  <akim@lrde.epita.fr>
6880         bitset: fix overflows.
6881         Reported by Bruno Haible.
6882         https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00017.html
6883         * lib/bitset/table.c (tbitset_test): last_bit is the position of
6884         the bit in the array of bitset_word, so be sure to take its modulo
6885         number-of-bits-in-bitset-word (i.e., EBITSET_ELT_WORDS).
6886         * lib/bitset/list.c (lbitset_unused_clear): Likewise.
6888 2019-03-14  Akim Demaille  <akim@lrde.epita.fr>
6890         bitset: style changes.
6891         * lib/bitset/table.c: Use NULL, not 0, for pointers.
6892         Formatting changes.
6893         (tbitset_list): Reduce scopes.
6895 2019-03-16  Bruno Haible  <bruno@clisp.org>
6897         fatal-signal: Pass the signal number to the action.
6898         * lib/fatal-signal.h (at_fatal_signal): Change the signature.
6899         * lib/fatal-signal.c (action_t): Take the signal number as parameter.
6900         (fatal_signal_handler): Pass the signal number to the action.
6901         * lib/clean-temp.c (cleanup_action): Renamed from cleanup. Take the
6902         signal number as parameter.
6903         (create_temp_dir): Update.
6904         * lib/wait-process.c (cleanup_slaves_action): New function.
6905         (register_slave_subprocess): Update at_fatal_signal invocation.
6906         * NEWS: Mention the change.
6908 2019-03-16  Bruno Haible  <bruno@clisp.org>
6910         fatal-signal: Add function that lists the fatal signals.
6911         * lib/fatal-signal.h (get_fatal_signals): New declaration.
6912         * lib/fatal-signal.c (get_fatal_signals): New function.
6914 2019-03-14  Bruno Haible  <bruno@clisp.org>
6916         isatty: Make it return true in Cygwin consoles on native Windows.
6917         * lib/isatty.c: Include <string.h>.
6918         (GetProcAddress): New macro.
6919         (GetNamedPipeClientProcessIdFuncType): New type.
6920         (GetNamedPipeClientProcessIdFunc): New variable.
6921         (QueryFullProcessImageNameFuncType): New type.
6922         (QueryFullProcessImageNameFunc): New variable.
6923         (initialized): New variable.
6924         (initialize): New function.
6925         (IsCygwinConsoleHandle): New function.
6926         (isatty): Invoke it.
6927         * doc/posix-functions/isatty.texi: Mention the issue.
6929 2019-03-14  Bruno Haible  <bruno@clisp.org>
6931         all: Update URLs to msdn.microsoft.com.
6932         * lib/stat-w32.c et al.: Update URLs after most of msdn.microsoft.com
6933         was moved to docs.microsoft.com.
6935 2019-03-13  Bruno Haible  <bruno@clisp.org>
6937         gnulib-tool: Clarify the coding style.
6938         Suggested by Pavel Raiskup <praiskup@redhat.com>.
6939         * gnulib-tool: Add comment about coding style.
6941 2019-03-11  Paul Eggert  <eggert@cs.ucla.edu>
6943         strtod: fix clash with strtold
6944         Problem reported for RHEL 5 by Jesse Caldwell (Bug#34817).
6945         * lib/strtod.c (compute_minus_zero, minus_zero):
6946         Simplify by remving the macro / external variable,
6947         and having just a function.  User changed.  This avoids
6948         the need for an external variable that might clash.
6950 2019-03-10  Bruno Haible  <bruno@clisp.org>
6952         alloca-opt: Fix conflict mingw's new <alloca.h> file.
6953         Reported by Eli Zaretskii <eliz@gnu.org>.
6954         * lib/alloca.in.h: On mingw systems that have <alloca.h>, include that.
6955         * m4/alloca.m4 (gl_FUNC_ALLOCA): Set HAVE_ALLOCA_H.
6956         * modules/alloca-opt (Makefile.am): Substitute HAVE_ALLOCA_H.
6958 2019-03-10  Bruno Haible  <bruno@clisp.org>
6960         tests: Avoid havoc with "gcc -fcheck-pointer-bounds".
6961         * tests/test-fprintf-posix2.c: Skip the test when -fcheck-pointer-bounds
6962         is in use.
6963         * tests/test-printf-posix2.c: Likewise.
6965 2019-03-10  Bruno Haible  <bruno@clisp.org>
6967         uninorm tests: Free allocated memory.
6968         * tests/uninorm/test-u32-normalize-big.h
6969         (struct normalization_test_file): Remove 'const' from allocated member.
6970         (free_normalization_test_file): New declaration.
6971         * tests/uninorm/test-u32-normalize-big.c (test_other): Free allocated
6972         memory.
6973         (free_normalization_test_file): New function.
6974         * tests/uninorm/test-u32-nfc-big.c (main): Free allocated
6975         'struct normalization_test_file' contents.
6976         * tests/uninorm/test-u32-nfd-big.c (main): Likewise.
6977         * tests/uninorm/test-u32-nfkc-big.c (main): Likewise.
6978         * tests/uninorm/test-u32-nfkd-big.c (main): Likewise.
6980 2019-03-10  Bruno Haible  <bruno@clisp.org>
6982         di-set: Fix memory leak.
6983         * lib/di-set.c (di_set_free): Free the ino_map through ino_map_free(),
6984         not free().
6986 2019-03-10  Bruno Haible  <bruno@clisp.org>
6988         tests: Free allocated memory.
6989         Reported by <deltatau@protonmail.com> via Assaf Gordon.
6990         * tests/test-astrxfrm.c (main): Free allocated memory.
6991         * tests/test-bitset.c (compare, check_attributes): Free allocated
6992         bitsets.
6993         * tests/test-filenamecat.c (main): Free allocated memory.
6994         * tests/test-freadahead.c (main): Free allocated memory and close stdin.
6995         * tests/test-freadptr.c (main): Likewise.
6996         * tests/test-freadptr2.c (main): Free allocated memory.
6997         * tests/test-freadseek.c (main): Likewise.
6998         * tests/test-gc-arcfour.c (main): Close allocated context.
6999         * tests/test-gc-arctwo.c (main): Likewise.
7000         * tests/test-gc-des.c (main): Close all allocated contexts.
7001         * tests/test-pipe-filter-gi1.c (main): Free allocated memory.
7002         * tests/test-pipe-filter-ii1.c (main): Likewise.
7003         * tests/test-posix_spawn_file_actions_addchdir.c (main): Destroy the
7004         allocated file actions.
7005         * tests/test-posix_spawn_file_actions_addclose.c (main): Likewise.
7006         * tests/test-posix_spawn_file_actions_adddup2.c (main): Likewise.
7007         * tests/test-posix_spawn_file_actions_addopen.c (main): Likewise.
7008         * tests/test-sameacls.c (main): Free allocated memory and ACLs.
7009         * tests/test-strfmon_l.c (main): Free allocated locales.
7010         * tests/test-striconveh.c (main): Free allocated iconv_t objects.
7011         * tests/uniconv/test-u8-conv-to-enc.c (main): Free allocated memory.
7012         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
7013         * tests/uniconv/test-u32-conv-to-enc.c (main): Likewise.
7014         * tests/unistr/test-chr.h (main): Free input32.
7015         * tests/unistr/test-strchr.h (test_strchr): Likewise.
7017 2019-03-10  Bruno Haible  <bruno@clisp.org>
7019         tests: Prepare for using valgrind.
7020         * tests/*.sh: Invoke all test programs through ${CHECKER}.
7021         * tests/*/*.sh: Likewise.
7022         * tests/test-freadptr.c (main): Update accordingly.
7023         * tests/test-freadseek.c (main): Likewise.
7025 2019-03-09  Bruno Haible  <bruno@clisp.org>
7027         get-rusage-as, pthread_sigmask tests: Fix -fsanitize=thread findings.
7028         * lib/get-rusage-as.c (get_rusage_as): When compiled by
7029         "gcc -fsanitize=thread", don't try get_rusage_as_via_setrlimit.
7030         * tests/test-pthread_sigmask2.c (main): Clean up the killer_thread
7031         before exiting.
7033 2019-03-09  Jim Meyering  <meyering@fb.com>
7035         test-userspec.c: don't print NULL
7036         * tests/test-userspec.c (main): A test release of gcc,
7037         9.0.1 20190310, warned that this test would attempt to
7038         print a NULL pointer via a %s printf format.  Fix that
7039         and remove the unnecessary preceding "!diag" conjunct.
7040         Also add a comment.
7042 2019-03-03  Bruno Haible  <bruno@clisp.org>
7044         getloadavg: Write NULL for the null pointer.
7045         Reported by Michal Privoznik <mprivozn@redhat.com>.
7046         * lib/getloadavg.c (getloadavg): Write NULL instead of 0.
7048 2019-02-28  Michal Privoznik  <mprivozn@redhat.com>
7050         alloca, tsearch-tests: Write NULL for the null pointer.
7051         * lib/alloca.c (i00afunc): Write NULL instead of 0.
7052         * tests/test-tsearch.c (mangle_tree): Likewise.
7054 2019-03-09  Bruno Haible  <bruno@clisp.org>
7056         strfmon_l: Fix -fsanitize=address finding.
7057         * lib/strfmon_l.c: Include <errno.h>, <stdbool.h>, <stdlib.h>,
7058         <string.h>.
7059         (MAX_ARGS): Renamed from MAX_ARG_WORDS.
7060         (directive_t, directives_t): New types.
7061         (fmon_parse): New function.
7062         (rpl_strfmon_l): Don't call va_arg more often than needed for the
7063         format string. Consume 'long double' arguments in places where the
7064         format string indicates so.
7065         * modules/strfmon_l (Depends-on): Add 'stdbool'.
7067 2019-03-09  Bruno Haible  <bruno@clisp.org>
7069         crypto/des: Fix undefined behaviour.
7070         * lib/des.c (READ_64BIT_DATA): Cast bytes to 'unsigned int', to avoid
7071         shift operations on 'int'.
7073 2019-03-09  Bruno Haible  <bruno@clisp.org>
7075         Fix undefined behaviour.
7076         * lib/bitrotate.h (rotl16, rotr16, rotl8, rotr8): Cast x to
7077         'unsigned int', to avoid shift operations on 'int'.
7078         * lib/xmemdup0.c (xmemdup0): Don't invoke memcpy with a zero size.
7079         * tests/test-count-leading-zeros.c (main): Use a random number that has
7080         as many bits as TYPE, not only 2*15 or 2*31 bits.
7081         * tests/test-count-trailing-zeros.c (main): Likewise.
7082         * tests/test-count-one-bits.c (main): Likewise.
7083         * tests/test-memmem.c: Don't include "null-ptr.h".
7084         (main): Use zerosize_ptr() instead of null_ptr().
7085         * modules/memmem-tests (Files): Remove tests/null-ptr.h.
7087 2019-03-08  Bruno Haible  <bruno@clisp.org>
7089         unilbrk/u*-possible-linebreaks: Fix undefined behaviour.
7090         Reported by Jeffrey Walton <noloader@gmail.com>.
7091         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks): Don't
7092         invoke memset with a zero size.
7093         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
7094         Likewise.
7095         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
7096         Adjust accordingly.
7098 2019-03-08  Bruno Haible  <bruno@clisp.org>
7100         unistr/*, uniconv/*: Fix undefined behaviour.
7101         Reported by Jeffrey Walton <noloader@gmail.com>.
7102         * lib/unistr/u-cpy.h (FUNC): Don't invoke memcpy with a zero size.
7103         * lib/unistr/u-cpy-alloc.h (FUNC): Likewise.
7104         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
7105         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
7107 2019-03-08  Bruno Haible  <bruno@clisp.org>
7109         unistr/u8-cmp: Fix undefined behaviour.
7110         Reported by Jeffrey Walton <noloader@gmail.com>.
7111         * lib/unistr/u8-cmp.c (u8_cmp): Don't invoke memcmp if n is zero.
7113 2019-03-08  Bruno Haible  <bruno@clisp.org>
7115         unictype/numeric: Fix undefined behaviour.
7116         Reported by Jeffrey Walton <noloader@gmail.com>.
7117         * lib/unictype/numeric.c (uc_numeric_value): Avoid undefined behaviour
7118         on shift overflow, caught by "gcc -fsanitize=undefined".
7119         * lib/unictype/bidi_of.c (uc_bidi_class): Add cast, for clarity.
7120         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
7121         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
7123 2019-03-05  Paul Eggert  <eggert@cs.ucla.edu>
7125         git-version-gen: fix --version copyright year
7126         * build-aux/git-version-gen, build-aux/move-if-change (version):
7127         --version output copyright year is now taken from script year,
7128         so that it no longer needs to be updated by hand.
7130 2019-03-04  Bruno Haible  <bruno@clisp.org>
7132         relocatable-prog: Use wrapper-free installation on Mac OS X, take 2.
7133         This approach supports relocatable installation of shared libraries
7134         which depend on other shared libraries from the same package.
7135         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Determine use_macos_tools.
7136         If use_macos_tools is true, use reloc-ldflags and set LIBTOOL to be a
7137         wrapper around the original LIBTOOL.
7138         * build-aux/reloc-ldflags: Add support for Mac OS X, which uses the
7139         token '@loader_path' instead of '$ORIGIN'.
7140         * build-aux/libtool-reloc: New file.
7141         * modules/relocatable-prog (Files): Add it.
7142         * doc/relocatable-maint.texi (Supporting Relocation): Update to match
7143         the recent changes. Document the need to set the *_LDFLAGS of libraries.
7144         RELOCATABLE_LIBRARY_PATH and RELOCATABLE_CONFIG_H_DIR should be set in
7145         Makefile.am, not in configure.ac.
7147 2019-03-04  Bruno Haible  <bruno@clisp.org>
7149         relocatable-prog: Revert "Use wrapper-free installation on Mac OS X."
7150         * build-aux/install-reloc: Revert change.
7151         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
7153 2019-02-24  Paul Eggert  <eggert@cs.ucla.edu>
7155         nstrftime: support the ‘+’ flag
7156         * lib/nstrftime.c (add, __strftime_internal):
7157         Add support for the ‘+’ flag introduced in POSIX.1-2017.
7158         (__strftime_internal): New arg ‘width’.  All uses changed.
7159         (DO_YEARISH, DO_MAYBE_SIGNED_NUMBER): New macros.
7161 2019-02-24  Bruno Haible  <bruno@clisp.org>
7163         relocatable-prog: Improve verbose output.
7164         * build-aux/install-reloc (func_verbose): Escape characters that would
7165         be interpreted by the shell.
7167 2019-02-24  Bruno Haible  <bruno@clisp.org>
7169         stat, lstat: Fix conflict with relocatable-prog-wrapper module.
7170         * lib/stat.c: On platforms other than OSF/1, include <sys/stat.h>, not
7171         "sys/stat.h".
7172         * lib/lstat.c: Likewise.
7173         * lib/fstat.c: Likewise.
7174         * lib/fstatat.c: Likewise.
7176 2019-02-23  Bernhard Voelker  <mail@bernhard-voelker.de>
7178         long-options: add parse_gnu_standard_options_only
7179         Discussed in https://bugs.gnu.org/33468 .
7181         * lib/long-options.c (parse_long_options): Use EXIT_SUCCESS instead of 0
7182         (parse_gnu_standard_options_only): Add function to process
7183         the GNU default options --help and --version and fail for
7184         any other unknown long or short option. See
7185         https://gnu.org/prep/standards/html_node/Command_002dLine-Interfaces.html
7186         * lib/long-options.h (parse_gnu_standard_options_only): Declare it.
7187         * modules/long-options (depends-on): Add stdbool, exitfail.
7188         * top/maint.mk (sc_prohibit_long_options_without_use): Update
7189         syntax-check rule, add new function name.
7191 2019-02-23  Bruno Haible  <bruno@clisp.org>
7193         relocatable-prog: Update documentation.
7194         * doc/relocatable-maint.texi (Supporting Relocation): Update to match
7195         the recent changes.
7197 2019-02-23  Paul Eggert  <eggert@cs.ucla.edu>
7199         nstrftime: tweak arg order
7200         * lib/nstrftime.c (__strftime_internal): Interchange arg order.
7201         All callers changed.  Suggested by TAMUKI Shoichi in:
7202         https://lists.gnu.org/r/bug-gnulib/2019-02/msg00052.html
7204 2019-02-23  Bruno Haible  <bruno@clisp.org>
7206         relocatable-prog: Use wrapper-free installation also on Mac OS X.
7207         Reported by Paul Smith <psmith@gnu.org>.
7208         * build-aux/install-reloc: Accept a 'mode' argument as first argument.
7209         (func_relativize): New function, from gnulib-tool.
7210         Handle mode 'macosx' through invocations of 'otool' and
7211         'install_name_tool'.
7212         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Determine use_macos_tools.
7213         If use_macos_tools is true, set INSTALL_PROGRAM_ENV to an
7214         'install-reloc' invocation with mode 'macosx'.
7216 2019-02-23  Bruno Haible  <bruno@clisp.org>
7218         relocatable-prog: Use $ORIGIN trick also on GNU/Hurd.
7219         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Use $ORIGIN trick also on
7220         Hurd with glibc >= 2.27.
7222 2019-02-21  Paul Eggert  <eggert@cs.ucla.edu>
7224         nstrftime: merge glibc strftime changes
7225         This incorporates:
7226         2019-02-11 Fix a few whitespace arrangement inconsistencies
7227         2019-01-24 strftime: Pass flags from "%EY" to "%Ey" [BZ #24096]
7228         2019-01-24 Set the default width of "%Ey" to 2 [BZ #23758]
7229         2019-01-11 strftime: use the "L_" macro with character literals
7230         * lib/nstrftime.c (__strftime_internal): New arg yr_spec.  All
7231         callers changed.  Default width of %Ey is now 2.  This is needed
7232         for proper handling of Japanese dates starting on 2019-05-01.
7234 2019-02-19  Bruno Haible  <bruno@clisp.org>
7236         relocatable-prog: Use $ORIGIN trick on more platforms.
7237         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Use $ORIGIN trick also on
7238         FreeBSD >= 7.3, DragonFly >= 3.0, NetBSD >= 8.0, OpenBSD >= 5.4,
7239         Solaris >= 10, Haiku. But don't use it on Android.
7240         * build-aux/reloc-ldflags: Allow the use of the $ORIGIN trick also on
7241         Hurd, FreeBSD, DragonFly, NetBSD, OpenBSD, Solaris, Haiku.
7243 2019-02-19  Bruno Haible  <bruno@clisp.org>
7245         progreloc: Speed up executable lookup on various platforms.
7246         * lib/progreloc.c: Include <errno.h>.
7247         (safe_read, full_read): New functions.
7248         (find_executable): On GNU/kFreeBSD, FreeBSD, DragonFly, NetBSD, Solaris,
7249         prefer the information from the /proc file system to a PATH search.
7251 2019-02-19  Bruno Haible  <bruno@clisp.org>
7253         progreloc: Simplify code for Android.
7254         * lib/progreloc.c (executable_fd): Don't define on Android.
7255         (maybe_executable, find_executable): Don't use executable_fd on Android.
7257 2019-02-15  Bruno Haible  <bruno@clisp.org>
7259         gnulib-tool: Support --import with just a few tests, not --with-tests.
7260         * gnulib-tool (func_import): New variable 'gentests'. Use it instead of
7261         'inctests' when generating files; use 'inctests' only for computing the
7262         transitive closure.
7264 2019-02-14  Bruno Haible  <bruno@clisp.org>
7266         gnulib-tool: Improve handling of multiple --local-dir options.
7267         * doc/gnulib.texi (Extending Gnulib): Explain how multiple --local-dir
7268         options work.
7269         * gnulib-tool (func_path_prepend): Remove function.
7270         (func_path_foreach): Make IFS handling more robust.
7271         (local_gnulib_path): Collect --local-dir values using func_path_append,
7272         not func_path_prepend.
7273         (func_determine_path_separator): Make IFS handling more robust.
7274         (func_lookup_file_cb): New function.
7275         (func_lookup_file): Rewritten to use func_lookup_file_cb instead of
7276         func_lookup_local_file. Apply the patches in the reverse order of their
7277         origin in $local_gnulib_path.
7278         (func_count_relative_local_gnulib_path): Make IFS handling more robust.
7279         * NEWS: Mention that the first --local-dir option is the one with
7280         highest priority.
7282 2019-02-10  Bruno Haible  <bruno@clisp.org>
7284         libtextstyle: New module.
7285         * m4/libtextstyle.m4: New file.
7286         * modules/libtextstyle: New file.
7288 2019-02-05  Bruno Haible  <bruno@clisp.org>
7290         declared.sh: Fix bug with variables of pointer type.
7291         * build-aux/declared.sh (sed_extract_extern_declared): Allow the space
7292         before the symbol to be omitted if the preceding character is a '*'.
7294 2019-02-04  Bruno Haible  <bruno@clisp.org>
7296         Add script for running tests under valgrind.
7297         * build-aux/run-test: New file, from GNU libunistring.
7298         * doc/valgrind-tests.texi: Rewritten to mention alternative approaches
7299         as well.
7301 2019-02-04  Bruno Haible  <bruno@clisp.org>
7303         declared.sh: Fix --version output.
7304         * build-aux/declared.sh (func_version): Update package name.
7306 2019-02-03  Bruno Haible  <bruno@clisp.org>
7308         Add script for determining the set of symbols to export from a library.
7309         * build-aux/declared.sh: New file, from GNU libunistring.
7310         * doc/lib-symbol-visibility.texi (Exported Symbols of Shared Libraries):
7311         Mention it.
7313 2019-02-02  Paul Eggert  <eggert@cs.ucla.edu>
7315         vla: add commentary about VLA_ELEMS
7316         * lib/vla.h (VLA_ELEMS): Add commentary,
7317         some inspired by Bruno Haible’s proposal in:
7318         https://lists.gnu.org/r/bug-gnulib/2019-01/msg00109.html
7320         dtoastr,ftoastr,ldtoastr: port to c-strtod changes
7321         Decouple these modules from c-strtod.  Nowadays it’s reasonable to
7322         assume the C99 signatures for strtod and strtold.  Programs that
7323         require stricter adherence to C99 should also use the strtod and
7324         strtold modules as needed, and we no longer need the
7325         HAVE_C99_STRTOLD macro.
7326         * NEWS: Mention this.
7327         * lib/ftoastr.c (STRTOF) [LENGTH == 3]: Assume strtold.
7328         * m4/c-strtod.m4 (gl_C_STRTOLD): Do not define HAVE_C99_STRTOLD.
7329         * modules/dtoastr, modules/ftoastr, modules/ldtoastr:
7330         (Files): Remove m4/c-strtod.m4.
7331         (configure.ac): Do not require gl_C99_STRTOLD, which no longer
7332         exists.
7334 2019-02-02  Bruno Haible  <bruno@clisp.org>
7336         fma: Improve code style.
7337         * lib/fma.c: Include <limits.h>, for CHAR_BIT.
7339 2019-02-02  Colin Watson  <cjwatson@debian.org>
7341         *-map tests: Fix compilation error.
7342         * tests/test-array_map.c: Include <limits.h>, for CHAR_BIT.
7343         * tests/test-hash_map.c: Likewise.
7344         * tests/test-linkedhash_map.c: Likewise.
7346 2019-01-31  Bruno Haible  <bruno@clisp.org>
7348         c-strtod, c-strtold: Use the bug fixes for strtod, strtold.
7349         * lib/stdlib.in.h (GNULIB_defined_strtod_function,
7350         GNULIB_defined_strtold_function): New macros.
7351         * lib/c-strtod.c (HAVE_GOOD_STRTOD_L): New macro.
7352         (STRTOD): Ignore HAVE_C99_STRTOLD.
7353         (c_locale): Don't define it on platforms where strtod_l/strtold_l is
7354         deemed buggy. But do use it on platforms where uselocale exists and is
7355         usable.
7356         (C_STRTOD): Don't use STRTOD_L on platforms where strtod_l/strtold_l is
7357         deemed buggy. On platforms where uselocale exists and is usable, use
7358         uselocale and strtod/strtold.
7359         * m4/c-strtod.m4 (gl_C99_STRTOLD): Remove macro.
7360         (gl_C_STRTOD): Require gt_FUNC_USELOCALE.
7361         (gl_C_STRTOLD): Likewise. Define HAVE_C99_STRTOLD unconditionally.
7362         * modules/c-strtod (Files): Add m4/intl-thread-locale.m4.
7363         (Depends-on): Add strtod.
7364         * modules/c-strtold (Files): Add m4/intl-thread-locale.m4.
7365         (Depends-on): Add strtold.
7367 2019-01-31  Bruno Haible  <bruno@clisp.org>
7369         strtod, strtold: Use the locale's decimal point.
7370         * lib/strtod.c: Include <locale.h>, <stdio.h>, <langinfo.h>.
7371         (decimal_point_char): New function, copied from lib/vasnprintf.c.
7372         (parse_number): Add a radixchar argument. Use it instead of '.'.
7373         (STRTOD): Invoke decimal_point_char and pass the result to parse_number.
7374         * m4/strtod.m4 (gl_PREREQ_STRTOD): Test whether nl_langinfo exists.
7375         * m4/strtold.m4 (gl_PREREQ_STRTOLD): Likewise.
7376         * tests/test-strtod1.c: New file.
7377         * tests/test-strtod1.sh: New file.
7378         * modules/strtod-tests (Files): Add test-strtod1.{sh,c}. Add
7379         locale-fr.m4 and its dependencies.
7380         (configure.ac): Invoke gt_LOCALE_FR, gt_LOCALE_FR_UTF8.
7381         (Makefile.am): Arrange to compile test-strtod1.c and run
7382         test-strtod1.sh.
7383         * tests/test-strtold1.c: New file.
7384         * tests/test-strtold1.sh: New file.
7385         * modules/strtold-tests (Files): Add test-strtold1.{sh,c}. Add
7386         locale-fr.m4 and its dependencies.
7387         (configure.ac): Invoke gt_LOCALE_FR, gt_LOCALE_FR_UTF8.
7388         (Makefile.am): Arrange to compile test-strtold1.c and run
7389         test-strtold1.sh.
7391 2019-01-31  Bruno Haible  <bruno@clisp.org>
7393         strtod, strtold tests: Simplify tests.
7394         * tests/test-strtod.c (main): Assume no rounding errors for 0.5.
7395         * tests/test-strtold.c (main): Likewise.
7397 2019-01-31  Bruno Haible  <bruno@clisp.org>
7399         strtod, strtold: Avoid unnecessary rounding errors.
7400         * lib/strtod.c (parse_number): Drop trailing zeroes before doing the
7401         decimal to DOUBLE conversion.
7403 2019-01-31  Bruno Haible  <bruno@clisp.org>
7405         strtod, strtold: Work around HP-UX 11.31/ia64 bug.
7406         * lib/strtod.c (STRTOD): When there is an extra character after the
7407         exponent marker 'p', reparse the number.
7408         * doc/posix-functions/strtod.texi: Document the HP-UX 11.31 bug.
7409         * doc/posix-functions/strtold.texi: Likewise.
7411 2019-01-29  Bruno Haible  <bruno@clisp.org>
7413         strtold: Add tests.
7414         * tests/test-strtold.c: New file, based on tests/test-strtod.c.
7415         * modules/strtold-tests: New file.
7417 2019-01-29  Bruno Haible  <bruno@clisp.org>
7419         strtold: New module.
7420         * lib/stdlib.in.h (strtold): New declaration.
7421         * lib/strtold.c: New file.
7422         * lib/strtod.c: Consider USE_LONG_DOUBLE.
7423         (STRTOD, LDEXP, HAVE_UNDERLYING_STRTOD, DOUBLE, MIN, MAX, L_,
7424         USE_LDEXP): New macros.
7425         (LDEXP, scale_radix_exp, parse_number, STRTOD): Adapt for
7426         USE_LONG_DOUBLE.
7427         (underlying_strtod): Remove function. Replace with some macros.
7428         Re-add the code for a missing underlying function that was removed on
7429         2013-02-19.
7430         * m4/strtold.m4: New file.
7431         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether strtold is declared.
7432         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLD, HAVE_STRTOLD,
7433         REPLACE_STRTOLD.
7434         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLD, HAVE_STRTOLD,
7435         REPLACE_STRTOLD.
7436         * modules/strtold: New file.
7437         * doc/posix-functions/strtold.texi: Document the new module.
7439 2019-01-29  Bruno Haible  <bruno@clisp.org>
7441         strtod: Fix compilation error on IRIX 6.5.
7442         * modules/strtod (Depends-on): Add 'math'.
7444 2019-01-28  Bruno Haible  <bruno@clisp.org>
7446         Fix build error when building a shared libunistring on Android.
7447         * tests/uninorm/test-nfc.c (n): Don't define on Android.
7448         (main): Add 'volatile', to defeat a GCC optimization that would
7449         eliminate the reference.
7450         * tests/uninorm/test-nfd.c (n): Don't define on Android.
7451         (main): Add 'volatile', to defeat a GCC optimization that would
7452         eliminate the reference.
7453         * tests/uninorm/test-nfkc.c (n): Don't define on Android.
7454         (main): Add 'volatile', to defeat a GCC optimization that would
7455         eliminate the reference.
7456         * tests/uninorm/test-nfkd.c (n): Don't define on Android.
7457         (main): Add 'volatile', to defeat a GCC optimization that would
7458         eliminate the reference.
7460 2019-01-27  Bruno Haible  <bruno@clisp.org>
7462         Avoid build errors due to wrong references between modules.
7463         * lib/uninorm/canonical-decomposition.c: Include
7464         "uninorm/decomposition-table.h", not "decomposition-table.h".
7465         * lib/uninorm/decomposition.c: Likewise.
7466         * lib/uninorm/u8-normalize.c: Include "uninorm/decompose-internal.h",
7467         not "decompose-internal.h".
7468         * lib/uninorm/u16-normalize.c: Likewise.
7469         * lib/uninorm/u32-normalize.c: Likewise.
7470         * lib/uninorm/uninorm-filter.c: Likewise.
7471         * lib/uninorm/nfkc.c: Likewise.
7472         * lib/uninorm/nfkd.c: Likewise.
7473         * lib/unicase/u8-casemap.c: Include "unicase/caseprop.h", not
7474         "caseprop.h".
7475         * lib/unicase/u8-ct-totitle.c: Likewise.
7476         * lib/unicase/u8-prefix-context.c: Likewise.
7477         * lib/unicase/u8-suffix-context.c: Likewise.
7478         * lib/unicase/u16-casemap.c: Likewise.
7479         * lib/unicase/u16-ct-totitle.c: Likewise.
7480         * lib/unicase/u16-prefix-context.c: Likewise.
7481         * lib/unicase/u16-suffix-context.c: Likewise.
7482         * lib/unicase/u32-casemap.c: Likewise.
7483         * lib/unicase/u32-ct-totitle.c: Likewise.
7484         * lib/unicase/u32-prefix-context.c: Likewise.
7485         * lib/unicase/u32-suffix-context.c: Likewise.
7486         * lib/unicase/u8-tolower.c: Include "unicase/unicasemap.h", not
7487         "unicasemap.h".
7488         * lib/unicase/u8-toupper.c: Likewise.
7489         * lib/unicase/u8-ct-tolower.c: Likewise.
7490         * lib/unicase/u8-ct-toupper.c: Likewise.
7491         * lib/unicase/u16-tolower.c: Likewise.
7492         * lib/unicase/u16-toupper.c: Likewise.
7493         * lib/unicase/u16-ct-tolower.c: Likewise.
7494         * lib/unicase/u16-ct-toupper.c: Likewise.
7495         * lib/unicase/u32-tolower.c: Likewise.
7496         * lib/unicase/u32-toupper.c: Likewise.
7497         * lib/unicase/u32-ct-tolower.c: Likewise.
7498         * lib/unicase/u32-ct-toupper.c: Likewise.
7499         * lib/unicase/u8-ct-casefold.c: Include "unicase/unicasemap.h", not
7500         "unicasemap.h", and "unicase/casefold.h", not "casefold.h".
7501         * lib/unicase/u16-ct-casefold.c: Likewise.
7502         * lib/unicase/u32-ct-casefold.c: Likewise.
7504 2019-01-27  Bruno Haible  <bruno@clisp.org>
7506         gperf: Fix error when this module is required by some test module.
7507         * modules/gperf (Applicability): Set to 'all'.
7509 2019-01-27  Bruno Haible  <bruno@clisp.org>
7511         tmpfile: Add support for Android.
7512         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Add a runtime test whether tmpfile()
7513         works.
7514         * lib/tmpfile.c (tmpfile): Add an alternative implementation for
7515         Android.
7516         * modules/tmpfile (Depends-on): Add 'stdbool'.
7517         * doc/posix-functions/tmpfile.texi: Mention the Android bug.
7518         * modules/argv-iter-tests (Depends-on): Add 'tmpfile'.
7520 2019-01-27  Akim Demaille  <akim@lrde.epita.fr>
7522         bitsetv: allow free on NULL.
7523         * lib/bitsetv.c (bitsetv_free): Do nothing when the bitsetv is NULL.
7525 2019-01-27  Bruno Haible  <bruno@clisp.org>
7527         test-framework-sh: Improve maintainability.
7528         * tests/init.sh: Clarify what belongs together. Reorder definitions.
7530 2019-01-27  Bruno Haible  <bruno@clisp.org>
7532         tests: Don't assume that /tmp exists.
7533         * tests/test-set-mode-acl-1.sh: Skip the test if /tmp does not exist.
7534         * tests/test-copy-acl-1.sh: Likewise.
7535         * tests/test-file-has-acl-1.sh: Likewise.
7536         * tests/test-copy-file-1.sh: Likewise.
7538 2019-01-27  Bruno Haible  <bruno@clisp.org>
7540         tests: Accommodate a shell that is not in /bin/sh.
7541         * tests/init.sh (setup_): Set srcdir and builddir.
7542         (BOURNE_SHELL): New variable.
7543         * modules/acl-tests (Depends-on): Add 'test-framework-sh'.
7544         * modules/file-has-acl-tests (Depends-on): Likewise.
7545         * modules/copy-file-tests (Depends-on): Likewise.
7546         * tests/test-set-mode-acl-1.sh: Use the test framework. Invoke shell
7547         scripts through $BOURNE_SHELL.
7548         * tests/test-set-mode-acl-2.sh: Likewise.
7549         * tests/test-copy-acl-1.sh: Likewise.
7550         * tests/test-copy-acl-2.sh: Likewise.
7551         * tests/test-file-has-acl-1.sh: Likewise.
7552         * tests/test-file-has-acl-2.sh: Likewise.
7553         * tests/test-copy-file-1.sh: Likewise.
7554         * tests/test-copy-file-2.sh: Likewise.
7555         * tests/test-set-mode-acl.sh (builddir): Consider value set by the
7556         invoker.
7557         * tests/test-copy-acl.sh (builddir): Likewise.
7558         * tests/test-file-has-acl.sh (builddir): Likewise.
7559         * tests/test-copy-file.sh (builddir): Likewise.
7560         * tests/test-vc-list-files-cvs.sh: Don't create shims for executables in
7561         build-aux/. Instead, invoke shell scripts through $BOURNE_SHELL.
7562         * tests/test-vc-list-files-git.sh: Likewise.
7564 2019-01-27  Bruno Haible  <bruno@clisp.org>
7566         tests: Fix some "unused variable" warnings.
7567         * tests/test-fts.c (fts_dealloc): Remove unused variable.
7568         * tests/unigbrk/test-uc-grapheme-breaks.c (main): Likewise.
7569         * tests/test-striconveh.c (main): Move some variable into the
7570         '#if HAVE_ICONV'.
7571         * tests/test-striconveha.c (main): Likewise.
7572         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
7573         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
7574         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
7575         * tests/uniconv/test-u8-conv-to-enc.c (main): Likewise.
7576         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
7577         * tests/uniconv/test-u32-conv-to-enc.c (main): Likewise.
7578         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
7579         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
7580         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
7581         * tests/uniconv/test-u8-strconv-to-enc.c (main): Likewise.
7582         * tests/uniconv/test-u16-strconv-to-enc.c (main): Likewise.
7583         * tests/uniconv/test-u32-strconv-to-enc.c (main): Likewise.
7584         * tests/test-tsearch.c (main): Move some variable into the
7585         '#if HAVE_INITSTATE'.
7587 2019-01-27  Bruno Haible  <bruno@clisp.org>
7589         unigbrk/uc-grapheme-breaks: Fix build failure.
7590         * lib/unigbrk/uc-grapheme-breaks.c: Don't include unistr.h.
7591         * modules/unigbrk/uc-grapheme-breaks (Makefile.am): Fix typo.
7593 2019-01-27  Bruno Haible  <bruno@clisp.org>
7595         mountlist: Merge two .m4 files.
7596         * m4/mountlist.m4 (gl_MOUNTLIST): Inline gl_LIST_MOUNTED_FILE_SYSTEMS.
7597         (AC_FUNC_GETMNTENT): Move to here, from m4/ls-mntd-fs.m4.
7598         * m4/ls-mntd-fs.m4: Remove file.
7599         * modules/mountlist (Files): Remove m4/ls-mntd-fs.m4.
7601 2019-01-27  Bruno Haible  <bruno@clisp.org>
7603         tests: Enable Linux specific tests on Android.
7604         * tests/test-flock.c (main): Treat Android like Linux.
7605         * tests/test-openat-safer.c (main): Likewise.
7607 2019-01-27  Bruno Haible  <bruno@clisp.org>
7609         relocatable-prog: Use Linux code on Android.
7610         * lib/progreloc.c: Treat Android like Linux.
7612 2019-01-26  Bruno Haible  <bruno@clisp.org>
7614         getloadavg: Add support for Android.
7615         * lib/getloadavg.c: Treat Android like Linux.
7617 2019-01-26  Bruno Haible  <bruno@clisp.org>
7619         vma-iter: Add support for Android.
7620         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Android as well.
7621         * lib/vma-iter.c: Treat Android like Linux.
7622         * lib/get-rusage-data.c (get_rusage_data): Likewise.
7624 2019-01-26  Bruno Haible  <bruno@clisp.org>
7626         fts: Optimize on Android.
7627         * lib/fts.c: Treat Android like Linux.
7629 2019-01-26  Bruno Haible  <bruno@clisp.org>
7631         fts: Add support for Android.
7632         * m4/fts.m4 (gl_FUNC_FTS_CORE): Avoid conflicts between the symbols
7633         defined by this module and the ones in libc.
7634         * tests/test-fts.c (main): Treat mkdir error EMLINK like EMFILE.
7636 2019-01-26  Bruno Haible  <bruno@clisp.org>
7638         mountlist: Use Linux code on Android.
7639         * lib/mountlist.c (setmntent, endmntent): Define fallbacks.
7640         (unescape_tab, read_file_system_list): Enable Linux code on Android
7641         as well.
7642         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Test for setmntent
7643         and endmntent.
7644         * modules/mountlist (Depends-on): Add 'getline'.
7646 2019-01-26  Bruno Haible  <bruno@clisp.org>
7648         localename tests: Fix test failure on Android.
7649         * modules/localename-tests (Depends-on): Add 'setlocale'.
7651 2019-01-26  Bruno Haible  <bruno@clisp.org>
7653         mountlist: Port better to Android.
7654         * lib/mountlist.c (MOUNTED): Redefine on Android.
7655         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Redefine MOUNTED on
7656         Android.
7658 2019-01-26  Bruno Haible  <bruno@clisp.org>
7660         striconveh: Fix use of uninitialized iconv_t.
7661         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
7662         <https://lists.gnu.org/archive/html/bug-libunistring/2019-01/msg00000.html>.
7663         * lib/striconveh.c (iconveh_open): Correct the iconv_close argument.
7665 2019-01-26  Bruno Haible  <bruno@clisp.org>
7667         nonblocking-socket-tests: Fix test failure on Android 4.3.
7668         * tests/test-nonblocking-socket.h (SOCKET_HAS_LARGE_BUFFER): Define to 1
7669         also on Android.
7671 2019-01-26  Bruno Haible  <bruno@clisp.org>
7673         sh-filename: Add support for Android 4.3.
7674         * m4/sh-filename.m4 (gl_SH_FILENAME): Set to "sh" on Android.
7676 2019-01-26  Bruno Haible  <bruno@clisp.org>
7678         ptsname_r: Work around bug on Android 4.3.
7679         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Define
7680         HAVE_ESSENTIALLY_WORKING_PTSNAME_R. Test whether the return value is
7681         correct.
7682         * lib/ptsname_r.c (__ptsname_r): If HAVE_ESSENTIALLY_WORKING_PTSNAME_R
7683         is defined, just fix the return value.
7684         * doc/glibc-functions/ptsname_r.texi: Mention the Android bug. Reword:
7685         The behaviour of musl libc is nothing to be "fixed", since it is
7686         compliant with the next POSIX standard.
7688 2019-01-26  Bruno Haible  <bruno@clisp.org>
7690         ttyname_r: Work around bug on Android 4.3.
7691         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is a stub.
7692         * lib/ttyname_r.c (ttyname_r): Implement for Android.
7693         * doc/posix-functions/ttyname_r.texi: Mention the Android bug.
7694         * doc/posix-functions/ttyname.texi: Likewise.
7696 2019-01-25  Bruno Haible  <bruno@clisp.org>
7698         getprogname: Port to Android 4.3.
7699         * lib/getprogname.c (getprogname): On Android, take only the last
7700         component of __progname.
7702 2019-01-25  Bruno Haible  <bruno@clisp.org>
7704         wcrtomb: Work around bug on Android 4.3.
7705         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test also whether wcrtomb works in
7706         the C locale.
7707         * lib/wcrtomb.c (wcrtomb): Provide alternate implementation for Android,
7708         which does not have the 'wctomb' function.
7709         * doc/posix-functions/wcrtomb.texi: Mention the Android bug.
7710         * tests/test-wcrtomb.c (main): Accept argument '5'.
7711         * tests/test-wcrtomb.sh: Add tests in the POSIX locale.
7713 2019-01-25  Bruno Haible  <bruno@clisp.org>
7715         setlocale: Work around bug on Android 4.3.
7716         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Test whether setlocale supports
7717         the "C" locale.
7718         * lib/setlocale.c (setlocale_unixlike): New wrapper for Android.
7719         * doc/posix-functions/setlocale.texi: Mention the Android bug.
7721 2019-01-24  Bruno Haible  <bruno@clisp.org>
7723         memchr: Work around bug on Android <= 5.0.
7724         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add test against the Android bug.
7725         * doc/posix-functions/memchr.texi: Mention the Android bug.
7727 2019-01-24  Bruno Haible  <bruno@clisp.org>
7729         random: Fix compilation error on Android 4.3.
7730         * lib/stdlib.in.h (random, srandom): Test also REPLACE_RANDOM.
7731         (initstate): Test REPLACE_INITSTATE and HAVE_INITSTATE, not HAVE_RANDOM.
7732         (setstate): Test REPLACE_SETSTATE and HAVE_SETSTATE, not HAVE_RANDOM.
7733         * m4/random.m4 (gl_FUNC_RANDOM): Set HAVE_INITSTATE, HAVE_SETSTATE,
7734         REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
7735         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_INITSTATE,
7736         HAVE_SETSTATE, REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
7737         * modules/stdlib (Makefile.am): Substitute HAVE_INITSTATE, HAVE_SETSTATE,
7738         REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
7739         * modules/random (Depends-on, configure.ac): Test also REPLACE_RANDOM,
7740         REPLACE_INITSTATE, REPLACE_SETSTATE.
7741         * doc/posix-functions/random.texi: Correct the description of the
7742         situation on Android.
7743         * doc/posix-functions/srandom.texi: Likewise.
7744         * doc/posix-functions/rand.texi: Likewise.
7745         * doc/posix-functions/srand.texi: Likewise.
7747 2019-01-24  Bruno Haible  <bruno@clisp.org>
7749         mbtowc: Fix compilation error on Android 4.3.
7750         * lib/stdlib.in.h (mbtowc): Test also HAVE_MBTOWC.
7751         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Test whether mbtowc exists. Set
7752         HAVE_MBTOWC.
7753         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether mbtowc is declared.
7754         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MBTOWC.
7755         * modules/stdlib (Makefile.am): Substitute HAVE_MBTOWC.
7756         * modules/mbtowc (Depends-on, configure.ac): Test also HAVE_MBTOWC.
7757         * doc/posix-functions/mbtowc.texi: Mention the change.
7759 2019-01-24  Bruno Haible  <bruno@clisp.org>
7761         fdatasync: Fix compilation error on Android 4.3.
7762         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): On platforms other than Solaris,
7763         test whether fdatasync() exists.
7765 2019-01-24  Bruno Haible  <bruno@clisp.org>
7767         unlinkat: Fix compilation error on Android 4.3.
7768         * lib/unistd.in.h: Include <fcntl.h> when module 'unlinkat' is in use
7769         also on Android.
7770         * doc/posix-functions/unlinkat.texi: Mention the issue.
7772 2019-01-24  Bruno Haible  <bruno@clisp.org>
7774         renameat: Fix compilation error on Android 4.3.
7775         * lib/stdio.in.h: Include <sys/stat.h> when module 'renameat' is in use.
7776         * doc/posix-functions/renameat.texi: Mention the issue.
7778 2019-01-24  Bruno Haible  <bruno@clisp.org>
7780         fchownat: Fix compilation error on Android 4.3.
7781         * lib/unistd.in.h: Include <sys/stat.h> when module 'fchownat' is in
7782         use.
7783         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG,
7784         gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Include also <sys/stat.h>.
7785         * doc/posix-functions/fchownat.texi: Mention the issue.
7787 2019-01-23  Bruno Haible  <bruno@clisp.org>
7789         gnulib-tool: Support running testdirs on Android.
7790         * build-aux/test-driver.diff: New file.
7791         * gnulib-tool (func_create_testdir, func_create_megatestdir): Patch
7792         build-aux/test-driver after running automake.
7794 2019-01-23  Akim Demaille  <akim@lrde.epita.fr>
7796         relocatable-prog: avoid warnings from Automake
7797         * modules/relocatable-prog: Don't declare PHONY dependencies in
7798         Automake conditionals.
7800 2019-01-23  Akim Demaille  <akim@lrde.epita.fr>
7802         array-list: Pacify warnings about unused arguments (-Wunused-parameter).
7803         * lib/gl_array_list.c (gl_array_iterator_free): "Use" the argument.
7805 2019-01-23  Bruno Haible  <bruno@clisp.org>
7807         threadlib: Revert commit from 2018-06-25. We now have a better fix.
7808         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't attempt to defeat a
7809         preceding -Wl,--as-needed option. Don't check whether the linker
7810         supports --as-needed/--no-as-needed and --push-state/--pop-state.
7812 2019-01-23  Bruno Haible  <bruno@clisp.org>
7814         thread: Force linking with -lpthread, even when --as-needed is in use.
7815         Reported by Richard W.M. Jones <rjones@redhat.com> in
7816         <https://lists.gnu.org/archive/html/bug-gnulib/2019-01/msg00123.html>.
7817         * lib/glthread/thread.h (pthread_create): Don't declare weak.
7819 2019-01-23  Akim Demaille  <akim.demaille@gmail.com>
7820             Bruno Haible  <bruno@clisp.org>
7822         relocatable: avoid compiler warnings (-Wshadow)
7823         * lib/relocatable.c (compute_curr_prefix): Rename local variables
7824         to avoid name collisions with global variables.
7826 2019-01-22  Bruno Haible  <bruno@clisp.org>
7828         vasnprintf: Don't use %n on Android.
7829         Reported and fix suggested by Hugo Beauzée-Luyssen <hugo@beauzee.fr> in
7830         <https://lists.gnu.org/archive/html/bug-gnulib/2018-12/msg00123.html>.
7831         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on Android.
7833 2019-01-22  Bruno Haible  <bruno@clisp.org>
7835         *printf: Support cross-compilation to Android.
7836         * m4/printf.m4: Add cross-compilation guesses for Android.
7838 2019-01-21  Bruno Haible  <bruno@clisp.org>
7840         diacrit: Mark deprecated.
7841         * modules/diacrit (Status, Notice): Mark as deprecated.
7842         * NEWS: Mention it.
7844 2019-01-20  Bruno Haible  <bruno@clisp.org>
7846         rintl: Override broken implementation on NetBSD.
7847         * lib/math.in.h (rintl): Test also REPLACE_RINTL.
7848         * m4/rintl.m4 (gl_FUNC_RINTL): Add test for negative arguments. Set
7849         REPLACE_RINTL.
7850         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_RINTL.
7851         * modules/math (Makefile.in): Substitute REPLACE_RINTL.
7852         * modules/rintl (Depends-on, configure.ac): Test REPLACE_RINTL.
7853         * doc/posix-functions/rintl.texi: Mention the NetBSD bug.
7855 2019-01-20  Bruno Haible  <bruno@clisp.org>
7857         log10l: Work around inaccurate implementation on NetBSD.
7858         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Add test for a certain accuracy.
7859         * lib/log10l.c: Comment out too simplistic override.
7860         * doc/posix-functions/log10l.texi: Mention the NetBSD bug.
7862 2019-01-20  Bruno Haible  <bruno@clisp.org>
7864         logl: Work around inaccurate implementation on NetBSD.
7865         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Add test for a certain accuracy.
7866         * lib/logl.c: Comment out unused code.
7867         * doc/posix-functions/logl.texi: Mention the NetBSD bug.
7869 2019-01-20  Bruno Haible  <bruno@clisp.org>
7871         expm1l: Work around inaccurate implementation on NetBSD.
7872         * lib/math.in.h (expm1l): Test also REPLACE_EXPM1L.
7873         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Add test for a certain accuracy. Set
7874         REPLACE_EXPM1L.
7875         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1L.
7876         * modules/math (Makefile.in): Substitute REPLACE_EXPM1L.
7877         * modules/expm1l (Depends-on, configure.ac): Test REPLACE_EXPM1L.
7878         * doc/posix-functions/expm1l.texi: Mention the NetBSD bug.
7880 2019-01-20  Bruno Haible  <bruno@clisp.org>
7882         expl: Work around inaccurate implementation on NetBSD.
7883         * lib/math.in.h (expl): Test also REPLACE_EXPL.
7884         * m4/expl.m4 (gl_FUNC_EXPL): Add test for a certain accuracy. Set
7885         REPLACE_EXPL.
7886         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPL.
7887         * modules/math (Makefile.in): Substitute REPLACE_EXPL.
7888         * modules/expl (Depends-on, configure.ac): Test REPLACE_EXPL.
7889         * doc/posix-functions/expl.texi: Mention the NetBSD bug.
7891 2019-01-20  Bruno Haible  <bruno@clisp.org>
7893         exp2l: Work around inaccurate implementation on NetBSD.
7894         * m4/exp2l.m4 (gl_FUNC_EXP2L): Add test for a certain accuracy.
7895         * doc/posix-functions/exp2l.texi: Mention the NetBSD bug.
7897 2019-01-20  Bruno Haible  <bruno@clisp.org>
7899         floor, floorl: Avoid autoconf warnings.
7900         * modules/floor (configure.ac): Use AC_REQUIRE.
7901         * modules/floorl (configure.ac): Likewise.
7903 2019-01-20  Bruno Haible  <bruno@clisp.org>
7905         Defeat current GCC optimizations in math autoconf tests.
7906         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Mark function pointer as 'volatile'.
7907         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
7908         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
7909         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
7910         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
7911         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
7912         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
7913         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
7914         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
7915         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
7916         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
7917         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
7918         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
7919         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
7920         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
7921         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
7922         * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Likewise.
7923         * m4/log.m4 (gl_FUNC_LOG): Likewise.
7924         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
7925         * m4/log10.m4 (gl_FUNC_LOG10): Likewise.
7926         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
7927         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
7928         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Likewise.
7929         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
7930         * m4/log2.m4 (gl_FUNC_LOG2): Likewise.
7931         * m4/log2f.m4 (gl_FUNC_LOG2F): Likewise.
7932         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
7933         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
7934         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
7935         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
7936         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
7937         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
7938         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
7939         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
7940         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
7941         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
7942         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
7943         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
7945 2019-01-19  Pádraig Brady  <P@draigBrady.com>
7947         gettext: support disabling use of VLAs
7948         * lib/gettext.h: Disable use of VLAs if GNULIB_NO_VLA is defined
7950 2019-01-17  KO Myung-Hun  <komh78@gmail.com>
7952         sys_stat: Fix 'implicit declaration of function' warning on OS/2 kLIBC.
7953         * lib/sys_stat.in.h [kLIBC]: Include <unistd.h>.
7955 2019-01-17  KO Myung-Hun  <komh78@gmail.com>
7957         fcntl: Fix syntax error (regression from 2018-10-05).
7958         * lib/fcntl.c (klibc_fcntl): Remove mis-placed ';'.
7960 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
7962         relocatable: improve documentation.
7963         * doc/relocatable-maint.texi (Supporting Relocation): For
7964         substitutions performed by config.status, we need more variables
7965         (for instance datarootdir defaults to '${prefix}/share' so we need
7966         prefix).
7968 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
7970         backup: update dependencies
7971         * modules/backup-rename (Depends-on): It now depends on opendirat
7972         instead of opendir.  It also uses stdint, and xalloc-oversized.
7973         But no longer dirfd.
7974         * modules/backupfile (Depends-on): Add xalloc-oversized.
7976 2019-01-13  Bruno Haible  <bruno@clisp.org>
7978         getcwd: Fix test failure when building on a Linux 9p file system.
7979         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): On Linux, treat error
7980         EINVAL from mkdir like ENAMETOOLONG.
7981         * tests/test-getcwd.c (test_long_name): Likewise.
7983 2019-01-12  Tim Rühsen  <tim.ruehsen@gmx.de>
7985         Fix typos found by codespell.
7986         * lib/*.[hc]: Fix typos in comments.
7987         * pygnulib/*.py: Fix typos in error messages and comments.
7989 2019-01-12  Bruno Haible  <bruno@clisp.org>
7991         doc: Fix documentation about container data types.
7992         Reported by Werner Lemberg <wl@gnu.org>.
7993         * doc/containers.texi (Container data types): Fix typo.
7995 2019-01-10  Bruno Haible  <bruno@clisp.org>
7997         verify: Enable _GL_HAVE_STATIC_ASSERT for recent G++ versions.
7998         Reported by Reuben Thomas <rrt@sc3d.org>.
7999         * lib/verify.h (_GL_HAVE_STATIC_ASSERT): Define for g++ versions >= 6.
8001 2019-01-06  Bruno Haible  <bruno@clisp.org>
8003         maintainer-makefile: Make the configure.ac section optional.
8004         * top/maint.mk (GREP, SED): Define if not defined.
8006 2019-01-06  Bruno Haible  <bruno@clisp.org>
8008         localename: Assume setlocale function.
8009         * lib/localename.c (gl_locale_name_posix): Assume setlocale exists.
8010         * m4/localename.m4 (gl_LOCALENAME): Don't test whether setlocale exists.
8012 2019-01-06  Bruno Haible  <bruno@clisp.org>
8014         doc: Add documentation about container data types.
8015         * doc/containers.texi: New file.
8016         * doc/gnulib.texi (Particular Modules): Include it.
8018 2019-01-06  Bruno Haible  <bruno@clisp.org>
8020         doc: Update documentation about 'progname' module.
8021         * doc/progname.texi: Rename from doc/error.texi. Change node name and
8022         title. Rewrite.
8023         * doc/gnulib.texi (Particular Modules): Update.
8025 2019-01-06  Bruno Haible  <bruno@clisp.org>
8027         doc: Document the xstdopen and *-safer modules.
8028         * doc/xstdopen.texi: New file.
8029         * doc/gnulib.texi (Particular Modules): Include it.
8031 2019-01-06  Bruno Haible  <bruno@clisp.org>
8033         xstdopen: Add tests.
8034         * tests/test-xstdopen.c: New file.
8035         * tests/test-xstdopen.sh: New file.
8036         * modules/xstdopen-tests: New file.
8038         xstdopen: New module.
8039         * lib/xstdopen.h: New file.
8040         * lib/xstdopen.c: New file.
8041         * modules/xstdopen: New file.
8043 2019-01-06  Bruno Haible  <bruno@clisp.org>
8045         stdopen: Fix compilation error with IRIX cc.
8046         * lib/stdopen.c (stdopen): Do not use C99-style decl in loop.
8048 2019-01-05  Paul Eggert  <eggert@cs.ucla.edu>
8050         xfreopen need not include stdio--.h
8051         * lib/xfreopen.c: Do not include stdio--.h.
8053         xfreopen need not depend on freopen-safer
8054         * modules/xfreopen (Depends-on):
8055         Depend on freopen, not freopen-safer.
8057         stdopen: modernize and simplify
8058         * lib/stdopen.c: Update copyright date
8059         Do not include sys/types.h; no longer needed these days.
8060         (stdopen): Use C99-style decl in loop.  Return int errno
8061         value, rather than just a bool.  Do not worry about fd mismatches,
8062         since the caller cares only if 0, 1, 2 are occupied.
8063         * lib/stdopen.h: No need to include <stdbool.h>.
8064         * m4/stdopen.m4: Remove.
8065         * modules/stdopen: New file.
8067         stdopen: copy from last use in coreutils
8068         * lib/stdopen.c, lib/stdopen.h, m4/stdopen.m4:
8069         New files, taken from their last commit in coreutils
8070         2007-07-23T12:35:58Z!jim@meyering.net
8071         71aa3ea88084d17bcb4fc1031ad7b66f8647115e.
8073 2019-01-05  Bruno Haible  <bruno@clisp.org>
8075         argp: Don't pass an invalid argument to dgettext().
8076         Reported by He X <xw897002528@gmail.com>.
8077         * lib/argp-help.c (print_header, argp_doc): Don't pass a NULL doc to
8078         dgettext().
8080 2019-01-05  Bruno Haible  <bruno@clisp.org>
8082         argp: Don't pass an invalid argument to dgettext().
8083         Reported by He X <xw897002528@gmail.com>.
8084         * lib/argp.h (struct argp): Clarify that the args_doc field may be NULL.
8085         * lib/argp-help.c (argp_args_usage): Don't pass a NULL args_doc to
8086         dgettext().
8088 2018-12-22  Paul Eggert  <eggert@cs.ucla.edu>
8090         stdioext: port to newer 32-bit Android
8091         Problem reported by Tom Yan in:
8092         https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00014.html
8093         * lib/stdio-impl.h (_gl_FILE_flags_t) [__ANDROID__]: New macro.
8094         (fp_) [__ANDROID__]: Use it.
8096 2019-01-04  Bruno Haible  <bruno@clisp.org>
8098         lock: Fix link error with --enable-threads=pth.
8099         * lib/glthread/lock.h (pth_cond_init, pth_cond_await, pth_cond_notify):
8100         Mark as weak.
8102 2019-01-04  Bruno Haible  <bruno@clisp.org>
8104         Fix link errors in unit tests.
8105         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8106         * modules/bitset-tests (Makefile.am): Link test-bitset against libintl.
8107         * modules/array-map-tests (Makefile.am): Link test-array_map against
8108         libintl.
8109         * modules/array-set-tests (Makefile.am): Link test-array_set against
8110         libintl.
8111         * modules/hash-map-tests (Makefile.am): Link test-hash_map against
8112         libintl.
8113         * modules/hash-set-tests (Makefile.am): Link test-hash_set against
8114         libintl.
8115         * modules/linkedhash-map-tests (Makefile.am): Link test-linkedhash_map
8116         against libintl.
8117         * modules/linkedhash-set-tests (Makefile.am): Link test-linkedhash_set
8118         against libintl.
8120 2019-01-04  Bruno Haible  <bruno@clisp.org>
8122         Fix incorrect 'Link' sections.
8123         * modules/regex (Link): Mention the link requirement of module 'lock'.
8124         * modules/regex-tests (Makefile.am): Don't use LIB_PTHREAD.
8126 2019-01-04  Bruno Haible  <bruno@clisp.org>
8128         Fix some 'Link' sections.
8129         * modules/c-stack (Link): Add link directive from the 'gettext-h'
8130         dependency.
8131         * modules/getaddrinfo (Link): Likewise.
8133 2019-01-04  Bruno Haible  <bruno@clisp.org>
8135         Remove redundant 'Link' sections.
8136         * modules/canon-host (Link): Remove section.
8137         * modules/timevar (Link): Likewise.
8139 2019-01-04  Bruno Haible  <bruno@clisp.org>
8141         Remove incorrect 'Link' sections.
8142         * modules/acl (Link): Remove section. Use combined 'Link' sections from
8143         the dependencies instead.
8144         * modules/crypto/md5 (Link): Likewise.
8145         * modules/crypto/sha1 (Link): Likewise.
8146         * modules/crypto/sha256 (Link): Likewise.
8147         * modules/crypto/sha512 (Link): Likewise.
8148         * modules/faccessat (Link): Likewise.
8149         * modules/fdutimensat (Link): Likewise.
8150         * modules/iconv_open-utf (Link): Likewise.
8151         * modules/propername (Link): Likewise.
8152         * modules/qacl (Link): Likewise.
8153         * modules/unicodeio (Link): Likewise.
8154         * modules/utimecmp (Link): Likewise.
8155         * modules/utimensat (Link): Likewise.
8156         * modules/xstriconv (Link): Likewise.
8157         * modules/xstriconveh (Link): Likewise.
8159 2019-01-04  Bruno Haible  <bruno@clisp.org>
8161         gnulib-tool: New option --extract-recursive-link-directive.
8162         * gnulib-tool (func_usage): Document the new options
8163         --extract-recursive-dependencies, --extract-recursive-link-directive.
8164         (func_verify_module): Document output variables.
8165         (func_get_dependencies_recursively): New function.
8166         (func_get_link_directive_recursively): New function.
8167         Use them to implement the new options
8168         --extract-recursive-dependencies, --extract-recursive-link-directive.
8169         * doc/gnulib-tool.texi (Link-time requirements): New section.
8171 2019-01-04  Bruno Haible  <bruno@clisp.org>
8173         Clarify meaning of 'Link' section in module description.
8174         * doc/gnulib.texi (Module description): Clarify the meaning of the
8175         'Link' section versus the one of the dependencies.
8176         * NEWS: Mention the change.
8178 2019-01-04  Bruno Haible  <bruno@clisp.org>
8180         pselect: Fix module description.
8181         * modules/pselect (Link): Put one link option per line.
8183 2019-01-04  Bruno Haible  <bruno@clisp.org>
8185         cosl: Fix module description.
8186         * modules/cosl (Link): Fix typo.
8187         * modules/mathl (configure.ac): Likewise.
8189 2019-01-04  Bruno Haible  <bruno@clisp.org>
8191         c-xvasprintf: Fix module dependencies.
8192         * modules/c-xvasprintf (Depends-on): Add 'xalloc-die'.
8194 2019-01-04  Akim Demaille  <akim@lrde.epita.fr>
8196         bootstrap: die when some submodules are not initialized
8197         * build-aux/bootstrap: Make sure all submodules are initialized.
8199 2019-01-04  Bruno Haible  <bruno@clisp.org>
8201         bitsetv: Fix module dependencies.
8202         * lib/bitsetv.c: Include xalloc.h.
8203         * modules/bitsetv (Depends-on): Add 'xalloc'.
8205 2019-01-04  Bruno Haible  <bruno@clisp.org>
8207         xmemdup0: Remove redundant code.
8208         * lib/xmemdup0.h (xalloc_die): Remove declaration.
8210 2019-01-04  Bruno Haible  <bruno@clisp.org>
8212         backupfile: Fix module dependencies.
8213         * modules/backupfile (Depends-on): Add 'xalloc'.
8215 2019-01-03  Paul Eggert  <eggert@cs.ucla.edu>
8217         bitset, crypto/gc: fix conflicts with Solaris 11
8218         * lib/bitset.h (_GL_BITSET_H): Rename from _BITSET_H, to
8219         avoid clash with Solaris 11 <sys/bitset.h>.
8220         * lib/gc.h (_GL_GC_H): Rename from GC_H, to avoid clash
8221         with Solaris 11 <xorg/gc.h>.
8223 2019-01-04  Bruno Haible  <bruno@clisp.org>
8225         safe-read, safe-write: Fix conflict with Illumos-Joyent <sys/limits.h>.
8226         Reported by Andy Fiddaman <andy@omniosce.org>.
8227         * lib/sys-limits.h: Add a '_GL' prefix to the guard symbol.
8229 2019-01-03  Eric Blake  <eblake@redhat.com>
8231         maintainer-makefile: fix typo in previous patch
8232         * top/maint.mk (_sc_search_regexp): Fix my accidental corruption
8233         of Roman's work.
8235 2019-01-02  Roman Bolshakov <r.bolshakov@yadro.com>  (tiny change)
8237         maintainer-makefile: prefer $(GREP) over grep
8238         * modules/maintainer-makefile (configure.ac): Ensure $(GREP) is
8239         defined.
8240         * top/maint.mk: Use it everywhere.
8242         maintainer-makefile: split long argument lines
8243         * top/maint.mk: Use xargs to split $(VC_LIST_EXCEPT) usage where
8244         it would be too long for exec limits on BSD.
8246 2018-12-27  Paul Eggert  <eggert@cs.ucla.edu>
8248         mkfifo: bring back HAVE_MKFIFO macro
8249         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): #define HAVE_MKFIFO as needed.
8250         Problem reported by Andrew Janke in:
8251         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00147.html
8253 2018-12-21  Bruno Haible  <bruno@clisp.org>
8255         Assume Autoconf >= 2.63.
8256         * modules/stdarg (configure.ac-early): Remove comment about Autoconf
8257         versions < 2.60.
8259 2018-12-21  Bruno Haible  <bruno@clisp.org>
8261         memcmp: Mention the clang bug.
8262         * tests/test-memcmp.c: Add comment about a known test failure.
8263         * doc/posix-functions/memcmp.texi: Mention the clang bug.
8265 2018-12-20  Jim Meyering  <meyering@fb.com>
8267         revert v0.1-2213-gae4b73e28 and part of v0.1-2281-g95cd86dd7
8268         v0.1-2213-gae4b73e28 caused a regression in grep-3.2 (no match):
8269           echo '123-x'|LC_ALL=C grep -E '.\bx'
8270         The goal is to revert the first, but reverting it requires to restore
8271         the function deleted in the second. I ran this to restore the deleted
8272         function:
8273           git show v0.1-2281-g95cd86dd7 lib/dfa.c \
8274             | perl -0777 -pe 's/^@@[^\n]*dfaan.*//ms' \
8275             | patch -R -p1
8276         * lib/dfa.c (charclass_context): Restore deleted function.
8277         Reverting the primary commit removes this change:
8278         dfa: Simplify a building state
8279         * lib/dfa.c (build_state): Simplify a building state.
8281 2018-12-20  Paul Eggert  <eggert@cs.ucla.edu>
8283         version-etc: allow zero authors
8284         * lib/version-etc.c (version_etc_arn): If no authors are given,
8285         omit authorship info instead of dumping core.
8287 2018-12-19  Bruno Haible  <bruno@clisp.org>
8289         lchown tests: Be more permissive regarding errno values.
8290         Reported by Ivan Zakharyaschev <imz@altlinux.org>.
8291         * tests/test-lchown.h (test_lchown): Recognize EOPNOTSUPP as an
8292         alternative to ENOSYS.
8293         * modules/lchown-tests (Depends-on): Add 'errno'.
8294         * modules/fchownat-tests (Depends-on): Likewise.
8296 2018-12-18  Bruno Haible  <bruno@clisp.org>
8298         duplocale: Avoid test failure on AIX 7.
8299         * modules/duplocale-tests (Files): Add m4/intl-thread-locale.m4.
8300         (configure.ac): Invoke gt_FUNC_USELOCALE.
8301         * tests/test-duplocale.c: Test HAVE_WORKING_USELOCALE instead of
8302         HAVE_USELOCALE. Assume that nl_langinfo_l only works when uselocale
8303         works.
8305 2018-12-18  Bruno Haible  <bruno@clisp.org>
8307         localename: Fix test failure on AIX 7.
8308         Reported by Assaf Gordon in
8309         <https://lists.gnu.org/archive/html/sed-devel/2018-12/msg00019.html>.
8310         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): New macro.
8311         (gt_INTL_THREAD_LOCALE_NAME): Invoke it. Test gt_cv_func_uselocale_works
8312         instead of ac_cv_func_uselocale.
8313         * lib/localename.c: Test HAVE_WORKING_USELOCALE instead of
8314         HAVE_USELOCALE.
8315         * lib/localename-table.h: Likewise.
8316         * lib/localename-table.c: Likewise.
8317         * tests/test-localename.c: Likewise.
8318         * doc/posix-functions/uselocale.texi: Mention the AIX problem.
8320 2018-12-18  Bruno Haible  <bruno@clisp.org>
8322         localename: Update comments regarding Cygwin.
8323         * lib/localename.c: Update comment.
8324         * doc/posix-functions/uselocale.texi: Update platforms list.
8325         * doc/posix-functions/newlocale.texi: Likewise.
8326         * doc/posix-functions/duplocale.texi: Likewise.
8327         * doc/posix-functions/freelocale.texi: Likewise.
8329 2018-12-16  Bruno Haible  <bruno@clisp.org>
8331         c-stack: Fix for Linux/sparc.
8332         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Set
8333         ac_cv_sys_xsi_stack_overflow_heuristic to 'no' on Linux/sparc.
8335 2018-12-16  Bruno Haible  <bruno@clisp.org>
8337         localename: Avoid test failure on some glibc systems.
8338         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
8339         Unset environment variables that might disturb the first setlocale call,
8340         and verify that this setlocale call succeeds.
8342 2018-12-16  Assaf Gordon  <assafgordon@gmail.com>
8344         random: Fix build error on native Windows (regression from 2018-06-21).
8345         * lib/random.c (__srandom, __initstate, __setstate, __random,
8346         __srandom_r, __initstate_r, __setstate_r, __random_r) [!_LIBC]: Redirect
8347         to the symbols without '__' prefix.
8349 2018-12-16  Bruno Haible  <bruno@clisp.org>
8351         obstack, libc-config: Support HP-UX cc in C99 mode.
8352         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER): Treat HP-UX cc as a pre-C99
8353         compiler, even when in C99 mode.
8354         * lib/cdefs.h (__flexarr): Likewise.
8355         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Update comment.
8357 2018-12-16  Bruno Haible  <bruno@clisp.org>
8359         localename: Fix test failure on OpenBSD >= 6.2.
8360         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Test for fake
8361         locale system. Define HAVE_FAKE_LOCALES in this case.
8362         * lib/localename.c (HAVE_GOOD_USELOCALE): New macro. Use it instead of
8363         HAVE_USELOCALE.
8364         * tests/test-localename.c (HAVE_GOOD_USELOCALE): New macro. Use it
8365         instead of HAVE_NEWLOCALE && HAVE_USELOCALE.
8366         * doc/posix-functions/uselocale.texi: Mention OpenBSD problem. Update
8367         platforms list.
8368         * doc/posix-functions/newlocale.texi: Likewise.
8369         * doc/posix-functions/duplocale.texi: Update platforms list.
8370         * doc/posix-functions/freelocale.texi: Likewise.
8372 2018-12-16  Bruno Haible  <bruno@clisp.org>
8374         duplocale tests: Re-enable the test on platforms without <monetary.h>.
8375         * tests/test-duplocale.c: Use more fine-grained #ifs to re-enable most
8376         of the test, on platforms without <monetary.h>.
8378 2018-12-16  Bruno Haible  <bruno@clisp.org>
8380         localename: Update comments.
8381         * lib/localename.c (HAVE_USELOCALE): Update list of platforms.
8383 2018-12-15  Jim Meyering  <meyering@fb.com>
8385         regex: fix indentation
8386         * m4/regex.m4 (gl_REGEX): Indent with spaces, not TABs.
8388 2018-12-15  Bruno Haible  <bruno@clisp.org>
8390         openat-safer tests: Avoid test failure on NetBSD 8.
8391         * tests/test-openat-safer.c (main): Execute a Linux specific test only
8392         on Linux.
8394 2018-12-15  Jim Meyering  <meyering@fb.com>
8396         regex: work around a bug in glibc-2.27 and prior
8397         * m4/regex.m4 (gl_REGEX): Reject any system regexp that gets a failed
8398         assertion for /0|()0|\1|0/.
8399         * tests/test-regex.c (main): Add the same test here.
8401 2018-12-15  Bruno Haible  <bruno@clisp.org>
8403         localename: Fix use of uninitialized shell variable.
8404         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Initialize
8405         gt_cv_locale_solaris114 always before use. Remove assignment without
8406         effect.
8408 2018-12-15  Bruno Haible  <bruno@clisp.org>
8410         dfa tests: Avoid test failure on Alpine Linux.
8411         * tests/dfa-match.sh (timeout_10): Accommodate the BusyBox 'timeout'
8412         command found on Alpine Linux.
8414 2018-12-15  Jim Meyering  <meyering@fb.com>
8416         dfa: avoid new warnings from gcc
8417         These would prevent building with -Werror and a Dec snapshot of gcc.
8418         * lib/dfa.c (dfaanalyze): Avoid shadowing warnings for "pos".
8419         Rename each inner instance to "p".
8420         (charclass_context): Remove unused static function.
8422 2018-12-14  Paul Eggert  <eggert@cs.ucla.edu>
8424         mkdir-p: improve diagnostic for FUSE mounts
8425         Problem reported by Niklas Hambüchen in:
8426         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00074.html
8427         * lib/mkdir-p.c (make_dir_parents): In diagnostic, prefer stat
8428         errno to mkdir errno if the stat errno is likely more interesting.
8430 2018-12-14  Bruno Haible  <bruno@clisp.org>
8432         hash-map: Add tests.
8433         * tests/test-hash_map.c: New file.
8434         * modules/hash-map-tests: New file.
8436         linkedhash-map: Add tests.
8437         * tests/test-linkedhash_map.c: New file.
8438         * modules/linkedhash-map-tests: New file.
8440         array-map: Add tests.
8441         * tests/test-array_map.c: New file.
8442         * modules/array-map-tests: New file.
8444         xmap: New module.
8445         * lib/gl_xmap.h: New file.
8446         * lib/gl_xmap.c: New file.
8447         * modules/xmap: New file.
8449         hash-map: New module.
8450         * lib/gl_hash_map.h: New file.
8451         * lib/gl_hash_map.c: New file.
8452         * modules/hash-map: New file.
8454         linkedhash-map: New module.
8455         * lib/gl_linkedhash_map.h: New file.
8456         * lib/gl_linkedhash_map.c: New file.
8457         * lib/gl_anyhash1.h: Update comments.
8458         * lib/gl_anyhash2.h: Likewise.
8459         * modules/linkedhash-map: New file.
8461         array-map: New module.
8462         * lib/gl_array_map.h: New file.
8463         * lib/gl_array_map.c: New file.
8464         * modules/array-map: New file.
8466         map: New module.
8467         * lib/gl_map.h: New file.
8468         * lib/gl_map.c: New file.
8469         * lib/gl_omap.h (gl_mapkey_dispose_fn, gl_mapvalue_dispose_fn): Avoid
8470         conflict with gl_map.h.
8471         * modules/map: New file.
8473 2018-12-13  Bruno Haible  <bruno@clisp.org>
8475         select tests: Avoid test failure on Cygwin.
8476         * tests/test-select.h (test_bad_fd): Use an fd < FD_SETSIZE.
8478 2018-12-13  Bruno Haible  <bruno@clisp.org>
8480         localtime-buffer: Avoid endless recursion in localtime and gmtime.
8481         * lib/localtime-buffer.c: Undefine localtime and gmtime before use.
8483 2018-12-13  Bruno Haible  <bruno@clisp.org>
8485         localeconv tests: Avoid test failure on Cygwin.
8486         * tests/test-localeconv.c (main): On Cygwin, skip the 'grouping' and
8487         'mon_grouping' tests.
8489 2018-12-11  Bruno Haible  <bruno@clisp.org>
8491         omap: Don't dispose the old value when the function returns it.
8492         * lib/gl_array_omap.c (gl_array_remove_at): Don't invoke the vdispose_fn
8493         here.
8494         * lib/gl_avltree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
8495         * lib/gl_rbtree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
8496         * lib/gl_omap.h (gl_omap_nx_put, gl_omap_remove): Invoke the vdispose_fn
8497         here.
8499         array-omap, avltree-omap, rbtree-omap: Tweak style.
8500         * lib/gl_anytree_omap.h (gl_tree_nx_getput): Return 1 or 0, not true or
8501         false.
8502         * lib/gl_array_omap.c (gl_array_nx_getput): Likewise.
8504         rbtree-omap: Add tests.
8505         * tests/test-rbtree_omap.c: New file.
8506         * modules/rbtree-omap-tests: New file.
8508         avltree-omap: Add tests.
8509         * tests/test-avltree_omap.c: New file.
8510         * modules/avltree-omap-tests: New file.
8512         array-omap: Add tests.
8513         * tests/test-array_omap.c: New file.
8514         * modules/array-omap-tests: New file.
8516         xomap: New module.
8517         * lib/gl_xomap.h: New file.
8518         * lib/gl_xomap.c: New file.
8519         * modules/xomap: New file.
8521         rbtree-omap: New module.
8522         * lib/gl_rbtree_omap.h: New file.
8523         * lib/gl_rbtree_omap.c: New file.
8524         * lib/gl_rbtree_ordered.h: Code moved to here from lib/gl_rbtree_oset.c.
8525         Parameterize.
8526         * lib/gl_rbtree_oset.c: Include gl_rbtree_ordered.h.
8527         * modules/rbtree-omap: New file.
8528         * modules/rbtree-oset (Files): Add lib/gl_rbtree_ordered.h.
8529         (Makefile.am): Add gl_rbtree_ordered.h to lib_SOURCES.
8531         avltree-omap: New module.
8532         * lib/gl_avltree_omap.h: New file.
8533         * lib/gl_avltree_omap.c: New file.
8534         * lib/gl_avltree_ordered.h: Code moved to here from
8535         lib/gl_avltree_oset.c. Parameterize.
8536         * lib/gl_avltree_oset.c: Include gl_avltree_ordered.h.
8537         * lib/gl_anytree_omap.h: New file.
8538         * modules/avltree-omap: New file.
8539         * modules/avltree-oset (Files): Add lib/gl_avltree_ordered.h.
8540         (Makefile.am): Add gl_avltree_ordered.h to lib_SOURCES.
8542         array-omap: New module.
8543         * lib/gl_array_omap.h: New file.
8544         * lib/gl_array_omap.c: New file.
8545         * modules/array-omap: New file.
8547         omap: New module.
8548         * lib/gl_omap.h: New file.
8549         * lib/gl_omap.c: New file.
8550         * modules/omap: New file.
8552 2018-12-11  Bruno Haible  <bruno@clisp.org>
8554         hash-set, linkedhash-set: Reduce code duplication.
8555         * lib/gl_anyhash1.h: Rename from lib/gl_anyhash_list1.h and
8556         lib/gl_anyhash_set1.h.
8557         * lib/gl_anyhash2.h: Rename from lib/gl_anyhash_list2.h and
8558         lib/gl_anyhash_set2.h. Parameterize.
8559         (hash_resize_after_add): New function, from lib/gl_anyhash_set2.h.
8560         * lib/gl_anytreehash_list1.h (hash_resize_after_add): Remove function.
8561         * lib/gl_avltreehash_list.c: Include gl_anyhash1.h instead of
8562         gl_anyhash_list1.h. Include gl_anyhash2.h instead of gl_anyhash_list2.h.
8563         * lib/gl_rbtreehash_list.c: Likewise.
8564         * lib/gl_linkedhash_list.c: Likewise.
8565         (hash_resize_after_add): Remove function.
8566         * lib/gl_linkedhash_set.c: Include gl_anyhash1.h instead of
8567         gl_anyhash_set1.h. Include gl_anyhash2.h instead of gl_anyhash_set2.h.
8568         * gl_hash_set.c: Likewise.
8569         * modules/avltreehash-list (Files, Makefile.am): Update file list.
8570         * modules/rbtreehash-list (Files, Makefile.am): Likewise.
8571         * modules/linkedhash-list (Files, Makefile.am): Likewise.
8572         * modules/linkedhash-set (Files, Makefile.am): Likewise.
8573         * modules/hash-set (Files, Makefile.am): Likewise.
8575 2018-12-11  Bruno Haible  <bruno@clisp.org>
8577         array-set: Optimize.
8578         * lib/gl_array_set.c (gl_array_search, gl_array_remove): Test equals_fn
8579         outside the loop, not inside the loop.
8581 2018-12-11  Bruno Haible  <bruno@clisp.org>
8583         times: Fix tests.
8584         * tests/test-times.c (doublecmp): Implement a total order.
8586 2018-12-11  Bruno Haible  <bruno@clisp.org>
8588         array-set, linkedhash-set, hash-set: Fix tests.
8589         * tests/test-array_set.c (cmp_objects_in_array): New function.
8590         (check_equals): Use it.
8591         * tests/test-hash_set.c: Likewise.
8592         * tests/test-linkedhash_set.c: Likewise.
8594 2018-12-08  Bruno Haible  <bruno@clisp.org>
8596         Fix comments.
8597         * lib/gl_list.h (gl_list_free): Clarify what it does.
8598         * lib/gl_oset.h (gl_oset_free): Likewise.
8599         * lib/gl_set.h (gl_set_free): Likewise.
8600         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Fix typo in comment.
8601         * lib/gl_array_oset.c (gl_array_search_atleast): Likewise.
8602         * lib/gl_anyavltree_list1.h (MAXHEIGHT): Likewise.
8603         * lib/gl_avltree_oset.c (MAXHEIGHT): Likewise.
8605 2018-12-03  Bruno Haible  <bruno@clisp.org>
8607         hash-set: Add tests.
8608         * tests/test-hash_set.c: New file.
8609         * modules/hash-set-tests: New file.
8611         linkedhash-set: Add tests.
8612         * tests/test-linkedhash_set.c: New file.
8613         * modules/linkedhash-set-tests: New file.
8615         array-set: Add tests.
8616         * tests/test-array_set.c: New file.
8617         * modules/array-set-tests: New file.
8619         xset: New module.
8620         * lib/gl_xset.h: New file.
8621         * lib/gl_xset.c: New file.
8622         * modules/xset: New file.
8624         hash-set: New module.
8625         * lib/gl_hash_set.h: New file.
8626         * lib/gl_hash_set.c: New file.
8627         * modules/hash-set: New file.
8629         linkedhash-set: New module.
8630         * lib/gl_linkedhash_set.h: New file.
8631         * lib/gl_linkedhash_set.c: New file.
8632         * lib/gl_anyhash_set1.h: New file, based on lib/gl_anyhash_list1.h.
8633         * lib/gl_anyhash_set2.h: New file, based on lib/gl_anyhash_list2.h.
8634         * lib/gl_anyhash_primes.h: New file, extracted from
8635         lib/gl_anyhash_list2.h.
8636         * lib/gl_anyhash_list2.h: Include it.
8637         (primes, next_prime): Remove definitions.
8638         * modules/linkedhash-set: New file.
8639         * modules/avltreehash-list (Files): Add lib/gl_anyhash_primes.h.
8640         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
8641         * modules/linkedhash-list (Files): Add lib/gl_anyhash_primes.h.
8642         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
8643         * modules/rbtreehash-list (Files): Add lib/gl_anyhash_primes.h.
8644         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
8646         array-set: New module.
8647         * lib/gl_array_set.h: New file.
8648         * lib/gl_array_set.c: New file.
8649         * modules/array-set: New file.
8651         set: New module.
8652         * lib/gl_set.h: New file.
8653         * lib/gl_set.c: New file.
8654         * lib/gl_oset.h (gl_setelement_dispose_fn): Avoid conflict with
8655         gl_set.h.
8656         * modules/set: New file.
8658 2018-12-07  Akim Demaille  <akim@lrde.epita.fr>
8660         bison: don't force the Yacc mode
8661         Passing -y forces Bison into POSIX YACC mode.  This includes reporting
8662         errors when Bison features are used in the grammar file.  Some of
8663         these features (such as %expect) were flagged non-yacc recently.  Most
8664         of the time, -y is actually used to please Automake's ylwrap which
8665         expects the output to be y.tab.c.
8666         * m4/bison.m4 (gl_BISON): Use `-o y.tab.c` rather than `-y`.
8668 2018-12-01  Bruno Haible  <bruno@clisp.org>
8670         gnupload: Document short options.
8671         * build-aux/gnupload (usage): Document the short options.
8673 2018-11-28  Ben Elliston  <bje@gnu.org>
8675         gnupload: Support option -h as alias of --help.
8676         * build-aux/gnupload: Support -h.
8678 2018-11-30  Paul Eggert  <eggert@cs.ucla.edu>
8680         memrchr: port better to clang
8681         * lib/memrchr.c (__memrchr): Cast to void * instead of to
8682         longword *, to pacify clang -Wcast-align (Bug#33544).
8684 2018-11-29  Eric Blake  <eblake@redhat.com>
8686         docs: mention printf %m considerations
8687         * doc/glibc-functions/asprintf.texi (asprintf): Document that %m
8688         is not portable, and is easy enough to work around.
8689         * doc/glibc-functions/obstack_printf.texi (obstack_printf): Likewise.
8690         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf): Likewise.
8691         * doc/glibc-functions/vasprintf.texi (vasprintf): Likewise.
8692         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
8693         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
8694         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
8695         * doc/posix-functions/printf.texi (printf): Likewise.
8696         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
8697         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
8698         * doc/posix-functions/swprintf.texi (swprintf): Likewise.
8699         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
8700         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
8701         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
8702         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
8703         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
8704         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
8705         * doc/posix-functions/vswprintf.texi (vswprintf): Likewise.
8706         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
8707         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
8709 2018-11-29  Akim Demaille  <akim@lrde.epita.fr>
8711         bitset: rename ebitset/expandable.* as tbitset/table.*
8712         See
8713         https://lists.gnu.org/archive/html/bug-gnulib/2018-11/msg00096.html.
8714         * lib/bitset/expandable.h, lib/bitset/expandable.c: Rename as...
8715         * lib/bitset/table.h, lib/bitset/table.c: these.
8716         Rename all the ebitset* symbols as tbitset*.
8717         Adjust dependencies.
8719 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
8721         bitset: check the operations
8722         * tests/test-bitset.c (bitset_random): New.
8723         Use it.
8724         * lib/bitset/expandable.c (ebitset_not): Fix typo.
8726 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
8728         bitset: properly use false/true instead of 0/1 for Booleans
8729         * lib/bitset/expandable.c, lib/bitset/vector.c: Use false/true, not
8730         0/1, as Booleans.
8732 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
8734         bitset: rename BITSET_VARRAY as BITSET_VECTOR
8735         For consistency with the name of the file.
8736         * doc/bitset.texi, lib/bitset.c, lib/bitset/base.h,
8737         * lib/bitset/stats.c, lib/bitset/vector.c
8738         (BITSET_VARRAY): Rename as...
8739         (BITSET_VECTOR): this.
8741 2018-11-28  Paul Eggert  <eggert@cs.ucla.edu>
8743         strerror_r-posix: memmove, not memcpy
8744         * lib/strerror_r.c (safe_copy): Use memmove, not memcpy,
8745         since the source and destination might overlap in the call
8746         ‘safe_copy (buf, buflen, strerror_r (errnum, buf, buflen))’.
8747         Simplify.
8749 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
8751         bitsetv: new module
8752         * lib/bitsetv.c, lib/bitsetv.h, modules/bitsetv: New.
8754 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
8756         bitset: add tests and doc
8757         First stabs at providing a documentation and test for the bitset
8758         module.
8759         * doc/bitset.texi, modules/test-bitset, tests/bitset-tests.c: New.
8761 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
8763         bitset: new module
8764         * lib/bitset.c, lib/bitset.h, lib/bitset/array.c,
8765         * lib/bitset/array.h, lib/bitset/base.h, lib/bitset/expandable.c,
8766         * lib/bitset/expandable.h, lib/bitset/list.c, lib/bitset/list.h,
8767         * lib/bitset/stats.c, lib/bitset/stats.h, lib/bitset/vector.c,
8768         * lib/bitset/vector.h, modules/bitset:
8769         New.
8771 2018-11-23  Bruno Haible  <bruno@clisp.org>
8773         localename: Fix gettext test failures on mingw.
8774         * lib/localename.c (gl_locale_name_posix): Convert the result of
8775         gl_locale_name_environ to XPG syntax.
8777 2018-11-23  Karl Berry  <karl@freefriends.org>
8779         * config/srclistvars.txt,
8780         * config/srclist.txt: remove all gettext references;
8781         the gettext maintainers will sync as needed.
8783 2018-11-21  Paul Eggert  <eggert@cs.ucla.edu>
8785         mktime: add libc-config dependency
8786         I missed this when we synced from glibc.
8787         * modules/mktime (Depends-on): Add libc-config.
8789 2018-11-13  Paul Eggert  <eggert@cs.ucla.edu>
8791         longlong: fix comment typo
8792         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Fix typo.
8794 2018-11-11  Bruno Haible  <bruno@clisp.org>
8796         havelib: Remove the need to include asm-underscore.m4.
8797         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI_32BIT): New macro.
8798         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use it instead of
8799         gl_HOST_CPU_C_ABI.
8800         * modules/havelib (Files): Add host-cpu-c-abi.m4.
8801         (Depends-on): Remove host-cpu-c-abi.
8803 2018-11-03  Paul Eggert  <eggert@cs.ucla.edu>
8805         parse-datetime: simplify test for mktime failure
8806         * lib/parse-datetime.y (mktime_ok): Simplify.
8807         Remove args TZ and T; no longer needed.  Callers changed.
8809         posixtm: simplify test for mktime failure
8810         * lib/posixtm.c (posixtime): Simplify.
8812         nstrftime: simplify test for mktime failure
8813         * lib/nstrftime.c (__strftime_internal): Simplify.
8815 2018-11-02  Paul Eggert  <eggert@cs.ucla.edu>
8817         gnulib-common.m4: port _Noreturn to C++
8818         Problem reported by Akim Demaille in:
8819         https://lists.gnu.org/r/bug-bison/2018-10/msg00067.html
8820         * m4/gnulib-common.m4 (gl_COMMON_BODY): If C++, use [[noreturn]].
8821         Merge adjustments from _Noreturn.h and from glibc into the non-C++
8822         version.
8823         * lib/_Noreturn.h: Match gnulib-common.
8825 2018-10-30  Bruno Haible  <bruno@clisp.org>
8827         gnu-make: Fix for NetBSD 8 'make'.
8828         Reported by Reuben Thomas in
8829         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00135.html>.
8830         * m4/gnu-make.m4 (gl_GNU_MAKE): Use a heuristic based on the --version
8831         output, ignoring exit codes.
8833 2018-10-28  Bernhard Voelker  <mail@bernhard-voelker.de>
8835         maintainer-makefile: fix syntax-check rule for "same.h"
8836         * top/maint.mk (sc_prohibit_same_without_use): Adjust regex to check
8837         for 'same_nameat', too.
8839 2018-10-25  Paul Eggert  <eggert@cs.ucla.edu>
8841         havelib: fix nested ‘configure’ chatter
8842         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Don’t nest
8843         AC_CACHE_CHECK calls, which resulted in confusing output like
8844         “checking for the common suffixes of directories in the library
8845         search path... checking for 64-bit host... no lib,lib”.
8847         backupfile: tweak for better code
8848         * lib/backupfile.c: Sort include directives, and remove
8849         unnecessary <limits.h> include.
8850         (FALLTHROUGH): New macro, copied from other modules.
8851         (backupfile_internal): Use it to avoid code duplication.
8852         This lets GCC 8.2.1 generate better code by inlining the
8853         call to check_extension.
8855 2018-10-23  Paul Eggert  <eggert@cs.ucla.edu>
8857         backupfile: new dir_fd args
8858         New module opendirat with code taken from fts.
8859         Use this module to let backupfile use a directory file descriptor.
8860         * NEWS: Document the incompatible change.
8861         * lib/backup-find.c (find_backup_file_name):
8862         * lib/backup-rename.c (backup_file_rename):
8863         New arg DIR_FD.
8864         * lib/backupfile.c: Include stdint.h, for SIZE_MAX.
8865         (SIZE_MAX): Remove.
8866         Include opendirat.h rather than dirent--.h.
8867         (check_extension): New args DIR_FD and BASE_MAX.  All callers changed.
8868         (numbered_backup): New args DIR_FD and PNEW_FD.  All callers changed.
8869         (backupfile_internal): New arg DIR_FD.  All callers changed.
8870         * lib/fts.c: Include opendirat.h.
8871         (opendirat): Move to opendirat.c.
8872         * lib/opendirat.c, lib/opendirat.h, modules/opendirat: New files.
8873         * modules/backupfile (Depends-on): Remove dirfd, opendir.
8874         Add opendirat.
8875         * modules/fts (Depends-on): Remove fdopendir, openat-safer.
8876         Add opendirat.
8878 2018-10-23  Bruno Haible  <bruno@clisp.org>
8880         localename: Simplify support for per-thread locales on Solaris 11.4.
8881         * m4/intl-thread-locale.m4: Renamed from m4/intlsolaris.m4.
8882         (gt_INTL_THREAD_LOCALE_NAME): Renamed from gt_INTL_SOLARIS. Define
8883         HAVE_SOLARIS114_LOCALES instead of HAVE_NAMELESS_LOCALES.
8884         * lib/localename.c: Handle HAVE_SOLARIS114_LOCALES through Solaris
8885         specific code.
8886         * lib/localename-table.h: Update comments.
8887         * lib/localename-table.c: Update comments.
8888         * m4/localename.m4 (gl_LOCALENAME): Require gt_INTL_THREAD_LOCALE_NAME.
8889         Test for 'uselocale'. Don't invoke gt_INTL_SOLARIS.
8890         * m4/intl.m4 (AM_INTL_SUBDIR): Require gt_INTL_THREAD_LOCALE_NAME. Test
8891         for 'uselocale'. Set HAVE_NAMELESS_LOCALES.
8892         (gt_INTL_SUBDIR_CORE): Don't invoke gt_INTL_SOLARIS. Don't set
8893         HAVE_NAMELESS_LOCALES here.
8894         * modules/localename (Files): Add m4/intl-thread-locale.m4. Remove
8895         m4/intlsolaris.m4.
8896         * modules/gettext (Files): Likewise.
8898 2018-10-22  Bruno Haible  <bruno@clisp.org>
8900         std-gnu11: Support Autoconf versions < 2.64.
8901         * m4/std-gnu11.m4 (AC_PROG_CC, AC_PROG_CXX): Use _AC_DO as fallback
8902         when _AC_DO_LIMIT does not exist.
8904 2018-10-22  Bruno Haible  <bruno@clisp.org>
8906         Assume Autoconf >= 2.63.
8907         * DEPENDENCIES: Mention the requirement.
8909         * gnulib-tool (DEFAULT_AUTOCONF_MINVERSION): Bump to 2.63.
8910         (func_get_filelist): Don't list m4/onceonly.m4 any more.
8911         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
8912         * m4/onceonly.m4: Remove file.
8914         * m4/openmp.m4: Remove file.
8915         * modules/openmp (Files): Remove m4/openmp.m4.
8917         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Don't set datarootdir, docdir,
8918         htmldir, dvidir, pdfdir, psdir, localedir.
8919         * m4/po.m4 (AM_PO_SUBDIRS): Don't set localedir.
8921         * m4/gnulib-common.m4 (m4_foreach_w): Remove fallback for
8922         Autoconf < 2.60.
8923         (AC_PROG_MKDIR_P): Remove definition for Autoconf < 2.62.
8924         (AC_PROG_SED): Remove fallback for Autoconf < 2.60.
8926         * m4/errno_h.m4 (AC_COMPUTE_INT): Remove fallback for Autoconf < 2.61.
8927         * m4/size_max.m4 (AC_COMPUTE_INT): Likewise.
8928         * m4/stdint.m4 (AC_COMPUTE_INT): Likewise.
8930         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Assume AC_USE_SYSTEM_EXTENSIONS
8931         exists.
8932         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Likewise,
8934         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Remove workaround for
8935         Autoconf < 2.61.
8937         * m4/lib-prefix.m4 (AC_LIB_ARG_WITH): Remove macro.
8938         (AC_LIB_PREFIX): Use AC_ARG_WITH, assuming semantics of
8939         Autoconf >= 2.52.
8941         * m4/longlong.m4: Require Autoconf >= 2.62. Update comments.
8942         * m4/ls-mntd-fs.m4: Require Autoconf >= 2.60. Update comments.
8943         * m4/gettext.m4 (AM_GNU_GETTEXT): Update comment.
8945 2018-10-22  Bruno Haible  <bruno@clisp.org>
8947         Assume Automake >= 1.11.
8948         * m4/configmake.m4: Update comments.
8949         * m4/lib-link.m4 (AC_LIB_RPATH): Assume AC_REQUIRE_AUX_FILE exists.
8950         * m4/po.m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Eliminate uses
8951         of 'eval'.
8952         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am,
8953         func_create_testdir, func_create_megatestdir): Emit a Makefile.am that
8954         requires Automake >= 1.11.
8956 2018-10-22  Bruno Haible  <bruno@clisp.org>
8958         localename: Fix typo in comment.
8959         * tests/test-locale-c++.cc (newlocale): Fix typo in comment.
8961 2018-10-22  Bruno Haible  <bruno@clisp.org>
8963         Fix failure of 'gnulib-tool --create-testdir' with all modules.
8964         * gnulib-tool (func_create_testdir): Exclude 'timevar' module.
8966 2018-10-21  Bruno Haible  <bruno@clisp.org>
8968         locale: Ease integration with GNU libintl.
8969         * lib/locale.in.h (GNULIB_defined_newlocale, GNULIB_defined_duplocale,
8970         GNULIB_defined_freelocale): New macros.
8972 2018-10-21  Bruno Haible  <bruno@clisp.org>
8974         localename: Fine-tune support for per-thread locales on Solaris 11.4.
8975         * lib/localename-table.h: New file, extracted from lib/localename.c.
8976         * lib/localename-table.c: Likewise.
8977         * lib/localename.c: Include localename-table.h.
8978         (get_locale_t_name, newlocale, duplocale, freelocale): Invoke
8979         locale_hash_function instead of pointer_hash.
8980         * modules/localename (Files): Add lib/localename-table.h,
8981         lib/localename-table.c.
8982         (lib_SOURCES): Add localename-table.c.
8983         * m4/intlsolaris.m4 (gt_INTL_SOLARIS): Require AC_CANONICAL_HOST. Test
8984         for Solaris 11.4 locale system only on Solaris. Test for it
8985         independently whether getlocalename_l exists.
8986         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Don't test for 'uselocale' and
8987         'getlocalename_l'. Instead, invoke gt_INTL_SOLARIS. Set
8988         HAVE_NAMELESS_LOCALES.
8989         * modules/gettext (Files): Add m4/intlsolaris.m4.
8991 2018-10-21  Bruno Haible  <bruno@clisp.org>
8993         Small update from gettext.
8994         * m4/intl.m4: Update from gettext:
8995         - 2018-01-02: Fix 'ar' invocation when cross-compiling and in 64-bit
8996         mode on AIX.
8997         - 2018-01-02: Don't use -lc explicitly when linking with libtool.
8998         - 2017-05-19: (AM_INTL_SUBDIR): Require AC_C_FLEXIBLE_ARRAY_MEMBER.
9000 2018-10-16  Bruno Haible  <bruno@clisp.org>
9002         mountlist: Remove support for Cray with UNICOS 9.
9003         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
9004         MOUNTED_LISTMNTENT.
9005         * lib/mountlist.c: Remove MOUNTED_LISTMNTENT case.
9007 2018-10-16  Bruno Haible  <bruno@clisp.org>
9009         fsusage, mountlist, getloadavg, getgroups: Remove support for Ultrix.
9010         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't define
9011         STAT_STATFS2_FS_DATA.
9012         * lib/fsusage.c: Remove STAT_STATFS2_FS_DATA case.
9013         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
9014         MOUNTED_GETMNT.
9015         * lib/mountlist.c: Remove MOUNTED_GETMNT case.
9016         * lib/getloadavg.c (decstation): Remove definition and case.
9017         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Mention NeXTstep, not Ultrix.
9018         * lib/getgroups.c: Likewise.
9019         * doc/posix-functions/getgroups.texi: Likewise.
9020         * lib/time.in.h: Update comments.
9022 2018-10-16  Bruno Haible  <bruno@clisp.org>
9024         getloadavg: Remove support for ConvexOS.
9025         * lib/getloadavg.c: Remove convex case.
9027 2018-10-16  Bruno Haible  <bruno@clisp.org>
9029         getloadavg: Remove support for Sony NEWS.
9030         * lib/getloadavg.c: Remove sony_news case.
9032 2018-10-16  Bruno Haible  <bruno@clisp.org>
9034         fsusage, mountlist, getloadavg: Remove support for Dynix/ptx.
9035         * lib/fsusage.c: Remove _SEQUENT_ case.
9036         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
9037         * lib/mountlist.c: Don't test for MNTTABNAME.
9038         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Don't test for libseq.
9039         (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't test for MNTTABNAME.
9040         * lib/getloadavg.c: Remove _SEQUENT_ and sequent cases.
9041         * lib/stat-size.h: Don't mention the Sequent bug.
9042         * doc/posix-functions/utime.texi: Don't mention the Dynix bug.
9044 2018-10-16  Bruno Haible  <bruno@clisp.org>
9046         fsusage: Remove support for AIX 3.
9047         * lib/fsusage.c: Remove code for AIX 3.
9048         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Update comments.
9050 2018-10-16  Bruno Haible  <bruno@clisp.org>
9052         fsusage, stat-size, getloadavg: Remove support for AIX PS/2.
9053         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for dustat.h.
9054         * lib/fsusage.c: Remove code for AIX PS/2.
9055         * lib/stat-size.h (ST_NBLOCKSIZE): Likewise.
9056         * lib/getloadavg.c: Likewise.
9058 2018-10-16  Bruno Haible  <bruno@clisp.org>
9060         getloadavg: Remove support for HP-UX on m68k.
9061         * lib/getloadavg.c: Remove hp9000s300 case.
9063 2018-10-16  Bruno Haible  <bruno@clisp.org>
9065         fsusage, mountlist: Remove support for DolphinOS (an SVR3 variant).
9066         * lib/fsusage.c: Remove DOLPHIN case.
9067         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
9068         * lib/mountlist.c: Remove MOUNTED_GETMNTTBL case.
9070 2018-10-16  Bruno Haible  <bruno@clisp.org>
9072         getloadavg: Remove support for Alliant FX/2800.
9073         * lib/getloadavg.c: Remove alliant case.
9075 2018-10-16  Bruno Haible  <bruno@clisp.org>
9077         getloadavg: Remove support for tek4300.
9078         * lib/getloadavg.c: Remove tek4300 case.
9080 2018-10-16  Bruno Haible  <bruno@clisp.org>
9082         getloadavg: Remove support for Ardent.
9083         * lib/getloadavg.c: Remove ardent case.
9085 2018-10-16  Bruno Haible  <bruno@clisp.org>
9087         mountlist: Remove support for SVR2.
9088         Reported by Andrew Borodin <aborodin@vmail.ru> in
9089         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00101.html>.
9090         * lib/mountlist.c: Remove MOUNTED_FREAD case.
9091         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
9092         MOUNTED_FREAD.
9094 2018-10-15  Paul Eggert  <eggert@cs.ucla.edu>
9096         libc-config: merge from glibc
9097         * lib/cdefs.h (__glibc_has_attribute): New macro.
9099         regex: depend on libc-config
9100         * modules/regex (Depends-on): Add libc-config.
9101         This is needed after the recent autoupdate from glibc.
9103 2018-10-14  Bruno Haible  <bruno@clisp.org>
9105         localename: Add support for per-thread locales on Solaris 11.4.
9106         * lib/locale.in.h (newlocale, freelocale): New declarations.
9107         (duplocale): Declare also when the 'localename' module requests it.
9108         * lib/localename.c (struniq_hash_node): Renamed from hash_node.
9109         (STRUNIQ_HASH_TABLE_SIZE): Renamed from HASH_TABLE_SIZE.
9110         (struniq): Update.
9111         (struct locale_categories_names, struct locale_hash_node): New types.
9112         (LOCALE_HASH_TABLE_SIZE): New constant.
9113         (locale_hash_table, locale_lock): New variables.
9114         (pointer_hash, get_locale_t_name): New functions.
9115         (newlocale, duplocale, freelocale): New overridden functions.
9116         (gl_locale_name_thread_unsafe): Use get_locale_t_name.
9117         * m4/intlsolaris.m4: New file.
9118         * m4/localename.m4 (gl_LOCALENAME): Require gl_LOCALE_H_DEFAULTS. Invoke
9119         gt_INTL_SOLARIS. Set HAVE_NEWLOCALE, HAVE_DUPLOCALE, HAVE_FREELOCALE,
9120         REPLACE_NEWLOCALE, REPLACE_DUPLOCALE, REPLACE_FREELOCALE.
9121         * m4/locale_h.m4 (gl_LOCALE_H): Test whether newlocale, freelocale are
9122         declared.
9123         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALENAME, HAVE_NEWLOCALE,
9124         HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
9125         * modules/locale (Makefile.am): Substitute GNULIB_LOCALENAME,
9126         HAVE_NEWLOCALE, HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
9127         * modules/localename (Files): Add intlsolaris.m4.
9128         (Depends-on): Add 'locale'.
9129         (configure.ac): Invoke gl_LOCALE_MODULE_INDICATOR.
9130         * tests/test-locale-c++.cc (newlocale, freelocale): Prepare for checking
9131         the signatures.
9133 2018-10-14  Akim Demaille  <akim@lrde.epita.fr>
9135         timevar: use gethrxtime to get wall clock time
9136         clock_gettime is not portable.  gethrxtime takes the best available
9137         option to get the wall clock time, including clock_gettime (monotonic
9138         clock), and gettime (non monotonic).
9139         Also, using xtime_t instead of float preserves the precision.
9140         Suggested by Bruno Haible.
9141         * lib/xtime.h (xtime_make): Handle overflows of nanoseconds.
9142         * modules/timevar (Depends-on): We need gethrxtime.
9143         We no longer use times().
9144         (Link): Update.
9145         * lib/timevar.h (timevar_time_def): Use xtime_t.
9146         * lib/timevar.c (set_to_current_time): Use gethrxtime.
9147         (timevar_print): Instead of checking whether the timings themselves
9148         are large enough for the timevar to be printed, check the percentages.
9150 2018-10-14  Bruno Haible  <bruno@clisp.org>
9152         wcsnrtombs: Work around Solaris 11.4 bug.
9153         * m4/wcsnrtombs.m4 (gl_WCSNRTOMBS_WORKS_IN_TRADITIONAL_LOCALE): New
9154         macro.
9155         (gl_FUNC_WCSNRTOMBS): Invoke it.
9156         * doc/posix-functions/wcsnrtombs.texi: Mention the Solaris bug.
9158 2018-10-14  Bruno Haible  <bruno@clisp.org>
9160         mbsnrtowcs: Work around Solaris 11.4 bug.
9161         * m4/mbsnrtowcs.m4 (gl_MBSNRTOWCS_WORKS_IN_TRADITIONAL_LOCALE): New
9162         macro.
9163         (gl_FUNC_MBSNRTOWCS): Invoke it.
9164         * doc/posix-functions/mbsnrtowcs.texi: Mention the Solaris bug.
9166 2018-10-14  Bruno Haible  <bruno@clisp.org>
9168         doc: Update for Solaris 11.4.
9169         * doc/**/*.texi: For bugs that exist in both Solaris 11.3 and 11.4,
9170         mention Solaris 11.4.
9171         * m4/printf.m4: Update comments about Solaris.
9172         * m4/log.m4: Likewise.
9173         * m4/log10.m4: Likewise.
9174         * m4/logb.m4: Likewise.
9175         * m4/logbf.m4: Likewise.
9176         * m4/logbl.m4: Likewise.
9177         * m4/rename.m4: Likewise.
9178         * m4/wcrtomb.m4: Likewise.
9179         * m4/hostent.m4: Likewise.
9180         * m4/servent.m4: Likewise.
9182 2018-10-14  Bruno Haible  <bruno@clisp.org>
9184         floor, ceil, trunc, truncf, truncl: Defeat GCC optimizations.
9185         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Use 'floor' also through a function
9186         pointer.
9187         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use 'ceil' also through a function
9188         pointer.
9189         * m4/trunc.m4 (gl_FUNC_TRUNC): Use 'trunc' also through a function
9190         pointer.
9191         * m4/truncf.m4 (gl_FUNC_TRUNCF): Use 'truncf' also through a function
9192         pointer.
9193         * m4/truncl.m4 (gl_FUNC_TRUNCL): Use 'truncl' also through a function
9194         pointer.
9196 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
9198         bootstrap: fix wget command for po files.
9199         * build-aux/bootstrap (po_download_command_format): Fix comment,
9200         and adjust callers.
9202 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
9204         timevar: improve the output format
9205         Suggested by Bruno Haible.
9206         See https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00040.html.
9207         * lib/timevar.c (timevar_print): Use %7.3f for usr/sys and %11.6f for
9208         wall, since its resolution is much higher.
9210 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
9212         timevar: expect that getrusage is available.
9213         Don't keep both times and getrusage as backend: both are guaranteed by
9214         gnulib, a single one suffices.  Using getrusage is open to possibly
9215         tracking other types of resources in the future.
9216         * modules/timevar (Depends-on): Add getrusage.
9217         (configure.ac): Remove gl_TIMEVAR.
9218         (Files): Remove m4/timevar.m4.
9219         * m4/timevar.m4: Remove, rely on gnulib for getrusage.
9220         * lib/timevar.h (timevar_enabled): Clarify documentation.
9221         * lib/timevar.c: Remove all the code about times.
9222         Remove all the CPP guards about getrusage: expect it to be present
9223         (courtesy of gnulib).
9225 2018-10-12  Bruno Haible  <bruno@clisp.org>
9227         mountlist: Improve support for Solaris in 64-bit mode.
9228         Reported by David Wood <David.Wood@deshaw.com> in
9229         <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=6816>.
9230         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): On Solaris 8 or
9231         newer, define MOUNTED_GETEXTMNTENT instead of MOUNTED_GETMNTENT2.
9232         * lib/mountlist.c: Add code for MOUNTED_GETEXTMNTENT case.
9234 2018-10-12  Bruno Haible  <bruno@clisp.org>
9236         mountlist: Add support for Minix.
9237         Reported by Assaf Gordon in
9238         <https://lists.gnu.org/archive/html/bug-gnulib/2014-09/msg00074.html>.
9239         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use
9240         AC_CHECK_FUNCS to check for 'getmntinfo'.
9241         * lib/mountlist.c: Update comments.
9243 2018-10-12  Bruno Haible  <bruno@clisp.org>
9245         Make better use of Autoconf.
9246         * m4/environ.m4: Use AC_CACHE_CHECK where possible.
9247         * m4/manywarnings.m4: Likewise.
9248         * m4/manywarnings-c++.m4: Likewise.
9249         * m4/socklen.m4: Likewise.
9250         * m4/sockpfaf.m4: Likewise.
9251         * m4/stdarg.m4: Likewise.
9252         * m4/visibility.m4: Likewise.
9253         * m4/fsusage.m4: Use AC_CACHE_CHECK where possible. Modernize
9254         indentation.
9255         * m4/ls-mntd-fs.m4: Likewise.
9257 2018-10-11  Bruno Haible  <bruno@clisp.org>
9259         mountlist: Modernize platform lists.
9260         * m4/ls-mntd-fs.m4: Clarify which MOUNTED_* symbol applies to which
9261         platforms, deemphasizing the obsolete ones.
9262         * lib/mountlist.c: Likewise.
9264 2018-10-11  Bruno Haible  <bruno@clisp.org>
9266         getprogname: Add support for 32-bit programs on HP-UX.
9267         * lib/getprogname.c (getprogname) [HP-UX]: If pstat_getproc fails,
9268         try the similar functions 32-bit programs on 64-bit HP-UX.
9270 2018-10-11  Bruno Haible  <bruno@clisp.org>
9272         getprogname: Work around program name truncation when possible.
9273         * lib/getprogname.c (getprogname) [HP-UX]: When pst_ucomm is truncated,
9274         possibly use pst_cmd instead.
9276 2018-10-08  Paul Eggert  <eggert@cs.ucla.edu>
9278         fts: cleanup after FTS_NOATIME removal
9279         * lib/fts_.h (FTS_VERBATIM, FTS_OPTIONMASK, FTS_NAMEONLY)
9280         (FTS_STOP): Shrink to minimal values.  We don’t need to
9281         worry about binary compatibility in Gnulib, and the old way
9282         of doing things had a hole in the user options that caused
9283         FTS_OPTIONMASK to not work as desired.
9285 2018-10-08  Bernhard Voelker  <mail@bernhard-voelker.de>
9287         fts: remove FTS_NOATIME
9288         This reverts commit da4d6974013c822af1498941e32db774b2031765.
9289         We cannot guarantee that O_NOATIME works: e.g. openat fails
9290         with EPERM if the effective user ID of the caller does not match
9291         the owner of the file and the caller is not privileged.
9292         Downstream findutils has never picked up FTS_NOATIME.  Discussed at
9293         <https://lists.gnu.org/r/bug-gnulib/2018-09/msg00122.html>.
9294         * lib/fts_.h (FTS_NOATIME): Remove bit flag.
9295         (FTS_OPTIONMASK): Adjust.
9296         * lib/fts.c (diropen, fts_open, fts_build): Likewise.
9297         (fd_ring_check): Likewise.
9299 2018-10-08  Bruno Haible  <bruno@clisp.org>
9301         csharpcomp*, csharpexec*: Remove support for pnet.
9302         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Don't test for cscc. Don't set
9303         HAVE_CSCC.
9304         * build-aux/csharpcomp.sh.in (options_cscc): Remove variable.
9305         Don't test HAVE_CSCC.
9306         * lib/csharpcomp.c (compile_csharp_using_pnet): Remove function.
9307         (compile_csharp_class): Don't invoke it.
9308         * m4/csharpexec.m4 (gt_CSHARPEXEC): Don't test for ilrun. Don't set
9309         HAVE_ILRUN.
9310         * build-aux/csharpexec.sh.in (options_ilrun): Remove variable.
9311         Don't test HAVE_ILRUN.
9312         * lib/csharpexec.c (execute_csharp_using_pnet): Remove function.
9313         (execute_csharp_program): Don't invoke it.
9314         * m4/csharp.m4 (gt_CSHARP_CHOICE): Don't recognize --enable-csharp=pnet
9315         any more.
9317 2018-10-07  Andreas Henriksson  <andreas@fatal.se>  (tiny change)
9319         renameatu: prefer renameat2 to syscall
9320         * lib/renameatu.c (renameatu) [HAVE_RENAMEAT2]:
9321         Use renameat2 instead of syscall (Bug#32796).
9322         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Check for renameat2.
9324 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
9326         bootstrap, gnulib-tool: use https instead of insecure rsync
9327         * build-aux/bootstrap (download_po_files, po_download_command_format):
9328         Don't try using rsync; always use wget over https to fetch PO files.
9329         * gnulib-tool (func_import): Likewise.
9330         * pygnulib/GLImport.py (GLImport.execute): Likewise.
9332 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
9334         bootstrap, gnulib-tool: correct the translations wget command
9335         * build-aux/bootstrap (po_download_command_format2): Restrict
9336         recursion to a single level.
9337         * gnulib-tool (func_import): Likewise.
9338         * pygnulib/GLImport.py (GLImport.execute): Likewise.
9340 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
9342         doc: the gnulib snapshots are not maintained
9343         * doc/gnulib-intro.texi (Steady Development): Don't mention them.
9345 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
9347         timevar: add to lib_SOURCES
9348         * modules/timevar (lib_SOURCES): Add timevar.c and timevar.def.
9350 2018-10-07  Bruno Haible  <bruno@clisp.org>
9352         dirent: Update documentation.
9353         * doc/posix-headers/dirent.texi: The MSVC issue is fixed by Gnulib.
9355 2018-10-05  Bruno Haible  <bruno@clisp.org>
9357         strpbrk: Make it possible to namespace the defined symbol.
9358         * lib/strpbrk.c (strpbrk): Don't undefine outside of glibc.
9360 2018-10-05  Bruno Haible  <bruno@clisp.org>
9362         strcspn: Make it possible to namespace the defined symbol.
9363         * lib/strcspn.c (strcspn): Don't undefine outside of glibc.
9365 2018-10-05  Bruno Haible  <bruno@clisp.org>
9367         raise: Make it possible to namespace the defined symbol.
9368         * lib/raise.c (raise): Undefine only after the replacement function has
9369         been defined.
9370         (raise): Renamed from rpl_raise.
9371         (raise_nothrow): Move to the end of the compilation unit.
9373 2018-10-05  Bruno Haible  <bruno@clisp.org>
9375         memcmp: Make it possible to namespace the defined symbol.
9376         * lib/memcmp.c (memcmp): Don't undefine outside of glibc.
9378 2018-10-05  Bruno Haible  <bruno@clisp.org>
9380         explicit_bzero: Make it possible to namespace the defined symbol.
9381         * lib/explicit_bzero.c (explicit_bzero): Don't undefine outside of
9382         glibc.
9384 2018-10-05  Bruno Haible  <bruno@clisp.org>
9386         mkdir-p: Depend on 'mkdir'.
9387         * modules/mkdir-p (Depends-on): Add 'mkdir'.
9389 2018-10-05  Bruno Haible  <bruno@clisp.org>
9391         tempname: Depend on 'mkdir'.
9392         Reported by Maarten Bosmans <mkbosmans@gmail.com>
9393         at <https://savannah.gnu.org/bugs/?33379>.
9394         * modules/tempname (Depends-on): Add 'mkdir'.
9396 2018-10-05  Akim Demaille  <akim@lrde.epita.fr>
9398         timevar: rely on gnulib modules for time portability.
9399         * modules/timevar (Depends-on): Add sys_time, sys_times, and times.
9400         * m4/timevar.m4: Don't check for clock_t and struct tms,
9401         guaranteed by gnulib.
9402         * lib/timevar.h: Use extern "C" protection.
9403         Include <stdio.h> for FILE.
9404         * lib/timevar.c: Include sys/time.h, sys/times.h unconditionally,
9405         they are guaranteed by gnulib.
9406         Remove uses of clock as (now useless) fallback.
9408 2018-10-04  Bruno Haible  <bruno@clisp.org>
9410         sh-filename: New module.
9411         * m4/sh-filename.m4: New file.
9412         * modules/sh-filename: New file.
9413         * lib/spawni.c (_PATH_BSHELL): Use BOURNE_SHELL instead of hardcoding
9414         "/bin/sh".
9415         * tests/test-posix_spawn1.c (main): Likewise.
9416         * tests/test-posix_spawn2.c (main): Likewise.
9417         * lib/javacomp.c (compile_using_envjavac, is_envjavac_gcj,
9418         is_envjavac_gcj43): Likewise.
9419         * lib/javaexec.c (execute_java_class): Likewise.
9420         * modules/posix_spawn-internal (Depends-on): Add sh-filename.
9421         * modules/posix_spawnp-tests (Depends-on): Likewise.
9422         * modules/javacomp (Depends-on): Likewise.
9423         * modules/javaexec (Depends-on): Likewise.
9425 2018-10-04  Bruno Haible  <bruno@clisp.org>
9427         spawn-pipe tests: Avoid test failure on native Windows.
9428         * tests/test-spawn-pipe-child.c (main): On native Windows, don't expect
9429         that fd 2 is closed.
9431 2018-10-04  Bruno Haible  <bruno@clisp.org>
9433         fcntl: Make it possible to namespace the defined symbol.
9434         * lib/fcntl.c (fcntl): Undefine only after the replacement function has
9435         been defined.
9436         (fcntl): Renamed from rpl_fcntl.
9437         (rpl_fcntl_DUPFD, rpl_fcntl_DUPFD_CLOEXEC): New functions, extracted
9438         from fcntl.
9439         (klibc_fcntl): Move to the end of the compilation unit.
9441 2018-10-02  Bruno Haible  <bruno@clisp.org>
9443         vasnprintf tests: Avoid test failure on HP-UX/hppa and IRIX.
9444         * tests/test-vasnprintf.c (test_function): Change the test added on
9445         2018-09-23 to check only the 18 most significant digits.
9447         vasnprintf tests: Avoid test failure on Cygwin.
9448         * tests/test-vasnprintf.c (test_function): Change the test added on
9449         2018-09-23 to check only the 42 most significant digits.
9451 2018-10-01  Bruno Haible  <bruno@clisp.org>
9453         mkostemp, mkostemps: Update documentation.
9454         * doc/glibc-functions/mkostemp.texi: Mention the Mac OS X issue.
9455         * doc/glibc-functions/mkostemps.texi: Likewise.
9457 2018-10-01  Tom Tromey  <tom@tromey.com>
9459         mkostemp, mkostemps: Fix compilation error in C++ mode on Mac OS X.
9460         * lib/stdlib.in.h: Include <unistd.h> for mkostemp and mkostemps
9461         on OS X.
9463 2018-09-30  Pádraig Brady  <P@draigBrady.com>
9465         hmac-*: refactor to remove repetitive code
9466         * lib/hmac.c: A new parameterized single implementation.
9467         * lib/hmac-md5.c: Define parameters and include implementation.
9468         * lib/hmac-sha1.c: Likewise.
9469         * lib/hmac-sha256.c: Likewise.
9470         * lib/hmac-sha512.c: Likewise.
9471         * modules/crypto/hmac-md5: Reference the new implementation file.
9472         * modules/crypto/hmac-sha1: Likewise.
9473         * modules/crypto/hmac-sha256: Likewise.
9474         * modules/crypto/hmac-sha512: Likewise.
9475         * tests/test-hmac-md5.c: Refactor common code to a single function.
9476         * tests/test-hmac-sha1.c: Likewise.
9477         * tests/test-hmac-sha256.c: Likewise.
9478         * tests/test-hmac-sha512.c: Likewise.
9480 2018-09-30  Zhang Qing  <zhangqingl@126.com>
9482         hmac-sha512: fix hash for keys > blocksize (128 bytes)
9483         * lib/hmac-sha512.c (hmac_sha512): Set the computed/shortened
9484         key length to that output by sha512, not the blocksize.
9485         Otherwise uninitialized data from the stack
9486         is used when computing the hash.
9487         * tests/test-hmac-sha512.c: Add a shortened key test case.
9488         Reported at https://github.com/coreutils/gnulib/pull/5
9490 2018-09-30  Bruno Haible  <bruno@clisp.org>
9492         vasnprintf: Avoid warnings from GCC's -Wsign-compare.
9493         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is> in
9494         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00105.html>.
9495         * lib/vasnprintf.c (VASNPRINTF): Cast 'count' from 'int' to
9496         'unsigned int' before comparison with an unsigned value.
9498 2018-09-30  Bruno Haible  <bruno@clisp.org>
9500         grantpt: Remove unnecessary dependency.
9501         * modules/grantpt (Depends-on): Remove 'builtin-expect'.
9503 2018-09-30  Bruno Haible  <bruno@clisp.org>
9505         timevar: Small tweaks.
9506         * lib/timevar.h: Fix comments. Add parameter names to function
9507         declarations.
9508         * lib/timevar.c: Include timevar.h immediately after config.h.
9509         * lib/timevar.def: Fix comments.
9510         * modules/timevar (Maintainer): List Akim Demaille.
9512 2018-09-30  Bruno Haible  <bruno@clisp.org>
9514         timevar: Include documentation in gnulib manual.
9515         * doc/timevar.texi: Change node and section name to 'Profiling of
9516         program phases'.
9517         In the code snippets, tweak the #includes and use GNU coding style.
9518         * doc/gnulib.texi: Include timevar.texi.
9520 2018-09-27  Akim Demaille  <akim@lrde.epita.fr>
9522         timevar: import from Bison.
9523         * m4/timevar.m4, modules/timevar, lib/timevar.h, lib/timevar.c:
9524         New files.
9525         * lib/timevar.def: New file.
9526         * doc/timevar.texi: New file.
9528 2018-09-26  Bruno Haible  <bruno@clisp.org>
9530         javacomp-script, javacomp: Add preliminary support for Java 12..17.
9531         * m4/javacomp.m4 (gt_JAVACOMP): Treat Java versions 12..17 like 11.
9532         * lib/javacomp.c (default_target_version): Likewise.
9534 2018-09-26  Bruno Haible  <bruno@clisp.org>
9536         javacomp-script, javacomp: Add support for Java 11.
9537         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 11 and
9538         target-version 11.
9539         * lib/javaversion.h: Update comments.
9540         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
9541         source_version_index, get_goodcode_snippet, get_failcode_snippet,
9542         TARGET_VERSION_BOUND, target_version_index,
9543         corresponding_classfile_version): Accept source_version 11 and
9544         target_version 11.
9545         * lib/javacomp.h: Update comments accordingly.
9547 2018-09-23  Bruno Haible  <bruno@clisp.org>
9549         vasnprintf: Fix heap memory overrun bug.
9550         Reported by Ben Pfaff <blp@cs.stanford.edu> in
9551         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00107.html>.
9552         * lib/vasnprintf.c (convert_to_decimal): Allocate one more byte of
9553         memory.
9554         * tests/test-vasnprintf.c (test_function): Add another test.
9556 2018-09-19  Paul Eggert  <eggert@cs.ucla.edu>
9558         maint: mktime.c now shared with glibc
9559         * config/srclist.txt: intprops.h, timegm.c and mktime.c
9560         are now the same in Gnulib and glibc.
9562         mktime: fix _LIBC typo
9563         * lib/mktime.c (mktime): Fix typo (misspelled "_LIBC").
9565 2018-09-19  Norihiro Tanaka  <noritnk@kcn.ne.jp>
9567         dfa: optimization for state merge
9568         * lib/dfa.c (merge2): New function.
9569         (merge_nfa_state): Use it.
9571 2018-09-18  Jim Meyering  <meyering@fb.com>
9573         dfa: trivial comment fix: s/is/if/
9574         * lib/dfa.c (maybe_disable_superset_dfa): Fix comment typo.
9576 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
9578         dfa: use more-informative function name
9579         * lib/dfa.c (maybe_disable_superset_dfa):
9580         Rename from dfautf8noss.  Use change.
9582         dfa: tweak allocation performance
9583         * lib/dfa.c (merge_nfa_state, dfaoptimize):
9584         Prefer ptrdiff_t for indexes some more.
9585         Use char for flags, as it’s wide enough.
9586         Allocate queue and flags together, with one malloc call.
9587         No need to use xnmalloc since the multiplication and
9588         addition cannot overflow (it’s already been checked by
9589         earlier allocation).  Prefer memset to open-coding.
9591         dfa: prune states as we go
9592         * lib/dfa.c (prune): Remove.
9593         dfa: reorder enum for efficiency
9594         (merge_nfa_state): Prune as we go instead of at the end.
9595         Prefer ptrdiff_t for indexes, as this helps the compiler a bit.
9597         * lib/dfa.c (END): Now -1 again.  Reorder other elements
9598         of the enumeration to make it easier for GCC to generate
9599         efficient code by using fewer comparisons to check for
9600         ranges of values.
9601         (atom): Take advantage of the reordering.
9603 2018-09-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
9605         dfa: optimize alternation in NFA
9606         Even when similar states exist in alternation, the DFA treats them
9607         as separate items, which may complicate the transition in NFA and
9608         cause slowdown.  This change assembles the states into one.  For
9609         example, ab|ac is changed into a(b|c).  This change speeds-up
9610         matching for many branched patterns.  For example, grep speeds up
9611         more than 30× in:
9613           seq 10000 | sed 's/$/ abcdefghijklmnopqrstuvwxyz/; s/$/./' >in
9614           time -p env LC_ALL=C grep -vf in in
9616         * lib/dfa.c (prune): New function.
9617         (merge_nfa_state): New function.  It merges similar NFA states.
9618         (dfaoptimize): New function.  It seeks merged and removed nodes.
9619         (dfaanalyze): Call new function.
9620         (dfautf8noss): Change name from dfaoptimize because of addition of new
9621         function.
9622         (dfacomp): Update caller.
9624         dfa: simplify initial state
9625         Simplifying the initial state enables easier optimization of the NFA.
9626         * lib/dfa.c (enum token): Add new element BEG.
9627         (prtok): Adjust due to adding element BEG.
9628         (dfaparse): Put BEG at a head of tokens.
9629         (state_index): Adjust due to adding element BEG.
9630         (dfaanalyze): Concatenate BEG to other tokens, and simplify to
9631         build initial state.
9632         (dfamust): Adjust due to adding element BEG.  DFAMUST ignores it.
9634 2018-09-18  Bruno Haible  <bruno@clisp.org>
9636         file-has-acl: Fix test failure on Cygwin 2.9.
9637         * m4/acl.m4 (gl_FUNC_ACL): Update comments regarding Cygwin.
9638         * lib/acl-internal.h: Likewise.
9639         (HAVE_ACL_EXTENDED_FILE): Undefine on Cygwin.
9640         * lib/acl-internal.c: Update comments regarding Cygwin.
9641         * lib/acl_entries.c: Likewise.
9642         * lib/file-has-acl.c: Likewise.
9643         (file_has_acl): For Cygwin, use a different way to determine whether
9644         the "default" ACL of a directory is nontrivial.
9645         * lib/get-permissions.c: Update comments regarding Cygwin.
9646         * lib/set-permissions.c: Likewise.
9648 2018-09-18  Bruno Haible  <bruno@clisp.org>
9650         stat-time tests: Fix test failure on Cygwin.
9651         * tests/nap.h (nap_get_stat): Treat Cygwin like native Windows.
9653 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
9655         doc: OS X 10.11 lacked ns time functions
9656         According to <https://github.com/zeromq/libzmq/issues/2175>,
9657         nanosecond-resolution timestamp functions were introduced
9658         in macOS 10.12, so document the last version (OS X 10.11)
9659         where they were absent.
9661         gettime: nanotime never existed
9662         Problem reported by Bruno Haible in:
9663         https://lists.gnu.org/r/bug-gnulib/2018-09/msg00082.html
9664         * lib/gettime.c (gettime) [HAVE_NANOTIME]: Remove unused code.
9665         * m4/gettime.m4 (gl_GETTIME): Don’t check for nanotime.
9667 2018-09-18  Bruno Haible  <bruno@clisp.org>
9669         doc: Update statement about target platforms.
9670         Reported by Simon Sobisch.
9671         * doc/gnulib-intro.texi (Target Platforms): Update. Mention
9672         restrictions on MSVC versions.
9674 2018-09-18  Bruno Haible  <bruno@clisp.org>
9676         posix_spawn tests: Fix link error on 64-bit Cygwin.
9677         * tests/test-posix_spawn1.c (environ): Remove declaration.
9678         * tests/test-posix_spawn2.c (environ): Likewise.
9679         * tests/test-posix_spawn3.c (environ): Likewise.
9680         * tests/test-posix_spawn4.c (environ): Likewise.
9681         * modules/posix_spawn-tests (Depends-on): Add 'environ'.
9682         * modules/posix_spawnp-tests (Depends-on): Likewise.
9684 2018-09-16  Paul Eggert  <eggert@cs.ucla.edu>
9686         timespec: new function current_timespec
9687         * lib/gettime.c (gettime): Prefer clock_gettime to nanotime,
9688         and don’t worry about it failing on a CLOCK_REALTIME arg.
9689         POSIX requires it to succeed and I don’t know of any
9690         counterexamples where the fallbacks would work.
9691         (current_timespec): New function, taken from Emacs.  It is more
9692         convenient than gettime, and can help register allocation.
9693         * lib/timespec.h: Include arg-nonnull.h.
9694         (current_timespec): New declaration.
9695         (gettime, settime): Declare args to be nonnull.
9696         * modules/timespec (Depends-on): Add snippet/arg-nonnull.
9698 2018-09-16  Bruno Haible  <bruno@clisp.org>
9700         setlocale: Improve locale handling on macOS 10.12 or newer.
9701         * lib/setlocale.c: Include header files for CoreFoundation. Declare
9702         gl_locale_name_canonicalize.
9703         (libintl_setlocale): Try harder to set a locale for categories LC_CTYPE
9704         and LC_MESSAGES.
9705         * m4/setlocale.m4 (gl_PREREQ_SETLOCALE): Add comment.
9707 2018-09-16  Bruno Haible  <bruno@clisp.org>
9709         Update list of locale names with scripts on macOS.
9710         * lib/localename.c (gl_locale_name_canonicalize): Update tables to
9711         match Mac OS X 10.13 and recent glibc.
9713 2018-09-16  Bruno Haible  <bruno@clisp.org>
9715         gettext: Use newer macOS APIs when possible.
9716         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Check for
9717         CFLocaleCopyPreferredLanguages.
9719 2018-09-16  Bruno Haible  <bruno@clisp.org>
9721         localename: Revisit macOS specific code.
9722         * lib/localename.c (gl_locale_name_default): Reduce code duplication.
9723         Fix comments about Mac OS X versions.
9725 2018-09-15  Bruno Haible  <bruno@clisp.org>
9727         setlocale: Improve support for locales not supported by libc.
9728         Reported by Dapeng Gao <peter@dpgao.cc> at
9729         <https://savannah.gnu.org/bugs/?54479>.
9730         * gettext-runtime/intl/setlocale.c: Include <stdio.h>.
9731         (libintl_setlocale): Use a more error-tolerant strategy when the locale
9732         to be set is not supported by libc: Emit warnings instead of failing.
9734 2018-09-15  Bruno Haible  <bruno@clisp.org>
9736         strstr, strcasestr: Add workaround against glibc-2.28 bug.
9737         Reported by Michael Brunnbauer via Siddhesh Poyarekar and Eric Blake.
9738         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Set
9739         gl_cv_func_strstr_works_always to 'no' on glibc 2.28.
9740         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Set
9741         gl_cv_func_strcasestr_works_always to 'no' on glibc 2.28.
9742         * doc/posix-functions/strstr.texi: Document the glibc 2.28 bug.
9743         * doc/glibc-functions/strcasestr.texi: Likewise.
9745 2018-09-14  Bruno Haible  <bruno@clisp.org>
9747         doc: Fix bottom of top-level page.
9748         Reported by Akim Demaille <akim.demaille@gmail.com> in
9749         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00072.html>.
9750         * doc/pastposix-functions/index.texi: Rename node to '_index' in HTML
9751         mode.
9752         * doc/gnulib.texi (Legacy Function Substitutes): Update menu
9753         accordingly.
9755 2018-09-12  Bruno Haible  <bruno@clisp.org>
9757         Add test case from a recent glibc bug.
9758         * tests/test-strstr.c (main): Add test of long needle.
9759         * tests/test-strcasestr.c (main): Likewise.
9760         * tests/test-c-strstr.c (main): Likewise.
9761         * tests/test-c-strcasestr.c (main): Likewise.
9762         * tests/test-memmem.c (main): Likewise.
9764 2018-09-12  Bruno Haible  <bruno@clisp.org>
9766         Apply Eric Blake's improvements from 2011-02-25 to more tests.
9767         * tests/test-c-strstr.c (main): Add the same tests here as well.
9769 2018-09-12  Bruno Haible  <bruno@clisp.org>
9771         Apply Jim Meyering's fix from 2015-01-11 to more tests.
9772         * tests/test-memmem.c (main): Free haystack.
9773         * tests/test-strcasestr.c (main): Likewise.
9774         * tests/test-c-strcasestr.c (main): Likewise.
9776 2018-09-11  Paul Eggert  <eggert@cs.ucla.edu>
9778         xstrtol: fix missing-TYPE_SIGNED typo
9779         * lib/xstrtol.c (TYPE_SIGNED): New macro, duplicating intprops.h.
9781 2018-09-10  Paul Eggert  <eggert@cs.ucla.edu>
9783         timespec: fix resolution confusion
9784         In normal usage, clock resolution is given in seconds, but the
9785         code was mistakenly using inverse seconds and calling it
9786         “resolution”.  Fix this, partly by renaming two identifiers.
9787         The old names will be kept for a bit, to ease transition.
9788         * lib/timespec.h (TIMESPEC_HZ, LOG10_TIMESPEC_HZ):
9789         New constants, replacing TIMESPEC_RESOLUTION and
9790         LOG10_TIMESPEC_RESOLUTION, which are now obsolescent.
9791         All uses changed.
9793 2018-09-09  Paul Eggert  <eggert@cs.ucla.edu>
9795         mktime: simplify in prep for glibc merge
9796         * lib/mktime.c, lib/timegm.c [_LIBC]:
9797         Include mktime-internal.h (a small file just for glibc)
9798         instead of using a typedef.
9800 2018-09-07  Paul Eggert  <eggert@cs.ucla.edu>
9802         intprops: minor clarification of code
9803         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW):
9804         Use _GL_INT_CONVERT rather than reinventing it.
9806 2018-09-07  Bruno Haible  <bruno@clisp.org>
9808         Fix a comment.
9809         * tests/test-posix_spawn3.c (parent_main): Fix typo in comment.
9811 2018-09-07  Bruno Haible  <bruno@clisp.org>
9813         posix_spawn_file_actions_addchdir: Add tests.
9814         * tests/test-posix_spawn_file_actions_addchdir.c: New file.
9815         * tests/test-posix_spawn4.c: New file.
9816         * modules/posix_spawn_file_actions_addchdir-tests: New file.
9818 2018-09-07  Bruno Haible  <bruno@clisp.org>
9820         posix_spawn_file_actions_addchdir: New module.
9821         Suggested by Eric Blake in
9822         <https://lists.gnu.org/archive/html/bug-findutils/2018-09/msg00007.html>.
9823         * lib/spawn.in.h (posix_spawn_file_actions_addchdir): New declaration.
9824         * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_chdir' and
9825         union member 'chdir_action'.
9826         * lib/spawn_faction_addchdir.c: New file.
9827         * lib/spawni.c (__spawni): Implement the spawn_do_chdir action.
9828         * lib/spawn_faction_addclose.c: Test REPLACE_POSIX_SPAWN instead of
9829         HAVE_WORKING_POSIX_SPAWN.
9830         * lib/spawn_faction_adddup2.c: Likewise.
9831         * lib/spawn_faction_addopen.c: Likewise.
9832         * m4/posix_spawn_faction_addchdir.m4: New file.
9833         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
9834         'posix_spawn_file_actions_addchdir' is present and whether
9835         posix_spawn_file_actions_addchdir_np exists. Define REPLACE_POSIX_SPAWN
9836         instead of HAVE_WORKING_POSIX_SPAWN.
9837         * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
9838         posix_spawn_file_actions_addchdir is declared.
9839         (gl_SPAWN_H_DEFAULTS): Initialize
9840         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
9841         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
9842         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
9843         * modules/spawn (Makefile.am): Substitute
9844         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
9845         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
9846         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
9847         * modules/posix_spawn_file_actions_addchdir: New file.
9848         * modules/posix_spawn_file_actions_addclose (Depends-on,
9849         configure.ac): Test also REPLACE_POSIX_SPAWN.
9850         * modules/posix_spawn_file_actions_adddup2 (Depends-on,
9851         configure.ac): Likewise.
9852         * modules/posix_spawn_file_actions_addopen (Depends-on,
9853         configure.ac): Likewise.
9854         * tests/test-spawn-c++.cc (posix_spawn_file_actions_addchdir): Check
9855         signature.
9856         * doc/posix-functions/posix_spawn.texi: Mention the new module.
9857         * doc/posix-functions/posix_spawnp.texi: Likewise.
9859 2018-09-06  Bruno Haible  <bruno@clisp.org>
9861         stddef: Override max_align_t on NetBSD 8.0/x86.
9862         * m4/stddef_h.m4 (gl_STDDEF_H): When testing for max_align_t, test also
9863         the value of __alignof__ (max_align_t).
9864         * doc/posix-headers/stddef.texi: Mention the issue.
9866 2018-09-06  Bruno Haible  <bruno@clisp.org>
9868         fcntl: Fix F_DUPFD_CLOEXEC behaviour on Haiku.
9869         * lib/fcntl.c (rpl_fcntl): For F_DUPFD_CLOEXEC, don't even try the
9870         system fcntl.
9871         * doc/posix-functions/fcntl.texi: Document the issue.
9873 2018-09-06  Bruno Haible  <bruno@clisp.org>
9875         count-trailing-zeros tests: Rely on limits-h module.
9876         * tests/test-count-trailing-zeros.c (ULLONG_MAX): Remove fallback
9877         definition.
9878         * modules/count-trailing-zeros-tests (Depends-on): Add 'limits-h'.
9880 2018-09-06  Bruno Haible  <bruno@clisp.org>
9882         count-leading-zeros tests: Rely on limits-h module.
9883         * tests/test-count-leading-zeros.c (ULLONG_MAX): Remove fallback
9884         definition.
9885         * modules/count-leading-zeros-tests (Depends-on): Add 'limits-h'.
9887 2018-09-06  Bruno Haible  <bruno@clisp.org>
9889         count-one-bits tests: Rely on limits-h module.
9890         * tests/test-count-one-bits.c (ULLONG_MAX): Remove fallback definition.
9891         * modules/count-one-bits-tests (Depends-on): Add 'limits-h'.
9893 2018-09-06  Bruno Haible  <bruno@clisp.org>
9895         xstrtoll: Rely on limits-h module.
9896         * lib/xstrtol.c: Don't include intprops.h.
9897         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
9898         * modules/xstrtol (Depends-on): Remove 'intprops'.
9899         * modules/xstrtoll (Depends-on): Add 'limits-h'.
9901 2018-09-06  Bruno Haible  <bruno@clisp.org>
9903         strtoll, strtoull: Rely on limits-h module.
9904         * lib/strtol.c (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove macros.
9905         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
9906         * modules/strtoll (Depends-on): Add limits-h.
9907         * modules/strtoull (Depends-on): Likewise.
9909 2018-09-06  Bruno Haible  <bruno@clisp.org>
9911         intprops tests: Fix compilation error with pre-C99 compiler.
9912         * tests/test-intprops.c (verify_stmt): New macro.
9913         (VERIFY, main): Use it.
9915 2018-09-06  Bruno Haible  <bruno@clisp.org>
9917         limits-h: Provide numerical limits macros.
9918         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define also for
9919         IRIX and for GCC.
9920         (WORD_BIT, LONG_BIT): Define.
9921         * m4/limits-h.m4 (gl_LIMITS_H): Set LIMITS_H to non-empty also when
9922         <limits.h> does not define LLONG_MAX or WORD_BIT.
9923         * tests/test-limits-h.c (TYPE_SIGNED, TYPE_WIDTH, TYPE_MINIMUM,
9924         TYPE_MAXIMUM): New macros, from intprops.h.
9925         Add tests for CHAR_BIT, WORD_BIT, LONG_BIT, <type>_MIN, and <type>_MAX.
9926         * doc/posix-headers/limits.texi: Document what the 'limits-h' module
9927         provides.
9929 2018-09-05  Bruno Haible  <bruno@clisp.org>
9931         fcntl: Don't access nonexistent optional argument.
9932         Reported by Frank Busse <f.busse@imperial.ac.uk> in
9933         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00018.html>.
9934         * lib/fcntl.c (rpl_fcntl): For actions that don't take an argument,
9935         don't consume an argument. For actions that take an 'int' argument,
9936         consume an 'int' argument.
9938 2018-09-05  Eric Blake  <eblake@redhat.com>
9940         doc: mention environ pitfall
9941         * doc/posix-functions/environ.texi (environ): Assigning NULL to
9942         environ is a glibc extension.
9944 2018-09-03  Bruno Haible  <bruno@clisp.org>
9946         gnulib-tool: Fix build order when $testsbase is a subdir of $sourcebase.
9947         Reported by Antoine Luong <antoine.luong@c-s.fr> in
9948         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00008.html>.
9949         * gnulib-tool (func_import): For the tests, set a dotfirst flag.
9950         (func_emit_lib_Makefile_am): Consider the dotfirst flag.
9951         (func_emit_tests_Makefile_am): Don't consider the dotfirst flag.
9953 2018-09-02  Paul Eggert  <eggert@cs.ucla.edu>
9955         mktime: fix unlikely race+overflow bug
9956         Problem reported by Alexandre Oliva in:
9957         https://sourceware.org/bugzilla/show_bug.cgi?id=16346
9958         * lib/mktime.c (__mktime_internal): Access *OFFSET only once,
9959         to avoid an unlikely race if the compiler delays a load and
9960         if this cascades into a signed integer overflow.
9962 2018-08-31  Paul Eggert  <eggert@cs.ucla.edu>
9964         mktime, timegm: simplify glibc time64_t
9965         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]:
9966         Now long int, not time_t, since long int is the longstanding type
9967         for this in glibc and there is no need to change it even if time_t
9968         becomes 64 bits - even int would do, though this would be a change
9969         to the glibc generated code.  When this change is merged into
9970         glibc, it should simplify the time_t vs time64_t situation.
9972         mktime, timegm: simplify merge to glibc
9973         Move code around to make a merge to glibc easier to audit.
9974         This should not change behavior.
9975         * lib/mktime.c (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
9976         (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
9977         which glibc uses.  Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
9978         simplify later conditionals; default the others to zero.  In uses
9979         of these conditionals, explicitly spell out how _LIBC affects
9980         things, so it’s easier to review from a glibc viewpoint.
9981         (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
9982         compartmentalize tzset issues.  Move system-dependent tzsettish
9983         code here from mktime.
9984         (mktime): Move tzsettish code to my_tzset, and move
9985         localtime_offset to within mktime so that it doesn’t
9986         need a separate ifdef.
9988 2018-08-27  Paul Eggert  <eggert@cs.ucla.edu>
9990         intprops: avoid evaluation of some expressions
9991         This makes EXPR_SIGNED (e) easier to use, as it no longer
9992         evaluates the expression E.  Formerly, E was required to be free
9993         of side effects.
9994         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT)
9995         (EXPR_SIGNED, TYPE_WIDTH, _GL_INT_MINIMUM, _GL_INT_MAXIMUM)
9996         (_GL_SIGNED_INT_MAXIMUM): Do not evaluate the expression arg.
9998 2018-08-23  Bruno Haible  <bruno@clisp.org>
10000         getcwd: Add cross-compilation guesses.
10001         Reported by Sergio Durigan Junior <sergiodj@redhat.com> in
10002         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00130.html>.
10003         Based on a patch by Paul Eggert.
10004         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Add cross-compilation
10005         guesses for all GNU systems.
10007 2018-08-19  Bruno Haible  <bruno@clisp.org>
10009         glob-h: Formalize side effects from other modules.
10010         * m4/glob_h.m4 (gl_REPLACE_GLOB_H): New macro.
10011         * m4/glob.m4 (gl_GLOB): Invoke it.
10013         fnmatch-h: Formalize side effects from other modules.
10014         * m4/fnmatch_h.m4 (gl_REPLACE_FNMATCH_H): New macro.
10015         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Invoke it.
10017         limits-h: Formalize side effects from other modules.
10018         * m4/limits-h.m4 (gl_REPLACE_LIMITS_H): New macro.
10019         * m4/stdint.m4 (gl_STDINT_H): Invoke it.
10021 2018-08-19  Bruno Haible  <bruno@clisp.org>
10023         getpass: Move declaration to <unistd.h>.
10024         * lib/unistd.in.h (getpass): New declaration.
10025         * lib/getpass.h: Replace with a stub that just includes <unistd.h>.
10026         * m4/getpass.m4 (gl_FUNC_GETPASS): Declare through AC_DEFUN_ONCE.
10027         Require gl_UNISTD_H_DEFAULTS. Don't test whether getpass is declared.
10028         (gl_FUNC_GETPASS_GNU): Require gl_UNISTD_H_DEFAULTS and gl_FUNC_GETPASS.
10029         On glibc systems, don't set REPLACE_GETPASS to 1.
10030         * modules/getpass (Depends-on): Add 'unistd'.
10031         (configure.ac): Test also REPLACE_GETPASS. Define a module indicator.
10032         (Include): Specify <unistd.h> instead of "getpass.h".
10033         * modules/getpass-gnu (Depends-on): Merely depend on 'getpass'.
10034         (configure.ac): Sync with the configure.ac section of modules/getpass.
10035         (Include): Specify <unistd.h> instead of "getpass.h".
10036         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether getpass is declared.
10037         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPASS, HAVE_GETPASS,
10038         REPLACE_GETPASS.
10039         * modules/unistd (Makefile.am): Substitute GNULIB_GETPASS, HAVE_GETPASS,
10040         REPLACE_GETPASS.
10041         * tests/test-unistd-c++.cc: Test also the declaration of 'getpass'.
10042         * doc/glibc-functions/getpass.texi: A length limit exists also on uClibc
10043         and musl.
10044         * NEWS: Mention the change.
10046 2018-08-19  Bruno Haible  <bruno@clisp.org>
10048         glob: Fix over-optimization due to attribute __nonnull__.
10049         * lib/glob.c (_GL_ARG_NONNULL): Define to empty.
10051 2018-08-19  Bruno Haible  <bruno@clisp.org>
10053         glob: Fix another compilation error when glob.h is not replaced.
10054         Reported by Reuben Thomas <rrt@sc3d.org> in
10055         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00112.html>.
10056         * m4/glob.m4 (gl_GLOB): Set GLOB_H to non-empty when needed.
10057         * m4/glob_h.m4 (gl_GLOB_H): Define through AC_DEFUN_ONCE.
10059 2018-08-18  Bruno Haible  <bruno@clisp.org>
10061         fnmatch: Avoid conflicting macro definitions of 'fnmatch'.
10062         Reported by Reuben Thomas <rrt@sc3d.org> in
10063         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00108.html>.
10064         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Don't define 'fnmatch' as a macro
10065         in config.h.
10067 2018-08-18  Bruno Haible  <bruno@clisp.org>
10069         Avoid -Wcast-function-type warnings from casts after GetProcAddress.
10070         Reported by Andy Moreton <andrewjmoreton@gmail.com> in
10071         <https://lists.gnu.org/archive/html/emacs-devel/2018-08/msg00468.html>.
10072         Solution proposed by Eli Zaretskii.
10073         * lib/getaddrinfo.c (GetProcAddress): Cast result to 'void *' first.
10074         * lib/gettimeofday.c (GetProcAddress): Likewise.
10075         * lib/link.c (GetProcAddress): Likewise.
10076         * lib/physmem.c (GetProcAddress): Likewise.
10077         * lib/poll.c (GetProcAddress): Likewise.
10078         * lib/select.c (GetProcAddress): Likewise.
10079         * lib/stat-w32.c (GetProcAddress): Likewise.
10081 2018-08-18  Bruno Haible  <bruno@clisp.org>
10083         glob: Fix another compilation error when glob.h is not replaced.
10084         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> again.
10085         * lib/globfree.c: Include <libc-config.h>.
10087 2018-08-18  Bruno Haible  <bruno@clisp.org>
10089         glob: Fix compilation error when glob.h is not replaced.
10090         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> in
10091         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00096.html>.
10092         * lib/glob_pattern_p.c: Include <libc-config.h>.
10093         * modules/glob (Depends-on): Add libc-config.
10095 2018-08-18  Bruno Haible  <bruno@clisp.org>
10097         scratch_buffer: Add tests.
10098         * tests/test-scratch-buffer.c: New file.
10099         * modules/scratch_buffer-tests: New file.
10101 2018-08-18  Bruno Haible  <bruno@clisp.org>
10103         scratch_buffer: Fix include file.
10104         Reported by Reuben Thomas <rrt@sc3d.org> in
10105         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00082.html>.
10106         * lib/scratch_buffer.h: Include <libc-config.h> first. Add
10107         double-inclusion guard.
10109 2018-08-18  Bruno Haible  <bruno@clisp.org>
10111         glob-h: Revert Paul Eggert's revert.
10112         * m4/glob_h.m4: Revert to previous state.
10113         * modules/glob-h: Likewise.
10115 2018-08-18  Paul Eggert  <eggert@cs.ucla.edu>
10117         glob-h: always build glob.h
10118         This works around a problem reported by Reuben Thomas in:
10119         http://lists.gnu.org/r/bug-gnulib/2018-08/msg00079.html
10120         This workaround always builds glob.h, even on platforms that
10121         do not need it; perhaps this could be improved someday.
10122         * m4/glob_h.m4 (gl_GLOB_H): Do not set or use GLOB_H, since glob.h
10123         is always created now.
10124         * modules/glob-h (BUILT_SOURCES, glob.h): Always build glob.h.
10126 2018-08-13  Bruno Haible  <bruno@clisp.org>
10128         monetary: Simplify m4 code.
10129         * m4/monetary_h.m4 (gl_MONETARY_H): Define through AC_DEFUN_ONCE.
10130         (gl_MONETARY_H_BODY): Inline into gl_MONETARY_H. Remove macro.
10132 2018-08-13  Bruno Haible  <bruno@clisp.org>
10134         fnmatch, fnmatch-gnu: Fix compilation error on Mac OS X.
10135         Reported by Jeroen Meijer <jjgmeijer@gmail.com> in
10136         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00046.html>
10137         and by Paul J. Lucas <paul@lucasmail.org> in
10138         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00069.html>.
10139         * m4/fnmatch_h.m4 (gl_FNMATCH_H): Define through AC_DEFUN_ONCE.
10141 2018-08-11  Bruno Haible  <bruno@clisp.org>
10143         setlocale: Trivial simplification.
10144         * lib/setlocale.c (setlocale_unixlike): Remove redundant #if.
10146 2018-08-11  Paul Eggert  <eggert@cs.ucla.edu>
10148         verify: port 'assume' to traditional tools
10149         * lib/verify.h (assume): Port better to Oracle Studio 12.6
10150         and other tools that use /*NOTREACHED*/ comments.
10152 2018-08-10  Bruno Haible  <bruno@clisp.org>
10154         fnmatch-gnu: Fix compilation error in C++ namespace mode on Mac OS X.
10155         * modules/fnmatch-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
10156         * lib/fnmatch.in.h (fnmatch): Skip _GL_CXXALIASWARN if module
10157         'fnmatch-gnu' is in use.
10159 2018-08-07  Bruno Haible  <bruno@clisp.org>
10161         glob-h: Add tests.
10162         * tests/test-glob-h.c: New file, partially based on tests/test-glob.c.
10163         * tests/test-glob.c: Reorder #includes. Remove tests that are moved to
10164         tests/test-glob-h.c.
10165         * modules/glob-h-tests: New file.
10166         * tests/test-glob-h-c++.cc: Renamed from tests/test-glob-c++.cc. Add
10167         conditions.
10168         * modules/glob-h-c++-tests: Renamed from modules/glob-c++-tests.
10169         * modules/glob-tests (Depends-on): Remove glob-c++-tests.
10171 2018-08-07  Bruno Haible  <bruno@clisp.org>
10173         glob-h: New module.
10174         * lib/glob.in.h: Use nearly the usual gnulib idioms for header file
10175         replacements.
10176         * lib/glob.c: Include <config.h>.
10177         * m4/glob_h.m4: New file.
10178         * m4/glob.m4 (gl_GLOB): Require gl_GLOB_H. Remove code that is moved to
10179         glob_h.m4. Set HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
10180         REPLACE_GLOB_PATTERN_P as appropriate.
10181         (gl_PREREQ_GLOB): Don't require AC_C_RESTRICT and
10182         AC_USE_SYSTEM_EXTENSIONS, now done through module 'glob-h'.
10183         * modules/glob-h: New file.
10184         * modules/glob (Files): Remove lib/glob.in.h, lib/glob-libc.h.
10185         (Dependencies): Add glob-h. Remove extensions, snippet/*, libc-config,
10186         lstat, sys_stat. Change conditions.
10187         (configure.ac): Test HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
10188         REPLACE_GLOB_PATTERN_P. Set module indicator.
10189         (Makefile.am): Remove code that is moved to glob-h.
10190         * doc/posix-headers/glob.texi: Mention the 'glob-h' module.
10191         * modules/posixcheck (Depends-on): Add glob-h.
10193 2018-08-06  Bruno Haible  <bruno@clisp.org>
10195         Force generation of substitute .h file when C++ support is enabled.
10196         * m4/ansi-c++.m4 (gl_ANSI_CXX): New macro.
10197         * modules/ansi-c++-opt (configure.ac): Just require gl_ANSI_CXX.
10198         * m4/fnmatch_h.m4 (gl_FNMATCH_H): If C++ support is enabled, set
10199         FNMATCH_H to non-empty.
10200         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If C++ support is enabled, set
10201         ICONV_H to non-empty.
10202         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If C++ support is enabled, set
10203         MONETARY_H to non-empty.
10204         * m4/utime_h.m4 (gl_UTIME_H): If C++ support is enabled, set UTIME_H to
10205         non-empty.
10207 2018-08-06  Bruno Haible  <bruno@clisp.org>
10209         fnmatch-h: Fix test compilation error on mingw (regression from today).
10210         * lib/fnmatch.in.h: Fix conditions.
10212 2018-08-06  Bruno Haible  <bruno@clisp.org>
10214         sys_resource: Relicense under LGPLv2+.
10215         John Malmberg's approval is in
10216         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00031.html>.
10217         * modules/sys_resource (License): Change to LGPLv2+.
10219 2018-08-06  Bruno Haible  <bruno@clisp.org>
10221         fnmatch-h: Add tests.
10222         * tests/test-fnmatch-h.c: New file.
10223         * modules/fnmatch-h-tests: New file.
10224         * tests/test-fnmatch-h-c++.cc: New file.
10225         * modules/fnmatch-h-c++-tests: New file.
10227 2018-08-06  Bruno Haible  <bruno@clisp.org>
10229         fnmatch-h: New module.
10230         * lib/fnmatch.in.h: Use the usual gnulib idioms for header file
10231         replacements.
10232         (FNM_*): Don't redefine if fnmatch exists and we are not overriding it.
10233         (fnmatch): Use the usual gnulib idiom for function declarations. Enable
10234         'posixcheck' warning.
10235         * m4/fnmatch_h.m4: New file.
10236         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Require gl_FNMATCH_H. Remove
10237         code that is moved to fnmatch_h.m4. When fnmatch does not exist, don't
10238         bother testing whether it is working. Set HAVE_FNMATCH, REPLACE_FNMATCH
10239         as appropriate.
10240         * modules/fnmatch-h: New file.
10241         * modules/fnmatch (Files): Remove lib/fnmatch.in.h.
10242         (Dependencies): Add fnmatch-h. Remove extensions, snippet/*. Change
10243         conditions.
10244         (configure.ac): Test HAVE_FNMATCH and REPLACE_FNMATCH. Set module
10245         indicator.
10246         (Makefile.am): Remove code that is moved to fnmatch-h.
10247         * modules/fnmatch-gnu (configure.ac): Test HAVE_FNMATCH and
10248         REPLACE_FNMATCH.
10249         * doc/posix-headers/fnmatch.texi: Mention the 'fnmatch-h' module.
10250         * modules/posixcheck (Depends-on): Add fnmatch-h.
10252 2018-08-06  Bruno Haible  <bruno@clisp.org>
10254         Enable more C++ tests.
10255         * modules/inttypes-tests (Depends-on): Add inttypes-c++-tests.
10256         * modules/monetary-tests (Depends-on): Add monetary-c++-tests.
10257         * modules/strings-tests (Depends-on): Add strings-c++-tests.
10258         * modules/sys_resource-tests (Depends-on): Add sys_resource-c++-tests.
10259         * modules/utime-h-tests (Depends-on): Add utime-h-c++-tests.
10261 2018-08-06  Bruno Haible  <bruno@clisp.org>
10263         getopt-posix, utime-h: Ensure the .h file gets regenerated when needed.
10264         * modules/getopt-posix (Makefile.am): Add Makefile dependency for
10265         getopt.h.
10266         * modules/utime-h (Makefile.am): Add Makefile dependency for utime.h.
10268 2018-08-05  Bruno Haible  <bruno@clisp.org>
10270         utime-h: Generate header file when module 'posixcheck' is in use.
10271         * m4/utime_h.m4 (gl_UTIME_H): If module 'posixcheck' is in use, set
10272         UTIME_H to non-empty.
10274 2018-08-05  Bruno Haible  <bruno@clisp.org>
10276         monetary: Generate header file when module 'posixcheck' is in use.
10277         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If module 'posixcheck' is in
10278         use, set MONETARY_H to non-empty.
10280 2018-08-05  Bruno Haible  <bruno@clisp.org>
10282         iconv-h: Generate header file when module 'posixcheck' is in use.
10283         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If module 'posixcheck' is in use,
10284         set ICONV_H to non-empty.
10286 2018-08-05  Bruno Haible  <bruno@clisp.org>
10288         Optimize the "checking whether ... is declared without a macro" checks.
10289         Suggested by Paul Eggert in
10290         <https://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00339.html>.
10291         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Expand to nothing if the
10292         Gnulib module 'posixcheck' is not in use.
10294 2018-08-05  Bruno Haible  <bruno@clisp.org>
10296         iconv-h: Enable 'posixcheck' warnings.
10297         * m4/iconv_h.m4 (gl_ICONV_H): Check for declarations of iconv and
10298         iconv_open.
10299         * lib/iconv.in.h (iconv_open, iconv): Use _GL_WARN_ON_USE.
10301 2018-08-05  Bruno Haible  <bruno@clisp.org>
10303         Fix link error regarding 'rpl_environ' (regression from 2012-11-21).
10304         * m4/extern-inline.m4: Add more comments.
10305         * lib/warn-on-use.h (_GL_WARN_ON_USE_ATTRIBUTE): New macro.
10306         * lib/unistd.in.h (rpl_environ): Use it instead of _GL_WARN_ON_USE.
10307         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL): Likewise.
10309 2018-08-04  Bruno Haible  <bruno@clisp.org>
10311         New module 'posixcheck'.
10312         * modules/posixcheck: New file.
10313         * m4/posixcheck.m4: New file.
10314         * doc/gnulib-tool.texi (Finding POSIX substitutes): New section.
10315         (Which modules?): Reference it.
10317 2018-08-01  Assaf Gordon  <assafgordon@gmail.com>
10319         dfa: fix memory leak
10320         * lib/dfa.c (dfafree): Add missing free() on dfa->superset.
10322 2018-08-01  Paul Eggert  <eggert@cs.ucla.edu>
10324         ieee754-h: new module
10325         It looks like Emacs can use this for some NaN processing.
10326         Emacs uses it only on double NaNs so it should be safe.
10327         * MODULES.html.sh (func_all_modules): Add ieee754-h.
10328         * config/srclist.txt: Mention ieee754.h in a comment.
10329         * doc/glibc-headers/ieee754.texi (ieee754.h):
10330         Gnulib now has a substitute that should work
10331         except for long double and for non-IEEE platforms.
10332         * lib/ieee754.in.h, m4/ieee754-h.m4, modules/ieee754-h:
10333         * modules/ieee754-h-tests, tests/test-ieee754-h.c: New files.
10335 2018-07-27  Bruno Haible  <bruno@clisp.org>
10337         iswcntrl: Mention minor problem on macOS.
10338         * doc/posix-functions/iswcntrl.texi: Mention oddity on macOS.
10340 2018-07-26  Colin Watson  <cjwatson@debian.org>
10342         bootstrap, gnulib-tool: fix translations rsync
10343         Previously, we created files such as $pobase/Makefile.in.in and then the
10344         subsequent rsync would immediately delete them.
10345         * build-aux/bootstrap (po_download_command_format): Avoid deleting
10346         non-.po files in target directory when rsyncing translations.
10347         * gnulib-tool (func_import): Likewise.
10348         * pygnulib/GLImport.py (GLImport.execute): Likewise.
10350 2018-07-25  Jim Meyering  <meyering@fb.com>
10352         bootstrap: reinstate definition fo gnulib_mk.
10353         That variable is used at least by cppi.
10354         * build-aux/bootstrap (gnulib_mk): Restore definition.
10355         This reverts the deletion from v0.1-1844-gc66dba9ba.
10357 2018-07-23  Bruno Haible  <bruno@clisp.org>
10359         doc: For module names, use texinfo markup @code{} or @samp{}.
10360         * doc/alloca.texi: Mark gnulib module names with @code.
10361         * doc/alloca-opt.texi: Likewise.
10362         * doc/quote.texi: Likewise.
10363         * doc/posix-functions/freopen.texi: Likewise.
10364         * doc/posix-functions/open.texi: Likewise.
10365         * doc/posix-functions/readlink.texi: Likewise.
10366         * doc/posix-functions/readlinkat.texi: Likewise.
10367         * doc/posix-functions/stdout.texi: Likewise.
10368         * doc/posix-functions/stderr.texi: Likewise.
10369         * doc/posix-functions/unlink.texi: Likewise.
10370         * doc/posix-functions/unlinkat.texi: Likewise.
10371         * doc/posix-functions/utime.texi: Likewise.
10372         * doc/posix-functions/utimensat.texi: Likewise.
10373         * doc/posix-functions/utimes.texi: Likewise.
10374         * doc/posix-headers/stdint.texi: Likewise.
10375         * doc/glibc-functions/futimesat.texi: Likewise.
10376         * doc/glibc-functions/lutimes.texi: Likewise.
10377         * doc/glibc-functions/memmem.texi: Likewise.
10379 2018-07-23  Werner LEMBERG  <wl@gnu.org>
10381         doc: Avoid some overfull lines in the TeX output.
10382         * doc/glibc-functions/futimesat.texi: Replace a long @code with a
10383         @example.
10384         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Insert a
10385         newline before the long URL.
10386         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Likewise.
10387         * doc/relocatable-maint.texi: Use @smallexample instead of @example.
10388         Add line breaks in code snippets.
10390 2018-07-17  Paul Eggert  <eggert@cs.ucla.edu>
10392         hard-locale: simplify by removing hard-locale.m4
10393         * m4/hard-locale.m4: Remove.
10394         * modules/hard-locale (Files): Remove m4/hard-locale.m4.
10395         (configure.ac): Do not call gl_HARD_LOCALE.
10397         gnulib-tool: limit line length for git send-email
10398         * gnulib-tool (func_import): Break actioncmd log line
10399         into multiple lines.
10401 2018-07-16  Bruno Haible  <bruno@clisp.org>
10403         ffs: Ensure declaration on mingw.
10404         Reported by Daniel P. Berrangé <berrange@redhat.com>
10405         in https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00061.html.
10406         * m4/ffs.m4 (gl_FUNC_FFS): Check whether ffs() not only exists but is
10407         also declared.
10409 2018-07-13  Paul Eggert  <eggert@cs.ucla.edu>
10411         regex-tests: add dependency
10412         * modules/regex-tests (Depends-on): Add gettext-h.
10413         This is needed given the recent changes to regex,
10414         which no longer depends on gettext-h.
10416 2018-07-06  Paul Eggert  <eggert@cs.ucla.edu>
10418         regex: now in sync with glibc
10419         * config/srclist.txt: Gnulib and glibc regex code
10420         are synchronized again.
10422 2018-07-05  Paul Eggert  <eggert@cs.ucla.edu>
10424         renameatu: rename from renameat2
10425         It's looking like Glibc will add a renameat2 function
10426         that is incompatible with Gnulib renameat2; see:
10427         https://sourceware.org/ml/libc-alpha/2018-07/msg00064.html
10428         To help avoid future confusion, rename renameat2 to something else.
10429         Use the name 'renameatu', as the Gnulib function is close to the
10430         Glibc function.  Perhaps someday there will also be a renameat2
10431         Gnulib module, which mimicks the future glibc renameat2, but that
10432         can wait as nobody seems to need such a module now.
10433         * NEWS: Mention this.
10434         * lib/renameatu.c: Rename from lib/renameat2.c.
10435         * lib/renameatu.h: Rename from lib/renameat2.h.
10436         * modules/renameatu: Rename from modules/renameat2.
10437         * modules/renameatu-tests: Rename from modules/renameat2-tests.
10438         All uses of "renameat2" in identifiers or file name
10439         changed to "renameatu", except for two instances in
10440         lib/renameatu.c that deal with the Linux kernel's
10441         renameat2 syscall.
10443 2018-07-04  Paul Eggert  <eggert@cs.ucla.edu>
10445         gnulib-tool: minor tweaks for --gnu-make
10446         * gnulib-tool: Do not allow --gnu-make in test modes,
10447         since they all require automake.
10448         (func_emit_lib_Makefile_am): Don’t emit automake comment
10449         if --gnu-make.
10451         regex: work around conditional-dependencies glitch
10452         * modules/regex (Depends-on): Add langinfo.
10453         Without this change, I had problems building an experimental
10454         version of GNU Emacs.  The symptom of the bug was a message
10455         ‘./configure: line 12726: test: =: unary operator expected’.
10456         This was due to a line in gl_FUNC_NL_LANGINFO that invokes
10457         ‘test $HAVE_LANGINFO_CODESET = 1’ even though HAVE_LANGINFO_CODESET
10458         was unset.  Although gl_FUNC_NL_LANGINFO has
10459         ‘AC_REQUIRE([gl_LANGINFO_H])’ and gl_LANGINFO_H always sets
10460         HAVE_LANGINFO_CODESET to 0 or 1, gnulib-tool with
10461         --conditional-dependencies sometimes arranges for the
10462         gl_FUNC_NL_LANGINFO code to be executed before the gl_LANGINFO_H
10463         code.  Since the regex code includes <langinfo.h> it should be
10464         depending on the langinfo module anyway, and this happens to work
10465         around the bug, so install that as a workaround for now.  To
10466         reproduce the original problem, run the following shell script on
10467         the version of Gnulib just before this patch was installed.
10468                 rm -fr foo
10469                 mkdir foo
10470                 cat >foo/configure.ac <<'EOF'
10471                 AC_INIT(GNU Emacs, 27.0.50, bug-gnu-emacs@gnu.org, , https://www.gnu.org/software/emacs/)
10472                 gl_EARLY
10473                 gl_INIT
10474                 AC_OUTPUT
10475                 EOF
10476                 ./gnulib-tool --import --conditional-dependencies --gnu-make --dir foo regex
10477                 ./gnulib-tool --copy build-aux/install-sh foo/install-sh
10478                 ./gnulib-tool --copy build-aux/config.sub foo/config.sub
10479                 ./gnulib-tool --copy build-aux/config.guess foo/config.guess
10480                 cd foo
10481                 aclocal -I m4
10482                 autoconf
10483                 ./configure --with-included-regex
10485 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
10487         wchar: fix bug when checking for ‘inline’
10488         I discovered this when looking into using the regex module
10489         with Emacs.
10490         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Fix bug introduced in
10491         2016-08-17T23:09:38Z!skunk@iSKUNK.ORG; the code compiled
10492         conftest1.c and conftest2.c but these files were not created.
10493         As far as I can see, this check never worked and nobody reported
10494         it until now, which is a bit worrisome.
10496 2018-06-30  Jim Meyering  <meyering@fb.com>
10498         bootstrap: s/--option val/--option=val/
10499         * build-aux/bootstrap (gnulib_tool_options): Change the
10500         spelling of "--option val" pairs to "--option=val", for
10501         aesthetics, and also so that this file no longer triggers
10502         a common help2man syntax-check warning when copied into
10503         projects like grep, gzip, etc.
10505 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
10507         manywarnings: omit -Wswitch-default
10508         This should make things more consistent, as we already ignore
10509         -Wswitch-enum.  Problem reported by Reuben Thomas; see:
10510         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00179.html
10511         * build-aux/g++-warning.spec, build-aux/gcc-warning.spec:
10512         Add -Wswitch-default.
10513         * m4/manywarnings-c++.m4 (gl_MANYWARN_ALL_GCC_CXX_IMPL):
10514         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
10515         Remove -Wswitch-default.
10517         regex: revert most trimming
10518         Problems reported by Bruno Haible in:
10519         https://lists.gnu.org/r/bug-gnulib/2018-07/msg00001.html
10520         * modules/regex (Depends-on): Add lock, memcmp, memmove,
10521         and wctype back in.  lock because regex users shouldn’t
10522         need to know that regex needs locking, and the rest because
10523         gnulib-tool should ordinarily ignore them anyway.
10525 2018-06-30  Paul Eggert  <eggert@cs.ucla.edu>
10527         regex: trim module dependencies
10528         * modules/regex (Depends-on): Remove gettext-h and lock,
10529         since the regex code should work OK without these modules,
10530         and Emacs uses it that way.  Also remove memcmp, memmove,
10531         and wctype, as these modules are obsolete and should not be
10532         needed any more.
10534 2018-06-29  Paul Eggert  <eggert@cs.ucla.edu>
10536         regex: glibc does not use intprops.h
10537         Maybe we can talk glibc into using intprops.h someday, but
10538         now doesn’t seem to be a good time.
10539         * lib/regcomp.c (TYPE_SIGNED): Remove; regex_internal.h now defines.
10540         * lib/regex_internal.h [_LIBC]: Do not include intprops.h.
10541         (TYPE_SIGNED, INT_ADD_WRAPV): New macros.
10543 2018-06-28  Paul Eggert  <eggert@cs.ucla.edu>
10545         regex: port to recently proposed glibc regex merge
10546         This patch is inspired by Adhemerval Zanella's recent proposal
10547         https://www.sourceware.org/ml/libc-alpha/2018-06/msg00905.html
10548         to merge glibc and Gnulib regex.  It aims to simplify the merge on
10549         the glibc side, without keeping Gnulib portable.
10550         * lib/regex.h: Fix a problem with glibc installed-header checking,
10551         as follows:
10552         (_Restrict_): Prefer __restrict if defined or if GCC 2.95 or later.
10553         (_Restrict_arr_): Prefer __restrict_arr if defined,
10554         otherwise prefer _Restrict_ if C99 or GCC 3.1 or later (but not C++).
10555         * lib/regex_internal.c (re_string_realloc_buffers, build_wcs_buffer)
10556         (build_wcs_upper_buffer, build_upper_buffer)
10557         (re_string_translate_buffer, re_string_context_at):
10558         Move decls here from lib/regex_internal.h, for glibc internal tests.
10559         (build_wcs_upper_buffer): Use __wcrtomb, not wcrtomb, fixing
10560         glibc BZ #18496.
10561         * lib/regex_internal.h (lock_fini) [_LIBC]: Cast to 0 to pacify
10562         -Wunused-value.
10563         (bitset_set, bitset_clear, bitset_contain, bitset_empty)
10564         (bitset_set_all, bitset_copy, bitset_not, bitset_merge)
10565         (bitset_mask): Now static inline, and without any __attribute__
10566         ((unused)) decoration, for glibc internal tests.
10568 2018-06-25  Bruno Haible  <bruno@clisp.org>
10570         threadlib: Fix LIBMULTITHREAD on platforms where --as-needed is enabled.
10571         Reported by Erik Auerswald <auerswal@unix-ag.uni-kl.de>
10572         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00063.html>.
10573         * m4/threadlib.m4 (gl_THREADLIB_BODY): Check whether the linker supports
10574         --as-needed/--no-as-needed and --push-state/--pop-state. When defining
10575         USE_POSIX_THREADS_WEAK or USE_SOLARIS_THREADS_WEAK or
10576         USE_PTH_THREADS_WEAK, define LIBMULTITHREAD in such a way that -lpthread
10577         / -lthread / -lpth does not get optimized away by a preceding
10578         --as-needed option.
10580 2018-06-25  Bruno Haible  <bruno@clisp.org>
10582         Continue to use spaces for indentation, not tabs.
10583         * MODULES.html.sh: Untabify.
10584         * doc/regex.texi: Likewise.
10585         * lib/acl-internal.c: Likewise.
10586         * lib/dfa.c: Likewise.
10587         * lib/exclude.c: Likewise.
10588         * lib/exclude.h: Likewise.
10589         * lib/get-permissions.c: Likewise.
10590         * lib/gettimeofday.c: Likewise.
10591         * lib/parse-datetime.y: Likewise.
10592         * lib/pselect.c: Likewise.
10593         * lib/set-permissions.c: Likewise.
10594         * lib/time.in.h: Likewise.
10595         * m4/canonicalize.m4: Likewise.
10596         * m4/gc.m4: Likewise.
10597         * m4/gnulib-common.m4: Likewise.
10598         * m4/pthread_sigmask.m4: Likewise.
10599         * m4/vararrays.m4: Likewise.
10600         * tests/test-digest.h: Likewise.
10601         * tests/test-fcntl-h.c: Likewise.
10602         * tests/test-timespec.c: Likewise.
10603         * tests/uniwbrk/test-uc-wordbreaks.c: Likewise.
10605 2018-06-25  Bruno Haible  <bruno@clisp.org>
10607         manywarnings: Don't enable -Wjump-misses-init warnings by default.
10608         * build-aux/gcc-warning.spec: Add -Wjump-misses-init.
10609         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): Remove
10610         -Wjump-misses-init.
10612 2018-06-25  Jim Meyering  <meyering@fb.com>
10614         acl-internal.h: remove _GL_ATTRIBUTE_CONST on void function
10615         * lib/acl-internal.h (free_permission_context): Remove that
10616         attribute directive.  Otherwise, it would provoke this from GCC 9:
10617         lib/acl-internal.h:300:3: error: 'const' attribute on function \
10618           returning 'void' [-Werror=attributes]
10620 2018-06-24  Jim Meyering  <meyering@fb.com>
10622         parse-datetime: accommodate gcc-4.8.5
10623         Bruno Haible reported the build failure in
10624         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00066.html
10625         * lib/parse-datetime.y (parse_datetime2): Remove leading "static"
10626         on declaration of new local.
10628 2018-06-24  Bruno Haible  <bruno@clisp.org>
10630         af_alg: Fail in continuable manner on Linux/powerpc64le.
10631         Reported by Assaf Gordon <assafgordon@gmail.com>
10632         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00034.html>.
10633         * lib/af_alg.c (afalg_stream): On non-seekable streams, try a single-
10634         byte send() as the first round.
10636 2018-06-24  Bruno Haible  <bruno@clisp.org>
10638         af_alg: Fix state of stream after sendfile() succeeds.
10639         * lib/af_alg.c (afalg_stream): Invoke fflush and lseek, to ensure that
10640         the stream is correctly positioned afterwards.
10641         * modules/crypto/af_alg (Depends-on): Add fflush.
10642         * tests/test-digest.h (test_digest_on_files): Verify that after the
10643         operation the stream is positioned at end of file.
10645 2018-06-24  Jim Meyering  <meyering@fb.com>
10647         canon-host: take GCC9's advice rather than ignoring warning
10648         Pádraig Brady suggested not to ignore this GCC9 advice.
10649         * lib/canon-host.c: Undo preceding change.
10650         * lib/canon-host.h: Instead, declare with _GL_ATTRIBUTE_MALLOC.
10652         parse-datetime.y: avoid spurious GCC 9 warning
10653         * lib/parse-datetime.y (parse_datetime2): Save RELATIVE_TIME_0 into
10654         a function local prior to the first "goto fail".  The prior use would
10655         evoke this:
10656         parse-datetime.y: In function 'parse_datetime2':
10657         parse-datetime.y:1791:19: error: jump skips variable initialization \
10658           [-Werror=jump-misses-init]
10659         parse-datetime.y:2385:2: note: label 'fail' defined here
10660         parse-datetime.y:188:43: note: '({anonymous})' declared here
10661         parse-datetime.y:1841:12: note: in expansion of macro 'RELATIVE_TIME_0'
10663         canon-host.c: avoid spurious GCC 9 warning
10664         * lib/canon-host.c: Suppress GCC9's -Wsuggest-attribute=malloc.
10666         manywarnings: accommodate GCC 9.0-pre: remove -Wchkp and -Wabi
10667         * build-aux/gcc-warning.spec: Add them here, each with an explanation.
10668         * m4/manywarnings.m4: Remove them.
10669         Otherwise, building coreutils, I would see this:
10670         cc1: error: deprecated command line option '-Wchkp' [-Werror]
10671         cc1: error: -Wabi won't warn about anything [-Werror=abi]
10672         cc1: note: -Wabi warns about differences from the most up-to-date ABI,\
10673           which is also used by default
10674         cc1: note: use e.g. -Wabi=11 to warn about changes from GCC 7
10676 2018-06-24  Bruno Haible  <bruno@clisp.org>
10678         af_alg tests: Add another test.
10679         * tests/test-digest.h (test_digest_on_files): Also check a large file
10680         with a skipped header.
10681         * tests/test-md5.c: Include macros.h.
10682         * tests/test-sha1.c: Likewise.
10683         * tests/test-sha256.c: Likewise.
10684         * tests/test-sha512.c: Likewise.
10685         * modules/crypto/md5-tests (Files): Add tests/macros.h.
10686         * modules/crypto/sha1-tests (Files): Likewise.
10687         * modules/crypto/sha256-tests (Files): Likewise.
10688         * modules/crypto/sha512-tests (Files): Likewise.
10690 2018-06-24  Pádraig Brady  <P@draigBrady.com>
10692         maint: clarify comments about sticky EOF
10693         * lib/af_alg.c: Be more direct that we can't
10694         assume stickiness of EOF for portability reasons.
10695         * lib/md5.c: Clarify that this isn't just a glibc issue.
10696         * lib/sha1.c: Likewise.
10697         * lib/sha256.c: Likewise.
10698         * lib/sha512.c: Likewise.
10700 2018-06-24  Bruno Haible  <bruno@clisp.org>
10702         af_alg: Comment and style improvements.
10703         * lib/af_alg.c (alg_socket): Use 'size_t' as index into a string.
10704         (afalg_buffer, afalg_stream): Improve comments.
10706 2018-06-24  Pádraig Brady  <P@draigBrady.com>
10708         af_alg: disable kernel hash functions by default
10709         All the kernel routines were seen to be significantly slower
10710         with these relatively recent components on an i3-2310M system:
10711           kernel-4.10.6-200.fc25.x86_64
10712           openssl-1.0.2m-1.fc25.x86_64
10713         sha1 was nearly twice as slow in the kernel for example.
10714         Further considerations why this should not be the default, at:
10715         https://lists.gnu.org/r/coreutils/2018-06/msg00034.html
10717         * m4/af_alg.m4: Require --with-linux-crypto to enable.
10718         * m4/gl-openssl.m4: Tweak accordingly.
10720 2018-06-24  Pádraig Brady  <P@draigBrady.com>
10722         af_alg: avoid hangs when reading from streams
10723         * lib/af_alg.c (afalg_stream): Don't assume EOF is sticky,
10724         and thus avoid doing a fread() when feof() is set.
10725         * lib/md5.c: Ensure feof() is called before fread().
10726         * lib/sha1.c: Likewise.
10727         * lib/sha256.c: Likewise.
10728         * lib/sha512.c: Likewise.
10730 2018-06-24  Pádraig Brady  <P@draigBrady.com>
10732         af_alg: fix error handling when hash not returned
10733         * lib/af_alg.c (afalg_stream): Handle the case where we've
10734         successfully written data to the kernel in the read/write loop,
10735         but the kernel doesn't respond with the hash.
10737 2018-06-24  Paul Eggert  <eggert@cs.ucla.edu>
10739         libc-config: merge from glibc
10740         * lib/cdefs.h (__inline, __restrict):
10741         Copy from current glibc.  This fixes glibc bug 17721,
10742         which Gnulib had already fixed in a different way.
10743         (__nonnull): Lessen the distance from glibc by using the
10744         glibc definition inside an ‘#ifndef __nonnull’.
10745         (__attribute_nonstring__): New macro, copied from
10746         current glibc.
10747         * lib/libc-config.h (__attribute_nonstring__): New undef.
10748         (__restrict): Remove; workaround no longer needed.
10749         Keep the __inline workaround, though, as it uses HAVE___INLINE to
10750         support more compilers than the glibc __inline can.
10752 2018-06-24  Bruno Haible  <bruno@clisp.org>
10754         mbrtowc, wcwidth: Fix MT-safety bug (regression from 2018-06-23).
10755         * lib/mbrtowc.c (enc_t): New enum type.
10756         (locale_enc, locale_enc_cached): New functions.
10757         (mbrtowc): Eliminate static variables. Use locale_enc_cached instead.
10758         * lib/wcwidth.c (is_locale_utf8, is_locale_utf8_cached): New functions.
10759         (wcwidth): Eliminate static variables. Use is_locale_utf8_cached
10760         instead.
10761         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Require AC_C_INLINE.
10762         * m4/wcwidth.m4 (gl_PREREQ_WCWIDTH): New macro.
10763         * modules/wcwidth (configure.ac): Invoke it.
10765 2018-06-24  Bruno Haible  <bruno@clisp.org>
10767         wchar-single: Fix test failure in wcwidth tests.
10768         * tests/test-wcwidth.c (main): If the wchar-single module is present,
10769         skip the tests in the C locale.
10771 2018-06-23  Pádraig Brady  <P@draigBrady.com>
10773         crypto: mention --without-linux-crypto in --with-openssl --help
10774         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Mention that linux crypto
10775         routines take precedence in --with-openssl help output.
10777 2018-06-23  Pádraig Brady  <P@draigBrady.com>
10779         wchar-single: a new module to enable optimizations in wchar replacements
10780         * lib/mbrtowc.c (mbrtowc): Only check locale_charset() once if
10781         GNULIB_WCHAR_SINGLE is enabled.
10782         * lib/wcwidth.c (wcwidth): Likewise.
10784 2018-06-23  Bruno Haible  <bruno@clisp.org>
10786         libc-config: Fix conflict with FreeBSD include files.
10787         * lib/cdefs.h (__nonnull): Remove definition.
10788         * lib/libc-config.h (__nonnull): Remove undefinition.
10790 2018-06-21  Paul Eggert  <eggert@cs.ucla.edu>
10792         random_r: do not crash if state is unaligned
10793         Problem reported by Bruce Korb in:
10794         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00030.html
10795         I reproduced the crash on 32-bit sparc with Oracle Studio 12.6
10796         with 'cc -O2 -xmemalign=8s'.
10797         * lib/random_r.c: Include string.h, for memcpy.
10798         (get_int32, set_int32): New functions.
10799         (__srandom_r, __initstate_r, __setstate_r, __random_r):
10800         Use them to avoid assumption that state pointer is aligned.
10801         (__random_r): Avoid integer overflow if INT_MAX == UINT32_MAX.
10802         * tests/test-random_r.c (test_failed): New function.
10803         (main): Use it, to test for alignment bugs.
10805         random_r: omit unnecessary include
10806         * lib/random_r.c: Do not include limits.h.
10808         random, random_r: merge from glibc
10809         * lib/random.c, lib/random_r.c:
10810         Include libc-config.h if !_LIBC, not config.h unilaterally.
10811         * lib/random.c:
10812         Do not include stdint.h or time.h; not needed.
10813         Include libc-lock.h if _LIBC, and define substitute macros otherwise.
10814         (unsafe_state): Rename from generator.  All uses changed.
10815         Use C99-style initializers.
10816         (__random, __srandom, __initstate, __setstate): Rename from
10817         non-underscored version, but define it to non-underscored version
10818         on Gnulib.  Add a lock.
10819         * lib/random_r.c (__srandom_r, __initstate_r, __setstate_r, __random_r):
10820         Likewise.
10821         Do not include <stdint.h>; not needed since stdlib.h defines int32_t.
10822         (weak_alias, __set_errno) [!_LIBC]: Remove; now done by libc-config.
10823         (__srandom_r): Use int32_t instead of long int where int32_t will do.
10824         (__random_r): Use uint32 to fix glibc bug 17343.
10825         * modules/random, modules/random_r (Depends-on): Add libc-config.
10826         Depend on stdint only if $HAVE_RANDOM = 0.
10828 2018-06-19  Jim Meyering  <meyering@fb.com>
10830         README-release: also run any check-very-expensive tests
10831         * top/README-release: Adjust instructions so they run the
10832         check-very-expensive tests when there is such a target.
10834 2018-06-18  Bruno Haible  <bruno@clisp.org>
10836         pthread_rwlock_rdlock: Add comments regarding glibc behaviour.
10837         * m4/pthread_rwlock_rdlock.m4: Add comment.
10838         * doc/posix-functions/pthread_rwlock_rdlock.texi: Mention that rwlocks
10839         are reader-preferring in glibc.
10840         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likwise.
10841         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
10843 2018-06-17  Paul Eggert  <eggert@cs.ucla.edu>
10845         crypto: use byteswap
10846         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
10847         * lib/sm3.c: Include <byteswap.h>.
10848         (SWAP): Use its macros rather than reinventing the wheel.
10849         * modules/crypto/md4, modules/crypto/md5-buffer:
10850         * modules/crypto/sha1-buffer, modules/crypto/sha256-buffer:
10851         * modules/crypto/sha512-buffer, modules/crypto/sm3:
10852         (Depends-on): Add byteswap.
10854 2018-06-17  Pádraig Brady  <P@draigBrady.com>
10856         gendocs.sh: fix support for legacy --texi2html
10857         * build-aux/gendocs.sh: Restrict use of TOP_NODE_UP_URL
10858         to the default makeinfo invocation.
10859         Reported by Bruce Korb
10861 2018-06-17  Bruno Haible  <bruno@clisp.org>
10863         gettext po infrastructure: Update from current gettext git.
10864         Reported by Akim Demaille <akim@lrde.epita.fr>.
10865         * build-aux/po/Makefile.in.in: Update from current gettext git.
10866         * build-aux/po/remove-potcdate.sin: Likewise.
10867         * config/srclist.txt: Temporarily disable sync for these files.
10869 2018-06-17  Bruno Haible  <bruno@clisp.org>
10871         getloadavg: Return 0 on Windows without Cygwin.
10872         * lib/getloadavg.c: Don't assume that the symbol WINDOWS32 is defined.
10874 2018-06-17  Paul Smith  <psmith@gnu.org>
10876         getloadavg: Allow building on Windows without Cygwin
10877         * lib/getloadavg.c: Reinstate ifdef for HAVE_UNISTD_H.
10878         * m4/getloadavg.m4: Check for unistd.h.
10880 2018-06-03  Paul Eggert  <eggert@cs.ucla.edu>
10882         Port crypto/af_alg to GCC 4.8.4
10883         Problem reported by Peter Simons in:
10884         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00002.html
10885         * modules/crypto/af_alg (Depends-on): Add c99 if USE_AF_ALG.
10887 2018-05-27  Colin Watson  <cjwatson@debian.org>
10889         bootstrap: document source fetching in --help
10890         * build-aux/bootstrap (usage): Document how Gnulib sources are fetched.
10892 2018-04-09  Colin Watson  <cjwatson@debian.org>
10894         bootstrap: allow non-submodule control of gnulib
10895         * build-aux/bootstrap: Honour GNULIB_URL and GNULIB_REVISION in
10896         bootstrap.conf when fetching gnulib using "git clone" or via
10897         GNULIB_SRCDIR.
10899 2018-05-21  Paul Eggert  <eggert@cs.ucla.edu>
10901         crypto: omit stream ops Emacs doesn’t need
10902         * lib/md5.c (md5_stream):
10903         * lib/sha1.c (sha1_stream):
10904         * lib/sha256.c (shaxxx_stream, sha256_stream, sha224_stream):
10905         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
10906         Compile stream functions only if GL_COMPILE_CRYPTO_STREAM is
10907         defined.  Emacs needs this, as it does not use the stream
10908         operations and doesn’t need all the af_alg stuff we’ve recently
10909         added.  Perhaps a similar change is needed to the other crypto
10910         modules, but this patch changes only those needed for Emacs.
10911         * modules/crypto/md5-buffer, modules/crypto/sha1-buffer:
10912         * modules/crypto/sha256-buffer, modules/crypto/sha512-buffer:
10913         New modules, used by Emacs.
10914         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
10915         * modules/crypto/sha512: Rewrite to depend on the new modules.
10917 2018-05-20  Pádraig Brady  <P@draigBrady.com>
10919         fts: avoid a memory leak edge case
10920         * lib/fts.c (fts_open): Set an appropriate fts_level
10921         so that an immediate fts_close() will free the allocation.
10922         * tests/test-fts.c (fts_dealloc): Add a test case which
10923         will trigger under valgrind or address sanitizer.
10924         Fixes https://bugs.gnu.org/31439
10926 2018-05-20  Bruno Haible  <bruno@clisp.org>
10928         wcwidth tests: Fix link error.
10929         * modules/wcwidth-tests (Makefile.am): Link test-wcwidth against
10930         $(LIBUNISTRING).
10932 2018-05-20  Bruno Haible  <bruno@clisp.org>
10934         regex: Fix "error: possibly undefined macro: gl_GLIBC21".
10935         * modules/regex (Files): Add m4/glibc21.m4.
10937 2018-05-20  Bruno Haible  <bruno@clisp.org>
10939         localcharset: Optimize.
10940         * lib/localcharset.c (alias_table): Comment out no-op mappings for
10941         platforms where these don't matter. This reduces the table size,
10942         which in turn reduces the lookup time.
10944 2018-05-19  Bruno Haible  <bruno@clisp.org>
10946         localcharset: Map the locale encodings found in newer OSes.
10947         * lib/localcharset.c (alias_table): Add mapping for locale encodings
10948         found in FreeBSD 11, NetBSD 7, Solaris 10, Openindiana, HP-UX 11.31,
10949         IRIX 6.5, Minix 3.3.
10950         * lib/localcharset.h: Update comments accordingly. Also for Cygwin 2.9.
10952 2018-05-19  Bruno Haible  <bruno@clisp.org>
10954         localcharset: Move mapping tables into the code. Use a binary search.
10955         * lib/localcharset.h: Document the GNU canonical names for character
10956         encodings here.
10957         * lib/localcharset.c: Don't include <fcntl.h>, <unistd.h>,
10958         relocatable.h, configmake.h.
10959         (O_NOFOLLOW, ISSLASH, DIRECTORY_SEPARATOR, getc, volatile): Remove
10960         macros.
10961         (charset_aliases): Remove variable.
10962         (get_charset_aliases): Remove function.
10963         (struct table_entry): New type.
10964         (alias_table, locale_table): New constants.
10965         (locale_charset): Use the alias_table or locale_table to get the
10966         canonicalized encoding name.
10967         * lib/config.charset: Remove file.
10968         * lib/ref-add.sin: Remove file.
10969         * lib/ref-del.sin: Remove file.
10970         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't require gl_FCNTL_O_FLAGS,
10971         AC_CANONICAL_HOST, gl_GLIBC21. Don't check for getc_unlocked.
10972         * modules/localcharset (Notice): Remove.
10973         (Files): Remove config.charset, ref-add.sin, ref-del.sin, fcntl-o.m4,
10974         glibc21.m4.
10975         (Depends-on): Remove configmake.
10976         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT to empty.
10977         (Makefile.am): Simplify.
10978         * build-aux/prefix-gnulib-mk: Remove special code for the removed files.
10980 2018-05-19  Bruno Haible  <bruno@clisp.org>
10982         localcharset: Add a manual test.
10983         * tests/test-localcharset.c: New file.
10984         * modules/localcharset-tests: New file.
10986 2018-05-19  Bruno Haible  <bruno@clisp.org>
10988         localcharset: Remove support for obsolete platforms.
10989         * lib/config.charset: Remove support for Linux/libc5, glibc-2.0.x, and
10990         Mac OS X 10.2. Comment out dubious entry for Solaris.
10992 2018-05-19  Jim Meyering  <meyering@fb.com>
10994         gnupload: adjust comment
10995         * build-aux/gnupload: Add FIXME-2020 comment, to make it slightly
10996         more likely we'll remove the just-added code in a year or two.
10998 2018-05-19  Bruno Haible  <bruno@clisp.org>
11000         gnupload: Fix "gpg-agent is not available in this session" error.
11001         * build-aux/gnupload (GPG): Pick the right GNUPG executable to use.
11003 2018-05-16  Paul Eggert  <eggert@cs.ucla.edu>
11005         crypto/af_alg: fix --help
11006         * m4/af_alg.m4: Avoid spurious newline in --help output.
11008 2018-05-13  Bruno Haible  <bruno@clisp.org>
11010         nl_langinfo: Fix compilation error on Android.
11011         * lib/nl_langinfo.c (nl_langinfo): Define values for the items GROUPING,
11012         INT_CURR_SYMBOL, etc. only if these items are defined.
11014 2018-05-13  Bruno Haible  <bruno@clisp.org>
11016         truncate: Fix compilation error on Android.
11017         * m4/truncate.m4 (gl_FUNC_TRUNCATE): Test also whether 'truncate' is
11018         declared. Set HAVE_DECL_TRUNCATE, not HAVE_TRUNCATE.
11019         * lib/unistd.in.h (truncate): Test HAVE_DECL_TRUNCATE, not
11020         HAVE_TRUNCATE.
11021         * modules/truncate: Likewise.
11022         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_TRUNCATE,
11023         not HAVE_TRUNCATE.
11024         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TRUNCATE, not
11025         HAVE_TRUNCATE.
11026         * doc/posix-functions/truncate.texi: Mention the issue.
11028 2018-05-13  Bruno Haible  <bruno@clisp.org>
11030         pthread: Fix compilation error on Android.
11031         * lib/pthread.in.h: Use _GL_ALREADY_INCLUDING_PTHREAD_H to shortcut
11032         recursive inclusion of this file.
11034 2018-05-13  Bruno Haible  <bruno@clisp.org>
11036         posix_spawn: Fix compilation error on Android.
11037         * lib/spawn.in.h (posix_spawnattr_t): Consider also the case
11038         HAVE_POSIX_SPAWNATTR_T = 1 && HAVE_POSIX_SPAWN = 0.
11039         (posix_spawn_file_actions_t): Consider also the case
11040         HAVE_POSIX_SPAWN_FILE_ACTIONS_T = 1 && HAVE_POSIX_SPAWN = 0.
11042 2018-05-13  Bruno Haible  <bruno@clisp.org>
11044         tsearch: Move from K&R C to ANSI C.
11045         * lib/tsearch.c (tfind): Convert definition to ANSI C.
11047 2018-05-13  Bruno Haible  <bruno@clisp.org>
11049         tsearch: Fix compilation error on Android.
11050         * lib/search.in.h (twalk): Declare when HAVE_TWALK, not HAVE_TSEARCH,
11051         is 0.
11052         (GNULIB_defined_tsearch, GNULIB_defined_twalk): New macros.
11053         * lib/tsearch.c (tsearch, tfind, tdelete): Define only if
11054         GNULIB_defined_tsearch is true.
11055         (twalk): Define only if GNULIB_defined_twalk is true.
11056         * modules/tsearch (configure.ac): Compile tsearch.c also if HAVE_TWALK
11057         is 0.
11058         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Set HAVE_TWALK.
11059         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize HAVE_TWALK.
11060         * modules/search (Makefile.am): Substitute HAVE_TWALK.
11062 2018-05-13  Bruno Haible  <bruno@clisp.org>
11064         imaxdiv: Fix compilation error on Android.
11065         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Set HAVE_IMAXDIV_T to 0 if imaxdiv_t
11066         is not defined.
11067         * lib/inttypes.in.h (imaxdiv_t): Define if HAVE_IMAXDIV_T, not
11068         HAVE_DECL_IMAXDIV, is 0.
11069         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize HAVE_IMAXDIV_T.
11070         * modules/inttypes-incomplete (Makefile.am): Substitute HAVE_IMAXDIV_T.
11072 2018-05-13  Bruno Haible  <bruno@clisp.org>
11074         Support selective inclusion mechanism of recent mingw.org header files.
11075         Reported by Eli Zaretskii <eliz@gnu.org>.
11076         * lib/sys_types.in.h: On mingw, when __need_off_t, __need___off64_t,
11077         __need_ssize_t, or __need_time_t is defined, just include the system's
11078         <sys/types.h>.
11079         * lib/locale.in.h: On mingw, when __need_locale_t is defined, just
11080         include the system's <locale.h>.
11082 2018-05-13  Bruno Haible  <bruno@clisp.org>
11084         Avoid compilation error due to 'mmap' on Android.
11085         * lib/vma-iter.c (_FILE_OFFSET_BITS): Undefine on Android.
11086         * lib/get-rusage-as.c (_FILE_OFFSET_BITS): Likewise.
11087         * tests/zerosize-ptr.h (_FILE_OFFSET_BITS, __USE_FILE_OFFSET64):
11088         Undefine on Android.
11090 2018-05-13  Bruno Haible  <bruno@clisp.org>
11092         Add cross-compilation guesses for Linux systems without glibc.
11093         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for Linux.
11094         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
11095         * m4/link.m4 (gl_FUNC_LINK): Likewise.
11096         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
11097         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
11098         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
11099         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
11100         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
11101         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
11102         * m4/readlink.m4 (gl_FUNC_READLINK): Likewise.
11103         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
11104         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
11105         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
11106         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
11107         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
11108         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
11109         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
11110         * m4/utimens.m4 (gl_UTIMENS): Likewise.
11112 2018-05-13  Bruno Haible  <bruno@clisp.org>
11114         getpagesize: Fix compilation error on Android.
11115         * m4/getpagesize.m4 (gl_CHECK_FUNC_GETPAGESIZE): New macro.
11116         (gl_FUNC_GETPAGESIZE): Invoke it instead of AC_CHECK_FUNC.
11117         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Don't invoke
11118         AC_CHECK_FUNC. Instead, invoke gl_CHECK_FUNC_GETPAGESIZE and define
11119         HAVE_GETPAGESIZE accordingly.
11120         * modules/getcwd (Files): Add m4/getpagesize.m4.
11122 2018-05-13  Bruno Haible  <bruno@clisp.org>
11124         tcgetsid: Fix compilation error on Android.
11125         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use AC_LINK_IFELSE instead of
11126         AC_CHECK_FUNC.
11128 2018-05-13  Bruno Haible  <bruno@clisp.org>
11130         getpass: Fix configure test for Android.
11131         * m4/getpass.m4 (gl_PREREQ_GETPASS): Use AC_LINK_IFELSE instead of
11132         AC_CHECK_FUNC.
11134 2018-05-13  Bruno Haible  <bruno@clisp.org>
11136         ffs: Fix compilation error on Android.
11137         * m4/ffs.m4 (gl_FUNC_FFS): Use AC_LINK_IFELSE instead of AC_CHECK_FUNC.
11139 2018-05-13  Bruno Haible  <bruno@clisp.org>
11141         mkfifo: Fix compilation error on Android.
11142         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Use AC_LINK_IFELSE instead of
11143         AC_CHECK_FUNC.
11145 2018-05-13  Bruno Haible  <bruno@clisp.org>
11147         c-strtod: Fix configure test for Android.
11148         * m4/c-strtod.m4 (gl_C_STRTOD): Use AC_LINK_IFELSE instead of
11149         AC_CHECK_FUNC.
11151 2018-05-13  Bruno Haible  <bruno@clisp.org>
11153         random: Fix compilation error on Android.
11154         * m4/random.m4 (gl_FUNC_RANDOM): Use AC_LINK_IFELSE instead of
11155         AC_CHECK_FUNC.
11157 2018-05-13  Bruno Haible  <bruno@clisp.org>
11159         grantpt: Fix compilation error on Android.
11160         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Use AC_LINK_IFELSE instead of
11161         AC_CHECK_FUNC.
11163 2018-05-13  Bruno Haible  <bruno@clisp.org>
11165         stdioext: Fix compilation errors with newer Android headers.
11166         * lib/stdio-impl.h (fp_, fp_ub): Define differently for Android.
11167         (__SLBF, __SNBF, __SRD, __SWR, __SRW, __SEOF, __SERR, __SOFF): Define
11168         fallbacks for Android.
11169         * lib/fpending.c: Update comments.
11170         * lib/fpurge.c: Likewise.
11171         * lib/freadable.h: Likewise.
11172         * lib/freadable.c: Likewise.
11173         * lib/freadahead.c: Likewise.
11174         * lib/freading.h: Likewise.
11175         * lib/freadptr.c: Likewise.
11176         * lib/fseterr.c: Likewise.
11177         * lib/fwritable.h: Likewise.
11178         * lib/fwritable.c: Likewise.
11179         * lib/fwriting.h: Likewise.
11180         * lib/fwriting.c: Likewise.
11182 2018-05-13  Bruno Haible  <bruno@clisp.org>
11184         doc: Add info about Android versions 2.0 to 8.1.
11185         * doc/**/*.texi: Add info about functions in all released versions of
11186         Bionic.
11188 2018-05-12  Bruno Haible  <bruno@clisp.org>
11190         fseeko: On mingw, don't use the hidden function _fseeki64.
11191         Reported by Eli Zaretskii <eliz@gnu.org>.
11192         * m4/fseeko.m4 (gl_PREREQ_FSEEKO): Test whether _fseeki64 is declared.
11193         * lib/fseeko.c (fseeko): Use _fseeki64 only if it is declared.
11195 2018-05-12  Bruno Haible  <bruno@clisp.org>
11197         glob: Choose 'dirent_type' in a way that works better on mingw.
11198         Reported and suggested by Eli Zaretskii <eliz@gnu.org>.
11199         * lib/glob.c (dirent_type): Define as uint_fast32_t.
11201 2018-05-12  Bruno Haible  <bruno@clisp.org>
11203         execute, spawn-pipe: Avoid warning about redefining 'close'.
11204         Reported by Eli Zaretskii <eliz@gnu.org>.
11205         * lib/execute.c: Undefine 'close' before redefining it.
11206         * lib/spawn-pipe.c: Likewise.
11208 2018-05-12  Bruno Haible  <bruno@clisp.org>
11210         nanosleep: Avoid test failure on mingw when it has nanosleep.
11211         Reported by Eli Zaretskii <eliz@gnu.org>.
11212         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check whether alarm() exists.
11213         If it does not exist, use a simpler test program that does not call
11214         alarm().
11216 2018-05-10  Bruno Haible  <bruno@clisp.org>
11218         lock, cond, thread, tls: Use a different symbol as libpthread witness.
11219         Reported by Devin Hussey <husseydevin@gmail.com>.
11220         Based on a patch by Paul Eggert.
11221         * lib/glthread/lock.h (pthread_in_use): Use 'pthread_mutexattr_gettype'
11222         as witness of libpthread.
11223         * lib/glthread/cond.h (pthread_in_use): Likewise.
11224         * lib/glthread/thread.h (pthread_in_use): Likewise.
11225         * lib/glthread/tls.h (pthread_in_use): Likewise.
11227 2018-05-10  Bruno Haible  <bruno@clisp.org>
11229         cond tests: Fix compilation error on Solaris.
11230         * tests/test-cond.c: Include <unistd.h> before defining 'yield' as a
11231         macro.
11233 2018-05-10  Bruno Haible  <bruno@clisp.org>
11235         doc: Add partial info about Android 4.3.
11236         * doc/*-functions/*.texi: Add info about functions that were added
11237         to Bionic between Android 4.3 and Android 9.0.
11239 2018-05-10  Bruno Haible  <bruno@clisp.org>
11241         doc: Add info about Android 9.0.
11242         * doc/**/*.texi: Add info about functions and headers in Bionic from
11243         Android 9.0.
11245 2018-05-09  Paul Eggert  <eggert@cs.ucla.edu>
11247         af_alg: fix my typo in afalg_buffer
11248         * lib/af_alg.c (afalg_buffer): Fix typo I recently introduced.
11249         (afalg_stream): Simplify and avoid the need for a runtime test
11250         at the end.
11252         af_alg: recover better from crypto failures
11253         * lib/af_alg.c (afalg_stream): Recover from crypto failures if the
11254         input stream is seekable, by repositioning the stream back to
11255         where it was, possibly by just calling sendfile with an offset
11256         arg.  This lets us return -EAFNOSUPPORT instead of -EIO in some
11257         cases, which lets our callers try again with user-mode code.
11258         * modules/crypto/af_alg (Depends-on): Depend on fseeko and ftello
11259         instead of on fflush and lseek.
11261         af_alg: distiguish I/O errors better
11262         * lib/af_alg.c (afalg_buffer, afalg_stream): Return -EAFNOSUPPORT,
11263         not -EIO, if it’s OK for the caller to try again with user-mode code.
11264         (afalg_stream) [!_WIN32 || __CYGWIN__]: Return -EIO (not possibly
11265         some other error number) if fflush fails, as the caller should not
11266         try again that case.
11268         af_alg: avoid gotos
11269         * lib/af_alg.c (afalg_buffer, afalg_stream): Rewrite to avoid
11270         gotos, as they were a source of unreliability and made the code a
11271         bit harder to follow.
11273         af_alg: don’t leak file descriptors into children
11274         * lib/af_alg.c (alg_socket): Use SOCK_CLOEXEC when creating sockets.
11275         This code should be compiled only on recent GNU/Linux platforms
11276         so we shouldn’t have to also depend on the accept4 module.
11278         af_alg: coalesce socket creation
11279         * lib/af_alg.c (alg_socket): New function.
11280         (afalg_buffer, afalg_stream): Use it.  This avoids some
11281         code duplication and gotos.
11283         af_alg: fix file descriptor leak
11284         * lib/af_alg.c (afalg_stream): Close leak.
11286         af_alg: Pacify --enable-gcc-warnings on GCC 8
11287         * lib/af_alg.c (afalg_buffer, afalg_stream): Reorder local decls
11288         and checking to pacify gcc -Wjump-misses-init on GCC 8.
11290 2018-05-07  Paul Eggert  <eggert@cs.ucla.edu>
11292         af_alg: Pacify --enable-gcc-warnings
11293         Problem reported by Assaf Gordon in:
11294         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00041.html
11295         * lib/af_alg.c (afalg_buffer): Move local decls to pacify
11296         gcc -Wjump-misses-init.
11297         * lib/sha512.c (shaxxx_stream): Now static.
11299 2018-05-06  Bruno Haible  <bruno@clisp.org>
11301         af_alg: Add ability to use Linux kernel crypto API on data in memory.
11302         * lib/af_alg.h (afalg_buffer): New declaration.
11303         * lib/af_alg.c (afalg_buffer): New function.
11305 2018-05-06  Bruno Haible  <bruno@clisp.org>
11307         af_alg: Avoid warnings.
11308         * lib/af_alg.h (afalg_stream): Mark fallback declaration as inline.
11309         * m4/af_alg.m4 (gl_AF_ALG): Require AC_C_INLINE.
11311 2018-05-06  Bruno Haible  <bruno@clisp.org>
11313         crypto/{md5,sha1,sha256,sha512} tests: Add benchmarks.
11314         * tests/bench-digest.h: New file.
11315         * tests/bench-md5.c: New file.
11316         * tests/bench-sha1.c: New file.
11317         * tests/bench-sha224.c: New file.
11318         * tests/bench-sha256.c: New file.
11319         * tests/bench-sha384.c: New file.
11320         * tests/bench-sha512.c: New file.
11321         * modules/crypto/md5-tests (Files): Add tests/bench-md5.c,
11322         tests/bench-digest.h.
11323         (Depends-on): Add getrusage, gettimeofday.
11324         (Makefile.am): Add variables to build bench-md5.
11325         * modules/crypto/sha1-tests (Files): Add tests/bench-sha1.c,
11326         tests/bench-digest.h.
11327         (Depends-on): Add getrusage, gettimeofday.
11328         (Makefile.am): Add variables to build bench-sha1.
11329         * modules/crypto/sha256-tests (Files): Add tests/bench-sha224.c,
11330         tests/bench-sha256.c, tests/bench-digest.h.
11331         (Depends-on): Add getrusage, gettimeofday.
11332         (Makefile.am): Add variables to build bench-sha224, bench-sha256.
11333         * modules/crypto/sha512-tests (Files): Add tests/bench-sha384.c,
11334         tests/bench-sha512.c, tests/bench-digest.h.
11335         (Depends-on): Add getrusage, gettimeofday.
11336         (Makefile.am): Add variables to build bench-sha384, bench-sha512.
11338 2018-05-06  Bruno Haible  <bruno@clisp.org>
11340         af_alg: Fix a resource leak.
11341         * lib/af_alg.c (afalg_stream): Close socket before returning -EINVAL.
11342         New local variable 'result'.
11344 2018-05-06  Bruno Haible  <bruno@clisp.org>
11346         af_alg: Fix bug with streams that are not at position 0.
11347         * lib/af_alg.c (afalg_stream): Before sendfile, invoke fflush. Don't
11348         assume that the stream is positioned at position 0.
11349         * lib/af_alg.h (afalg_stream): Mention restriction regarding the state
11350         of the stream.
11351         * lib/md5.h (md5_stream): Likewise.
11352         * lib/sha1.h (sha1_stream): Likewise.
11353         * lib/sha256.h (sha256_stream, sha224_stream): Likewise.
11354         * lib/sha512.h (sha512_stream, sha384_stream): Likewise.
11355         * modules/crypto/af_alg (Depends-on): Add fflush, lseek.
11357         crypto/{md5,sha1,sha256,sha512} tests: Enhance test.
11358         * tests/test-digest.h (test_digest_on_files): Add a test with a FILE
11359         stream that is not positioned at the beginning.
11361 2018-05-06  Bruno Haible  <bruno@clisp.org>
11363         af_alg: Add configure option to enable/disable use of Linux crypto API.
11364         Suggested by Assaf Gordon <assafgordon@gmail.com>.
11365         * m4/af_alg.m4 (gl_AF_ALG): Add AC_ARG_WITH invocation. Define C macro
11366         USE_LINUX_CRYPTO_API.
11367         * lib/af_alg.h: Test USE_LINUX_CRYPTO_API, not HAVE_LINUX_IF_ALG_H.
11368         * lib/af_alg.c: Likewise.
11370 2018-05-06  Bruno Haible  <bruno@clisp.org>
11372         Followup to 'af_alg: New module.'.
11373         * modules/crypto/md5 (Depends-on): Remove sys_socket, sys_stat.
11374         * modules/crypto/sha1 (Depends-on): Likewise.
11375         * modules/crypto/sha256 (Depends-on): Likewise.
11376         * modules/crypto/sha512 (Depends-on): Likewise.
11378 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
11380         crypto/{md5,sha1,sha256,sha512}: simplify
11381         * lib/md5.c (md5_stream):
11382         * lib/sha1.c (sha1_stream):
11383         * lib/sha256.c (shaxxx_stream):
11384         Simplify, partly by assuming C99.
11385         * lib/sha256.c (shaxxx_stream):
11386         New function, which implements both sha256 and sha224.
11387         Simplify, partly by assuming C99.
11388         (sha256_stream, sha224_stream):
11389         Use it to avoid code duplication, removing a FIXME.
11390         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
11391         Likewise.
11393         af_alg: Improve comments.
11394         * lib/af_alg.h: Use imperatives and tighten up wording.
11396 2018-05-05  Bruno Haible  <bruno@clisp.org>
11398         af_alg: Improve comments.
11399         * lib/af_alg.c (afalg_stream): Improve comment about kernel bug.
11401 2018-05-05  Bruno Haible  <bruno@clisp.org>
11403         af_alg: New module.
11404         * lib/af_alg.h: Test HAVE_* macro through '#if', not '#ifdef'.
11405         * lib/af_alg.c: Include "af_alg.h" before the other header files.
11406         * lib/md5.c: Include "af_alg.h" unconditionally.
11407         (md5_stream): Invoke afalg_stream unconditionally.
11408         * lib/sha1.c: Include "af_alg.h" unconditionally.
11409         (sha1_stream): Invoke afalg_stream unconditionally.
11410         * lib/sha256.c: Include "af_alg.h" unconditionally.
11411         (sha256_stream, sha224_stream): Invoke afalg_stream unconditionally.
11412         * lib/sha512.c: Include "af_alg.h" unconditionally.
11413         (sha512_stream, sha384_stream): Invoke afalg_stream unconditionally.
11414         * m4/af_alg.m4: Renamed from m4/linux-if-alg.m4.
11415         (gl_AF_ALG): Renamed from gl_LINUX_IF_ALG_H.
11416         * modules/crypto/af_alg: New file.
11417         * modules/crypto/md5 (Files): Remove files that are now in the
11418         'crypto/af_alg' module.
11419         (Depends-on): Add crypto/af_alg.
11420         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
11421         (Makefile.am): Don't mention af_alg.c here.
11422         * modules/crypto/sha1 (Files): Remove files that are now in the
11423         'crypto/af_alg' module.
11424         (Depends-on): Add crypto/af_alg.
11425         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
11426         (Makefile.am): Don't mention af_alg.c here.
11427         * modules/crypto/sha256 (Files): Remove files that are now in the
11428         'crypto/af_alg' module.
11429         (Depends-on): Add crypto/af_alg.
11430         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
11431         (Makefile.am): Don't mention af_alg.c here.
11432         * modules/crypto/sha512 (Files): Remove files that are now in the
11433         'crypto/af_alg' module.
11434         (Depends-on): Add crypto/af_alg.
11435         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
11436         (Makefile.am): Don't mention af_alg.c here.
11438 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
11440         crypto tests: pacify GCC
11441         * tests/test-digest.h (test_digest_on_files):
11442         Don’t assume digest size fits in int (!).
11444         af_alg: minor style improvements
11445         * lib/af_alg.c (afalg_stream): Prefer C99 style
11446         decl-after-statement, since we’re already assuming C99.  Clarify
11447         by strengthening the bind test and omit unnecessary assignment.
11449 2018-05-05  Bruno Haible  <bruno@clisp.org>
11451         af_alg: Fix bug on empty files.
11452         * lib/af_alg.c (afalg_stream): Ignore the kernel's result if the input
11453         stream is empty.
11455 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
11457         sys-limits.h: new file for crypto and safe I/O
11458         * lib/af_alg.c: Include sys-limits.h.
11459         (MAX_RW_COUNT): Remove.  Use replaced by SYS_BUFSIZE_MAX.
11460         (afalg_stream): Also reject negative sizes for sendfile; they
11461         should not happen and the code is a bit cleaner and faster this way.
11462         * lib/safe-read.c: Include sys-limits.h.
11463         (BUGGY_READ_MAXIMUM): Remove.  All uses replaced by SYS_BUFSIZE_MAX.
11464         * lib/sys-limits.h: New file, with values and commentary derived
11465         from the old safe-read.c and from GNU Emacs sysdep.c.
11466         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
11467         * modules/crypto/sha512, modules/safe-read, modules/safe-write:
11468         Add lib/sys-limits.h to Files section.
11470 2018-05-05  Bruno Haible  <bruno@clisp.org>
11472         af_alg: Improve function signature.
11473         * lib/af_alg.h (afalg_stream): Swap second and third argument.
11474         * lib/af_alg.c (afalg_stream): Likewise.
11475         * lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c: Callers changed.
11477 2018-05-05  Bruno Haible  <bruno@clisp.org>
11479         crypto/{md5,sha1,sha256,sha512}: Fix compilation error (S_TYPEISTMO).
11480         * modules/crypto/md5 (Depends-on): Add 'sys_stat'.
11481         * modules/crypto/sha1 (Depends-on): Likewise.
11482         * modules/crypto/sha256 (Depends-on): Likewise.
11483         * modules/crypto/sha512 (Depends-on): Likewise.
11485 2018-05-05  Bruno Haible  <bruno@clisp.org>
11487         crypto/{md5,sha1,sha256,sha512}: Fix module description.
11488         * modules/crypto/md5 (Depends-on): Add 'sys_socket'.
11489         * modules/crypto/sha1 (Depends-on): Likewise.
11490         * modules/crypto/sha256 (Depends-on): Likewise.
11491         * modules/crypto/sha512 (Depends-on): Likewise.
11493 2018-05-05  Bruno Haible  <bruno@clisp.org>
11495         af_alg: Add documentation.
11496         * lib/af_alg.h: Add comments.
11498 2018-05-05  Bruno Haible  <bruno@clisp.org>
11500         sha512: Add tests.
11501         * tests/test-sha512.c: New file.
11502         * modules/crypto/sha512-tests: New file.
11504 2018-05-05  Bruno Haible  <bruno@clisp.org>
11506         sha256: Add tests.
11507         * tests/test-sha256.c: New file.
11508         * modules/crypto/sha256-tests: New file.
11510 2018-05-05  Bruno Haible  <bruno@clisp.org>
11512         sha1 tests: Add test for sha1_stream.
11513         * tests/test-sha1.c: Include test-digest.h.
11514         (main): Invoke test_digest_on_files on 'sha1_stream'.
11515         * modules/crypto/sha1-tests (Files): Add tests/test-digest.h.
11517 2018-05-05  Bruno Haible  <bruno@clisp.org>
11519         md5 tests: Add test for md5_stream.
11520         * tests/test-digest.h: New file.
11521         * tests/test-md5.c: Include test-digest.h.
11522         (main): Invoke test_digest_on_files on 'md5_stream'.
11523         * modules/crypto/md5-tests (Files): Add tests/test-digest.h.
11525 2018-04-28  Matteo Croce  <mcroce@redhat.com>
11527         md5sum: Use AF_ALG when available.
11528         * lib/md5.c: Include af_alg.h.
11529         (md5_stream): Use afalg_stream when available.
11530         * modules/crypto/md5 (Files): Add the af_alg files.
11531         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
11532         (Makefile.am): Add af_alg.c.
11534 2018-04-28  Matteo Croce  <mcroce@redhat.com>
11536         sha512sum: Use AF_ALG when available.
11537         * lib/sha512.c: Include af_alg.h.
11538         (sha512_stream, sha384_stream): Use afalg_stream when available.
11539         * modules/crypto/sha512 (Files): Add the af_alg files.
11540         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
11541         (Makefile.am): Add af_alg.c.
11543 2018-04-28  Matteo Croce  <mcroce@redhat.com>
11545         sha256sum: Use AF_ALG when available.
11546         * lib/sha256.c: Include af_alg.h.
11547         (sha256_stream, sha224_stream): Use afalg_stream when available.
11548         * modules/crypto/sha256 (Files): Add the af_alg files.
11549         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
11550         (Makefile.am): Add af_alg.c.
11552 2018-04-28  Matteo Croce  <mcroce@redhat.com>
11554         sha1sum: Use AF_ALG when available.
11555         * lib/af_alg.h: New file.
11556         * lib/af_alg.c: New file.
11557         * lib/sha1.c: Include af_alg.h.
11558         (sha1_stream): Use afalg_stream when available.
11559         * m4/linux-if-alg.m4: New file.
11560         * modules/crypto/sha1 (Files): Add the new files.
11561         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
11562         (Makefile.am): Add af_alg.c.
11564 2018-05-05  Bruno Haible  <bruno@clisp.org>
11566         all: Replace more http URLs by https URLs.
11567         * lib/localename.c: Use https: URL.
11568         * lib/timespec.h: Likewise.
11570 2018-05-03  Paul Eggert  <eggert@cs.ucla.edu>
11572         maint: port more modules to GCC 8
11573         * lib/dirname.h (base_name):
11574         * lib/exclude.h (new_exclude):
11575         * lib/xstrndup.h (xstrndup):
11576         Add malloc attribute.
11577         * lib/readutmp.c: Pacify GCC 8 about safe use of strncpy.
11578         * lib/sig-handler.h (get_handler) [SA_SIGINFO]: Simplify.
11579         This pacifies GCC 8.
11580         * m4/gnulib-common.m4 (gl_COMMON_BODY):
11581         Define _GL_ATTRIBUTE_MALLOC here.  All other definitions removed.
11583 2018-05-03  Bruno Haible  <bruno@clisp.org>
11585         Simplify code. Drop support for Borland C++ on Windows.
11586         Reported by Gisle Vanem <gisle.vanem@gmail.com>.
11587         * lib/accept4.c: Simplify 'defined _WIN32 || defined __WIN32__' to just
11588         'defined _WIN32'.
11589         * lib/canonicalize-lgpl.c: Likewise.
11590         * lib/classpath.c: Likewise.
11591         * lib/clean-temp.c: Likewise.
11592         * lib/csharpexec.c: Likewise.
11593         * lib/ctime.c: Likewise.
11594         * lib/dosname.h: Likewise.
11595         * lib/dup2.c: Likewise.
11596         * lib/errno.in.h: Likewise.
11597         * lib/error.c: Likewise.
11598         * lib/euidaccess.c: Likewise.
11599         * lib/execute.c: Likewise.
11600         * lib/fcntl.in.h: Likewise.
11601         * lib/fcntl.c: Likewise.
11602         * lib/filename.h: Likewise.
11603         * lib/findprog.c: Likewise.
11604         * lib/flock.c: Likewise.
11605         * lib/fopen.c: Likewise.
11606         * lib/freopen.c: Likewise.
11607         * lib/fstat.c: Likewise.
11608         * lib/fsync.c: Likewise.
11609         * lib/gc-gnulib.c: Likewise.
11610         * lib/get-rusage-data.c: Likewise.
11611         * lib/getaddrinfo.c: Likewise.
11612         * lib/getdelim.c: Likewise.
11613         * lib/getdtablesize.c: Likewise.
11614         * lib/gethostname.c: Likewise.
11615         * lib/getlogin.c: Likewise.
11616         * lib/getlogin_r.c: Likewise.
11617         * lib/getopt.c: Likewise.
11618         * lib/getpagesize.c: Likewise.
11619         * lib/getpass.c: Likewise.
11620         * lib/getrusage.c: Likewise.
11621         * lib/gettimeofday.c: Likewise.
11622         * lib/glob.c: Likewise.
11623         * lib/inttypes.in.h: Likewise.
11624         * lib/isapipe.c: Likewise.
11625         * lib/javaexec.c: Likewise.
11626         * lib/link.c: Likewise.
11627         * lib/localcharset.c: Likewise.
11628         * lib/localename.h: Likewise.
11629         * lib/localename.c: Likewise.
11630         * lib/localtime.c: Likewise.
11631         * lib/lseek.c: Likewise.
11632         * lib/mbsinit.c: Likewise.
11633         * lib/mkdir.c: Likewise.
11634         * lib/msvc-nothrow.h: Likewise.
11635         * lib/nanosleep.c: Likewise.
11636         * lib/nl_langinfo.c: Likewise.
11637         * lib/nonblocking.c: Likewise.
11638         * lib/nproc.c: Likewise.
11639         * lib/open.c: Likewise.
11640         * lib/openpty.c: Likewise.
11641         * lib/pathmax.h: Likewise.
11642         * lib/pipe-filter-aux.c: Likewise.
11643         * lib/pipe-filter-gi.c: Likewise.
11644         * lib/pipe-filter-ii.c: Likewise.
11645         * lib/pipe.c: Likewise.
11646         * lib/pipe2.c: Likewise.
11647         * lib/poll.c: Likewise.
11648         * lib/popen.c: Likewise.
11649         * lib/posix_openpt.c: Likewise.
11650         * lib/printf-parse.c: Likewise.
11651         * lib/progreloc.c: Likewise.
11652         * lib/putenv.c: Likewise.
11653         * lib/read.c: Likewise.
11654         * lib/relocatable.c: Likewise.
11655         * lib/rename.c: Likewise.
11656         * lib/same-inode.h: Likewise.
11657         * lib/secure_getenv.c: Likewise.
11658         * lib/select.c: Likewise.
11659         * lib/sethostname.c: Likewise.
11660         * lib/setlocale.c: Likewise.
11661         * lib/sigaction.c: Likewise.
11662         * lib/sigprocmask.c: Likewise.
11663         * lib/sleep.c: Likewise.
11664         * lib/spawn-pipe.h: Likewise.
11665         * lib/spawn-pipe.c: Likewise.
11666         * lib/spawni.c: Likewise.
11667         * lib/stat-time.h: Likewise.
11668         * lib/stat-w32.c: Likewise.
11669         * lib/stat.c: Likewise.
11670         * lib/stdio.in.h: Likewise.
11671         * lib/stdio-impl.h: Likewise.
11672         * lib/stdio-read.c: Likewise.
11673         * lib/stdio-write.c: Likewise.
11674         * lib/stdlib.in.h: Likewise.
11675         * lib/strerror_r.c: Likewise.
11676         * lib/strftime-fixes.c: Likewise.
11677         * lib/sys_stat.in.h: Likewise.
11678         * lib/sys_types.in.h: Likewise.
11679         * lib/sys_wait.in.h : Likewise.
11680         * lib/system-quote.h: Likewise.
11681         * lib/system-quote.c: Likewise.
11682         * lib/tmpdir.c: Likewise.
11683         * lib/tzset.c: Likewise.
11684         * lib/uname.c: Likewise.
11685         * lib/unistd.in.h: Likewise.
11686         * lib/utime.in.h: Likewise.
11687         * lib/utime.c: Likewise.
11688         * lib/utimecmp.c: Likewise.
11689         * lib/utimens.c: Likewise.
11690         * lib/vasnprintf.c: Likewise.
11691         * lib/vma-iter.h: Likewise.
11692         * lib/vma-iter.c: Likewise.
11693         * lib/wait-process.c: Likewise.
11694         * lib/wcsftime.c: Likewise.
11695         * lib/wctype.in.h: Likewise.
11696         * lib/write.c: Likewise.
11697         * tests/nap.h: Likewise.
11698         * tests/test-cloexec.c: Likewise.
11699         * tests/test-dup-safer.c: Likewise.
11700         * tests/test-dup2.c: Likewise.
11701         * tests/test-dup3.c: Likewise.
11702         * tests/test-fcntl.c: Likewise.
11703         * tests/test-get-rusage-data.c: Likewise.
11704         * tests/test-getaddrinfo.c: Likewise.
11705         * tests/test-getlogin.h: Likewise.
11706         * tests/test-isatty.c: Likewise.
11707         * tests/test-localename.c: Likewise.
11708         * tests/test-mbrtowc-w32.c: Likewise.
11709         * tests/test-nonblocking.c: Likewise.
11710         * tests/test-nonblocking-pipe-main.c: Likewise.
11711         * tests/test-nonblocking-socket-main.c: Likewise.
11712         * tests/test-nonblocking-socket.h: Likewise.
11713         * tests/test-pipe.c: Likewise.
11714         * tests/test-pipe2.c: Likewise.
11715         * tests/test-poll.c: Likewise.
11716         * tests/test-pthread_sigmask1.c: Likewise.
11717         * tests/test-select.h: Likewise.
11718         * tests/test-sethostname2.c: Likewise.
11719         * tests/test-sigprocmask.c: Likewise.
11720         * tests/test-spawn-pipe-child.c: Likewise.
11721         * tests/test-stat-time.c: Likewise.
11722         * tests/test-system-quote-main.c: Likewise.
11723         * tests/test-utimens-common.h: Likewise.
11724         * tests/test-wcrtomb-w32.c: Likewise.
11725         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
11726         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
11727         * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
11728         * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
11729         * m4/locale-ar.m4 (gt_LOCALE_AR): Likewise.
11730         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
11731         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
11732         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
11733         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
11734         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
11735         * m4/nocrash.m4 (GL_NOCRASH): Likewise.
11736         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET): Likewise.
11737         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
11738         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
11739         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Likewise.
11740         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
11742 2018-05-02  Bruno Haible  <bruno@clisp.org>
11744         localename: Fix test failures on mingw.
11745         * lib/localename.c (gl_locale_name_thread): Remove code specific to
11746         native Windows.
11747         (gl_locale_name_posix): Move code specific to native Windows here.
11748         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
11749         Accept result without charset suffix, as it appears on mingw.
11751 2018-04-28  Paul Smith  <psmith@gnu.org>
11753         bootstrap: Avoid gnulib operations if not needed
11754         * build-aux/bootstrap: Remove unused variable gnulib_mk.
11755         Set $gnulib_extra_files early so it can be overridden in .conf.
11756         Remove redundant --import flag from $gnulib_tool_options.
11757         Set $use_gnulib to false if no gnulib modules or files are needed.
11758         If $use_gnulib is false, don't do anything related to gnulib.
11759         A lot of this is just whitespace (indentation) changes.
11761 2018-04-27  Paul Eggert  <eggert@cs.ucla.edu>
11763         manywarnings: port to GCC 8.0
11764         * build-aux/gcc-warning.spec: Add -Wcatch-value,
11765         -Wclass-memaccess, -Wdo-subscript, -Wextra-semi.  Adjust to the
11766         fact that the GCC help message now mentions operands for
11767         -Warray-bounds, -Wformat, -Wformat-overflow, -Wformat-truncation,
11768         -Wimplicit-fallthrough, -Wplacement-new, -Wshift-overflow,
11769         -Wstrict-aliasing, -Wstrict-overflow, -Wstringop-overflow,
11770         and -Wunused-const-variable.
11771         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wattribute-alias,
11772         -Wcast-align=strict, -Wcast-function-type, -Wif-not-aligned,
11773         -Wmissing-attributes, -Wmultistatement-macros,
11774         -Wpacked-not-aligned, -Wsizeof-pointer-div, -Wstringop-truncation,
11775         -Wsuggest-attribute=cold, -Wsuggest-attribute=malloc.
11777 2018-04-24  Bruno Haible  <bruno@clisp.org>
11779         sys_socket: Make SO_REUSEPORT available across platforms.
11780         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11781         * lib/sys_socket.in.h (SO_REUSEPORT): New macro.
11782         * doc/posix-headers/sys_socket.texi: Mention the issue.
11783         * tests/test-poll.c (SO_REUSEPORT): Remove.
11784         * tests/test-select.h: Include <sys/socket.h>.
11785         (SO_REUSEPORT): Remove.
11786         * modules/select-tests (Depends-on): Add 'sys_socket'.
11788 2018-04-21  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
11790         localcharset: short-circuit the search for an alias on a Mac
11791         * lib/localcharset.c (get_charset_aliases): Add a tautological
11792         UTF-8 entry to speed up the search for this case.
11793         Most machines default to a UTF-8 locale nowadays, so begin the
11794         list of aliases with a dummy UTF-8 entry so it will be found
11795         immediately and a time-consuming search through the rest of
11796         the list is avoided.
11798 2018-04-11  Paul Eggert  <eggert@cs.ucla.edu>
11800         fts: add comment
11801         * lib/fts.c (fts_build): Explain why ==, not >.
11802         See remark by Bernhard Voelker in:
11803         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00041.html
11805         fts: fix bug in find across filesystems
11806         This fixes a bug I introduced last summer.
11807         Problem reported by Kamil Dudka in:
11808         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00033.html
11809         * lib/fts.c (filesystem_type, dirent_inode_sort_may_be_useful)
11810         (leaf_optimization):
11811         New arg for file descriptor.  All callers changed.
11812         (fts_build): Check for whether inodes should be sorted
11813         before closing the directory.
11815 2018-04-07  Bruno Haible  <bruno@clisp.org>
11817         unicase/u*-context: Fix link errors with libunistring <= 0.9.9.
11818         Reported by Genki Sky <sky@genki.is>.
11819         * modules/unicase/u8-prefix-context (configure.ac): Require libunistring
11820         version 0.9.10 or newer.
11821         * modules/unicase/u8-suffix-context (configure.ac): Likewise.
11822         * modules/unicase/u16-prefix-context (configure.ac): Likewise.
11823         * modules/unicase/u16-suffix-context (configure.ac): Likewise.
11824         * modules/unicase/u32-prefix-context (configure.ac): Likewise.
11825         * modules/unicase/u32-suffix-context (configure.ac): Likewise.
11827 2018-04-07  Bruno Haible  <bruno@clisp.org>
11829         execute: Update comment.
11830         * lib/execute.h (execute): Refer to spawn-pipe.h, not pipe.h.
11832 2018-04-05  Paul Eggert  <eggert@cs.ucla.edu>
11834         fts: treat CIFS like NFS
11835         Problem reported by Kamil Dudka in:
11836         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00015.html
11837         * lib/fts.c (S_MAGIC_CIFS): New macro.
11838         (dirent_inode_sort_may_be_useful, leaf_optimization):
11839         Treat CIFS like NFS.
11841 2018-03-28  Bruno Haible  <bruno@clisp.org>
11843         c-stack: Fix possible build failure on some platforms.
11844         * lib/c-stack.c (die): Define whenever this function is referenced.
11846 2018-03-28  Paul Eggert  <eggert@cs.ucla.edu>
11848         time_rz: fix workaround for Mac OS X 10.6 infloop
11849         Problems reported by Charles A. Roelli (Bug#27736#117).
11850         * m4/time_rz.m4 (gl_TIME_RZ): Use a slightly different timestamp.
11851         Also, discard output, which clutters the 'configure' log.
11853 2018-03-27  Paul Eggert  <eggert@cs.ucla.edu>
11855         havelib: port to Solaris 10 /bin/sh
11856         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Use 'test ! EXPR'
11857         instead of '! test EXPR'.
11859 2018-03-26  Paul Eggert  <eggert@cs.ucla.edu>
11861         time_rz: work around Mac OS X 10.6 infloop
11862         * doc/posix-functions/localtime.texi:
11863         * doc/posix-functions/localtime_r.texi: Mention the bug.
11864         * lib/time_rz.c (localtime_rz): Work around the bug.  It’d be
11865         better to fix localtime and localtime_r instead, but that would be
11866         more work and is not needed to fix the Emacs problem.
11867         * m4/time_rz.m4 (gl_TIME_RZ): Detect the bug.
11869 2018-03-24  Jim Meyering  <meyering@fb.com>
11871         test-version-etc.sh: don't use diff directly: use init.sh's compare
11872         We'd rather not sacrifice readable "diff -u" output even for
11873         "diff -c" output (not supported by busybox) or for even less
11874         readable ed-style "diff" output.  So use init.sh's compare function
11875         * tests/test-version-etc.sh: Source init.sh and add "." to path.
11876         Remove "./" from invocation of test-version-etc, so we use path.
11877         And s/diff/compare/.
11878         * modules/version-etc-tests (Depends-on): Add test-framework-sh,
11879         to get init.sh.
11880         Prompted by Eric Blake's comments in
11881         https://lists.gnu.org/r/sed-devel/2018-03/msg00015.html
11883 2018-03-24  Bruno Haible  <bruno@clisp.org>
11885         javacomp-script, javacomp: Add support for Java 10.
11886         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 10 and
11887         target-version 10.
11888         * lib/javaversion.h: Update comments.
11889         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
11890         source_version_index, get_goodcode_snippet, get_failcode_snippet,
11891         TARGET_VERSION_BOUND, target_version_index,
11892         corresponding_classfile_version): Accept source_version 10 and
11893         target_version 10.
11894         * lib/javacomp.h: Update comments accordingly.
11896 2018-03-24  Bruno Haible  <bruno@clisp.org>
11898         javacomp-script, javacomp: Update comments.
11899         * m4/javacomp.m4: Update comments regarding gcj.
11900         * lib/javacomp.h: Likewise.
11902 2018-03-24  Bruno Haible  <bruno@clisp.org>
11904         javacomp-script, javacomp: Fix support for Java 7, 8, 9.
11905         * lib/javaversion.h: Update comments.
11906         * lib/javacomp.h: Likewise.
11907         * lib/javacomp.c (default_target_version, source_version_index,
11908         get_goodcode_snippet, get_failcode_snippet): Recognize "9" instead of
11909         "1.9".
11910         (TARGET_VERSION_BOUND): Bump to 9.
11911         (target_version_index, corresponding_classfile_version): Recognize "9"
11912         instead of "1.9".
11913         (get_source_version_for_javac): New function.
11914         (is_envjavac_nongcj_usable, is_javac_usable): Add
11915         source_version_for_javac argument.
11916         (compile_java_class): Determine and pass source_version_for_javac.
11917         * m4/javacomp.m4: Recognize version '9' instead of '1.9'. When invoking
11918         $JAVAC or javac, pass '-source 1.6' instead of '-source 1.5' when
11919         appropriate.
11921 2018-03-23  Jim Meyering  <meyering@fb.com>
11923         test-version-etc.sh: port to diff without -c
11924         * tests/test-version-etc.sh: Don't use diff's -c option.
11925         This caused spurious test failure on Alpine Linux, which
11926         uses busybox's diff. Reported by Assaf Gordon in
11927         https://lists.gnu.org/r/sed-devel/2018-03/msg00013.html
11929 2018-03-23  Paul Eggert  <eggert@cs.ucla.edu>
11931         c-stack: port to recent GCC build
11932         Problem reported by The Fireplace (Bug#30913).
11933         * lib/c-stack.c (die): Define only if used.
11935 2018-03-20  Bruno Haible  <bruno@clisp.org>
11937         euidaccess: Port to native Windows.
11938         * lib/euidaccess.c (euidaccess): On native Windows, just use _access().
11939         * posix-modules (exclude_for_mingw): Remove 'euidaccess'.
11941 2018-03-19  Bruno Haible  <bruno@clisp.org>
11943         javacomp: Add support for Java 7, 8, 9.
11944         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
11945         source_version_index, get_goodcode_snippet, get_failcode_snippet,
11946         corresponding_classfile_version): Accept source_version 1,7, 1.8, 1.9
11947         and target_version 1,7, 1.8, 1.9.
11948         * lib/javacomp.h: Update comments accordingly.
11950 2018-03-19  Bruno Haible  <bruno@clisp.org>
11952         javacomp-script: Add support for Java 9.
11953         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.9 and
11954         target-version 1.9.
11956 2018-03-16  Bruno Haible  <bruno@clisp.org>
11958         glob: Don't compile replacements on recent glibc systems.
11959         * lib/glob.in.h: Use the usual idiom for the double-inclusion guard. If
11960         REPLACE_GLOB is 0, include the system's <glob.h> and use
11961         _GL_CXXALIAS_SYS.
11962         * m4/glob.m4 (gl_GLOB): Set REPLACE_GLOB instead of GLOB_H. Accept
11963         _GNU_GLOB_INTERFACE_VERSION 2 as well. Delete the file conf$$-globtest
11964         inside the AC_RUN_IFELSE block. Remove GL_GENERATE_GLOB_H conditional.
11965         * modules/glob (Dependencies): Test REPLACE_GLOB instead of GLOB_H.
11966         Remove snippet/warn-on-use.
11967         (configure.ac): Test REPLACE_GLOB instead of GLOB_H.
11968         (Makefile.am): Create glob.h always. Update list of substitutions in
11969         glob.h. Don't depend on $(WARN_ON_USE_H).
11971 2018-03-16  Bruno Haible  <bruno@clisp.org>
11973         glob: Fix link error on native Windows.
11974         * modules/glob (Depends-on): Add 'lstat'.
11976 2018-03-15  Bruno Haible  <bruno@clisp.org>
11978         glob: Fix compilation error in C++ mode.
11979         * lib/glob.in.h (_Restrict_): Define, like in regex.h and spawn.in.h.
11981 2018-03-15  Bruno Haible  <bruno@clisp.org>
11983         host-cpu-c-abi: Support for RISC-V CPU.
11984         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the various
11985         riscv32 and riscv64 ABIs.
11986         References:
11987         https://github.com/riscv/riscv-toolchain-conventions
11988         https://gcc.gnu.org/onlinedocs/gcc-7.3.0/gcc/RISC-V-Options.html
11989         https://gnu-mcu-eclipse.github.io/toolchain/riscv/
11991 2018-03-08  Paul Eggert  <eggert@cs.ucla.edu>
11993         fflush: be more paranoid about libio.h change
11994         Suggested by Eli Zaretskii in:
11995         https://lists.gnu.org/r/emacs-devel/2018-03/msg00270.html
11996         * lib/fbufmode.c (fbufmode):
11997         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
11998         (disable_seek_optimization, rpl_fflush):
11999         * lib/fpending.c (__fpending):
12000         * lib/fpurge.c (fpurge):
12001         * lib/freadable.c (freadable):
12002         * lib/freadahead.c (freadahead):
12003         * lib/freading.c (freading):
12004         * lib/freadptr.c (freadptr):
12005         * lib/freadseek.c (freadptrinc):
12006         * lib/fseeko.c (fseeko):
12007         * lib/fseterr.c (fseterr):
12008         * lib/fwritable.c (fwritable):
12009         * lib/fwriting.c (fwriting):
12010         Look at _IO_ftrylockfile as well as at _IO_EOF_SEEN.
12012 2018-03-07  Paul Eggert  <eggert@cs.ucla.edu>
12014         maint: write-file-hooks -> before-save-hook
12015         write-file-hooks is obsolete since Emacs 22.1 (released June 2007) and
12016         it's time to use the recommended replacement.
12017         Problem reported by Glenn Morris in:
12018         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00008.html
12019         * build-aux/announce-gen, build-aux/bootstrap:
12020         * build-aux/do-release-commit-and-tag, build-aux/gendocs.sh:
12021         * build-aux/git-version-gen, build-aux/gitlog-to-changelog:
12022         * build-aux/gnu-web-doc-update, build-aux/gnupload:
12023         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
12024         * build-aux/update-copyright, build-aux/useless-if-before-free:
12025         * build-aux/vc-list-files:
12026         Update hook usage for files where Gnulib is the canonical source.
12028 2018-03-05  Paul Eggert  <eggert@cs.ucla.edu>
12030         binary-io: pacify gcc -Wunused-parameter
12031         Problem reported by Reuben Thomas in:
12032         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00005.html
12033         * lib/binary-io.h (__gl_setmode, __gl_setmode_check):
12034         Use _GL_UNUSED where appropriate.
12036         fflush: adjust to glibc 2.28 libio.h removal
12037         Problem reported by Daniel P. Berrangé in:
12038         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00000.html
12039         * lib/fbufmode.c (fbufmode):
12040         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
12041         (disable_seek_optimization, rpl_fflush):
12042         * lib/fpending.c (__fpending):
12043         * lib/fpurge.c (fpurge):
12044         * lib/freadable.c (freadable):
12045         * lib/freadahead.c (freadahead):
12046         * lib/freading.c (freading):
12047         * lib/freadptr.c (freadptr):
12048         * lib/freadseek.c (freadptrinc):
12049         * lib/fseeko.c (fseeko):
12050         * lib/fseterr.c (fseterr):
12051         * lib/fwritable.c (fwritable):
12052         * lib/fwriting.c (fwriting):
12053         Check _IO_EOF_SEEN instead of _IO_ftrylockfile.
12054         * lib/stdio-impl.h (_IO_IN_BACKUP) [_IO_EOF_SEEN]:
12055         Define if not already defined.
12057 2018-02-27  Paul Eggert  <eggert@cs.ucla.edu>
12059         environ: fix link error on 32-bit Cygwin
12060         Problem reported for GNU Emacs by Ken Brown in:
12061         https://lists.gnu.org/r/emacs-devel/2018-02/msg00765.html
12062         * lib/unistd.in.h (environ) [__i386__]: Do not redeclare.
12064 2018-02-24  Bruno Haible  <bruno@clisp.org>
12066         mbrtowc tests: Fix regression on glibc.
12067         Reported by Bernhard Voelker.
12068         * tests/test-mbrtowc.c (main): Fix expected value of wc.
12070 2018-02-24  Bruno Haible  <bruno@clisp.org>
12072         striconveha, uniconv/*: Avoid test failures on musl libc.
12073         * tests/iconvsupport.c: New file.
12074         * tests/test-striconveha.c (main): Skip autodetect_jp tests if iconv()
12075         does not support the ISO-2022-JP-2 encoding.
12076         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
12077         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
12078         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
12079         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
12080         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
12081         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
12082         * modules/striconveha-tests (Files): Add tests/iconvsupport.c.
12083         (Makefile.am): Link test-striconveha with iconvsupport.o.
12084         * modules/uniconv/u8-conv-from-enc-tests (Files): Add
12085         tests/iconvsupport.c.
12086         (Makefile.am): Link test-u8-conv-from-enc with iconvsupport.o.
12087         * modules/uniconv/u8-strconv-from-enc-tests (Files): Add
12088         tests/iconvsupport.c.
12089         (Makefile.am): Link test-u8-strconv-from-enc with iconvsupport.o.
12090         * modules/uniconv/u16-conv-from-enc-tests (Files): Add
12091         tests/iconvsupport.c.
12092         (Makefile.am): Link test-u16-conv-from-enc with iconvsupport.o.
12093         * modules/uniconv/u16-strconv-from-enc-tests (Files): Add
12094         tests/iconvsupport.c.
12095         (Makefile.am): Link test-u16-strconv-from-enc with iconvsupport.o.
12096         * modules/uniconv/u32-conv-from-enc-tests (Files): Add
12097         tests/iconvsupport.c.
12098         (Makefile.am): Link test-u32-conv-from-enc with iconvsupport.o.
12099         * modules/uniconv/u32-strconv-from-enc-tests (Files): Add
12100         tests/iconvsupport.c.
12101         (Makefile.am): Link test-u32-strconv-from-enc with iconvsupport.o.
12103 2018-02-24  Bruno Haible  <bruno@clisp.org>
12105         localename: Add support for musl libc.
12106         * m4/localename.m4 (gl_LOCALENAME): Check for <langinfo.h>.
12107         * lib/localename.c (gl_locale_name_thread_unsafe): Use NL_LOCALE_NAME
12108         on Linux platforms which define NL_LOCALE_NAME.
12110 2018-02-24  Bruno Haible  <bruno@clisp.org>
12112         mbrtowc tests: Don't make assumptions about the charset the C locale.
12113         * tests/test-mbrtowc.c (main): For bytes >= 0x80, don't assume a
12114         particular mapping in the C locale.
12116 2018-02-24  Bruno Haible  <bruno@clisp.org>
12118         ptsname_r: Don't expect that this function sets errno.
12119         * tests/test-ptsname_r.c (test_errors): Don't test errno after return
12120         from ptsname_r().
12121         * doc/glibc-functions/ptsname_r.texi: Mention the issue.
12123 2018-02-23  Bruno Haible  <bruno@clisp.org>
12125         xmalloca: pacify gcc -Wbad-function-cast
12126         * lib/xmalloca.h (xmalloca): Insert intermediate cast here as well.
12128 2018-02-23  Paul Eggert  <eggert@cs.ucla.edu>
12130         nl_langinfo: pacify gcc -Wunused-function
12131         * lib/nl_langinfo.c (ctype_codeset): Do not define if
12132         REPLACE_NL_LANGINFO && !GNULIB_defined_CODESET, as it is unused in
12133         this case.  Without this change, I got a diagnostic when building
12134         coreutils on Fedora 27 with gcc 7.3.1 20180130.
12136         same: pacify gcc -Wunused-variable
12137         * lib/same.c (same_nameat) [!CHECK_TRUNCATION]:
12138         Omit unused variable.
12140         malloca: pacify gcc -Wbad-function-cast
12141         * lib/malloca.h (malloca): Pacify gcc -Wbad-function-cast
12142         diagnostic that I got on Fedora 27 with gcc 7.3.1 20180130.
12143         To pacify GCC, I had to cast alloca’s result to some type other
12144         than void * before casting that to uintptr_t.
12146 2018-02-20  Paul Eggert  <eggert@cs.ucla.edu>
12148         utimecmp: new function utimecmpat
12149         * lib/utimecmp.c: Include fcntl.h, sys/stat.h and dirname.h.
12150         Do not include utimens.h.
12151         (utimecmpat): New function, generalizing utimecmp.
12152         (utimecmp): Now a thin layer around utimecmpat.
12153         * modules/utimecmp (Depends-on): Depend on dirname-lgpl, fstatat,
12154         utimensat instead of on lstat and utimens.
12156         same: new function same_nameat
12157         * lib/same.c: Include fcntl.h.
12158         * lib/same.c (same_nameat): New function, generalizing same_name.
12159         (same_name): Now a thin layer around same_nameat.
12160         * m4/same.m4 (gl_SAME): Check for fpathconf, not pathconf.
12161         * modules/same (Depends-on): Depend on fstatat, openat.
12163 2018-02-18  Eric Gallager  <egall@gwmail.gwu.edu>  (tiny change)
12165         warnings: Add support for Objective C.
12166         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)): New
12167         macro.
12169 2018-02-17  Bruno Haible  <bruno@clisp.org>
12171         lock: Fix test-once1 crash on FreeBSD11.
12172         * lib/glthread/lock.h: On FreeBSD, test the weak value of the symbol
12173         'pthread_create', not 'pthread_cancel'.
12175 2018-02-17  Bruno Haible  <bruno@clisp.org>
12177         lock: Add test of gl_once.
12178         * tests/test-once.c: New file.
12179         * modules/lock-tests (Files): Add it.
12180         (Makefile.am): Build and test programs 'test-once1' and 'test-once2'.
12182 2018-02-17  Bruno Haible  <bruno@clisp.org>
12184         thread: Fix compilation error on IRIX.
12185         * lib/glthread/thread.h: Include <unistd.h>. Include <signal.h> when
12186         needed; include it outside the C++ extern "C" {} block.
12187         * doc/posix-headers/pthread.texi: Mention the problem with
12188         pthread_atfork on IRIX.
12190 2018-02-04  Bruno Haible  <bruno@clisp.org>
12192         nl_langinfo: Override the system's nl_langinfo() when needed.
12193         Reported by Jim Meyering.
12194         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Set REPLACE_NL_LANGINFO=1
12195         also when HAVE_LANGINFO_T_FMT_AMPM or HAVE_LANGINFO_ALTMON is 0.
12197 2018-02-04  Bruno Haible  <bruno@clisp.org>
12199         signal-h, monetary, strings: Fix build failure in some cases.
12200         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
12201         * modules/signal-h (Makefile.am): In the GNULIB_* substitutions, use '/'
12202         as delimiter in sed command, not '|'.
12203         * modules/monetary (Makefile.am): Likewise.
12204         * modules/strings (Makefile.am): Likewise.
12206 2018-02-03  Jim Meyering  <meyering@fb.com>
12208         maint.mk: exempt "/proc/filesystems" from "file system" syntax check
12209         * top/maint.mk (sc_file_system): Don't complain about
12210         "/proc/filesystems".
12212 2018-02-03  Bruno Haible  <bruno@clisp.org>
12214         stdlib: Fix compilation error on OpenIndiana.
12215         * lib/stdlib.in.h: Before including <sys/loadavg.h>, include
12216         <sys/time.h>.
12217         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
12218         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
12220 2018-02-03  Bruno Haible  <bruno@clisp.org>
12222         host-cpu-c-abi: Avoid use of 'grep -E' on OpenIndiana.
12223         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX): Require AC_PROG_EGREP,
12224         and use $EGREP instead of 'grep -E'.
12225         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Use 'grep' instead of
12226         'grep -E'.
12228 2018-02-02  Paul Eggert  <eggert@cs.ucla.edu>
12230         malloca: Add a compile-time verification.
12231         * lib/malloca.c (small_t): Verify that it is wide enough.
12232         * modules/malloca (Depends-on): Add verify.
12234 2018-02-02  Bruno Haible  <bruno@clisp.org>
12236         malloca: Add an argument check.
12237         Suggested by Paul Eggert.
12238         * lib/malloca.c (freea): Check against an invalid argument.
12240 2018-02-02  Bruno Haible  <bruno@clisp.org>
12242         localename: Add support for OpenIndiana.
12243         * lib/localename.c (gl_locale_name_thread_unsafe): Add code for
12244         Solaris 11 variants with uselocale() but without getlocalename_l().
12246 2018-02-02  Bruno Haible  <bruno@clisp.org>
12248         malloca, xmalloca: Make multithread-safe.
12249         Reported by Florian Weimer <fweimer@redhat.com>.
12250         Implements an idea by Ondřej Bílka <neleai@seznam.cz>.
12251         * lib/malloca.h (malloca): In the stack allocation case, return a
12252         pointer that is a multiple of 2 * sa_alignment_max.
12253         (sa_increment): Remove enum item.
12254         * lib/xmalloca.h (xmalloca): In the stack allocation case, return
12255         a pointer that is a multiple of 2 * sa_alignment_max.
12256         * lib/malloca.c (NO_SANITIZE_MEMORY): Remove macro.
12257         (MAGIC_NUMBER, MAGIC_SIZE, preliminary_header, HEADER_SIZE, header,
12258         HASH_TABLE_SIZE, mmalloca_results): Remove.
12259         (small_t): New type.
12260         (mmalloca, free): Rewritten.
12261         * lib/malloca.valgrind: Remove file.
12262         * modules/malloca (Files): Remove it.
12263         (Depends-on): Remove verify.
12265 2018-01-31  Bruno Haible  <bruno@clisp.org>
12267         environ: Fix link error on 64-bit Cygwin.
12268         * lib/unistd.in.h (environ): On Cygwin, redeclare with the
12269         __declspec(dllimport) attribute.
12270         * doc/posix-functions/environ.texi: Mention the Cygwin problem.
12272 2018-01-30  Bruno Haible  <bruno@clisp.org>
12274         get-rusage-data: Add support for Minix 3.
12275         * lib/get-rusage-data.c (get_rusage_data): Return 0 on Minix.
12277 2018-01-30  Bruno Haible  <bruno@clisp.org>
12279         vma-iter: Add support for Minix 3.
12280         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Minix.
12281         * lib/vma-iter.c: On Minix, read /proc/<pid>/map.
12283 2018-01-27  Bruno Haible  <bruno@clisp.org>
12285         Fix malfunction of socket functions on HP-UX in 64-bit mode.
12286         * m4/socketlib.m4 (gl_SOCKETLIB): Add comment.
12287         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define
12288         _HPUX_ALT_XOPEN_SOCKET_API.
12289         * modules/accept (Depends-on): Add 'extensions'.
12290         * modules/getpeername (Depends-on): Likewise.
12291         * modules/getsockname (Depends-on): Likewise.
12292         * modules/getsockopt (Depends-on): Likewise.
12293         * modules/recvfrom (Depends-on): Likewise.
12294         * doc/posix-functions/accept.texi: Mention the HP-UX socklen_t problem.
12295         * doc/posix-functions/getpeername.texi: Likewise.
12296         * doc/posix-functions/getsockname.texi: Likewise.
12297         * doc/posix-functions/getsockopt.texi: Likewise.
12298         * doc/posix-functions/recvfrom.texi: Likewise.
12300 2018-01-27  Bruno Haible  <bruno@clisp.org>
12302         getsockname tests: More tests.
12303         * tests/test-getsockname.c (open_server_socket): New function, mostly
12304         copied from test-poll.c.
12305         (main): Check that getsockname fills in addr.
12306         * modules/getsockname-tests (Depends-on): Add the necessary
12307         dependencies.
12308         (test_getsockname_LDADD): Link with $(INET_PTON_LIB).
12310 2018-01-26  Paul Eggert  <eggert@cs.ucla.edu>
12312         manywarnings: fix maintainer comment
12313         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Fix comment so that
12314         it does not mistakenly think that ‘-1)’ is an option.
12316 2018-01-26  Bruno Haible  <bruno@clisp.org>
12318         langinfo: Fix last commit.
12319         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
12320         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_ALTMON.
12322 2018-01-24  Bruno Haible  <bruno@clisp.org>
12324         langinfo, nl_langinfo: Add support for alternative month names.
12325         * m4/langinfo_h.m4 (gl_LANGINFO_H): Define HAVE_LANGINFO_ALTMON.
12326         * lib/langinfo.in.h (ALTMON_1...ALTMON_12): New macros.
12327         * lib/nl_langinfo.c (rpl_nl_langinfo): Treat ALTMON_i like MON_i.
12328         * tests/test-nl_langinfo.c (main): Test ALTMON_*.
12329         * doc/posix-headers/langinfo.texi: Document support of ALTMON_*.
12330         * doc/posix-functions/nl_langinfo.texi: Likewise.
12332 2018-01-23  Paul Eggert  <eggert@cs.ucla.edu>
12334         Merge strftime.c changes from glibc
12335         This incorporates:
12336         2017-11-14 [BZ #10871] Implement alternative month names
12337         2017-11-14 [BZ #10871] Abbreviated alternative month names (%Ob)
12338         2017-06-20 Use locale_t, not __locale_t, throughout glibc
12339         * lib/nstrftime.c (ABALTMON_1) [!COMPILE_WIDE]: New macro.
12340         (LOCALE_PARAM) [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL]:
12341         Use locale_t, not __locale_t.
12342         (a_altmonth, f_altmonth, aam_len) [_NL_CURRENT]: New macros.
12343         (__strftime_internal): Add support for alternate months.
12345 2018-01-23  Bruno Haible  <bruno@clisp.org>
12347         doc: Mention another prerequisite for using Gnulib.
12348         Reported at <https://stackoverflow.com/questions/48378214/>.
12349         * doc/gnulib-tool.texi (Initial import): Mention requirement to use
12350         AC_CONFIG_HEADERS.
12352 2018-01-22  Mathieu Lirzin  <mthl@gnu.org>
12354         build: GuixSD doesn't have /bin/bash
12355         * Makefile (SHELL): Search 'bash' in the PATH environment variable.
12357 2018-01-21  Bruno Haible  <bruno@clisp.org>
12359         Avoid test failures on Microsoft Windows Subsystem for Linux.
12360         * tests/test-fcntl.c (main): Allow a different errno.
12361         * tests/test-rename.h (test_rename): Likewise.
12362         * tests/test-renameat.c (main): Likewise.
12363         * tests/test-renameat2.c (main): Likewise.
12365 2018-01-14  Paul Eggert  <eggert@cs.ucla.edu>
12367         filenamecat: make base a suffix of result
12368         * lib/filenamecat-lgpl.c (longest_relative_suffix): Remove.
12369         (mfile_name_concat): Always make BASE a suffix of the result, as
12370         cp expects this.  To implement this, separate with '.' instead of
12371         '/' in some rare cases.  Clarify spec to say ./BASE not BASE.
12372         * tests/test-filenamecat.c (main): Adjust tests to match
12373         current behavior.  Check that BASE_IN_RESULT points to
12374         a copy of BASE and is a suffix of the resultk, and that DIR
12375         is a prefix of the result that is no longer than the prefix
12376         indicated by BASE_IN_RESULT.
12378 2018-01-04  Mathieu Lirzin  <mthl@gnu.org>
12380         update-copyright: Handle use of ©
12381         * build-aux/update-copyright ($circle_c_re): Update regex to
12382         handle use of © in headers.
12384 2018-01-04  Tim Rühsen  <tim.ruehsen@gmx.de>
12386         Fix -Wundef warning in user-included header lib/cdefs.h.
12387         * lib/cdefs.h: Check if defined before using __USE_FORTIFY_LEVEL.
12389 2018-01-04  Bruno Haible  <bruno@clisp.org>
12391         pthread_sigmask: Avoid compilation error on mingw.
12392         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
12393         * lib/signal.in.h (pthread_sigmask): Don't declare it it's defined as a
12394         macro.
12396 2018-01-03  Paul Eggert  <eggert@cs.ucla.edu>
12398         test-framework-sh: ‘ps -ef’, not ‘ps ef’
12399         * tests/init.sh (rand_bytes_): Put ‘-’ before new-style ps options.
12400         Suggested by Bob Proulx (Bug#29968).
12401         * build-aux/mktempd (rand_bytes): Make it like tests/init.sh.
12403 2018-01-02  Eric Blake  <eblake@redhat.com>
12405         stat-time: silence -Wunused-parameter regression
12406         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
12407         Prefer attribute over cast-to-void.
12408         (stat_time_normalize): Mark st as potentially unused.
12410 2018-01-02  Paul Eggert  <eggert@cs.ucla.edu>
12412         test-framework-sh: avoid netstat
12413         Problem reported by Kristýna Streitová (Bug#29947).
12414         * tests/init.sh (rand_bytes_): Stop using netstat, as it's
12415         deprecated on SuSE and it's not that important anyway.
12417 2018-01-01  Jim Meyering  <meyering@fb.com>
12419         update-copyright: add code to handle more special cases
12420         After running "make update-copyright" this year, five files
12421         required additional manual changes.  Automate those adjustments
12422         for next year.
12423         * Makefile (_year_and_prev): Define.
12424         (update-copyright): Add perl commands to induce this year's post-
12425         update-copyright adjustments.
12427 2018-01-01  Paul Eggert  <eggert@cs.ucla.edu>
12429         version-etc: new year
12430         * build-aux/gendocs.sh (version):
12431         * doc/gendocs_template:
12432         * doc/gendocs_template_min:
12433         * doc/gnulib.texi:
12434         * lib/version-etc.c (COPYRIGHT_YEAR):
12435         Update copyright dates by hand in templates and the like.
12437         maint: fix 'make update-copyright'
12438         * Makefile (update-copyright): Adjust to 2016-11-23 change
12439         to config/srclist-update, which changed the format of srclist.txt.
12441 2017-12-30  Paul Eggert  <eggert@cs.ucla.edu>
12443         chdir-safer: remove this module
12444         * MODULES.html.sh (func_all_modules): Remove chdir-safer.
12445         * NEWS: Document removal.
12446         * lib/chdir-safer.c, lib/chdir-safer.h, m4/afs.m4, m4/chdir-safer.m4:
12447         * modules/chdir-safer: Remove these files.
12449 2017-12-29  Samuel Thibault  <samuel.thibault@gnu.org>
12451         Add cross-compilation results for GNU/Hurd.
12452         * m4/calloc.m4: Add GNU/Hurd guess.
12453         * m4/cbrtl.m4: Likewise.
12454         * m4/ceil.m4: Likewise.
12455         * m4/ceilf.m4: Likewise.
12456         * m4/ceill.m4: Likewise.
12457         * m4/chown.m4: Likewise.
12458         * m4/duplocale.m4: Likewise.
12459         * m4/exp2l.m4: Likewise.
12460         * m4/expm1.m4: Likewise.
12461         * m4/fchdir.m4: Likewise.
12462         * m4/floor.m4: Likewise.
12463         * m4/floorf.m4: Likewise.
12464         * m4/fmod.m4: Likewise.
12465         * m4/fmodf.m4: Likewise.
12466         * m4/fmodl.m4: Likewise.
12467         * m4/getcwd.m4: Likewise.
12468         * m4/getgroups.m4: Likewise.
12469         * m4/gettimeofday.m4: Likewise.
12470         * m4/hypot.m4: Likewise.
12471         * m4/hypotf.m4: Likewise.
12472         * m4/hypotl.m4: Likewise.
12473         * m4/link-follow.m4: Likewise.
12474         * m4/link.m4: Likewise.
12475         * m4/linkat.m4: Likewise.
12476         * m4/log.m4: Likewise.
12477         * m4/log10.m4: Likewise.
12478         * m4/log10f.m4: Likewise.
12479         * m4/log1p.m4: Likewise.
12480         * m4/log1pf.m4: Likewise.
12481         * m4/log1pl.m4: Likewise.
12482         * m4/log2.m4: Likewise.
12483         * m4/log2f.m4: Likewise.
12484         * m4/logf.m4: Likewise.
12485         * m4/lstat.m4: Likewise.
12486         * m4/malloc.m4: Likewise.
12487         * m4/mbrlen.m4: Likewise.
12488         * m4/mbrtowc.m4: Likewise.
12489         * m4/mkdir.m4: Likewise.
12490         * m4/mkfifo.m4: Likewise.
12491         * m4/mknod.m4: Likewise.
12492         * m4/mkstemp.m4: Likewise.
12493         * m4/modf.m4: Likewise.
12494         * m4/modff.m4: Likewise.
12495         * m4/modfl.m4: Likewise.
12496         * m4/printf.m4: Likewise.
12497         * m4/pselect.m4: Likewise.
12498         * m4/ptsname.m4: Likewise.
12499         * m4/putenv.m4: Likewise.
12500         * m4/readlink.m4: Likewise.
12501         * m4/realloc.m4: Likewise.
12502         * m4/remainder.m4: Likewise.
12503         * m4/remainderf.m4: Likewise.
12504         * m4/remainderl.m4: Likewise.
12505         * m4/rmdir.m4: Likewise.
12506         * m4/round.m4: Likewise.
12507         * m4/roundf.m4: Likewise.
12508         * m4/roundl.m4: Likewise.
12509         * m4/select.m4: Likewise.
12510         * m4/setenv.m4: Likewise.
12511         * m4/signbit.m4: Likewise.
12512         * m4/sleep.m4: Likewise.
12513         * m4/stat.m4: Likewise.
12514         * m4/strerror.m4: Likewise.
12515         * m4/strtok_r.m4: Likewise.
12516         * m4/symlink.m4: Likewise.
12517         * m4/symlinkat.m4: Likewise.
12518         * m4/trunc.m4: Likewise.
12519         * m4/truncf.m4: Likewise.
12520         * m4/truncl.m4: Likewise.
12521         * m4/tzset.m4: Likewise.
12522         * m4/ungetc.m4: Likewise.
12523         * m4/usleep.m4: Likewise.
12524         * m4/wcwidth.m4: Likewise.
12526 2017-12-28  Bruno Haible  <bruno@clisp.org>
12528         gnulib-tool: Make --conditional-dependencies work better.
12529         Reported by Dmitry Selyutin <ghostman.sd@gmail.com>.
12530         * gnulib-tool (Options): Don't reject the combination of
12531         --conditional-dependencies with --with-tests.
12532         (func_emit_autoconf_snippets): Add argument referenceable_modules.
12533         Don't reference $modules.
12534         (func_import, func_create_testdir): Pass it.
12536 2017-12-19  Paul Eggert  <eggert@cs.ucla.edu>
12538         regex: use re_malloc etc. consistently
12539         Problem and original patch reported by Arnold Robbins in:
12540         https://sourceware.org/ml/libc-alpha/2017-12/msg00241.html
12541         * lib/regcomp.c (re_comp):
12542         * lib/regexec.c (push_fail_stack, build_trtable, match_ctx_clean):
12543         Use re_malloc/re_realloc/re_free instead of malloc/realloc/free.
12545 2017-12-15  Tim Rühsen  <tim.ruehsen@gmx.de>
12546             Paul Eggert  <eggert@cs.ucla.edu>
12548         glob: Silence warning about void pointer arithmetic.
12549         * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
12550         arithmetic.
12552 2017-12-15  Bruno Haible  <bruno@clisp.org>
12554         spawn-pipe: Silence a clang warning.
12555         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
12556         * lib/spawn-pipe.c: Disable clang -Wconditional-uninitialized warnings
12557         in this file.
12559 2017-12-12  Paul Eggert  <eggert@cs.ucla.edu>
12561         explicit_bzero: port to macOS + Clang 9.0.0
12562         Problem reported by Marcus Johnson (Bug#29658).
12563         * lib/explicit_bzero.c (explicit_bzero) [__clang__]:
12564         Don’t use asm.
12566 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
12568         doc: Improve explanation of supporting relocatable libraries.
12569         * doc/relocatable-maint.texi (Supporting Relocation): Explain
12570         properly how to build the relocatable module for
12571         libraries. (Method and example code from Bruno Haible.)
12573 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
12575         doc: Use better texinfo tags in a few cases.
12576         * doc/gnulib.texi (Extending Gnulib): Use @option or @command
12577         instead of @samp in a few places.
12579 2017-12-11  Bruno Haible  <bruno@clisp.org>
12581         unistr/base: Update comment.
12582         * lib/unistr.in.h: Update comment about u*_mbtouc_unsafe functions.
12584 2017-12-10  Pádraig Brady  <P@draigBrady.com>
12586         test-faccessat.c: unlink temp file to avoid subsequent test failure
12587         * tests/test-faccessat.c: Remove the file to avoid failure
12588         to open the file on subsequent runs due to being created
12589         with no permissions.
12591 2017-12-10  Bruno Haible  <bruno@clisp.org>
12593         doc: New sect. "Modifying the build rules of a Gnulib import directory".
12594         * doc/gnulib-tool.texi (Modified build rules): New node.
12596 2017-12-10  Bruno Haible  <bruno@clisp.org>
12598         doc: Tweak wording.
12599         * doc/gnulib-tool.texi (Multiple instances): Talk about "programs", not
12600         "binaries".
12602 2017-12-05  Sam Steingold  <sds@gnu.org>
12603             Bruno Haible  <bruno@clisp.org>
12605         no-c++: Avoid "egrep: repetition-operator operand invalid" error.
12606         * m4/no-c++.m4 (gt_NO_CXX): Don't use '+' characters nor spaces in the
12607         AC_EGREP_CPP pattern.
12609 2017-12-03  Bruno Haible  <bruno@clisp.org>
12611         all: Replace more http URLs by https URLs.
12612         * lib/sm3.h, lib/sm3.c, tests/test-sm3.c: Use https: URL.
12613         * lib/unigbrk/u-grapheme-breaks.h: Likewise.
12614         * lib/unigbrk/uc-grapheme-breaks.c: Likewise.
12615         * tests/unigbrk/test-uc-grapheme-breaks.c: Likewise.
12617 2017-11-28  Paul Eggert  <eggert@cs.ucla.edu>
12619         Port better to CentOS 5
12620         Problems reported by Tom G. Christensen in:
12621         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00053.html
12622         * doc/glibc-functions/strverscmp.texi (strverscmp):
12623         Document strverscmp bug with glibc 2.9 and earlier.
12624         * doc/posix-functions/tzset.texi (tzset):
12625         Document that TZ with angle brackets is POSIX-2001 and later.
12626         * tests/test-nstrftime.c: Include unistd.h.
12627         (TZ_ANGLE_BRACKETS_SHOULD_WORK): New macro.
12628         (TZ): Use it to skip tests with angle brackets in TZ,
12629         for older systems.
12631         stat: add missing module dependencies
12632         * modules/lstat, modules/stat, modules/utimensat (Depends-on):
12633         Add stat-time.
12635 2017-11-28  Benno Schulenberg  <bensberg@telfort.nl>
12637         stat: fix compilation failure on macOS Sierra
12638         Reported by Marius Schamschula <mschamschula@gmail.com> in:
12639         https://savannah.gnu.org/bugs/?52546
12640         * lib/stat.c: Add missing include of stat-time.h.
12642 2017-11-28  Jim Meyering  <meyering@fb.com>
12644         test-faccessat.c: correct BASE definition to avoid parallel test failure
12645         * tests/test-faccessat.c (BASE): Define using this file's name, not
12646         that of test-lstat.c.  Using the latter caused this test to fail
12647         sometimes when run concurrently with test-lstat.
12649 2017-11-27  Daiki Ueno  <ueno@gnu.org>
12651         unicase: fix VPATH build
12652         * modules/unicase/special-casing (Makefile.am): Ensure that the
12653         base directory is created when generating
12654         unicase/special-casing.h.
12656 2017-11-27  Daiki Ueno  <ueno@gnu.org>
12658         libunistring: update to Unicode 9.0.0
12659         * lib/gen-uni-tables.c (fill_properties): Recognize
12660         Sentence_Terminal and Prepended_Concatenation_Mark.
12661         (is_property_default_ignorable_code_point): Exclude U+08E2.
12662         (fill_arabicshaping): Allow missing whitespace when parsing;
12663         recognize "AFRICAN FEH", "AFRICAN QAF", and "AFRICAN MOON".
12664         (output_blocks): Increase the element size of the level1 table to
12665         accommodate more blocks.
12666         (get_lbp): Recognize ZWJ, E_Base, and E_Modifier characters;
12667         Update each class according to the standard.
12668         (get_wbp): Recognize ZWJ, E_Base, E_Modifier, Glue_After_Zwj, and
12669         E_Base_GAZ characters.
12670         (output_gbp_table): Recognize ZWJ, E_Base, E_Modifier,
12671         Glue_After_Zwj, and E_Base_GAZ characters.
12672         * lib/unictype.in.h (UC_JOINING_GROUP_AFRICAN_FEH)
12673         (UC_JOINING_GROUP_AFRICAN_QAF, UC_JOINING_GROUP_AFRICAN_MOON): New
12674         enum value.
12675         * lib/unilbrk/lbrktables.h (LBP_ZWJ, LBP_EB, LBP_EM): New enum
12676         value.
12677         * lib/unilbrk/lbrktables.c (unilbrk_table): Extend the table with
12678         LBP_ZWJ, LBP_EB, and LBP_EM.
12679         * lib/uniwbrk.in.h (WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, WBP_EBG): New
12680         enum value.
12681         * lib/uniwbrk/u-wordbreaks.h: Implement WB3c, WB15, and WB16.
12682         * lib/uniwbrk/wbrktable.h (uniwbrk_prop_index): New variable
12683         declaration.
12684         * lib/uniwbrk/wbrktable.c (uniwbrk_prop_index): New variable.
12685         (uniwbrk_table): Implement WB14.
12686         * tests/uniwbrk/test-uc-wordbreaks.c (wordbreakproperty_to_string):
12687         Check WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, and WBP_EBG.
12688         * modules/unigbrk/u{32,16,8}-grapheme-breaks: No longer depend on
12689         uc-is-grapheme-break.
12690         * modules/unigbrk/uc-grapheme-breaks: New module.
12691         * modules/unigbrk/uc-grapheme-breaks-tests: New module.
12692         * lib/unigbrk.in.h (GBP_ZWJ, GBP_EB, GBP_EM, GBP_GAZ, GBP_EBG): New
12693         enum value.
12694         (uc_grapheme_breaks): New function, replacing uc_is_grapheme_break.
12695         * lib/unigbrk/u-grapheme-breaks.h: New file.
12696         * lib/unigbrk/u{32,16,8}-grapheme-breaks.c: Rewrite using
12697         u-grapheme-breaks.h instead of uc_is_grapheme_break.
12698         * lib/unigbrk/uc-grapheme-breaks.c: New file.
12699         * lib/unigbrk/uc-is-grapheme-break.c: Partially update to TR29 rev
12700         29.
12701         * tests/unigbrk/test-uc-gbrk-prop.c
12702         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
12703         GBP_GAZ, and GBP_EBG.
12704         * tests/unigbrk/test-uc-grapheme-breaks.c: New test.
12705         * tests/unigbrk/test-uc-is-grapheme-break.c
12706         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
12707         GBP_GAZ, and GBP_EBG.
12708         (main): Skip unsupported rules involving 3 or more characters,
12709         namely GB10, GB12, and GB13.
12710         * lib/uniwidth/width.c (nonspacing_table_data): Update.
12711         * all generated files under lib/uni* and tests/uni*: Regenerate.
12712         * all the affected modules: Bump version.
12714 2017-11-26  Bruno Haible  <bruno@clisp.org>
12716         strfmon_l: Fix compilation error with glibc 2.5.
12717         Reported by Tom G. Christensen <tgc@jupiterrise.com>
12718         in <https://lists.gnu.org/r/bug-gnulib/2017-11/msg00051.html>.
12719         * lib/monetary.in.h: Include also <locale.h>.
12721 2017-11-24  Paul Eggert  <eggert@cs.ucla.edu>
12723         posixtm: remove PDS_LEADING_YEAR
12724         This changes the API slightly, in a hopefully-innocuous way.
12725         Without this change the code had undefined behavior when a
12726         caller specified neither PDS_LEADING_YEAR nor PDS_TRAILING_YEAR.
12727         Problem reported by Pádraig Brady in:
12728         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00048.html
12729         * NEWS: Mention this.
12730         * lib/posixtm.c (posix_time_parse): Treat the absence of
12731         PDS_TRAILING_YEAR as if PDS_LEADING_YEAR were present.
12732         * lib/posixtm.h (PDS_LEADING_YEAR): Remove (actually, leave it
12733         present, but define it as zero, for compatibility with existing
12734         source code).  All other PDS_* values moved up.
12735         * tests/test-posixtm.c (LY): New macro.
12736         (T): Use it.  Do not expect a particular numeric encoding
12737         for PDS_CENTURY etc.
12739 2017-11-23  Paul Eggert  <eggert@cs.ucla.edu>
12741         stat: work around Solaris bug with tv_nsec < 0
12742         * doc/posix-functions/fstat.texi (fstat):
12743         * doc/posix-functions/fstatat.texi (fstatat):
12744         * doc/posix-functions/lstat.texi (lstat):
12745         * doc/posix-functions/stat.texi (stat):
12746         Mention Solaris 11 bug.
12747         * lib/fstat.c, lib/fstatat.c, lib/lstat.c: Include stat-time.h.
12748         * lib/fstat.c (rpl_fstat) [!WINDOWS_NATIVE]:
12749         * lib/lstat.c (rpl_lstat):
12750         * lib/stat.c (rpl_stat):
12751         Normalize resulting timestamps.
12752         * lib/fstatat.c (normal_fstatat): New function.
12753         (rpl_fstatat): Use it.
12754         * lib/stat-time.h: Include intprops.h, errno.h, stddef.h.
12755         (stat_time_normalize): New function.
12756         * m4/fstat.m4 (gl_FUNC_FSTAT):
12757         * m4/fstatat.m4 (gl_FUNC_FSTATAT):
12758         * m4/lstat.m4 (gl_FUNC_LSTAT):
12759         * m4/stat.m4 (gl_FUNC_STAT):
12760         Replace on Solaris.
12761         * modules/fstat (Depends-on):
12762         * modules/fstatat (Depends-on):
12763         Add stat-time.
12764         * modules/stat-time (Depends-on): Add errno, intprops.
12766 2017-11-22  Paul Eggert  <eggert@cs.ucla.edu>
12768         regex: merge from glibc
12769         * lib/regcomp.c (init_word_char): Add comments.
12771 2017-11-20  Paul Eggert  <eggert@cs.ucla.edu>
12773         regex: merge from glibc
12774         * lib/regcomp.c (__regcomp, __regfree) [_LIBC]: Now hidden.
12775         * lib/regex_internal.h (internal_function): Remove.
12776         All uses removed.
12778 2017-11-20  Bruno Haible  <bruno@clisp.org>
12780         crypto/gc-sm3: Fix buffer overrun.
12781         * lib/gc-gnulib.c (MAX_DIGEST_SIZE): Bump to 32.
12782         Reported by Coverity.
12784 2017-11-12  Jim Meyering  <meyering@fb.com>
12786         maint: shorten https://lists.gnu.org/archive/html/... links
12787         Each /archive/html/ part can be replace with /r/.
12788         Run this to induce the change:
12789         git grep -l archive/html|xargs perl -pi -e 's,/archive/html/,/r/,g'
12790         * ChangeLog: Perform that substitution.
12791         * Makefile: Likewise.
12792         * STATUS-libposix: Likewise.
12793         * build-aux/bootstrap: Likewise.
12794         * doc/maintain.texi: Likewise.
12795         * gnulib-tool: Likewise.
12796         * lib/allocator.h: Likewise.
12797         * lib/argp-ba.c: Likewise.
12798         * lib/argp-pv.c: Likewise.
12799         * lib/canon-host.c: Likewise.
12800         * lib/canonicalize-lgpl.c: Likewise.
12801         * lib/float.in.h: Likewise.
12802         * lib/fstat.c: Likewise.
12803         * lib/getdelim.c: Likewise.
12804         * lib/getprogname.c: Likewise.
12805         * lib/glthread/thread.h: Likewise.
12806         * lib/intprops.h: Likewise.
12807         * lib/mbsrtowcs-state.c: Likewise.
12808         * lib/safe-read.c: Likewise.
12809         * lib/signal.in.h: Likewise.
12810         * lib/stat.c: Likewise.
12811         * lib/stdbool.in.h: Likewise.
12812         * lib/stdio-impl.h: Likewise.
12813         * lib/stdio.in.h: Likewise.
12814         * lib/sysexits.in.h: Likewise.
12815         * lib/timespec.h: Likewise.
12816         * lib/wcsrtombs-state.c: Likewise.
12817         * m4/alloca.m4: Likewise.
12818         * m4/extern-inline.m4: Likewise.
12819         * m4/fstatat.m4: Likewise.
12820         * m4/gnulib-common.m4: Likewise.
12821         * m4/lib-ignore.m4: Likewise.
12822         * m4/printf.m4: Likewise.
12823         * m4/regex.m4: Likewise.
12824         * m4/stat-size.m4: Likewise.
12825         * m4/std-gnu11.m4: Likewise.
12826         * m4/stdbool.m4: Likewise.
12827         * m4/sys_types_h.m4: Likewise.
12828         * m4/threadlib.m4: Likewise.
12829         * m4/vararrays.m4: Likewise.
12830         * pygnulib/GLImport.py: Likewise.
12831         * tests/test-exp.h: Likewise.
12832         * tests/test-exp2.h: Likewise.
12833         * tests/test-expm1.h: Likewise.
12834         * tests/test-fflush2.c: Likewise.
12835         * tests/test-getopt_long.h: Likewise.
12836         * tests/test-intprops.c: Likewise.
12837         * tests/test-log.h: Likewise.
12838         * tests/test-log10.h: Likewise.
12839         * tests/test-log1p.h: Likewise.
12840         * tests/test-log2.h: Likewise.
12841         * tests/test-printf-posix.h: Likewise.
12842         * tests/test-regex.c: Likewise.
12843         * tests/test-snprintf-posix.h: Likewise.
12844         * tests/test-sprintf-posix.h: Likewise.
12845         * tests/test-stdalign.c: Likewise.
12846         * tests/test-stdbool.c: Likewise.
12847         * tests/test-vasnprintf-posix.c: Likewise.
12848         * tests/test-vasprintf-posix.c: Likewise.
12849         * top/maint.mk: Likewise.
12851 2017-11-12  Bruno Haible  <bruno@clisp.org>
12853         faccessat: Make the last change more robust.
12854         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Require
12855         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Treat "guessing yes" like "yes".
12857 2017-11-11  Paul Eggert  <eggert@cs.ucla.edu>
12859         faccessat: port to macOS (Bug#29231)
12860         macOS faccessat has the same bug that lstat does: if the file
12861         name ends in '/' it ignores the trailing slash.
12862         Problem reported for Emacs by Vincent Zhang.
12863         * doc/posix-functions/faccessat.texi (faccessat): Document this.
12864         * lib/faccessat.c (_GL_INCLUDING_UNISTD_H): Define and undef
12865         around the initial includes.  Include errno.h, string.h, sys/stat.h.
12866         (orig_faccessat) [HAVE_FACCESSAT]: New function.
12867         Include "unistd.h" after defining it.
12868         (rpl_faccessat) [HAVE_FACCESSAT]: New implementation.
12869         * lib/unistd.in.h (faccessat) [REPLACE_FACCESSAT]:
12870         Handle in the usual way.
12871         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Replace faccessat if
12872         lstat dereferences symlinks, since faccessat is likely to
12873         have the same problem.
12874         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Default REPLACE_ACCESSAT.
12875         * modules/faccessat (Depends-on): Add fstatat.
12876         Depend if REPLACE_FACCESSAT is 1, too.
12877         (configure.ac): Link if REPLACE_FACCESSAT is 1.
12878         * modules/faccessat-tests (Depends-on): Add symlink.
12879         * modules/unistd (unistd.h): Substitute REPLACE_FACCESSAT.
12880         * tests/test-faccessat.c (main): Test for the bug.
12882 2017-11-11  Bruno Haible  <bruno@clisp.org>
12884         getprogname: Fix compilation error on IRIX.
12885         * lib/getprogname.c (getprogname) [__sgi]: Fix type of local variable
12886         'namesize'.
12888 2017-11-11  Bruno Haible  <bruno@clisp.org>
12890         year2038: Tweak last patch.
12891         * m4/year2038.m4 (gl_YEAR2038): Correct indentation.
12893 2017-11-06  Paul Eggert  <eggert@cs.ucla.edu>
12895         year2038: be more insistent about 64-bit time_t
12896         Applications requiring access to arbitrary files should not be
12897         built with 32-bit time_t on hosts that have 64-bit timestamps,
12898         as this can lead to real trouble at runtime.
12899         * m4/year2038.m4 (gl_YEAR2038): Do not require AC_CANONICAL_HOST.
12900         Check on all systems, not just MinGW.  Use a heuristic involving
12901         TIME_T_32_BIT_OK, cross_compiling, and the touch command to
12902         output a failure or just a warning, to make it more likely that
12903         builders will select 64-bit time_t.
12905 2017-11-05  Paul Eggert  <eggert@cs.ucla.edu>
12907         havelib: fix typo in previous change
12908         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Fix typo.
12910         Don’t use AC_EGREP_CPP if affected by CFLAGS
12911         * m4/float_h.m4 (gl_FLOAT_H):
12912         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI):
12913         * m4/lib-ld.m4 (AC_LIB_PROG_LD):
12914         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB):
12915         * m4/year2038.m4 (gl_YEAR2038):
12916         Prefer AC_COMPILE_IFELSE to AC_EGREP_CPP when testing conditions
12917         likely to be affected by the choice of CFLAGS, since CFLAGS are
12918         not used by AC_EGREP_CPP.  Without this patch, ‘./configure
12919         CFLAGS="-m32"’ fails on gzip with GNU/Linux x86-64.
12921         fstatat: pacify GCC on unusual platform
12922         * lib/fstatat.c (orig_fstatat) [!HAVE_WORKING_FSTATAT_ZERO_FLAG]:
12923         Omit, as it’s unused in this case.
12925 2017-10-29  Paul Eggert  <eggert@cs.ucla.edu>
12927         timespec: prefer ‘assume’ to ‘assure’
12928         This avoids some runtime tests.  The rest of the module makes
12929         similar assumptions and there is little point to testing here.
12930         * lib/timespec.h: Include verify.h instead of assure.h.
12931         (timespec_cmp): Use ‘assume’, not ‘assure’.
12932         Also, remove an unnecessary cast to ‘int’, as lots of other
12933         code in this module now causes -Wconversion to complain, and
12934         this is a problem with -Wconversion not with the code.
12936         * modules/timespec (Depends-on): Depend on ‘verify’, not ‘assure’.
12938         Port recent gnulib-tool change to Dash
12939         * gnulib-tool (func_create_testdir): Don't assume that the shell
12940         retokenizes after expanding "$@" inside the call to
12941         func_execute_command.  Dash 0.5.8-2.1ubuntu2 does not.
12943 2017-10-27  Jim Meyering  <meyering@fb.com>
12945         timespec.h: use "assure" to avoid a spurious warning
12946         * lib/timespec.h: Include "assure.h" and use it to help
12947         gcc7's -Wstrict-overflow avoid a false positive warning
12948         for a use in coreutils' ls.c.  Suggested by Paul Eggert in
12949         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00007.html
12950         * modules/timespec (Depends-on): Add assure.
12952 2017-10-29  Bruno Haible  <bruno@clisp.org>
12954         Avoid several test failures with traditional locales on Haiku.
12955         * m4/locale-ar.m4 (gt_LOCALE_AR): On BeOS and Haiku, set LOCALE_AR=none.
12956         * m4/locale-fr.m4 (gt_LOCALE_FR): On BeOS and Haiku, set LOCALE_FR=none.
12957         * m4/locale-ja.m4 (gt_LOCALE_JA): On BeOS and Haiku, set LOCALE_JA-none.
12958         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On BeOS and Haiku, set
12959         LOCALE_ZH_CN=none.
12961 2017-10-29  Bruno Haible  <bruno@clisp.org>
12963         strerror_r-posix: Fix behaviour and test failure on Haiku.
12964         * lib/strerror_r.c (strerror_r): Don't assume that valid error numbers
12965         are positive. Work around return value 0 instead of ERANGE on Haiku.
12966         For unknown error numbers, use a format string consistent with perror().
12967         * doc/posix-functions/strerror_r.texi: Mention the Haiku problem.
12968         * tests/test-strerror_r.c (main): Don't assume that valid error numbers
12969         are positive.
12971 2017-10-29  Bruno Haible  <bruno@clisp.org>
12973         get-rusage-data: Avoid crash on Haiku.
12974         * lib/get-rusage-data.c: Avoid the setlimit-based implementation.
12976 2017-10-29  Bruno Haible  <bruno@clisp.org>
12978         get-rusage-as: Avoid crash on Haiku.
12979         * lib/get-rusage-as.c: Avoid the setlimit-based implementation.
12981 2017-10-29  Bruno Haible  <bruno@clisp.org>
12983         ilogbl: Ensure replacement on Haiku.
12984         * m4/ilogbl.m4 (gl_FUNC_ILOGBL): Invoke gl_FUNC_ILOGBL_WORKS and set
12985         REPLACE_ILOGBL if ilogbl does not work.
12986         (gl_FUNC_ILOGBL_WORKS): New macro.
12987         * lib/math.in.h (ilogbl): Replace if REPLACE_ILOGBL is 1.
12988         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ILOGBL.
12989         * modules/math (Makefile.am): Substitute REPLACE_ILOGBL.
12990         * modules/ilogbl (Depends-on, configure.ac): Consider REPLACE_ILOGBL.
12991         * doc/posix-functions/ilogbl.texi: Mention the Haiku problem.
12993 2017-10-29  Bruno Haible  <bruno@clisp.org>
12995         expl: Ensure replacement on Haiku.
12996         * m4/expl.m4 (gl_FUNC_EXPL): Test whether an expl() return value is
12997         zero.
12998         * doc/posix-functions/expl.texi: Mention the Haiku problem.
13000 2017-10-29  Bruno Haible  <bruno@clisp.org>
13002         math: Fix test failure on Haiku.
13003         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Override on Haiku.
13004         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Update accordingly.
13005         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
13006         * doc/posix-headers/math.texi: Mention the Haiku problem.
13008 2017-10-29  Bruno Haible  <bruno@clisp.org>
13010         gnulib-tool: Avoid unnecessary config.h.in remaking in testdirs.
13011         * gnulib-tool (func_create_testdir): Use workaround against 'autoheader'
13012         bug reported at <https://savannah.gnu.org/support/index.php?109406>.
13014 2017-10-29  Bruno Haible  <bruno@clisp.org>
13016         crypto/*: Verify that the header file is self-contained.
13017         * tests/test-gc-*.c: Include the module's header file immediately after
13018         <config.h>.
13019         * tests/test-hmac-*.c: Likewise.
13020         * tests/test-arcfour.c: Likewise.
13021         * tests/test-arctwo.c: Likewise.
13022         * tests/test-des.c: Likewise.
13023         * tests/test-md2.c: Likewise.
13024         * tests/test-md4.c: Likewise.
13025         * tests/test-md5.c: Likewise.
13026         * tests/test-rijndael.c: Likewise.
13027         * tests/test-sha1.c: Likewise.
13028         * tests/test-sm3.c: Likewise.
13030 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
13031             Bruno Haible  <bruno@clisp.org>
13033         crypto/gc: fix build failure with -Werror=suggest-attribute=const
13034         * lib/gc.h (gc_hash_digest_length): Mark with 'const' attribute.
13036 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
13038         New module: crypto/gc-sm3
13039         * lib/gc.h: Declare SM3-related stuffs.
13040         * lib/gc-gnulib.c: Support sm3 in internal functions.
13041         * lib/gc-libgcrypt.c: Support sm3 with libgcrypt.
13042         * m4/gc-sm3.m4: m4 file for gc-sm3 module.
13043         * modules/crypto/gc-sm3: Define gc-sm3 module.
13044         * tests/test-gc-sm3.c: Implement SM3 test case with libgcrypt.
13045         * modules/crypto/gc-sm3-tests: Define gc-sm3 test module.
13046         * MODULES.html.sh: List gc-sm3 module.
13048 2017-10-29  Bruno Haible  <bruno@clisp.org>
13050         random, random_r: Mention different prototypes on Haiku.
13051         * doc/posix-functions/random.texi: Mention different prototype on Haiku.
13052         * doc/glibc-functions/random_r.texi: Likewise.
13053         * doc/glibc-functions/initstate_r.texi: Likewise.
13054         * doc/glibc-functions/setstate_r.texi: Likewise.
13056 2017-10-28  Bruno Haible  <bruno@clisp.org>
13058         posix_spawn: Avoid spurious message in configure output.
13059         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Discard stderr output from
13060         'cmp' command.
13062 2017-10-28  Bruno Haible  <bruno@clisp.org>
13064         inet_ntop, inet_pton: Determine needed library correctly on Haiku.
13065         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Search also in libnetwork.
13066         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
13068 2017-10-28  Bruno Haible  <bruno@clisp.org>
13070         ioctl: Override non-POSIX declaration on Haiku.
13071         * m4/ioctl.m4 (gl_FUNC_IOCTL): Include also <unistd.h>.
13072         * lib/sys_ioctl.in.h: Add comment about Haiku.
13073         * doc/posix-functions/ioctl.texi: Mention Haiku problem.
13074         * doc/glibc-headers/sys_ioctl.texi: Likewise.
13076 2017-10-28  Bruno Haible  <bruno@clisp.org>
13078         crypto/sm3: Add overview documentation to the .h file.
13079         * lib/sm3.h: Add comments.
13081 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
13083         New module: crypto/sm3
13084         This new module can be used to compute SM3 message digest of files or
13085         memory blocks according to the specification GM/T 004-2012
13086         Cryptographic Hash Algorithm SM3, published by State Cryptography
13087         Administration, China.
13088         The official SM3 cryptographic hash algorithm specification is
13089         available at
13090         http://www.sca.gov.cn/sca/xwdt/2010-12/17/content_1002389.shtml
13091         * lib/sm3.h: Declare the APIs of sm3 module.
13092         * lib/sm3.c: Implement SM3 hash algorithm.
13093         * m4/sm3.m4: m4 file for sm3 module.
13094         * modules/crypto/sm3: Define sm3 module.
13095         * tests/test-sm3.c: Implement SM3 test case.
13096         * modules/crypto/sm3-tests: Define sm3 test module.
13097         * MODULES.html.sh: List sm3 module.
13099 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
13101         gc-libgcrypt: fix undefined enum type in switch statement
13102         Resolve the following build failure:
13103         lib/gc-libgcrypt.c: In function 'gc_hash_open':
13104         lib/gc-libgcrypt.c:317:5: error: case value '0' not in enumerated type
13105         'Gc_hash_mode {aka enum Gc_hash_mode}' [-Werror=switch]
13106              case 0:
13107              ^~~~
13108         * lib/gc.h (enum Gc_hash_mode): Add value GC_NULL.
13109         * lib/gc-libgcrypt.c (gc_hash_open): Use this enum value instead of 0.
13111 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
13113         gc-libgcrypt: fix assignment error due to -Werror=pointer-sign
13114         Resolve the following build failure:
13115         lib/gc-libgcrypt.c: In function 'gc_hash_read':
13116         lib/gc-libgcrypt.c:460:14: error: pointer targets in assignment differ
13117         in signedness [-Werror=pointer-sign]
13118             digest = gcry_md_read (ctx->gch, 0);
13119                    ^
13120         * lib/gc-libgcrypt.c (gc_hash_read): Cast result of gcry_md_read.
13122 2017-10-26  Bruno Haible  <bruno@clisp.org>
13124         havelib: Fix value of LD for 32-bit compilation on NetBSD/sparc64.
13125         * m4/lib-ld.m4 (AC_LIB_PROG_LD): On NetBSD/sparc64 with CC="gcc -m32",
13126         set LD to '/usr/bin/ld -m elf32_sparc', not '/usr/bin/ld'.
13128 2017-10-21  Paul Eggert  <eggert@cs.ucla.edu>
13130         glob: fix another heap buffer overflow
13131         Problem reported by Tim Rühsen in:
13132         https://sourceware.org/bugzilla/show_bug.cgi?id=22332
13133         * lib/glob.c (glob): Avoid buffer overrun when unescaping.
13135 2017-10-19  Paul Eggert  <eggert@cs.ucla.edu>
13137         quotearg: pacify compiler re unsigned
13138         * lib/quotearg.c (quotearg_n_options):
13139         Rewrite to avoid diagnostic from overly-picky compiler.
13140         Problem reported by Sami Kerola in:
13141         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00060.html
13143         glob: fix heap buffer overflow
13144         * lib/glob.c (glob): Fix off-by-one error introduced into
13145         glibc in commit dd7d45e838a42b0ed470c44b55901ea98d0c2bab
13146         dated 1997-10-29 20:33:40.  Problem reported by Tim Rühsen in:
13147         https://sourceware.org/bugzilla/show_bug.cgi?id=22320
13148         Fix suggested by Bruno Haible.
13150 2017-10-18  Paul Eggert  <eggert@cs.ucla.edu>
13152         glob: pacify fuzzer for mempcpy
13153         Problem reported by Tim Rühsen in:
13154         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00054.html
13155         * lib/glob.c (glob): Do not pass NULL to mempcpy.
13157 2017-10-12  Bruno Haible  <bruno@clisp.org>
13159         doc: Fix syntax error (regression from 2017-10-03).
13160         * doc/posix-functions/strncpy.texi: Fix syntax error.
13162 2017-10-12  Bruno Haible  <bruno@clisp.org>
13164         doc: Update for Solaris 11.3.
13165         * doc/**/*.texi: For bugs that exist in both Solaris 11.0 and 11.3,
13166         mention Solaris 11.3.
13167         * m4/log2.m4: Fix comments.
13168         * m4/log2f.m4: Likewise.
13169         * m4/printf.m4: Update comments.
13170         * m4/rename.m4: Likewise.
13171         * m4/strncat.m4: Likewise.
13173         all: Write "Solaris 11.0" instead of "Solaris 11 2011-11".
13175 2017-10-10  Bruno Haible  <bruno@clisp.org>
13177         doc: Improve doc about ioctl.
13178         * doc/posix-functions/ioctl.texi: Fix list of platforms with non-POSIX
13179         prototype.
13181 2017-10-09  Bruno Haible  <bruno@clisp.org>
13183         wcwidth: Don't use obsolete syntax of 'test'.
13184         Reported by Eric Blake.
13185         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Don't optimize two 'test'
13186         invocations into one, as POSIX marks '-a' and '-o' as "obsolescent".
13188 2017-10-09  Bruno Haible  <bruno@clisp.org>
13190         getopt-posix: Fix build failure when using ac_cv_header_getopt_h=no.
13191         Reported by Christian Ehrhardt <christian.ehrhardt@canonical.com>
13192         and Daniel P. Berrange <berrange@redhat.com>.
13193         * lib/unistd.in.h (getopt): Don't attempt to avoid namespace pollution
13194         on glibc systems. The getopt-pfx-core.h file declares exactly what
13195         unistd.h needs, nothing more.
13197 2017-10-08  Bruno Haible  <bruno@clisp.org>
13199         vma-iter: Improve support for FreeBSD.
13200         * lib/vma-iter.c (vma_iterate_proc): New function, extracted from
13201         vma_iterate.
13202         (vma_iterate): Use it. For FreeBSD, try vma_iterate_bsd first.
13204 2017-10-08  Bruno Haible  <bruno@clisp.org>
13206         vma-iter: Fix truncated result on NetBSD (regression from 2017-10-07).
13207         * lib/vma-iter.c (MIN_LEFTOVER): Define to 1, not 0.
13209 2017-10-07  KO Myung-Hun  <komh@chollian.net>
13211         test-framework-sh: Fix 'invalid path dir' error.
13212         On OS/2, a path separator is ';' not ':'. And ':' is used as a
13213         separator between a drive letter and directory parts.
13214         As a result, an absolute path such as x:/path/to/dir on OS/2 is
13215         treated as an invalid path dir.
13216         * tests/init.sh (PATH_SEPARATOR): Set at startup.
13217         (path_prepend_): '?:*' is also an absolute path. Use $PATH_SEPARATOR
13218         instead of hard coded ':'.
13220 2017-10-07  Bruno Haible  <bruno@clisp.org>
13222         vma-iter: Fix truncated result on Linux (regression from 2017-09-26).
13223         * lib/vma-iter.c (MIN_LEFTOVER): New macro.
13224         (STACK_ALLOCATED_BUFFER_SIZE): Set to a minimal value if not needed.
13225         (rof_open): On Linux, do multiple read() calls and make sure
13226         MIN_LEFTOVER bytes are left when read() returns.
13228 2017-10-07  Bruno Haible  <bruno@clisp.org>
13230         vma-iter: Improve support for GNU/Hurd.
13231         * lib/vma-iter.c (vma_iterate): On GNU/Hurd, use the Mach vm_region()
13232         API, not the /proc file system.
13234 2017-10-07  Bruno Haible  <bruno@clisp.org>
13236         test-framework-sh: Don't require bash on Windows and OS/2.
13237         Reported by KO Myung-Hun.
13238         * tests/test-init.sh: Use 'shopt' only when running in bash.
13240 2017-10-06  KO Myung-Hun  <komh@chollian.net>
13242         wcwidth: check a macro version of wcwidth () as well
13243         * lib/wchar.in.h: Revert commit from 2016-01-14.
13244         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test if wcwidth is a macro.
13246 2017-10-06  Bruno Haible  <bruno@clisp.org>
13248         getopt-posix: Clarify copyright header.
13249         * lib/getopt.in.h: Don't state that gnulib is under LGPL.
13250         * lib/getopt-pfx-core.h: Likewise.
13251         * lib/getopt-pfx-ext.h: Likewise.
13252         * lib/getopt-cdefs.in.h: Likewise.
13254 2017-10-03  Bruno Haible  <bruno@clisp.org>
13256         Fix warning "`gl_HOST_CPU_C_ABI' was expanded before it was required".
13257         * modules/host-cpu-c-abi (configure.ac): Require, don't invoke
13258         gl_HOST_CPU_C_ABI.
13260 2017-10-03  Bruno Haible  <bruno@clisp.org>
13262         doc: warn about misuse of strncpy and wcsncpy.
13263         * doc/posix-functions/strcpy.texi: Describe requirements on prior
13264         memory allocation.
13265         * doc/posix-functions/wcscpy.texi: Likewise.
13266         * doc/posix-functions/strncpy.texi: Describe what this function is not
13267         useful for.
13268         * doc/posix-functions/wcsncpy.texi: Likewise.
13270 2017-10-02  Paul Eggert  <eggert@cs.ucla.edu>
13272         fsuage: fix typo in previous change
13273         * lib/fsusage.c: Remove stray include of full-read.h.
13274         Problem reported by Sam Steingold for macOS (Bug#28669).
13276 2017-10-01  Paul Eggert  <eggert@cs.ucla.edu>
13278         fsusage: remove SVR2 support
13279         SVR2 was obsolete by 1986 and is no longer supported by anybody,
13280         and its code was getting in the way of use of this module by
13281         Emacs, which has its own ‘read’ function anyway.
13282         * lib/fsusage.c: Do not include sys/filsys.h.
13283         (get_fs_usage): Remove SVR2-specific code.
13284         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE):
13285         Do not test for sys/filsys.h or set STAT_READ_FILSYS.
13286         * modules/fsusage (Depends-on): Do not depend on full-read.
13288         Simplify autoupdate of licenses
13289         * config/srclistvars.sh (GNUWWWLICENSES): Move to a more-typical
13290         place.
13292 2017-10-01  Bruno Haible  <bruno@clisp.org>
13294         vma-iter: Add support for GNU/Hurd.
13295         * lib/vma-iter.c: Treat GNU/Hurd like Linux.
13296         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
13298 2017-09-30  Bruno Haible  <bruno@clisp.org>
13300         vma-iter: Make it work on 32-bit Solaris with module 'largefile'.
13301         * modules/vma-iter: Don't test for sys/procfs.h, as this test would
13302         fail when module 'largefile' is in use.
13303         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't test HAVE_SYS_PROCFS_H.
13304         * lib/vma-iter.c: Undefine _FILE_OFFSET_BITS early.
13305         Don't test HAVE_SYS_PROCFS_H.
13307 2017-09-30  Bruno Haible  <bruno@clisp.org>
13309         havelib: Make it work for CC="gcc -m32" (regression from 2017-02-19).
13310         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Require gl_HOST_CPU_C_ABI.
13311         When $CC produces 32-bit code, set acl_libdirstem to 'lib', not 'lib64'.
13312         * modules/havelib (Depends-on): Add host-cpu-c-abi.
13314 2017-09-30  Bruno Haible  <bruno@clisp.org>
13316         uniname/uniname: Don't assume C99 compiler (regression from 2015-02-16).
13317         * lib/uniname/uniname.c (unicode_name_character): Add braces around
13318         scope of local variables.
13320 2017-09-28  Bruno Haible  <bruno@clisp.org>
13322         string: code style
13323         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Reorder list of
13324         substitutable variables.
13325         * modules/string (Makefile.am): Likewise.
13327 2017-09-26  Bruno Haible  <bruno@clisp.org>
13329         uniname/uniname-tests: Tighten code.
13330         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Merge two
13331         local variables into one.
13333 2017-09-26  Bruno Haible  <bruno@clisp.org>
13335         vma-iter: Improvements for Linux and BSD platforms.
13336         - Add support for DragonFly BSD.
13337         - Make it more reliable on Linux, GNU/kFreeBSD, FreeBSD, NetBSD.
13338         * lib/vma-iter.c (struct rofile, rof_open, rof_peekchar, rof_close):
13339         Read the entire file into memory in a single system call.
13340         (vma_iterate): Update. Read from /proc on DragonFly BSD like on FreeBSD.
13341         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on DragonFly BSD.
13343 2017-09-26  Bruno Haible  <bruno@clisp.org>
13345         vma-iter: Provide the protection flags on FreeBSD.
13346         * lib/vma-iter.c (vma_iterate) [FreeBSD]: When reading from /proc,
13347         skip three fields between the addresses and the protection flags.
13349 2017-09-26  Paul Eggert  <eggert@cs.ucla.edu>
13351         glob: remove bogus extern decl
13352         * lib/glob.c (__glob_pattern_type): Remove now-spurious
13353         extern declaration.  Problem reported by Adhemerval Zanella in:
13354         https://sourceware.org/ml/libc-alpha/2017-09/msg00972.html
13356 2017-09-25  Paul Eggert  <eggert@cs.ucla.edu>
13358         uniname/uniname-tests: integer overflow fix
13359         * tests/uniname/test-uninames.c (fill_names, fill_aliases):
13360         Check for integer overflow.
13362         duplocale-tests: fix unlikely crash
13363         * tests/test-duplocale.c (get_locale_dependent_values):
13364         Don’t crash with absurdly long month names.
13366         maint: fix overflow checking in nap.h
13367         * modules/chown-tests:
13368         * modules/fchownat-tests, modules/fdutimensat-tests:
13369         * modules/futimens-tests, modules/lchown-tests:
13370         * modules/stat-time-tests, modules/utime-tests:
13371         * modules/utimens-tests, modules/utimensat-tests:
13372         Depend on intprops.
13373         * tests/nap.h: Include intprops.h.
13374         (diff_timespec): Handle overflow properly.
13376         sys_types: update URL
13377         * m4/sys_types_h.m4: Use https: URL.
13379         parse-datetime: fix dependency
13380         * modules/parse-datetime (Depends-on): Depend
13381         on nstrftime, not strftime.
13383         parse-datetime, posixtm: avoid uninit access
13384         * lib/parse-datetime.y (parse_datetime2):
13385         * lib/posixtm.c (posixtime):
13386         Do not access uninitialized storage, even though the resulting
13387         value is never used.
13389 2017-09-25  Bruno Haible  <bruno@clisp.org>
13391         vma-iter: Improvements for BSD platforms.
13392         - Add support for GNU/kFreeBSD.
13393         - Make it work on FreeBSD and NetBSD even when /proc is not mounted.
13394         - Speed up on OpenBSD.
13395         * lib/vma-iter.c (struct rofile, rof*): Define also on GNU/kFreeBSD.
13396         (vma_iterate_bsd): New function.
13397         (vma_iterate): Use it as fallback on FreeBSD and NetBSD. Use it as
13398         first choice on OpenBSD. Treat GNU/kFreeBSD like Linux.
13399         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
13400         * modules/vma-iter (configure.ac): Require AC_C_INLINE.
13402 2017-09-23  Bruno Haible  <bruno@clisp.org>
13404         strfmon_l: New module.
13405         * modules/strfmon_l: New file.
13406         * lib/strfmon_l.c: New file.
13407         * m4/strfmon_l.m4: New file.
13408         * doc/posix-functions/strfmon_l.texi: Mention the new module.
13409         * modules/strfmon_l-tests: New file.
13410         * tests/test-strfmon_l.c: New file.
13412         monetary: New module.
13413         * modules/monetary: New file.
13414         * lib/monetary.in.h: New file.
13415         * m4/monetary_h.m4: New file.
13416         * doc/posix-headers/monetary.texi: Mention the new module.
13417         * modules/monetary-tests: New file.
13418         * tests/test-monetary.c: New file.
13419         * modules/monetary-c++-tests: New file.
13420         * tests/test-monetary-c++.cc: New file.
13421         * modules/duplocale-tests (configure.ac): Use AC_CHECK_HEADERS_ONCE.
13423 2017-09-23  Bruno Haible  <bruno@clisp.org>
13425         duplocale tests: Fix test crash on Linux/x86.
13426         * tests/test-duplocale.c (test_with_uselocale): Disconnect the mixed2
13427         locale from the current thread before freeing it.
13429 2017-09-21  Paul Eggert  <eggert@cs.ucla.edu>
13431         mktime: port to OpenVMS
13432         Problem reported by John E. Malmberg in:
13433         https://lists.gnu.org/r/bug-gnulib/2017-09/msg00100.html
13434         * m4/mktime.m4 (TIME_T_IS_SIGNED): Default to 0.
13436 2017-09-16  Paul Eggert  <eggert@cs.ucla.edu>
13438         manywarnings: port to GCC on 64-bit MS-Windows
13439         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Work better if
13440         LONG_MAX < PTRDIFF_MAX.  Problem reported by Richard Copley in:
13441         https://lists.gnu.org/r/emacs-devel/2017-09/msg00392.html
13443 2017-09-13  Bruno Haible  <bruno@clisp.org>
13445         all: Replace many more http URLs by https URLs. Update stale URLs.
13446         * users.txt: Remove mention of 'newts'.
13447         * lib/localename.c: Update comment about LANG_SOTHO.
13449 2017-09-13  Paul Eggert  <eggert@cs.ucla.edu>
13451         all: Replace many http URLs by https URLs.
13453 2017-09-12  Bruno Haible  <bruno@clisp.org>
13455         doc: Prefer https URLs where possible.
13456         * doc/**/*.texi: Use https URLs instead of http URLs where possible.
13457         * doc/ld-output-def.texi: Remove unavailable URL.
13459 2017-09-12  Paul Eggert  <eggert@cs.ucla.edu>
13461         maintainer-makefile: FTP -> HTTPS
13462         * top/maint.mk (url_dir_list, ftp-gnu): Use HTTPS protocol instead
13463         of FTP, which is planned to be decommissioned on 2017-11-01.
13465 2017-09-12  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
13467         libc-config: Fix __GNUC_PREREQ macro.
13468         * lib/libc-config.h (__GNUC_PREREQ): Use __GNUC_MINOR__, not
13469         __GNUC_MINOR.
13471 2017-09-09  Bruno Haible  <bruno@clisp.org>
13473         gnulib-tool: Simplify commit from 2015-08-20.
13474         * gnulib-tool (func_add_or_update): Remove local variable
13475         is_binary_file.
13477 2017-09-08  Bruno Haible  <bruno@clisp.org>
13479         stddef: Avoid conflict with system-defined max_align_t.
13480         The configure-determined HAVE_MAX_ALIGN_T may not always be accurate.
13481         Reported by Werner Lemberg <wl@gnu.org> in
13482         <https://lists.gnu.org/r/bug-gnulib/2017-08/msg00185.html>.
13483         * lib/stddef.in.h (rpl_max_align_t): Renamed from max_align_t.
13484         (max_align_t): Define as a macro.
13485         (GNULIB_defined_max_align_t): New macro. Guards against multiple
13486         definitions of rpl_max_align_t in different copies of gnulib-generated
13487         <stddef.h>.
13489 2017-09-05  Paul Eggert  <eggert@cs.ucla.edu>
13491         libc-config: port to MSVC
13492         Problems reported by Gisle Vanem in:
13493         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00016.html
13494         * lib/libc-config.h (__inline): Don't define if HAVE___INLINE.
13495         (libc_hidden_proto): Stick to Standard C syntax for varargs macro.
13496         * m4/__inline.m4: New file.
13497         * modules/libc-config (Files): Add it.
13498         (Depends-on): Use it.
13500         glob: Use enum for __glob_pattern_type result
13501         From a patch proposed by Adhemerval Zanella in:
13502         https://sourceware.org/ml/libc-alpha/2017-09/msg00212.html
13503         * lib/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
13504         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
13505         * lib/glob_internal.h (__glob_pattern_type):
13506         * lib/glob.c (glob):
13507         * lib/glob_pattern_p.c (__glob_pattern_p):
13508         Use them.
13510         glob: fix for use in glibc
13511         Problem reported by Adhemerval Zanella in:
13512         https://sourceware.org/ml/libc-alpha/2017-09/msg00213.html
13513         * lib/glob.c (DT_UNKNOWN, DT_DIR, DT_LINK):
13514         Do not redefine if _LIBC.
13516 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
13518         glob: fix bugs with long login names
13519         Problem reported by Adhemerval Zanella in:
13520         https://sourceware.org/ml/libc-alpha/2017-08/msg00455.html
13521         * lib/glob.c (GET_LOGIN_NAME_MAX): Remove.
13522         (glob): Use the same scratch buffer for both getlogin_r and
13523         getpwnam_r.  Don’t require preallocation of the login name.  This
13524         simplifies storage allocation, and corrects the handling of
13525         long login names.
13527 2017-09-02  Bruno Haible  <bruno@clisp.org>
13529         dirent: Update doc.
13530         * doc/posix-headers/dirent.texi: More concrete list of platforms.
13532 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
13534         glob: fix getpwnam_r errno typo
13535         * lib/glob.c (glob): Fix longstanding misuse of errno after
13536         getpwnam_r, which returns an error number rather than setting
13537         errno.
13539         glob: fix typo in recent change
13540         * lib/glob.c (glob) [!HAVE_GETPWNAM_R && !_LIBC]:
13541         Fix recently-introduced typo.
13543 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
13545         glob: don't save and restore errno unnecessarily
13546         * lib/glob.c (glob): Don't save and restore errno
13547         merely because we have getpwnam_r.
13549         glob: don't assume getpwnam_r
13550         * lib/glob.c (glob): Port recent patches to platforms
13551         lacking getpwnam_r.
13553         scratch_buffer: don’t use private glibc API
13554         Suggested by Florian Weimer in:
13555         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00004.html
13556         * lib/scratch_buffer.h: Rename to lib/malloc/scratch_buffer.h.
13557         * lib/scratch_buffer_grow.c: Rename to
13558         lib/malloc/scratch_buffer_grow.c.
13559         * lib/scratch_buffer_grow_preserve.c: Rename to
13560         lib/malloc/scratch_buffer_grow_preserve.c.
13561         * lib/scratch_buffer_set_array_size.c: Rename to
13562         lib/malloc/scratch_buffer_set_array_size.c.
13563         * lib/scratch_buffer.h: New file.
13564         * modules/scratch_buffer (Files, Makefile.am):
13565         Adjust to source-file renaming.
13567 2017-09-01  Paul Eggert  <eggert@cs.ucla.edu>
13569         glob: use scratch_buffer instead of extend_alloca
13570         Much of the lib/glob.c part of this patch comes from a glibc patch
13571         proposed by Adhemerval Zanella in:
13572         https://sourceware.org/ml/libc-alpha/2017-08/msg00456.html
13573         * lib/glob.c: Do not include <config.h>, since <libc-config.h>,
13574         included via glob.h, does this for us now.
13575         (__set_errno): Remove, as libc-config does this for us now.
13576         Include <scratch_buffer.h>.
13577         (GETPW_R_SIZE_MAX): Remove.
13578         (glob): Use struct scratch_buffer instead of extend_alloca.
13579         * lib/glob.in.h: Include libc-config.h rather than
13580         including <sys/cdefs.h> conditionally.
13581         (__BEGIN_DECLS, __END_DECLS, __THROW, __THROWNL, attribute_hidden)
13582         (__glibc_unlikely, __restrict, weak_alias):
13583         Remove, as libc-config does this for us now.
13584         * m4/glob.m4 (gl_PREREQ_GLOB):
13585         Remove sys/cdefs.h tests; no longer needed.
13586         * modules/glob (Depends-on): Add libc-config, scratch_buffer.
13587         (glob.h): Do not replace HAVE_SYS_CDEFS_H.
13589         scratch_buffer: new module
13590         * lib/scratch_buffer.h, lib/scratch_buffer_grow.c:
13591         * lib/scratch_buffer_grow_preserve.c:
13592         * lib/scratch_buffer_set_array_size.c:
13593         New files, copied from glibc with very minor changes that can be
13594         copied back.
13595         * modules/scratch_buffer: New file.
13597         libc-config: new module
13598         * MODULES.html.sh: Add libc-config.
13599         * lib/cdefs.h: New file, copied from the GNU C Library with very
13600         minor changes that can be copied back.
13601         * lib/libc-config.h, modules/libc-config: New files.
13603 2017-08-31  Paul Eggert  <eggert@cs.ucla.edu>
13605         glob: match dangling symlinks
13606         This fixes a bug I inadvertently introduced to Gnulib when I
13607         merged glibc glob back into gnulib on 2007-10-16.  This fix is
13608         inspired by a patch proposed for glibc by Adhemerval Zanella in:
13609         https://sourceware.org/ml/libc-alpha/2017-08/msg00446.html
13610         * doc/posix-functions/glob.texi: Update list of affected platforms.
13611         * lib/glob.c (__lstat64): New macro.
13612         (is_dir): New function.
13613         (glob, glob_in_dir): Match symlinks even if they are dangling.
13614         (link_stat, link_exists_p): Remove.  All uses removed.
13615         * lib/glob.in.h (__attribute_noinline__): Remove; no longer used.
13616         * m4/glob.m4 (gl_PREREQ_GLOB): Do not check for fstatat.
13617         * modules/glob-tests (Depends-on): Add symlink.
13618         * tests/test-glob.c: Include errno.h, unistd.h.
13619         (BASE): New macro.
13620         (main): Test dangling symlinks, if symlinks are supported.
13622         glob, backupfile: inode 0 is a valid inode number
13623         * doc/posix-functions/readdir.texi (readdir):
13624         * doc/posix-headers/dirent.texi (dirent.h):
13625         Document more readdir portability issues.
13626         * lib/backupfile.c (REAL_DIR_ENTRY): Remove.
13627         (numbered_backup): Don’t treat inode 0 any differently from
13628         other inode values.
13629         * lib/glob.c (struct readdir_result): Remove skip_entry member.
13630         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
13631         All uses removed.
13632         * modules/glob (Depends-on): Remove d-ino.
13634         glob: simplify symlink detection
13635         * lib/glob.c (dirent_type): New type.  Use uint_fast8_t not
13636         uint8_t, as C99 does not require uint8_t.
13637         (struct readdir_result): Use it.  Do not define skip_entry unless
13638         it is needed; this saves a byte on platforms lacking d_ino.
13639         (readdir_result_type, readdir_result_skip_entry):
13640         New functions, replacing ...
13641         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
13642         ... these functions, which were removed.  This makes the callers
13643         easier to read.  All callers changed.
13644         (D_INO_TO_RESULT): Now empty if there is no d_ino.
13646 2017-08-30  Pádraig Brady  <P@draigBrady.com>
13648         fts-tests: tag as a longrunning-test so not included by default
13649         * modules/fts-tests: This test takes about 20s on current systems,
13650         and uses about 285M of space on ext4.
13652 2017-08-30  Pádraig Brady  <P@draigBrady.com>
13654         renameat2: fix compilation on alpine linux
13655         * m4/renameat.m4: Check for <linux/fs.h> presence.
13656         * lib/renameat2.h: Only include <linux/fs.h> if present.
13657         Reported by Assaf Gordon on Alpine Linux.
13659 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
13661         glob: try to port recent changes to MS-Windows
13662         Problem reported by Bruno Haible in:
13663         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00170.html
13664         * lib/glob.c (__glob_pattern_p) [!_LIBC]: Move from here ...
13665         * lib/glob.in.h (__glob_pattern_p): ... to here.
13667 2017-08-24  Eric Blake  <eblake@redhat.com>
13669         warnings: fix compilation with old autoconf
13670         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C))
13671         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): Use m4_defun rather than
13672         AC_DEFUN.
13673         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C))
13674         (gl_MANYWARN_ALL_GCC(C++)): Likewise.
13676 2017-08-24  Bruno Haible  <bruno@clisp.org>
13678         glob: Fix compilation error on NetBSD 7.0 and OpenBSD 6.0.
13679         * modules/glob (Depends-on): Add c99.
13681 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
13683         glob: fix typo that broke platforms lacking d_ino
13684         This typo also hurt performance on GNU/Linux and similar hosts.
13685         * lib/glob.c (D_INO_TO_RESULT): Fix typo (reversed ifdef)
13686         in previous change.
13688 2017-08-23  Paul Eggert  <eggert@cs.ucla.edu>
13690         glob: merge from glibc with Zanella glob changes
13691         Merge glob from glibc, with changes for glob proposed
13692         by Adhemerval Zanella in the thread starting here:
13693         https://sourceware.org/ml/libc-alpha/2017-08/msg01079.html
13694         plus some fixes for this merge.
13695         * lib/glob_internal.h, lib/glob_pattern_p.c, lib/globfree.c:
13696         New files, ported from glibc.
13697         * lib/glob-libc.h (_Restrict_): Remove.  All uses replaced
13698         with __restrict.
13699         (__size_t): Remove.  All uses replaced by size_t.
13700         (size_t): Define by defining __need_size_t and including <stddef.h>.
13701         This should work even in non-glibc platforms, where any name
13702         pollution is OK.
13703         Use __USE_MISC instead of __USE_BSD || __USE_GNU.
13704         (struct stat64): Don’t worry about __GLOB_GNULIB.
13705         (glob, globfree, glob_pattern_p): Remove macros for
13706         __USE_FILE_OFFSET64 && __GNUC__ < 2 && !defined __GLOB_GNULIB
13707         case.  Remove _GL_ARG_NONNULL as GNU behavior is to accept NULL
13708         but set errno.
13709         * lib/glob.c (_GL_ARG_NONNULL) [!_LIBC]: Remove.  All uses
13710         removed since the glibc behavior works on null pointers.
13711         Do not include stdio.h; old SunOS is irrelevant now.
13712         Do not worry about GLOB_ONLY_P as we now mimic glibc here.
13713         Include glob_internal.h.
13714         (D_INO_TO_RESULT): Depend on (_LIBC || D_INO_IN_DIRENT), not
13715         ((POSIX || WINDOWS32) && !__GNU_LIBRARY__).  The latter probably
13716         worked only coincidentally.
13717         (attribute_hidden, __attribute_noinline__, __glibc_unlikely):
13718         Remove macros; now done in glob.in.h.
13719         (size_add_wrapv): Do not use __builtin_add_overflow if __ICC.
13720         (glob): Properly initialize glob structure with
13721         GLOB_BRACE|GLOB_DOOFFS (bug 20707).
13722         Remove old code using SHELL since Bash no longer
13723         uses this.
13724         (glob, prefix_array): Separate MS code better.
13725         (glob, glob_in_dir): Use C99 decls before statements when glibc
13726         does.
13727         (glob_in_dir): Remove old Amiga and VMS code.
13728         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
13729         separate files.
13730         * lib/glob.in.h (attribute_hidden, __attribute_noinline__)
13731         (__glibc_unlikely):
13732         Move here from glob.c.
13733         (__restrict): New macro here, replacing the _Restrict_ in glob.c.
13734         (weak_alias): New macro.
13735         (__size_t): Remove.  All uses replaced by size_t.
13736         * modules/d-ino (License): Now LGPLv2+, for compatibility with glob.
13737         * modules/glob (Files): Add +lib/glob_internal.h,
13738         lib/glob_pattern_p.c, lib/globfree.c.
13739         (Depends-on): Remove snippet/arg-nonnull.
13741 2017-08-22  Paul Eggert  <eggert@cs.ucla.edu>
13743         glob: port to clang's Undefined Sanitizer
13744         Problem reported by Tim Rühsen in:
13745         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00144.html
13746         * lib/glob.c (FLEXIBLE_ARRAY_MEMBER) [_LIBC]: Define to empty.
13747         (glob_in_dir): Do not rely on undefined behavior in accessing
13748         struct members beyond their bounds.  Use a flexible array member
13749         instead.
13751 2017-08-21  Paul Eggert  <eggert@cs.ucla.edu>
13753         vc-list-files: port to Solaris 10
13754         * build-aux/vc-list-files: Don't assume test -e works.
13756 2017-08-21  Karl Berry  <karl@freefriends.org>
13758         * doc/posix-functions/srandom.texi (srandom): typo }.
13760 2017-08-20  Paul Eggert  <eggert@cs.ucla.edu>
13762         git-version-gen: port to Solaris 10
13763         Problem reported by Dagobert Michelsen in:
13764         http://lists.gnu.org/r/grep-devel/2017-08/msg00002.html
13765         * build-aux/git-version-gen (v_from_git):
13766         Use expr instead of shell substitution.
13768 2017-08-19  Bruno Haible  <bruno@clisp.org>
13770         host-cpu-c-abi: Improve detection of MIPS ABI.
13771         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, test the value of
13772         _MIPS_SIM.
13774 2017-08-17  Bruno Haible  <bruno@clisp.org>
13776         hypot tests: Fix test failure on FreeBSD 11.0/x86.
13777         * tests/test-hypot.h (test_function): Declare z as 'volatile'.
13779 2017-08-17  Bruno Haible  <bruno@clisp.org>
13781         float: Fix LDBL_MIN value on FreeBSD/x86.
13782         * lib/float.in.h (LDBL_MIN) [__FreeBSD__]: Add more precision.
13784 2017-08-17  Bruno Haible  <bruno@clisp.org>
13786         random: Fix test compilation failure on Cygwin 1.5.25.
13787         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_INITSTATE,
13788         HAVE_DECL_SETSTATE.
13789         * m4/random.m4 (gl_FUNC_RANDOM): Test whether initstate and setstate are
13790         declared.
13791         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_INITSTATE,
13792         HAVE_DECL_SETSTATE.
13793         * lib/stdlib.in.h (initstate): Declare also if HAVE_DECL_INITSTATE is 0.
13794         (setstate): Declare also if HAVE_DECL_SETSTATE is 0.
13795         * doc/posix-functions/initstate.texi: Mention the Cygwin 1.5.x problem.
13796         * doc/posix-functions/random.texi: Likewise.
13797         * doc/posix-functions/setstate.texi: Likewise.
13798         * doc/posix-functions/srandom.texi: Likewise.
13800 2017-08-16  Bruno Haible  <bruno@clisp.org>
13802         stdnoreturn: Fix test compilation failure on Cygwin.
13803         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On Cygwin, use gnulib's
13804         <stdnoreturn.h> replacement.
13805         * lib/stdnoreturn.in.h (noreturn): Treat Cygwin like MSVC.
13806         * doc/posix-headers/stdnoreturn.texi: Mention the Cygwin problem.
13808 2017-08-16  Bruno Haible  <bruno@clisp.org>
13810         thread: Fix conflict with pthread_sigmask module.
13811         * lib/glthread/thread.h (pthread_sigmask): Don't declare it weak if
13812         it's defined as a macro.
13813         * modules/thread (Depends-on): Add pthread_sigmask.
13815 2017-08-16  Paul Eggert  <eggert@cs.ucla.edu>
13817         rename: port better to NetBSD
13818         * doc/posix-functions/rename.texi (rename): NetBSD 7
13819         does not have the link-count bug.
13820         * m4/rename.m4 (gl_FUNC_RENAME): Don’t consider NetBSD to be
13821         broken merely because rename ("a", "b") removes "a" when the two
13822         names are hard links to the same file.
13824 2017-08-16  Bruno Haible  <bruno@clisp.org>
13826         iconv_open, uni*: Add support for VPATH builds with OpenBSD 'make'.
13827         * modules/iconv_open (Makefile.am): In the rules that use gperf, prefix
13828         the target file names with '$(srcdir)/'.
13829         * modules/unicase/locale-language (Makefile.am): Likewise.
13830         * modules/unicase/special-casing (Makefile.am): Likewise.
13831         * modules/unictype/bidiclass-byname (Makefile.am): Likewise.
13832         * modules/unictype/category-byname (Makefile.am): Likewise.
13833         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
13834         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
13835         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
13836         * modules/unictype/property-byname (Makefile.am): Likewise.
13837         * modules/unictype/scripts (Makefile.am): Likewise.
13838         * modules/uninorm/composition (Makefile.am): Likewise.
13840 2017-08-16  Bruno Haible  <bruno@clisp.org>
13842         nonblocking-socket tests: Fix failure on OpenBSD 6.0.
13843         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE): Increase
13844         value for OpenBSD.
13846 2017-08-16  Bruno Haible  <bruno@clisp.org>
13848         rename, renameat: Update doc regarding NetBSD.
13849         * doc/posix-functions/rename.texi: Clarify that when using
13850         -D_XOPEN_SOURCE=500 on NetBSD 7.0, the hard link bug is gone.
13851         * doc/posix-functions/renameat.texi: Be more precise about NetBSD
13852         version.
13854 2017-08-15  Paul Eggert  <eggert@cs.ucla.edu>
13856         renameat2: port better to macOS
13857         * lib/renameat2.c (renameat2): Use renameatx_np if available.
13859         futimens: don’t assume struct timespec layout
13860         * m4/futimens.m4 (gl_FUNC_FUTIMENS):
13861         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT):
13862         * tests/test-fdutimensat.c (main):
13863         * tests/test-futimens.h (test_futimens):
13864         * tests/test-lutimens.h (test_lutimens):
13865         * tests/test-utimens.h (test_utimens):
13866         * tests/test-utimensat.c (main):
13867         Don’t assume that struct timespec is a two-member structure in
13868         tv_sec, tv_nsec order.  Although this is true on all platforms we
13869         know about, POSIX does not guarantee it.
13871         rename: document+test NetBSD rename
13872         Test failure reported by Bruno Haible in:
13873         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00104.html
13874         This is an area where NetBSD is better-behaved than POSIX,
13875         so allow the NetBSD behavior in tests.
13876         * doc/posix-functions/rename.texi:
13877         * doc/posix-functions/renameat.texi: Document NetBSD behavior.
13878         * tests/test-rename.h (test_rename): Allow NetBSD behavior.
13880 2017-08-15  Bruno Haible  <bruno@clisp.org>
13882         renameat: Ensure declaration in <stdio.h> on NetBSD.
13883         * lib/stdio.in.h: Include <unistd,h> also on NetBSD.
13884         * doc/posix-functions/renameat.texi: Mention this problem.
13886 2017-08-15  Bruno Haible  <bruno@clisp.org>
13888         duplocale: Work around NetBSD 7.0 bug.
13889         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Test against the NetBSD 7.0 bug.
13890         * lib/duplocale.c: Add comment about NetBSD problem.
13891         * doc/posix-functions/duplocale.texi: Mention the NetBSD problem.
13893 2017-08-15  Bruno Haible  <bruno@clisp.org>
13895         duplocale tests: Verify use with *_l functions.
13896         * modules/duplocale-tests (configure.ac): Test for uselocale and
13897         some *_l functions.
13898         * tests/test-duplocale.c (test_with_uselocale): New function, extracted
13899         from main.
13900         (get_locale_dependent_values_from, test_with_locale_parameter): New
13901         functions.
13902         (main): Test both test_with_uselocale and test_with_locale_parameter.
13904 2017-08-15  Bruno Haible  <bruno@clisp.org>
13906         extensions: Enable NetBSD specific extensions.
13907         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _NETBSD_SOURCE.
13909 2017-08-14  Bruno Haible  <bruno@clisp.org>
13911         open, openat: Update doc about O_CLOEXEC.
13912         * doc/posix-functions/open.texi: More concrete list of platforms.
13913         * doc/posix-functions/openat.texi: Likewise.
13915 2017-08-14  Paul Eggert  <eggert@cs.ucla.edu>
13917         open: support O_CLOEXEC
13918         * NEWS, doc/posix-functions/open.texi:
13919         * doc/posix-functions/openat.texi: Document this.
13920         * lib/fcntl.in.h (O_CLOEXEC): Default to a nonzero value.
13921         (GNULIB_defined_O_CLOEXEC): New symbol.
13922         * lib/open.c: Include cloexec.h.
13923         (open): Support O_CLOEXEC.
13924         * lib/openat.c: Include cloexec.h.
13925         (rpl_openat): Support O_CLOEXEC.
13926         * lib/popen-safer.c: Do not include cloexec.h.
13927         (open_noinherit): Remove.
13928         (popen_safer): Use O_CLOEXEC instead of set_cloexec_flag.
13929         * lib/save-cwd.c: Do not include cloexec.h.
13930         (save_cwd): Use O_CLOEXEC instead of set_cloexec_flag.
13931         * m4/open-cloexec.m4: New file.
13932         * m4/open.m4 (gl_FUNC_OPEN): Require gl_PREPROC_O_CLOEXEC.
13933         Replace 'open' if O_CLOEXEC is not present.
13934         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_PREPROC_O_CLOEXEC.
13935         Replace 'openat' if O_CLOEXEC is not present.
13936         * modules/freopen (Depends-on): Depend on 'open' if replacing freopen.
13937         * modules/open (Files): Add m4/open-cloexec.m4.
13938         (Depends-on): Depend on cloexec if replacing 'open'.
13939         * modules/openat (Files): Add m4/open-cloexec.m4.
13940         (Depends-on): Depend on cloexec if replacing openat.
13941         * modules/popen-safer (Depends-on): Remove cloexec.
13942         * modules/save-cwd (Depends-on): Remove cloexec, and add
13943         fd-safer-flag and 'open'.
13945 2017-08-13  Paul Eggert  <eggert@cs.ucla.edu>
13947         reallocarray: minor fixes
13948         * doc/glibc-functions/reallocarray.texi: Update version numbers.
13949         * m4/reallocarray.m4 (gl_FUNC_REALLOCARRAY): Don't trust _cv_ contents.
13950         * modules/reallocarray (License): Change from GPL to LGPL.
13951         * tests/test-reallocarray.c (main): Fix ENOMEM typo.
13952         Indent properly and don't use tabs.
13954 2017-08-13  Darshit Shah  <darnir@gnu.org>
13956         reallocarray: New module
13957         reallocarray is a new function in glibc 2.26 to safely allocate an array
13958         of memory locations with integer overflow protection.
13959         * MODULES.html.sh: Add reallocarray.
13960         * doc/glibc-functions/reallocarray.texi: Documentation for reallocarray.
13961         * lib/reallocarray.c: New file to implement module reallocarray.
13962         * lib/stdlib.in.h: Add function declarations for reallocarray.
13963         * m4/reallocarray.m4: New file.
13964         * m4/stdlib_h.m4: Declare reallocarray.
13965         * modules/reallocarray: New file.
13966         * modules/reallocarray-test: New file.
13967         * modules/stdlib: Coerce stdlib.h to export reallocarray.
13968         * tests/test-reallocarray.c: New test.
13970 2017-08-12  Paul Eggert  <eggert@cs.ucla.edu>
13972         dirent-safer: fix cloexec race
13973         * lib/opendir-safer.c: Include fcntl.h instead of unistd-safer.h.
13974         (opendir_safer): Use F_DUPFD_CLOEXEC.
13975         * modules/dirent-safer (Depends-on): Add fcntl.  Remove unistd-safer.
13976         * tests/test-dirent-safer.c: Do not include unistd-safer.h,
13977         as it is no longer a prerequisite.  Use F_DUPFD_CLOEXEC
13978         instead of dup_safer.
13980         fts: fix cloexec races
13981         * lib/fts.c [!_LIBC]: Do not include dirent--.h, unistd--.h, cloexec.h.
13982         (opendirat, diropen): Use O_CLOEXEC instead of set_cloexec_flag.
13983         (fts_build): Use F_DUPD_CLOEXEC rinstad of set_cloexec_flag.
13984         (fd_ring_check): Set cloexec flag on new file descriptors.
13985         (fts_build, fd_ring_check): While we’re at it, make sure the
13986         resulting file descriptor is not 0, 1, or 2, since that is easy.
13988 2017-08-11  Bruno Haible  <bruno@clisp.org>
13990         fts tests: Fix link error.
13991         Reported by Tom G. Christensen in
13992         https://lists.gnu.org/r/bug-gnulib/2017-08/msg00078.html
13993         * modules/fts-tests (Makefile.am): Link test-fts against LIBINTL.
13995 2017-08-10  Paul Eggert  <eggert@cs.ucla.edu>
13997         fts: port recent changes to CentOS 6
13998         Problem reported by Tom G. Christensen in:
13999         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00064.html
14000         * lib/fts.c (fsword): New type.
14001         (struct dev_type, filesystem_type): Use it.
14002         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for __fsword_t.
14003         Also, check for f_type only if fstatfs and sys/vfs.h work.
14005 2017-08-09  Paul Eggert  <eggert@cs.ucla.edu>
14007         tempname: do not depend on secure_getenv
14008         Excess dependency noted by Eli Zaretskii (Bug#28023#17).
14009         * lib/tempname.c (__secure_getenv) [!_LIBC]: Remove; unused.
14010         * modules/tempname (Depends-on): Remove secure_getenv.
14012 2017-08-08  Paul Eggert  <eggert@cs.ucla.edu>
14014         extensions: add _OPENBSD_SOURCE
14015         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _OPENBSD_SOURCE.
14017 2017-08-06  Reuben Thomas  <rrt@sc3d.org>
14018             Bruno Haible  <bruno@clisp.org>
14020         manywarnings: Add support for C++.
14021         * build-aux/g++-warning.spec: New file.
14022         * m4/manywarnings-c++.m4: New file.
14023         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C++)): New macro, that
14024         redirects to manywarnings-c++.m4.
14025         * modules/manywarnings (Files): Add m4/manywarnings-c++.m4.
14027 2017-08-06  Paul Eggert  <eggert@cs.ucla.edu>
14029         git-version-gen: another fix for tags with "-"
14030         * build-aux/git-version-gen: Improve fix for tags containing "-".
14031         Suggested by Markus Armbruster in:
14032         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00034.html
14034 2017-08-06  Bruno Haible  <bruno@clisp.org>
14036         warnings, manywarnings: Add support for multiple languages, not just C.
14037         * warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS_IMPL): Renamed from
14038         gl_UNKNOWN_WARNINGS_ARE_ERRORS.
14039         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C)): New macro.
14040         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): New macro.
14041         (gl_UNKNOWN_WARNINGS_ARE_ERRORS): Dispatch to
14042         gl_UNKNOWN_WARNINGS_ARE_ERRORS(_AC_LANG).
14043         (gl_WARN_ADD): Require the gl_UNKNOWN_WARNINGS_ARE_ERRORS specialization
14044         of the current language. If C++ is the current language, modify
14045         WARN_CXXFLAGS instead of WARN_CFLAGS.
14046         * manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): New macro, extracted from
14047         gl_MANYWARN_ALL_GCC.
14048         (gl_MANYWARN_ALL_GCC): Dispatch to gl_MANYWARN_ALL_GCC(_AC_LANG).
14050 2017-08-06  Markus Armbruster  <armbru@pond.sub.org>
14052         git-version-gen: Fix for tags containing '-'
14054         Really old versions of git-describe (before v1.5.0, Feb 2007)
14055         don't have the number of commits in their long format output,
14056         i.e. where modern 'git describe --abbrev=4 --match="v*"' prints
14057         "v0.1-1494-g124b9", they print "v0.1-1494-g124b9".  git-version-gen
14058         recognizes both patterns, and normalizes the old format to the new one.
14060         Unfortunately, this normalization code gets confused when the tag
14061         contains '-'.  Reproducer:
14063             $ git-tag -m test v0.2-rc1
14064             $ build-aux/git-version-gen .tarball-version; echo
14065             build-aux/git-version-gen: WARNING: git rev-list failed
14066             UNKNOWN
14068         We take exact tag "v0.2-rc1" for the old format, extract the presumed
14069         tag "v0.2" from it, then run "git rev-list v0.2..HEAD" to count
14070         commits since tha tag.  Fails, because tag "v0.2" does not exist.
14072         * git-version-gen: We could perhaps drop support for versions from
14073         more than a decade ago.  But tightening the pattern match is easy
14074         enough, so do that.  Still breaks when you use version tags ending in
14075         something matching -g????, but you arguably get what you deserve then.
14077 2017-08-05  Paul Eggert  <eggert@cs.ucla.edu>
14079         valgrind-tests: use ls, and cache
14080         * m4/valgrind-tests.m4: Test ls, not bash.
14081         Problem reported by Reuben Thomas.
14082         Also, cache the result so that it can be overridden.
14084 2017-08-04  Paul Eggert  <eggert@cs.ucla.edu>
14086         manywarnings: port to 64-bit GCC builds of Emacs
14087         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Compute max safe
14088         object size rather than hardwiring 2147483647.  This is needed to
14089         build GNU Emacs, which has one conditional (and used
14090         only-in-theory) call to malloc with a literal greater than
14091         2147483647.
14093 2017-08-04  Bruno Haible  <bruno@clisp.org>
14095         Relax the license of some modules with no runtime code.
14096         * modules/std-gnu11 (License): Set to 'unlimited'.
14097         * modules/c99 (License): Likewise.
14098         Reported by Reuben Thomas <rrt@sc3d.org>.
14099         * modules/d-ino (License): Set to 'LGPL'.
14100         * modules/host-os (License): Likewise.
14101         * modules/longlong (License): Likewise.
14103 2017-08-03  Paul Eggert  <eggert@cs.ucla.edu>
14105         renameat2: port to RHEL 7 + NFS
14106         * lib/renameat2.c (renameat2) [SYS_renameat2]:
14107         Port to RHEL 7 + NFS.  Problem reported by Ted Zlatanov in:
14108         http://lists.gnu.org/r/emacs-devel/2017-08/msg00082.html
14110 2017-08-02  Paul Eggert  <eggert@cs.ucla.edu>
14112         renameat2: port to non-renameat platforms
14113         Problem reported for MSVC-2015 by Gisle Vanem in:
14114         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00001.html
14115         * lib/renameat2.c [!HAVE_RENAMEAT]: Include <sys/stat.h> here too.
14116         (renameat2) [!HAVE_RENAMEAT]: Fix typo in arg passing.
14118 2017-08-01  Paul Eggert  <eggert@cs.ucla.edu>
14120         manywarnings: port to 32-bit GCC bug
14121         Problem reported by Pino Toscano in:
14122         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00150.html
14123         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Use 2**31 - 1,
14124         not 2**63 - 1, to work around the following GCC bug:
14125         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81650
14127 2017-07-30  Paul Eggert  <eggert@cs.ucla.edu>
14129         backupfile: new function to validate backup suffix
14130         * lib/backupfile.c (set_simple_backup_suffix): New function.
14131         (backupfile_internal): Use it.
14133         canonicalize: fix EOVERFLOW commentary
14134         Problem reported by Bruno Haible in:
14135         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00147.html
14136         * lib/canonicalize.c (canonicalize_filename_mode):
14137         * lib/canonicalize-lgpl.c (__realpath): Fix comments.
14139         Don't interpret EOVERFLOW to mean nonexistence
14140         * lib/fts.c (fts_stat): If lstat fails, report its errno, which
14141         may be EOVERFLOW; this is likely more useful than reporting the
14142         stat errno.
14143         * lib/glob.c (link_stat): Rename from link_exists2_p and
14144         return -1/0 instead of 0/1.  Caller changed.
14145         * lib/glob.c (link_exists_p):
14146         * lib/renameat2.c (rename_noreplace, renameat2):
14147         * lib/tempname.c (try_nocreate):
14148         If errno == EOVERFLOW then the directory entry exists, so do not
14149         act as if it does not exist.
14151         backup-rename: new module
14152         It is like backupfile, except it avoids some race conditions,
14153         and it does not output to stderr or exit.
14154         * MODULES.html.sh: Add backup-rename.
14155         * lib/backup-find.c, lib/backup-internal.h, lib/backup-rename.c:
14156         * modules/backup-rename: New files.
14157         * lib/backupfile.c: Turn this into an internals file, which
14158         contains code common to backupfile and backup_rename.  Include
14159         backupfile-internal.h instead of backupfile.h.  Do not include
14160         argmatch.h or xalloc.h: include xalloc-oversized.h.  Include
14161         renameat2.h and fcntl.h.
14162         (BACKUP_NOMEM): New constant.
14163         (numbered_backup): New args BASE_OFFSET and *DIRPP.  Do not exit
14164         on memory exhaustion; just return BACKUP_NOMEM.  Caller changed.
14165         (backupfile_internal): Rename from find_backup_file_name.
14166         Support new arg RENAME.
14167         (backup_args, backup_types, get_version, xget_version):
14168         Move to lib/backup-find.c.
14169         * lib/backupfile.h (backup_file_rename): New decl.
14170         * modules/backupfile (Files): Add lib/backup-internal.h,
14171         lib/backup-find.c.
14172         (Depends-on): Add dirfd, fcntl, renameat2.
14173         (lib_SOURCES): Add backup-find.c.
14175         renameat2: port better to older Solaris
14176         * lib/renameat2.c (renameat2): Set ret_val properly on old Solaris.
14177         Add goto to use a label, to silence picky compilers.
14179         fts-tests: port to gcc -Wwrite-strings
14180         * tests/test-fts.c (base, base_d): New static vars.
14181         (argv, remove_tree, main): Use them.
14183 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
14185         relocatable-lib{,-lgpl}: improve documentation
14186         * doc/relocatable-maint.texi: Document use of relocatable-lib{,-lgpl}.
14187         Various other updates.
14189 2017-07-30  Reuben Thomas  <rrt@sc3d.org>
14190             Bruno Haible  <bruno@clisp.org>
14192         relocatable-lib{,-lgpl}: add Valgrind suppressions
14193         * lib/relocatable.valgrind: New file.
14194         * modules/relocatable-lib (Files): Add relocatable.valgrind.
14195         * modules/relocatable-lib-lgpl: Likewise.
14197 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
14199         relocatable: Make the license on the sources the GPL.
14200         * lib/relocatable.h, lib/relocatable.c: Change the copyright notice from
14201         LGPL, which was a special case so that the relocatable source files
14202         could be used without gnulib-tool, to GPL. They can still be used under
14203         the LGPL, using the --lgpl option to gnulib-tool.
14205 2017-07-30  Bruno Haible  <bruno@clisp.org>
14207         host-cpu-c-abi: Detect ILP32 ABI on IA-64 HP-UX.
14208         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Distinguish ia64-ilp32
14209         from ia64. For arm64, test only __aarch64__, as __ARM_64BIT_STATE and
14210         __ARM_PCS_AAPCS64 are not reliable indicators: they are not defined on
14211         Ubuntu 14.04 (gcc 4.8.4) and Debian 8 (gcc 4.9.2).
14213 2017-07-27  Paul Eggert  <eggert@cs.ucla.edu>
14215         faccessat: document AT_SYMLINK_NOFOLLOW issue
14216         * doc/posix-functions/faccessat.texi: Modernize platform list.
14217         Document AT_SYMLINK_NOFOLLOW limitation.
14219         renameat2: port to Solaris 10
14220         * lib/renameat2.c (rename_noreplace): Use lstat, not faccessat
14221         with AT_SYMLINK_NOFOLLOW (which is not portable).
14222         (renameat): Undef before using, to avoid endless recursion when
14223         the replacement renameat calls renameat2 which calls the
14224         replacement renameat.
14225         (renameat2): Use lstatat, not faccessat with AT_SYMLINK_NOFOLLOW.
14226         * modules/renameat2 (Depends-on): Remove faccessat.
14227         * modules/renameat-tests (test_renameat_LDADD):
14228         * modules/renameat2-tests (test_renameat2_LDADD):
14229         Remove $(LIB_EACCESS).
14231         renameat2: new module
14232         Although the Linux syscall renameat2 is not in glibc (yet?), it is
14233         useful to have access to its RENAME_NOREPLACE flag.
14234         * MODULES.html.sh (func_all_modules): Add renameat2.
14235         * lib/renameat2.c, lib/renameat2.h, modules/renameat2:
14236         * modules/renameat2-tests, tests/test-renameat2.c: New files.
14237         * lib/renameat.c (renameat): Move most of the implementation
14238         to renameat2, and just call renameat2.
14239         * modules/renameat (Files): Remove lib/at-func2.c.
14240         (Depends-on): Depend only on renameat2.
14241         (Include): Remove <fcntl.h>.
14242         * modules/renameat-tests (test_renameat_LDADD): Add $(LIB_EACCESS),
14243         since renameat (via renameat2) might use faccessat.
14245 2017-07-27  Erik Skultety <eskultet@redhat.com>  (tiny change)
14247         vc-list-files: Adjust the script to support git worktrees
14248         * build-aux/vc-list-files: Require existence, not directory.
14250 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
14252         doc: bring MODULES.html.sh up to date
14253         Somehow a few months ago we stopped updating MODULES.html.sh.
14254         I don’t recall explicitly deciding this, so I updated it now.
14255         Alternatively I suppose we could remove it.
14256         * MODULES.html.sh: Add builtin-expect, c99, ctime, explicit_bzero,
14257         localtime, localtime-buffer, noreturn, nstrftime, strftime-fixes,
14258         truncate, utime, utime-h, windows-stat-inodes,
14259         windows-stat-override, windows-stat-timespec, year2038.  Sort.
14261 2017-07-26  Jim Meyering  <meyering@fb.com>
14263         fprintftime: fix build-break caused by recent renaming
14264         * lib/fprintftime.c: Include "nstrftime.c", not the now-renamed
14265         "strftime.c".
14266         * modules/fprintftime: Depend directly on nstrftime.
14268 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
14270         regex: work with GCC7's -Werror=implicit-fallthrough=
14271         * lib/regex_internal.h (FALLTHROUGH): New macro.
14272         * lib/regcomp.c (peek_token_bracket, parse_expression):
14273         * lib/regexec.c (check_node_accept): Use it.
14275 2017-07-24  Paul Eggert  <eggert@cs.ucla.edu>
14277         fts: simplify fts_build
14278         * lib/fts.c (fts_build): Simplify, and be lazier about
14279         calling leaf_optimization.
14281         fts: three levels of leaf optimization
14282         * lib/fts.c (enum leaf_optimization): New type with three values.
14283         (S_MAGIC_AFS): New macro.  Sort them.
14284         (leaf_optimization): Rename from leaf_optimization_applies, and
14285         return enum leaf_optimization instead of bool.  All uses changed.
14286         Add cases for unknown type and for AFS.
14287         (fts_build): Don’t rely on link counts if NO_LEAF_OPTIMIZATION.
14289         fts: cache dirent_inode_sort_may_be_useful too
14290         * lib/fts.c (struct dev_type): New struct.
14291         (DEV_TYPE_HT_INITIAL_SIZE): New constant.
14292         (dev_type_hash, dev_type_compare, filesystem_type): New functions.
14293         (dirent_inode_sort_may_be_useful, leaf_optimization_applies):
14294         Now takes FTSENT const *, not int.  All uses changed.  Use
14295         filesystem_type to cache.
14296         (link_count_optimize_ok): Remove.  Caller changed to use
14297         leaf_optimization_applies, which now uses shared cache.
14299         fts: introduce MIN_DIR_NLINK
14300         * lib/fts.c (MIN_DIR_NLINK): New constant.
14301         Use it instead of 2, whenever we are talking about link counts.
14303         fts: nlink_t signedness fixups
14304         * lib/fts.c (fts_open): Set rootparent n_dirs_remaining to -1
14305         so that root need not be a special case later.
14306         (fts_read): Remove now-redundant test for fts_level.
14307         Do not assume that nlink_t is signed.
14308         (fts_build): Remove useless decrement of nlinks.
14309         (fts_stat): Avoid unlikely signed integer overflow later, if
14310         nlink_t is signed.
14312         fts-tests: new module
14313         * modules/fts-tests, tests/test-fts.c: New files.
14315 2017-07-23  Bruno Haible  <bruno@clisp.org>
14317         Rename module 'strftime' to 'nstrftime'.
14318         * m4/nstrftime.m4: Renamed from m4/strftime.m4.
14319         * lib/nstrftime.c: Renamed from lib/strftime.c.
14320         * modules/nstrftime: Renamed from modules/strftime.
14321         (Files, Makefile.am): Update.
14322         * tests/test-nstrftime.c: Renamed from tests/test-strftime.c.
14323         Fix comment.
14324         * modules/nstrftime-tests: Renamed from modules/strftime-tests.
14325         (Files, Makefile.am): Update.
14326         * modules/strftime: New file, an obsolete indirection.
14327         * doc/posix-functions/strftime.texi: Update reference.
14328         * config/srclist.txt: Update info.
14329         * NEWS: Mention the change.
14331 2017-07-21  Tim Rühsen  <tim.ruehsen@gmx.de>
14333         malloca: Silence a warning from clang's memory sanitizer.
14334         * lib/malloca.c (NO_SANITIZE_MEMORY): New macro.
14335         (freea): Use it.
14337 2017-07-18  Bruno Haible  <bruno@clisp.org>
14339         host-cpu-c-abi: Fix detection of MIPS ABI.
14340         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, really test the
14341         ABI, not the CPU instruction set.
14343 2017-07-16  Paul Eggert  <eggert@cs.ucla.edu>
14345         explicit_bzero: new module
14346         The explicit_bzero function has been added to glibc.
14347         This module is intended to supports its use in GNU programs.
14348         * doc/glibc-functions/explicit_bzero.texi, lib/explicit_bzero.c:
14349         * m4/explicit_bzero.m4, modules/explicit_bzero:
14350         New files.
14351         * doc/gnulib.texi (Glibc string.h): Link to new doc.
14352         * lib/string.in.h (explicit_bzero): Declare.
14353         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add defaults for it.
14354         * modules/string (string.h): Substitute its vars.
14356 2017-07-16  Bruno Haible  <bruno@clisp.org>
14358         threadlib: Support static linking.
14359         * m4/threadlib.m4 (gl_THREADLIB_BODY): When static linking is in use,
14360         set gl_cv_have_weak to 'no'.
14362 2017-07-16  Bruno Haible  <bruno@clisp.org>
14364         unicase/locale-language: Fix link dependencies.
14365         * modules/unicase/locale-language (Link): New section.
14366         * modules/unicase/locale-language-tests (Makefile.am): Link
14367         test-locale-language program with $(LIBTHREAD).
14369 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
14371         sys_socket: Add support for OpenVMS.
14372         * lib/sys_socket.in.h [__VMS]: Define CMSG_SPACE, CMSG_LEN.
14373         * doc/posix-headers/sys_socket.texi: Mention OpenVMS issues.
14375 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
14377         sys_resource: Add support for OpenVMS.
14378         * lib/resource.in.h [__VMS]: Define RUSAGE_SELF, RUSAGE_CHILDREN.
14379         * doc/posix-headers/sys_resource.texi: Mention OpenVMS issues.
14381 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
14382             Bruno Haible  <bruno@clisp.org>
14384         math: Add support for OpenVMS.
14385         * lib/math.in.h [__VMS]: Include <fp.h>.
14386         * doc/posix-headers/math.texi: Mention OpenVMS issues.
14388 2017-07-15  Bruno Haible  <bruno@clisp.org>
14390         getdtablesize: Add minimal support for OpenVMS.
14391         Reported by John E. Malmberg <wb8tyw@qsl.net>.
14392         * modules/getdtablesize (Description): Fix.
14393         * lib/getdtablesize.c: Fix comment.
14394         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Don't replace the
14395         getdtablesize() function, even though the test fails.
14396         * doc/glibc-functions/getdtablesize.texi: Reference SUSv2. Describe
14397         limitation on OpenVMS.
14399 2017-07-13  Bruno Haible  <bruno@clisp.org>
14401         Revisit cross-compilation guesses.
14402         * m4/wctype_h.m4 (gl_WCTYPE_H): Add comment.
14404 2017-07-13  Bruno Haible  <bruno@clisp.org>
14406         Improve cross-compilation guesses for native Windows.
14407         * m4/btowc.m4 (gl_FUNC_BTOWC): Add cross-compilation guess for native
14408         Windows.
14409         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Likewise.
14410         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Likewise.
14411         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
14412         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): Likewise.
14413         * m4/cbrtl.m4 (gl_FUNC_CBRTL, gl_FUNC_CBRTL_WORKS): Likewise.
14414         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
14415         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
14416         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
14417         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
14418         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
14419         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
14420         * m4/exp2.m4 (gl_FUNC_EXP2_WORKS): Likewise.
14421         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
14422         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
14423         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): Likewise.
14424         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
14425         * m4/fabsl.m4 (gl_FUNC_FABSL_WORKS): Likewise.
14426         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
14427         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
14428         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
14429         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
14430         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
14431         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Likewise.
14432         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Likewise.
14433         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Likewise.
14434         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
14435         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
14436         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
14437         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
14438         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): Likewise.
14439         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
14440         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
14441         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
14442         * m4/hypotf.m4 (gl_FUNC_HYPOTF, gl_FUNC_HYPOTF_WORKS): Likewise.
14443         * m4/hypotl.m4 (gl_FUNC_HYPOTL, gl_FUNC_HYPOTL_WORKS): Likewise.
14444         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
14445         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
14446         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
14447         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
14448         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
14449         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
14450         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
14451         * m4/log.m4 (gl_FUNC_LOG, gl_FUNC_LOG_WORKS): Likewise.
14452         * m4/logf.m4 (gl_FUNC_LOGF, gl_FUNC_LOGF_WORKS): Likewise.
14453         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
14454         * m4/log10.m4 (gl_FUNC_LOG10, gl_FUNC_LOG10_WORKS): Likewise.
14455         * m4/log10f.m4 (gl_FUNC_LOG10F, gl_FUNC_LOG10F_WORKS): Likewise.
14456         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Likewise.
14457         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
14458         * m4/log1pf.m4 (gl_FUNC_LOG1PF, gl_FUNC_LOG1PF_WORKS): Likewise.
14459         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
14460         * m4/log2.m4 (gl_FUNC_LOG2, gl_FUNC_LOG2_WORKS): Likewise.
14461         * m4/log2f.m4 (gl_FUNC_LOG2F, gl_FUNC_LOG2F_WORKS): Likewise.
14462         * m4/log2l.m4 (gl_FUNC_LOG2L_WORKS): Likewise.
14463         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): Likewise.
14464         * m4/logbf.m4 (gl_FUNC_LOGBF_WORKS): Likewise.
14465         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Likewise.
14466         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
14467         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT, gl_MBRTOWC_C_LOCALE): Likewise.
14468         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
14469         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
14470         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
14471         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
14472         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
14473         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
14474         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
14475         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
14476         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
14477         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE,
14478         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2,
14479         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
14480         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
14481         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
14482         * m4/regex.m4 (gl_REGEX): Likewise.
14483         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
14484         * m4/remainderf.m4 (gl_FUNC_REMAINDERF,
14485         gl_FUNC_REMAINDERF_WORKS): Likewise.
14486         * m4/remainderl.m4 (gl_FUNC_REMAINDERL,
14487         gl_FUNC_REMAINDERL_WORKS): Likewise.
14488         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
14489         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
14490         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
14491         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
14492         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
14493         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
14494         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
14495         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
14496         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): Likewise.
14497         * m4/stdint.m4 (gl_STDINT_H): Likewise.
14498         * m4/strerror.m4 (gl_FUNC_STRERROR_0): Likewise.
14499         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
14500         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
14501         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
14502         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
14503         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
14504         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
14505         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
14506         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
14507         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
14508         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
14509         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
14510         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
14511         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
14512         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
14513         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
14514         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
14515         Likewise.
14516         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
14517         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for native
14518         Windows. Enable also on Autoconf 2.70.
14519         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
14520         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
14521         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
14522         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO,
14523         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
14524         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): Add cross-compilation guess
14525         for native Windows.
14526         (gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
14527         gl_VSNPRINTF_ZEROSIZE_C99): Add comment.
14529 2017-07-13  Bruno Haible  <bruno@clisp.org>
14531         Improve cross-compilation guesses for native Windows.
14532         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add cross-compilation guess for native
14533         Windows.
14534         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Don't use internals of
14535         memchr.m4.
14536         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
14538 2017-07-13  Bruno Haible  <bruno@clisp.org>
14540         Improve cross-compilation guesses for native Windows.
14541         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Add cross-compilation guess for
14542         native Windows.
14543         (gl_FUNC_FFLUSH): Update accordingly.
14544         * m4/fclose.m4 (gl_FUNC_FCLOSE): Likewise.
14545         * m4/fseeko.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
14547 2017-07-11  Bruno Haible  <bruno@clisp.org>
14549         More systematic m4 quoting and indentation.
14550         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Quote systematically.
14551         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
14552         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
14553         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
14554         * m4/host-os.m4 (gl_HOST_OS): Likewise.
14555         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H,
14556         gl_WINSIZE_IN_PTEM): Likewise.
14557         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Likewise.
14558         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
14559         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
14560         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Quote systematically.
14561         Correct indentation.
14562         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
14563         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
14564         * m4/jm-winsz2.m4 (gl_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Likewise.
14565         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
14566         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
14567         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
14569 2017-07-10  Bruno Haible  <bruno@clisp.org>
14571         round, roundf: Avoid compiler warning in configure test.
14572         * m4/round.m4 (gl_FUNC_ROUND): Use 'return' instead of exit().
14573         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
14575 2017-07-10  Bruno Haible  <bruno@clisp.org>
14577         getlogin tests: Avoid #ifdefs when sharing code between modules.
14578         * modules/getlogin_r-tests (Files): Add tests/test-getlogin.h.
14579         * modules/getlogin-tests (Files): Likewise. Remove
14580         tests/test-getlogin_r.c.
14581         * tests/test-getlogin.h: Extracted from tests/test-getlogin_r.c.
14582         * tests/test-getlogin.c: Extracted from tests/test-getlogin_r.c.
14583         * tests/test-getlogin_r.c: Include test-getlogin.h. Omit code that tests
14584         getlogin().
14586 2017-07-10  Paul Eggert  <eggert@cs.ucla.edu>
14588         getlogin: don’t assume one name per uid
14589         Problem reported by Wolfgang F. Muthmann (Bug#27640).
14590         * modules/getlogin-tests (Files): Add tests/test-getlogin_r.c.
14591         (ttyname): Remove test.
14592         * modules/getlogin_r-tests (ttyname): Remove test.
14593         * tests/test-getlogin.c: Replace this near-clone of test-getlogin_r.c
14594         with ‘#define TEST_LOGIN’ followed by ‘#include "test-getlogin_r.c"’.
14595         * tests/test-getlogin_r.c: If TEST_GETLOGIN is defined, test
14596         getlogin rather than getlogin_r.  This avoids code duplication.
14597         (main): Use isatty and fstat rather than ttyname and stat.
14598         Use getpwnam instead of getpwuid, to be portable to test platforms
14599         that have multiple login names for the same uid.
14601 2017-07-10  Tim Rühsen  <tim.ruehsen@gmx.de>
14602             Bruno Haible  <bruno@clisp.org>
14604         glob: Fix more memory leaks.
14605         * lib/glob.c (glob): Use 'goto out' in order to free dirname before
14606         returning.
14607         Reported by Tim Rühsen.
14609 2017-07-10  Bruno Haible  <bruno@clisp.org>
14611         Make sure $host and $host_os are defined when used.
14612         * m4/argz.m4 (gl_FUNC_ARGZ): Require AC_CANONICAL_HOST.
14613         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Likewise.
14614         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
14615         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
14616         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
14617         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
14618         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
14619         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
14620         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
14621         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
14622         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
14623         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
14624         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
14625         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST outside the
14626         m4_ifdef block.
14628 2017-07-09  Bruno Haible  <bruno@clisp.org>
14630         *printf: Fix cross-compilation guess for Solaris.
14631         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): Fix copy-and-paste mistake from
14632         2010-12-21.
14634 2017-07-07  Paul Eggert  <eggert@cs.ucla.edu>
14635             Bruno Haible  <bruno@clisp.org>
14637         vasnprintf: port to macOS 10.13
14638         Problem reported by comex in:
14639         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00056.html
14640         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on macOS.
14642 2017-07-06  Bruno Haible  <bruno@clisp.org>
14644         imaxdiv tests: Fix logic.
14645         * tests/test-imaxdiv.c (main): Use == instead of =.
14646         Reported by Coverity.
14648 2017-07-06  Bruno Haible  <bruno@clisp.org>
14650         uninorm/filter: Fix use-after-free bug.
14651         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Maintain
14652         sortbuf == filter->sortbuf invariant.
14653         Reported by Coverity.
14655 2017-07-06  Bruno Haible  <bruno@clisp.org>
14657         glob: Fix more memory leaks.
14658         * lib/glob.c (glob): Free dirname before returning.
14659         Reported by Coverity and Tim Rühsen.
14661 2017-07-06  Paul Eggert  <eggert@cs.ucla.edu>
14663         parse-datetime: fix uninit var bug
14664         Reported by Bruno Haible in:
14665         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00038.html
14666         * lib/parse-datetime.y (parse_datetime2): Do not use
14667         uninitialized.
14669 2017-07-05  Bruno Haible  <bruno@clisp.org>
14671         doc: Update for MSVC 14.
14672         * doc/posix-headers/*.texi: Add info about MSVC 14.
14673         * doc/posix-functions/*.texi: Likewise.
14674         * doc/pastposix-functions/*.texi: Likewise.
14675         * doc/glibc-headers/*.texi: Likewise.
14676         * doc/glibc-functions/*.texi: Likewise.
14678 2017-07-05  Bruno Haible  <bruno@clisp.org>
14680         sched: Fix build failure on native Windows (regression from 2017-06-19).
14681         * m4/sched_h.m4 (gl_SCHED_H): Set HAVE_STRUCT_SCHED_PARAM always.
14683 2017-07-03  John E. Malmberg  <wb8tyw@gmail.com>
14685         stdioext: Port to OpenVMS.
14686         * lib/stdio-impl.h: OpenVMS uses struct _iobuf for FILE information.
14687         * lib/fpending.c (fpending): Remove non-working VMS specific code.
14688         * lib/fbufmode.c (fbufmode): Fix _IOLBF test to use fp_ macro.
14689         * lib/fflush.c (clear_ungetc_buffer): Add OpenVMS to comments.
14690         * lib/fpurge.c (fpurge): Likewise.
14691         * lib/freadable.c (freadable): Likewise.
14692         * lib/freadahead.c (freadahead): Likewise.
14693         * lib/freading.c (freading): Likewise.
14694         * lib/freadptr.c (freadptr): Likewise.
14695         * lib/freadseek.c (freadseek): Likewise.
14696         * lib/fseeko.c (fseeko): Likewise.
14697         * lib/fseterr.c (fseterr): Likewise.
14698         * lib/fwritable.c (fwriteable): Likewise.
14699         * lib/fwriting.c (fwriting): Likewise.
14701 2017-07-01  Benno Schulenberg  <bensberg@telfort.nl>
14703         glob: Declare variables at the very start of their scope.
14704         * lib/glob.c (convert_dirent, convert_dirent64): Give each fragment
14705         its separate scope, so the functions will compile on Haiku.
14707 2017-07-01  Bruno Haible  <bruno@clisp.org>
14709         logbl: Work around a glibc bug on PowerPC64LE.
14710         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Test also negative subnormal
14711         numbers.
14712         * doc/posix-functions/logbl.texi: Update.
14714 2017-06-29  Bruno Haible  <bruno@clisp.org>
14716         stat, fstat: Compile stat-w32.c only on platforms that need it.
14717         Suggested by Paul Eggert.
14718         * modules/stat (configure.ac): Request stat-w32.o only on native
14719         Windows.
14720         * modules/fstat (configure.ac): Likewise.
14722 2017-06-25  Bruno Haible  <bruno@clisp.org>
14724         stat: Improve last change.
14725         * lib/stat-w32.c: Revert last change. Use generic idiom instead.
14727 2017-06-25  Paul Eggert  <eggert@cs.ucla.edu>
14729         stat: port to xlc 12.01
14730         * lib/stat-w32.c: Always include <sys/types.h>.  Otherwise, xlc
14731         12.01 complains "Compilation unit is empty."
14733 2017-06-24  Paul Eggert  <eggert@cs.ucla.edu>
14735         xalloc-oversized: port to icc
14736         * lib/xalloc-oversized.h (xalloc_oversized): Do not use
14737         __builtin_mul_overflow if ICC is defined, as this results in
14738         "undefined reference to `__builtin_mul_overflow'" with icc 17.0.2
14739         20170213.
14741 2017-06-19  Bruno Haible  <bruno@clisp.org>
14743         classpath: Avoid including config.h twice, as it produces warnings.
14744         Reported by John E. Malmberg <wb8tyw@gmail.com>.
14745         * lib/classpath.h: Conditionalize the include of config.h.
14747 2017-06-19  Bruno Haible  <bruno@clisp.org>
14748             John E. Malmberg  <wb8tyw@gmail.com>  (tiny change)
14750         sched: Fix compilation failure on OpenVMS.
14751         * m4/sched_h.m4 (gl_SCHED_H): Require AC_CANONICAL_HOST. On OpenVMS,
14752         test whether <pthread.h> exists and defines struct sched_param.
14753         * lib/sched.in.h: On OpenVMS, include <pthread.h>.
14755 2017-06-17  Paul Eggert  <eggert@cs.ucla.edu>
14757         diffseq: port to GCC 7 with --enable-gcc-warnings
14758         * lib/diffseq.h (diag): Use an if, not an ifdef, for most of the
14759         heuristic check.  This way, GCC 7 with --enable-gcc-warnings does
14760         not complain about big_snake being defined but not used.
14762 2017-06-15  Bruno Haible  <bruno@clisp.org>
14764         gettext-h: Update theoretical condition for use of variable size arrays.
14765         Reported by Paul Eggert.
14766         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Extend comment
14767         to include the theoretical condition for availability of variable size
14768         arrays, if we could trust the value of __STDC_VERSION__.
14770 2017-06-12  Bruno Haible  <bruno@clisp.org>
14772         Relicense some modules under LGPLv2+.
14773         Daiki Ueno's approval is in
14774         https://lists.gnu.org/r/bug-gnulib/2017-06/msg00058.html.
14775         * modules/uniwidth/base (License): Change to LGPLv2+.
14776         * modules/uniwidth/width (License): Likewise.
14778 2017-06-11  Bruno Haible  <bruno@clisp.org>
14780         localename: Fix test failure on DragonFly BSD.
14781         * lib/localename.c (gl_locale_name_thread_unsafe): Treat DragonFly BSD
14782         like FreeBSD.
14784 2017-06-11  Bruno Haible  <bruno@clisp.org>
14786         float: Fix 'float' and 'isinf' failures on DragonFly BSD.
14787         * m4/float_h.m4 (gl_FLOAT_H): Treat DragonFly BSD like FreeBSD.
14788         * lib/float.in.h: Likewise.
14789         * m4/fmal.m4, m4/frexpl.m4, m4/logbl.m4: Update accordingly.
14791 2017-06-11  Bruno Haible  <bruno@clisp.org>
14793         gnulib-tool: Clean up after autotools.
14794         * gnulib-tool (func_create_testdir, func_create_megatestdir): Remove
14795         useless directory left over by the Autotools.
14797 2017-06-11  Paul Eggert  <eggert@cs.ucla.edu>
14799         getopt-posix: port to glibc 2.25.90
14800         Problem reported by Daniel P. Berrange in:
14801         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00003.html
14802         * lib/getopt-pfx-core.h (_GETOPT_CORE_H):
14803         * lib/getopt-pfx-ext.h (_GETOPT_EXT_H):
14804         #undef if __GETOPT_PREFIX is defined.
14806 2017-06-11  Bruno Haible  <bruno@clisp.org>
14808         strtod-obsolete: Fix license.
14809         * modules/strtod-obsolete (License): Change to LGPL.
14811 2017-06-10  Jim Meyering  <meyering@fb.com>
14813         maint: update to work with GCC7's -Werror=implicit-fallthrough=
14814         * lib/savewd.c (FALLTHROUGH): Define.
14815         (savewd_save, savewd_restore): Use this, rather than a comment,
14816         whenever one switch case falls through into the next.
14818 2017-06-08  Bruno Haible  <bruno@clisp.org>
14820         host-cpu-c-abi: Support for aarch64 ILP32 ABI.
14821         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the aarch64 ILP32
14822         ABI. Set HOST_CPU_C_ABI=arm64-ilp32 and define __arm64_ilp32__ in this
14823         case.
14825 2017-06-08  Paul Eggert  <eggert@cs.ucla.edu>
14827         doc: remove robots, add prereqs
14828         * doc/build-automation.texi, doc/gnulib.texi: Mention prereqs for
14829         builds.  Simon's robot site does not seem to be up, so remove
14830         mentions of it for now.
14832 2017-06-08  Bruno Haible  <bruno@clisp.org>
14834         gnulib-tool: Fix bug in func_symlink_if_changed, from 2006-11-13.
14835         * gnulib-tool (func_symlink_target): New function, extracted from
14836         func_symlink.
14837         (func_symlink, func_symlink_if_changed): Use it.
14839 2017-06-08  Bruno Haible  <bruno@clisp.org>
14841         gnulib-tool: Fix bug in func_ln_s, from 2016-01-15.
14842         * gnulib-tool (func_ln_s): Determine cp_src correctly.
14844 2017-06-07  Bruno Haible  <bruno@clisp.org>
14846         canonicalize-lgpl: Avoid conflict with gnulib 'getcwd' module on VMS.
14847         Reported by John E. Malmberg <wb8tyw@gmail.com> in
14848         <https://lists.gnu.org/r/bug-gnulib/2017-06/msg00029.html>.
14849         * lib/canonicalize-lgpl.c (__getcwd): On VMS, when using gnulib's getcwd
14850         override, pass 2 arguments to getcwd, not 3.
14852 2017-06-04  Paul Eggert  <eggert@cs.ucla.edu>
14854         same-inode: port better to VMS 8.2 and later
14855         Problem reported by John E. Malmberg in:
14856         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00005.html
14857         * lib/same-inode.h (SAME_INODE) [__VMS && 80200000 <= __CRTL_VER]:
14858         Use the usual POSIX definition.
14859         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define _USE_STD_STAT.
14861 2017-06-01  Paul Eggert  <eggert@cs.ucla.edu>
14863         error: fix POSIX violation for va_end
14864         Problem reported by Bruno Haible in:
14865         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00001.html
14866         * lib/error.c (error_tail): Do not call va_end here.
14867         (error, error_at_line): Call it here instead.
14869 2017-05-28  Bruno Haible  <bruno@clisp.org>
14871         c-strtod: Make it usable in C++ mode.
14872         * lib/c-strtod.h: Add 'extern "C"' marker for C++.
14874 2017-05-25  Jim Meyering  <meyering@fb.com>
14876         quotearg: fix compilation failure due to FALLTHROUGH misuse
14877         * lib/quotearg.c (quotearg_buffer_restyled): Revert one FALLTHROUGH
14878         macro back to /* fall through */ comment.  The macro can apply only
14879         to a following case statement.  Reported by Assaf Gordon.
14881 2017-05-25  Paul Eggert  <eggert@cs.ucla.edu>
14883         intprops: port to recent icc
14884         Port to icc (ICC) 17.0.4 20170411, which defines __GNUC__ to be 5
14885         but does not support __builtin_add_overflow etc.
14886         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW) [__ICC]:
14887         Define to 0.
14889 2017-05-23  Karl Berry  <karl@freefriends.org>
14891         * config/srclist.txt (iconv.m4): sync broken, comment out
14892         until (hopefully) the next gettext release.
14894 2017-05-22  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
14896         Remove repeated words in comments.
14898 2017-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
14900         fallthrough: reinstate a FALLTHROUGH instance in quotearg
14901         quotearg.c: Reinstate this instance which is significant
14902         when the if branch is not taken.
14904 2017-05-21  Bruno Haible  <bruno@clisp.org>
14906         gnulib-tool: Add options to create hard links.
14907         * gnulib-tool (func_usage): Document options --hardlink,
14908         --local-hardlink, --more-hardlinks.
14909         (func_symlink): Renamed from func_ln.
14910         (func_symlink_if_changed): Renamed from func_ln_if_changed.
14911         (func_hardlink): New function.
14912         (copymode, lcopymode): New variables.
14913         (symbolic, lsymbolic): Remove variables.
14914         (Options): Implement options --hardlink, --local-hardlink,
14915         --more-hardlinks.
14916         (func_should_link): Renamed from func_should_symlink. Set copyaction.
14917         (func_add_file, func_update_file): Update invocation of
14918         func_should_link. Invoke func_hardlink when appropriate.
14919         (func_import): Update comments.
14920         (func_create_testdir): Update invocation of func_should_link. Invoke
14921         func_hardlink when appropriate.
14922         Finally, invoke 'git update-index --refresh' to mitigate the effects of
14923         the hard links on git.
14925 2017-05-20  Bruno Haible  <bruno@clisp.org>
14927         argp: Simplify bit manipulation.
14928         * lib/argp-parse.c (parser_parse_opt): Use &, |, ~ instead of shifts
14929         on a signed integer type.
14931 2017-05-20  Bruno Haible  <bruno@clisp.org>
14933         Avoid wrong configure results with gcc -fsanitize=address.
14934         This completes the work done on 2016-02-06 on this topic.
14935         * m4/memmem.m4 (gl_FUNC_MEMMEM): Free allocated memory before returning.
14936         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
14937         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
14938         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
14939         * m4/fopen.m4 (gl_FUNC_FOPEN): Close allocated FILE streams before
14940         returning.
14941         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
14942         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
14943         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
14944         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
14945         * m4/signbit.m4 (gl_FLOATTYPE_SIGN_LOCATION): Likewise.
14946         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
14947         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Close allocated FILE streams and
14948         free allocated memory before returning.
14949         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
14950         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Close allocated DIR
14951         objects before returning.
14952         * m4/iconv.m4 (AM_ICONV_LINK): Close allocated iconv_t handles before
14953         returning.
14955 2017-05-20  Bruno Haible  <bruno@clisp.org>
14957         gnulib-tool: Don't create hard links between gnulib and its testdirs.
14958         * gnulib-tool (func_create_testdir): Don't invoke 'ln'.
14960 2017-05-20  Bruno Haible  <bruno@clisp.org>
14962         argp, tsearch tests: Fix file list.
14963         * modules/argp-tests (Files): Add tests/macros.h.
14964         * modules/tsearch-tests (Files): Likewise.
14966 2017-05-20  Bruno Haible  <bruno@clisp.org>
14968         getopt-posix tests: Remove redundant include.
14969         * tests/test-getopt.h: Don't include "macros.h". It's already included
14970         by tests/test-getopt-main.h.
14972 2017-05-19  Jim Meyering  <meyering@fb.com>
14974         dfa: two small simplifications
14975         * lib/dfa.c (build_state): Avoid repeating longer expressions.
14977 2017-05-18  Jim Meyering  <meyering@fb.com>
14979         fallthrough: update for GCC 7/8
14980         * lib/quotearg.c (FALLTHROUGH): New macro.
14981         Use it whenever one switch case falls through into the next,
14982         replacing "/* Fall through */" comments.  This exposed one
14983         instance of an unwarranted "fall through" comment: unwarranted
14984         because it preceded a "goto" label not a case statement.
14985         * lib/freopen-safer.c (freopen_safer): Likewise.
14986         * lib/fts.c (leaf_optimization_applies): Likewise.
14987         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
14988         * tests/test-getopt_long.h (getopt_long_loop): Likewise.
14989         * tests/test-tsearch.c (mangle_tree): Likewise.  Also include
14990         tests/macros.h for the definition.
14991         * tests/test-argp.c (group1_parser): Likewise.
14992         * tests/test-getopt.h (getopt_loop): Likewise.
14994 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
14996         argp: fix shift bug
14997         * lib/argp-parse.c (parser_parse_opt): Rework to avoid undefined
14998         behavior on shift overflow, caught by gcc -fsanitize=undefined.
15000         argp: fix pointer-subtraction bug
15001         * lib/argp-help.c (hol_append): Don’t subtract pointers to
15002         different arrays, as this can run afoul of -fcheck-pointer-bounds.
15003         See the thread containing Bruno Haible’s report in:
15004         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00171.html
15006 2017-05-19  Bruno Haible  <bruno@clisp.org>
15008         printf-posix tests: Avoid test failure with "gcc --coverage".
15009         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
15010         * tests/test-printf-posix2.c (main): Test a width of 10000000 rather
15011         than 5000000.
15012         * tests/test-fprintf-posix2.c (main): Likewise.
15014 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
15016         closeout: don’t close stderr when sanitizing
15017         * NEWS: Document this.
15018         * lib/closeout.c (__has_feature): New macro, if not already defined.
15019         (SANITIZE_ADDRESS): New constant.
15020         (close_stdout): Don’t close stderr if sanitizing addresses.
15022 2017-05-19  Bruno Haible  <bruno@clisp.org>
15024         get-rusage-data tests: Avoid failure on Linux/glibc.
15025         * tests/test-get-rusage-data.c (main): Don't expect a strict increase
15026         on glibc systems.
15028 2017-05-18  Bruno Haible  <bruno@clisp.org>
15030         localename: Include necessary header files on Cygwin.
15031         * lib/localename.c [__CYGWIN__]: Include <langinfo.h>, since this is
15032         where NL_LOCALE_NAME is defined.
15034 2017-05-18  Bruno Haible  <bruno@clisp.org>
15036         gettext: Update macros from gettext git.
15037         * m4/intldir.m4: Require Autoconf >= 2.60.
15038         * m4/progtest.m4: Fix typos in copyright notice.
15040 2017-05-18  Bruno Haible  <bruno@clisp.org>
15042         copy-file tests: Fix link error (regression from 2017-05-01).
15043         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15044         * modules/copy-file-tests (Makefile.am): Link test-copy-file with
15045         $(LIB_CLOCK_GETTIME).
15047 2017-05-18  Bruno Haible  <bruno@clisp.org>
15049         unicase/special-casing: Fix incompatibility with gperf-3.0.4
15050         (regression from 2017-02-13).
15051         * lib/unicase/special-casing.in.h: Renamed from
15052         lib/unicase/special-casing.h.
15053         * modules/unicase/special-casing (Files): Add
15054         lib/unicase/special-casing.in.h. Remove lib/unicase/special-casing.h.
15055         (Makefile.am): Add rule for generating unicase/special-casing.h.
15056         Update BUILT_SOURCES and MOSTLYCLEANFILES accordingly.
15057         * lib/unicase/special-casing.c: Include "unicase/special-casing.h",
15058         not "special-casing.h".
15059         * lib/unicase/u*.c: Likewise.
15061 2017-05-17  Bruno Haible  <bruno@clisp.org>
15063         README: Don't ask people to read a TeXinfo file.
15064         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
15065         * README: Tell people how to read the HTML formatted manual.
15067 2017-05-16  Tim Rühsen  <tim.ruehsen@gmx.de>
15069         parse-datetime: Fix memleak
15070         * lib/parse-datetime.y (parse_datetime2): Cleanup on
15071         localtime_rz() failure.
15073 2017-05-16  Bruno Haible  <bruno@clisp.org>
15075         javacomp: Fix handle leak.
15076         Found by Coverity.
15077         * lib/javacomp.c (get_classfile_version): Close fd before returning.
15079 2017-05-16  Bruno Haible  <bruno@clisp.org>
15081         relocate: Make it easier to reclaim allocated memory.
15082         * lib/relocatable.h (relocate2): New declaration/macro.
15083         * lib/relocatable.c (relocate2): New function.
15084         * doc/relocatable-maint.texi (Supporting Relocation): Mention the
15085         relocate2 function.
15086         * lib/localcharset.c (relocate2): Define fallback.
15087         (get_charset_aliases): Invoke relocate2 instead of relocate. Free the
15088         allocated memory.
15089         * lib/javaversion.c (relocate2): Define fallback.
15090         (javaexec_version): Invoke relocate2 instead of relocate. Free the
15091         allocated memory.
15093 2017-05-16  Bruno Haible  <bruno@clisp.org>
15095         relocate: Simplify EMX specific code.
15096         * lib/relocatable.c (relocate): Assume pathname is non-NULL. Use
15097         ISSLASH macro consistently. Avoid dangerous string concatenation idiom.
15099 2017-05-16  Bruno Haible  <bruno@clisp.org>
15101         sigpipe tests: Fix file list.
15102         * modules/sigpipe-tests (Files): Add tests/macros.h.
15104 2017-05-16  Paul Eggert  <eggert@cs.ucla.edu>
15106         manywarnings: update for GCC 7
15107         * build-aux/gcc-warning.spec:
15108         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
15109         Add GCC 7 warnings, notably -Wimplicit-fallthrough=5, which
15110         requires a non-comment fallthrough attribute.  This is a bit
15111         cleaner than the comment versions.
15112         * lib/strftime.c, lib/dfa.c, lib/fnmatch.c, lib/mbrtowc.c:
15113         * lib/vasnprintf.c, tests/macros.h (FALLTHROUGH): New macro.
15114         Use it whenever one switch case falls through into the next.
15115         * lib/fnmatch_loop.c, tests/test-mbrtowc.c, tests/test-sigpipe.c:
15116         Use FALLTHROUGH macro.
15118 2017-05-15  Bruno Haible  <bruno@clisp.org>
15120         gnulib-tool: Fix generated code when libtests contains module 'alloca'.
15121         * gnulib-tool (func_emit_tests_Makefile_am): For libtests.a, use
15122         @ALLOCA@, not @LTALLOCA@.
15124 2017-05-15  Bruno Haible  <bruno@clisp.org>
15126         sys_select: Avoid "was expanded before it was required" warning.
15127         * modules/sys_select (configure.ac): Require, not invoke,
15128         gl_HEADER_SYS_SELECT.
15130 2017-05-14  Paul Eggert  <eggert@cs.ucla.edu>
15132         gnulib-tool: improve GNU Make debugging
15133         * gnulib-tool (func_emit_lib_Makefile_am): Omit unnecessary echo.
15134         Report autoconf diagnostics when it fails, in the output makefile.
15136 2017-05-14  Bruno Haible  <bruno@clisp.org>
15138         stat-time tests: Improve comment.
15139         * tests/test-stat-time.c: Add hyperlink, from Paul Eggert.
15141 2017-05-14  Bruno Haible  <bruno@clisp.org>
15143         same-inode: Adapt for windows-stat-inodes.
15144         * lib/same-inode.h: Include <sys/types.h>.
15145         (SAME_INODE) [_GL_WINDOWS_STAT_INODES]: Define specifically.
15146         * modules/same-inode (Depends-on): Add sys_types.
15148 2017-05-14  Bruno Haible  <bruno@clisp.org>
15150         windows-stat-inodes: New module.
15151         * m4/windows-stat-inodes.m4: New file.
15152         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_STAT_INODES.
15153         * modules/sys_types (Makefile.am): Substitute WINDOWS_STAT_INODES.
15154         * lib/sys_types.in.h [WINDOWS_STAT_INODES]: Override dev_t and ino_t.
15155         (_GL_WINDOWS_STAT_INODES): New macro.
15156         * lib/stat-w32.c: Set _WIN32_WINNT. Include <string.h>, verify.h.
15157         (GetFileInformationByHandleExFunc): New variable.
15158         (initialize): Initialize it.
15159         (_gl_fstat_by_handle) [_GL_WINDOWS_STAT_INODES]: Initialize st_dev and
15160         st_ino appropriately.
15161         * lib/stat.c (rpl_stat): Use the directory entry based approach only as
15162         a fallback, because it does not provide st_dev and st_ino values.
15163         * modules/fstat (Depends-on): Add 'verify'.
15164         * modules/windows-stat-inodes: New file.
15165         * doc/windows-stat-inodes.texi: New file.
15166         * doc/gnulib.texi: Include it.
15167         * doc/posix-headers/sys_stat.texi: Mention the new module.
15169 2017-05-14  Bruno Haible  <bruno@clisp.org>
15171         stat-time tests: Workaround for native Windows.
15172         * tests/test-stat-time.c: Include <stdio.h>, <time.h>.
15173         (filename_stamp1, filename_testfile, filename_stamp2, filename_stamp3):
15174         New variables.
15175         (initialize_filenames): New function.
15176         (main): Invoke it.
15177         (cleanup, prepare_test): Update.
15179 2017-05-14  Bruno Haible  <bruno@clisp.org>
15181         stat-time: Adapt for windows-stat-timespec.
15182         * lib/stat-time.h (get_stat_birthtime) [_GL_WINDOWS_STAT_TIMESPEC]: Use
15183         entire st_ctim field.
15185 2017-05-13  Jim Meyering  <meyering@fb.com>
15187         maint.mk: update regex to reflect 2013 addition of "assume" to verify.h
15188         * top/maint.mk (sc_prohibit_verify_without_use): Don't reject a source
15189         file that uses the assume macro, claiming that verify.h is unused.
15191 2017-05-13  Bruno Haible  <bruno@clisp.org>
15193         Use symbolic values for _WIN32_WINNT.
15194         * lib/ftruncate.c (_WIN32_WINNT): Use symbolic value _WIN32_WINNT_WIN2K.
15195         * lib/sethostname.c (_WIN32_WINNT): Likewise.
15197 2017-05-13  Bruno Haible  <bruno@clisp.org>
15199         year2038: New module.
15200         * m4/year2038.m4: New file.
15201         * modules/year2038: New file.
15202         * doc/year2038.texi: New file.
15203         * doc/gnulib.texi: Include it.
15205 2017-05-13  Bruno Haible  <bruno@clisp.org>
15207         largefile: Simplify.
15208         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Remove unused definition
15209         of _GL_WINDOWS_64_BIT_ST_SIZE.
15211 2017-05-13  Bruno Haible  <bruno@clisp.org>
15213         largefile: Improve and document.
15214         * m4/largefile.m4 (gl_LARGEFILE): Set WINDOWS_64_BIT_ST_SIZE to 0 if
15215         the mingw headers already define 'stat' appropriately.
15216         * modules/largefile (Description): Clarify.
15217         * doc/largefile.texi: New file.
15218         * doc/gnulib.texi: Include it.
15219         * doc/posix-headers/sys_types.texi: Update.
15221 2017-05-13  Bruno Haible  <bruno@clisp.org>
15223         truncate: New module.
15224         * lib/unistd.in.h (truncate): New declaration.
15225         * lib/truncate.c: New file.
15226         * m4/truncate.m4: New file.
15227         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'truncate' is declared.
15228         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TRUNCATE, HAVE_TRUNCATE,
15229         REPLACE_TRUNCATE.
15230         * modules/unistd (Makefile.am): Substitute GNULIB_TRUNCATE,
15231         HAVE_TRUNCATE, REPLACE_TRUNCATE.
15232         * modules/truncate: New file.
15233         * tests/test-unistd-c++.cc (truncate): Test signature.
15234         * doc/posix-functions/truncate.texi: Mention the new module.
15236         * tests/test-truncate.c: New file.
15237         * modules/truncate-tests: New file.
15239 2017-05-13  Bruno Haible  <bruno@clisp.org>
15241         windows-stat-timespec: New module.
15242         * modules/windows-stat-timespec: New file.
15243         * m4/windows-stat-timespec.m4: New file.
15244         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_STAT_TIMESPEC.
15245         * modules/sys_stat (Makefile.am): Substitute WINDOWS_STAT_TIMESPEC.
15246         * lib/sys_stat.in.h (struct stat) [WINDOWS_STAT_TIMESPEC]: Declare with
15247         fields st_atim, st_mtim, st_ctim.
15248         (st_atime, st_mtime, st_ctime): Define as macros.
15249         (_GL_WINDOWS_STAT_TIMESPEC): New macro.
15250         * lib/stat-w32.h (_gl_convert_FILETIME_to_timespec)
15251         [_GL_WINDOWS_STAT_TIMESPEC]: New declaration.
15252         * lib/stat-w32.c (_gl_convert_FILETIME_to_timespec)
15253         [_GL_WINDOWS_STAT_TIMESPEC]: New function.
15254         (_gl_convert_FILETIME_to_POSIX): Adjust coding style.
15255         (_gl_fstat_by_handle): If _GL_WINDOWS_STAT_TIMESPEC, convert the
15256         FILETIME to 'struct timespec', not 'time_t'.
15257         * lib/stat.c (rpl_stat): If _GL_WINDOWS_STAT_TIMESPEC, convert the
15258         FILETIME to 'struct timespec', not 'time_t'.
15259         * lib/stat-time.h (STAT_TIMESPEC): Define also if
15260         _GL_WINDOWS_STAT_TIMESPEC.
15261         * doc/windows-stat-timespec.texi: New file.
15262         * doc/gnulib.texi: Include it.
15264 2017-05-13  Bruno Haible  <bruno@clisp.org>
15266         windows-stat-override: New module.
15267         * lib/sys_stat.in.h (stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provide own
15268         definition. Define GNULIB_defined_struct_stat.
15269         (fstat, fstatat, lstat, stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provoke
15270         link error if this symbol is used and the corresponding module is not
15271         in use.
15272         (_stat64, _stat32i64, _stati64, _stat32, _stat64i32): Don't redefine if
15273         GNULIB_OVERRIDES_STRUCT_STAT.
15274         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
15275         GNULIB_OVERRIDES_STRUCT_STAT.
15276         * modules/sys_stat (Makefile.am): Substitute
15277         GNULIB_OVERRIDES_STRUCT_STAT.
15278         * modules/windows-stat-override: New file.
15280 2017-05-13  Bruno Haible  <bruno@clisp.org>
15282         fstat: Fix module dependency conditions.
15283         * modules/fstat (Depends-on): Fix typo.
15285 2017-05-13  Bruno Haible  <bruno@clisp.org>
15287         stat, fstat: Complete removal of old native Windows code.
15288         * lib/stat.c: Remove old macrology for WINDOWS_NATIVE.
15289         * lib/fstat.c: Likewise.
15290         * lib/stat-w32.c: Likewise.
15292 2017-05-13  Bruno Haible  <bruno@clisp.org>
15294         stat: Complete removal of REPLACE_FUNC_STAT_DIR code.
15295         * lib/stat.c: Remove all REPLACE_FUNC_STAT_DIR code.
15297 2017-05-11  Paul Eggert  <eggert@cs.ucla.edu>
15299         getopt-posix: port to mingw
15300         * lib/getopt.c (flockfile, funlockfile): Define on mingw.
15301         Problem reported by Daniel P. Berrage in:
15302         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00086.html
15304 2017-05-11  Bruno Haible  <bruno@clisp.org>
15306         gettimeofday: Increase precision on mingw.
15307         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Require AC_CANONICAL_HOST.
15308         Set REPLACE_GETTIMEOFDAY to 1 on mingw.
15309         * lib/gettimeofday.c (gettimeofday): On native Windows, use the
15310         GetSystemTimePreciseAsFileTime based implementation always.
15311         * doc/posix-functions/gettimeofday.texi: Mention precision problem on
15312         mingw.
15314 2017-05-11  Bruno Haible  <bruno@clisp.org>
15316         poll: Fix confusion between SOCKETs and FDs on native Windows.
15317         Fix proposed by Daniel P. Berrange <berrange@redhat.com>.
15318         * lib/poll.c [WINDOWS_NATIVE]: Undefine select.
15320 2017-05-11  Bruno Haible  <bruno@clisp.org>
15322         doc: Clarify doc about socket functions on native Windows.
15323         This reworks doc that was added on 2008-09-29.
15324         * doc/posix-functions/select.texi: Fix copy-and-paste mistake and use
15325         clearer wording.
15326         * doc/posix-functions/accept.texi: Use clearer wording.
15327         * doc/posix-functions/bind.texi: Likewise.
15328         * doc/posix-functions/connect.texi: Likewise.
15329         * doc/posix-functions/getpeername.texi: Likewise.
15330         * doc/posix-functions/getsockname.texi: Likewise.
15331         * doc/posix-functions/getsockopt.texi: Likewise.
15332         * doc/posix-functions/ioctl.texi: Likewise.
15333         * doc/posix-functions/listen.texi: Likewise.
15334         * doc/posix-functions/recv.texi: Likewise.
15335         * doc/posix-functions/recvfrom.texi: Likewise.
15336         * doc/posix-functions/send.texi: Likewise.
15337         * doc/posix-functions/sendto.texi: Likewise.
15338         * doc/posix-functions/setsockopt.texi: Likewise.
15339         * doc/posix-functions/shutdown.texi: Likewise.
15340         * doc/posix-functions/socket.texi: Likewise.
15342 2017-05-10  Bruno Haible  <bruno@clisp.org>
15344         poll: Fix link error on native Windows.
15345         * lib/poll.c [WINDOWS_NATIVE]: Undefine recv.
15347 2017-05-10  Bruno Haible  <bruno@clisp.org>
15349         time: Fix missing initialization of HAVE_TIMEZONE_T.
15350         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEZONE_T
15351         here...
15352         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): ... not here.
15353         * m4/time_rz.m4 (gl_TIME_RZ): Require gl_HEADER_TIME_H_DEFAULTS, not
15354         gl_HEADER_SYS_TIME_H_DEFAULTS.
15355         * modules/time_rz (Depends-on): Add 'time'. Remove useless quoting.
15356         (configure.ac): Remove useless quoting.
15358 2017-05-10  Bruno Haible  <bruno@clisp.org>
15360         Implement a way to opt out from MSVC support, part 2.
15361         * modules/msvc-inval (Include): Document recommended idiom.
15362         * modules/msvc-nothrow (Include): Likewise.
15364         Implement a way to opt out from MSVC support.
15365         This is useful for Emacs.
15366         * modules/msvc-nothrow (configure.ac): Invoke gl_MODULE_INDICATOR.
15367         * lib/accept4.c: Include <io.h> as an alternative to msvc-nothrow.h.
15368         * lib/error.c: Likewise.
15369         * lib/fcntl.c: Likewise.
15370         * lib/flock.c: Likewise.
15371         * lib/fstat.c: Likewise.
15372         * lib/fsync.c: Likewise.
15373         * lib/ioctl.c: Likewise.
15374         * lib/isapipe.c: Likewise.
15375         * lib/lseek.c: Likewise.
15376         * lib/nonblocking.c: Likewise.
15377         * lib/poll.c: Likewise.
15378         * lib/select.c: Likewise.
15379         * lib/sockets.h: Likewise.
15380         * lib/sockets.c: Likewise.
15381         * lib/stdio-read.c: Likewise.
15382         * lib/stdio-write.c: Likewise.
15383         * lib/utimens.c: Likewise.
15384         * lib/w32sock.h: Likewise.
15385         * lib/w32spawn.h: Likewise.
15386         * tests/test-cloexec.c: Likewise.
15387         * tests/test-dup-safer.c: Likewise.
15388         * tests/test-dup2.c: Likewise.
15389         * tests/test-dup3.c: Likewise.
15390         * tests/test-fcntl.c: Likewise.
15391         * tests/test-pipe.c: Likewise.
15392         * tests/test-pipe2.c: Likewise.
15393         * lib/ftruncate.c: Likewise.
15394         (chsize_nothrow): Renamed from chsize.
15395         * lib/msvc-nothrow.c: Don't include msvc-inval.h if
15396         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
15397         * lib/close.c: Likewise.
15398         * lib/dup.c: Likewise.
15399         * lib/fclose.c: Likewise.
15400         * lib/raise.c: Likewise.
15401         * tests/test-fgetc.c: Likewise.
15402         * tests/test-fputc.c: Likewise.
15403         * tests/test-fread.c: Likewise.
15404         * tests/test-fwrite.c: Likewise.
15405         * lib/getdtablesize.c: Likewise.
15406         (_setmaxstdio_nothrow): Renamed from _setmaxstdio.
15407         * lib/isatty.c: Don't include msvc-inval.h if
15408         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
15409         Include <io.h> as an alternative to msvc-nothrow.h.
15410         * lib/read.c: Likewise.
15411         * lib/write.c: Likewise.
15412         * lib/dup2.c: Likewise.
15413         (dup2_nothrow): New function.
15414         (ms_windows_dup2): Use it.
15415         * m4/close.m4 (gl_FUNC_CLOSE): Invoke gl_MSVC_INVAL and test
15416         HAVE_MSVC_INVALID_PARAMETER_HANDLER only if gl_MSVC_INVAL is defined.
15417         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
15418         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
15419         * m4/raise.m4 (gl_FUNC_RAISE): Likewise.
15420         * m4/read.m4 (gl_FUNC_READ): Likewise.
15421         * m4/write.m4 (gl_FUNC_WRITE): Likewise.
15422         * doc/windows-without-msvc.texi: New file.
15423         * doc/gnulib.texi (Native Windows Support without MSVC Support): New
15424         section.
15426 2017-05-10  Bruno Haible  <bruno@clisp.org>
15428         wait-process: Adjust native Windows support.
15429         * lib/wait-process.c: Use the usual condition for recognizing a native
15430         Windows platform.
15432 2017-05-10  Bruno Haible  <bruno@clisp.org>
15434         doc: New chapter "Native Windows Support".
15435         * doc/gnulib.texi (Native Windows Support): New chapter.
15436         * doc/windows-libtool.texi: Small wording changes.
15437         * doc/windows-sockets.texi: Small wording and formatting changes.
15439 2017-05-10  Bruno Haible  <bruno@clisp.org>
15441         doc: Move section "Library version handling".
15442         * doc/gnulib.texi: Move section "Library version handling"
15443         from chapter "Miscellaneous Notes" to chapter "Particular Modules".
15445 2017-05-10  Bruno Haible  <bruno@clisp.org>
15447         doc: Move section "Running self-tests under valgrind".
15448         * doc/gnulib.texi: Move section "Running self-tests under valgrind"
15449         from chapter "Particular Modules" to chapter "Miscellaneous Notes".
15451 2017-05-10  Bruno Haible  <bruno@clisp.org>
15453         doc: New chapter "Build Infrastructure Modules".
15454         * doc/gnulib.texi (Build Infrastructure Modules): New chapter.
15456 2017-05-10  Bruno Haible  <bruno@clisp.org>
15458         Prepare for reordering sections in the manual.
15459         * doc/gnulib.texi: Move several sections to separate files. Include
15460         these files.
15461         * doc/out-of-memory.texi: New file, extracted from doc/gnulib.texi.
15462         * doc/obsolete.texi: Likewise.
15463         * doc/extra-tests.texi: Likewise.
15464         * doc/transversal.texi: Likewise.
15465         * doc/namespace.texi: Likewise.
15466         * doc/check-version.texi: Likewise.
15467         * doc/windows-sockets.texi: Likewise.
15468         * doc/windows-libtool.texi: Likewise.
15469         * doc/licenses-texi.texi: Likewise.
15470         * doc/build-automation.texi: Likewise.
15471         * doc/c-locale.texi: Likewise.
15473 2017-05-10  Bruno Haible  <bruno@clisp.org>
15475         Fix instructions how to update manual on www.gnu.org.
15476         * doc/README: Add -I option, so that texi2dvi finds texinfo.tex.
15478 2017-05-09  Bruno Haible  <bruno@clisp.org>
15480         tzset: Expand comment about TZ problem on native Windows.
15481         * lib/tzset.c (tzset): Elaborate comment, based on explanations by
15482         Paul Eggert.
15483         * lib/ctime.c (rpl_ctime): Likewise.
15484         * lib/localtime.c (rpl_localtime): Likewise.
15485         * lib/mktime.c (mktime): Likewise.
15486         * lib/strftime-fixes.c (rpl_strftime): Likewise.
15487         * lib/wcsftime.c (rpl_wcsftime): Likewise.
15489 2017-05-08  Paul Eggert  <eggert@cs.ucla.edu>
15491         intprops: don’t depend on ‘verify’
15492         Problem reported by Ævar Arnfjörð Bjarmason in:
15493         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00054.html
15494         * lib/intprops.h: Do not include verify.h, and move compile-time
15495         checks from here ...
15496         * tests/test-intprops.c (main): ... to here, if they’re not here
15497         already.  Check widths of other standard integer types.
15498         * modules/intprops (Depends-on): Remove ‘verify’.
15500 2017-05-07  Bruno Haible  <bruno@clisp.org>
15502         utimens: On native Windows, support 100ns resolution also if fd < 0.
15503         * lib/utime.in.h: Include <time.h>.
15504         (_gl_utimens_windows): New declaration.
15505         * lib/utime.c (_gl_utimens_windows): New function, based on utime.
15506         (utime): Invoke it.
15507         * lib/utimens.c (fdutimens): On native Windows, call _gl_utimens_windows
15508         instead of utime.
15509         * modules/utime (Depends-on): Add 'time'.
15511 2017-05-07  Bruno Haible  <bruno@clisp.org>
15513         utimens: Improve error code on native Windows.
15514         * lib/utimens.c (fdutimens): If fd was not opened with O_RDWR, fail with
15515         error code EACCES, not EINVAL.
15517 2017-05-07  Bruno Haible  <bruno@clisp.org>
15519         utime: Handle more Windows error codes.
15520         * lib/utime.c (utime): Handle ERROR_BAD_NETPATH.
15521         Based on explanations by Billy O'Neal.
15523 2017-05-05  Bruno Haible  <bruno@clisp.org>
15525         crypto/rijndael: Fix "strict-aliasing rules" warnings, alignment issues.
15526         * lib/rijndael-api-fst.c (rijndaelBlockEncrypt): Declare 'block' as a
15527         union.
15528         (rijndaelPadEncrypt, rijndaelBlockDecrypt): Likewise.
15529         (rijndaelPadDecrypt): Likewise. Use local variable 'iv' to cache the
15530         value of cipher->IV.
15532 2017-05-05  Bruno Haible  <bruno@clisp.org>
15534         wctype-h-c++-tests: Update.
15535         * tests/test-wctype-h-c++.cc: Reorder to match lib/wchar.in.h.
15537 2017-05-05  Bruno Haible  <bruno@clisp.org>
15539         wchar-c++-tests: Update.
15540         * tests/test-wchar-c++.cc (wcsftime): Declare, missing since 2017-04-30.
15542 2017-05-05  Bruno Haible  <bruno@clisp.org>
15544         utime-h-c++-tests: New module.
15545         * tests/test-utime-h-c++.cc: New file.
15546         (utime): Declare, missing since 2017-04-30.
15547         * modules/utime-h-c++-tests: New file.
15549 2017-05-05  Bruno Haible  <bruno@clisp.org>
15551         unistd-c++-tests: Update.
15552         * tests/test-unistd-c++.cc (isatty): Declare, missing since 2012-01-03.
15553         (read): Declare, missing since 2011-04-15.
15554         (sethostname): Declare, missing since 2011-12-03.
15556 2017-05-05  Bruno Haible  <bruno@clisp.org>
15558         time-c++-tests: Update.
15559         * tests/test-time-c++.cc (tzset): Declare, missing since 2017-05-01.
15560         (localtime, gmtime): Declare, missing since 2017-04-30.
15561         (ctime): Declare, missing since 2017-04-30.
15562         (strftime): Declare, missing since 2017-04-30.
15563         (tzalloc, tzfree, localtime_rz, mktime_z): Declare, missing since
15564         2015-07-24.
15566 2017-05-05  Bruno Haible  <bruno@clisp.org>
15568         sys_resource-c++-tests: New module.
15569         * tests/test-sys_resource-c++.cc: New file.
15570         (getrusage): Declare, missing since 2012-04-13.
15571         * modules/sys_resource-c++-tests: New file.
15573 2017-05-05  Bruno Haible  <bruno@clisp.org>
15575         strings-c++-tests: New module.
15576         * tests/test-strings-c++.cc: New file.
15577         (ffs): Declare, missing since 2011-07-12.
15578         * modules/strings-c++-tests: New file.
15580 2017-05-05  Bruno Haible  <bruno@clisp.org>
15582         string-c++-tests: Update.
15583         * tests/test-string-c++.cc (ffsl): Declare, missing since 2011-07-15.
15584         (ffsll): Declare, missing since 2011-07-15.
15586 2017-05-05  Bruno Haible  <bruno@clisp.org>
15588         stdlib-c++-tests: Update.
15589         * tests/test-stdlib-c++.cc (posix_openpt): Declare, missing since
15590         2011-10-18.
15591         (ptsname_r): Declare, missing since 2011-11-07.
15592         (qsort_r): Declare, missing since 2014-08-29.
15593         (random, srandom, initstate, setstate): Declare, missing since
15594         2012-01-14.
15595         (secure_getenv): Declare, missing since 2013-02-05.
15597 2017-05-05  Bruno Haible  <bruno@clisp.org>
15599         stdio-c++-tests: Update.
15600         * tests/test-stdio-c++.cc (pclose): Declare, missing since 2011-09-18.
15602 2017-05-05  Bruno Haible  <bruno@clisp.org>
15604         signal-h-c++-tests: Update.
15605         * tests/test-signal-h-c++.cc (raise): Remove redundant declaration.
15607 2017-05-05  Bruno Haible  <bruno@clisp.org>
15609         math-c++-tests: Update.
15610         * tests/test-math-c++.cc (fmaf): Declare, missing since 2011-10-17.
15611         (fma): Declare, missing since 2011-10-17.
15612         (fmal): Declare, missing since 2011-10-17.
15614 2017-05-05  Bruno Haible  <bruno@clisp.org>
15616         locale-c++-tests: Update.
15617         * tests/test-locale-c++.cc (localeconv): Declare, missing since
15618         2012-03-25.
15620 2017-05-05  Bruno Haible  <bruno@clisp.org>
15622         inttypes-c++-tests: New module.
15623         * tests/test-inttypes-c++.cc: New file.
15624         (strtoimax): Declare, missing since 2012-01-05.
15625         (strtoumax): Declare, missing since 2012-01-05.
15626         * modules/inttypes-c++-tests: New file.
15628 2017-05-05  Bruno Haible  <bruno@clisp.org>
15630         dirent-c++-tests: Update.
15631         * tests/test-dirent-c++.cc (readdir): Declare, missing since 2011-09-13.
15632         (rewinddir): Declare, missing since 2011-09-13.
15633         (dirfd): Declare, missing since 2010-03-08.
15635 2017-05-04  Bruno Haible  <bruno@clisp.org>
15637         argp: Fix mistake in 2017-04-23 commit.
15638         * lib/argp-help.c (__argp_failure): If GNULIB_STRERROR_R_POSIX is set,
15639         assume that strerror_r returns 'int', not 'char *'.
15641 2017-05-04  Reuben Thomas  <rrt@sc3d.org>
15643         argp: Fix typo.
15644         * lib/argp-help.c (argp_doc): Fix spelling mistake in comment.
15646 2017-05-02  Paul Eggert  <eggert@cs.ucla.edu>
15648         utimens: port to Emacs + MS-Windows
15649         Skip the new MS-Windows-specific code if Emacs.
15650         * lib/utimens.c [EMACS_CONFIGUATION]:
15651         Avoid new MS-Windows-specific code.
15652         (USE_SETFILETIME): New macro.
15653         (fdutimens): Use it.
15655 2017-05-01  Paul Eggert  <eggert@cs.ucla.edu>
15657         tzset: update doc for TZ problems on MS-Windows
15658         * doc/posix-functions/ctime.texi,  doc/posix-functions/daylight.texi:
15659         * doc/posix-functions/localtime.texi, doc/posix-functions/mktime.texi:
15660         * doc/posix-functions/strftime.texi, doc/posix-functions/timezone.texi:
15661         * doc/posix-functions/tzname.texi, doc/posix-functions/tzset.texi:
15662         * doc/posix-functions/wcsftime.texi:
15663         Mention some issues with TZ under MS-Windows.
15665 2017-05-01  Bruno Haible  <bruno@clisp.org>
15667         copy-file: Fix build error on mingw.
15668         * modules/copy-file (Depends-on): Add 'close'.
15670 2017-05-01  Bruno Haible  <bruno@clisp.org>
15672         tzset: Work around TZ problem on native Windows.
15673         * m4/tzset.m4 (gl_FUNC_TZSET): Require AC_CANONICAL_HOST. On native
15674         Windows, set REPLACE_TZSET to 1.
15675         * lib/tzset.c (tzset): On native Windows, fix TZ if necessary, and
15676         invoke '_tzset' instead of 'tzset'.
15677         * doc/posix-functions/tzset.texi: Mention the native Windows workaround.
15679         * modules/time_rz (Depends-on): Add tzset.
15680         * lib/time_rz.c (tzset): Remove fallback definition.
15681         * m4/time_rz.m4 (gl_TIME_RZ): Don't test for tzset.
15683 2017-05-01  Bruno Haible  <bruno@clisp.org>
15685         mktime: Fix dependencies.
15686         * modules/mktime (Depends-on): Add 'time'.
15688 2017-05-01  Bruno Haible  <bruno@clisp.org>
15690         New module 'localtime-buffer', split off from module 'gettimeofday'.
15691         * lib/localtime-buffer.h: New file.
15692         * lib/localtime-buffer.c: New file, extracted from lib/gettimeofday.c.
15693         * lib/time.in.h (tzset): New declaration.
15694         (localtime, gmtime): Don't test GNULIB_GETTIMEOFDAY.
15695         * lib/tzset.c: New file, extracted from lib/gettimeofday.c.
15696         * lib/gettimeofday.c: Include localtime-buffer.h. Remove code that was
15697         moved to lib/localtime-buffer.c or lib/tzset.c.
15698         * m4/localtime-buffer.m4: New file.
15699         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TZSET,
15700         HAVE_TZSET, REPLACE_TZSET.
15701         * m4/tzset.m4 (gl_FUNC_TZSET): Move code from m4/gettimeofday.m4 to
15702         here, with modifications. Set HAVE_TZSET, REPLACE_TZSET. Invoke
15703         gl_LOCALTIME_BUFFER_NEEDED.
15704         (gl_FUNC_TZSET_CLOBBER): Don't require gl_HEADER_SYS_TIME_H; not needed
15705         since 2007-01-18.
15706         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Remove code that deals with
15707         tzset.
15708         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require gl_LOCALTIME_BUFFER_DEFAULTS.
15709         Invoke gl_LOCALTIME_BUFFER_NEEDED instead of
15710         gl_GETTIMEOFDAY_REPLACE_LOCALTIME.
15711         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Remove macro.
15712         * modules/localtime-buffer: New file.
15713         * modules/time (Depends-on): Remove 'gettimeofday'.
15714         (Makefile.am): Substitute GNULIB_TZSET, HAVE_TZSET,
15715         REPLACE_TZSET. Don't substitute GNULIB_GETTIMEOFDAY.
15716         * modules/tzset (Description): Enable hyperlink to POSIX spec.
15717         (Files): Add lib/tzset.c.
15718         (Depends-on): Remove gettimeofday. Add localtime-buffer, time.
15719         (configure.ac): Arrange to conditionally compile lib/tzset.c. Invoke
15720         gl_TIME_MODULE_INDICATOR.
15721         * modules/gettimeofday (Depends-on): Add localtime-buffer.
15723 2017-05-01  Bruno Haible  <bruno@clisp.org>
15725         copy-file: Preserve sub-second time stamps.
15726         * lib/copy-file.c: Include stat-time.h, utimens.h instead of <utime.h>.
15727         (qcopy_file_preserving): Use 'struct timespec' and utimens() to
15728         transport the time stamps from the original file to the destination
15729         file.
15730         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for utime, utimes.
15731         * modules/copy-file (Depends-on): Add stat-time, utimns instead of
15732         utime-h.
15734 2017-05-01  Bruno Haible  <bruno@clisp.org>
15736         wctype-t: Fix problems if <wchar.h> gets included after <wctype.h>.
15737         * lib/wctype.in.h: Include not only <ctype.h> but also <wchar.h>. Do so
15738         also on MSVC.
15739         Reported by Eli Zaretskii <eliz@gnu.org>.
15741 2017-05-01  Bruno Haible  <bruno@clisp.org>
15743         wchar: Fix compilation error with the original mingw.org mingw.
15744         * lib/wchar.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
15745         <stddef.h> instead.
15746         * m4/wint_t.m4 (gl_TYPE_WINT_T_PREREQ): New macro, extracted from
15747         gl_WCTYPE_H.
15748         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set HAVE_CRTDEFS_H here; require
15749         gl_TYPE_WINT_T_PREREQ instead.
15750         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_TYPE_WINT_T_PREREQ.
15751         * modules/wchar (Makefile.am): Substitute HAVE_CRTDEFS_H.
15752         Reported by Eli Zaretskii <eliz@gnu.org>.
15754 2017-04-30  Bruno Haible  <bruno@clisp.org>
15756         utimecmp: Add support for native Windows.
15757         * lib/utimecmp.c (SYSCALL_RESOLUTION): Set to 100 on native Windows.
15759 2017-04-30  Bruno Haible  <bruno@clisp.org>
15761         utimens: Add support for native Windows.
15762         * lib/utimens.c: Include <windows.h>, msvc-nothrow.h.
15763         (fdutimens): Provide a native Windows implementation, like utime.c with
15764         added tv_nsec support.
15765         * modules/utimens (Depends-on): Add msvc-nothrow, utime.
15766         Suggested by Tim Rühsen <tim.ruehsen@gmx.de>.
15768 2017-04-30  Bruno Haible  <bruno@clisp.org>
15770         wcsftime: New module.
15771         * lib/wchar.in.h (wcsftime): New declaration.
15772         * lib/wcsftime.c: New file.
15773         * m4/wcsftime.m4: New file.
15774         * m4/wchar_h.m4 (gl_WCHAR_H): Test for wcsftime declaration.
15775         (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_WCSFTIME,
15776         HAVE_WCSFTIME, REPLACE_WCSFTIME.
15777         * modules/wchar (Makefile.am): Substitute GNULIB_WCSFTIME,
15778         HAVE_WCSFTIME, REPLACE_WCSFTIME.
15779         * modules/wcsftime: New file.
15780         * doc/posix-functions/wcsftime.texi: Mention the new module.
15782 2017-04-30  Bruno Haible  <bruno@clisp.org>
15784         strftime-fixes: New module.
15785         * lib/time.in.h (strftime): New declaration.
15786         * lib/strftime-fixes.c: New file.
15787         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Inline gl_FUNC_STRFTIME macro.
15788         (gl_FUNC_STRFTIME): Remove macro.
15789         * m4/strftime-fixes.m4: New file.
15790         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_STRFTIME,
15791         REPLACE_STRFTIME.
15792         * modules/time (Makefile.am): Substitute GNULIB_STRFTIME,
15793         REPLACE_STRFTIME.
15794         * modules/strftime-fixes: New file.
15795         * doc/posix-functions/strftime.texi: Mention the new module.
15797 2017-04-30  Bruno Haible  <bruno@clisp.org>
15799         mktime: Work around TZ problem on native Windows.
15800         * lib/mktime.c: Add #ifs to make the algorithmic workaround independent
15801         from the native Windows workaround.
15802         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): New macro, extracted from
15803         gl_FUNC_MKTIME. If guessing, set gl_cv_func_working_mktime to
15804         'guessing no'.
15805         (gl_FUNC_MKTIME): Require it. Require AC_CANONICAL_HOST.
15806         Set REPLACE_MKTIME to 1 on native Windows. Define NEED_MKTIME_WORKING,
15807         NEED_MKTIME_WINDOWS.
15808         (gl_FUNC_MKTIME_INTERNAL): Require gl_FUNC_MKTIME_WORKS, not
15809         gl_FUNC_MKTIME. Set WANT_MKTIME_INTERNAL, not REPLACE_MKTIME. Define
15810         NEED_MKTIME_INTERNAL.
15811         * m4/timegm.m4 (gl_FUNC_TIMEGM): Require gl_FUNC_MKTIME_WORKS, not
15812         gl_FUNC_MKTIME. Cope with 'guessing yes' value.
15813         * modules/mktime-internal (configure.ac): Test WANT_MKTIME_INTERNAL,
15814         not REPLACE_MKTIME.
15815         * doc/posix-functions/mktime.texi: Mention the native Windows
15816         workaround.
15818 2017-04-30  Bruno Haible  <bruno@clisp.org>
15820         localtime: New module.
15821         * lib/time.in.h (localtime): Declare also if requested by module
15822         'localtime'.
15823         * lib/localtime.c: New file.
15824         * m4/localtime.m4: New file.
15825         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_LOCALTIME.
15826         * modules/time (Makefile.am): Substitute GNULIB_LOCALTIME.
15827         * modules/localtime: New file.
15828         * doc/posix-functions/localtime.texi: Mention the new module.
15830 2017-04-30  Bruno Haible  <bruno@clisp.org>
15832         ctime: New module.
15833         * lib/time.in.h (ctime): New declaration.
15834         * lib/ctime.c: New file.
15835         * m4/ctime.m4: New file.
15836         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_CTIME,
15837         REPLACE_CTIME.
15838         * modules/time (Makefile.am): Substitute GNULIB_CTIME, REPLACE_CTIME.
15839         * modules/ctime: New file.
15840         * doc/posix-functions/ctime.texi: Mention the new module.
15842 2017-04-30  Bruno Haible  <bruno@clisp.org>
15844         gettimeofday: Provide higher resolution on native Windows.
15845         * lib/gettimeofday.c: Don't include <sys/timeb.h>.
15846         (GetSystemTimePreciseAsFileTimeFuncType): New variable.
15847         (initialize): Initialize it.
15848         (gettimeofday) [WINDOWS_NATIVE]: Use it, and convert from FILETIME to
15849         'struct timeval'. Don't use _ftime().
15850         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): Don't test for
15851         <sys/timeb.h> and _ftime.
15853 2017-04-30  Bruno Haible  <bruno@clisp.org>
15855         Document the problem with the Cygwin environment variable TZ.
15856         * doc/posix-functions/tzset.texi: Add note about TZ.
15857         * doc/posix-functions/ctime.texi: Likewise.
15858         * doc/posix-functions/localtime.texi: Likewise.
15859         * doc/posix-functions/mktime.texi: Likewise.
15860         * doc/posix-functions/strftime.texi: Likewise.
15861         * doc/posix-functions/wcsftime.texi: Likewise.
15862         * doc/pastposix-functions/ftime.texi: Likewise.
15864 2017-04-30  Bruno Haible  <bruno@clisp.org>
15866         utime-tests: New module.
15867         * tests/test-utime.c: New file, based on tests/test-utimens.h.
15868         * tests/test-utimens-common.h: Include <sys/stat.h>.
15869         * modules/utime-tests: New file.
15871 2017-04-29  Bruno Haible  <bruno@clisp.org>
15873         utime: New module.
15874         * lib/utime.in.h: Add comment for snippets.
15875         (utime): New declaration.
15876         * lib/utime.c: New file.
15877         * m4/utime.m4: New file.
15878         * m4/utime_h.m4 (gl_UTIME_H): Test for utime declaration.
15879         (gl_UTIME_H_DEFAULTS): Initialize GNULIB_UTIME, HAVE_UTIME,
15880         REPLACE_UTIME.
15881         * modules/utime-h (Depends-on): Add snippets.
15882         (Makefile.am): Substitute GNULIB_UTIME, HAVE_UTIME, REPLACE_UTIME.
15883         Insert snippets.
15884         * modules/utime: New file.
15885         * doc/posix-functions/utime.texi: Mention the new module.
15887 2017-04-29  Bruno Haible  <bruno@clisp.org>
15889         utime-h: Modernize handling of 'struct utimbuf'.
15890         * lib/utime.in.h: Include next <utime.h> if it exists.
15891         (utimbuf): Define to _utimbuf on native Windows.
15892         * m4/utime_h.m4 (gl_UTIME_H): Check for prerequisites of include_next.
15893         Set UTIME_H on native Windows.
15894         (gl_UTIME_MODULE_INDICATOR, gl_HEADER_UTIME_H_DEFAULTS): New macros.
15895         * modules/utime-h (Depends-on): Add include_next.
15896         (Makefile.am): Substitute also HAVE_UTIME_H, INCLUDE_NEXT,
15897         PRAGMA_SYSTEM_HEADER, PRAGMA_COLUMNS, NEXT_UTIME_H.
15899         * lib/utimens.c (utimbuf): Remove fallback definition.
15900         * m4/utimens.m4 (gl_UTIMENS): Don't require
15901         gl_CHECK_TYPE_STRUCT_UTIMBUF.
15902         * m4/utimbuf.m4: Remove file.
15903         * modules/utimens (Files): Remove m4/utimbuf.m4.
15905 2017-04-29  Bruno Haible  <bruno@clisp.org>
15907         Make use of module 'utime-h'.
15908         * modules/copy-file (Depends-on): Add utime-h.
15909         * lib/copy-file.c: Assume that <utime.h> exists.
15910         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for <utime.h>.
15912         * modules/utimens (Depends-on): Add utime-h.
15913         * lib/utimens.c: Assume that <utime.h> exists.
15915 2017-04-29  Bruno Haible  <bruno@clisp.org>
15917         utime-h: New module.
15918         * m4/utime_h.m4: New file.
15919         * lib/utime.in.h: New file.
15920         * modules/utime-h: New file.
15921         * doc/posix-headers/utime.texi: Mention the new module.
15923         * tests/test-utime-h.c: New file.
15924         * modules/utime-h-tests: New file.
15926 2017-04-30  Bruno Haible  <bruno@clisp.org>
15928         Fix a few typos.
15929         * m4/fstat.m4 (gl_FUNC_FSTAT): Require AC_CANONICAL_HOST.
15930         * m4/stat.m4 (gl_FUNC_STAT): Fix comment.
15931         * doc/posix-functions/fstat.texi: Fix a plural typo.
15932         * doc/posix-functions/stat.texi: Likewise.
15933         * m4/include_next.m4: Update comments.
15935 2017-04-29  Bruno Haible  <bruno@clisp.org>
15937         error: Fix mistake in 2017-04-23 commit.
15938         * lib/error.c (print_errno_message): If GNULIB_STRERROR_R_POSIX is set,
15939         assume that strerror_r returns 'int', not 'char *'.
15941 2017-04-29  Bruno Haible  <bruno@clisp.org>
15943         stat: Fix time_t values and other problems on native Windows platforms.
15944         * doc/posix-functions/stat.texi: Mention the problem with the Microsoft
15945         implementations of stat().
15946         * lib/stat.c: Include filename.h instead of dosname.h. Include
15947         malloca.h, stat-w32.h.
15948         (is_unc_root): New function.
15949         (rpl_stat): New implementation for native Windows. Remove
15950         REPLACE_FUNC_STAT_DIR code.
15951         * m4/stat.m4 (gl_FUNC_STAT): On native Windows, set REPLACE_STAT always.
15952         Don't define REPLACE_FUNC_STAT_DIR.
15953         (gl_PREREQ_STAT): Require gl_HEADER_SYS_STAT_H.
15954         * modules/stat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
15955         (Depends-on): Remove dosname. Add filename, malloca.
15956         (configure.ac): Also compile lib/stat-w32.c.
15958 2017-04-29  Bruno Haible  <bruno@clisp.org>
15960         fstat: Fix time_t values on native Windows platforms.
15961         * doc/posix-functions/fstat.texi: Mention the problem with st_*time.
15962         * lib/stat-w32.h: New file.
15963         * lib/stat-w32.c: New file.
15964         * lib/fstat.c: Don't include msvc-inval.h. Include msvc-nothrow.h,
15965         stat-w32.h instead.
15966         (fstat_nothrow): Remove function.
15967         (rpl_fstat): Implement by means of _gl_fstat_by_handle.
15968         * m4/fstat.m4 (gl_FUNC_FSTAT): On native Windows, set REPLACE_FSTAT
15969         always.
15970         (gl_PREREQ_FSTAT): Require gl_HEADER_SYS_STAT_H.
15971         * modules/fstat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
15972         (Depends-on): Remove msvc-inval. Add pathmax, msvc-nothrow.
15973         (configure.ac): Also compile lib/stat-w32.c.
15975 2017-04-29  Paul Eggert  <eggert@cs.ucla.edu>
15977         getopt: port to Solaris 10 with circa-1997 glibc getopt.h
15978         Problem reported by Assaf Gordon and Gavin Smith in:
15979         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00157.html
15980         * lib/getopt-pfx-ext.h (_getopt_internal) [__GETOPT_PREFIX]:
15981         #define this, too.
15983 2017-04-29  Bruno Haible  <bruno@clisp.org>
15985         strerror_r-posix: Fixes for MSVC 14.
15986         * lib/strerror_r.c: Include <stdarg.h>.
15987         (strerror_r): Provide error messages for errno values 100...140.
15988         * doc/posix-functions/strerror_r.texi: Mention the MSVC 14 problem.
15990 2017-04-28  Bruno Haible  <bruno@clisp.org>
15992         noreturn: New module.
15993         * lib/noreturn.h: New file.
15994         * modules/noreturn: New file.
15995         * tests/test-noreturn.c: New file.
15996         * modules/noreturn-tests: New file.
15997         * tests/test-noreturn-c++.cc: New file.
15998         * modules/noreturn-c++-tests: New file.
16000 2017-04-27  Bruno Haible  <bruno@clisp.org>
16002         wctype-h: Fix compilation error with the original mingw.org mingw.
16003         * m4/wctype_h.m4 (gl_WCTYPE_H): Test for <crtdefs.h>. Set
16004         HAVE_CRTDEFS_H.
16005         * modules/wctype-h (Makefile.am): Substitute HAVE_CRTDEFS_H.
16006         * lib/wctype.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
16007         <stddef.h> instead.
16008         Reported and proposed by Eli Zaretskii <eliz@gnu.org>.
16010 2017-04-26  Pádraig Brady  <P@draigBrady.com>
16012         nap.h: Fix compilation on non windows platforms
16013         * tests/nap.h: Move misplaced endif.
16015 2017-04-26  Pádraig Brady  <P@draigBrady.com>
16016         and Paul Eggert  <eggert@cs.ucla.edu>
16018         time_rz: fix heap buffer overflow vulnerability
16019         Reported and analyzed at https://bugzilla.redhat.com/CVE-2017-7476
16020         * lib/time_rz.c (save_abbr): Rearrange the calculation determining
16021         whether there is enough buffer space available, thus avoiding
16022         the problematic promotion of signed to unsigned causing an invalid
16023         comparison when zone_copy is more than ABBR_SIZE_MIN bytes beyond
16024         the start of the buffer.
16025         * tests/test-parse-datetime.c (main): Add a test case written by
16026         Paul Eggert, which overwrites enough of the heap so that
16027         standard glibc will fail with "free(): invalid pointer"
16028         without the patch applied.
16030 2017-04-26  Paul Eggert  <eggert@cs.ucla.edu>
16032         xalloc: add missing integer overflow check
16033         * lib/xalloc.h (x2nrealloc): Also check for multiplication
16034         overflow when P is null.
16036 2017-04-25  Paul Eggert  <eggert@cs.ucla.edu>
16038         parse-datetime: make it standalone
16039         * lib/parse-datetime.y: Include <stdarg.h>, for va_start etc.
16040         (_GL_ATTRIBUTE_FORMAT): New macro.
16041         These are needed to get './gnulib-tool --test parse-datetime' to work.
16043 2017-04-23  Bruno Haible  <bruno@clisp.org>
16045         nap.h: Port to native Windows.
16046         * tests/nap.h (nap_get_stat): Renamed from get_stat. Remove argument fd;
16047         use nap_fd instead. On native Windows, close and reopen nap_fd.
16048         (nap_works): Don't compare the ctimes, because on native Windows, these
16049         are the creation times.
16050         (nap): Update.
16052 2017-04-23  Bruno Haible  <bruno@clisp.org>
16054         nap.h: Fix logic.
16055         * tests/nap.h (nap): Avoid signed integer overflow in loop.
16057 2017-04-23  Bruno Haible  <bruno@clisp.org>
16059         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
16060         * modules/strerror_r-posix (configure.ac): Invoke gl_MODULE_INDICATOR.
16061         * lib/error.c: Test GNULIB_STRERROR_R_POSIX before testing
16062         HAVE_DECL_STRERROR_R, HAVE_STRERROR_R, or STRERROR_R_CHAR_P.
16063         * lib/argp-help.c (__argp_failure): Likewise.
16065 2017-04-23  Bruno Haible  <bruno@clisp.org>
16067         strerror_r-posix: Revert commits from 2016-10-16,2016-11-04,2016-11-14.
16068         * m4/strerror_r.m4: Revert changes since 2016-10-16.
16069         * lib/strerror_r.c: Likewise.
16071 2017-04-23  Paul Eggert  <eggert@cs.ucla.edu>
16073         Target a C99 subset, not a C89 subset
16074         For many years Gnulib has targeted C89 and has resisted using C99
16075         features, as some Gnulib-using programs still wanted to target
16076         C89.  As this no longer seems to be the case, relax the porting
16077         requirements to allow some C99 features.  This is merely a change
16078         to the documentation, to give other Gnulib developers a chance to
16079         weigh in on the topic.
16080         * doc/extern-inline.texi (extern inline):
16081         * doc/gnulib-readme.texi (Portability guidelines):
16082         * doc/gnulib-tool.texi (Initial import):
16083         * doc/gnulib.texi (Header files):
16084         Modernize to talk about C99 and C11 instead of C89 and C99.
16085         * doc/gnulib-readme.texi (Portability guidelines):
16086         Now a section, not merely a subsection, so that it
16087         can be split up.  Modernize a bit.
16088         (C language versions, C99 features assumed)
16089         (C99 features avoided):
16090         New sections.
16092 2017-04-23  Bruno Haible  <bruno@clisp.org>
16094         doc: New section "Modules that modify the way other modules work".
16095         * doc/gnulib.texi (Modules that modify the way other modules work): New
16096         section.
16098 2017-04-23  Bruno Haible  <bruno@clisp.org>
16100         stat-time: Update comments.
16101         * lib/stat-time.h: Fix reference regarding st_ctime on Windows.
16102         * tests/test-utimens-common.h: Add reference regarding st_ctime on
16103         Windows.
16105 2017-04-01  Bruno Haible  <bruno@clisp.org>
16107         glob: Fix more memory leaks.
16108         * lib/glob.c (glob): Free allocated memory before returning.
16109         Reported by Coverity via Tim Rühsen.
16111 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
16113         poll: improve fast check for out-of-range NFD
16114         * lib/poll.c: Do not include intprops.h.
16115         (poll): Compare NFD to INT_MAX, not to TYPE_MAXIMUM (nfds_t) / 2.
16116         * modules/poll (Depends-on): Remove intprops.
16118         ftoastr: cite a newer paper
16119         * lib/ftoastr.c (FTOASTR): In comment, cite Andrysco et al. 2016
16120         instead of Loitsch 2010.
16122 2017-04-22  Bruno Haible  <bruno@clisp.org>
16124         poll: Enable argument check also in the Windows implementation.
16125         * lib/poll.c (poll) [WINDOWS_NATIVE]: Check value of nfd correctly.
16126         Reported by Paul Eggert.
16128 2017-04-22  Bruno Haible  <bruno@clisp.org>
16130         getlogin_r: Work around bug in Mac OS X 10.12.
16131         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test also against the Mac OS X
16132         bug.
16133         * lib/getlogin_r.c (getlogin_r): When getlogin_r returns a string of the
16134         given size minus 1, call getlogin_r a second time, on a larger buffer.
16135         * modules/getlogin_r (Depends-on): Add malloca.
16136         * doc/posix-functions/getlogin_r.texi: Mention the Mac OS X bug.
16138 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
16140         parse-datetime: fix %z and prefer signed int
16141         %z problem reported by Pádraig Brady in:
16142         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00103.html
16143         While fixing it, I decided to prefer signed ints to size_t, as
16144         they are less error-prone (e.g., ubsan catches overflow).
16145         * lib/parse-datetime.y (textint, parser_control, lookup_word, yylex)
16146         (parse_datetime2): Prefer ptrdiff_t to size_t for sizes and object
16147         counts, since signed integers make for better debugging.
16148         (date): Don’t assume %z works in printf formats.
16149         (debug_strfdatetime, debug_strfdate, debug_strftime): Use int for
16150         sizes of buffers known to be small, e.g., because we’re using snprintf.
16151         (parse_datetime2): Simplify call to debug_mktime_not_ok.
16153 2017-04-22  Bruno Haible  <bruno@clisp.org>
16155         *printf: Work around rounding bug on Mac OS X.
16156         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Test for Mac OS X 10.12 bug.
16157         * doc/posix-functions/*printf.texi: Mention the rounding bugs of
16158         Mac OS X and FreeBSD.
16159         * doc/glibc-functions/*printf.texi: Likewise.
16161 2017-04-22  Bruno Haible  <bruno@clisp.org>
16163         vasnprintf tests: Avoid warnings.
16164         * tests/test-vasnprintf-posix3.c (test_function, my_asnprintf,
16165         test_vasnprintf, test_asnprintf): Don't define if there's nothing to
16166         test.
16168 2017-04-22  Bruno Haible  <bruno@clisp.org>
16170         sys_file tests: Avoid warning.
16171         * tests/test-sys_file.c (main): Add a default clause to the switch
16172         statement.
16174 2017-04-22  Bruno Haible  <bruno@clisp.org>
16176         sethostname: Update doc.
16177         * doc/glibc-functions/sethostname.texi: Mention differing prototype on
16178         Mac OS X.
16180 2017-04-22  Bruno Haible  <bruno@clisp.org>
16182         quotearg tests: Avoid warnings.
16183         * tests/test-quotearg.c: Don't include test-quotearg.h if ENABLE_NLS is
16184         false.
16186 2017-04-22  Bruno Haible  <bruno@clisp.org>
16188         poll: Enable argument check.
16189         * lib/poll.c: Include intprops.h.
16190         (poll): Check value of nfd correctly.
16191         * modules/poll (Depends-on): Add intprops.
16193 2017-04-22  Bruno Haible  <bruno@clisp.org>
16195         get-rusage-data: Avoid warnings on Mac OS X.
16196         * lib/get-rusage-data.c: On Mac OS X, don't define
16197         get_rusage_data_via_setrlimit nor get_rusage_data_via_iterator.
16198         (get_rusage_data) [Mac OS X]: Just return 0.
16200 2017-04-22  Bruno Haible  <bruno@clisp.org>
16202         xbinary-io: Fix build error.
16203         * modules/xbinary-io (Depends-on): Add gettext-h.
16204         * lib/xbinary-io.c: Include gettext.h and define _().
16205         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
16206         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00089.html>.
16208 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
16210         parse-datetime: overflow and debug cleanups
16211         This long patch was triggered by this bug report from Ruediger Meier:
16212         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00028.html
16213         I fixed the bug he noted, then found some others nearby, and then
16214         still others.  Oh my goodness, there were a lot of bugs.  I cleaned
16215         up some of the code to follow GNU standards while I was at it.
16216         * lib/parse-datetime.y (ISDIGIT): Remove; all callers changed to
16217         use c_isdigit.
16218         (EPOCH_YEAR): Remove; unused.
16219         (TM_YEAR_BASE): Now an enum rather than a macro.
16220         (HOUR, debug_strfdatetime): Multiply hour by 3600, not 60, to get
16221         time zone offset, since timezones now are in terms of seconds and
16222         not minutes.
16223         (long_time_t): Remove.  All uses replaced by time_t or intmax_t as
16224         appropriate.  Verify that intmax_t is wide enough.
16225         (time_overflow, time_zone_str): New functions, used to deal
16226         more reliably with overflow.
16227         (dbg_printf): Add printf attribute, to help catch integer width errors.
16228         (textint, relative_time, parser_control, time_zone_hhmm, set_hhmmss)
16229         (%union, to_hour, yylex, parse_datetime2):
16230         Use intmax_t instead of long int and/or long_time_t.
16231         All uses changed.
16232         (DBGBUFSIZE): Move earlier.
16233         (relative_time, set_hhmmss, parser_control):
16234         Just use int for nanoseconds and for time zones; that’s wide enough.
16235         (parser_control): Use bool for members like year_seen that can
16236         be booleans instead of counters.  All uses changed.
16237         Remove debug_default_input_timezone; no longer needed.
16238         All uses removed.
16239         (apply_relative_time): Return a bool overflow flag.
16240         All uses changed to check for overflow.
16241         (apply_relative_time, zone, date, relunit, relunit_snumber)
16242         (signed_seconds, unsigned_seconds, yylex, parse_datetime2):
16243         Check for integer overflow portably.
16244         (str_days): Use just int for N, as it’s wide enough.
16245         Prefer 2D char arrays to arrays of char * when it looks like
16246         2D is a win on typical platforms.
16247         Prefer snprintf to strncpy/strncat, for simplicity;
16248         all buffers are smaller than INT_MAX so this is safe.
16249         (TIME_ZONE_BUFSiZE, TM_YEAR_BUFSIZE): New constants.
16250         (debug_print_current_time): Don’t assume tv_nsec is of type long,
16251         as this is not true on x32.  Output "." before any nanoseconds.
16252         (debug_print_current_time, parse_datetime2):
16253         Output local zones using a more-consistent format.
16254         (debug_print_current_time, date, parse_datetime2):
16255         (main) [TEST]:
16256         Don’t assume time_t is the same width as long.
16257         (print_rel_part): New function, replacing ...
16258         (PRINT_REL_PART): ... this macro, which was removed.  All uses changed.
16259         (debug_print_relative_time): Use bool for boolean.
16260         (local_zone): dsts_seen now counts only tDST instances.
16261         (date): Fix printf of size_t to use %z.  Do not assume numeric
16262         tokens have negative values merely because the context suggests
16263         a syntax with "-" separating tokens.
16264         (time_zone_hhmm): Return bool success indicator, which checks for
16265         overflow.  Store result into PC->time_zone instead.  All callers
16266         changed.
16267         (tm_year_str): New function.  Return a bool success indicator and
16268         store the result into a buffer.  All callers changed.  Output the
16269         numerically correct string even if adding 1900 to the year would
16270         overflow.
16271         (to_tm_year): New function, replacing the old to_year.  All
16272         callers changed.
16273         (tm_diff): Sync with glibc.
16274         (lookup_word): Use to_uchar instead of doing it by hand.
16275         (TZBUFSIZE): Now local to the only function that needs it.
16276         (debug_strfdatetime): Simplify now that time zones are int seconds.
16277         (debug_strfdate): Work even if tm_year + 1900 would overflow.
16278         (get_effective_timezone): Remove.  All uses removed.
16279         (parse_datetime2): Use fprintf in pieces instead of snprintfing
16280         to a fixed-size buffer.  Don’t assume that gmtime succeeds iff
16281         localtime succeeds.  Use tm_gmtoff if available.  Simplify how
16282         ‘goto fail;’ works in conjunction with the ‘ok’ flag.
16283         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Don’t define
16284         TIME_T_FITS_IN_LONG_INT, as it is no longer needed.
16285         * modules/parse-datetime (Depends-on): Add inttypes.
16287 2017-04-21  Bruno Haible  <bruno@clisp.org>
16289         gettext-h: Avoid -Wundef warning.
16290         * lib/gettext.h: Test the value of ENABLE_NLS only if it is defined.
16291         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
16292         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00022.html>.
16294 2017-04-05  Tim Rühsen  <tim.ruehsen@gmx.de>
16296         error: Avoid "function declaration isn't a prototype" warning.
16297         * lib/error.c (strerror_r): Turn K&R C prototype to an ANSI C prototype.
16299 2017-04-21  Bruno Haible  <bruno@clisp.org>
16301         vasnprintf: Fix for MSVC 14.
16302         * lib/vasnprintf.c (USE_MSVC__SNPRINTF): New macro.
16303         Everywhere, use !HAVE_SNPRINTF_RETVAL_C99 || USE_MSVC__SNPRINTF instead
16304         of !HAVE_SNPRINTF_RETVAL_C99.
16306 2017-04-21  Bruno Haible  <bruno@clisp.org>
16308         mbrtowc tests: Fix test failures on MSVC 14.
16309         * tests/test-mbrtowc-w32.c (test_one_locale): Accept MSVC's conversion
16310         behaviour for invalid input.
16312 2017-04-21  Bruno Haible  <bruno@clisp.org>
16314         mbsinit: Fix for MSVC 14.
16315         * lib/mbsinit.c (mbsinit): If GNULIB_defined_mbstate_t, provide an
16316         implementation that is in sync with mbrtowc.c. On other platforms, use
16317         an adequate ad-hoc implementation.
16319 2017-04-21  Bruno Haible  <bruno@clisp.org>
16321         Fix test-mbrtowc5.sh failure on native Windows.
16322         * lib/setlocale.c (setlocale_unixlike): Accept "POSIX" as an alias for
16323         "C".
16325 2017-04-21  Bruno Haible  <bruno@clisp.org>
16327         Avoid accidental use of native Windows APIs on Cygwin.
16328         * lib/getaddrinfo.c (WINDOWS_NATIVE): Don't define on Cygwin.
16329         * lib/localcharset.c (WINDOWS_NATIVE): Likewise.
16330         * lib/localename.c (WINDOWS_NATIVE): Likewise.
16332 2017-04-20  Bruno Haible  <bruno@clisp.org>
16334         Remove red warnings from the generated MODULES.html.
16335         * modules/fcntl (Description): Disambiguate function references.
16336         * modules/getcwd-lgpl (Description): Likewise.
16337         * modules/hostent (Description): Likewise.
16338         * modules/servent (Description): Likewise.
16339         * modules/tempname (Description): Likewise.
16341 2017-04-20  Bruno Haible  <bruno@clisp.org>
16343         verify tests: Fix spurious failure with parallel make.
16344         * gnulib-tool (func_emit_tests_Makefile_am): Emit initialization of
16345         EXTRA_PROGRAMS.
16346         * tests/test-verify.sh: Build test-verify-try.o, not test-verify.o.
16347         * tests/test-verify-try.c: New file.
16348         * modules/verify-tests (Files): Add it.
16349         (EXTRA_PROGRAMS): Add test-verify-try.
16350         (MOSTLYCLEANFILES): Update accordingly.
16351         Reported by Adam James Stewart <ajstewart@anl.gov>.
16353 2017-04-18  Bruno Haible  <bruno@clisp.org>
16355         vma-iter: Fix compilation error on Solaris 7.
16356         * lib/vma-iter.c (vma_iterate): Treat missing MAP_ANONYMOUS on Solaris
16357         like on IRIX, OSF/1.
16358         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16360 2017-04-18  Bruno Haible  <bruno@clisp.org>
16362         vma-iter: Fix conflict with module 'largefile' on 32-bit Solaris 9.
16363         * modules/vma-iter (configure.ac): Test whether <sys/procfs.h> can be
16364         included.
16365         * lib/vma-iter.c: On Solaris, test HAVE_SYS_PROCFS_H before including
16366         <sys/procfs.h>.
16367         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't define on Solaris when
16368         <sys/procfs.h> cannot be included.
16369         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16371 2017-04-18  Bruno Haible  <bruno@clisp.org>
16373         getopt-gnu: Add comments.
16374         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Add comments.
16375         * modules/getopt-gnu (configure.ac): Likewise.
16377 2017-04-16  Paul Eggert  <eggert@cs.ucla.edu>
16379         regex: port better to Solaris 10
16380         Solaris 10 <locale.h> includes <libintl.h>, which #defines
16381         gettext, and this causes a double #define.
16382         Problem reported by Gavin Smith in:
16383         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00056.html
16384         * lib/regex_internal.h (gettext): #undef before #defining.
16386 2017-04-15  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
16388         intprops: improve comments
16389         * lib/intprops.h: Improve and shorten commentary.
16390         For the record, if we ever run into a pedantic compiler that
16391         behaves differently from GCC when converting an out-of-range value
16392         to a signed integer, we can work around the problem with something
16393         like the following code, where UCT is the signed counterpart of T
16394         (UCT is sometimes narrower than UT) and all callers are changed
16395         accordingly:
16396         #if __SUNPRO_C <= 0x5120
16397         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
16398            ((t) ((ut) (a) op (ut) (b)))
16399         #else
16400         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
16401            (TYPE_MINIMUM (t) <= (uct) ((ut) (a) op (ut) (b)) \
16402             ? ((t) (uct) (((ut) (a) op (ut) (b)) - TYPE_MINIMUM (t)) \
16403                + TYPE_MINIMUM (t)) \
16404             : (t) (uct) ((ut) (a) op (ut) (b)))
16405         #endif
16407 2017-04-14  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
16409         intprops: try to avoid tickling similar bugs
16410         * lib/intprops.h (_GL_INT_OP_CALC): Document that UT no longer
16411         needs to be the same width as T; it can be wider.
16412         Change callers so that UT is at least as wide as unsigned int,
16413         as I suspect that this is less likely to run into compiler bugs.
16415         intprops: port to Oracle Studio 12.3 x86
16416         Problem reported by Gavin Smith in:
16417         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00049.html
16418         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
16419         Convert unsigned to signed via the usual rather than the standard way,
16420         to avoid a compiler bug in Oracle Studio 12.3 x86.
16422 2017-04-08  Paul Eggert  <eggert@cs.ucla.edu>
16424         getopt: prefer - to _ in new file names
16425         * lib/getopt-cdefs.in.h: Rename from lib/getopt_cdefs.in.h.
16426         * lib/getopt-core.h: Rename from lib/getopt_core.h.
16427         * lib/getopt-ext.h: Rename from lib/getopt_ext.h.
16428         * lib/getopt-pfx-core.h: Rename from lib/getopt_pfx_core.h.
16429         * lib/getopt-pfx-ext.h: Rename from lib/getopt_pfx_ext.h.
16430         All uses changed.
16432         getopt: port recent getopt changes to macOS
16433         Problem reported by Harald Maier (Bug#26398).
16434         The macOS C compiler uses __nonnull for its own purposes and that
16435         clashes with glibc's __nonnull.
16436         * lib/getopt.in.h: Add comment for _GL_ARG_NONNULL snippet.
16437         * lib/getopt_cdefs.in.h (__nonnull): Remove.
16438         * lib/getopt_core.h (getopt):
16439         * lib/getopt_ext.h (getopt_long, getopt_long_only):
16440         Use _GL_ARG_NONNULL, not __nonnull.
16441         * lib/unistd.in.h: Move snippet hooks to before where the getopt
16442         .h files are included, so that _GL_ARG_NONNULL is defined in time.
16443         * modules/getopt-posix (Depends-on): Add snippet/arg-nonnull.
16444         (getopt.h): Interpolate _GL_ARG_NONNULL snippet.
16446 2017-04-06  Paul Eggert  <eggert@cs.ucla.edu>
16448         getopt-gnu: omit some duplicate code
16449         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Don’t require
16450         gl_FUNC_GETOPT_POSIX, as the configure.ac code generated by
16451         gnulib-tool already does this.
16452         * modules/getopt-gnu (configure.ac): Omit code duplicated from
16453         getopt-posix, which we depend on.
16455         getopt-posix: use angle-bracket include
16456         * lib/getopt1.c: Include <config.h>, not "config.h".
16458 2017-04-06  Zack Weinberg  <zackw@panix.com>
16460         getopt: annotate files with relationship to glibc
16462         As the final act in this patchset, adjust the message at the top of
16463         each file to indicate which files are synced with glibc.  (This has
16464         already been done for most of the headers.)
16466         * lib/getopt.c, lib/getopt1.c, lib/getopt_int.h:
16467         Mention in top-of-file boilerplate that these files are shared
16468         between glibc and gnulib.
16471         getopt: split up getopt.in.h and eliminate __need_getopt
16473         Over in glibc, all of the __need macros are being phased out in favor
16474         of small headers that declare only the necessary components, as this
16475         is much simpler and less prone to bugs.  As getopt is shared with
16476         glibc, gnulib needs to do the same for __need_getopt.
16478         __need_getopt is misnamed; what it really means is "we want only the
16479         getopt features specified in POSIX, not the GNU extensions".  glibc
16480         placed the "meat" of getopt.h into getopt_core.h and getopt_ext.h;
16481         these files can be shared verbatim with gnulib.  The portability
16482         wrapper, on the other hand, they have renounced altogether; glibc's
16483         getopt.h will no longer be shared with gnulib at all.  In exchange,
16484         certain glibc-specific quirks (having to do with __posix_getopt) no
16485         longer need appear in gnulib's headers at all.
16487         This patch merges getopt_core.h and getopt_ext.h from glibc, and
16488         splits up the current gnulib-side portability wrapper into three
16489         additional headers: getopt_pfx_core.h and getopt_pfx_ext.h handle
16490         __GETOPT_PREFIX for their respective headers, getopt_cdefs.in.h
16491         handles things like __BEGIN_DECLS and __THROW, and getopt.in.h and
16492         unistd.in.h just use them.  All new files are clearly marked with
16493         whether they are shared with glibc.
16495         * lib/getopt.in.h: Eliminate __need_getopt.  Break up into ...
16496         * lib/getopt_core.h, lib/getopt_ext.h: ... these new files shared
16497         with glibc, and ...
16498         * lib/getopt_cdefs.in.h, lib/getopt_pfx_core.h
16499         * lib/getopt_pfx_ext.h: ... these new files not shared with glibc.
16500         * lib/unistd.in.h: Include getopt_cdefs.h and getopt_pfx_core.h,
16501         instead of defining __need_getopt and including the full getopt.h.
16503         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): Check for sys/cdefs.h.
16504         Define substitution variables GETOPT_CDEFS_H and HAVE_SYS_CDEFS_H.
16505         * modules/getopt-posix (Files): Add new headers and sort list.
16506         (Depends-on): No longer need snippet/arg-nonnull.
16507         (Makefile.am): Generate getopt_cdefs.h.
16510         getopt: better handling of ambiguous options
16512         glibc's getopt uses alloca to construct a linked list of possibilities
16513         for an "ambiguous" long option.  In gnulib, malloc should be used
16514         instead.  Providing for both cases complicates things a fair bit.
16516         This patch rewrites ambiguous-option handling to use a boolean vector
16517         instead of a linked list.  There is then only one allocation that
16518         might need freeing; in glibc it can honor __libc_use_alloca as usual,
16519         and in gnulib we define __libc_use_alloca to always be false, so we
16520         don't need ifdefs in the middle of the function.  This should also be
16521         slightly more efficient in the normal case of long options being fully
16522         spelled out -- I think most people aren't even aware they _can_
16523         sometimes abbreviate long options.
16525         One interesting consequence is that the list of possibilities is now
16526         printed in exactly the order they appear in the list of long options,
16527         instead of the first possibility being shuffled to the end.
16529         (The patch looks bigger than it really is because there's a fair bit
16530         of reindentation and code rearrangement.)
16532         * lib/getopt.c: When used standalone, define __libc_use_alloca
16533         as always false and alloca to abort if called.
16534         (process_long_option): Rewrite handling of ambiguous long options
16535         to use a single boolean vector, not a linked list; use
16536         __libc_use_alloca to decide whether to allocate this using alloca.
16539         getopt: refactor long-option handling
16541         There were two copies of the bulk of the code to handle long options.
16542         Now there is only one.
16544         This change temporarily removes the logic to avoid using alloca when
16545         standalone; the next patch in the series will restore it.
16547         * lib/getopt.c (process_long_option): New function split out
16548         from _getopt_internal_r.
16549         (_getopt_internal_r): Replace both copies of the long-option
16550         processing code with calls to process_long_option.
16553         getopt: tidy up _getopt_initialize a bit
16555         _getopt_data.__posixly_correct is completely redundant to
16556         _getopt_data.__ordering, and some work that logically belongs in
16557         _getopt_initialize was being done by _getopt_internal_r, making the
16558         code harder to understand.
16560         As a side effect, getenv will no longer be called if the first
16561         character of the options string is '+' or '-', which is probably a
16562         Good Thing.  (Perhaps we should have a flag character that
16563         specifically asks for the permutation behavior?)
16565         * lib/getopt_int.h (_getopt_data): Remove __posixly_correct field.
16566         * lib/getopt.c (_getopt_internal_r): Move some initialization code...
16567         (_getopt_initialize): ...here. Don't set d->__posixly_correct.
16570         getopt: merge from glibc: repetition reduction
16572         The definitions of the entry point functions 'getopt' and
16573         '__posix_getopt' can be made substantially less repetitive with a
16574         helper macro.
16576         While I was merging the const-correctness changes from gnulib into
16577         glibc I noticed there are still some unnecessary casts in
16578         _getopt_internal_r.
16580         * lib/getopt.c (getopt, __posix_getopt): Eliminate repetition with
16581         a macro.  Consistently cast 'argv' to 'char **' when calling
16582         _getopt_internal.
16583         (_getopt_internal_r): Remove unnecessary casts when calling exchange.
16586         getopt: clean up error reporting
16588         getopt can print a whole bunch of error messages, and when used
16589         standalone (from gnulib) it uses fprintf to do that.  But fprintf is a
16590         cancellation point and getopt isn't, and also applying fprintf to a
16591         stream in wide-character mode is not allowed.  So every single error
16592         reporting case has an #ifdef _LIBC block in which it calls internal
16593         libc functions instead.  The counterpart patch series in glibc makes
16594         it possible to simplify all of that down to a set of #defines at the
16595         top of the file; core code is written as if it is safe to just call
16596         fprintf, flockfile, and funlockfile.  (One caveat: it's *not* safe to
16597         call any *other* stdio functions.)
16599         * lib/getopt.c: When _LIBC is defined, define fprintf to
16600         __fxprintf_nocancel, flockfile to _IO_flockfile, and funlockfile
16601         to _IO_funlockfile.  When neither _LIBC nor
16602         _POSIX_THREAD_SAFE_FUNCTIONS is defined, define flockfile and
16603         funlockfile as no-ops.
16604         (_getopt_internal_r): Remove all internal #ifdef _LIBC blocks; the
16605         standalone error-printing code can now be used for libc as well.
16606         Add an flockfile/funlockfile pair around one case where the error
16607         message is printed in several chunks.  Don't use fputc.
16610         getopt: fix fencepost error in ambiguous-W-option handling
16612         getopt_long contains an undocumented (AFAICT) feature in which, if you
16613         put "W;" in the short-options list, then '-W foo' and '-Wfoo' are
16614         treated as equivalent to '--foo'.  This is implemented with a partial
16615         second copy of the code for handling long options, and that code
16616         increments optind one too many times when recovering from an ambiguous
16617         abbreviated option, which can cause the main loop to walk past the end
16618         of argv and crash.
16620         I discovered this while writing a test case that tries to exercise all
16621         of getopt's error reporting paths; I wouldn't be surprised to learn
16622         that this feature is never used by real applications.
16624         * lib/getopt.c (_getopt_internal_r): Don't increment
16625         d->optind a second time when reporting ambiguous -W options.
16628         getopt: clean up getopt.c and getopt1.c file headers
16630         In getopt.c, there is no need to include wchar.h at all, and it is
16631         safe nowadays to assume that stdlib.h does declare getenv (several
16632         other gnulib modules make this assumption).
16634         In getopt1.c, the #ifdef _LIBC block at the top can be simplified
16635         by using "" inclusions consistently, and there is no actual need to
16636         include stdlib.h (except in the #ifdef TEST block, where it should be
16637         unconditional), nor to provide a backup definition of NULL at all.
16639         * lib/getopt1.c: Simplify #ifdeffage at top of file.
16640         Move inclusion of stdlib.h to #ifdef TEST block and make
16641         unconditional.  Do not define NULL.
16642         * lib/getopt.c: Don't include wchar.h. No need to declare getenv.
16643         * m4/getopt.m4 (gl_PREREQ_GETENV): Delete.
16644         * modules/getopt-gnu, modules/getopt-posix: Don't call
16645         gl_PREREQ_GETENV.
16648         getopt: harmonize comments with glibc
16650         The comments explaining how the behavior of 'getopt' varies depending
16651         on whether it's the standalone version and whether there are special
16652         characters at the beginning of the options string were inconsistent
16653         between gnulib and glibc, and also out of sync with the code.
16655         * lib/getopt.c, lib/getopt_int.h: Harmonize comments with glibc.
16658         getopt: remove USE_NONOPTION_FLAGS
16660         getopt includes code to parse an environment variable named
16661         _XXX_GNU_nonoption_argv_flags_ (where XXX is the current process's PID
16662         in decimal); but all of it has been #ifdefed out since 2001, with no
16663         official way to turn it back on.
16665         According to commentary in glibc's config.h.in, bash version 2.0
16666         set this environment variable to indicate argv elements that were
16667         the result of glob expansion and therefore should not be treated
16668         as options, but the feature was "disabled later" because "it
16669         caused problems".  According to bash's CHANGES file, "later" was
16670         release 2.01; it gives no more detail about what the problems
16671         were.
16673         Version 2.0 of bash was released on the last day of 1996, and version
16674         2.01 in June of 1997.  Twenty years later, I think it is safe to
16675         assume that this environment variable isn't coming back.
16677         * lib/getopt_int.h: Remove all #ifdef USE_NONOPTION_FLAGS blocks.
16678         * lib/getopt.c: Likewise. Also remove SWAP_FLAGS and the
16679         __libc_argc and __libc_argv externs, which were only used by
16680         #ifdef USE_NONOPTION_FLAGS blocks.
16683         getopt: tabify, in preparation for merge with glibc
16685         glibc sticks to the GNU default of indenting with a mix of
16686         8-column tabs and spaces; make the gnulib copy match.
16688         getopt.h is not included because it is *not* going to be merged in its
16689         present form.
16691         * getopt.c, getopt1.c, getopt_int.h: Tabify.
16693 2017-04-02  Bruno Haible  <bruno@clisp.org>
16695         relocatable-lib-lgpl: Fix link error (regression from 2011-06-16).
16696         * modules/relocatable-lib-lgpl (configure.ac): Add AC_LIBOBJ invocation,
16697         like it was done in modules/relocatable-lib on 2011-05-21 and in
16698         modules/relocatable-prog on 2011-08-15.
16699         Reported by Reuben Thomas <rrt@sc3d.org>.
16701 2017-03-31  Bruno Haible  <bruno@clisp.org>
16703         glob: Fix invalid free() call.
16704         * lib/glob.c (glob): Reset malloc_home_dir when assigning a pointer to
16705         static storage to home_dir.
16706         Reported by Coverity via Tim Rühsen.
16708 2017-03-31  Bruno Haible  <bruno@clisp.org>
16710         glob: Fix memory leaks.
16711         * lib/glob.c (glob): Free allocated memory before returning.
16712         Reported by Coverity via Tim Rühsen.
16714 2017-03-31  Bruno Haible  <bruno@clisp.org>
16716         md5, sha1, sha256, sha512: Add comments regarding correctness.
16717         * lib/md5.h (buflen): Add comments regarding range.
16718         * lib/sha1.h (buflen): Likewise.
16719         * lib/sha256.h (buflen): Likewise.
16720         * lib/sha512.h (buflen): Likewise.
16721         * lib/md5.c (md5_process_bytes): Add comment why memmove is not needed.
16722         * lib/sha1.c (sha1_process_bytes): Likewise.
16723         * lib/sha256.c (sha256_process_bytes): Likewise.
16724         * lib/sha512.c (sha512_process_bytes): Likewise.
16725         Reported by Coverity via Tim Rühsen.
16727 2017-03-22  Paul Eggert  <eggert@cs.ucla.edu>
16729         getopt: merge from glibc
16730         This does not change anything substantial; it merely simplifies
16731         hypothetical merges back to glibc.
16732         * lib/getopt.c, lib/getopt.in.h, lib/getopt1.c, lib/getopt_int.h:
16733         Change copyright notice to match what is in glibc.
16734         * lib/getopt.c: Reorder includes to match glibc.  Remove uses of
16735         USE_IN_LIBIO.  Remove 'register'.  In __LIBC code, use
16736         __open_memstream rather than open_memstream and __glibc_likely
16737         instead of __builtin_expect.
16738         * lib/getopt.in.h (__posix_getopt) [!__GETOPT_PREFIX]: New decl.
16740 2017-03-21  Paul Eggert  <eggert@cs.ucla.edu>
16742         dfa: make [0-9] faster in non-C locales
16743         Problem reported by John P. Linderman (Bug#26193).
16744         * lib/dfa.c (parse_bracket_exp): Remove redundant assignment.
16745         If both ends of the range are ASCII digits, do not worry about
16746         multi-character collating sequences and the like.  Be consistent
16747         about using isalpha as a precondition for setbit_case_fold_c.
16749 2017-03-19  Bruno Haible  <bruno@clisp.org>
16751         lock: Fix compilation error with HP-UX IA64 cc.
16752         * lib/glthread/lock.h (pthread_rwlockattr_setkind_np): Don't declare
16753         weak on non-glibc platforms.
16755 2017-03-19  Paul Eggert  <eggert@cs.ucla.edu>
16757         stdalign: tweak version# and test for HP-UX IA64
16758         Problems reported by Bruno Haible in:
16759         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00078.html
16760         * lib/stdalign.in.h (_Alignas):
16761         * m4/stdalign.m4 (gl_STDALIGN_H):
16762         Use octal, not decimal, for __HP_cc version.  Perhaps HP formerly
16763         used octal (as that is how they document it), but it is decimal in
16764         practice now and the ancient implementations no longer matter.
16765         * tests/test-stdalign.c (main) [__HP_cc && __ia64]: Skip test.
16767 2017-03-19  Bruno Haible  <bruno@clisp.org>
16769         vma-iter: Add support for Solaris.
16770         * lib/vma-iter.c (vma_iterate): On Solaris, use the /proc filesystem
16771         approach.
16772         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on Solaris.
16773         * lib/get-rusage-as.c: Update comment about Solaris.
16774         * lib/get-rusage-data.c: Likewise.
16776 2017-03-19  Bruno Haible  <bruno@clisp.org>
16778         vma-iter: Prefer HP-UX specific API on HP-UX.
16779         * lib/vma-iter.c (vma_iterate): Move HP-UX specific implementation up.
16780         * lib/vma-iter.h: Update.
16781         Just in case HP-UX ever implements mquery().
16783 2017-03-18  Paul Eggert  <eggert@cs.ucla.edu>
16785         stdalign: restore previous behavior for HP-UX IA64
16786         See Bruno Haible's email in:
16787         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
16788         which cites p 150 of a manual saying that 'aligned' works on Itanium.
16789         * lib/stdalign.in.h (_Alignas):
16790         Assume the '061200' applies to Itanium, not to PA-RISC.
16791         * m4/stdalign.m4 (gl_STDALIGN_H): Adjust to match stdalign.in.h.
16793 2017-03-17  Bruno Haible  <bruno@clisp.org>
16795         stat-time, timespec: Support use of the header files in C++ mode.
16796         * lib/stat-time.h: Add "C" linkage declaration.
16797         * lib/timespec.h: Likewise.
16799 2017-03-17  Bruno Haible  <bruno@clisp.org>
16801         stdalign: Make it work with HP-UX cc.
16802         * lib/stdalign.in.h (_Alignas): Don't define for HP-UX cc.
16803         * m4/stdalign.m4 (gl_STDALIGN_H): No need to enable the extra test
16804         for HP-UX cc.
16806 2017-03-17  Paul Eggert  <eggert@cs.ucla.edu>
16808         flexmember: try to detect HP-UX 11.31 cc bug
16809         Problem reported by Bruno Haible in:
16810         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
16811         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
16812         Attempt to detect bug in HP-UX 11.31 cc.
16814 2017-03-16  Bruno Haible  <bruno@clisp.org>
16816         stdint: Fix test compilation failure with HP-UX 11 cc.
16817         * lib/stdint.in.h (_STDINT_MIN): Remove macro.
16818         (_STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN): New macros.
16819         (PTRDIFF_MIN, SIG_ATOMIC_MIN, WCHAR_MIN, WINT_MIN): Define using
16820         _STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN.
16822 2017-03-14  Bruno Haible  <bruno@clisp.org>
16824         gnulib-tool: Don't produce a tests directory with only snippet .h files.
16825         * gnulib-tool (func_modules_transitive_closure_separately): If
16826         testsrelated_modules ends up with no "real" modules, aside from
16827         modules with applicability 'all', set it to empty.
16829 2017-03-14  Bruno Haible  <bruno@clisp.org>
16831         vma-iter: Add support for HP-UX.
16832         * modules/vma-iter (configure.ac): Check for 'pstat_getprocvm'.
16833         * lib/vma-iter.c (vma_iterate): On HP-UX, use pstat_getprocvm().
16834         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on HP-UX.
16835         * lib/get-rusage-as.c: Update comment about HP-UX.
16836         * lib/get-rusage-data.c: Likewise.
16837         (get_rusage_data): Use get_rusage_data_via_setrlimit.
16839 2017-03-14  Bruno Haible  <bruno@clisp.org>
16841         limits-h: Make it work with HP-UX cc.
16842         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define if not
16843         defined.
16845 2017-03-14  Bruno Haible  <bruno@clisp.org>
16847         Fix test failures on DragonFlyBSD.
16848         * tests/test-localeconv.c (main): Treat DragonFlyBSD like FreeBSD.
16849         * tests/test-select.h (test_bad_fd): Likewise.
16850         * tests/test-get-rusage-data.c (main): Treat DragonFlyBSD like OpenBSD.
16852 2017-03-14  Bruno Haible  <bruno@clisp.org>
16854         freadahead: Silence warning on DragonFlyBSD.
16855         * lib/freadahead.c (__sreadahead): Declare ourselves.
16857 2017-03-14  Bruno Haible  <bruno@clisp.org>
16859         vma-iter: Add comment about AIX.
16860         * lib/vma-iter.c: Add comment about why this module is not implemented
16861         on AIX.
16863 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
16865         snippets: move unadjusted snippet sources to lib
16866         Problem reported by Michal Privoznik in:
16867         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00039.html
16868         * lib/_Noreturn.h: Rename from build-aux/snippet/_Noreturn.h.
16869         * lib/arg-nonnull.h: Rename from build-aux/snippet/arg-nonnull.h.
16870         * lib/c++defs.h: Rename from build-aux/snippet/c++defs.h.
16871         * lib/unused-parameter.h: Rename from
16872         build-aux/snippet/unused-parameter.h.
16873         * lib/warn-on-use.h: Rename from build-aux/snippet/warn-on-use.h.
16874         * modules/snippet/_Noreturn (Files:, _NORETURN_H):
16875         * modules/snippet/arg-nonnull (Files:, ARG_NONNULL_H):
16876         * modules/snippet/c++defs (Files:, CXXDEFS_H):
16877         * modules/snippet/unused-parameter (Files:, UNUSED_PARAMETER_H):
16878         * modules/snippet/warn-on-use (Files: WARN_ON_USE_H):
16879         Adjust to file renamings.
16881 2017-03-14  Mathieu Lirzin  <mthl@gnu.org>
16883         gnulib-tool: don't automatically distribute files from top/
16884         * gnulib-tool (func_get_automake_snippet_unconditional): To be able to
16885         not distribute top/README-release by default, don't distribute files
16886         from top/ unconditionally.
16887         * modules/gnumakefile (Makefile.am): Distribute top/GNUmakefile.
16888         * modules/maintainer-makefile (Makefile.am): Distribute top/maint.mk.
16890 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
16892         gnulib-tool: fix typo in comment output
16893         * gnulib-tool (func_import): Fix typo with previous change.
16895         snippets: work around GNU Make 3.82 VPATH
16896         When using 'gnulib-tool --gnu-make' on Emacs, and building
16897         the resulting tarball on Solaris 10 which bundles GNU Make 3.82,
16898         an out-of-source (VPATH) build failed because the sans-copyright
16899         snippet file was not built before the file that used it.
16900         Presumably this is some sort of VPATH thing.  Work around the
16901         problem by using the original snippet, i.e., don’t bother to
16902         remove its copyright notice.
16903         * modules/snippet/_Noreturn, modules/snippet/link-warning:
16904         Don’t assume Automake in comments.  Omit long-incorrect comment.
16905         * modules/snippet/arg-nonnull (BUILT_SOURCES, arg-nonnull.h)
16906         (MOSTLYCLEANFILES):
16907         * modules/snippet/c++defs (BUILT_SOURCES, c++defs.h)
16908         (MOSTLYCLEANFILES):
16909         * modules/snippet/unused-parameter (BUILT_SOURCES, unused-parameter.h)
16910         (MOSTLYCLEANFILES):
16911         * modules/snippet/warn-on-use (BUILT_SOURCES, warn-on-use.h)
16912         (MOSTLYCLEANFILES):
16913         Remove.
16914         * modules/snippet/arg-nonnull (ARG_NONNULL_H):
16915         * modules/snippet/c++defs (CXXDEFS_H):
16916         * modules/snippet/unused-parameter (UNUSED_PARAMETER_H):
16917         * modules/snippet/warn-on-use (WARN_ON_USE_H):
16918         Don’t bother to remove the copyright notice; just use the
16919         original snippet as-is.
16921 2017-03-13  Paul Eggert  <eggert@cs.ucla.edu>
16923         gnulib-tool: minor --gnu-make fixups
16924         * gnulib-tool (func_emit_lib_Makefile_am):
16925         Remove useless code that was a blind alley during implementation.
16926         Problem reported by Thien-Thi Nguyen in:
16927         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00029.html
16928         (func_import): Note the "--gnu-make" option in the output comment.
16930 2017-03-12  Paul Eggert  <eggert@cs.ucla.edu>
16932         gnulib-tool: new option --gnu-make
16933         This is for applications like GNU Emacs that use GNU Make
16934         features instead of Automake.
16935         * doc/gnulib-tool.texi (Initial import): Mention --gnu-make.
16936         * doc/gnulib.texi (Unit test modules, Build robot for gnulib):
16937         Do not assume Automake.
16938         * gnulib-tool (func_determine_path_separator)
16939         (func_modules_transitive_closure, func_update_file)
16940         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
16941         (func_import): Add support for --gnu-make.
16943 2017-03-11  Paul Eggert  <eggert@cs.ucla.edu>
16945         gnulib-common.m4: avoid aclocal.m4 bloat
16946         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB):
16947         Hide AM_PROG_AR from aclocal, so that aclocal does not
16948         install irrelevant macro definitions into aclocal.m4.
16950 2017-03-10  Bruno Haible  <bruno@clisp.org>
16952         vma-iter: Let callers know about error.
16953         * lib/vma-iter.h (vma_iterate): Return 'int', not 'void'.
16954         * lib/vma-iter.c (vma_iterate): Return -1 in case of error.
16956 2017-03-05  Bruno Haible  <bruno@clisp.org>
16958         Fix value of LD for 64-bit compilers on AIX.
16959         * m4/lib-ld.m4 (AC_LIB_PROG_LD): For 64-bit compilers on AIX
16960         ("gcc -maix64" and "xlc -q64"), add option -b64 to $LD.
16962 2017-03-04  Paul Eggert  <eggert@cs.ucla.edu>
16964         dtotimespec: simplify
16965         * lib/dtotimespec.c (dtotimespec): Simplify.
16967 2017-03-04  Bruno Haible  <bruno@clisp.org>
16969         test-calloc-gnu: Reenable test also for GCC 7.
16970         * tests/test-calloc-gnu.c (eight): New function.
16971         (main): Don't skip test; use eight() instead.
16973 2017-03-04  Jim Meyering  <meyering@fb.com>
16975         test-calloc-gnu: port to GCC7
16976         * tests/test-calloc-gnu.c (main) [__GNUC__ >= 7]: Skip a test
16977         that attempts to calloc more than SIZE_MAX bytes, because GCC7
16978         and newer would detect that at compilation time.
16980 2017-03-04  Bruno Haible  <bruno@clisp.org>
16982         tests: Avoid compiler warning about uses of null_ptr.
16983         * tests/null-ptr.h: New file.
16984         * tests/test-canonicalize.c: Include null-ptr.h.
16985         (null_ptr): Remove function.
16986         * tests/test-canonicalize-lgpl.c: Likewise.
16987         * tests/test-memmem.c: Likewise.
16988         * tests/test-ptsname_r.c: Likewise.
16989         * modules/canonicalize-tests (Files): Add tests/null-ptr.h.
16990         * modules/canonicalize-lgpl-tests: Likewise.
16991         * modules/memmem-tests: Likewise.
16992         * modules/ptsname_r-tests: Likewise.
16993         Reported by Jim Meyering.
16995 2017-03-03  Bruno Haible  <bruno@clisp.org>
16997         doc: Mention Mac OS X deficiencies regarding semaphores.
16998         * doc/posix-functions/sem_init.texi: Mention status on Mac OS X.
16999         * doc/posix-functions/sem_destroy.texi: Likewise.
17000         * doc/posix-functions/sem_getvalue.texi: Likewise.
17002 2017-03-03  Bruno Haible  <bruno@clisp.org>
17004         lock tests: Fix test failure on Mac OS X (regression from 2017-01-05).
17005         Reported by Assaf Gordon <assafgordon@gmail.com> via
17006         Pádraig Brady <P@draigBrady.com>.
17007         * tests/test-lock.c: On Mac OS X, use named semaphores, not unnamed
17008         semaphores.
17009         (USE_NAMED_SEMAPHORE, USE_UNNAMED_SEMAPHORE): New macros.
17010         (atomic_int_semaphore): New macro.
17012 2017-02-28  Bruno Haible  <bruno@clisp.org>
17014         perror tests: Tweak for z/OS.
17015         Reported by Daniel Richard G. <skunk@iskunk.org>.
17016         * tests/test-perror.sh: Don't fail z/OS style perror output.
17018 2017-02-26  Bruno Haible  <bruno@clisp.org>
17020         nproc: Refactor large function.
17021         * lib/nproc.c (num_processors_ignoring_omp): New function, extracted
17022         from num_processors.
17023         (num_processors): In this function, only deal with OMP.
17025 2017-02-26  Pádraig Brady  <P@draigBrady.com>
17027         nproc: adjust handling of OpenMP environment variables
17028         to match the return value from omp_get_num_threads(), i.e.:
17029          - honor OMP_THREAD_LIMIT without OMP_NUM_THREADS
17030          - Treat 0 as an invalid value and ignore
17031         Also remove the call to omp_get_num_threads() because
17032         it's ineffective without the omp pragmas in place.
17033         * lib/nproc.c (parse_omp_threads): Return 0 if specified,
17034         so that it can be ignored.
17035         (num_processors): Honor OMP_THREAD_LIMIT even without
17036         OMP_NUM_THREADS being set.  Also fix a typo in the environment
17037         variable being checked, from the previous recent commit.
17039 2017-02-26  Pádraig Brady  <P@draigBrady.com>
17041         nproc: support nested OMP_NUM_THREADS, and OMP_THREAD_LIMIT
17042         * lib/nproc.c (parse_omp_threads): A new function refactored
17043         from num_processors() to support parsing both of the
17044         above environment variables.
17045         (num_processors): Prefer using omp_get_num_threads() with [_OPENMP]
17046         to accurately reflect the current OpenMP nesting level.
17047         Also support the OMP_THREAD_LIMIT environment variable
17048         to limit the max value determined from OMP_NUM_THREADS.
17049         * modules/nproc: Depend on minmax header.
17050         Suggested by Oliver Heimlich.
17052 2017-02-25  Bruno Haible  <bruno@clisp.org>
17054         maintainer-makefile: Fix AC_PROG_SED with autoconf cache.
17055         * m4/gnulib-common.m4 (AC_PROG_SED): Fix AC_CACHE_CHECK invocation.
17057 2017-02-24  Paul Eggert  <eggert@cs.ucla.edu>
17059         ftoastr: port to -Wdouble-promotion
17060         Work around -Wdouble-promotion false alarm in recent GCCs.
17061         * lib/ftoastr.c (PROMOTED_FLOAT): New macro.
17062         (ftoastr_snprintf, FTOASTR): Use it.
17064 2017-02-21  Bruno Haible  <bruno@clisp.org>
17066         lock tests: Fix build failure on GNU/Hurd (regression from 2017-01-05).
17067         Reported by Rene Saavedra <rennes@openmailbox.org> in
17068         https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25821 via Paul Eggert.
17069         * lib/glthread/lock.h: On glibc systems without
17070         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP, use the fallback
17071         implementation of rwlocks.
17072         * lib/glthread/lock.c: Likewise.
17074 2017-02-20  Bruno Haible  <bruno@clisp.org>
17076         lock tests: Fix build failure on z/OS.
17077         Reported by Daniel Richard G. <skunk@iskunk.org>.
17078         * modules/lock-tests (configure.ac): Test for <semaphore.h>.
17079         * tests/test-lock.c (USE_SEMAPHORE): Don't set if <semaphore.h> does not
17080         exist.
17082 2017-02-19  Bruno Haible  <bruno@clisp.org>
17084         havelib: Prefer the search path of /usr/bin/gcc over the one of $CC.
17085         This helps when CC=clang.
17086         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Prefer the search path
17087         of /usr/bin/gcc.
17089         havelib: Support overriding the result of AC_LIB_PREPARE_MULTILIB.
17090         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use AC_CACHE_CHECK.
17092 2017-02-19  Bruno Haible  <bruno@clisp.org>
17094         gnulib-tool: Avoid conflict of havelib-tests with --single-configure.
17095         * gnulib_tool (func_create_testdir): Avoid havelib-tests when
17096         --with-tests --single-configure is specified.
17098 2017-02-16  Tim Rühsen  <tim.ruehsen@gmx.de>
17100         users.txt: Update links, use HTTPS where possible
17101         * users.txt: Updated to HTTPS where possible,
17102         fixed some links to new locations.
17104 2017-02-16  Bruno Haible  <bruno@clisp.org>
17106         xbinary-io: Fix inlining.
17107         * lib/xbinary-io.c: Set XBINARY_IO_INLINE, not XSETMODE_INLINE.
17109 2017-02-16  Paul Eggert  <eggert@cs.ucla.edu>
17111         xbinary-io: rename from xsetmode
17112         This patch is taken from suggestions by Bruno Haible in:
17113         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00060.html
17114         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00061.html
17115         * lib/binary-io.c (__gl_setmode_check): Set errno to EINVAL,
17116         not ENOTTY, when it is an inappropriate device.
17117         * lib/binary-io.h (SET_BINARY): Resurrect.
17118         * lib/xbinary-io.c: Rename from lib/xsetmode.c.
17119         (xset_binary_mode_error): Rename from xsetmode_error.
17120         * lib/xbinary-io.h: Rename from lib/xsetmode.h.
17121         (xset_binary_mode): Rename from xsetmode.
17122         All uses changed.
17123         * modules/xbinary-io: Rename from modules/xsetmode.
17124         Update file names.
17125         * tests/test-binary-io.sh (tmpfiles): Remove no-longer-used file name.
17126         * NEWS: Update to match revised behavior.
17128 2017-02-15  Paul Eggert  <eggert@cs.ucla.edu>
17130         tests: Adjust to recent SET_BINARY change
17131         * tests/test-binary-io.c (main):
17132         * tests/test-binary-io.sh: Remove test for SET_BINARY.
17133         * tests/test-closein.c, tests/test-fflush2.c, tests/test-ftell.c:
17134         * tests/test-ftello.c, tests/test-nonblocking-pipe-child.c:
17135         * tests/test-yesno.c: Use set_binary_mode, not SET_BINARY.
17137         xsetmode: new module
17138         This is to fix a problem noted by Eric Blake.
17139         Code was using xfreopen to change files to binary mode, but this
17140         fails for stdout when in append mode.  Such code should use
17141         xsetmode instead.
17142         * NEWS: Document incompatible changes to binary-io module.
17143         * lib/binary-io.c (__gl_setmode_check) [__DJGPP__ || __EMX__]:
17144         New function.
17145         * lib/binary-io.h (__gl_setmode): Rename from set_binary_mode.
17146         (set_binary_mode): New function, which also checks for tty.
17147         * lib/xsetmode.c, lib/xsetmode.h, modules/xsetmode: New files.
17149 2017-02-14  Paul Eggert  <eggert@cs.ucla.edu>
17151         headers: fix begin-end typos
17152         * lib/mbfile.h, lib/se-selinux.in.h: Fix typos by replacing
17153         _GL_INLINE_HEADER_BEGIN with _GL_INLINE_HEADER_END.
17155         selinux-h: port to PGI 16.10
17156         * lib/se-selinux.in.h: Don't assume that include_next skips over
17157         duplicate -I DIR options.
17159         argp: port to PGI 16.10
17160         * lib/argp-pin.c (dummy): Declare as needed to make file nonempty.
17162 2017-02-13  Darshit Shah  <darnir@gnu.org>
17164         unicase: Update function protoype to match definition.
17165         * lib/unicase/special-casing.h (gl_unicase_special_lookup): Gperf 3.1
17166         uses 'size_t' as the datatype for the 'len' parameter in the functions
17167         it generates. Update the prototype specified here to match the newly
17168         generated function.
17170 2017-02-12  Bruno Haible  <bruno@clisp.org>
17172         times test: Avoid gcc warnings on Linux/x32.
17173         * tests/test-times.c (main): Really cast printf arguments from clock_t
17174         to 'long int'.
17176 2017-02-12  Paul Eggert  <eggert@cs.ucla.edu>
17178         glob: port better to emscripten
17179         Problem reported by Bruno Haible in:
17180         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00031.html
17181         * lib/glob.c (glob): Don't assume HAVE_GETPWNAM_R || _LIBC.
17183 2017-02-11  Bruno Haible  <bruno@clisp.org>
17185         host-cpu-c-abi: Support for 64-bit AIX, 32-bit armhf on arm64, hppa64.
17186         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Define also HOST_CPU.
17187         For the x32 ABI on x86_64, set HOST_CPU_C_ABI to 'x86_64-x32' and define
17188         both __x86_64__ and __x86_64_x32__. For the ELFv2 ABI on powerpc64,
17189         define both __powerpc64__ and __powerpc64_elfv2__. Recognize 64-bit
17190         compilation on AIX. Recognize 32-bit compilation on arm64/Linux.
17191         Distinguish hppa64 from hppa.
17193 2017-02-10  Bruno Haible  <bruno@clisp.org>
17195         search: Don't assume that tsearch() exists if 'VISIT' is defined.
17196         * m4/search_h.m4 (gl_SEARCH_H): Determine HAVE_TYPE_VISIT.
17197         * modules/search (Makefile.am): Substitute HAVE_TYPE_VISIT.
17198         * lib/search.in.h (VISIT): Define if HAVE_TYPE_VISIT is 0.
17200 2017-02-09  Bruno Haible  <bruno@clisp.org>
17202         doc: Don't mention obsolete AC_LIBTOOL_WIN32_DLL macro.
17203         * doc/gnulib.texi (Libtool and Windows): Recommend
17204         LT_INIT([win32-dll]) instead of AC_LIBTOOL_WIN32_DLL.
17205         Reported by Reuben Thomas <rrt@sc3d.org>.
17207 2017-02-08  Paul Eggert  <eggert@cs.ucla.edu>
17209         stddef-tests: port to SIZE_MAX <= INT_MAX
17210         * tests/test-stddef.c: Include <limits.h>, for INT_MAX.
17211         Do not assume that INT_MAX < SIZE_MAX.
17213 2017-02-01  Bruno Haible  <bruno@clisp.org>
17215         lock tests: Fix link error.
17216         * modules/lock-tests (test_rwlock1_LDADD): Add @YIELD_LIB@.
17217         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17219 2017-01-31  Bruno Haible  <bruno@clisp.org>
17221         lock: Fix link error (regression from 2017-01-05).
17222         * lib/glthread/lock.h [USE_POSIX_THREADS_WEAK]: Declare also
17223         pthread_rwlockattr_init, pthread_rwlockattr_setkind_np,
17224         pthread_rwlockattr_destroy weak.
17225         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17227 2017-01-30  Paul Eggert  <eggert@cs.ucla.edu>
17229         Port to PGI 16.10 x86-64
17230         This patch fixes one real bug in gl_anylinked_list2.h, along with
17231         some minor glitches that are not bugs.  It does not silence PGI’s
17232         thousands of bogus warnings when compiling test-intprops.c.
17233         Fortunately, the warnings do not cause a failure.
17234         * lib/c-ctype.h (_C_CTYPE_LOWER_A_THRU_F_N, _C_CTYPE_LOWER_N):
17235         Rename parameter to avoid PGI warning about ‘#define f(n) 'n'’.
17236         My goodness, PGI goes back a long ways - this predates C89!
17237         * lib/gl_anylinked_list2.h (ASYNCSAFE): Fix bug caught by PGI.
17238         For example, ASYNCSAFE (const void *) should expand to
17239         ‘const void *volatile’, not to ‘volatile const void *’.
17240         * lib/spawn.in.h (POSIX_SPAWN_USEVFORK): Don't define if already defined.
17241         * lib/verify.h (verify) [!__GNUC__]:
17242         Use shorter albeit meaningless string to bypass silly compiler limits.
17243         * tests/infinity.h (Infinityf, Infinityd, Infinityl) [__PGI]:
17244         * tests/nan.h (NaNf, NaNd, NaNl):
17245         Use static functions to avoid misguided compiler diagnostics.
17246         Is there some reason we don’t use static functions on all platforms?
17248 2017-01-20  Paul Eggert  <eggert@cs.ucla.edu>
17250         parse-datetime: handle timezones reentrantly
17251         This API change was prompted by a report by Pádraig Brady in:
17252         https://bug.debian.org/851934#10
17253         To help fix the bug, make parse_datetime2 more reentrant.
17254         * NEWS: Document this incompatible change.
17255         * lib/parse-datetime.h, lib/parse-datetime.y (parse_datetime2):
17256         Add two arguments, the timezone and the timezone name.
17257         All callers changed.  If TZ="..." is specified, use it for
17258         calculating defaults.
17259         * lib/parse-datetime.y: Don't include xalloc.h or use xmalloc, as
17260         this code should be usable in a library.
17261         (mktime_ok, get_effective_timezone):
17262         Accept timezone arg too.  All callers changed.
17263         (get_tz): Remove.
17264         (get_effective_timezone): Check for failures.
17266 2017-01-20  Eric Blake  <eblake@redhat.com>
17268         localename: port to cygwin 2.6
17269         * lib/localename.c (gl_locale_name_thread_unsafe): Add clause for
17270         Cygwin.
17271         * modules/localename (Depends-on): Add extensions, since
17272         NL_LOCALE_NAME() is not visible without it.
17274 2017-01-17  Pádraig Brady  <P@draigBrady.com>
17276         parse-datetime: fix dependence on AC_PROG_SED
17277         * modules/parse-datetime: Use `sed` directly like all other modules.
17278         Reported by J William Piggott
17280 2017-01-16  Paul Eggert  <eggert@cs.ucla.edu>
17282         intprops: update doc URLs
17283         * doc/intprops.texi (Integer Range Overflow): Update URLs.
17285 2017-01-16  Bruno Haible  <bruno@clisp.org>
17287         host-cpu-c-abi: Add support for armhf, arm64, x32, s390x.
17288         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Require gl_C_ASM. On x86_64
17289         systems, distinguish x86_64 and x32. On arm systems, distinguish arm,
17290         armhf, arm64, and no longer distinguish arm and armel. On s390x systems,
17291         distinguish s390 and s390x.
17292         * modules/host-cpu-c-abi (Files): Add m4/asm-underscore.m4.
17293         * NEWS: Mention the change regarding 'armel'.
17295 2017-01-15  Paul Eggert  <eggert@cs.ucla.edu>
17297         localeinfo: case_folded_counterparts and WEOF
17298         * NEWS: Document this.
17299         * lib/localeinfo.c (case_folded_counterparts):
17300         First arg is now wint_t, not wchar_t.  This generalizes the
17301         function to also work on WEOF, where it returns 0.
17303         dfa: port to gcc -fsanitize=undefined
17304         * lib/dfa.c (copy): Don’t pass NULL with size 0 to memcpy,
17305         as this runs afoul of gcc -fsanitize=undefined.
17307 2017-01-14  Paul Eggert  <eggert@cs.ucla.edu>
17309         strftime: %z is -00 if unknown
17310         * lib/strftime.c (DO_TZ_OFFSET): Omit arg 'negative'; it's now
17311         the caller's responsibility to set 'negative_number'.  All uses changed.
17312         (__strftime_internal): Put '-' before a zero UTC offset if the time
17313         zone abbreviation starts with "-", which is the recently-introduced
17314         tzdb convention for an unknown UTC offset that is arbitrarily set to 0.
17315         * tests/test-strftime.c: Test for this.
17317 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
17319         dfa: port to older GCC
17320         Problem reported by Assaf Gordon in:
17321         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00103.html
17322         * modules/c99: New module.  This merely attempts to use the latest
17323         C version, which should be enough to solve this particular problem.
17324         The idea is to document which Gnulib modules assume C99 or later.
17325         * modules/dfa (Depends-on): Add it.
17327 2017-01-10  Bruno Haible  <bruno@clisp.org>
17329         Update DEPENDENCIES.
17330         * DEPENDENCIES: List only https URLs. Update recommended version for
17331         autoconf, automake, gperf.
17333 2017-01-10  Jim Meyering  <meyering@fb.com>
17335         maint.mk: enforce spelling of "timestamp" (i.e., no space)
17336         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
17337         disallow /\btime\s+stamps?\b/.  Prefer "timestamp".
17339 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
17341         dfa: minor simplification with emptyset
17342         * lib/dfa.c (build_state): Simplify by using emptyset.
17344 2017-01-09  Paul Eggert  <eggert@cs.ucla.edu>
17346         dfa: shrink constraints from 4 bits to 3
17347         * lib/dfa.c (newline_constraint, letter_constraint)
17348         (other_constraint, prev_newline_dependent)
17349         (prev_letter_dependent, NO_CONSTRAINT, BEGLINE_CONSTRAINT)
17350         (ENDLINE_CONSTRAINT, BEGWORD_CONSTRAINT, ENDWORD_CONSTRAINT)
17351         (LIMWORD_CONSTRAINT, NOTLIMWORD_CONSTRAINT):
17352         Constraints need only 3 bits, not 4.  Using smaller integers
17353         shrinks the code a bit and makes grep a tad faster on x86-64.
17355         dfa: omit unnecessary ptrdiff_t check
17356         * lib/dfa.c (alloc_position_set): Do not worry about ptrdiff_t
17357         overflow, since xnmalloc does that now.
17359         dfa: omit unnecessary allocation
17360         * lib/dfa.c (dfaanalyze): Do not allocate follow set, since
17361         an all-zero follow set works just fine.
17363         dfa: omit unused local
17364         * lib/dfa.c (build_state): Fix up recent change.
17366         maint: remove stray .texi files
17367         Although these were superseded by other files like
17368         doc/posix-functions/ctime.texi, the old files were not removed.
17369         * doc/ctime.texi, doc/inet_ntoa.texi: Remove.
17371 2017-01-08  Paul Eggert  <eggert@cs.ucla.edu>
17373         getprogname: fix port to IRIX
17374         * lib/getprogname.c (getprogname) [__sgi]:
17375         Don't dump core if malloc returns NULL.
17377         dfa: fix reallocation bug when matching newlines
17378         Problem reported for sed by S. Gilles (Bug#25390).
17379         * lib/dfa.c (realloc_trans_if_necessary): Move earlier.
17380         (dfastate): Reallocate before moving any newline transition ...
17381         (build_state): ... instead of reallocating here, where it is too late.
17383 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
17385         Avoid -Wundef warning about undefined WINDOWS_SOCKETS.
17386         * lib/sockets.h: Test if WINDOWS_SOCKETS is defined.
17388 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
17390         Avoid -Wundef warning about undefined __USE_FILE_OFFSET64.
17391         * lib/glob-libc.h: Test if __USE_FILE_OFFSET64 is defined.
17393 2017-01-07  Bruno Haible  <bruno@clisp.org>
17395         stdioext: Port to Minix 3.2 and newer.
17396         * lib/stdio-impl.h: Treat __minix like the newest NetBSD.
17397         * lib/fseeko.c (fseeko): Likewise.
17398         Reported by Nelson Beebe via Paul Eggert.
17400 2017-01-06  Paul Eggert  <eggert@cs.ucla.edu>
17402         getprogname: port to IRIX
17403         * lib/getprogname.c (getprogname): Port to IRIX.
17404         Based on an idea by Bastien Roucariès at:
17405         http://lists.gnu.org/r/bug-gnulib/2010-12/msg00096.html
17406         via code from Bruno Haible at:
17407         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
17409         localename-tests: port to NetBSD 7
17410         Problem reported by Nelson H. F. Beebe.
17411         * tests/test-localename.c:
17412         Test newlocale and uselocale only if both exist.
17414         glob, intprops, xalloc: work around Clang bug
17415         Work around LLVM bug 16404, which is still not fixed.
17416         https://llvm.org/bugs/show_bug.cgi?id=16404
17417         Problem reported by Nelson H. F. Beebe.
17418         * lib/glob.c, lib/intprops.h, lib/xalloc-oversized.h (__has_builtin):
17419         Remove.
17420         * lib/glob.c (size_add_wrapv):
17421         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW, _GL_HAS_BUILTIN_OVERFLOW_P):
17422         * lib/xalloc-oversized.h (xalloc_oversized):
17423         Do not use overflow builtins if Clang.
17425         dfa: fix 'return' typo
17426         Problem reported by Nelson H. F. Beebe.
17427         * lib/dfa.c (merge): Fix typo that Sun compilers rejected.
17429 2017-01-05  Pádraig Brady  <P@draigBrady.com>
17431         parse-datetime: fix generated paths for coverage files
17432         * modules/parse-datetime: Adjust the paths for parse-datetime.y
17433         within parse-datetime.c, so that gcc generates appropriate .gcno
17434         files, allowing lcov to proceed without error.  Previously it
17435         would error trying to find "lib/lib/parse-datetime.y".
17437 2017-01-05  Pádraig Brady  <P@draigBrady.com>
17439         maint.mk: support parallel execution of coverage
17440         * top/maint.mk (coverage): Run dependencies serially,
17441         thus supporting parallel processing of each one,
17442         particularly build-coverage, which builds and runs tests.
17444 2017-01-05  Bruno Haible  <bruno@clisp.org>
17446         lock tests: Prefer semaphore over mutex.
17447         * tests/test-lock.c (USE_SEMAPHORE): New constant.
17448         (struct atomic_int, init_atomic_int, get_atomic_int_value,
17449         set_atomic_int_value) [USE_SEMAPHORE]: Define using a POSIX semaphore.
17450         Suggested by Torvald Riegel <triegel@redhat.com>.
17452 2017-01-05  Bruno Haible  <bruno@clisp.org>
17454         lock: Provide guarantee to avoid writer starvation for rwlocks.
17455         The rationale is: 1) Read-preferring read-write locks are prone to
17456         writer starvation if the number of reader threads multiplied by the
17457         percentage of time they have the lock held is too high. 2) Write-
17458         preferring read-write locks are the only reliable way to avoid this.
17459         3) There have been reports of 'test-lock' hanging on glibc systems
17460         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00009.html,
17461         and glibc indeed implements read-preferring rwlocks by default, see
17462         http://man7.org/linux/man-pages/man3/pthread_rwlockattr_setkind_np.3.html
17463         and https://sourceware.org/bugzilla/show_bug.cgi?id=13701 .
17464         * m4/pthread_rwlock_rdlock.m4: New file.
17465         * m4/lock.m4 (gl_LOCK): Invoke gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
17466         * lib/glthread/lock.h [USE_POSIX_THREADS]: Test
17467         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
17468         of rwlock initialization on glibc systems without
17469         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
17470         of rwlocks altogether on non-glibc systems without
17471         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
17472         [USE_PTH_THREADS]: Use a different implementation of rwlocks altogether.
17473         * lib/glthread/lock.c [USE_POSIX_THREADS]
17474         (glthread_rwlock_init_for_glibc): New function.
17475         [USE_POSIX_THREADS] (glthread_rwlock_rdlock_multithreaded): Update
17476         comment.
17477         [USE_PTH_THREADS]: New implementation of rwlocks.
17478         [USE_WINDOWS_THREADS] (glthread_rwlock_rdlock_func): Prefer writers over
17479         readers.
17480         * modules/lock (Files): Add m4/pthread_rwlock_rdlock.m4.
17481         (Depends-on): Add 'extensions'.
17482         * tests/test-rwlock1.c: New file.
17483         * lock-tests (Files): Add it.
17484         (Depends-on): Add usleep.
17485         (Makefile.am): Add test-rwlock1 to the tests.
17487 2017-01-05  Bruno Haible  <bruno@clisp.org>
17489         thread: Fix pth port.
17490         * lib/glthread/thread.h (pth_init): Declare weak.
17491         (glthread_create, glthread_sigmask, glthread_join, gl_thread_self,
17492         gl_thread_exit): Make sure Pth is initialized before invoking any Pth
17493         function.
17495 2017-01-04  Assaf Gordon  <assafgordon@gmail.com>
17497         parse-datetime: fix debug message on lone year number
17498         Input dates such as
17499           date -d "Apr 11 22:59:00 2011"
17500         are parsed as date (Apr 11, with default year 2016), then time, then a
17501         number (2011). Based on the combination of previously seen tokens,
17502         'digits_to_date_time' determines 2011 to be a year value.
17503         This fixes the debug messages to correctly show the updated year.
17504         Before:
17505             $ date --debug -d 'Apr 11 22:59:00 2011'
17506             date: parsed date part: (Y-M-D) 2016-04-11
17507             date: parsed time part: 22:59:00
17508             date: parsed number part: today/this/now
17509         After:
17510             $ ./src/date --debug -d 'Apr 11 22:59:00 2011'
17511             date: parsed date part: (Y-M-D) 2016-04-11
17512             date: parsed time part: 22:59:00
17513             date: parsed number part: year: 2011
17514         * lib/parse-datetime.y (struct parser_control): Add 'year_seen',
17515         'debug_year_seen' member fields.
17516         (digits_to_date_time): Update 'year_seen' as needed.
17517         (debug_print_current_time): Inform about year updates.
17518         (parse_datetime2): Initialize year_seen,debug_year_seen member fields.
17520         parse-datetime: fix local timezone debug messages
17521         "Local timezones" are strings that affect only DST relative to the
17522         default timezone. The debug messages in parse-datetime.y printed
17523         wrong information when encountering local timezones.
17524         Examples:
17525         Here EET/EEST are time zones ('zone' token, with values +02:00/+03:00):
17526              TZ=Asia/Tokyo ./src/date --debug -d '2011-12-11 EET'
17527              TZ=Asia/Tokyo ./src/date --debug -d '2011-06-11 EEST'
17528         When the default timezone relates to the zone strings, EET/EEST are
17529         parsed as local timezones (tLOCAL_ZONE), and only change the DST
17530         value (0/1, respectively):
17531              TZ=Europe/Helsinki ./src/date --debug -d '2011-12-11 EET'
17532              TZ=Europe/Helsinki ./src/date --debug -d '2011-06-11 EEST'
17533         * lib/parse-datetime.y (debug_print_current_time): If local timezone
17534         was seen, inform about DST change, don't print actual timezone.
17535         (debug_strfdatetime): If local timezone was seen, use default timezone
17536         (and adjust as needed) instead of using incorrect timezone.
17537         (parse_datetime2): Use correct time-zone source string, and adjust
17538         default timezone as needed.
17540         parse-datetime: add debug warning about DST changes
17541         Incorrect date arithmetic due to daylight saving time (DST) are a
17542         common (false) bug report in coreutils.
17543         Detect two such cases and print a warning:
17544         1. year/month/day adjustments (performed on 'struct tm'),
17545            where 'mktime' returns a different isdst value.
17546         2. hour/minute/seconds/ns adjustments (performed on 'time_t'),
17547            where the result of 'localtime(3)' on the value will return a
17548            different isdst value.
17549         Note: DST changes could be harmless or unnoticeable.
17550         Examples (with 'TZ=America/New_York'):
17551         Unnoticeable: result is 2016-Dec-14
17552            $ date -d '2016-06-15 EDT + 6 months' +%b
17553            Dec
17554         Unnoticeable: result is 2016-Dec-15 11:00:00
17555            $ date -d '2016-06-15 12:00:00 EDT + 6 months' +%F
17556            2016-12-15
17557         This is unexpected:
17558            $ date -d '2016-06-01 EDT + 6 months' +%F
17559            2016-11-30
17560         The new debug warnings will show:
17561            $ ./src/date --debug -d '2016-06-01 EDT + 6 months' +%F
17562            ...
17563            date: warning: daylight saving time changed after date adjustment
17564            ...
17565         * lib/parse-datetime.y (parse_datetime2): Detect DST changes, and
17566         print an appropriate warning message.
17568         parse-datetime: add debug warning about date arithmetic
17569         Date arithmetic are done directly on the fields of 'struct tm',
17570         which can result in invalid dates. Normalization with 'mktime(3)'
17571         will then produce a different date - which might cause unexpected
17572         results.
17573         Examples:
17574           '2016-10-31 - 1 month' => 2016-09-31 normalized to 2016-10-01.
17575           '2016-02-29 + 1 year'  => 2017-02-29 normalized to 2017-03-01.
17576         Note that date normalization is not inherently wrong and not rejected,
17577         as it has legitimate uses:
17578           '2016-12-29 + 5 days' => 2016-12-34 noramlized to 2017-01-03.
17579         If the user asked to adjust months but 'mday' changed,
17580         or user asked to adjust years but 'month' changed - warn about it.
17581             $ ./src/date --debug -d '2016-10-31 - 1 month'
17582             ...
17583             date: warning: when adding relative months/years, \
17584                            it is recommended to specify the 15th of the month
17585             ...
17586             date: warning: month/year adjustment resulted in shifted dates:
17587             date:      adjusted Y M D: 2016 09 31
17588             date:    normalized Y M D: 2010 10 01
17589             ...
17590         * lib/parse-datetime.y (parse_datetime2): Detect such cases and print
17591         a warning message. Improve recommendation of when to use 15 of the
17592         month or noon for date arithmetic.
17594         parse-datetime: fix debug message of relative part after timezone
17595         Relative part (e.g '+8 days') after a timezone string was not
17596         reported (was only reported after a timezone number). Due to the
17597         parser's structure, timezone strings with numbers were handled
17598         separately.
17599         before:
17600              # Timezone number + relative part: OK
17601              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 +00:00 -8 days'
17602              ...
17603              date: parsed relative part: -8 day(s)
17604              # Timezone string + relative part: missing
17605              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 UTC -8 days'
17606              [ missing message ]
17607         After: messages are printed in both cases.
17608         * lib/parse-datetime.y ('zone' token): Call debug_print_relative_time.
17610         parse-datetime: fix incorrect debug message on lone number
17611         A lone number is an absolute value, not a relative time part.
17612         before:
17613            $ date --debug -d '20130101'
17614            date: parsed number part: today/this/now
17615         After:
17616            $ ./src/date --debug -d '20130101'
17617            date: parsed number part: (Y-M-D) 2013-01-01
17618         * lib/parse-datetime.y ('item'/'number' tokens): Call
17619         'debug_print_current_time' instead of 'debug_print_relative_time'.
17621 2017-01-02  Paul Eggert  <eggert@cs.ucla.edu>
17623         doc: modernize for C11 etc.
17624         * doc/gnulib-readme.texi (Portability guidelines): Modernize a bit
17625         for C11, MinGW, etc.  This responds to Paul Smith's question in:
17626         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00014.html
17628         dfa: prefer functions to FETCH_WC macro
17629         * lib/dfa.c (FETCH_WC): Remove, replacing with ...
17630         (fetch_wc, bracket_fetch_wc): ... new functions.  These store the
17631         wint_t result into DFA->lex.wctok instead of to a separate arg.
17632         All callers changed.  Move more local decls closer to where
17633         they're used.
17635         dfa: narrow more local var scopes
17636         * lib/dfa.c: Move more local decls to be more local.
17638         dfa: remove duplicate assignment
17639         Problem reported by Bruno Haible in:
17640         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00007.html
17641         * lib/dfa.c (parse_bracket_exp): Simplify.
17643 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
17645         dfa: simplify constraint-dependency checking
17646         * lib/dfa.c (prev_newline_constraint, prev_letter_constraint)
17647         (prev_other_constraint): Remove.
17648         (prev_newline_dependent, prev_letter_dependent):
17649         Simplify, to avoid an unnecessary bitwise AND operation.
17651         dfa: prefer functions and constants to macros
17652         * lib/dfa.c: Prefer constants to macros where either will do.
17653         (streq, isasciidigit, newline_constraint)
17654         (letter_constraint, other_constraint, succeeds_in_context)
17655         (prev_newline_constraint, prev_letter_constraint)
17656         (prev_other_constraint, prev_newline_dependent)
17657         (prev_letter_dependent, accepting, accepts_in_context):
17658         Now static functions instead of function-like macros.
17659         Use lower-case names accordingly.  All uses changed.
17661         dfa: narrow more local var scopes
17662         * lib/dfa.c: Move some more local decls down to nearer where
17663         they're needed.
17665 2016-12-31  Jim Meyering  <meyering@fb.com>
17667         dfa: narrow the scope of many local variables
17668         * lib/dfa.c: Now that we are no longer constrained to c89, move
17669         declarations of many variables (often indices) "down" into the
17670         scope(s) where used or to the point of definition.  This is a
17671         no-semantic-change diff.
17673 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
17675         version-etc: new year
17676         * build-aux/gendocs.sh (version):
17677         * doc/gendocs_template:
17678         * doc/gendocs_template_min:
17679         * doc/gnulib.texi:
17680         * lib/version-etc.c (COPYRIGHT_YEAR):
17681         Update copyright dates by hand in templates and the like.
17682         * all files: Run 'make update-copyright'.
17684 2016-12-31  Eric Blake  <eblake@redhat.com>
17686         do-release-commit-and-tag: avoid shell syntax error
17687         * build-aux/do-release-commit-and-tag (curr_br): $branch can
17688         contain spaces when rebasing.
17690         maint.mk: hoist gnulib_dir definition earlier
17691         * top/maint.mk (gnulib_dir): Move near top of file.
17693 2016-12-31  Jim Meyering  <meyering@fb.com>
17695         maint.mk: do not always evaluate intprops-related shell
17696         * top/maint.mk (_intprops_names): Change := to just "=" to avoid
17697         using gnulib_dir undefined (gnulib_dir is defined later in the
17698         file, which will be fixed separately), and besides, there is no
17699         need to incur the cost of this shell invocation for every single
17700         use of this .mk file.  Reported by Eric Blake in
17701         https://lists.gnu.org/r/bug-gnulib/2016-12/msg00137.html
17703 2016-12-30  Jim Meyering  <meyering@fb.com>
17705         maint.mk: improve sc_prohibit_intprops_without_use
17706         * top/maint.mk (_intprops_names): Don't hard-code the list of
17707         symbol names.  Instead, derive it on the fly.
17709 2016-12-30  Paul Eggert  <eggert@cs.ucla.edu>
17711         dfa: shorten sbit, success
17712         * lib/dfa.c (struct regex_syntax.sbit):
17713         (struct dfa.success): Use char, not int, for array elements, since
17714         they are all in the range 0..7.
17716         dfa: simplify multibyte_prop etc.
17717         This follows up on a change made when dfa.c was in grep, namely grep
17718         commit c797046c7c13c2647182b919a79a4c5b4ecf82b1
17719         dated 2015-08-12 07:35:03 -0700, which removed unused multibyte support.
17720         That earlier simplification allows for some more simplification
17721         and trimming down here.
17722         * lib/dfa.c (struct mb_char_classes): New member nchars_alloc.
17723         (struct lexer_state): New mamber brack.
17724         (struct dfa, addtok_mb): multibyte_prop elements are now char, not int,
17725         since they must be in the range 0..3 now.
17726         Remove members mbcsets, nmbcsets, mbcsets_alloc, since
17727         the brack member now supersedes them.
17728         (parse_bracket_exp): Update dfa->lex.brack instead of dfa->mbcsets.
17729         (addtok): Use dfa->lex.brack instead of dfa->mbcsets.
17730         (dfaparse): Remove unnecessary initializations of already-0 storage.
17731         (free_mbdata): Free d->lex.brack.chars instead of d->mbcsets.
17732         (dfassbuild): No need to clear sup->mbcsets.
17734         dfa: minor performance tweak
17735         * lib/dfa.c (setbit_wc): Test < 0, not == EOF.
17737         dfa: wrap charclass inside a struct
17738         On my platform (gcc Ubuntu 5.4.0-6ubuntu1~16.04.4 x86-64,
17739         en_US.utf8 locale) this makes 'grep -Fi -f list.txt list.txt >out'
17740         about 5% faster, where list.txt is generated by 'aspell dump
17741         master | head -n 100000 >list.txt'.  See Bug#22239.
17742         * lib/dfa.c (charclass): Wrap inside a struct.  All uses changed.
17743         (CHARCLASS_INIT, tstbit, setbit, clrbit, zeroset, fillset, notset)
17744         (equal, emptyset, charclass_index, setbit_wc, setbit_case_fold_c):
17745         Adjust to this, e.g., by using charclass * rather than charclass.
17746         All callers changed as needed.
17747         (copyset): Remove.  All uses changed to simple assignment.
17748         (parse_bracket_exp): Use zeroset instead of memset.
17750 2016-12-30  Jim Meyering  <meyering@fb.com>
17752         maint.mk: update list of intprops.h symbol names
17753         * top/maint.mk (_intprops_names): Regenerate the list of symbol names.
17754         This avoids a false failure of the sc_prohibit_intprops_without_use
17755         rule in grep.
17757 2016-12-29  Eric Blake  <eblake@redhat.com>
17759         getopt: fix parallel test failure
17760         * tests/test-getopt-posix.c (TEST_GETOPT_TMP_NAME): Set name.
17761         * tests/test-getopt-gnu.c (TEST_GETOPT_TMP_NAME): Likewise.
17762         * tests/test-getopt-main.h (main): Use different file names
17763         in case test-getopt-gnu and test-getopt-posix run in parallel.
17765 2016-12-29  Paul Eggert  <eggert@cs.ucla.edu>
17767         xalloc: x2nrealloc check for ptrdiff_t overflow
17768         * lib/xalloc.h (x2nrealloc): Check for ptrdiff_t overflow, too.
17769         * modules/xalloc, modules/xvasprintf (Depends-on): Add stdint.
17771 2016-12-24  Bruno Haible  <bruno@clisp.org>
17773         lock test: Fix performance problem on multi-core machines.
17774         * tests/test-lock.c (USE_VOLATILE): New macro.
17775         (struct atomic_int): New type.
17776         (init_atomic_int, get_atomic_int_value, set_atomic_int_value): New
17777         functions.
17778         (lock_checker_done, rwlock_checker_done, reclock_checker_done): Define
17779         as 'struct atomic_int'.
17780         (lock_checker_thread, test_lock, rwlock_checker_thread, test_rwlock,
17781         reclock_checker_thread, test_recursive_lock): Use the new functions.
17782         Reported by Eric Blake in
17783         https://www.redhat.com/archives/libvir-list/2012-March/msg00854.html
17784         and by Pádraig Brady in
17785         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00117.html.
17787 2016-12-19  Bruno Haible  <bruno@clisp.org>
17789         vma-iter: Fix endless loop on 64-bit Windows.
17790         * lib/vma-iter.c (vma_iterate): On Windows, use 'uintptr_t' instead of
17791         'unsigned long'.
17793 2016-12-19  Bruno Haible  <bruno@clisp.org>
17795         stdint: Fix WINT_MAX to match the gnulib provided wint_t on minw.
17796         * m4/wint_t.m4 (gt_TYPE_WINT_T): Define GNULIB_OVERRIDES_WINT_T here.
17797         * m4/stdint.m4 (gl_STDINT_H): Don't define GNULIB_OVERRIDES_WINT_T.
17798         Invoke gt_TYPE_WINT_T instead.
17799         (gl_STDINT_TYPE_PROPERTIES): Test GNULIB_OVERRIDES_WINT_T.
17800         * modules/stdint (Files): Add m4/wint_t.m4.
17801         * modules/wchar (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
17802         * modules/wctype-h (Makefile.am): Likewise.
17803         * lib/wchar.in.h (wint_t): Override if GNULIB_OVERRIDES_WINT_T is set,
17804         not only on MSVC.
17805         * lib/wctype.in.h (wint_t): Likewise.
17807 2016-12-19  Paul Eggert  <eggert@cs.ucla.edu>
17809         getopt-posix-tests: fix Makefile typo
17810         * modules/getopt-posix-tests (test_getopt_posix_LDADD):
17811         Fix typo: the last ‘_’ was missing in the name.
17812         I suspect that the typo explains this build failure:
17813         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/39
17814         although I can’t reproduce the problem on Solaris 10 sparc.
17816 2016-12-18  Paul Eggert  <eggert@cs.ucla.edu>
17818         dfa: improve worst-case 'replace' performance
17819         See my note in Bug#22357#71.
17820         * lib/dfa.c (insert, delete): Rework to avoid duplicate test.
17821         (merge_constrained): New function, which is like
17822         the old 'merge' function, except with a new argument C2.
17823         Simplify the body by avoiding the need for different sections
17824         of code depending on whether one input is exhausted.
17825         (merge): Use the new function.
17826         (delete): Return the constraint of the deleted position,
17827         not the entire position.  Caller changed.
17828         (replace): Change from O(N*(N + log N)) to O(N log N) algorithm.
17830 2016-12-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
17832         dfa: performance improvement for removal of epsilon closure
17833         See Bug#22357#32.
17834         * lib/dfa.c (delete): Use binary search to find deleted index.
17835         (replace): New function.  It replaces a position with the followed set.
17836         (epsclosure): Replace it with a new algorithm.  Update caller.
17838 2016-12-18  Bruno Haible  <bruno@clisp.org>
17840         Split tests for getopt-posix and getopt-gnu.
17841         * tests/test-getopt-posix.c: New file.
17842         * tests/test-getopt-gnu.c: New file, with code from test-getopt.c.
17843         * tests/test-getopt-main.h: Renamed from tests/test-getopt.c. Remove
17844         stuff moved to test-getopt-gnu.c. Test TEST_GETOPT_GNU instead of
17845         GNULIB_TEST_GETOPT_GNU.
17846         * modules/getopt-posix-tests (Files): Add test-getopt-posix.c,
17847         test-getopt-main.h. Remove test-getopt.c, test-getopt_long.h.
17848         (Makefile.am): Test test-getopt-posix instead of test-getopt.
17849         * modules/getopt-gnu-tests: New file.
17850         * modules/getopt-gnu (configure.ac): Don't define GNULIB_TEST_GETOPT_GNU.
17852 2016-12-18  Bruno Haible  <bruno@clisp.org>
17854         posix-modules: Add options for specific platforms.
17855         * posix-modules (func_usage): Document options --for-mingw, --for-msvc.
17856         (exclude_for_mingw, exclude_for_msvc, exclude): New variables.
17857         Invoke func_tmpdir. Filter out the excludes.
17859 2016-12-18  Bruno Haible  <bruno@clisp.org>
17861         getopt: Fix link error for users of getopt() in <unistd.h>.
17862         * lib/getopt.in.h (getopt etc.): Do the macro definitions also when
17863         __need_getopt is defined. Undefine all macros before defining them.
17864         * modules/getopt (Include): Clarify that including <unistd.h> is also
17865         OK.
17866         * tests/test-getopt.c: Add comment.
17868 2016-12-17  Bruno Haible  <bruno@clisp.org>
17870         getaddrinfo tests: Avoid compilation error on MSVC.
17871         * tests/test-getaddrinfo.c: Don't check the prototypes of freeaddrinfo,
17872         getaddrinfo on native Windows.
17874 2016-12-17  Bruno Haible  <bruno@clisp.org>
17876         getlogin, getlogin_r: Fix link errors on MSVC.
17877         * m4/getlogin.m4 (gl_LIB_GETLOGIN): New macro.
17878         * modules/getlogin (configure.ac): Require gl_LIB_GETLOGIN.
17879         (Link): New section.
17880         * modules/getlogin_r (Files): Add m4/getlogin.m4.
17881         (configure.ac): Require gl_LIB_GETLOGIN.
17882         (Link): New section.
17883         * NEWS: Mention the new link requirements.
17884         * modules/getlogin-tests (test_getlogin_LDADD): New variable.
17885         * modules/getlogin_r-tests (test_getlogin_r_LDADD): New variable.
17887 2016-12-17  Bruno Haible  <bruno@clisp.org>
17889         Un-deprecate the 'progname' module.
17890         * NEWS: Describe the appropriate use-cases of 'progname' versus
17891         'getprogname'. Based on discussion summary at
17892         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00105.html
17894 2016-12-17  Bruno Haible  <bruno@clisp.org>
17896         Reorganize NEWS a bit.
17897         * NEWS: Move some not so important changes away from section
17898         "Important Notes".
17900 2016-12-17  Bruno Haible  <bruno@clisp.org>
17902         tanhf: Avoid redefinition error on MSVC.
17903         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANHF.
17904         * m4/tanhf.m4 (gl_FUNC_TANHF): Set REPLACE_TANHF to 1 if the function
17905         may be defined as an inline function.
17906         * modules/math (Makefile.am): Substitute REPLACE_TANHF.
17907         * lib/math.in.h (tanhf): Override if REPLACE_TANHF is 1.
17909 2016-12-17  Bruno Haible  <bruno@clisp.org>
17911         tanf: Avoid redefinition error on MSVC.
17912         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANF.
17913         * m4/tanf.m4 (gl_FUNC_TANF): Set REPLACE_TANF to 1 if the function
17914         may be defined as an inline function.
17915         * modules/math (Makefile.am): Substitute REPLACE_TANF.
17916         * lib/math.in.h (tanf): Override if REPLACE_TANF is 1.
17918 2016-12-17  Bruno Haible  <bruno@clisp.org>
17920         sqrtf: Avoid redefinition error on MSVC.
17921         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SQRTF.
17922         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Set REPLACE_SQRTF to 1 if the function
17923         may be defined as an inline function.
17924         * modules/math (Makefile.am): Substitute REPLACE_SQRTF.
17925         * lib/math.in.h (sqrtf): Override if REPLACE_SQRTF is 1.
17927 2016-12-17  Bruno Haible  <bruno@clisp.org>
17929         sinhf: Avoid redefinition error on MSVC.
17930         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINHF.
17931         * m4/sinhf.m4 (gl_FUNC_SINHF): Set REPLACE_SINHF to 1 if the function
17932         may be defined as an inline function.
17933         * modules/math (Makefile.am): Substitute REPLACE_SINHF.
17934         * lib/math.in.h (sinhf): Override if REPLACE_SINHF is 1.
17936 2016-12-17  Bruno Haible  <bruno@clisp.org>
17938         sinf: Avoid redefinition error on MSVC.
17939         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINF.
17940         * m4/sinf.m4 (gl_FUNC_SINF): Set REPLACE_SINF to 1 if the function
17941         may be defined as an inline function.
17942         * modules/math (Makefile.am): Substitute REPLACE_SINF.
17943         * lib/math.in.h (sinf): Override if REPLACE_SINF is 1.
17945 2016-12-17  Bruno Haible  <bruno@clisp.org>
17947         logf: Avoid redefinition error on MSVC.
17948         * m4/logf.m4 (gl_FUNC_LOGF): Set REPLACE_LOGF to 1 if the function
17949         may be defined as an inline function.
17951 2016-12-17  Bruno Haible  <bruno@clisp.org>
17953         log10l: Avoid redefinition error on MSVC.
17954         * m4/log10l.m4 (gl_FUNC_LOG10L): Set REPLACE_LOG10L to 1 if the function
17955         may be defined as an inline function.
17957 2016-12-17  Bruno Haible  <bruno@clisp.org>
17959         log10f: Avoid redefinition error on MSVC.
17960         * m4/log10f.m4 (gl_FUNC_LOG10F): Set REPLACE_LOG10F to 1 if the function
17961         may be defined as an inline function.
17963 2016-12-17  Bruno Haible  <bruno@clisp.org>
17965         hypotl: Avoid redefinition error on MSVC.
17966         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Set REPLACE_HYPOTL to 1 if the function
17967         may be defined as an inline function.
17969 2016-12-17  Bruno Haible  <bruno@clisp.org>
17971         hypotf: Avoid redefinition error on MSVC.
17972         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Set REPLACE_HYPOTF to 1 if the function
17973         may be defined as an inline function.
17975 2016-12-17  Bruno Haible  <bruno@clisp.org>
17977         fmodl: Avoid redefinition error on MSVC.
17978         * m4/fmodl.m4 (gl_FUNC_FMODL): Set REPLACE_FMODL to 1 if the function
17979         may be defined as an inline function.
17981 2016-12-17  Bruno Haible  <bruno@clisp.org>
17983         fmodf: Avoid redefinition error on MSVC.
17984         * m4/fmodf.m4 (gl_FUNC_FMODF): Set REPLACE_FMODF to 1 if the function
17985         may be defined as an inline function.
17987 2016-12-17  Bruno Haible  <bruno@clisp.org>
17989         expf: Avoid redefinition error on MSVC.
17990         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_EXPF.
17991         * m4/expf.m4 (gl_FUNC_EXPF): Set REPLACE_EXPF to 1 if the function
17992         may be defined as an inline function.
17993         * modules/math (Makefile.am): Substitute REPLACE_EXPF.
17994         * lib/math.in.h (expf): Override if REPLACE_EXPF is 1.
17996 2016-12-17  Bruno Haible  <bruno@clisp.org>
17998         coshf: Avoid redefinition error on MSVC.
17999         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSHF.
18000         * m4/coshf.m4 (gl_FUNC_COSHF): Set REPLACE_COSHF to 1 if the function
18001         may be defined as an inline function.
18002         * modules/math (Makefile.am): Substitute REPLACE_COSHF.
18003         * lib/math.in.h (coshf): Override if REPLACE_COSHF is 1.
18005 2016-12-17  Bruno Haible  <bruno@clisp.org>
18007         cosf: Avoid redefinition error on MSVC.
18008         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSF.
18009         * m4/cosf.m4 (gl_FUNC_COSF): Set REPLACE_COSF to 1 if the function
18010         may be defined as an inline function.
18011         * modules/math (Makefile.am): Substitute REPLACE_COSF.
18012         * lib/math.in.h (cosf): Override if REPLACE_COSF is 1.
18014 2016-12-17  Bruno Haible  <bruno@clisp.org>
18016         atan2f: Avoid redefinition error on MSVC.
18017         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATAN2F.
18018         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Set REPLACE_ATAN2F to 1 if the function
18019         may be defined as an inline function.
18020         * modules/math (Makefile.am): Substitute REPLACE_ATAN2F.
18021         * lib/math.in.h (atan2f): Override if REPLACE_ATAN2F is 1.
18023 2016-12-17  Bruno Haible  <bruno@clisp.org>
18025         atanf: Avoid redefinition error on MSVC.
18026         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATANF.
18027         * m4/atanf.m4 (gl_FUNC_ATANF): Set REPLACE_ATANF to 1 if the function
18028         may be defined as an inline function.
18029         * modules/math (Makefile.am): Substitute REPLACE_ATANF.
18030         * lib/math.in.h (atanf): Override if REPLACE_ATANF is 1.
18032 2016-12-17  Bruno Haible  <bruno@clisp.org>
18034         asinf: Avoid redefinition error on MSVC.
18035         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ASINF.
18036         * m4/asinf.m4 (gl_FUNC_ASINF): Set REPLACE_ASINF to 1 if the function
18037         may be defined as an inline function.
18038         * modules/math (Makefile.am): Substitute REPLACE_ASINF.
18039         * lib/math.in.h (asinf): Override if REPLACE_ASINF is 1.
18041 2016-12-17  Bruno Haible  <bruno@clisp.org>
18043         acosf: Avoid redefinition error on MSVC.
18044         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ACOSF.
18045         * m4/acosf.m4 (gl_FUNC_ACOSF): Set REPLACE_ACOSF to 1 if the function
18046         may be defined as an inline function.
18047         * modules/math (Makefile.am): Substitute REPLACE_ACOSF.
18048         * lib/math.in.h (acosf): Override if REPLACE_ACOSF is 1.
18050 2016-12-17  Bruno Haible  <bruno@clisp.org>
18052         Avoid redefinition errors on MSVC.
18053         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): Set REPLACE_SNPRINTF to 1 if
18054         the function may be defined as an inline function.
18055         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): Set REPLACE_VSNPRINTF to 1 if
18056         the function may be defined as an inline function.
18058 2016-12-17  Bruno Haible  <bruno@clisp.org>
18060         Avoid redefinition errors on MSVC.
18061         * lib/stdio.in.h: Include <stdlib.h> and <io.h> when necessary.
18062         * lib/unistd.in.h: Include <stdio.h> when necessary.
18064 2016-12-17  Bruno Haible  <bruno@clisp.org>
18066         stdint: Fix WINT_MAX to match the gnulib provided wint_t on MSVC.
18067         * m4/stdint.m4 (gl_STDINT_H): Define GNULIB_OVERRIDES_WINT_T.
18068         * modules/stdint (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
18069         * lib/stdint.in.h [GNULIB_OVERRIDES_WINT_T]: Redefine WINT_MIN and
18070         WINT_MAX.
18072 2016-12-17  Bruno Haible  <bruno@clisp.org>
18074         Avoid autoconf warning.
18075         * modules/frexpl (configure.ac): Require, not invoke, gl_FUNC_FREXPL.
18076         * modules/frexp (configure.ac): Require, not invoke, gl_FUNC_FREXP.
18078 2016-12-17  Bruno Haible  <bruno@clisp.org>
18080         fpending: Revert workaround against Emacs bug.
18081         * lib/stdio-impl.h [__MINGW32__]: Revert conditional.
18082         The Emacs bug is fixed by Eli Zaretskii in
18083         http://lists.gnu.org/r/emacs-devel/2016-12/msg00715.html
18085 2016-12-17  Bruno Haible  <bruno@clisp.org>
18087         getlogin_r tests: Port to mingw.
18088         * tests/test-getlogin_r.c: Don't include <pwd.h> on native Windows. Fixes
18089         regression introduced on 2014-05-19.
18091 2016-12-17  Bruno Haible  <bruno@clisp.org>
18093         getlogin: Port to newer mingw.
18094         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_GETLOGIN.
18095         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Set HAVE_DECL_GETLOGIN.
18096         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETLOGIN, not
18097         HAVE_GETLOGIN.
18098         * lib/unistd.in.h (getlogin): Test HAVE_DECL_GETLOGIN, not
18099         HAVE_GETLOGIN.
18100         * doc/posix-functions/getlogin.texi: Mention the issue.
18101         * tests/test-getlogin.c: Don't include <pwd.h> on native Windows. Fixes
18102         regression introduced on 2014-05-14.
18104 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
18106         builtin-expect: improve port to IBM XL C
18107         Problem reported for z/OS by Daniel Richard G. in:
18108         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00079.html
18109         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
18110         Test for <builtins.h> directly.
18112         builtin-expect: port to IBM XL C
18113         Problem reported for z/OS by Daniel Richard G. in:
18114         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00074.html
18115         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
18116         Also allow __builtin_expect defined via a standard include file.
18118         regex: fix dependency
18119         Problem reported by Bruno Haible in:
18120         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00073.html
18121         * modules/regex: Depend on builtin-expect.
18123         builtin-expect: new module
18124         Fix fnmatch to use it.
18125         Problem reported for z/OS by Daniel Richard G.
18126         * lib/fnmatch.c (__builtin_expect):
18127         * lib/glob.c (__builtin_expect):
18128         * lib/grantpt.c (__builtin_expect) [!_LIBC]:
18129         * lib/memmem.c (__builtin_expect) [!_LIBC]:
18130         * lib/scandir.c (__builtin_expect):
18131         * lib/strstr.c (__builtin_expect) [!_LIBC]:
18132         Remove macro; config.h now does this.
18133         * lib/gl_anytreehash_list1.h (add_to_bucket):
18134         * lib/regex_internal.h (BE):
18135         Assume __builtin_expect.
18136         * m4/builtin-expect.m4, modules/builtin-expect: New files.
18137         * modules/avltreehash-list, modules/fnmatch, modules/glob:
18138         * modules/grantpt, modules/memmem-simple, modules/rbtreehash-list:
18139         * modules/scandir, modules/strstr-simple:
18140         Depend on builtin-expect.
18142 2016-12-15  Bruno Haible  <bruno@clisp.org>
18144         init.sh: Add possibility to not delete temporary files.
18145         * tests/init.sh (remove_tmp_): If the environment variable KEEP is set
18146         to yes, don't erase the temporary directory.
18148 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
18150         regex: fix integer-overflow bug in never-used code
18151         Problem reported by Clément Pit–Claudel in:
18152         http://lists.gnu.org/r/emacs-devel/2016-12/msg00654.html
18153         * lib/regex_internal.h: Include intprops.h.
18154         * lib/regexec.c (re_search_2_stub): Use it to avoid undefined
18155         behavior on integer overflow.
18156         * modules/regex (Depends-on): Add intprops.
18158         fpending: fix port to MinGW on Emacs
18159         * lib/stdio-impl.h [__MINGW32__]: Do not include errno.h.
18160         Problem reported by Eli Zaretskii in:
18161         http://lists.gnu.org/r/emacs-devel/2016-12/msg00642.html
18162         Is Plan 9 still a valid porting target, anyway?
18164 2016-12-15  Paul Eggert  <eggert@cs.ucla.edu>
18166         safe-alloc: use xalloc-oversized
18167         * lib/safe-alloc.c: Include xalloc-oversized.h.
18168         (safe_alloc_oversized): Remove.  All uses changed to xalloc_oversized.
18169         * modules/safe-alloc (Depends-on): Add xalloc-oversized.
18171         xalloc: do not exceed PTRDIFF_MAX
18172         * lib/xmalloc.c (xcalloc) [HAVE_GNU_CALLOC]: Do not omit
18173         xalloc_oversized check, since objects larger than PTRDIFF_MAX
18174         bytes have pointer-subtraction problems.
18176         malloca: do not exceed PTRDIFF_MAX
18177         * lib/malloca.h: Include xalloc-oversized.
18178         (nmalloca): Use xalloc_oversized instead of rolling our own.
18179         * modules/malloca (Depends-on):
18180         * modules/relocatable-prog-wrapper (Depends-on):
18181         Add xalloc-oversized.
18183         quotearg: pacify GCC better
18184         * modules/quotearg (Depends-on): Add minmax, stdint.
18185         * lib/quotearg.c: Include minmax.h, stdint.h.
18186         (nslots): Now int, as there seems little point to going to extra
18187         work merely to support the INT_MAX slot, which nobody ever uses.
18188         (quotearg_n_options): Redo size-overflow checks to pacify GCC
18189         and to catch (mostly-theoretical) ptrdiff_t problems too.
18190         This can be done via one comparison.
18192 2016-12-14  Paul Eggert  <eggert@cs.ucla.edu>
18194         xalloc-oversized: check for PTRDIFF_MAX too
18195         This avoids undefined behavior when subtracting pointers to
18196         objects containing more than PTRDIFF_MAX bytes.
18197         * lib/xalloc-oversized.h (__xalloc_oversized, xalloc_oversized):
18198         Also return 1 if the result would exceed PTRDIFF_MAX>
18199         * modules/xalloc-oversized (Depends-on):
18200         Add stdint.
18202         dfa: fix glitches in previous commit
18203         Sorry, I don't know how I managed to commit the wrong version.
18204         * lib/dfa.c (MIN): Move up.
18205         (xpalloc): Now static.
18207         dfa: fix some unlikely integer overflows
18208         I found these while reviewing the recent Coverity-related fix.
18209         This patch changes part of dfa.c to prefer ptrdiff_t instead of
18210         size_t for object counts.  Using ptrdiff_t is the style typically
18211         used in Emacs; although it wastes a sign bit as sizes can never be
18212         negative, it makes -fsanitize=undefined more likely to catch
18213         integer overflows in index calculation, and nowadays the upside is
18214         typically more important than the downside.  Although perhaps the
18215         rest of dfa.c should be changed to prefer ptrdiff_t as well (much
18216         of dfa.c already does, since it uses state_num which is signed),
18217         that is a bigger change and is not needed to fix the bugs I found.
18218         * lib/dfa.c: Include stdint.h and intprops.h.
18219         (TOKEN_MAX): New macro.
18220         (position_set, struct mb_char_classes, struct dfa, maybe_realloc)
18221         (charclass_index, parse_bracket_exp, addtok, insert, merge)
18222         (realloc_trans_if_necessary, free_mbdata):
18223         Use ptrdiff_t instead of size_t for object counts related to xpalloc.
18224         This is safe because xpalloc checks that the sizes do not exceed
18225         either SIZE_MAX or PTRDIFF_MAX.
18226         (xpalloc): New function, mostly taken from Emacs.
18227         (maybe_realloc, copy, realloc_trans_if_necessary): Use it.
18228         (maybe_realloc): Add NITEMS_MAX to signature.  All callers changed.
18229         (charclass_index): Check for integer overflow in computing
18230         charclass index; it must not exceed TOKEN_MAX - CSET, as CSET is
18231         added to it later.
18232         (alloc_position_set): Check for integer overflow.  On typical
18233         platforms this check has zero overhead, since the constant
18234         expression is false.
18235         (realloc_trans_if_necessary):
18236         Remove assertion, which I hope Coverity no longer needs.
18238         * modules/dfa (Depends-on): Add intprops, stdint.
18240 2016-12-12  Jim Meyering  <meyering@fb.com>
18242         dfa: add an assertion to avoid coverity false positive
18243         * lib/dfa.c (realloc_trans_if_necessary): Otherwise, coverity
18244         warned that "newalloc1 - 2" could overflow.
18246 2016-12-13   Arnold D. Robbins  <arnold@skeeve.com>
18248         dfa: remove DFA_CASE_FOLD flag in favor of RE_ICASE
18249         * dfa.h (DFA_CASE_FOLD): Remove.
18250         * dfa.c (dfasyntax): Set dfa->syntax.case_fold based on RE_ICASE.
18252 2016-12-13  John W. Eaton  <gnu@jweaton.org>
18254         link: fix test to declare use of rename()
18255         * m4/link.m4 (gl_FUNC_LINK): Include <stdio.h> needed with
18256         -Werror=implicit-function-declaration
18258 2016-12-12  Bruno Haible  <bruno@clisp.org>
18260         fpending: Port to native Windows with MSVC.
18261         * lib/fpending.c: Include stdio-impl.h.
18262         (__fpending): Include all known implementations. Err out if it's not
18263         ported.
18264         * m4/fpending.m4 (gl_PREREQ_FPENDING): Remove macro.
18265         * modules/fpending (Files): Add lib/stdio-impl.h.
18266         (configure.ac): Don't invoke gl_PREREQ_FPENDING.
18268 2016-12-12  Bruno Haible  <bruno@clisp.org>
18270         stdioext: Port to native Windows with MSVC.
18271         * lib/stdio-impl.h (WINDOWS_OPAQUE_FILE): New macro.
18272         (struct _gl_real_FILE): New type.
18273         (fp_, _IOREAD, _IOWRT, _IORW, _IOEOF, _IOERR): New macros, for native
18274         Windows.
18275         * lib/fbufmode.c (fbufmode): Add code for native Windows.
18276         * lib/fflush.c (clear_ungetc_buffer): Treat native Windows like the
18277         other SystemV derived implementations.
18278         * lib/fpurge.c (fpurge): Likewise.
18279         * lib/freadable.c (freadable): Likewise.
18280         * lib/freadahead.c (freadahead): Likewise.
18281         * lib/freading.c (freading): Likewise.
18282         * lib/freadptr.c (freadptr): Likewise.
18283         * lib/freadseek.c (freadptrinc): Likewise.
18284         * lib/fseeko.c (fseeko): Likewise.
18285         * lib/fseterr.c (fseterr): Likewise.
18286         * lib/fwritable.c (fwritable): Likewise.
18287         * lib/fwriting.c (fwriting): Likewise.
18288         Reported by Gisle Vanem <gvanem@yahoo.no>.
18290 2016-12-11  Jim Meyering  <meyering@fb.com>
18292         non-recursive-gnulib-prefix-hack.m4: remove leading "(" in case stmt
18293         * m4/non-recursive-gnulib-prefix-hack.m4: That leading "(" happens
18294         to work with most shells, but not with the one provided by many
18295         Solaris 10 systems, so running configure with such a /bin/sh evokes
18296         e.g., "./configure: syntax error at line 33602: `(' unexpected".
18297         Reported by Assaf Gordon in
18298         https://lists.gnu.org/r/sed-devel/2016-12/msg00002.html
18300 2016-12-10  Bruno Haible  <bruno@clisp.org>
18302         threadlib: Optimize out runtime test on Solaris >= 10.
18303         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't set
18304         PTHREAD_IN_USE_DETECTION_HARD if configuring on Solaris 10 or newer.
18305         Reported by Peter Felecan at <https://savannah.gnu.org/bugs/?32087>.
18307 2016-12-10  Bruno Haible  <bruno@clisp.org>
18309         stdint: Update doc about Solaris 9.
18310         * doc/posix-headers/stdint.texi: Add info about Solaris 9.
18312 2016-12-09  Bruno Haible  <bruno@clisp.org>
18314         c-ctype tests: Fix link error on Solaris 9.
18315         * modules/c-ctype-tests (Depends-on): Add 'isblank'.
18316         Reported at <https://savannah.gnu.org/bugs/?46827>.
18318 2016-12-09  Paul Eggert  <eggert@cs.ucla.edu>
18320         dfa: fix performance bug that recomputes trans
18321         * lib/dfa.c (build_state): Fix performance bug introduced in Nov
18322         25 on-demand changes.  The bug caused build_state to reset all
18323         d->trans elements to -2 even when d->trans was already non-null.
18324         Use C99 style decls after statements in this function.
18326         same-inode: port to MinGW
18327         Here st_ino is always 0, so change the definition of SAME_INODE so
18328         that 1 means the two files are the same, 0 with st_ino != 0 means
18329         they differ, and 0 with st_ino == 0 means we don’t know.  Problem
18330         reported by Bruno Haible (Bug#25146).
18331         * doc/posix-headers/sys_stat.texi (sys/stat.h): Update.
18332         * lib/same-inode.h (SAME_INODE): Return 0 on MinGW.
18334 2016-12-04  Bruno Haible  <bruno@clisp.org>
18336         javacomp-script: Support Java 7 and 8.
18337         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.7, 1.8 and
18338         target-version 1.7, 1.8.
18340 2016-12-02  Daiki Ueno  <ueno@gnu.org>
18342         * gnulib-tool (func_import): Relax the regex used for "LGPLv3+ or
18343         GPLv2" rewriting.
18345 2016-12-02  Nikos Mavrogiannopoulos  <nmav@gnutls.org>
18347         * gnulib-tool (func_import): Adhere to the license guideline when
18348         rewriting the license text to "LGPLv3+ or GPLv2":
18349         https://www.gnu.org/prep/maintain/maintain.html#Licensing-of-GNU-Packages
18351 2016-12-02  Bruno Haible  <bruno@clisp.org>
18353         localcharset: Avoid theoretical buffer overrun.
18354         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Don't use the
18355         return value from setlocale if it would lead to a buffer overrun.
18357 2016-12-01  Bruno Haible  <bruno@clisp.org>
18359         Relicense some modules under LGPLv2+.
18360         Kevin Cernekee's approval is in
18361         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00090.html.
18362         * modules/fseterr (License): Change to LGPLv2+.
18363         * modules/mbchar (License): Likewise.
18364         * modules/mbiter (License): Likewise.
18365         * modules/mbsnlen (License): Likewise.
18366         * modules/wcwidth (License): Likewise.
18368 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
18370         scandir: Fix _D_ALLOC_NAMLEN() on OS/2 kLIBC
18371         * lib/scandir.c (_D_ALLOC_NAMLEN): Consider the fields after d_name on
18372         OS/2 kLIBC.
18374 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
18376         alphasort, scandir: Port to OS/2 kLIBC
18377         * lib/alphasort.c (alphasort): Implement according to OS/2 kLIBC
18378         declaration.
18379         * lib/scandir.c (scandir): Add declaration for OS/2 kLIBC.
18381 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
18383         relocatable: Fix that /@unixroot prefix is not working on OS/2 kLIBC
18384         * lib/relocatable.c (relocate): Do not touch pathname if it is started
18385         with '/@unixroot'.
18387 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
18389         sys_socket: typedef sa_family_t correctly on OS/2 kLIBC
18390         * lib/sys_socket.in.h (sa_family_t): Typedef to unsigned char on
18391         OS/2 kLIBC unless TCPV40HDRS is defined.
18393 2016-11-29  Jim Meyering  <meyering@fb.com>
18395         dfa: avoid new infinite loop
18396         This would infloop: echo cx | LC_ALL=C grep -E 'c\b[x ]'
18397         * lib/dfa.c (dfastate): When constructing a new state table, we could
18398         initially declare that we had found a match, and later find that
18399         constraints eliminate that possibility, yet continue to use the
18400         now stale "matched" indicator.  That would lead to an infinite loop.
18401         The solution is to update "matched" when necessary.
18402         Introduced by commit v0.1-983-g403adf1.
18404 2016-11-27  Norihiro Tanaka  <noritnk@kcn.ne.jp>
18406         dfa: avoid match middle in multibyte character
18407         * lib/dfa.c (transit_state): If fails in matching single byte characters
18408         on a state including period expression in non-UTF8 multibyte locales,
18409         skip trailing bytes.
18410         (dfa_supported): Revert previous change.
18412 2016-11-27  Jim Meyering  <meyering@fb.com>
18414         dfa: avoid false match in non-UTF8 multibyte locales
18415         * lib/dfa.c (dfa_supported): Treat any non-UTF8 multibyte locale
18416         as "not supported" so that callers will resort to using regex-based
18417         matcher.  This will surely hurt performance, but correctness trumps
18418         performance here, and the affected locales are less and less relevant,
18419         these days.  See grep's bug report https://bugs.gnu.org/24975.
18421 2016-11-27  Mike Frysinger  <vapier@gentoo.org>
18423         ptsname_r: leverage AC_HEADER_MAJOR to provide major()
18424         * lib/ptsname_r.c: Include the appropriate headers.
18425         [__sun]: Delete sys/sysmacros.h include.
18426         [_AIX || __osf__]: Likewise.
18427         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Depend on AC_HEADER_MAJOR.
18429 2016-11-27  Pádraig Brady  <P@draigBrady.com>
18431         md4,md5,sha*: allow _STRING_INLINE_unaligned enable unaligned operation
18432         * lib/md4.c (md4_process_bytes): The existing define is made internal
18433         in recent versions of glibc, so also use this new public define.
18434         * lib/md5.c (md5_process_bytes): Likewise.
18435         * lib/sha1.c (sha1_process_bytes): Likewise.
18436         * lib/sha256.c (sha256_process_bytes): Likewise.
18437         * lib/sha512.c (sha512_process_bytes): Likewise.
18439 2016-11-27  Pádraig Brady  <P@draigBrady.com>
18441         maint: use a more standard return from mbrtowc test
18442         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Don't return 1
18443         from the test program as this often indicates an
18444         unhandled case in the test program.
18445         (gl_MBRTOWC_INCOMPLETE_STATE): Likewise.
18446         (gl_MBRTOWC_SANITYCHECK): Likewise.
18447         (gl_MBRTOWC_NULL_ARG2): Likewise.
18448         (gl_MBRTOWC_NUL_RETVAL): Likewise.
18450 2016-11-26  Paul Eggert  <eggert@cs.ucla.edu>
18452         freopen: work around glibc bug with closed fd
18453         Work around glibc bug#15589, where freopen mishandles the case
18454         where stdin etc. are already closed.
18455         * doc/posix-functions/freopen.texi (freopen): Document the bug.
18456         * lib/freopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this
18457         instead of __need_FILE, as the latter does not work with glibc.
18458         Include <fcntl.h>, for open flags.
18459         (rpl_freopen): Work around glibc bug.
18460         * m4/freopen.m4 (gl_FUNC_FREOPEN): Check for bug.
18461         * modules/freopen (Depends-on): Add fcntl-h.
18462         * tests/test-freopen.c (main): Test for bug.
18464 2016-11-25  Paul Eggert  <eggert@cs.ucla.edu>
18466         fnmatch: fix typo introduced on 2016-08-17
18467         This fixes the port to non-GCC compilers that lack __builtin_expect.
18468         * lib/fnmatch.c (__builtin_expect): Change A&&B to !A||B.
18470         dfa: simplify with new function fillset
18471         * lib/dfa.c (fillset): New function.
18472         Use it for clarity when applicable.
18474         dfa: fix glitches with on-demand states
18475         Also, adjust commentary to better match new code.
18476         Some of these glitches predate the recent change.
18477         * lib/dfa.c (dfaanalyze): Clear trcount here, so that it counts
18478         only non-initial states.
18479         (dfastate): Rename locals to better match new roles.
18480         Move them into nested scopes if this is easy.
18481         Omit unnecessary calls to zeroset.
18482         Simplify test for whether to throw in the positions of state 0.
18483         Omit C99-ism (decl after statement) since Gawk still wants C89.
18484         (build_state): Omit unnecessary test and assignment.
18485         Fix some confusion that counted transition tables inaccurately
18486         and could cause a memory leak.
18487         (dfaexec_main): Redo to make it clearer to the compiler that
18488         -1 and -2 are the only negative state numbers here.
18490 2016-11-25  Norihiro Tanaka  <noritnk@kcn.ne.jp>
18492         dfa: addition of new state on demand
18493         * src/dfa.c (dfastate): Add argument UC, the current input character.
18494         Fill only a group including the character in transition table.
18495         (realloc_trans_if_necessary): Add the dummy state which means that a
18496         transition table is assigned but the next state is not assigned.
18497         (build_state): Return the next state.  All callers updated.
18498         (transit_state_singlebyte): If we get the dummy state,
18499         fill the transition table.
18500         (dfaexec_main): Handle the dummy state.
18501         (free_mbdata, dfafree): Consider the dummy state.
18503 2016-11-24  Daiki Ueno  <ueno@gnu.org>
18505         srclist: sync with released gettext
18506         * config/srclist.txt: Set "release" option to the files under
18507         $GETTEXT.
18509 2016-11-24  Daiki Ueno  <ueno@gnu.org>
18511         srclist: add "release" option
18512         * config/srclist.txt: Change the format so that the first column
18513         of each line points to the top-level directory of the source
18514         archive.
18515         * config/srclist-update: Accept "release" option that checks files
18516         from the most recently tagged revision in the source archive.
18518 2016-11-21  Bruno Haible  <bruno@clisp.org>
18520         snippet/c++defs: Simplify _GL_CXXALIAS_* macros.
18521         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
18522         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1,
18523         _GL_CXXALIAS_SYS, _GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2):
18524         Inline and remove member function 'rpl ()' of the wrapper struct.
18526 2016-11-20  Paul Eggert  <eggert@cs.ucla.edu>
18528         dfa: fix logic typo
18529         Problem reported by Stephane Chazelas (Bug#24973).
18530         * lib/dfa.c (using_simple_locale): Fix typo that caused some
18531         non-simple locales like fr_FR to be treated as simple.
18533 2016-11-20  Jim Meyering  <meyering@fb.com>
18535         fix test driver leaks: exclude, malloc, realloc
18536         * tests/test-exclude.c (main): Fix trivial leak.
18537         * tests/test-malloc-gnu.c (main): Likewise.
18538         * tests/test-realloc-gnu.c (main): Likewise.
18539         With these changes, grep's tests are now leak free.
18540         I.e., running them with ASAN elicits no failure:
18541           make CFLAGS='-O0 -ggdb3' AM_CFLAGS=-fsanitize=address \
18542             AM_LDFLAGS='-fsanitize=address -static-libasan' check
18544 2016-11-11  Bruno Haible  <bruno@clisp.org>
18546         libunistring: Relicense under dual "LGPLv3+ or GPLv2" license.
18547         * modules/libunistring: (License): Change from LGPL to
18548         "LGPLv3+ or GPLv2".
18549         * modules/libunistring-optional: Likewise.
18550         * modules/unicase/*: Likewise.
18551         * modules/uniconv/*: Likewise.
18552         * modules/unictype/*: Likewise.
18553         * modules/unigbrk/*: Likewise.
18554         * modules/unilbrk/*: Likewise.
18555         * modules/uniname/*: Likewise.
18556         * modules/uninorm/*: Likewise.
18557         * modules/unistdio/*: Likewise.
18558         * modules/unistr/*: Likewise.
18559         * modules/uniwbrk/*: Likewise.
18560         * modules/uniwidth/*: Likewise.
18562 2016-11-12  Bruno Haible  <bruno@clisp.org>
18564         Relicense some modules under LGPLv2+.
18565         Paul Eggert's approval is in
18566         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00037.html.
18567         Eric Blake's approval is in
18568         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00042.html.
18569         Ludovic Courtès's approval is in
18570         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00038.html.
18571         * modules/isnand-nolibm (License): Change to LGPLv2+.
18572         * modules/isnanf-nolibm (License): Likewise.
18573         * modules/isnanl-nolibm (License): Likewise.
18575 2016-11-19  Bruno Haible  <bruno@clisp.org>
18577         Relicense some modules under LGPLv2+.
18578         lib/float+.h is already under LGPLv2+ since 2007-07-13, per
18579         modules/vasnprintf.
18580         Paolo Bonzini's approval for lib/frexp.c and lib/frexpl.c is in
18581         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00074.html.
18582         All other significant changes to the files in lib/ of these modules
18583         are from me.
18584         * modules/memcmp2 (License): Change to LGPLv2+.
18585         * modules/amemxfrm (License): Likewise.
18586         * modules/fpieee (License): Likewise.
18587         * modules/fpucw (License): Likewise.
18588         * modules/frexp-nolibm (License): Likewise.
18589         * modules/frexpl-nolibm (License): Likewise.
18590         * modules/printf-frexp (License): Likewise.
18591         * modules/printf-frexpl (License): Likewise.
18592         * modules/printf-safe (License): Likewise.
18593         * modules/signbit (License): Likewise.
18595 2016-11-17  Bruno Haible  <bruno@clisp.org>
18597         Enable Unicode decoder safety unconditionally.
18598         * lib/unistr.in.h (u32_mbtouc_unsafe): Assume CONFIG_UNICODE_SAFETY.
18599         * lib/unistr/u8-mblen.c (u8_mblen): Likewise.
18600         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
18601         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
18602         * lib/unistr/u8-prev.c (u8_prev): Likewise.
18603         * lib/unistr/u8-strmblen.c (u8_strmblen): Likewise.
18604         * lib/unistr/u8-strmbtouc.c (u8_strmbtouc): Likewise.
18605         * lib/unistr/u16-mblen.c (u16_mblen): Likewise.
18606         * lib/unistr/u16-mbtouc-unsafe.c (u16_mbtouc_unsafe): Likewise.
18607         * lib/unistr/u16-mbtouc-unsafe-aux.c (u16_mbtouc_unsafe_aux): Likewise.
18608         * lib/unistr/u16-prev.c (u16_prev): Likewise.
18609         * lib/unistr/u16-strmblen.c (u16_strmblen): Likewise.
18610         * lib/unistr/u16-strmbtouc.c (u16_strmbtouc): Likewise.
18611         * lib/unistr/u32-mblen.c (u32_mblen): Likewise.
18612         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Likewise.
18613         * lib/unistr/u32-prev.c (u32_prev): Likewise.
18614         * lib/unistr/u32-next.c (u32_next): Likewise.
18615         * lib/unistr/u32-strmblen.c (u32_strmblen): Likewise.
18616         * lib/unistr/u32-strmbtouc.c (u32_strmbtouc): Likewise.
18617         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
18618         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
18619         * tests/unistr/test-u16-prev.c (check_invalid): Enable the
18620         CONFIG_UNICODE_SAFETY tests unconditionally.
18621         * tests/unistr/test-u32-mblen.c (main): Likewise.
18622         * tests/unistr/test-u32-mbtouc.h (test_function): Likewise.
18623         * tests/unistr/test-u32-prev.c (check_invalid): Likewise.
18624         * tests/unistr/test-u32-next.c (main): Likewise.
18625         * tests/unistr/test-u32-strmblen.c (main): Likewise.
18626         * tests/unistr/test-u32-strmbtouc.c (main): Likewise.
18627         * tests/unistr/test-u32-mbtouc.c (FULL_SAFETY): Remove macro.
18628         * lib/unistr/u8-check.c (u8_check): Remove old dead code.
18629         * lib/unistr/u8-mbtouc.c (u8_mbtouc): Likewise.
18630         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
18631         * lib/unistr/u8-mbtoucr.c (u8_mbtoucr): Likewise.
18632         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
18633         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
18634         * lib/unistr/u16-check.c (u16_check): Update comment.
18635         * NEWS: Mention the changes that callers should be aware of.
18637 2016-11-19  Bruno Haible  <bruno@clisp.org>
18639         relocatable-prog-wrapper: Fix breakage on Cygwin.
18640         * modules/relocatable-prog-wrapper (Files): Add lib/stat.c, lib/lstat.c.
18641         (Depends-on): Remove intprops.
18642         * lib/relocwrapper.c: Update dependency tree.
18643         (strerror): Undefine.
18644         * build-aux/install-reloc (func_create_wrapper): Do not compile
18645         strerror.c and strerror-override.c. Erase stat.o and lstat.o.
18647 2016-11-19  Bruno Haible  <bruno@clisp.org>
18649         strerror: Make it compile in C++ mode.
18650         * lib/strerror.c (strerror): Ignore the return value of memcpy().
18652 2016-11-15  Pedro Alves  <palves@redhat.com>
18654         sys_time: add gnulib::timeval for C++
18655         * lib/sys_time.in.h [__cplusplus && defined GNULIB_NAMESPACE]:
18656         Define "timeval" in the GNULIB_NAMESPACE namespace, and #undef any
18657         timeval macro.
18659 2016-11-14  Pedro Alves  <palves@redhat.com>
18661         snippet/c++defs: fix real-floating arg functions in C++ mode
18662         Also, define isfinite, isinf, isnan, signbit in the gnulib
18663         namespace instead of in the global namespace.
18664         * build-aux/snippet/c++defs.h (_GL_BEGIN_NAMESPACE)
18665         (_GL_END_NAMESPACE): New.
18666         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Use them.
18667         (isfinite, isinf, isnan, signbit) [__cplusplus &&
18668         GNULIB_NAMESPACE]: Define them in the GNULIB_NAMESPACE namespace
18669         instead of in the global namespace.
18670         * tests/test-math-c++.cc: Check that the isfinite, isinf, isnan,
18671         signbit overloads exist in the GNULIB_NAMESPACE namespace, instead
18672         of in the global namespace.
18674 2016-11-13  Jim Meyering  <meyering@fb.com>
18676         strftime: don't use __THROW
18677         Each use of __THROW would provoke this from gcc-7-to-be:
18679           lib/strftime.c:371:1: warning: '__leaf__' attribute has no effect \
18680             on unit local functions [-Wattributes]
18681           static int iso_week_days (int, int) __THROW;
18682           ^~~~~~
18683         * lib/strftime.c (__THROW): Don't define.
18684         Remove each use of __THROW.
18685         * lib/strftime.c (memcpy_lowcase, memcpy_uppcase): Remove __THROW.
18686         (tm_diff, iso_week_days, __strftime_internal): Likewise.
18688 2016-11-14  Paul Eggert  <eggert@union>
18690         obstack: port to gcc -fcheck-pointer-bounds
18691         Problem found by 'make check' failure on bleeding-edge coreutils
18692         on an MPX-enabled CPU (Intel Core i3-7100U) running GCC (Ubuntu
18693         6.2.0-5ubuntu12), configured via "./configure
18694         --enable-gcc-warnings CFLAGS='-mmpx -fcheck-pointer-bounds -g3
18695         -O2' LDFLAGS='-static-libmpx -static-libmpxwrappers'".
18696         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER):
18697         New macro, copied from fts_.h.
18698         (struct _obstack_chunk.contents): Use it.
18700 2016-11-14  Eric Blake  <eblake@redhat.com>
18702         strerror_r-posix: Another fix, for HAVE_DECL_STRERROR_R on mingw.
18703         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R, gl_FUNC_STRERROR_R_WORKS):
18704         Avoid _ONCE variants, which may supply a conflicting AC_DEFINE().
18706 2016-11-14  Pádraig Brady  <P@draigBrady.com>
18708         strptime: fix compile error in recent change
18709         * lib/strptime.c (__strptime_internal): Fix ported code.
18711 2016-11-11  Bruno Haible  <bruno@clisp.org>
18713         gnulib-tool: Support for the dual "LGPLv3+ or GPLv2" license.
18714         * gnulib-tool (--lgpl): Accept value 3orGPLv2.
18715         (func_import): Extend determination of license_incompatibilities.
18716         (func_create_testdir): Extend table of license compatibility. Handle
18717         also the licenses GPLv3+, GPL, LGPLv3+.
18719 2016-11-12  Paul Eggert  <eggert@cs.ucla.edu>
18721         strftime: tune %q
18722         * lib/strftime.c (__strftime_internal): Assume tp->tm_mon is in range.
18724         Merge strftime.c changes from glibc
18725         This incorporates:
18726         2007-10-16 [BZ #5184] Add tzset_called argument
18727         2008-06-13 [BZ #6612] pass reference to tzset_called around
18728         2009-10-30 Implement Burmese language locale for Myanmar
18729         2010-01-09 Add support for XPG7 testing
18730         2015-09-26 [BZ #18985] out of range data to strftime() causes a segfault
18731         2015-10-20 Convert miscellaneous function definitions to prototype style
18732         * lib/strftime.c: Copy glibc license, since gnulib-tool rewrites
18733         it anyway and this lessens the difference between gnulib and glibc.
18734         (USE_IN_EXTENDED_LOCALE_MODEL) [_LIBC]: Define.
18735         (__THROW): Define if standard headers do not.
18736         (LOCALE_PARAM): Rename from LOCALE_PARAM_PROTO.  All uses changed.
18737         (memcpy_locase, memcpy_uppcase, tm_diff, __strftime_internal):
18738         Declare with __THROW.
18739         (__strftime_internal): Rename from strftime_case_. Add arg for
18740         whether tzset is called.  All uses changed.  Call tzset at most
18741         once.  Allow %OC, for Burmese.
18742         (a_wkday, f_wkday, a_month, f_month) [_NL_CURRENT]:
18743         Don't assume values are in range.
18745 2016-11-12  Eric Blake  <eblake@redhat.com>
18747         strerror_r-posix: Fix override of AC_FUNC_STRERROR_R
18748         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): New override.
18749         (gl_FUNC_STRERROR_R): Don't reuse AC_DEFINE() with a potentially
18750         different value.
18752 2006-11-12  Pedro Alves  <palves@redhat.com>
18754         Fix gnulib C++ namespace support and std::frexp
18755         * lib/math.in.h (frexp): Use _GL_CXXALIASWARN1 instead of
18756         _GL_CXXALIASWARN.
18758 2006-11-12  Pedro Alves  <palves@redhat.com>
18760         GNULIB_NAMESPACE::func need not pull in rpl_func
18761         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
18762         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1, _GL_CXXALIAS_SYS)
18763         (_GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2): Define a wrapper
18764         struct instead of a function pointer.
18766 2016-11-09  Frediano Ziglio  <fziglio@redhat.com>
18768         manywarnings: fix -Wno-missing-field-initializers detection
18769         * m4/manywarnings.m4: Fix -Wno-missing-field-initializers detection
18770         to be independent of -Wunused-variable.  I.E. ensure the latter
18771         warning doesn't occur so that detection of the former is accurate.
18773 2016-11-05  Pádraig Brady  <pbrady@fb.com>
18775         strftime,strptime: support %q to represent the quarter
18776         * lib/strftime.c (strftime_case_): Add %q case.
18777         * lib/strptime.c (__strptime_internal): Likewise.
18778         * tests/test-strftime.c (quarter_test): A new test case.
18780 2016-11-03  Eric Blake  <eblake@redhat.com>
18782         bootstrap: Fix get_version() for AIX 5.3
18783         * build-aux/bootstrap (get_version): Factor out sed script, since
18784         indented comments choke AIX 5.3 sed.
18785         Reported-by: Michael Felt <aixtools@gmail.com>
18787 2016-11-03  Paul Eggert  <eggert@cs.ucla.edu>
18789         intprops: port to older XL C
18790         Problem reported by Alexander Samoilov in:
18791         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00166.html
18792         http://savannah.nongnu.org/bugs/?49448
18793         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM__TYPEOF__]:
18794         Define to 1 only for XL C 12.1 or later, since this bug
18795         occurs in XL C for AIX 6.0 but not in 12.1.
18797 2016-11-02  Pádraig Brady  <P@draigBrady.com>
18799         backupfile: initialize default suffix within the implementation
18800         * lib/backupfile.c (find_backup_file_name): Initialize the
18801         global variable here, to simplify usage, and to only call
18802         getenv() when needed.
18804 2016-11-01  Paul Eggert  <eggert@cs.ucla.edu>
18806         futimens: remove FIXME for old Linux kernels
18807         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Belatedy do a "simplify
18808         this in 2012" FIXME, like that for utimensat.
18810         utimensat: remove FIXME for old Linux kernels
18811         * lib/utimensat.c (rpl_utimensat): Update FIXME comment.
18812         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Belatedy do a "simplify
18813         this in 2012" FIXME, by assuming the file system bug is absent
18814         unless demonstrated to be present.  We no longer need to worry
18815         about Linux kernel 2.6.32 when building with newer kernels.
18817 2016-10-16  Bruno Haible  <bruno@clisp.org>
18819         qsort_r: Fix macrology for platforms that lack the function.
18820         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for qsort_r.
18821         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_QSORT_R.
18822         * modules/stdlib (Makefile.am): Substitute HAVE_QSORT_R.
18823         * lib/stdlib.in.h (qsort_r): Provide declaration if the function does
18824         not exist.
18825         * m4/qsort_r.m4 (gl_FUNC_QSORT_R): Use AC_CHECK_FUNCS to test whether
18826         the function exists.
18827         * modules/qsort_r: Add comments.
18829 2016-10-26  Paul Eggert  <eggert@cs.ucla.edu>
18831         sys_types: fix Texinfo typos
18832         * doc/glibc-functions/gnu_dev_major.texi:
18833         * doc/glibc-functions/gnu_dev_makedev.texi:
18834         * doc/glibc-functions/gnu_dev_minor.texi: Fix typos.
18836 2016-10-26  John David Anglin  <dave.anglin@bell.net>
18838         getprogname: port to HP-UX
18839         See Bug#24805.
18840         * lib/getprogname.c (getprogname) [__hpux]: Port.
18841         * tests/test-getprogname.c (STREQ) [__hpux]:
18842         Special-case for HP-UX limitations on program name length.
18844 2016-10-20  Bruno Haible  <bruno@clisp.org>
18846         Update doc about target platforms.
18847         * doc/gnulib-intro.texi (Target Platforms): Update list.
18849 2016-10-15  Bruno Haible  <bruno@clisp.org>
18851         opendir, readdir, closedir: Relicense under LGPLv2+.
18852         * modules/opendir (License): Change to LGPLv2+.
18853         * modules/readdir (License): Likewise.
18854         * modules/closedir (License): Likewise.
18856 2016-10-16  Bruno Haible  <bruno@clisp.org>
18858         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
18859         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Override the values set by the
18860         AC_FUNC_STRERROR_R macro. Define HAVE_DECL_STRERROR_R_ORIG.
18861         * lib/strerror_r.c: Use HAVE_DECL_STRERROR_R_ORIG instead of
18862         HAVE_DECL_STRERROR_R.
18864 2016-10-16  Bruno Haible  <bruno@clisp.org>
18866         Make the 'argp' module work without the 'error' module.
18867         * m4/argp.m4 (gl_ARGP): Require AC_FUNC_STRERROR_R.
18869 2016-10-25  Paul Eggert  <eggert@cs.ucla.edu>
18871         diffseq: restore TOO_EXPENSIVE heuristic
18872         * lib/diffseq.h: Problem with diffutils reported by Andreas Schwab
18873         (Bug#24715).  The simplest solution is to restore the
18874         TOO_EXPENSIVE heuristic that I added to GNU diff in 1993, while
18875         using a higher threshold to avoid Bug#16848 on smaller files.
18876         * lib/diffseq.h (struct context): Restore member too_expensive.
18877         (struct partition): Restore members lo_minimal, hi_minimal.
18878         (diag, compareseq): Restore arg find_minimal.  All uses changed.
18879         (diag): Restore the TOO_EXPENSIVE heuristic that I added back in
18880         1993 to make 'diff' run faster (but not as well) on large inputs,
18881         but use a threshold of 4096 instead of the old 256.
18882         * lib/fstrcmp.c (strcmp_bounded):
18883         * lib/git-merge-changelog.c (compute_differences):
18884         Adjust to diffseq.h changes.
18886 2016-10-22  Bruno Haible  <bruno@clisp.org>
18888         iconv: Avoid compilation error when bootstrapping GNU libiconv.
18889         * m4/iconv.m4 (AM_ICONV): When the system does not have an iconv()
18890         declaration yet, define ICONV_CONST to empty.
18892 2016-10-15  Bruno Haible  <bruno@clisp.org>
18894         Avoid gnulib-tool warnings about the dependencies of 'parse-datetime'.
18895         * gnulib-tool (func_get_license): Special-case the 'parse-datetime'
18896         module.
18898 2016-10-16  Bruno Haible  <bruno@clisp.org>
18900         system-quote tests: Avoid compiler warning on AIX.
18901         * tests/test-system-quote-child.c (fopen): Redefine like the system's
18902         <stdio.h> does.
18904 2016-10-16  Bruno Haible  <bruno@clisp.org>
18906         Fix some "gcc -Wall" warnings.
18907         * tests/test-ffsl.c (main): Use variable x, not i.
18908         * tests/test-posix_spawn3.c (parent_main): Consider the return value of
18909         freopen.
18910         * tests/test-sethostname1.c (main): Explicitly ignore the return value
18911         of sethostname.
18913 2016-10-16  Bruno Haible  <bruno@clisp.org>
18915         gnulib-tool: Make --create-testdir on all modules work again.
18916         * gnulib-tool (func_create_testdir): Don't include the
18917         non-recursive-gnulib-prefix-hack module.
18919 2016-10-21  Daiki Ueno  <ueno@gnu.org>
18921         libunistring: change the maintainer to 'all'
18922         * modules/gen-uni-tables, modules/libunistring:
18923         * modules/ucs4-utf16, modules/ucs4-utf8, modules/unicodeio:
18924         * modules/unitypes, modules/utf16-ucs4, modules/utf16-ucs4-unsafe:
18925         * modules/utf8-ucs4, modules/utf8-ucs4-unsafe:
18926         * modules/unicase/*, modules/uniconv/*, modules/unictype/*:
18927         * modules/unilbrk/*, modules/uniname/*, modules/uninorm/*:
18928         * modules/unistdio/*, modules/unistr/*, modules/uniwbrk/*:
18929         * modules/uniwidth/*: Change the maintainer to 'all'.
18931 2016-10-16  Bruno Haible  <bruno@clisp.org>
18933         Simplify "configure: checking ..." messages.
18934         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use AC_MSG_CHECKING instead of
18935         AC_MSG_NOTICE.
18936         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
18938 2016-10-20  Paul Eggert  <eggert@cs.ucla.edu>
18940         quotearg-tests: pacify gcc -Wall
18941         Problem reported by Bruno Haible in:
18942         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00066.html
18943         * tests/test-quotearg-simple.c (use_quote_double_quotes): Move here ...
18944         * tests/test-quotearg.h: ... from here.
18946 2016-10-20  Pádraig Brady  <P@draigBrady.com>
18948         canonicalize-lgpl: fix for missing SIZE_MAX on older systems
18949         * lib/canonicalize-lgpl.c [SIZE_MAX]: Define if needed.
18950         Needed on Centos <= 4.
18952 2016-10-20  Jim Meyering  <meyering@fb.com>
18954         printf.m4: fix a bug in detecting printf %j support
18955         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Fail any system for which
18956         uintmax_t is defined in neither stdint.h nor inttypes.h.
18957         Before, this macro might have mistakenly set
18958         gl_cv_func_printf_sizes_c99=yes on such a system.
18959         Spotted by Zev Weiss.
18961 2016-10-19  Paul Eggert  <eggert@cs.ucla.edu>
18963         sched: substitute HAVE_SYS_CDEFS_H too
18964         Problem reported by Tom G. Christensen in:
18965         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00084.html
18966         * m4/sched_h.m4 (gl_SCHED_H): Set and substitute HAVE_SYS_CDEFS_H.
18967         * modules/sched (Depends-on): Substitute HAVE_SYS_CDEFS_H.
18969 2016-10-19  Pádraig Brady  <P@draigBrady.com>
18971         quotearg: never write beyond the returned length
18972         * lib/quotearg.c (quotearg_buffer_restyled): Switch to a read-only
18973         scan of the string when we initially encounter a single quote when
18974         shell quoting, so that if we then switch to a more concise quoting method
18975         we will not have written beyond that returned length.
18976         This is significant for sh-quote, which has separate routines
18977         to determine the length and do the actual quoting.
18978         * tests/test-quotearg.h: Reinstate the buffer bounds checking
18979         now that we never write more than the returned length.
18981 2016-10-18  Bruno Haible  <bruno@clisp.org>
18983         getprogname tests: Avoid failure in packages that use libtool.
18984         * tests/test-getprogname.c (main): Strip "lt-" prefix.
18985         Based on a patch by Jim Meyering.
18987 2016-10-16  Bruno Haible  <bruno@clisp.org>
18989         getprogname: Fix test failure on Cygwin. Comments.
18990         * lib/getprogname.h: Add comments.
18991         * lib/getprogname.c: Add comments. Fix #elif indentation.
18992         * tests/test-getprogname.c (main): On Cygwin, expect a result without
18993         ".exe" suffix.
18995 2016-10-16  Bruno Haible  <bruno@clisp.org>
18997         Make sure the libunistring detection rejects older versions with a
18998         known bug.
18999         * modules/unistr/u8-strtok (configure.ac): Bump required version.
19000         * modules/unistr/u16-strtok (configure.ac): Likewise.
19001         * modules/unistr/u32-strtok (configure.ac): Likewise.
19003 2016-10-18  Bruno Haible  <bruno@clisp.org>
19005         sh-quote, system-quote: revert regression of unit test.
19006         * tests/test-sh-quote.c (check_one): Do detect buffer overruns.
19007         * tests/test-system-quote-main.c (check_one): Likewise.
19009 2016-10-16  Pádraig Brady  <P@draigBrady.com>
19011         quotearg: fix stale tests
19012         * tests/test-quotearg.c [locale_results]: Add the missing str7
19013         entries to the expected results.
19014         * tests/test-system-quote-main.c (check_one): Don't enforce that we
19015         don't write beyond the returned length, since that's no longer the
19016         case if we switch to a more concise quoting style.
19017         * tests/test-sh-quote.c (check_one): Likewise.
19018         (main): Adjust for the new more concise quoting style.
19019         Reported by Bruno Haible.
19021 2016-10-16  Jim Meyering  <meyering@fb.com>
19023         non-recursive-gnulib-prefix-hack: fix inconsequential typo
19024         * m4/non-recursive-gnulib-prefix-hack.m4: Change a hard-coded "lib"
19025         to "$1".  This macro is always invoked with $1 == lib.
19026         Spotted by Bruno Haible
19028 2016-10-16  Bruno Haible  <bruno@clisp.org>
19030         Fix a test crash.
19031         * tests/test-duplocale.c (main): Skip the test if the 'newlocale' call
19032         fails.
19034 2016-10-16  Pádraig Brady  <P@draigBrady.com>
19036         test-limits-h: suppress -Woverlength-strings
19037         * tests/test-limits-h.c [__GNUC__]: Ignore -Woverlength-strings.
19039 2016-10-15  Bruno Haible  <bruno@clisp.org>
19041         gettime, timespec, utimens: Relicense under LGPL.
19042         * modules/gettime (License): Change to LGPL.
19043         * modules/timespec (License): Likewise.
19044         * modules/utimens (License): Likewise.
19046 2016-10-14  Bruno Haible  <bruno@clisp.org>
19047             Pádraig Brady  <P@draigBrady.com>
19049         canonicalize-lgpl: Support the case path_max > INT_MAX.
19050         * lib/canonicalize-lgpl.c (__realpath): Declare n as ssize_t, not int.
19051         Fix overflow check, for platforms where 'size_t' is larger than 'long'.
19053 2016-10-13  Jim Meyering  <meyering@fb.com>
19055         getprogname: IBM z/OS: avoid NULL-dereference
19056         * lib/getprogname.c (getprogname) [__MVS__]: Don't dereference NULL
19057         upon strdup failure.
19059 2016-10-12  Jim Meyering  <meyering@fb.com>
19061         test-stdint: use _GL_VERIFY rather than "verify" for some tests
19062         * tests/test-stdint.c (verify_width): Implement with _GL_VERIFY
19063         and an abbreviated diagnostic rather than verify with the full one,
19064         because the full-length strings would evoke warnings from gcc with
19065         -Woverlength-strings.
19067 2016-10-13  Paul Eggert  <eggert@cs.ucla.edu>
19069         stdint: port SIZE_MAX to glibc s390
19070         Problem reported by Eric Blake in:
19071         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00031.html
19072         * doc/posix-headers/stdint.texi (stdint.h): Document the fix.
19073         * m4/stdint.m4 (gl_STDINT_H): Check that SIZE_MAX has the
19074         correct type, if possible.
19076 2016-10-13  Daniel Richard G.  <skunk@iSKUNK.ORG>
19078         getprogname: port to IBM z/OS
19079         * lib/getprogname.c (getprogname): Use w_getpsent() to get the name.
19081 2016-10-11  Jim Meyering  <meyering@fb.com>
19083         maint: remove stray space after "." in AC_DEFINE comment.
19084         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Remove space-after-".".
19085         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
19087 2016-10-05  Jim Meyering  <meyering@fb.com>
19089         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
19090         * lib/long-options.c (parse_long_options): Add a break statement
19091         to avoid this new warning/failure:
19092         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
19093           --create-testdir --dir=/t/x --with-tests --test long-options
19094         ../../gllib/long-options.c: In function 'parse_long_options':
19095         ../../gllib/long-options.c:66:12: error: this statement may \
19096           fall through [-Werror=implicit-fallthrough]
19097                    (*usage_func) (EXIT_SUCCESS);
19098                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
19100 2016-10-05  Jim Meyering  <meyering@fb.com>
19102         utimecmp: avoid new GCC 7 warning from -Wbool-operation
19103         Testing this module would fail when using GCC 7 like this:
19104         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
19105           --dir=/tmp/x --with-tests --test utimecmp
19106         ../../gllib/utimecmp.c: In function ‘utimecmp’:
19107         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
19108           [-Werror=bool-operation]
19109                          time_t s = src_s & ~ (res == 2 * BILLION);
19110                                             ^
19111         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
19112           [-Werror=bool-operation]
19113                src_s &= ~ (res == 2 * BILLION);
19114                         ^
19115         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
19116         Instead, make it explicit that we intend to apply it to 0 or 1.
19118 2016-10-10  Norihiro Tanaka  <noritnk@kcn.ne.jp>
19120         dfa: save memory for states
19121         * src/dfa (dfaexec_main): Beginning of dfa execution, release caches of
19122         states if dfa has a lot of caches.
19124 2016-10-10  Eli Zaretskii  <eliz@gnu.org>
19126         wchar, wctype-h: fix for MinGW 3.22.2
19127         * lib/wchar.in.h [__MINGW32__]: Add one more condition for
19128         special invocation, to fix issues with MinGW 3.22.2 wchar.h
19129         when included from <string.h>.
19130         * lib/wctype.in.h [__MINGW32__]: Add special invocation
19131         convention for MinGW 3.22.2, to solve issues with their
19132         wctype.h when included from <ctype.h>.
19134 2016-10-05  Jim Meyering  <meyering@fb.com>
19136         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
19137         * lib/long-options.c (parse_long_options): Add a break statement
19138         to avoid this new warning/failure:
19139         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
19140           --create-testdir --dir=/t/x --with-tests --test long-options
19141         ../../gllib/long-options.c: In function ‘parse_long_options’:
19142         ../../gllib/long-options.c:66:12: error: this statement may \
19143           fall through [-Werror=implicit-fallthrough]
19144                    (*usage_func) (EXIT_SUCCESS);
19145                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
19147         utimecmp: avoid new GCC 7 warning from -Wbool-operation
19148         Testing this module would fail when using GCC 7 like this:
19149         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
19150           --dir=/tmp/x --with-tests --test utimecmp
19151         ../../gllib/utimecmp.c: In function ‘utimecmp’:
19152         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
19153           [-Werror=bool-operation]
19154                          time_t s = src_s & ~ (res == 2 * BILLION);
19155                                             ^
19156         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
19157           [-Werror=bool-operation]
19158                src_s &= ~ (res == 2 * BILLION);
19159                         ^
19160         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
19161         Instead, make it explicit that we intend to apply it to 0 or 1.
19163 2016-10-03  Pádraig Brady  <P@draigBrady.com>
19165         quotearg: minimize shell quoting using double quotes
19166         * lib/quotearg.c (quotearg_buffer_restyled): If an ASCII single
19167         quote in encountered then use double quotes (c style quoting)
19168         when possible, as it simplifies the quoting.
19169         * tests/test-quotearg-simple.c: Add test cases.
19170         * tests/test-quotearg.h (use_quotearg_buffer): Adjust to account
19171         for the fact we now may write beyond the returned length.
19173 2016-10-02  Jim Meyering  <meyering@fb.com>
19175         vasnprintf.c: avoid spurious warning from GCC 7
19176         The presence of cpp directives renders this "FALLTHROUGH" comment
19177         ineffective, so does not suppress the -Wimplicit-fallthrough warning
19178         from GCC 7 built from git on 2016-10-02.
19179         * lib/vasnprintf.c (VASNPRINTF): Move comment down past two cpp
19180         directives, so that it takes effect once again.  This is clearly
19181         not a proper change, and I will revert it once this bug is fixed:
19182         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77817
19184 2016-10-01  Jim Meyering  <meyering@fb.com>
19186         getprogname: correct the test for a __progname variable
19187         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Use AC_CACHE_CHECK
19188         and AC_LINK_IFELSE to check for a global __progname.  If found,
19189         define HAVE_VAR___PROGNAME.
19190         * lib/getprogname.c (getprogname): Reflect the new name of the
19191         feature- checked preprocessor symbol:
19192         s/HAVE_DECL___PROGNAME/HAVE_VAR___PROGNAME/
19194 2016-09-28  Jim Meyering  <meyering@fb.com>
19196         u8-uctomb-aux.c: build: placate GCC 7's new -Wimplicit-fallthrough
19197         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Mark each end of
19198         fall-through case with a /* fallthrough */ comment.
19200         dfa: build: avoid warning from GCC 7's new -Wimplicit-fallthrough
19201         * lib/dfa.c (dfassbuild): Mark the end of this case with a
19202         /* fallthrough */ comment.
19204         getprogname: avoid __progname vs program_invocation_short_name pitfall
19205         I.e., don't let the OpenBSD 5.1 fix induce failure when using newer
19206         glibc.  Would have caused failure with Fedora 25's glibc-2.24-3, but
19207         not with Fedora 24's glibc-2.23.1-10.
19208         * lib/getprogname.c (__progname): Move this declaration down...
19209         (getprogname): ... into the #elif block where used, and make it
19210         explicitly "extern".
19212         getprogname: port to OpenBSD 5.1
19213         * lib/getprogname.c (__progname) [HAVE_DECL___PROGNAME]: Declare.
19214         (getprogname) [HAVE_DECL___PROGNAME]: Return __progname or "?".
19215         * modules/getprogname (configure.ac): Move most of this code...
19216         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): ... to this function,
19217         increment serial number, and add a test for __progname.
19218         https://bugs.gnu.org/24562
19219         Reported by Nelson H. F. Beebe.
19221 2016-09-24  Paul Eggert  <eggert@cs.ucla.edu>
19223         sched: port to GCC 6.2.1 on macOS Sierra
19224         Problem reported by Denis Davydov in:
19225         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00056.html
19226         * lib/sched.in.h [HAVE_SYS_CDEFS_H]:
19227         Include <sys/cdefs.h> before <sched.h>.
19228         * m4/nproc.m4 (gl_PREREQ_NPROC): Include errno.h before sched.h,
19229         so that we needn’t worry about the sched.h include bug here.
19230         * m4/sched_h.m4 (gl_SCHED_H): Check for sys/cdefs.h,
19231         and include it before <sched.h> if it exists, when
19232         checking for <sched.h>.
19234         tests/init.sh: port Alpine fix to AIX 7.1
19235         * tests/init.sh (compare_): When attempting to use diff -U3,
19236         prefer diff -u to -U3 to -c to plain diff.  Do not insist on
19237         diff -u not outputting a space after leading '+', as the users
19238         of 'compare' should not be that picky about its output format.
19239         In the AIX 7.1 case, return with diff exit status (or with 2 if
19240         trouble), instead of some random nonzero exit status.
19241         * tests/test-init.sh (test_compare): Remove space after leading
19242         '+', so that AIX 7.1 'diff' passes the test.
19244 2016-09-22  Paul Eggert  <eggert@cs.ucla.edu>
19246         nl_langinfo: pacify GCC
19247         * lib/nl_langinfo.c (ctype_codeset): Remove unused local.
19248         (rpl_nl_langinfo): Cast string literals to char *, to pacify GCC.
19250         stdint: also set GL_GENERATE_LIMITS_H
19251         Problem reported by Jim Meyering in:
19252         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00052.html
19253         * m4/stdint.m4 (gl_STDINT_H): Also redo the AM_CONDITIONAL.
19255         limits-h, stdint: Don't assume extensions, fix typo
19256         * m4/limits-h.m4 (gl_LIMITS_H):
19257         * m4/stdint.m4 (gl_STDINT_H):
19258         Don't assume AC_USE_SYSTEM_EXTENSIONS.
19259         * m4/stdint.m4 (gl_STDINT_H): Fix typo in setting of LIMITS_H,
19260         reported by Jim Meyering in:
19261         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00050.html
19263 2016-09-21  Jim Meyering  <meyering@fb.com>
19265         getprogname: port to AIX
19266         * lib/getprogname.c (getprogname) [_AIX]: Use getpid, getprocs64
19267         and strdup to obtain a short program name string.  Using code from
19268         Bruno Haible and an idea from Bastien ROUCARIÈS, in
19269         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
19270         Assaf Gordon reported that this new file would fail to compile on
19271         AIX-7.1 32bit.
19273 2016-09-16  Paul Eggert  <eggert@cs.ucla.edu>
19275         extensions: fix typo in comment
19276         * m4/extensions.m4: Sync from Autoconf master.
19278         stdint: support new _WIDTH macros
19279         * doc/posix-headers/stdint.texi: Document this.
19280         * lib/stdint.in.h: Add support for INTMAX_WIDTH. etc.
19281         * m4/stdint.m4 (gl_STDINT_H): Require gl_LIMITS_H.  Check for
19282         support for INTMAX_WIDTH, etc. as well as for support for just C99.
19283         * modules/stdint (Depends-on): Add limits-h.
19284         (Makefile.am): Substitute HAVE_C99_STDINT_H.
19285         * modules/stdint-tests (Depends-on): Add extensions, so that
19286         INTMAX_MAX etc. are defined.
19287         * tests/test-stdint.c: Verify the new macros.
19289         limits-h: new module
19290         This adds ISO/IEC TS 18661-1:2014 support to limits.h.
19291         * MODULES.html.sh: Add limits-h,and move size_max to stdint section.
19292         * doc/posix-headers/limits.texi: Document new module.
19293         * lib/limits.in.h, m4/limits-h.m4, modules/limits-h:
19294         * modules/limit-h-tests, tests/test-limits-h.c: New files.
19296         stdio: don't redefine __USE_MINGW_ANSI_STDIO
19297         * m4/stdio_h.m4 (gl_STDIO_H): Don't define __USE_MINGW_ANSI_STDIO
19298         if it is already defined.  Apparently GNU Emacs relies on this.  See:
19299         http://lists.gnu.org/r/emacs-devel/2016-09/msg00416.html
19301 2016-09-15  Eric Blake  <eblake@redhat.com>
19303         sys_types: avoid glibc 2.25 warnings about major()
19304         * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Replace broken version in
19305         older autoconf.
19306         * doc/posix-headers/sys_types.texi (sys/types.h): Document fix.
19307         * doc/glibc-functions/gnu_dev_major.texi (gnu_dev_major): Likewise.
19308         * doc/glibc-functions/gnu_dev_makedev.texi (gnu_dev_makedev): Likewise.
19309         * doc/glibc-functions/gnu_dev_minor.texi (gnu_dev_minor): Likewise.
19311         mountlist: include sysmacros.h for glibc
19312         * m4/mountlist.m4 (gl_PREREQ_MOUTLIST_EXTRA): Include
19313         AC_HEADER_MAJOR.
19314         * lib/mountlist.c (includes): Use correct headers.
19316 2016-09-15  Paul Eggert  <eggert@cs.ucla.edu>
19318         extensions: port to more ISO C TSes
19319         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Sync from Autoconf
19320         master, to add support for more recent ISO C TRs and TSes.
19322 2016-09-13  Paul Eggert  <eggert@cs.ucla.edu>
19324         intprops: new macro TYPE_WIDTH
19325         * lib/intprops.h (TYPE_WIDTH): New macro.
19326         (TYPE_MAXIMUM, _GL_SIGNED_INT_MAXIMUM, INT_STRLEN_BOUND):
19327         * lib/ftoastr.h (_GL_FLOAT_DIG_BITS_BOUND):
19328         * lib/parse-datetime.y (parse_datetime2):
19329         Use it.
19331         extensions: port to recent ISO C TRs
19332         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
19333         Sync from Autoconf master, to add support for recent ISO C TRs.
19334         * m4/stdio_h.m4 (gl_STDIO_H): Define __USE_MINGW_ANSI_STDIO here,
19335         since AC_USE_SYSTEM_EXTENSIONS no longer does that as
19336         the MinGW option is not an extension.
19338 2016-09-11  Paul Eggert  <eggert@cs.ucla.edu>
19340         dfa: port to Solaris 9
19341         Problems reported by Tom G. Christensen in:
19342         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00031.html
19343         * modules/dfa (Depends-on): Add isblank.
19344         * modules/dfa-tests (dfa_match_aux_LDADD):
19345         Rename from test_stat_LDADD, to fix typo.
19346         * tests/dfa-match.sh: Don't require 'timeout'; use it if available.
19348 2016-09-10  Jim Meyering  <meyering@fb.com>
19350         strverscmp: avoid link failure on OS X
19351         * lib/strverscmp.c [!weak_alias]: Define __strverscmp to strverscmp.
19352         Reported by Assaf Gordon in https://bugs.gnu.org/24256#26
19354 2016-08-16  Jim Meyering  <meyering@fb.com>
19356         dfa: new module, importing grep's DFA matcher
19357         Since grep's DFA matcher is now being used by two gnulib-enabled
19358         projects, grep and sed, it makes sense to version-control its
19359         sources and unit tests in one place: here.
19360         * modules/dfa: New module.
19361         * modules/dfa-tests: New file.
19362         * lib/dfa.c: New file, from grep.
19363         * lib/dfa.h: Likewise.
19364         * lib/localeinfo.c: Likewise.
19365         * lib/localeinfo.h: Likewise.
19366         * tests/dfa-match-aux.c: Likewise.
19367         * tests/dfa-invalid-char-class.sh: Likewise.
19368         * tests/dfa-match.sh: Likewise, with minor changes.
19369         * MODULES.html.sh (Misc): Add "dfa" to this list.
19371 2016-09-09  Jim Meyering  <meyering@fb.com>
19373         getprogname-tests: don't depend on assert-h
19374         * modules/getprogname-tests (Depends-on): Remove assert-h.
19375         It was not needed, and in fact would cause build failure for
19376         coreutils on some systems.  Reported by Assaf Gordon in https:
19377         //lists.gnu.org/r/coreutils/2016-09/msg00016.html
19379 2016-09-07  Jim Meyering  <meyering@fb.com>
19381         getprogname-tests: work also when EXEEXT is nonempty
19382         * modules/getprogname-tests (Makefile.am): Define EXEEXT.
19383         * tests/test-getprogname.c (main): Use it.
19384         Suggested by Gisle Vanem.
19386 2016-09-07  Gisle Vanem  <gvanem@yahoo.no>
19388         getprogname: fix errors in previous change
19389         * lib/getprogname.c (getprogname) [HAVE_GETEXECNAME]:
19390         s/program_invocation_name/base/
19391         [HAVE_DECL___ARGV]: Handle NULL __argv or __argv[0].
19393 2016-09-08  Pádraig Brady  <P@draigBrady.com>
19395         parse-datetime: restrict debug output to input string
19396         * lib/parse-datetime.y (parse_datetime2): If we parse
19397         all of the input but determine it's invalid, ensure
19398         we don't output the now invalid input pointer.
19399         This issue was seen with `date -d 'now +1'`.
19401 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
19403         flexmember: new macro FLEXALIGNOF
19404         * lib/flexmember.h: Include <stddef.h>, for offsetof.
19405         (FLEXALIGNOF): Rename from _GL_XALLOC_ALIGNOF, as Emacs can use
19406         this macro.  Update comments.
19408 2016-09-07  Jim Meyering  <meyering@fb.com>
19410         getprogname: port to systems with __argv (mingw, msvc)
19411         * lib/getprogname.c (getprogname): Include "dirname.h" and use
19412         last_component: more general than open coding it with hard-coded "/".
19413         * lib/getprogname.h (getprogname): Prefer "char const *" consistently.
19414         * modules/getprogname (Depends-on): Add dirname-lgpl.
19415         (configure.ac): Check for __argv in <stdlib.h>.
19416         * modules/getprogname-tests: New file.
19417         * tests/test-getprogname.c: New file.
19418         Suggested by Gisle Vanem in
19419         https://lists.gnu.org/r/bug-gnulib/2016-09/msg00014.html
19421 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
19423         flexmember: port better to GCC + valgrind
19424         With a char[] flexible array member in a struct with nontrivial
19425         alignment, GCC-generated code can access past the end of the
19426         array, because GCC assumes there are padding bytes to get the
19427         struct aligned.  So the common idiom of malloc (offsetof (struct
19428         s, m), n) does not properly allocate an n-byte trailing member, as
19429         malloc’s argument should be the next multiple of alignof (struct s).
19430         See GCC Bug#66661: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
19431         Although C11 apparently permits this GCC optimization (i.e., there
19432         was a bug in Gnulib not in GCC), possibly this is a defect in C11.
19433         See the thread containing:
19434         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00317.html
19435         * lib/flexmember.h: New file.
19436         * lib/fnmatch.c, lib/fts.c, lib/glob.c, lib/idcache.c:
19437         * lib/localename.c, lib/time_rz.c:
19438         Include flexmember.h.
19439         * lib/fnmatch_loop.c (struct patternlist):
19440         * lib/localename.c (struct hash_node):
19441         Use FLEXIBLE_ARRAY_MEMBER.
19442         * lib/fnmatch_loop.c (EXT):
19443         * lib/fts.c (fts_alloc):
19444         * lib/glob.c (glob_in_dir):
19445         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
19446         * lib/localename.c (gl_lock_define_initialized):
19447         * lib/time_rz.c (tzalloc):
19448         Use FLEXSIZEOF instead of offsetof.
19449         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
19450         Check that the size of the struct can be taken.
19451         * modules/flexmember (Files): Add lib/flexmember.h.
19452         * modules/fnmatch, modules/glob, modules/localename (Depends-on):
19453         Add flexmember.
19455 2016-09-06  Paul Eggert  <eggert@cs.ucla.edu>
19457         getprogname: port to Solaris 10
19458         * lib/getprogname.c: Include stdlib.h, for getexecname decl.
19459         (getprogname) [HAVE_GETEXECNAME]: Use that, for Solaris 10.
19460         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Check for getexecname.
19462         stdalign: correct mistake in alignof doc
19463         Problem reported by Joseph Myers in:
19464         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00340.html
19465         * doc/posix-headers/stdalign.texi: Do not imply that C11 prohibits
19466         alignof(S) where S is a structure containing a flexible array
19467         member.  The Gnulib substitute does not support this, but C11 does.
19469 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
19471         main.mk: remove sc_program_name, since there is no more need to
19472         use set_program_name in tools (getprogname is enough for most
19473         of the cases).
19474         * cfg.mk (local-checks-to-skip): Remove sc_program_name.
19475         * top/maint.mk (sc_program_name): Remove.
19477 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
19479         Port tests away from progname, since modules that need the
19480         program name already depend on getprogname.
19481         * modules/acl-tests (Depends-on): Remove progname.
19482         * modules/argmatch (Depends-on): Likewise.
19483         * modules/argmatch-tests (Depends-on): Likewise.
19484         * modules/argp-tests (Depends-on): Likewise.
19485         * modules/argp-version-etc-tests (Depends-on): Likewise.
19486         * modules/array-list-tests (Depends-on): Likewise.
19487         * modules/array-oset-tests (Depends-on): Likewise.
19488         * modules/avltree-list-tests (Depends-on): Likewise.
19489         * modules/avltree-oset-tests (Depends-on): Likewise.
19490         * modules/avltreehash-list-tests (Depends-on): Likewise.
19491         * modules/carray-list-tests (Depends-on): Likewise.
19492         * modules/copy-file-tests (Depends-on): Likewise.
19493         * modules/exclude-tests (Depends-on): Likewise.
19494         * modules/fchownat-tests (Depends-on): Likewise.
19495         * modules/fdopendir-tests (Depends-on): Likewise.
19496         * modules/filenamecat-tests (Depends-on): Likewise.
19497         * modules/fstatat-tests (Depends-on): Likewise.
19498         * modules/fstrcmp-tests (Depends-on): Likewise.
19499         * modules/linked-list-tests (Depends-on): Likewise.
19500         * modules/linkedhash-list-tests (Depends-on): Likewise.
19501         * modules/mkdirat-tests (Depends-on): Likewise.
19502         * modules/nonblocking-pipe-tests (Depends-on): Likewise.
19503         * modules/nonblocking-socket-tests (Depends-on): Likewise.
19504         * modules/obstack-printf-tests (Depends-on): Likewise.
19505         * modules/openat-tests (Depends-on): Likewise.
19506         * modules/parse-datetime-tests (Depends-on): Likewise.
19507         * modules/pipe-filter-gi-tests (Depends-on): Likewise.
19508         * modules/pipe-filter-ii-tests (Depends-on): Likewise.
19509         * modules/quotearg-simple-tests (Depends-on): Likewise.
19510         * modules/quotearg-tests (Depends-on): Likewise.
19511         * modules/rbtree-list-tests (Depends-on): Likewise.
19512         * modules/rbtree-oset-tests (Depends-on): Likewise.
19513         * modules/rbtreehash-list-tests (Depends-on): Likewise.
19514         * modules/spawn-pipe-tests (Depends-on): Likewise.
19515         * modules/system-quote-tests (Depends-on): Likewise.
19516         * modules/uniname/uniname-tests (Depends-on): Likewise.
19517         * modules/uninorm/nfc-tests (Depends-on): Likewise.
19518         * modules/uninorm/nfd-tests (Depends-on): Likewise.
19519         * modules/uninorm/nfkc-tests (Depends-on): Likewise.
19520         * modules/uninorm/nfkd-tests (Depends-on): Likewise.
19521         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Likewise.
19522         * modules/unistdio/u16-vsprintf-tests (Depends-on): Likewise.
19523         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Likewise.
19524         * modules/unistdio/u32-vsprintf-tests (Depends-on): Likewise.
19525         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Likewise.
19526         * modules/unistdio/u8-vsprintf-tests (Depends-on): Likewise.
19527         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Likewise.
19528         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Likewise.
19529         * modules/unlinkat-tests (Depends-on): Likewise.
19530         * modules/version-etc-tests (Depends-on): Likewise.
19531         * modules/xalloc-die-tests (Depends-on): Likewise.
19532         * modules/xmemdup0-tests (Depends-on): Likewise.
19533         * modules/xprintf-posix-tests (Depends-on): Likewise.
19534         * modules/xvasprintf-tests (Depends-on): Likewise.
19535         * tests/test-argmatch.c: Do not include progname.h.
19536         (main) Stop calling set_program_name.
19537         * tests/test-argp-version-etc.c: Likewise.
19538         * tests/test-argp.c: Likewise.
19539         * tests/test-argv-iter.c: Likewise.
19540         * tests/test-array_list.c: Likewise.
19541         * tests/test-array_oset.c: Likewise.
19542         * tests/test-avltree_list.c: Likewise.
19543         * tests/test-avltree_oset.c: Likewise.
19544         * tests/test-avltreehash_list.c: Likewise.
19545         * tests/test-carray_list.c: Likewise.
19546         * tests/test-copy-acl.c: Likewise.
19547         * tests/test-copy-file.c: Likewise.
19548         * tests/test-exclude.c: Likewise.
19549         * tests/test-fchownat.c: Likewise.
19550         * tests/test-fdopendir.c: Likewise.
19551         * tests/test-filenamecat.c: Likewise.
19552         * tests/test-fstatat.c: Likewise.
19553         * tests/test-fstrcmp.c: Likewise.
19554         * tests/test-linked_list.c: Likewise.
19555         * tests/test-linkedhash_list.c: Likewise.
19556         * tests/test-mkdirat.c: Likewise.
19557         * tests/test-nonblocking-pipe-main.c: Likewise.
19558         * tests/test-nonblocking-socket-main.c: Likewise.
19559         * tests/test-obstack-printf.c: Likewise.
19560         * tests/test-openat.c: Likewise.
19561         * tests/test-parse-datetime.c: Likewise.
19562         * tests/test-pipe-filter-gi1.c: Likewise.
19563         * tests/test-pipe-filter-gi2-main.c: Likewise.
19564         * tests/test-pipe-filter-ii1.c: Likewise.
19565         * tests/test-pipe-filter-ii2-main.c: Likewise.
19566         * tests/test-quotearg-simple.c: Likewise.
19567         * tests/test-quotearg.c: Likewise.
19568         * tests/test-rbtree_list.c: Likewise.
19569         * tests/test-rbtree_oset.c: Likewise.
19570         * tests/test-rbtreehash_list.c: Likewise.
19571         * tests/test-sameacls.c: Likewise.
19572         * tests/test-set-mode-acl.c: Likewise.
19573         * tests/test-spawn-pipe-main.c: Likewise.
19574         * tests/test-system-quote-main.c: Likewise.
19575         * tests/test-unlinkat.c: Likewise.
19576         * tests/test-version-etc.c: Likewise.
19577         * tests/test-xalloc-die.c: Likewise.
19578         * tests/test-xfprintf-posix.c: Likewise.
19579         * tests/test-xmemdup0.c: Likewise.
19580         * tests/test-xprintf-posix.c: Likewise.
19581         * tests/test-xvasprintf.c: Likewise.
19582         * tests/uniname/test-uninames.c: Likewise.
19583         * tests/uninorm/test-u32-nfc-big.c: Likewise.
19584         * tests/uninorm/test-u32-nfd-big.c: Likewise.
19585         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
19586         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
19587         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
19588         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
19589         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
19590         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
19591         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
19592         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
19593         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
19594         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
19595         * tests/test-c-stack.c: (program_name): Do not define.
19596         (main): Do not set program_name.
19597         * tests/test-closein.c: Likewise.
19598         * tests/test-xstrtol.c: Likewise.
19599         * tests/test-yesno.c: Likewise.
19601 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
19603         Port modules to use getprogname explicitly, instead of requiring
19604         progname to be used (or program_name to be provided).
19605         * lib/argmatch.c: Do not include progname.h.
19606         [TEST] (program_name): Do not define.
19607         [TEST] (main): Call getprogname instead of using program_name.
19608         * lib/c-stack.c: Do not include progname.h.
19609         (program_name): Do not define.
19610         (die): Call getprogname instead of using program_name.
19611         * lib/chdir-long.c: Do not include progname.h.
19612         [TEST_CHDIR] (main): Do not set program_name.
19613         * lib/error.c [!_LIBC]: Include progname.h.
19614         [!_LIBC] (program_name): Define using getprogname.
19615         * lib/euidaccess.c: Do not include progname.h.
19616         [TEST] (main): Do not set program_name.
19617         * lib/git-merge-changelog.c: Include getprogname.h instead of
19618         progname.h.
19619         (usage): Call getprogname instead of using program_name.
19620         (main): Likewise.  Stop calling set_program_name.
19621         * lib/group-member.c: Do not include progname.h.
19622         [TEST] (main): Do not set program_name.
19623         * modules/argmatch (Depends-on): Add getprogname.
19624         * modules/c-stack (Depends-on): Likewise.
19625         * modules/error (Depends-on): Likewise.
19626         * modules/git-merge-changelog (Depends-on): Likewise.
19627         Also remove progname.
19629 2016-09-05  Pino Toscano  <ptoscano@redhat.com>
19631         * NEWS: Document the deprecation of the 'progname' module.
19633 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
19635         getprogname: new module
19636         This provides a LGPL module for getting the name of the current
19637         program, using the same API found on *BSD systems.
19638         * lib/getprogname.c, lib/getprogname.h, m4/getprogname.m4:
19639         * modules/getprogname: New files.
19640         * MODULES.html.sh (Misc): Add getprogname.
19642 2016-09-02  Jim Meyering  <meyering@fb.com>
19644         manywarnings: add -fno-common
19645         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -fno-common
19646         to the list.  Quoting the manual, "Compiling with -fno-common is
19647         useful on targets for which it provides better performance, or if
19648         you wish to verify that the program will work on other systems that
19649         always treat uninitialized variable declarations this way [putting
19650         it in the data section]."  If diffutils had been using this sooner,
19651         it would have prevented this duplicate declaration issue:
19652         http://git.sv.gnu.org/cgit/diffutils.git/commit/?id=v3.4-10-gc2dc91f
19654 2016-08-31  Simon Josefsson  <simon@josefsson.org>
19656         parse-datetime: Fix typo.
19657         * lib/parse-datetime.y (parse_datetime2): Fix typo.
19659 2016-08-30  Paul Eggert  <eggert@cs.ucla.edu>
19661         intprops: tune INT_NEGATE_OVERFLOW for GCC 5 and 6
19662         * lib/intprops.h (INT_NEGATE_OVERFLOW): Tune for platforms like
19663         GCC 5 and 6 that have __builtin_sub_overflow but not
19664         __builtin_sub_overflow_p.  With the recent changes, these
19665         platforms are a tiny bit faster with the INT_NEGATE_RANGE_OVERFLOW
19666         implementation than with INT_SUBTRACT_OVERFLOW implementation,
19667         since the former needs just one runtime comparison whereas the
19668         latter needs two.
19670         strverscmp: sync with glibc
19671         Although this doesn't exactly synchronize with glibc
19672         byte-for-byte, it makes the code behave the same as glibc.
19673         * lib/strverscmp.c (S_I, S_F, S_Z): Now masks, not powers of 2.
19674         (ISDIGIT): Remove, as glibc is sticking with isdigit, and the
19675         difference shouldn't matter in practical use.  All uses changed
19676         back to isdigit.
19677         (__strverscmp, strverscmp): Use new glibc method for weak aliases.
19678         (next_state): Now unsigned char array; redo elements.
19679         (result_type): Now signed char array; redo elements.
19680         (__strverscmp): Fix glibc bug 9913 by using new states.
19681         * tests/test-strverscmp.c (main): Test glibc bug 9913.
19683 2016-08-29  Jim Meyering  <meyering@fb.com>
19685         xalloc-oversized.h: port __builtin_mul_overflow change to GCC 6.2.0
19686         * lib/xalloc-oversized.h: Port this change to GCC 6.2.0, too,
19687         similarly to how it was done to intprops.h.
19689 2016-08-29  Paul Eggert  <eggert@cs.ucla.edu>
19691         intprops.h: port recent changes to GCC 6.2.0
19692         * lib/intprops.h (__has_builtin): Move earlier.
19693         (_GL_HAS_BUILTIN_OVERFLOW): Rename from
19694         _GL_HAS_BUILTIN_OVERFLOW_WITH_NULL and don't worry about whether
19695         the last argument can be null.  All uses changed.
19696         (_GL_HAS_BUILTIN_OVERFLOW_P): Also test __has_builtin.
19697         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
19698         Don't try to use 3rd arg null, as this doesn't work on GCC 6.2.0
19699         and it's not clear which GCC versions it works for.
19700         (_GL_INT_OP_WRAPV): Use _GL_HAS_BUILTIN_OVERFLOW instead of
19701         its definiens.
19703         intprops.h: use __typeof__ with GCC 7
19704         * lib/intprops.h (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW)
19705         (_GL_MULTIPLY_OVERFLOW): Use __typeof__ as in the GCC manual.
19706         This avoids computing the expression's value (which might overflow!).
19708 2016-08-29  Jim Meyering  <meyering@fb.com>
19710         intprops.h, xalloc-oversized.h: work with gcc 7
19711         In gcc 6, __builtin_add_overflow, __builtin_sub_overflow and
19712         __builtin_mul_overflow each accept a NULL pointer as the third
19713         argument.  However in gcc 7, that is no longer accepted.
19714         Instead, one must use the "_p"-suffixed names, with which, the
19715         third parameter is no longer a pointer.
19716         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): Correct
19717         the definition: not true for gcc 7 and subsequent.
19718         (_GL_HAS_BUILTIN_OVERFLOW_P): Define.
19719         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
19720         Provide new definitions for gcc 7 and subsequent.
19721         * lib/xalloc-oversized.h (xalloc_oversized): Provide a definition
19722         that works with gcc-7.
19724         intprops.h: fix missing-backslash problems
19725         * lib/intprops.h (_GL_ADD_OVERFLOW): Add backslash.
19726         (_GL_SUBTRACT_OVERFLOW,_GL_MULTIPLY_OVERFLOW): Likewise.
19728 2016-08-24  Paul Eggert  <eggert@cs.ucla.edu>
19730         intprops: fix paren typo on old platforms
19731         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300#13
19732         * lib/intprops.h (_GL_INT_OP_WRAPV_LONGISH)
19733         [__GNUC__ < 5 && !__has_builtin (__builtin_add_overflow)
19734         && (__STDC_VERSION__ < 201112 || _GL__GENERIC_BOGUS)
19735         && !defined LLONG_MAX]:
19736         Remove stray paren.
19738         intprops: port to OpenVMS
19739         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300
19740         * doc/posix-headers/limits.texi: Document the problem.
19741         * lib/intprops.h (LLONG_MAX, LLONG_MIN) [__INT64_MAX]:
19742         Define if not already defined.
19744 2016-08-19  Assaf Gordon  <assafgordon@gmail.com>
19746         parse-datetime: improve debug implementation
19747         Follow-up to commit 12ad79069 ("add optional debug printing").
19748         Improve parse-datetime's debug implementation: remove macros,
19749         replace global debug flag variable with a function parameter,
19750         use nstrftime for formatting.
19751         See: https://lists.gnu.org/r/bug-gnulib/2016-08/msg00021.html
19752         * lib/parse-datetime.h: (parse_datetime_debug): Remove global extern.
19753         (parse_datetime2): New function, accepts 'flags' parameter, supporting
19754         debug flag. Existing interface 'parse_datetime' left unmodified.
19755         * lib/parse-datetime.c: (parse_datetime_debug): Remove global variable.
19756         (struct parser_control): add 'parse_datetime_debug' member variable.
19757         (parse_datetime): Call new function 'parse_datetime2' without debug.
19758         (parse_datetime2): Adapted from previous 'parse_datetime', initialize
19759         pc.parse_datetime_debug variable as needed.
19760         (to_year): Accept new flags parameter, instead of using global variable.
19761         (debug_print_current_time,debug_print_relative_time,debug_mktime_not_ok):
19762         use struct 'debug' variable instead of global variable.
19763         (DEBUG,DEBUG_PRINT_CURRENT_TIME,DEBUG_PRINT_RELATIVE_TIME,
19764         DEBUG_MKTIME_NOT_OK,PROGRESS,PROGRESS0): Remove macros. Call
19765         correspnding functions directly instead of using macros.
19766         * modules/parse-datetime: Add gnulib's strftime module.
19768 2016-08-19  Daniel Richard G.  <skunk@iSKUNK.ORG>
19770         c-strcase-tests: port to EBCDIC
19771         * tests/test-c-strncasecmp.c: Allow two c_strncasecmp calls
19772         which assume ASCII encoding semantics to run only in ASCII
19773         mode, as they fail in EBCDIC.
19775         sigpipe-tests: fix typo
19776         * tests/test-sigpipe.sh: C, not B.
19778 2016-08-18  Paul Eggert  <eggert@cs.ucla.edu>
19780         canonicalize-lgpl: fix errno after malloca fails
19781         This fixes a typo I recently introduced.  Suggested by Bruno Haible in:
19782         http://lists.gnu.org/r/bug-gnulib/2016-08/msg00039.html
19783         * lib/canonicalize-lgpl.c (__realpath):
19784         Don't assume malloca sets errno on failure.
19786 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
19788         strtod: port errno handling to z/OS
19789         * lib/strtod.c (strtod): Save and restore errno more reliably.
19791 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
19793         strtod: port to z/OS
19794         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
19795         implementation.
19797 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
19799         strtod: port to z/OS
19800         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
19801         implementation.
19803         regex, string: rename to avoid '__string'
19804         * lib/regex.h, lib/string.in.h: Do not use the identifier
19805         '__string', as it is effectively reserved by string.h on z/OS.
19807         c-strcase-tests, wcwidth-tests: depend on c-ctype
19808         * modules/c-strcase-tests, modules/wcwidth-tests (Depends-on):
19809         Add c-ctype.
19811 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
19813         thread: port to z/OS
19814         * lib/glthread/thread.c, lib/glthread/thread.h:
19815         Rudimentary gl_thread support for z/OS.
19817         maint: port tests to z/OS errno behavior
19818         * tests/test-nonblocking-reader.h:
19819         * tests/test-nonblocking-writer.h:
19820         Accommodate z/OS errno code preferences. (I believe this should
19821         still be within spec; IBM is good at following the letter if not
19822         the spirit of such things.)
19824         maint: preprocessor changes to support z/OS
19825         * lib/alloca.in.h, lib/fnmatch.c, lib/get-rusage-as.c:
19826         * lib/glob.c, lib/math.in.h, lib/ptsname_r.c:
19827         * tests/infinity.h, tests/nan.h, tests/test-canonicalize-lgpl.c:
19828         * tests/test-nonblocking-pipe.h:
19830         fclose, strstr-simple, wchar: port to z/OS
19831         * m4/fclose.m4, m4/strstr.m4, m4/wchar_h.m4:
19832         Changes to the Autoconf M4 code to support z/OS.  Note that
19833         fclose() is broken in a different way on z/OS than it is on other
19834         systems, thus the special-case in fclose.m4.
19836         iconv_open-utf-tests, iconv-tests: port to EBCDIC
19837         * tests/test-iconv-utf.c, tests/test-iconv.c:
19838         Added appropriately conditional #pragmas so that the test strings
19839         in test-iconv-utf.c are correctly interpreted in ASCII instead of
19840         EBCDIC (i.e. 'J' == 0x4A and not 0xD1). This issue could be
19841         addressed in a more portable way by simply rewriting all the ASCII
19842         literal characters as octal escapes, but then you would lose the
19843         partial readability that the strings have now. Also, iconv_open()
19844         on z/OS does not recognize "ISO-8859-1", but "ISO8859-1" works.
19846         c-strcase-tests, wcwidth-tests: port to EBCDIC
19847         * tests/test-c-strcasecmp.c: Include c-ctype.h.
19848         (main) [!C_CTYPE_ASCII]: Skip tests that assume ASCII.
19849         * tests/test-wcwidth.c: Likewise.
19851 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
19853         stdbool: don't require _Bool for C++
19854         Problem reported by David Seifert in:
19855         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00005.html
19856         * NEWS, doc/posix-headers/stdbool.texi (stdbool.h): Document this.
19857         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Make the check
19858         more-forgiving for C++, in that it requires only 'bool'.  Be a bit
19859         stricter about checking that bool and _Bool are compatible in C.
19861 2016-08-16  Paul Eggert  <eggert@cs.ucla.edu>
19863         getdelim: remove dependency on realloc-posix
19864         * lib/canonicalize-lgpl.c (alloc_failed)
19865         [!FUNC_REALPATH_WORKS || defined _LIBC]: New function,
19866         (__realpath) [!FUNC_REALPATH_WORKS || defined _LIBC]: Use it.
19867         Use __set_errno where needed, for consistency.
19868         * lib/getdelim.c (alloc_failed): New function.
19869         (getdelim): Use it.
19871 2016-08-09  Assaf Gordon  <assafgordon@gmail.com>
19873         parse-datetime: add optional debug printing
19874         Print parsing information, warnings, and errors to stderr.
19875         * lib/parse-datetime.h (parse_datetimte_debug): New global variable.
19876         * lib/parse-datetime.y:
19877         (DEBUG_*):  Macros calling debug functions if debugging is enabled.
19878         (PROGRESS*): Same as DEBUG, for progress reporting.
19879         (dbg_printf): Print message to stderr, with 'date' prefix.
19880         (struct parser_control): Add 'debug_*_seen' variables.
19881         (str_days): Converts day ordinal/number to string (e.g. 'last wed').
19882         (debug_print_current_time, debug_print_relateive_time): Prints the
19883         current/relative date/time value of parser_control.
19884         (YACC parser syntax): Print parsed parts with DEBUG_* macros.
19885         (to_year): Warn about 2-digit year parsing.
19886         (yylex):   Warn about unrecognized words.
19887         (get_effective_timezone): Returns current timezone in minutes.
19888         (debug_strf{time,date,datetime}): Convert 'struct tm' to string as
19889         clearly and unambigiously as possible.
19890         (debug_mktime_not_ok): Print detailed information about failed
19891         date/time values.
19892         (parse_datetime): Add DEBUG messages for failures, warnings. Add
19893         PROGRESS messages for status messages.
19894         * modules/parse-datetime: Add 'timegm', 'gettext-h' dependencies.
19896 2016-08-06  Jim Meyering  <meyering@fb.com>
19898         tests/init.sh: exclude dash with bad "local" semantics
19899         * tests/init.sh (gl_shell_test_script_): Add a function to
19900         eliminate a shell like "dash" (unlike bash, zsh) that has
19901         surprising/risky "local var='...'" semantics.  Inspired by
19902         the problem and discussion in https://bugs.gnu.org/24116#11.
19904 2016-08-02  Ján Tomko  <jtomko@redhat.com>
19906         maint.mk: expand the prohibit_doubled_word regex
19907         This check has a static list of words that are checked for
19908         repetitions.  Expand it before running the perl script to
19909         avoid using expensive captures.  This decreases the cost
19910         for libvirt from 1.66s to 0.66s.
19911         * top/maint.mk (prohibit_doubled_word_expanded_): Define.
19912         (sc_prohibit_doubled_word): Use it.
19914 2016-07-26  Ján Tomko  <jtomko@redhat.com>
19916         useless-if-before-free: skip non-matching lines early
19917         * build-aux/useless-if-before-free: First match each line with the
19918         simple/quick /\bif\b/ and reject if there is no match. This often
19919         saves the cost of the much more involved regular expression.
19920         For libvirt, this decreases the cost from 1.44s to 1.02s.
19922 2016-07-26  Ján Tomko  <jtomko@redhat.com>
19924         maint.mk: speed up sc_po_check
19925         sc_po_check would skip files based on their names, or on the
19926         existence of files with derived names. Rewrite it to use perl
19927         instead of shell to make the check faster.
19928         * top/maint.mk (perl_translatable_files_list_): Define.
19929         (sc_po_check): Use it.
19931 2016-07-30  Ján Tomko  <jtomko@redhat.com>
19933         maint.mk: speed up require_config_h_first
19934         Instead of spawning three processes per file,
19935         rewrite the check in perl and run it once for all the files.
19936         * top/maint.mk (perl_config_h_first_): Define.
19937         (sc_require_config_h_first): Use it in place of shell code.
19939 2016-07-26  Ján Tomko  <jtomko@redhat.com>
19941         maint.mk: speed up sc_po_check
19942         sc_po_check would skip files based on their names, or on the
19943         existence of files with derived names. Rewrite it to use perl
19944         instead of shell to make the check faster.
19945         * top/maint.mk (perl_translatable_files_list_): Define.
19946         (sc_po_check): Use it.
19948 2016-07-15  Paul Eggert  <eggert@cs.ucla.edu>
19950         obstack: pacify GCC 6 with -Wnull-dereference
19951         Problem reported by Assaf Gordon in:
19952         http://lists.gnu.org/r/bug-gnulib/2016-07/msg00028.html
19953         * lib/obstack.c, lib/obstack.h (obstack_alloc_failed_handler):
19954         Declare with __attribute_noreturn__.
19955         * lib/obstack.h (__attribute_noreturn__): New macro.
19957 2016-07-13  Eric Blake  <eblake@redhat.com>
19959         doc: mention glibc, OS X, Cygwin [S]SIZE_MAX buglet
19960         * doc/posix-headers/stdint.texi (stdint.h): Document the bugs.
19961         * doc/posix-headers/limits.texi (limits.h): Document the bugs.
19963 2016-07-13  Paul Eggert  <eggert@cs.ucla.edu>
19965         doc: mention glibc SSIZE_MAX buglet
19966         * doc/posix-headers/limits.texi (limits.h): Document the bug.
19968 2016-07-04  Martin Kletzander  <mkletzan@redhat.com>
19970         printf-posix: Fix mingw build
19971         Commit 54615b95ff238e235e806855efc46a9abad09f2e changed the regular
19972         expression for detecting C symbol prefixes but forgot to qoute square
19973         brackets in the command line arguments for grep.  That way when
19974         building with mingw the condition was false although it ought to be
19975         true instead.  In particular scenarios this led to the following
19976         compile error:
19978             Cannot export rpl_printf: symbol not found
19979             Cannot export rpl_scanf: symbol not found
19980             collect2: error: ld returned 1 exit status
19982         Fix this by properly quoting square brackets.
19984 2016-07-03  Paul Eggert  <eggert@cs.ucla.edu>
19986         mktime: call tzset as per POSIX
19987         Problem reported by Ludovic Courtès in:
19988         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00068.html
19989         * lib/mktime.c (mktime) [!_LIBC && HAVE_TZSET]: Call tzset.
19990         * m4/mktime.m4 (gl_FUNC_MKTIME): Check for tzset.
19992 2016-06-26  Pádraig Brady  <P@draigBrady.com>
19994         fts: handle readdir() errors
19995         * lib/fts.c (fts_build): readdir(3) returns NULL when finished,
19996         but also upon error when it will also set errno.  Therefore
19997         flag the error case from readdir().  We treat the case where
19998         no items are read the same as if the dir can't be accessed,
19999         i.e. by setting fts_errno to FTS_DNR.
20001 2016-06-24  Paul Eggert  <eggert@cs.ucla.edu>
20003         intprops: port better to GCC 7
20004         GCC 7 __builtin_add_overflow supports a new usage form, where the
20005         last argument is a null pointer, and which merely returns 1 if an
20006         overflow would occur.  This is a constant expression if all
20007         arguments are constants, and should generate faster code when code
20008         needs to be generated.
20009         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): New macro.
20010         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
20011         Use builtin operations if available.
20012         (INT_NEGATE_OVERFLOW): Prefer INT_SUBTRACT_OVERFLOW if builtin
20013         operations are available, as it's almost surely faster.
20015 2016-06-23  Paul Eggert  <eggert@cs.ucla.edu>
20017         intprops-test: port to GCC 6
20018         * tests/test-intprops.c: Ignore -Woverflow if any GCC version,
20019         since the bug is not fixed in GCC 6.1.
20021 2016-06-13  Paul Eggert  <eggert@cs.ucla.edu>
20023         xalloc-oversized: port to GCC 7; fewer warnings
20024         GCC 7 will have a better way to deal with integer overflow.
20025         Plus, fix a warnings problem reported by Tim Ruehsen in:
20026         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00022.html
20027         * lib/xalloc-oversized.h (__xalloc_oversized): New macro.
20028         (xalloc_oversized): Use plain __builtin_mul_overflow if GCC 7 or later.
20029         For GCC 5, use __xalloc_oversized if both args are constants,
20030         or if pedantic.
20032 2016-06-08  Paul Eggert  <eggert@cs.ucla.edu>
20034         regex: port to Sun C
20035         Reported by Daiki Ueno.
20036         * lib/regcomp.c (regcomp, regerror): Use _Restrict_, not
20037         __restrict, in prototype.  This fixes a problem I introduced in
20038         the 2016-02-19 merge from glibc.
20040 2016-05-31  Paul Eggert  <eggert@cs.ucla.edu>
20042         stdbool: Restore __bool_true_false_are_defined check
20043         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL):
20044         __bool_true_false_are_defined is still defined, even with C++11.
20046 2016-05-31  David Seifert  <soap@gentoo.org>  (tiny change)
20048         stdbool: Port AC_CHECK_HEADER_STDBOOL to C++11
20049         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Port to C++11.
20051 2016-05-30  Paul Eggert  <eggert@cs.ucla.edu>
20053         Use GCC_LINT, not lint
20054         FreeBSD and Cygwin #define _Noreturn to empty if 'lint' is defined.
20055         Problem reported by Ken Brown in: http://bugs.gnu.org/23640
20056         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
20057         Document problem with lint and _Noreturn.
20058         * lib/diffseq.h (IF_LINT, IF_LINT2):
20059         * lib/fts.c (sccsid):
20060         * lib/getndelim2.c (IF_LINT):
20061         * lib/gl_anylinked_list2.h (gl_linked_iterator)
20062         (gl_linked_iterator_from_to):
20063         * lib/gl_anytree_list2.h (gl_tree_iterator)
20064         (gl_tree_iterator_from_to):
20065         * lib/gl_anytree_oset.h (gl_tree_iterator):
20066         * lib/gl_array_list.c (gl_array_iterator)
20067         (gl_array_iterator_from_to):
20068         * lib/gl_array_oset.c (gl_array_iterator):
20069         * lib/gl_carray_list.c (gl_carray_iterator)
20070         (gl_carray_iterator_from_to):
20071         * lib/idcache.c:
20072         * lib/inet_ntop.c (IF_LINT):
20073         * lib/regcomp.c (build_charclass_op, create_tree):
20074         * lib/regex_internal.c (re_acquire_state)
20075         (re_acquire_state_context):
20076         * lib/trigl.c (rcsid):
20077         * lib/trim.c (IF_LINT):
20078         * lib/vasnprintf.c (IF_LINT):
20079         * lib/verify.h (assume):
20080         Treat GCC_LINT like lint.
20082 2016-05-29  Bruno Haible  <bruno@clisp.org>
20084         secure_getenv: Port to many more platforms.
20085         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV): Also check for get*id
20086         functions.
20087         * lib/secure_getenv.c (secure_getenv): Add alternate implementations
20088         for non-BSD Unix platforms and for native Windows.
20089         * doc/glibc-functions/secure_getenv.texi: Remove known issue.
20090         Prompted by a request from Nikos Mavrogiannopoulos.
20092 2016-05-27  Eric Blake  <eblake@redhat.com>
20094         canonicalize: Fix broken probe for realpath.
20095         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Fix regression
20096         in logic introduced in 54615b95.
20098 2016-05-26  Eric Blake  <eblake@redhat.com>
20100         unsetenv: relax to LGPLv2+
20101         * modules/unsetenv (License): Match setenv license.
20103 2016-05-20  Ludovic Courtès  <ludo@gnu.org>
20105         gendocs.sh: Set default TOP_NODE_UP_URL in HTML output.
20106         Suggested by Gavin Smith <gavinsmith0123@gmail.com>.
20107         Reported by myglc2 <myglc2@gmail.com> in <http://bugs.gnu.org/22651>.
20108         * build-aux/gendocs.sh (MANUAL_TITLE, PACKAGE, EMAIL)
20109         (commonarg, dirargs, dirs, infoarg, generate_ascii)
20110         (generate_html, generate_info, generate_tex, outdir)
20111         (source_extra, split, srcfile, texarg): Move above 'version'.
20112         (htmlarg): Likewise, and add "-c TOP_NODE_UP_URL=/manual".
20114 2016-05-17  Paul Eggert  <eggert@cs.ucla.edu>
20116         manywarnings: update for GCC 6.1
20117         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
20118         Add GCC 6.1 options that apply to C.
20119         * build-aux/gcc-warning.spec: Add GCC 6.1 options that
20120         do not apply to C, are obsolescent, etc.
20122 2016-05-12  Paul Eggert  <eggert@cs.ucla.edu>
20124         glob: size_t overflow checks
20125         * lib/glob.c (__has_builtin): New macro.
20126         (size_add_wrapv, glob_use_alloca): New static functions.
20127         (glob, glob_in_dir): Check for size_t overflow in several places,
20128         and fix some size_t checks that were not quite right.
20130         glob: don't assume INT_MAX < SIZE_MAX
20131         * lib/glob.c (glob): Prefer SIZE_MAX to ~((size_t) 0), as the
20132         latter is not portable to (probably theoretical) hosts where
20133         SIZE_MAX <= INT_MAX.
20135 2016-05-09  Bruno Haible  <bruno@clisp.org>
20137         Fix undefined behaviour in gettext.h.
20138         * lib/gettext.h (dcpgettext_expr, dcnpgettext_expr): Avoid accessing a
20139         pointer's value after the storage it points to has been freed.
20140         Reported by Michael Pyne in https://savannah.gnu.org/bugs/?47847.
20141         Spotted by Coverity.
20143 2016-05-08  Paul Eggert  <eggert@cs.ucla.edu>
20145         git-version-gen: avoid undefined shift
20146         Problem reported by Mosè Giordano in:
20147         http://lists.gnu.org/r/bug-gnulib/2016-05/msg00012.html
20148         * build-aux/git-version-gen: Avoid undefined behavior if invoked
20149         with --prefix or --fallback but without a later argument.  While
20150         we're at it, omit unnecessary quotes.
20152 2016-05-04  Paul Eggert  <eggert@cs.ucla.edu>
20154         glob: merge glibc changes into lib/glob.c
20155         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c,
20156         dated 2016-05-04 12:09:35 2016 +0200.  Here are the changes:
20157         2016-05-04 CVE-2016-1234: glob: Do not copy d_name field of
20158           struct dirent [BZ #19779]
20159         2016-04-29 glob: Simplify the interface for the GLOB_ALTDIRFUNC
20160           callback gl_readdir
20161         2015-10-20 Convert miscellaneous function definitions to prototype style
20162         2015-10-20 Convert 113 more function definitions to prototype style
20163           (files with assertions)
20164         2015-06-12 Fix getlogin_r namespace (bug 18527).
20165         2014-02-10 Use glibc_likely instead __builtin_expect.
20166         2013-10-20 When glob pattern contains a trailing slash match only
20167           directories. Fixes bug 10278.
20168         2013-09-04 glob: silence -Wattribute warnings
20169         2013-06-07 Avoid use of "register" as optimization hint.
20170         2012-09-25 Use size_t instead of int for internal variables in glob
20171           (bug 14621)
20172         2011-07-20 Check for overflows in expressions
20173         2011-05-28 Remove unused variable
20174         2011-05-22 Add a few more alloca size checks
20175         2010-03-27 Whitespace fixes
20176         2010-03-27 Fix one more issue with the glob patch
20177         2010-03-24 Fix glob with empty pattern
20178         2008-05-27 Remove useless more "if" tests before "free"
20179         * modules/glob (Depends-on): Add stdint.
20181 2016-05-01  Paul Eggert  <eggert@cs.ucla.edu>
20183         mktime: port to stricter signed overflow checking
20184         * lib/mktime.c: Omit 'pragma GCC optimize ("wrapv")'.
20185         (long_int): Require width for INT_MAX * 3 * (seconds per year),
20186         instead of merely for INT_MAX * 2.  In practice platforms that
20187         do the latter also do the former.
20188         (TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT, SHR): Remove.
20189         (shr): New static function, replacing SHR.  All uses changed.
20190         (mktime_min, mktime_max): New constants, replacing TIME_T_MIN
20191         and TIME_T_MAX.  All uses changed.
20192         (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
20193         Use long_int, not time_t.
20194         (long_int_avg): New static function, replacing time_t_avg.
20195         All uses changed.  Round toward positive infinity, as that
20196         generates slightly better code.
20197         (time_t_add_ok, time_t_int_add_ok): Remove.  All uses replaced
20198         by INT_ADD_WRAPV.
20199         (guess_time_tm): Accept time, not a pointer to it.  All uses changed.
20200         (convert_time): New static function.
20201         (ranged_convert): Use it
20202         (ranged_convert): Check for *T out of [mktime_min, mktime_max] range.
20203         Use simpler test for loop exit.
20204         (__mktime_internal): Store negative of guessed offset, to simplify
20205         overflow checking.  Remove no-longer-needed test for small time_t
20206         overflows.
20208         mktime: speed up DEBUG_MKTIME benchmarks
20209         Call tzset just once, at the start, rather than for every test
20210         case.  This lets us measure the CPU cost of mktime as opposed to
20211         that of tzset.  This is relevant when TZ is not set and glibc is
20212         being used.  This speeds up tests by a factor of 40 on my Fedora
20213         23 x86-64 platform.
20214         * lib/mktime.c (main) [DEBUG_MKTIME]: Call localtime at the start,
20215         to call tzset and as a sanity check.  Later on, use localtime_r
20216         instead of localtime.
20218         mktime: resurrect DEBUG_MKTIME testing
20219         * lib/mktime.c [DEBUG_MKTIME]: Do not include <config.h>.
20220         Include <string.h>, for strcmp.
20222         mktime: simplify DEBUG_MKTIME
20223         * lib/mktime.c (DEBUG_MKTIME): Define to 0 if not defined.
20224         Simplify later usage accordingly.
20226         Port mktime_internal offset to unsigned time_t
20227         This avoids some assumptions about wraparound arithmetic on
20228         signed integer overflow.
20229         * lib/mktime-internal.h (mktime_offset_t): New type.
20230         (mktime_internal): Use it in decl.
20231         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]: New type.
20233         * lib/mktime.c (__mktime_internal, localtime_offset):
20234         * lib/timegm.c (timegm): Use it.
20235         * m4/mktime.m4 (gl_TIME_T_IS_SIGNED): New macro.
20236         (gl_FUNC_MKTIME): Require it.
20238 2016-04-27  Paul Eggert  <eggert@cs.ucla.edu>
20240         xstrtol: prohibit monstrosities like "1bB"
20241         Problem reported by Young Mo Kang in: http://bugs.gnu.org/23388
20242         * lib/xstrtol.c (__xstrtol): Allow trailing second suffixes like
20243         "B" only if the first suffix needs a base.
20244         * tests/test-xstrtol.sh: Test this.
20246 2016-04-21  Pádraig Brady  <P@draigBrady.com>
20248         xstrtod: reinstate setting of *result upon ERANGE
20249         * lib/xstrtod.c (XSTRTOD): The user may decide to use
20250         the returned limits upon ERANGE, so allow and document that.
20252 2016-04-20  Tino Calancha  <f92capac@gmail.com>  (tiny change)
20254         xstrtod: modify *result only if no errors
20255         * lib/xstrtod.c (XSTRTOD).
20257 2016-04-19  Paul Eggert  <eggert@cs.ucla.edu>
20259         btowc: document problems in C locale
20260         * doc/posix-functions/btowc.texi (btowc): Mention incompatibility
20261         with mbrtowc.  See: http://bugs.gnu.org/23269#32
20263 2016-04-13  Paul Eggert  <eggert@cs.ucla.edu>
20265         mktime: improve integer overflow checking
20266         * lib/mktime.c: Include stdbool.h, intprops.h, verify.h.
20267         (WRAPV): Remove; no longer needed.
20268         (verify): Remove.  Replace all uses with call to verify.h 'verify'.
20269         (TYPE_IS_INTEGER, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
20270         Remove.  Use intprops.h defns instead.
20271         (leapyear, isdst_differ, time_t_add_ok, time_t_int_ok):
20272         Use bool for Boolean, for clarity.
20273         (time_t_add_ok, time_t_int_add_ok): Use INT_ADD_WRAPV to
20274         detect integer overflow.
20275         * modules/mktime (Depends-on): Add intprops, stdbool, verify.
20277         intprops: check two's complement assumption
20278         Suggested by Eric Blake in:
20279         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00016.html
20280         * lib/intprops.h: Include <verify.h>.  Verify that signed char,
20281         short, int, long, and (if available) long long are two's complement.
20282         * modules/intprops (Depends-on): Add 'verify'.
20284         intprops, mktime, strtol: assume two's complement
20285         These macros were not portable to every conforming C11 ones'
20286         complement platform.  It's not worth the hassle of porting to some
20287         platforms that use ones' complement or signed magnitude, as such
20288         platforms are almost purely theoretical nowadays and porting even
20289         to some of them makes the code harder to review for little
20290         practical benefit.  Problem reported by Florian Weimer in:
20291         https://sourceware.org/ml/libc-alpha/2016-04/msg00295.html
20292         * lib/intprops.h (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
20293         (TYPE_SIGNED_MAGNITUDE, _GL_INT_TWOS_COMPLEMENT):
20294         * lib/mktime.c (TYPE_TWOS_COMPLEMENT):
20295         * lib/strtol.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
20296         (TYPE_SIGNED_MAGNITUDE):
20297         Remove.  All uses rewritten to assume two's complement, which is
20298         all we can reasonably test nowadays anyway.
20299         * top/maint.mk (_intprops_names): Remove the removed macros.
20301 2016-04-11  Paul Eggert  <eggert@cs.ucla.edu>
20303         stdint: port to strict C11 left shift
20304         * lib/stdint.in.h (_STDINT_MIN, _STDINT_MAX):
20305         Pacify clang -Wshift-negative-value, which should be an issue only
20306         on clang setups where stdint.h does not conform to C11 or to C++11.
20307         Problem reported by Philipp Stephani in: http://bugs.gnu.org/23261
20309 2016-04-09  Paul Eggert  <eggert@penguin.cs.ucla.edu>
20311         mbrtowc: work around glibc bug#19932
20312         Fix mbrtowc so that it never returns -1 in the C locale,
20313         as this conflicts with a future version of POSIX
20314         http://austingroupbugs.net/view.php?id=663#c2738
20315         and causes problems with GNU grep: http://bugs.gnu.org/23234
20316         See glibc bug 19932:
20317         https://sourceware.org/bugzilla/show_bug.cgi?id=19932
20318         * doc/posix-functions/mbrlen.texi (mbrlen):
20319         * doc/posix-functions/mbrtowc.texi (mbrtowc):
20320         Document the glibc bug.
20321         * lib/mbrtowc.c [C_LOCALE_MAYBE_EILSEQ]:
20322         Include hard-locale.h, locale.h.
20323         (rpl_mbrtowc): Work around the C_LOCALE_MAYBE_EILSEQ bug,
20324         if the bug is possible.
20325         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): New macro.
20326         (gl_FUNC_MBRTOWC): Use it, and define C_LOCALE_MAYBE_EILSEQ as needed.
20327         * modules/hard-locale (License): Now LGPLv2+, for mbrtowc.
20328         * modules/mbrtowc (Depends-on): Add hard-locale.
20329         * modules/mbrtowc-tests (Files, TESTS): Add tests/test-mbrtowc5.sh.
20330         * tests/test-mbrtowc.c (main): Test for bug fix if arg is '5'.
20331         * tests/test-mbrtowc5.sh: New file.
20333 2016-04-03  Pedro Alves  <palves@redhat.com>
20335         stdint: detect good enough pre-C++11 stdint.h in C++ mode
20336         When gnulib is configured in C++ mode for a system with a working C99
20337         implementation of stdint.h that predates C++11, gnulib ends up
20338         substituting stdint.h anyway.  This works on most targets, but on e.g.,
20339         64-bit MinGW, it doesn't, as gnulib's substitute assumes LP64, while
20340         MinGW is LLP64.  Instead of trying to detect the right types, detect
20341         good-enough-pre-C++11 stdint.h and in such case define
20342         __STDC_CONSTANT_MACROS/__STDC_LIMIT_MACROS in config.h.
20343         * m4/stdint.m4 (gl_STDINT_H): Always define __STDC_CONSTANT_MACROS
20344         / __STDC_LIMIT_MACROS while checking whether the system stdint.h
20345         conforms to C99.  If it does, check whether it hides symbols
20346         behind the __STDC_{CONSTANT|LIMIT}_MACROS macros.  Then if it
20347         does, define those macros in config.h.
20349 2016-04-03  Paul Eggert  <eggert@cs.ucla.edu>
20351         argp: merge changes from glibc
20352         Among other things, this should fix problems found by a Coverity
20353         scan and reported by Andrei Borzenkov:
20354         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00015.html
20355         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00016.html
20356         * lib/argp-ba.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h:
20357         * lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h:
20358         * lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c:
20359         * lib/argp.h:
20360         Merge changes from glibc.
20361         * tests/test-argp-2.sh: Adjust to match new behavior.
20363 2016-04-01  Paul Eggert  <eggert@cs.ucla.edu>
20365         stddef: support configuring with g++
20366         Problem reported by Ángel González in:
20367         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00003.html
20368         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS, max_align_t):
20369         Do not define if _GCC_MAX_ALIGN_T is defined.
20371 2016-03-25  Paul Eggert  <eggert@cs.ucla.edu>
20373         test-framework-sh: minor cleanups
20374         * tests/init.sh (testdir_prefix_): Output a trailing newline,
20375         since strictly speaking POSIX requires this.
20376         (setup_): Do not use the variable 'fail', as that makes the
20377         trace output harder to read ('fail' is typically used by
20378         tests to mean the test failed).  Treat // portably.
20379         Check that new directory is not merely a sibling of the tmp dir.
20380         Avoid unnecessary invocation of tr.
20382         test-framework-sh: revert port to NetBSD 7.0
20383         It was a false alarm; I misinterpreted Assaf Gordon's report.
20384         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
20385         Restore.
20386         (test_dir_): Adjust to mktempd_ change.
20387         (mktempd_): Restore 2nd arg.  Use -t again.
20388         (base_template_, template_, nx_): Resurrect old code.
20390         Port better to Alpine Linux
20391         Its diff implementation does not support -c, but does support -U3.
20392         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
20393         * tests/init.sh (diff_opt_): New var.
20394         (compare_): Prefer diff -U3 to diff -c to plain diff.
20396 2016-03-24  Paul Eggert  <eggert@cs.ucla.edu>
20398         test-framework-sh: port to NetBSD 7.0
20399         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
20400         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
20401         Remove.  All uses removed.
20402         (test_dir_): Adjust to mktempd_ change.
20403         (mktempd_): Omit 2nd arg.  Stop using -t, as it is not portable.
20404         (base_template_, template_, nx_): Simplify by hardcoding.
20406 2016-03-22  Paul Eggert  <eggert@cs.ucla.edu>
20408         gitlog-to-changelog: suppress ignored chatter
20409         * build-aux/gitlog-to-changelog: Do not warn about skipping
20410         an SHA if it would have been ignored anyway.
20412 2016-03-22  Geert Janssens  <janssens-geert@telenet.be>
20414         setlocale: add "sv" to Windows language table
20415         * lib/setlocale.c (language_table) [W32]: Add "sv".
20416         Reported in <https://savannah.gnu.org/bugs/?44588>.
20418 2016-03-21  Paul Eggert  <eggert@cs.ucla.edu>
20420         sys_select: port to new Cygwin
20421         Problem reported by Ken Brown in:
20422         https://lists.gnu.org/r/bug-gnulib/2016-03/msg00054.html
20423         * lib/sys_select.in.h [__CYGWIN__]: Avoid "unknown type name"
20424         diagnostics.
20426 2016-03-17  Jim Meyering  <meyering@fb.com>
20428         test-userspec.c: do not trigger gcc's new -Wmisleading-indentation
20429         * tests/test-userspec.c (main): Remove unnecessary braces and fix
20430         misleading indentation. Here is the diagnostic gcc-6.0-to-be issued:
20431           test-userspec.c:176:9: error: statement is indented as if it were \
20432             guarded by... [-Werror=misleading-indentation]
20433                    {
20434                    ^
20435           test-userspec.c:173:7: note: ...this 'if' clause, but it is not
20436                  if (!diag && !T[i].result)
20437                  ^~
20439 2016-03-15  Paul Eggert  <eggert@cs.ucla.edu>
20441         time_rz: port to clang -Wunused-const-variable
20442         * lib/time_rz.c (TZ): Remove.  All uses removed.
20444         std-gnu11: improve clang support
20445         * m4/std-gnu11.m4: Sync with autoconf, incorporating:
20446         2016-03-15 Also try clang
20447         2016-03-15 Port C11 and C++11 testing to clang
20449         select: port more to Intel 2016.1.150 compiler
20450         Problem reported by Balázs Hajgató in:
20451         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00036.html
20452         * m4/select.m4 (gl_FUNC_SELECT): Require AC_C_RESTRICT.
20454 2016-03-14  Paul Eggert  <eggert@cs.ucla.edu>
20456         select: try to port to 2016.1.150 compiler
20457         Problem reported by Balázs Hajgató in:
20458         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00026.html
20459         * lib/sys_select.in.h (select): Use 'restrict' on arguments where
20460         POSIX specifies 'restrict'.
20462 2016-03-13  Paul Eggert  <eggert@cs.ucla.edu>
20464         localename-tests: memory allocation fixes
20465         * tests/test-localename.c (test_locale_name)
20466         (test_locale_name_thread): Don't call freelocale on a locale
20467         that was the base of a successful newlocale, as that
20468         results in a double free.  Problem reported by Assaf Gordon.
20469         (test_locale_name_thread): Free saved names after use, to pacify
20470         gcc -fsanitize=address.
20472 2016-03-08  Paul Eggert  <eggert@cs.ucla.edu>
20474         intprops: make .h file license match module
20475         * lib/intprops.h: Change the license wording to match glibc format.
20476         This is what is in modules/intprops anyway.  See:
20477         https://sourceware.org/bugzilla/show_bug.cgi?id=19738#c8
20479 2016-03-08  Eric Blake  <eblake@redhat.com>
20481         acl: fix missing return on Cygwin
20482         * lib/set-permissions.c (set_acls) [HAVE_FACL && GETACL]: Don't
20483         fall off end of function. Fixes http://bugs.gnu.org/22949
20485 2016-03-05  Bruno Haible  <bruno@clisp.org>
20487         extern-inline: port to PGI CC
20488         * m4/extern-inline.m4 (gl_EXTERN_INLINE): For PGI CC, don't use the
20489         keyword 'inline'.
20490         Reported by Adam James Stewart in:
20491         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00006.html
20493 2016-02-20  Paul Eggert  <eggert@cs.ucla.edu>
20495         signbit: port back to pre-C++11 GCC
20496         * lib/math.in.h (signbit): Do previous change only if
20497         __cplusplus < 201103.  See Jonathan Wakely in:
20498         https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/UY3VX3W7XEXYTUKHG5BALU4ACUD7ZLGE/
20500 2016-02-19  Kamil Dudka  <kdudka@redhat.com>
20502         mountlist: recognize autofs-mounted remote file systems, too
20503         Originally reported at: https://bugzilla.redhat.com/1309247
20504         * lib/mountlist.c (ME_REMOTE): Return true if a file system is named
20505         "-hosts" because it is used by autofs to mount remote file systems.
20507 2016-02-19  Paul Eggert  <eggert@cs.ucla.edu>
20509         signbit: port to C++ with GCC 6
20510         * lib/math.in.h (signbit) [__cplusplus]:
20511         Do not replace with GCC builtin.  Reported by Orion Poplawski in:
20512         http://lists.gnu.org/r/bug-gnulib/2016-02/msg00005.html
20514         * lib/regex_internal.h (IDX_MAX) [_REGEX_LARGE_OFFSETS]: Now SSIZE_MAX.
20516         regex: make it closer to libc
20517         Make Idx a signed type, rather than possibly unsigned.
20518         The unsignedness was not really buying us anything, since the code
20519         overflows for other reasons before getting to PTRDIFF_MAX.  Making
20520         it signed allows us to use -1 and -2 with abandon, like libc does,
20521         thus lessening the number of differences between gnulib and libc.
20522         Also, it should help avoid gratuitous warnings like the one
20523         reported by Nelson H. F. Beebe in: http://bugs.gnu.org/22702
20524         * lib/regex.h (__re_idx_t): Remove.  All uses changed to regoff_t.
20527         regex: merge patches from libc
20529         2015-10-21  Joseph Myers  <joseph@codesourcery.com>
20530         2015-10-20  Joseph Myers  <joseph@codesourcery.com>
20531         Convert miscellaneous function definitions to prototype style.
20532         * lib/regcomp.c (re_compile_pattern, re_set_syntax)
20533         (re_compile_fastmap, regcomp, regerror, regfree, re_comp):
20534         * lib/regexec.c (regexec, re_match, re_search, re_match_2, re_search_2)
20535         (re_search_2_stub, re_search_stub, re_set_registers, re_exec)
20536         (re_search_internal):
20537         Convert to prototype-style function definition.
20538         Use internal_function for internal functions.
20540 2016-02-10  Paul Eggert  <eggert@cs.ucla.edu>
20542         stdalign: port to older HP and IBM cc
20543         * lib/stdalign.in.h (_Alignas): Port better to older HP and IBM
20544         C compilers, by checking their version numbers.  These version
20545         numbers appear in MariaDB and in Qt code that dates way back and
20546         that conditiionally uses the 'aligned' attribute.
20548 2016-02-09  Paul Eggert  <eggert@cs.ucla.edu>
20550         stdalign: port to clang 3.7.0
20551         Problem reported by Herbert J. Skuhra in:
20552         http://lists.gnu.org/r/emacs-devel/2016-02/msg00476.html
20553         * lib/stdalign.in.h (alignas): Fix typo that prevented 'alignas'
20554         from being defined on clang 3.7.0, which has a buggy stdalign.h.  See:
20555         https://llvm.org/bugs/show_bug.cgi?id=26547
20557 2016-02-08  Paul Eggert  <eggert@cs.ucla.edu>
20559         readdir_r: now obsolescent
20560         * doc/posix-functions/readdir_r.texi (readdir_r): Now obsolescent.
20561         * lib/mountlist.c (read_file_system_list): Add a FIXME.
20563 2016-02-06  Paul Eggert  <eggert@cs.ucla.edu>
20565         misc: port better to gcc -fsanitize=address
20566         Without these patches, ./configure CFLAGS='-fsanitize=address'
20567         would compute incorrect values.  This patch fixes some (but not all)
20568         test failures with recent glibc, with this configuration.
20569         * m4/acl.m4 (gl_ACL_GET_FILE):
20570         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF):
20571         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS):
20572         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO):
20573         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE):
20574         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
20575         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
20576         * m4/getgroups.m4 (gl_FUNC_GETGROUPS):
20577         * m4/getline.m4 (gl_FUNC_GETLINE):
20578         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF):
20579         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF):
20580         * m4/regex.m4 (gl_REGEX):
20581         * m4/strndup.m4 (gl_FUNC_STRNDUP):
20582         * tests/test-calloc-gnu.c (main):
20583         * tests/test-duplocale.c (main):
20584         * tests/test-getgroups.c (main):
20585         * tests/test-getline.c (main):
20586         * tests/test-inttostr.c (main):
20587         * tests/test-localename.c (test_locale_name)
20588         (test_locale_name_thread, test_locale_name_environ)
20589         (test_locale_name_default):
20590         * tests/test-regex.c (main):
20591         * tests/test-setlocale1.c (main):
20592         * tests/test-stat.h (test_stat_func):
20593         Free heap-allocated storage before exiting.
20594         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX):
20595         Don't match *_foo symbols inserted by AddressSanitizer.
20596         * tests/test-regex.c, tests/test-stat.c: Include stdlib.h, for 'free'.
20598 2016-02-02  Jim Meyering  <meyering@fb.com>
20600         verify-tests: also remove stray test-verify.Tpo
20601         * modules/verify-tests (Makefile.am): Arrange for "make clean"
20602         to remove the test-verify.Tpo file that is left behind by
20603         the automake-generated rule upon compilation failure.
20604         Otherwise, that .Tpo file would cause a failed "make distcheck"
20605         at least for grep.
20607 2016-02-02  Paul Eggert  <eggert@cs.ucla.edu>
20609         std-gnu11: new module
20610         This makes it easier for applications to prefer C11 and C++11
20611         to older variants, when compiling C and C++ code.
20612         Unlike most m4/*.m4 files, m4/std-gnu11.m4 is GPLed, as it copies
20613         a nontrivial chunk of GPLed Autoconf source code.
20614         * COPYING: Mention the m4/*.m4 copyright situation.
20615         * MODULES.html.sh (std-gnu11): New module.
20616         * m4/std-gnu11.m4, modules/std-gnu11: New files.
20618 2016-01-25  Paul Eggert  <eggert@cs.ucla.edu>
20620         get-permissions, strftime: fix grammar in comments
20621         * lib/get-permissions.c, lib/strftime.c: Merge into the comments
20622         some grammar fixes Alan Mackenzie made to GNU Emacs.
20624 2016-01-25  Daiki Ueno  <ueno@gnu.org>
20626         gettext: mark as obsolete
20627         Suggested by Paul Eggert in:
20628         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00101.html
20629         * modules/gettext (Status): Mark as obsolete.
20630         (Notice): Suggest to use 'gettext-h' instead.
20631         * modules/gettext-h (Description): Suggest GNU gettext, instead of
20632         the 'gettext' module.
20634 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
20636         gnulib-tool: don't give up on ln -s so easily
20637         * gnulib-tool (func_ln_s): Don't give up on a later ln -s merely
20638         because an earlier one failed.  The targets could be on different
20639         file systems.  Problem reported by KO Myung-Hun in:
20640         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00081.html
20642         closedir: fix OS/2-related typos
20643         Problem reported by KO Myung-Hun in:
20644         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00107.html
20645         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Fix a couple of typos
20646         in the last couple of changes.
20648 2016-01-24  KO Myung-Hun  <komh78@gmail.com>
20650         openat_proc_name: fix that last '/' is overwritten on OS/2 kLIBC
20651         * lib/openat-proc.c (openat_proc_name): Increase dirlen by 1 after
20652         copying a directory.
20654 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
20656         regex: treat [x] as x if x is a unibyte encoding error
20657         Problem reported by Aharon Robbins in:
20658         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00091.html
20659         * lib/regcomp.c (parse_byte) [!_LIBC && RE_ENABLE_I18N]: New function.
20660         (build_range_exp) [!_LIBC && RE_ENABLE_I18N]: Use it.
20662         closedir, dirfd, opendir: port to OpenSolaris 5.10
20663         * m4/closedir.m4 (gl_FUNC_CLOSEDIR):
20664         * m4/dirfd.m4 (gl_FUNC_DIRFD):
20665         * m4/opendir.m4 (gl_FUNC_OPENDIR):
20666         Don't use ${word##pat} substitution, as it doesn't work in
20667         OpenSolaris 5.10 /bin/sh.  Problem reported by Assaf Gordon in:
20668         http://bugs.gnu.org/22443#11
20670 2016-01-23  Paul Eggert  <eggert@cs.ucla.edu>
20672         bootstrap: use American spelling
20673         * build-aux/bootstrap: Honor American spelling.
20675 2016-01-22  Karl Berry  <karl@freefriends.org>
20677         * doc/posix-functions/localtime.texi,
20678         * doc/posix-functions/localtime_r.texi: @item needed for @itemize text.
20680 2016-01-21  Bruno Haible  <bruno@clisp.org>
20682         hash-pjw-bare: fix comment
20683         * lib/hash-pjw-bare.h (hash_pjw_bare): Fix comment.
20685         wcwidth: Replace also on OpenBSD 5.8
20686         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the value of wcwidth(0xFF1A).
20687         * doc/posix-functions/wcwidth.texi: Update.
20689 2016-01-20  Pádraig Brady  <P@draigBrady.com>
20691         gnu-web-doc-update: fix addition of new files
20692         If there were already added (emnpty) dirs,
20693         then cvs aborts the add with the message:
20694           cvs [add aborted]: there is a version in <./dirname> already
20695         * build-aux/gnu-web-doc-update: Add directories separately
20696         to the addition of files, to avoid the above issue
20697         impacting the addition of files.
20699 2016-01-19  Daiki Ueno  <ueno@gnu.org>
20701         utimens-tests: avoid pulling gettext .m4 files
20702         Although this is not the right fix to the original problem:
20703         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html
20704         it makes it possible again for consumer projects to use arbitrary
20705         version of gettext, through the steps described at:
20706         http://www.gnu.org/software/gnulib/manual/html_node/gettextize-and-autopoint.html
20707         See here for details:
20708         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00079.html
20709         * modules/futimens-tests (Depends-on): Add 'gettext-h' in place of
20710         'gettext'.
20711         * modules/utimens-tests (Depends-on): Add 'gettext-h' in place of
20712         'gettext'.
20714 2016-01-18  Paul Eggert  <eggert@cs.ucla.edu>
20716         regex: pacify static checkers
20717         Problem and draft fix reported by Aharon Robbins in:
20718         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
20719         * lib/regcomp.c (build_charclass_op, create_tree) [lint]:
20720         Clear memory to pacify static checkers.
20722         regex: fix [ diagnostic
20723         Problem and fix reported by Aharon Robbins in:
20724         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
20725         * lib/regcomp.c (REG_EBRACK_IDX): Fix misleading diagnostic about [.
20727         regex: fix memory leaks
20728         Problem and draft fix reported by Aharon Robbins in:
20729         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
20730         * lib/regcomp.c (build_range_exp, build_charclass_op)
20731         * lib/regex_internal.c (re_dfa_add_node):
20732         Fix memory leak on failure.
20734 2016-01-18  Pádraig Brady  <P@draigBrady.com>
20736         fts: don't unconditionally use leaf optimization for NFS
20737         NFS st_nlink are not accurate on all implementations,
20738         leading to aborts() if that assumption is made.
20739         See <https://bugzilla.redhat.com/1299169>
20740         * lib/fts.c (leaf_optimization_applies): Remove NFS from
20741         the white list, and document the issue.
20743 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
20744             KO Myung-Hun  <komh@chollian.net>
20746         gnulib-tool: don't assume ln -s works
20747         * gnulib-tool (func_ln_s): New function.
20748         (func_ln): Use it.
20750 2016-01-15  KO Myung-Hun  <komh@chollian.net>
20752         utimes: detect utimes() correctly on OS/2 kLIBC
20753         utimes() of OS/2 kLIBC has some limitations.
20754         1. OS/2 itself supports a file date since 1980 year in local time.
20755         2. OS/2 itself supports only even seconds for a file time.
20756         3. utimes() of OS/2 kLIBC does not work on an opened file.
20757         * m4/utimes.m4: Detect utimes() correctly on OS/2 kLIBC.
20758         * doc/posix-functions/utimes.texi: Document the above limitations of
20759         utimes() on OS/2 kLIBC.
20761 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
20762             KO Myung-Hun  <komh@chollian.net>
20764         openat_proc_name: port to OS/2 kLIBC
20765         OS/2 kLIBC provides a function to retrive a path from a fd. Use it
20766         instead of /proc/self/fd.
20767         * lib/openat-proc.c (openat_proc_name):
20768         Don't assume file name length is less than INT_MAX.
20769         Port to OS/2 kLIBC with __libc_Back_ioFHToPath().
20771 2016-01-14  KO Myung-Hun  <komh@chollian.net>
20773         stdint: check _INTPTR_T_DECLARED for intptr_t etc.
20774         OS/2 kLIBC's stdint.h defines _INTPTR_T_DECLARED and needs its own
20775         definitions of intptr_t and uintptr_t (which use int and unsigned)
20776         to avoid clashes with declarations of system functions like sbrk.
20777         * lib/stdint.in.h (intptr_t, uintptr_t): Check
20778         _INTPTR_T_DECLARED before defining them.
20780         opendir, closedir, dirfd, fdopendir: port to OS/2 kLIBC
20781         * lib/closedir.c (closedir): Unregister fd if closedir() succeeds.
20782         * lib/dirent.in.h (_gl_register_dirp_fd, _gl_unregister_dirp_fd):
20783         Declare on kLIBC.
20784         * lib/dirfd.c (struct dirp_fd_list): New. Structures to keep track of
20785         fd associated with dirp.
20786         (_gl_register_dirp_fd): New. Register fd associated with dirp to
20787         dirp_fd_list.
20788         (_gl_unregister_dirp_fd): New. Unregister fd with closing it.
20789         (dirfd): Implemented for kLIBC.
20790         * lib/fdopendir.c (fdopendir): Implemented for kLIBC.
20791         * lib/opendir.c (opendir): New. Register fd and dirp pair if open()
20792         succeeds.
20793         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Replace if OS/2.
20794         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
20795         (REPLACE_DIRFD): Define to 1 if replaced.
20796         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
20797         * modules/closedir (Depends-on): Add dirfd.
20798         * modules/dirfd (Depends-on): Add 'test $REPLACE_DIRFD = 1' to errno
20799         condition.
20800         (configure.ac): Add dirfd to LIBOBJS if $REPLACE_DIRFD = 1 as well.
20801         * modules/opendir (Depends-on): Add dirfd.
20803         dup, dup2, fcntl: support a directory fd on OS/2 kLIBC
20804         On OS/2 kLIBC, dup(), dup2() and fcntl() do not work on a directory fd.
20805         * lib/dup.c (dup_nothrow): New.
20806         * lib/dup2.c (klibc_dup2dirfd): New. dup2() for a directory fd.
20807         (klibc_dup2): New.
20808         * lib/fcntl.c (klibc_fcntl): New.
20809         * m4/dup.m4 (gl_FUNC_DUP): Check if dup() works on a directory fd.
20810         * m4/dup2.m4 (gl_FUNC_DUP2): Check if dup2() works on a directory fd.
20811         * m4/fcntl.m4 (gl_FUNC_FCNTL): Check if F_DUPFD works on a directory
20812         fd.
20814         pipe_filter_ii_execute: port to OS/2 kLIBC
20815         Pipes on kLIBC do not support O_NONBLOCK like Win32.
20816         * lib/pipe-filter-ii.c (start_wrapper, _beginthreadex, CloseHandle,
20817         WaiForSingleObject, WaitForMultipleObjects): New on OS/2 kLIBC.
20818         Reuse Win32 code on OS/2 kLIBC.
20819         * lib/spawn-pipe.c: Reuse Win32 code on OS/2 kLIBC.
20820         * lib/w32spawn.h: Do not include windows.h on OS/2 kLIBC.
20822         wchar: fix "conflicting types" error for __wcwidth on OS/2 kLIBC
20823         On OS/2 kLIBC, wcwidth is a macro that expands to the name of a
20824         static inline function.  The implementation of wcwidth in wcwidth.c
20825         causes a "conflicting types" error.
20826         * lib/wchar.in.h: Undefine wcwidth on OS/2 kLIBC.
20828         w32spawn: clear SHELL_SPECIAL_CHARS and SHELL_SPACE_CHAR on OS/2 kLIBC
20829         spawn() on OS/2 kLIBC is not silly like one on Windows
20830         * libc/w32spawn.h (SHELL_SPECIAL_CHARS, SHELL_SPACE_CHAR): Set both to
20831         empty string on OS/2 kLIBC.
20833         pipe-filter-aux: undefine HAVE_SELECT on KLIBC
20834         On OS/2 kLIBC, select() works only on sockets.
20835         * lib/pipe-filter-aux.h (HAVE_SELECT): Undefine on OS/2 kLIBC.
20837         binary-io: don't put fd in binary mode if it is a console on EMX
20838         * lib/binary-io.h (SET_BINARY): Don't put fd in binary mode if it is
20839         a console on EMX.
20841 2016-01-15  Pádraig Brady  <P@draigBrady.com>
20843         doc: mention unfixed issues with unsupported localtime() values
20844         * doc/posix-functions/localtime.texi: Mention that FreeBSD 10
20845         returns nonsense for localtime(2^56).
20846         * doc/posix-functions/localtime_r.texi: Likewise.
20848 2016-01-14  Pádraig Brady  <P@draigBrady.com>
20850         doc: mention setlocale() issues on OpenBSD
20851         * doc/posix-functions/setlocale.texi: Mention setlocale(LC_ALL,"")
20852         never fails, and the need to check categories individually.
20854 2016-01-14  Pádraig Brady  <P@draigBrady.com>
20856         sig2str: list all signals on FreeBSD >= 7
20857         FreeBSD >= 7 is contravening POSIX by not defining NSIG
20858         to the maximal statically defined signal value.
20859         It does define _SIG_MAXSIG though, so base SIGNUM_BOUND on that.
20860         * lib/sig2str.h (SIGNUM_BOUND): Define to (_SIG_MAXSIG - 2)
20861         where available, even when NSIG is defined.
20863 2016-01-13  Paul Eggert  <eggert@cs.ucla.edu>
20865         acl-permissions: port to USE_ACL==0 platforms
20866         I ran into this problem when building bleeding-edge GNU Emacs
20867         with gcc -fsanitize=address on Fedora 23.  On this platform
20868         the ACL library does not pass the 'configure' test and Emacs
20869         then does not build due in part to what appear to be typos in the
20870         ACL part of Gnulib.
20871         * lib/acl-internal.c (free_permission_context):
20872         * lib/acl-internal.h (struct permission_context):
20873         Test whether USE_ACL is nonzero, not whether it is defined.
20875 2016-01-12  Martin Sebor  <msebor@redhat.com>
20877         mktime: rename macro to avoid glibc clash
20878         * lib/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.  See:
20879         https://sourceware.org/ml/libc-alpha/2016-01/msg00267.html
20881 2016-01-12  Paul Eggert  <eggert@cs.ucla.edu>
20883         Port "$@" to OpenIndiana ksh93
20884         In http://lists.gnu.org/r/bug-autoconf/2015-12/msg00000.html
20885         Pavel Raiskup reports that ${1+"$@"} runs afoul of a bug in /bin/sh
20886         (derived from ksh 93t+ 2010-03-05).  ${1+"$@"} works around an ancient
20887         bug long-dead shells, so remove the workaround.
20888         * build-aux/announce-gen, build-aux/do-release-commit-and-tag:
20889         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
20890         * build-aux/prefix-gnulib-mk, build-aux/update-copyright:
20891         * build-aux/useless-if-before-free, tests/test-update-copyright.sh:
20892         Use "$@" instead of ${1+"$@"}.
20894         Port Universal Time settings to strict POSIX
20895         * build-aux/announce-gen, build-aux/bootstrap:
20896         * build-aux/do-release-commit-and-tag, build-aux/git-version-gen:
20897         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
20898         * build-aux/gnupload, build-aux/mkinstalldirs:
20899         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
20900         * build-aux/update-copyright, build-aux/useless-if-before-free:
20901         * build-aux/vc-list-files, tests/test-strftime.c:
20902         Use TZ="UTC0", not TZ="UTC".  Either works on GNU platforms,
20903         but POSIX says the behavior of TZ="UTC" is undefined.
20905 2016-01-02  Paul Eggert  <eggert@cs.ucla.edu>
20907         msvc-inval: fix problem with unset shell var
20908         Problem reported by Karl Berry in:
20909         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00004.html
20910         * modules/msvc-inval (Depends-on):
20911         AC_REQUIRE gl_MSVC_INVAL instead of merely calling it.
20912         * modules/msvc-nothrow (Depends-on): Likewise for gl_MSVC_NOTHROW.
20914 2016-01-01  Pádraig Brady  <P@draigBrady.com>
20916         tests: for compare_(), use cmp -s where available
20917         * tests/init.sh (compare_): Only fall back to cmp without
20918         the POSIX defined -s option, where this is not available.
20920 2016-01-01  Paul Eggert  <eggert@cs.ucla.edu>
20922         version-etc: new year
20923         * build-aux/gendocs.sh (version):
20924         * doc/gendocs_template:
20925         * doc/gendocs_template_min:
20926         * doc/gnulib.texi:
20927         * lib/version-etc.c (COPYRIGHT_YEAR):
20928         Update copyright dates by hand in templates and the like.
20929         * all files: Run 'make update-copyright'.
20931 2015-12-31  Paul Eggert  <eggert@cs.ucla.edu>
20933         human: fix output buffer overrun by 1
20934         * lib/human.c (human_readable): Fix off-by-one typo in buffer
20935         calculation that could lead to a one-byte buffer overrun.
20937 2015-12-28  Daiki Ueno  <ueno@gnu.org>
20939         maint: fix operator precedence in mbrtowc test
20940         This is a fix for test breakage introduced by commit 45228d96; the
20941         equality expression must be parenthesized when negated with '!',
20942         otherwise we always get:
20944           test-mbrtowc.c:49: assertion 'ret == (size_t)(-2)' failed
20946         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Negate the entire expression.
20947         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
20949 2015-12-23  James Youngman  <jay@gnu.org>
20951         regexprops-generic: update from regex.h
20952         * doc/regexprops-generic.texi: update by running the regexprops binary
20953         from findutils (the command line is 'regexprops "Regular Expressions"
20954         generic').  The recent (ish) change (5a5a9388) to regex.h aligning
20955         gnulib with GNU grep had made this document out-of-date.
20957 2015-12-23  Pádraig Brady  <P@draigBrady.com>
20959         strftime-tests: avoid false failure on OS X
20960         * tests/test-strftime.c (struct localtime_rz_test): Add an
20961         ahistorical member which is used to warn rather than fail
20962         when tm_isdst isn't set for such entries.  This is the case for
20963         "1970-01-01 13:00:00 +1300 (NZDT)" on Darwin 13/14 at least.
20965 2015-12-20  Kamil Dudka  <kdudka@redhat.com>
20967         fts: ensure leaf optimization is used for NFS
20968         NFS provides usable dirent.d_type but not necessarily for all entries
20969         of large directories.  See <https://bugzilla.redhat.com/1252549>
20970         * lib/fts.c (leaf_optimization_applies): Append NFS on the white list.
20972 2015-12-20  Pádraig Brady  <P@draigBrady.com>
20974         fts: enable leaf optimization for XFS
20975         XFS provides usable dirent.d_type only for DT_DIR,
20976         but the noleaf optimization still applies.
20977         * lib/fts.c (leaf_optimization_applies): Add XFS to the white list.
20979 2015-12-17  Paul Eggert  <eggert@cs.ucla.edu>
20981         intprops: comment fix
20982         * lib/intprops.h: Fix comment.  Reported by Pádraig Brady in:
20983         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00013.html
20985         intprops-test: work around GCC bug 68971
20986         Problem reported by Pádraig Brady in:
20987         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00011.html
20988         * tests/test-intprops.c: Ignore -Woverflow in GCC 6 and earlier.
20989         (main): Add a case that better tests 64-bit long in this area.
20991 2015-12-09  Pavel Raiskup  <praiskup@redhat.com>
20993         gnulib-tool: allow multiple --local-dir usage
20994         * gnulib-tool: Use --local-dir to construct compound
20995         $local_gnulib_path path instead of $local_gnulib_dir.  Determine
20996         PATH_SEPARATOR early.
20997         (local_gnulib_dir): Rename into $local_gnulib_path everywhere.
20998         (func_gnulib_dir): Cut out PATH_SEPARATOR detection code into
20999         func_determine_path_separator because that needs to be detected
21000         earlier now.
21001         (func_determine_path_separator): New function.
21002         (func_path_foreach, func_path_foreach_inner): New functions.
21003         (func_path_prepend, func_path_append): Likewise.
21004         (func_lookup_local_file, func_lookup_local_file_cb): Likewise.
21005         (func_lookup_file, func_all_modules): Use new functions to work
21006         with local_gnulib_path.
21007         (func_modules_in_dir, func_exists_module): New callbacks for
21008         func_path_foreach.
21009         (func_exists_module, func_get_tests_module): Likewise.
21010         (func_is_local_file, func_should_symlink): New helper methods.
21011         (func_add_file, func_update_file): Use new func_should_symlink
21012         instead, DRY.
21013         (func_reconstruct_cached_local_gnulib_path): New helper.
21014         (func_reconstruct_cached_dir): New callback.
21015         (func_import): The cached_local_gnulib_dir renamed to
21016         cached_local_gnulib_path similarly to local_gnulib_dir.
21017         Use new func_reconstruct_cached_local_gnulib_path.
21018         (func_count_relative_local_gnulib_path): New sub-method.
21019         (func_create_testdir): Use func_should_symlink, DRY.
21020         (func_create_megatestdir): Use new functions to work with
21021         local_gnulib_path correctly.
21022         (func_append_local_dir): New helper.
21024 2015-12-08  Pádraig Brady  <P@draigBrady.com>
21026         fix freadptr to work with ungetc on all uClibc configs
21027         Reported at https://bugs.busybox.net/show_bug.cgi?id=4099
21028         where GNU coreutils cut(1) generates invalid output on uClibc
21029         when __UCLIBC_HAS_STDIO_GETC_MACRO__ is not defined.
21030         * lib/freadptr.c (freadptr): Return NULL if there are
21031         ungotten chars.  In this case freadseek() will iterate
21032         again to process the ungotten character.
21034 2015-11-13  Paul Eggert  <eggert@cs.ucla.edu>
21036         xalloc-oversized: improve performance with GCC 5
21037         * lib/xalloc-oversized.h (xalloc_oversized):
21038         Improve performance with GCC 5 by using __builtin_mul_overflow.
21040 2015-11-10  Paul Eggert  <eggert@cs.ucla.edu>
21042         intprops: new public macro EXPR_SIGNED
21043         Emacs can use this macro, so make it public.
21044         * doc/intprops.texi (Arithmetic Type Properties): Rename from
21045         'Integer Type Determination', since some of these macros apply
21046         to non-integer types.  Clarify what kinds of constant expressions
21047         these macros return.  Say when the arguments can be non-integers.
21048         Mention newly published macro EXPR_SIGNED.
21049         * lib/intprops.h (EXPR_SIGNED): Rename from _GL_INT_SIGNED, to
21050         make it public.  All uses changed.
21052         intprops: fix typo in clang port
21053         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix misspelling of
21054         '__builtin_add_overflow' that is not caught by compiler.
21056 2015-11-05  Paul Eggert  <eggert@cs.ucla.edu>
21058         test-timespec: fix typo in previous change
21059         * tests/test-timespec.c (main): Fix typo that reduced test quality.
21061         timespec-sub: fix overflow bug; add tests
21062         * lib/timespec-add.c (timespec_add):
21063         * lib/timespec-sub.c (timespec_sub):
21064         Work even if time_t is narrower than int (a theoretical
21065         possibility).  Redo code for a bit more clarity.
21066         * lib/timespec-sub.c (timespec_sub):
21067         Fix off-by-2 bug if a.tv_sec == TYPE_MINIMUM (time_t) and 0 < b.tv_sec.
21068         * modules/timespec-tests, tests/test-timespec.c: New files.
21070         intprops-test: suppress -Woverlength-strings
21071         Problem reported by Pádraig Brady in:
21072         http://lists.gnu.org/r/bug-gnulib/2015-11/msg00008.html
21073         It is not worth the hassle to port this test to compilers that
21074         cannot handle long strings in diagnostics.
21075         * tests/test-intprops.c [__GNUC__]: Ignore -Woverlength-strings.
21077 2015-11-03  Pádraig Brady  <P@draigBrady.com>
21079         quotearg: add quotearg_n_style_colon()
21080         This quotes with default options of the specified style,
21081         but with quoting enabled for instances of ':'.
21082         * lib/quotearg.h (quotearg_n_style_colon): Description and declaration.
21083         * lib/quotearg.c (quotearg_n_style_colon): New function implementation.
21085 2015-11-04  Paul Eggert  <eggert@cs.ucla.edu>
21087         intprops: revise _WRAPV macros, revert _OVERFLOW
21088         The incompatible changes to the _OVERFLOW macros were too much of
21089         a hassle in practice, so revert them.  Instead, change the new
21090         _WRAPV macros to make them closer in behavior to GCC 5's new
21091         builtin_add_overflow etc. functions.  No other software was using
21092         these newly-added macros yet, so this should be OK.
21093         * NEWS: Revert previous change, since the incompatible change
21094         has been reverted, and nobody used the incompatible version.
21095         * doc/intprops.texi (Wraparound Arithmetic, Integer Type Overflow):
21096         Document revised behavior.
21097         (Integer Range Overflow): Adjust example to match above revisions.
21098         * lib/intprops.h (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW)
21099         (INT_MULTIPLY_OVERFLOW): Revert previous change, so that
21100         these can be used in integer constant expressions again.
21101         (INT_CONST_ADD_OVERFLOW, INT_CONST_SUBTRACT_OVERFLOW)
21102         (INT_CONST_MULTIPLY_OVERFLOW): Remove, as these are no longer
21103         needed.
21104         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
21105         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
21106         (INT_REMAINDER_WRAPV, INT_LEFT_SHIFT_WRAPV):
21107         Remove, as they did not seem that useful.
21108         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV)
21109         (_GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH)
21110         (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
21111         Support new semantics.
21112         (__has_builtin): New macro, if not alreay defined.
21113         (_GL__GENERIC_BOGUS, _GL_INT_OP_CALC, _GL_INT_OP_CALC1): New macros.
21114         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
21115         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
21116         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
21117         (INT_CONST_LEFT_SHIFT_WRAPV): Remove.
21118         (CHECK_SBINOP, CHECK_SSUM, CHECK_SUM1, CHECK_SSUM1)
21119         (CHECK_SDIFFERENCE, CHECK_SPRODUCT, CHECK_PRODUCT1, CHECK_SPRODUCT1):
21120         New macros.
21121         (CHECK_BINOP, CHECK_UNOP, main, CHECK_SUM): Test new behavior.
21123 2015-11-03  Jim Meyering  <meyering@fb.com>
21125         intprops: add parentheses for when OP has precedence lower than "-"
21126         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED): In "a OP b - c",
21127         "a OP b" must be parenthesized for when OP is like "<<", which has
21128         lower precedence than the following "-". Reported by Pádraig Brady.
21130 2015-11-03  Pádraig Brady  <P@draigBrady.com>
21132         quotearg: constify get_quoting_style parameters
21133         * lib/quotearg.h (get_quoting_style): Mark parameter as const.
21134         * lib/quotearg.c (get_quoting_style): Likewise.
21136 2015-11-02  Pádraig Brady  <P@draigBrady.com>
21138         quotearg: add support for $'' shell escaping
21139         * lib/quotearg.h: Add "shell-escape" and "shell-escape-always"
21140         items and descriptions.
21141         * lib/quotearg.c (quotearg_buffer_restyled): Add support for the
21142         above types by quoting like "shell", but using $'...' syntax
21143         for non printable characters, which should provide unambiguous
21144         printable output for any input.
21145         * tests/test-quotearg-simple.c: Update accordingly.
21147 2015-11-02  Pádraig Brady  <P@draigBrady.com>
21149         maint: use a more standard return from mbrtowc test
21150         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Don't return 1
21151         from the test program as this is non standard and often
21152         indicates an unhandled case in the test program.
21153         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
21155 2015-10-30  Paul Eggert  <eggert@cs.ucla.edu>
21157         intprops: add WRAPV and const flavors for GCC 5
21158         If available, use GCC 5's builtin functions for efficient integer
21159         overflow checking.  Also, add macros like INT_ADD_WRAPV efficently
21160         and safely compute the low-order bits of the correct answer.
21161         A downside of these efficient functions is that they cannot be
21162         used in constant expressions, so add macros like INT_CONST_ADD_OVERFLOW
21163         and INT_CONST_ADD_WRAPV that can be used even in constant expressions.
21164         * NEWS: Document the incompatible changes to INT_ADD_OVERFLOW etc.
21165         * doc/intprops.texi (Integer Properties, Integer Type Overflow):
21166         Document the changes.
21167         (Wraparound Arithmetic): New section.
21168         (Integer Range Overflow):
21169         Put this subsection last, since it's least useful.
21170         * lib/intprops.h (INT_CONST_ADD_OVERFLOW)
21171         (INT_CONST_SUBTRACT_OVERFLOW, INT_CONST_MULTIPLY_OVERFLOW):
21172         New macros, with the meaning that INT_ADD_OVERFLOW etc. used to have.
21173         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
21174         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
21175         (INT_REMAINDER_WRAPV, _GL_INT_OP_WRAPV, _GL_EXPR_CAST)
21176         (_GL_INT_OP_WRAPV_LONGISH, INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
21177         (INT_MULTIPLY_WRAPV, _GL_OP_OVERFLOW, _GL_OP_WRAPV, _GL_OP_WRAPV_GENSYM):
21178         New macros.
21179         (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW, INT_MULTIPLY_OVERFLOW):
21180         Generate calls to GCC builtins if available, for speed.
21181         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
21182         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
21183         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
21184         (INT_CONST_LEFT_SHIFT_WRAPV): New macros.
21185         (main, CHECK_BINOP, CHECK_UNOP, CHECK_SUM, CHECK_PRODUCT)
21186         (CHECK_QUOTIENT, CHECK_REMAINDER):
21187         Test WRAPV and CONST flavors (when available) too.
21189 2015-10-30  Pádraig Brady  <P@draigBrady.com>
21191         doc: use extended timezone format in iso-8601 example
21192         * doc/parse-datetime.texi: The standard states that extended format
21193         is to be used consistently throughout.
21194         Note that lib/parse-datetime.y can handle either tz format.
21196 2015-10-25  Paul Eggert  <eggert@cs.ucla.edu>
21198         stdalign: port to Sun C 5.9
21199         * doc/posix-headers/stdalign.texi: Document this.
21200         * lib/stdalign.in.h (_Alignas): Sun C 5.9 also supports
21201         __attribute__ ((__aligned__ (...))).
21203 2015-10-20  Paul Eggert  <eggert@cs.ucla.edu>
21205         time_rz: fix comment about tzalloc
21206         * lib/time_rz.c (tzalloc): Fix comment.
21208 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
21210         stdalign: work around pre-4.9 GCC x86 bug
21211         * lib/stdalign.in.h (_Alignof): Work around bug in pre-4.9 GCC on
21212         x86, when -std=gnu11 is used.  Problem reported by Jim Meyering in:
21213         http://lists.gnu.org/r/bug-gnulib/2015-10/msg00038.html
21215 2015-10-18  Pádraig Brady  <P@draigBrady.com>
21217         maint.mk: sc_tight_scope: remove extraneous expressions
21218         * top/maint.mk (tight_scope): This is not really required since
21219         commit 3ef58f46 as sed_wrap ensures we don't get an empty expression
21220         that matches all nm entries.  But it does remove extraneous entries
21221         that may be confusing or cause issue in future maintenance.
21223 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
21225         time_rz: return NULL if localtime_r fails
21226         * lib/time_rz.c (localtime_rz): Return NULL if localtime_r fails,
21227         while still attempting to pacify bleeding-edge GCC.
21229         fts: port to C11 alignof
21230         * doc/posix-headers/stdalign.texi (stdalign.h):
21231         Document the C11 restriction.
21232         * lib/fts.c: Include stddef.h, for max_align_t.
21233         (fts_alloc): Align using max_align_t, not FTSENT.
21234         * modules/fts (Depends-on): Add stddef.
21236 2015-10-18  Jim Meyering  <meyering@fb.com>
21238         time_rz: avoid warning from bleeding-edge gcc's -Wnonnull
21239         Compiling with gcc version 6.0.0 20151017 (experimental) (GCC), I
21240         would see this:
21242         lib/time_rz.c: In function 'localtime_rz':
21243         lib/time_rz.c:292:15: error: nonnull argument 'tm' compared to NULL \
21244           [-Werror=nonnull]
21245                    if (tm && !save_abbr (tz, tm))
21246                        ^
21248         That was complaining about "tm" because it is a parameter that was
21249         declared with the __nonnull__ attribute.
21250         * lib/time_rz.c (localtime_rz): Don't bother setting "tm" to the
21251         result of localtime_r.
21253 2015-10-17  Jim Meyering  <meyering@fb.com>
21255         maint.mk: _gl_TS_function_match: fix "extern" name extracting regexp
21256         * top/maint.mk (_gl_TS_function_match): This heuristic extern-function-
21257         name-extraction regexp mistakenly used \S+, and would mistakenly
21258         extract "*F" from "extern int *F()" rather than the desired "F".
21259         Use \w+ instead.
21261 2015-10-17  Jim Meyering  <meyering@fb.com>
21263         maint.mk: sc_tight_scope: factor and support OS X
21264         * top/maint.mk (_gl_tight_scope): Address three issues:
21265         - factor out four instances of code that wraps a string in "^...$"
21266         - allow nm-reported symbol names to have an optional leading "_"
21267         - add "main" to the list of ignored variable names, because on os x,
21268         "main" has nm-reported type "S" in the variable-checking section.
21270 2015-10-16  Dmitry Smirnov  <onlyjob@member.fsf.org>
21272         safe-alloc-tests: fix typo in license header
21273         * tests/test-safe-alloc.c: Mention LGPL 2.1, not 3.1
21275 2015-10-15  Simon Reinhardt  <simon@keinstein.org>
21277         copy-file: fix mem leak in error case
21278         * lib/copy-file.c (qcopy_file_preserving): Free the 32KiB buffer
21279         upon error opening or performing I/O to the src and dest files.
21281 2015-10-15  Mike Frysinger  <vapier@chromium.org>
21283         localename: control langinfo.h inclusion
21284         This header is only used to work around buggy behavior in old
21285         versions of glibc, so do not include it all the time.  Otherwise
21286         we get build failures on systems that do not provide langinfo.h.
21287         * lib/localename.c: Wrap langinfo.h include with same ifdefs used
21288         in the source later on.
21289         The patch was originally submitted to gettext as:
21290         https://lists.gnu.org/r/bug-gettext/2015-10/msg00011.html
21292 2015-10-13  Paul Eggert  <eggert@cs.ucla.edu>
21294         binary-io, math, pthread, sys_socket, u64, unistd: port to strict C
21295         * lib/binary-io.c, lib/math.c, lib/pthread.c, lib/sys_socket.c:
21296         * lib/u64.c, lib/unistd.c:
21297         Append 'typedef int dummy;', to pacify compilers that are picky
21298         about empty translation units.
21300 2015-10-12  Pino Toscano  <ptoscano@redhat.com>
21302         accept4-tests: fix to avoid non portable flags
21303         * tests/test-accept4.c (main): Pass only SOCK_* flags to accept4(),
21304         as they are the only documented ones, and passing others may trigger
21305         EINVAL (seen on FreeBSD 10.1-RELEASE).
21306         * doc/glibc-functions/accept4.texi: Mention that we don't provide
21307         the SOCK_CLOEXEC or SOCK_NONBLOCK defines.
21309 2015-10-06  Pavel Raiskup  <praiskup@redhat.com>
21311         gnulib-tool: fix tests of 'extensions' module
21312         This complements f8fe25fab60e3c687a124 commit.
21313         * gnulib-tool (func_emit_pre_early_macros): New function, it wraps
21314         emitting of initial gl_EARLY macros.
21315         (func_import, func_create_testdir): All dumps of gl_PROG_AR_RANLIB
21316         replaced with func_emit_pre_early_macros call.
21318 2015-10-06  Paul Eggert  <eggert@cs.ucla.edu>
21320         unicase/locale-language: fix typo in utf-8 cookie
21321         * lib/unicase/locale-languages.gperf: Fix gperf input file format.
21322         Problem reported by Zbigniew Jędrzejewski-Szmek.
21324 2015-10-02  Paul Eggert  <eggert@cs.ucla.edu>
21326         xalloc: do not worry about GCC 5 warning on 32 bit
21327         * lib/xalloc.h: Revert previous change.
21328         I found a better way to fix this in coreutils.
21330 2015-10-02  Pádraig Brady  <P@draigBrady.com>
21332         xalloc: avoid GCC 5.1 warning on 32 bit
21333         * lib/xalloc.h: Disable -Wstrict-overflow for uses of
21334         xalloc_oversized(), which was seen to give this warning
21335         on GCC 5.1 on 32 bit: "assuming signed overflow does not occur
21336         when simplifying conditional".
21338 2015-10-02  Daiki Ueno  <ueno@gnu.org>
21340         uniname/uniname-tests: avoid compiler warnings
21341         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Remove
21342         unused local variables.
21343         (test_alias_lookup): Fix alias name display in failure cases.
21345 2015-09-26  Paul Eggert  <eggert@cs.ucla.edu>
21347         c-ctype: do not worry about EBCDIC + char signed
21348         Drop support for EBCDIC with char being signed, as this breaks too
21349         many programs.  Problem reported by Ben Pfaff in:
21350         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00053.html
21351         * lib/c-ctype.h: Verify that we are not using EBCDIC with
21352         char being signed.
21353         (_C_CTYPE_LOWER_A_THRU_F_N): New macro.
21354         (_C_CTYPE_LOWER_N, _C_CTYPE_A_THRU_F): Use it.
21355         (_C_CTYPE_DIGIT, _C_CTYPE_LOWER, _C_CTYPE_PUNCT, _C_CTYPE_UPPER):
21356         (c_isascii, c_isgraph, c_isprint, c_ispunct, c_tolower, c_toupper):
21357         * tests/test-c-ctype.c (test_all):
21358         Simplify by assuming standard char values cannot be negative.
21359         * tests/test-c-ctype.c (NCHARS, to_char): Remove; all uses removed.
21361 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
21363         c-ctype: port better to z/OS EBCDIC
21364         Problems reported by Daniel Richard G. in:
21365         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00050.html
21366         * lib/c-ctype.h (_C_CTYPE_CNTRL): Rewrite in terms of
21367         the C standard escapes and _C_CTYPE_OTHER_CNTRL.
21368         (_C_CTYPE_OTHER_CNTRL): New macro.
21369         * tests/test-c-ctype.c (test_all): Test from CHAR_MIN, not
21370         from SCHAR_MIN, as the functions are defined only from values
21371         promoted from char or from unsigned char, not necessarily from
21372         signed char.
21374 2015-09-25  Pavel Raiskup  <praiskup@redhat.com>
21376         gnulib-common.m4: fix gl_PROG_AR_RANLIB/AM_PROG_AR clash
21378         The gl_PROG_AR_RANLIB (it is always called by gl_EARLY) sets AR
21379         and ARFLAGS variables.  Doing this unconditionally could break
21380         later Automake's AM_PROG_AR invocation (at least it's
21381         AC_CHECK_TOOLS call to detect correct 'ar' binary).
21383         Original purpose of the gl_PROG_AR_RANLIB was only to handle the
21384         Amsterdam Compiler Kit, so make the previous code to have effects
21385         only on ACK, and rather automatically call the Automake's
21386         AM_PROG_AR as soon as possible to decide other cases.
21388         References:
21389         http://lists.gnu.org/r/bug-gnulib/2015-07/msg00001.html
21391         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): AC_BEFORE AM_PROG_AR.
21392         Set the AR/ARFLAGS to ACK defaults OR call AM_PROG_AR.  If neither
21393         is possible, keep setting AR/ARFLAGS to reasonable defaults.
21394         * gnulib-tool (func_import): Put the gl_USE_SYSTEM_EXTENSIONS
21395         right before gl_PROG_AR_RANLIB into gnulib-comp.m4 (if the
21396         'extensions' module is used.
21397         * modules/extensions (configure.ac-early): Remove as this snippet
21398         is added to gnulib-comp.m4 earlier anyway.
21400 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
21402         sockets: MS Windows initalization fixes
21403         Problem reported by Test User in:
21404         http://lists.gnu.org/r/help-shishi/2015-09/msg00001.html
21405         * lib/sockets.h (SOCKETS_1_0, SOCKETS_2_0, SOCKETS_2_1):
21406         Correct the endianness.
21407         * lib/sockets.c (gl_sockets_startup): Return 2 on any version
21408         number mismatch, not just on <.  Cleanup before any such failure.
21410 2015-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
21412         gc: fix detection of installed libgcrypt version
21413         * m4/gc.m4: Use AM_PATH_LIBCRYPT to test for libcrypt versions
21414         at least as recent as 1.4.4.  The previously used macro is not
21415         available now, since modules were removed in version 1.6.0.
21417 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
21419         c-ctype: rewrite to use inline functions
21420         This simplifies maintenance, since it makes for just one
21421         implementation of each function, letting the compiler have the fun
21422         of optimization.  In practice this works well nowadays with GCC.
21423         E.g., c_isascii might need only three instructions even though the
21424         source code lists every ASCII character individually in a large
21425         switch statement.
21426         Also, fix some z/OS porting bugs reported by Daniel Richard G. in:
21427         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00037.html
21428         * NEWS: Document the API change.
21429         * lib/c-ctype.c: Drastically simplify, since this now just expands
21430         inline functions.
21431         * lib/c-ctype.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21432         (C_CTYPE_INLINE): New macro.
21433         (C_CTYPE_CONSECUTIVE_DIGITS, C_CTYPE_CONSECUTIVE_LOWERCASE)
21434         (C_CTYPE_CONSECUTIVE_UPPERCASE): Remove.
21435         Verify that either ASCII or EBCDIC is being used.
21436         (_C_CTYPE_SIGNED_EBCDIC, _C_CTYPE_CNTRL, _C_CTYPE_A_THRU_F_N)
21437         (_C_CTYPE_DIGIT_N, _C_CTYPE_LOWER_N, _C_CTYPE_UPPER_N)
21438         (_C_CTYPE_CASES, _C_CTYPE_A_THRU_F, _C_CTYPE_DIGIT, _C_CTYPE_LOWER)
21439         (_C_CTYPE_UPPER, _C_CTYPE_PUNCT_PLAIN):
21440         New private macros.
21441         (_C_CTYPE_CNTRL): In EBCDIC, '\x07' is a control, not '\xff'.
21442         (c_isalnum, c_isalpha, c_isascii, c_isblank, c_iscntrl, c_isdigit)
21443         (c_isgraph, c_islower, c_isprint, c_ispunct, c_isspace, c_isupper)
21444         (c_isxdigit, c_tolower, c_toupper): Now inline functions.
21445         (c_tolower, c_toupper): When converting, return the unsigned char,
21446         as that is what z/OS does.
21447         * lib/c-strcaseeq.h (CASEEQ): Simplify in the light of the removal
21448         of some c-ctype.h macros.
21449         * modules/c-ctype (Depends-on): Add extern-inline; remove verify.
21450         * tests/test-c-ctype.c (test_all): Fix test for c_toupper and
21451         c_tolower promotion to be compatible with z/OS.
21453 2015-09-24  Pavel Raiskup  <praiskup@redhat.com>
21455         gitlog-to-changelog: trim only trailing whitespaces
21456         This is fix for --format regression introduced by commit
21457         2b93079a5d1baa4d;  it caused that --format='%s%n%n%b%n' (see the
21458         doubled %n string) had no effect anymore.  This format
21459         specification has been used e.g. by GNU paxuitils (commit
21460         edfd8bcc3).
21462         * build-aux/gitlog-to-changelog (main): Stop squashing multiple
21463         newlines in commmit messages.
21465 2015-09-23  Paul Eggert  <eggert@cs.ucla.edu>
21467         Test that c_iscntrl agrees with iscntrl, etc.
21468         Suggested by Daniel Richard G. in:
21469         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00034.html
21470         * modules/c-ctype-tests (Depends-on): Add ctype.
21471         * tests/test-c-ctype.c: Include <ctype.h>.
21472         (NCHARS): New constant.
21473         (test_agree_with_C_locale): New function.
21474         (main): Use it.
21475         (test_all): Use named constants.
21477         c-ctype: improve c_isascii testing
21478         * tests/test-c-ctype.c (test_all): Port c_isascii test to EBCDIC.
21479         Add a test to count the number of ASCII characters.
21481 2015-09-22  Paul Eggert  <eggert@cs.ucla.edu>
21483         savewd: remove SAVEWD_CHDIR_READABLE
21484         It was problematic in the light of file systems that ignore umask.
21485         Problem reported by Sebastian Unger in: http://bugs.gnu.org/21534
21486         * NEWS: Document this.
21487         * lib/mkancesdirs.c (mkancesdirs): MAKE_DIR now returns 0 if
21488         successful, -1 (setting errno) on failure, rather than something
21489         more complicated than that.
21490         * lib/mkdir-p.c (make_dir_parents):
21491         Do not use SAVEWD_CHDIR_READABLE.
21492         * lib/savewd.c (savewd_chdir):
21493         Remove support for SAVEWD_CHDIR_READABLE.
21494         * lib/savewd.h (SAVEWD_CHDIR_READABLE): Remove.
21496         c-ctype: port better to EBCDIC
21497         Problems reported by Daniel Richard G. in
21498         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00020.html
21499         * lib/c-ctype.c: Include <limits.h>, for CHAR_MIN and CHAR_MAX.
21500         Include "verify.h".
21501         (C_CTYPE_ASCII, C_CTYPE_CONSECUTIVE_DIGITS)
21502         (C_CTYPE_CONSECUTIVE_LOWERCASE, C_CTYPE_CONSECUTIVE_UPPERCASE):
21503         Define as enum constants with value false, if not defined, so that
21504         code can use 'if' instead of 'ifdef'.  Using 'if' helps make the
21505         code more portable, as both branches of the 'if' are compiled on
21506         all platforms.
21507         (C_CTYPE_EBCDIC): New constant.
21508         Verify that the character set is either ASCII or EBCDIC.
21509         (to_char): New static function.
21510         (c_isascii, c_iscntrl):
21511         Assume standard control-character assignments for EBCDIC.
21512         (c_isalnum, c_isalpha, c_isdigit, c_islower, c_isgraph, c_isprint)
21513         (c_ispunct, c_isupper, c_isxdigit, c_tolower, c_toupper):
21514         Rewrite to use 'if' instead of 'ifdef'.
21515         Use to_char if non-ASCII.  Prefer <= to >=.
21516         Prefer true and false to 1 and 0, for booleans.
21517         (c_iscntrl): Use 'if', not 'ifdef'.
21518         * modules/c-ctype (Depends-on): Add verify.
21519         * tests/test-c-ctype.c: Include <limits.h>, for CHAR_MIN
21520         (to_char): New function.
21521         (test_all): Port to EBCDIC.  Add some more tests, e.g., for c_ispunct.
21523 2015-09-21  Pádraig Brady  <P@draigBrady.com>
21525         nanosleep: fix return code for interrupted replacement
21526         * lib/nanosleep.c (nanosleep): In the replaced nanosleep, ensure
21527         that we return -1 in the case the call is interrupted by a signal,
21528         rather than the current value of 1.
21529         Diagnosed and tested by Daniel Richard G.
21531 2015-09-19  Paul Eggert  <eggert@cs.ucla.edu>
21533         Diagnose ERE '()|\1'
21534         Problem reported by Hanno Böck in: http://bugs.gnu.org/21513
21535         * lib/regcomp.c (parse_reg_exp): While parsing alternatives, keep
21536         track of the set of previously-completed subexpressions available
21537         before the first alternative, and restore this set just before
21538         parsing each subsequent alternative.  This lets us diagnose the
21539         invalid back-reference in the ERE '()|\1'.
21541         regex: merge patches from libc
21543         2015-09-08  Joseph Myers  <joseph@codesourcery.com>
21544         Move bits/libc-lock.h and bits/libc-lockP.h out of bits/ (bug 14912).
21545         * lib/regex_internal.h:
21546         Include <libc-lock.h> instead of <bits/libc-lock.h>.
21548         2015-06-09  Joseph Myers  <joseph@codesourcery.com>
21549         Fix regcomp wcscoll, wcscmp namespace (bug 18497).
21550         * lib/regcomp.c (build_range_exp): Call __wcscoll instead of
21551         wcscoll.
21552         * lib/regexec.c (check_node_accept_bytes): Likewise.
21554         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
21555         Fix regex wcrtomb namespace (bug 18496).
21556         * lib/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
21557         instead of wcrtomb.
21559         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
21560         Fix regex wctype namespace (bug 18495).
21561         * lib/regcomp.c (re_compile_fastmap_iter): Call __towlower
21562         instead of towlower.
21563         * lib/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
21564         instead of iswlower.  Call __towupper instead of towupper.
21565         * lib/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
21566         instead of iswalnum.
21568         2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
21569         * lib/regcomp.c (parse_bracket_exp): Initialize type to
21570         COLL_SYM in a couple of places to avoid uninitialized variable
21571         wanings on tilegx gcc 4.8.2.
21573         2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
21574         * lib/regex_internal.h: Remove NOT_IN_libc.
21576         2014-11-17  Andreas Schwab  <schwab@suse.de>
21577         * lib/regex_internal.h: Don't include <locale/elem-hash.h>.
21579         2014-09-11  Roland McGrath  <roland@hack.frob.com>
21580         Move findidx nested functions to top-level.
21581         * lib/regcomp.c [_LIBC]: #include <locale/weight.h>.
21582         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
21583         Pass new arguments to findidx.
21584         * lib/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
21585         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
21586         Don't #include it inside the function.  Pass new arguments to findidx.
21587         * lib/regex_internal.h:
21588         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
21589         (re_string_elem_size_at): Don't #include it inside the function.
21590         Pass new arguments to findidx.
21592         2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
21593         Check if DEBUG is defined in regex_internal.c
21594         * lib/regex_internal.c: Check if DEBUG is defined and is set.
21596 2015-09-08   Assaf Gordon  <assafgordon@gmail.com>
21598         ceill: detect buggy OpenBSD implementation
21599         * m4/ceill.m4 (gl_FUNC_CEILL): Detect buggy openBSD implementation
21600         which returns zero for small values.  Discussed here:
21601         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00010.html
21603 2015-09-08  Dave Chiluk  <chiluk@canonical.com>
21605         mountlist: add me_mntroot field on Linux machines
21606         * lib/mountlist.c (read_file_system_list): Populate me_mntroot in
21607         mount_entry so Linux machines based on /proc/self/mountinfo can
21608         distinguish between bind mounts and original mounts.  In reality bind
21609         mounts aren't treated differently than mountroot=/ mounts by the
21610         kernel, but the user often wants these bind mounts distinguished.
21611         * lib/mountlist.h (struct mount_entry): Add me_mntroot element.
21612         More details at https://pad.lv/1432871
21614 2015-09-08  Christian Egli  <christian.egli@sbs.ch>
21616         doc: Describe to use multiple instances of gnulib
21617         * doc/gnulib-tool.texi: Add a section to the manual outlining how two
21618         instances of gnulib with different modules can be used, for example one
21619         for a lib and another one for associated tools.
21621 2015-09-01  Pádraig Brady  <P@draigBrady.com>
21623         base32: mark function as __attribute__ const
21624         * lib/base32.h (isbase32): Mark __attribute__ const as
21625         suggested by GCC, and consistent with the base64 module.
21627 2015-08-20  Daiki Ueno  <ueno@gnu.org>
21629         gnulib-tool: don't transform binary files with sed
21630         * gnulib-tool (func_add_or_update): Don't apply sed_transform_* to
21631         .mo and .class files.
21632         Reported by Denis Denisov.
21634 2015-08-10  Daiki Ueno  <ueno@gnu.org>
21636         gperf: respect silent rules
21637         * modules/gperf (Makefile.am): Define V_GPERF, V_GPERF_, and
21638         V_GPERF_0 for silent rules.
21639         * modules/iconv_open (Makefile.am): Use V_GPERF.
21640         * modules/unicase/locale-language (Makefile.am): Likewise.
21641         * modules/unicase/special-casing (Makefile.am): Likewise.
21642         * modules/unictype/category-byname (Makefile.am): Likewise.
21643         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
21644         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
21645         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
21646         * modules/unictype/property-byname (Makefile.am): Likewise.
21647         * modules/unictype/scripts (Makefile.am): Likewise.
21648         * modules/uninorm/composition (Makefile.am): Likewise.
21650 2015-08-03  Paul Eggert  <eggert@cs.ucla.edu>
21652         Improve port of stdalign to C++11
21653         Problem reported by Sundaram in:
21654         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00003.html
21655         * lib/stdalign.in.h (alignof, alignas): Don't define if C++11 or newer.
21656         (__alignas_is_defined): Define if C++11 or newer.
21658 2015-08-01  Assaf Gordon  <assafgordon@gmail.com>  (tiny change)
21660         pmccabe2html: fix gawk regex escaping
21661         * build-aux/pmccabe2html: Add one more backslash to properly
21662         escape the gsub replacement value.  Fixes this error:
21663         gawk: ./build-aux/pmccabe2html:425: \
21664         warning: escape sequence `\&' treated as plain `&'
21666 2015-07-29  Paul Eggert  <eggert@cs.ucla.edu>
21668         time_rz: port to pedantic memcpy
21669         * lib/time_rz.c (tzalloc): Pacify pedantic memcpy implementations
21670         that reject memcpy (..., NULL, 0).
21672 2015-07-27  Paul Eggert  <eggert@cs.ucla.edu>
21674         time_rz: port better to MinGW
21675         Don't change tzname, as this makes MinGW dump core (Bug#21020).
21676         Instead, store the tzname copy in the struct tm_zone object.
21677         Problem reported by Eli Zaretskii in: http://bugs.gnu.org/21020#48
21678         * lib/strftime.c [!_LIBC]:
21679         * lib/time_rz.c: Include time-internal.h.
21680         * lib/strftime.c (strftime_case_) [!HAVE_TM_ZONE]: Infer the zone
21681         name from *TZ rather than from TZNAME, doable because *TZ now has
21682         a tzname_copy member.
21683         * lib/time-internal.h: New file, with contents taken from
21684         lib/time_rz.c.  It's separate because strftime.c now accesses
21685         struct tm_zone members.
21686         (struct tm_zone) [HAVE_TZNAME && !HAVE_TM_ZONE]:
21687         New member tzname_copy.
21688         * lib/time_rz.c (struct tm_zone): Move to time-internal.h.
21689         (tzalloc) [HAVE_TZNAME && !HAVE_TM_ZONE]:
21690         Initialize tzname_copy member.
21691         (save_abbr) [HAVE_TZNAME && !HAVE_TM_ZONE]: Save abbreviation
21692         in tzname_copy member.
21693         (revert_tz) [HAVE_TZNAME]: Remove no-longer-needed tzname saving.
21694         (restore_tzname): Remove; no longer needed.  All calls removed.
21695         * modules/time_rz (Files): Add lib/time-internal.h.
21697         time: port __need_time_t to MinGW
21698         * lib/time.in.h (__need_time_t): Do not treat specially on MinGW.
21699         Fix reported by Eli Zaretskii in: http://bugs.gnu.org/21020#36
21701 2015-07-25  Paul Eggert  <eggert@cs.ucla.edu>
21703         strftime: fix newly-introduced bug on Solaris
21704         * lib/strftime.c (strftime_case_): Set the local variable 'zone'
21705         consistently at the start, rather than doing some of the setup at
21706         the start and some in the %Z format spec.  This is cleaner, and
21707         works better with time_rz on platforms like Solaris where struct
21708         tm lacks a tm_zone member, as when !HAVE_TM_GMTOFF %z's calls to
21709         mktime_z and localtime_rz can mess up the tzname cache.
21711         test-strftime: test for Solaris bug
21712         * modules/strftime-tests (Depends-on): Add strerror.
21713         * tests/test-strftime.c: Include <errno.h>.
21714         (posixtm_test): New function, containing the old 'main'.
21715         (struct tzalloc_test, struct localtime_rz_test): New types.
21716         (TZ, LT): New static vars.
21717         (tzalloc_test): New function.
21718         (main): Rewrite in terms of posixtm_test and tzalloc_test.
21720         time_rz: port to Solaris etc.
21721         Works around a tzname problem on platforms like Solaris that have
21722         tzname but not tm_zone, by setting tzname at the appropriate time
21723         and restoring it later.
21724         * lib/time_rz.c (tzname_address, tzname_value) [HAVE_TZNAME]:
21725         New static vars.
21726         (save_abbr) [HAVE_TZNAME]: Set them.
21727         (revert_tz) [HAVE_TZNAME]: Clear or use them.
21728         (restore_tzname): New function.
21729         (localtime_rz, mktime_z): Use it.
21731         time_rz: now LGPL
21732         * modules/time_rz (License): Now LGPL, because strftime depends on it.
21734         time_rz: make a constant 'const'
21735         * lib/time_rz.c (local_tz): Now const.
21737         time_rz: fix off-by-one typo
21738         * lib/time_rz.c (extend_abbrs): Fix off-by-one typo.
21740 2015-07-23  Paul Eggert  <eggert@cs.ucla.edu>
21742         fprintftime, strftime: use timezone_t args
21743         * NEWS: Document the change.
21744         * lib/fprintftime.h (fprintftime):
21745         * lib/strftime.c (extra_args) [my_strftime]:
21746         * lib/strftime.h (nstrftime):
21747         Time zone arg is now of type timezone_t, not int.
21748         * lib/strftime.c (mktime_z) [_LIBC]: New macro.
21749         (__gmtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: Remove; no longer used.
21750         (my_strftime) [emacs && !my_strftime]:
21751         (emacs_strftimeu) [emacs && !FPRINTFTIME]:
21752         Remove; Emacs doesn't need this any more.
21753         (HAVE_TZSET) [my_strftime]: Unset, since we no longer want
21754         fprintftime and nstrftime to call tzset.
21755         (ut) [!my_strftime]: Remove, replacing with ...
21756         (tz) [!my_stftime]: ... this new macro.  All uses changed.
21757         (strftime_case_): Use localtime_rz and mktime_z instead
21758         of localtime_r and mktime.
21759         * modules/fprintftime (Depends-on): Add time_rz.
21760         * modules/strftime (Depends-on): Add time_rz.  Remove time_r.
21761         * tests/test-strftime.c (main): Adjust to new nstrftime API.
21763         time_rz: new module
21764         * MODULES.html.sh: Add time_rz.
21765         * lib/time_rz.c, m4/time_rz.m4, modules/time_rz: New files.
21766         * lib/time.in.h (timezone_t, tzalloc, tzfree, localtime_rz, mktime_z):
21767         New decls if _GNU_SOURCE && @GNULIB_TIME_RZ@ && ! @HAVE_TIMEZONE_T@.
21768         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS):
21769         New var HAVE_TIMEZONE_T (default 0).
21770         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
21771         New var GNULIB_TIME_RZ (default 0).
21772         * modules/time (time.h): Substitute the new vars.
21774         flexmember: license is now unlimited
21775         * modules/flexmember (License): Change to unlimited,
21776         since its only source file gives an unlimited license.
21778 2015-07-15  Eric Blake  <eblake@redhat.com>
21780         maint: update copyright paper procedures
21781         * config/srclist.txt: Drop outdated files.
21782         * doc/Copyright/conditions.txt: Update to latest.
21783         * doc/Copyright/assign.changes.manual: Delete.
21784         * doc/Copyright/assign.future.manual: Likewise.
21785         * doc/Copyright/assign.manual: Likewise.
21786         * doc/Copyright/assign.translation.manual: Likewise.
21787         * doc/Copyright/disclaim.changes.manual: Likewise.
21788         * doc/Copyright/disclaim.manual: Likewise.
21789         * doc/Copyright/disclaim.program: Likewise.
21791 2015-07-07  Daiki Ueno  <ueno@gnu.org>
21793         localename: fix link error on Illumos
21794         Illumos defines __sun, but does not have getlocalename_l nor the
21795         equivalent.  This partially reverts commit 387c214.
21796         * m4/localename.m4 (gl_LOCALENAME): Check if getlocalename_l is
21797         available, as well as uselocale.
21798         * lib/localename.c [HAVE_USELOCALE && __sun]: Don't fallback to
21799         use getlocalename_l if it is not available.
21801 2015-07-07  Daiki Ueno  <ueno@gnu.org>
21803         unistr/uN-strtok-tests: avoid a trivial leak
21804         * tests/unistr/test-u-strtok.h (test_u_strtok): Untabify.  Free
21805         input and delim after the multibyte delimiter tests.
21807 2015-07-04  Paul Eggert  <eggert@cs.ucla.edu>
21809         file-has-acl, acl-permissions: fix HP-UX typos
21810         Problem reported by John David Anglin in: http://bugs.gnu.org/20979
21811         * lib/file-has-acl.c (file_has_acl):
21812         * lib/set-permissions.c (context_acl_from_mode)
21813         (context_aclv_from_mode, set_acls):
21814         Fix some obvious typos when HAVE_GETCL /* HP-UX */.
21815         They were introduced by the recent ACL changes.
21817         regex: match current GNU grep behavior
21818         These symbols have not matched GNU grep behavior for quite some time.
21819         Fix prompted by Balazs Kezes bug report at: http://bugs.gnu.org/20974
21820         * lib/regex.h (RE_SYNTAX_GREP, RE_SYNTAX_EGREP):
21821         Change to match current GNU behavior.
21822         Simplify by expressing it as differences from POSIX BREs and EREs.
21823         (RE_SYNTAX_POSIX_EGREP): No longer differs from GNU behavior.
21825 2015-07-03  Jim Meyering  <meyering@fb.com>
21827         set-permissions.c: adjust acl_from_mode's cpp guard
21828         * lib/set-permissions.c (acl_from_mode): Guard with #ifdef
21829         directives identical to those guarding the sole use.
21830         Otherwise, on some systems, we'd get a warning about
21831         the function being defined but not used.
21832         Also, filter through cppi to correct misleading indentation
21833         of cpp directives.
21835 2015-07-03  Pádraig Brady  <P@draigBrady.com>
21837         tests: restrict shells to those that support 'local'
21838         The local keyword is very widely supported and used
21839         in tests in coreutils and grep at least.  Therefore
21840         restrict to testing with shells that support it.
21841         This mainly excludes /bin/sh on Solaris.
21842         * tests/init.sh (gl_shell_test_script_): Add a test for 'local'.
21844 2015-07-03  Seiya Kawashima  <skawashima@uchicago.edu>  (tiny change)
21845         and Daiki Ueno  <ueno@gnu.org>
21847         unistr/uN-strtok: handle multibyte delimiters
21848         Previously, uN_strtok moved PTR to the next unit to the token end.
21849         When DELIM contained a multibyte character, the new position could
21850         be a middle of a multibyte character.
21851         * lib/unistr/u-strtok.h (FUNC): Place PTR at the next character
21852         after the token.
21853         * lib/unistr/u8-strtok.c (U_STRMBLEN): New macro.
21854         * lib/unistr/u16-strtok.c (U_STRMBLEN): New macro.
21855         * lib/unistr/u32-strtok.c (U_STRMBLEN): New macro.
21856         * modules/unistr/u8-strtok (Depends-on): Depend on
21857         unistr/u8-strmblen.
21858         * modules/unistr/u16-strtok (Depends-on): Depend on
21859         unistr/u16-strmblen.
21860         * modules/unistr/u32-strtok (Depends-on): Depend on
21861         unistr/u32-strmblen.
21862         * tests/unistr/test-u-strtok.h: New file.
21863         * tests/unistr/test-u8-strtok.c: New file.
21864         * tests/unistr/test-u16-strtok.c: New file.
21865         * tests/unistr/test-u32-strtok.c: New file.
21866         * modules/unistr/u8-strtok-tests: New file.
21867         * modules/unistr/u32-strtok-tests: New file.
21868         * modules/unistr/u16-strtok-tests: New file.
21870 2015-07-02  Friedrich Haubensak  <hsk@fli-leibniz.de>
21872         update-copyright: fix test failure with perl >= 5.22 (trivial)
21873         * build-aux/update-copyright: Escape a literal left curly bracket,
21874         required with perl >= 5.22
21876 2015-07-02  Daiki Ueno  <ueno@gnu.org>
21878         u{16,32}-strstr-tests: relax timeout condition
21879         On slower platforms (e.g., Solaris 10/SPARC), u{16,32}-strstr
21880         tests can take longer than 5 seconds to complete.
21881         Reported by Dagobert Michelsen in:
21882         https://lists.gnu.org/r/bug-libunistring/2015-06/msg00006.html
21883         * tests/unistr/test-u16-strstr.c (main): Increase timeout from 5
21884         seconds to 10 seconds.
21885         * tests/unistr/test-u32-strstr.c (main): Likewise.
21887 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
21889         gnulib-common.m4: change the ARFLAGS default to 'cr'
21890         In some GNU/Linux distributions people started to compile 'ar'
21891         binary with --enable-deterministic-archives (binutils project).
21892         That, however, in combination with previous autotools long time
21893         working default AR{_,}FLAGS=cru causes warnings on such
21894         installations:
21895         ar: `u' modifier ignored since `D' is the default (see `U')
21896         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Set ARFLAGS='cr' if not
21897         set already.
21899 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
21901         selinux-h: avoid double free after *getfilecon()
21902         Originally reported by Ben Shelton on bug-tar:
21903         http://lists.gnu.org/r/bug-tar/2015-04/msg00009.html
21904         * lib/getfilecon.c (map_to_failure): Set the already freed '*con'
21905         pointer to NULL.  Man getfilecon(3) says that any non-NULL '*con'
21906         param should be freed by freecon(3) (regardless the return value).
21908 2015-07-01  Pavel Fedin  <p.fedin@samsung.com>
21910         fix pty related tests issues on Windows (trivial)
21911         * lib/grantpt.c (grantpt): grantpt.c seems to be never used on Windows,
21912         however it's still present in tests/ subdirectory of the final project.
21913         Therefore avoid it to pass `make check`.
21914         * tests/test-openpty.c (main): Windows has no PTYs and gnulib's openpty()
21915         will just return -ENOSYS, so avoid this non applicable test allowing
21916         the build to proceed.
21918 2015-07-01  Pádraig Brady  <P@draigBrady.com>
21920         acl: fix definition of acl_from_mode on FreeBSD
21921         This was causing basic coreutils copy operations to fail
21922         with ENOTSUP or ENOENT error messages.
21923         * lib/acl-internal.h (acl_from_mode): Only define when
21924         ! defined HAVE_ACL_FROM_TEXT.  That allows the version
21925         of acl_from_mode() defined in lib/set-permissions.c to
21926         be used on FreeBSD at least.
21927         * lib/set-permissions.c: Fix up comment spelling,
21928         and a redundant variable assignment; noticed in passing.
21930 2015-06-30  Pádraig Brady  <P@draigBrady.com>
21932         readutmp: port to FreeBSD >= 9
21933         * lib/readutmp.h: Map utmpxname() to setutxdb().
21934         With that coreutils who(1) and pinky(1) tests pass.
21936 2015-06-30  Paul Eggert  <eggert@cs.ucla.edu>
21938         mgetgroups: port to strict OS X
21939         The previous fix wasn't working, so use a bigger hammer (Bug#20923).
21940         * lib/mgetgroups.c: Ignore -Wpointer-sign diagnostics.
21941         (getgrouplist_gids) [HAVE_GETGROUPLIST]: Remove.  All uses removed.
21942         * m4/mgetgroups.m4 (gl_MGETGROUPS): Revert recent changes.
21944 2015-06-29  Paul Eggert  <eggert@cs.ucla.edu>
21946         mgetgroups: port to strict OS X
21947         * doc/glibc-functions/getgrouplist.texi (getgrouplist):
21948         Document the getgrouplist problem.
21949         * lib/mgetgroups.c (getgrouplist_gids) [HAVE_GETGROUPLIST]:
21950         New macro.
21951         (mgetgroups): Use it.
21952         * m4/mgetgroups.m4 (gl_MGETGROUPS):
21953         Check for OS X signature for getgrouplist.
21955 2015-06-29  Jim Meyering  <meyering@fb.com>
21957         linkat: fix invalid definition of LINKAT_SYMLINK_NOTSUP on OS X
21958         It started like this when building coreutils' latest on OS X,
21959         invoking ./configure with a nonempty --cache=.cache:
21961           lib/linkat.c:46:42: error: operator '||' has no right operand
21962           lib/linkat.c: In function 'rpl_linkat':
21963           lib/linkat.c:330:27: error: #if with no expression
21965         Here's linkat.c's line 46:
21967           #if !HAVE_LINKAT || LINKAT_SYMLINK_NOTSUP
21969         Here's some context:
21971           $ grep linkat_nofoll .cache
21972           gl_cv_func_linkat_nofollow=${gl_cv_func_linkat_nofollow=no}
21973           $ grep LINKAT_SYM lib/config.h
21974           #define LINKAT_SYMLINK_NOTSUP
21976         The problem is that m4/linkat.m4's gl_FUNC_LINKAT
21977         uses AC_CACHE_CHECK to set LINKAT_SYMLINK_NOTSUP,
21978         but that violates a tenet of AC_CACHE_CHECK: it must
21979         have no side effect other than setting its cache variable.
21981         What happens is that when the cache is set, we'd skip the
21982         code in that AC_CACHE_CHECK call, and leave LINKAT_SYMLINK_NOTSUP
21983         defined to whatever value it happened to have in configure's
21984         environment.  In my case, it was not defined, so this later code:
21986           AC_DEFINE_UNQUOTED([LINKAT_SYMLINK_NOTSUP], [$LINKAT_SYMLINK_NOTSUP],
21987             [Define to 1 if linkat can create hardlinks to symlinks])
21989         would emit code with an empty RHS.
21991         * m4/linkat.m4 (gl_FUNC_LINKAT): Move the setting of
21992         $LINKAT_SYMLINK_NOTSUP out of the AC_CACHE_CHECK code block.
21994 2015-06-28  Jim Meyering  <meyering@fb.com>
21996         mountlist: avoid an unused-label warning on OS X
21997         * lib/mountlist.c (read_file_system_list) [MOUNTED_GETMNTINFO]:
21998         Building on OS X, I saw a warning about the "free_then_fail" label
21999         being unused.  Give it the _GL_UNUSED_LABEL attribute.
22001         error.c: correct printf-style format: %d -> %u
22002         * lib/error.c (error_at_line): Correct __fxprintf format to use %u,
22003         rather than %d, to match the type of "line_number", unsigned int.
22005 2015-06-25  Pádraig Brady  <P@draigBrady.com>
22007         fts: avoid reading beyond the heap allocation
22008         GCC 5.1.1 with -O2 and -fsanitize=address reports
22009         a read of size 4 from a heap object of size 3 is indeed invalid,
22010         though this may be due to incorrect padding assumptions by GCC, see:
22011         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
22012         * lib/fts.c (fts_alloc): Increase allocation to alignof(FTSENT).
22013         * modules/fts: Depend on stdalign.
22015 2015-06-24  Pádraig Brady  <P@draigBrady.com>
22017         savedir: avoid undefined behavior in qsort call
22018         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
22019         "runtime error: null pointer passed as argument 1,
22020          which is declared to never be null"
22021         * lib/savedir.c (streamsavedir): Avoid the call with no entries.
22023 2015-06-24  Pádraig Brady  <P@draigBrady.com>
22025         userspec: avoid undefined behavior in gettext call
22026         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
22027         "runtime error: null pointer passed as argument 2,
22028          which is declared to never be null"
22029         * lib/userspec.c (parse_with_separator): Avoid passing NULL to gettext()
22031 2015-06-20  Glenn Morris  <rgm@gnu.org>
22033         gitlog-to-changelog: improve gitmerge.el commits
22034         Let the Emacs ChangeLog generation process exclude "skipped"
22035         messages from merge commits (Bug#20717).
22036         * build-aux/gitlog-to-changelog: Handle gitmerge.el skipped commits.
22038 2015-06-20  Paul Eggert  <eggert@cs.ucla.edu>
22040         wchar: fix MinGW compilation warnings
22041         This lets Texinfo compile cleanly.  See Eli Zaretskii in:
22042         http://lists.gnu.org/r/bug-gnulib/2015-06/msg00050.html
22043         * lib/wchar.in.h: Do not use special invocation convention on MinGW.
22045 2015-06-20  Daiki Ueno  <ueno@gnu.org>
22047         uniname/uniname-tests: use pristine data files
22048         For copyright and maintenance reasons, use the data files from UCD
22049         without modification.
22050         * tests/uniname/test-uninames.c (FIELDLEN): Remove.
22051         (getfield): Remove.
22052         (aliases_count): New global variable.
22053         (fill_names): Skip comments and empty lines in the input.  Don't
22054         use getfield.
22055         (fill_aliases): Likewise.
22056         (main): Change the expected command line arguments to:
22057         NAMES... ["--" ALIASES...].
22058         * tests/uniname/test-uninames.sh: Adjust to the change in
22059         test-uninames.c.
22060         * tests/uniname/UnicodeDataNames.txt: Remove.
22061         * tests/uniname/UnicodeData.txt: New file, from Unicode 8.0.0.
22062         * tests/uniname/NameAliases.txt: Use the pristine copy of the data
22063         file from Unicode 8.0.0.
22065 2015-06-19  Pádraig Brady  <P@draigBrady.com>
22067         linked-list, linkedhash-list: avoid compiler warnings
22068         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
22069         -Werror=suggest-attribute=pure (from GCC 5.1.1).
22071 2015-06-19  Daiki Ueno  <ueno@gnu.org>
22073         libunistring: bump minimum version to 0.9.6
22074         * all modules depending on updated Unicode data: Regenerate.
22075         The modules are listed by a script that does:
22076         - for each file listed by: git show --oneline --name-only 705f4efc
22077           - deduce the containing modules, based on "Files:"
22078         - deduce the modules which depend on the containing modules, based
22079           on "Depends-on:"
22081 2015-06-18  Daiki Ueno  <ueno@gnu.org>
22083         uniname/uniname: update to Unicode 8.0.0
22084         * lib/uniname/uninames.h: Regenerate.
22085         * tests/uniname/NameAliases.txt: Update from Unicode 8.0.0.
22086         * tests/uniname/UnicodeDataNames.txt: Update from Unicode 8.0.0.
22088 2015-06-18  Daiki Ueno  <ueno@gnu.org>
22090         libunistring: update to Unicode 8.0.0
22091         * lib/gen-uni-tables.c (SIZEOF): New macro.
22092         (output_numeric): Increase the maximum number of fractions from
22093         128 to 160.  Increase the level3 value width from 7 bits to 8
22094         bits.  Use SIZEOF instead of a hard-coded integer.
22095         (output_blocks): Decrease the cut-off threshold from 0x30000 to
22096         0x28000.
22097         (fill_blocks): Increase the maximum number of blocks from 256 to
22098         384.  Use SIZEOF instead of a hard-coded integer.
22099         (get_lbp): Adjust to new characters added in Unicode 8.0.0.
22100         * lib/unictype/numeric.c (uc_numeric_value): Adjust the level3
22101         value width.
22102         * lib/unilbrk/lbrktables.c (unilbrk_table): Implement LBP21b and
22103         a new case added to LBP22.
22104         * lib/uniwidth/width.c (nonspacing_table_data): Add U+08E3,
22105         U+A69E, U+FE2E..U+FE2F, U+111CA..U+111CC, U+11300,
22106         U+115DC..U+115DD, U+1171D..U+1171F, U+11722..U+11725,
22107         U+11727..U+1172B, U+1DA00..U+1DA36, U+1DA3B..U+1DA6C, U+1DA75,
22108         U+1DA84, U+1DA9B..U+1DA9F, and U+1DAA1..U+1DAAF.
22109         * tests/uniwidth/test-uc_width2.sh: Same updates as in
22110         lib/uniwidth/width.c.
22111         * all generated files under lib/uni* and tests/uni*: Regenerate.
22113 2015-06-16  Pádraig Brady  <P@draigBrady.com>
22115         gnu-web-doc-update: add --mirror to remove stale files
22116         * build-aux/gnu-web-doc-update: Add a --mirror option to remove
22117         out of date files from the CVS server.  Since this is usually
22118         appropriate, a prompt is given when the option is not specified,
22119         along with the `cvs remove` command that would be run.
22121 2015-06-06  Paul Eggert  <eggert@cs.ucla.edu>
22123         acl-permissions: pacify -Wsuggest-attribute=const
22124         Problem reported by Masanari Iida in: http://bugs.gnu.org/20753
22125         * lib/acl-internal.h (free_permission_context):
22126         Declare with attribute const if ! (defined USE_ACL &&
22127         (HAVE_ACL_GET_FILE || defined GETACL)).
22129         fsync: document AIX misbehavior
22130         * doc/posix-functions/fsync.texi (fsync):
22131         Document failure on AIX with read-only file descriptor.
22133 2015-06-05  Jonathan Perkin  <jperkin@joyent.com>  (tiny change)
22135         stdio: Don't redefine gets when using C++
22136         * lib/stdio.in.h (gets): Disable warning on C++.
22138 2015-06-05  Paul Eggert  <eggert@cs.ucla.edu>
22140         acl-permissions: port to AIX, C89 HP-UX
22141         Problems reported by Michael Felt.
22142         * lib/file-has-acl.c (file_has_acl) [HAVE_STATACL]:
22143         * lib/get-permissions.c (get_permissions) [USE_ACL && HAVE_STATACL]:
22144         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]:
22145         * lib/set-permissions.c (set_acls) [HAVE_ACLX_GET && ACL_AIX_WIP]:
22146         Add cast for AIX, whose system calls are declared to accept
22147         char * even though the arguments are really char const *.
22148         * lib/get-permissions.c (get_permissions):
22149         If USE_ACL && HAVE_GETACL /* HP-UX */, don't assume C99.
22150         If USE_ACL && HAVE_STATACL /* older AIX */, add missing decl
22151         that broke a build.
22152         * lib/mountlist.c (read_file_system_list) [MOUNTED_VMOUNT]:
22153         Rework types to pacify xlc.
22155 2015-06-03  Pádraig Brady  <P@draigBrady.com>
22157         vasprintf-posix: avoid compiling vasnprintf where possible
22158         * modules/vasprintf-posix: Avoid compiling the large vasnprintf
22159         module where not required.  For example on a GNU/Linux system
22160         when gnulib-tool is run with the --conditional-dependencies option.
22162 2015-06-02  Pádraig Brady  <P@draigBrady.com>
22164         file-has-acl: fix build on Mac OS X 10
22165         This reverts commit f1b37e3a which doesn't work on Mac OS X >= 10.4
22166         which has an incompatible 6 parameter getxattr() call.
22167         * doc/glibc-functions/getxattr.texi: Mention the divergent getxattr()
22168         call on Mac OS X >= 10.4.
22169         * doc/glibc-functions/fgetxattr.texi: Likewise.
22170         * lib/file-has-acl.c: Revert to more complete combined check.
22171         * m4/acl.m4 (gl_FILE_HAS_ACL): Likewise.
22172         Reported by Jack Howarth.
22174 2015-06-02  Pádraig Brady  <P@draigBrady.com>
22176         prefix-gnulib-mk: remove no longer needed special case
22177         * build-aux/prefix-gnulib-mk (prefix): Since commit e3704b9c,
22178         continued lib_SOURCES lines are no longer present,
22179         so special case handling of such entries is not required.
22181 2015-06-01  Pádraig Brady  <P@draigBrady.com>
22183         acl: don't depend on the deprecated qacl module
22184         * modules/acl (Depends-on): Use q{copy,set}-acl instead.
22186 2015-06-01  Pádraig Brady  <P@draigBrady.com>
22188         gnulib-tool: concatenate lib_SOURCES to a single line
22189         * gnulib-tool: Refactor the line merging sed logic,
22190         and use that to output a single lib_SOURCES line for each module.
22191         gnulib using projects often postprocess this output to prepend
22192         subdir paths to each item, and having a single line simplifies this
22193         processing allowing better decoupling from the gnulib-tool output.
22195 2015-06-01  Pavel Fedin  <p.fedin@samsung.com>
22197         pthread_sigmask: discount system version if a simple macro (trivial)
22198         MinGW64 has: #define pthread_sigmask(H, S1, S2) 0
22199         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Call the
22200         function to ensure it's available.
22202 2015-05-31  Pádraig Brady  <P@draigBrady.com>
22204         readlinkat: avoid OS X 10.10 trailing slash bug
22205         * doc/posix-functions/readlink.texi: Mention that OS X 10.10
22206         has this bug.
22207         * doc/posix-functions/readlinkat.texi: Likewise.  Also mention
22208         that OS X 10.10 has this function.
22209         * lib/readlinkat.c (rpl_readlinkat): Handle the trailing slash bug,
22210         as done for readlink().
22211         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check for the readlink()
22212         trailing slash bug, and assume readlinkat() has the same issue.
22213         Also fix a typo where $gl_cv_decl_readlink_works was tested,
22214         rather than the correct $gl_cv_decl_readlinkat_works.
22216 2015-05-29  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
22218         acl-permissions: Fix build on Mac OS X and older AIX (Bug#20681)
22219         * lib/set-permissions.c (set_acls): Fix more errors introduced in the acl
22220         module rewrite.
22222         acl-permissions: Fix build on Solaris and Cygwin
22223         Reported by Tom G. Christensen <tgc@jupiterrise.com>:
22224         * lib/set-permissions.c (set_acls): The count, entries, ace_count, and
22225         ace_entries variables have moved into struct permission_context but
22226         they were still accessed as local variables here.
22228 2015-05-29  Pádraig Brady  <P@draigBrady.com>
22230         linkat: avoid OS X 10.10 trailing slash with symlink bug
22231         On Darwin 14.3.0 linkat(,"path1",,"dangling_symlink/",)
22232         causes the symlink to be dereferenced, and if it points
22233         to a non existent file, that file will be created as
22234         a hard link to "path1".
22235         This fixes a test failure in test-linkat.c.
22236         * m4/linkat.m4 (gl_FUNC_LINKAT): Augment the test with
22237         this case.  The existing workaround in linkat.c for
22238         trailing slash issues, suffices for this case.
22239         * doc/posix-functions/linkat.texi: Add OS X 10.10 to
22240         the list of platforms with trailing slash issues.
22242 2015-05-28  Pádraig Brady  <P@draigBrady.com>
22244         unlinkat: handle ignoring of ".." on Darwin 14
22245         * lib/unlinkat.c: unlinkat() has the same bug as unlink()
22246         on Mac OS X 10.10, where it ignores paths with a trailing "..",
22247         so handle in the same manner.
22248         * m4/unlinkat.m4: Comment on this Darwin issue.
22249         * doc/posix-functions/unlink.texi: Update the latest version
22250         where the issue was seen.
22251         * doc/posix-functions/unlinkat.texi: Mention this issue.
22252         Fixes a test failure in test-unlinkat.c.
22254 2015-05-27  Paul Eggert  <eggert@cs.ucla.edu>
22256         qacl: split into qcopy-acl and qset-acl
22257         Emacs needs the former, but not the latter.
22258         * modules/acl-permissions: New file, containing most of the old qacl.
22259         * modules/file-has-acl (Depends-on): Depend on acl-permissions, not qacl.
22260         * modules/qacl: Now merely depends on qcopy-acl and qset-acl.
22261         * modules/qcopy-acl, modules/qset-acl: New files.
22262         * MODULES.html.sh (File system functions):
22263         Mention the new modules, and mention qacl while we're at it.
22265 2015-05-27  Glenn Morris  <rgm@gnu.org>
22267         gitlog-to-changelog: new option --ignore-line
22268         (This patch is imported from the GNU Emacs master.)
22269         This option ignores individual commit lines matching a pattern.
22270         * build-aux/gitlog-to-changelog: Add --ignore-line option.
22272 2015-05-27  Andreas Gruenbacher  <agruenba@redhat.com>
22274         qacl: Reimplement qset_acl and qcopy_acl (Bug#20666)
22275         Implement get_permissions and set_permissions primitives for getting all
22276         the permissions of a file, storing them, and later setting them. (In the
22277         minimal case, the permissions consist only of a file mode.) Reimplement
22278         qset_acl and qcopy_acl based on these new primitives: this avoids code
22279         duplication and makes error handling more consistent.
22280         The Solaris and Cygwin code still uses duplicate code paths for setting
22281         a file mode while making sure that no acls exist and setting an explicit
22282         acl; this is no worse than before, but could be cleaned up.  The AIX
22283         code still doesn't read ACLs, it only makes sure that acls don't get in
22284         the way when setting a file mode.
22285         * lib/acl-internal.h (struct permission_context): New data structure.
22286         (get_permissions, set_permissions, free_permission_context): Declare.
22287         * lib/acl-internal.c (free_permission_context): New helper function.
22288         * lib/get-permissions.c (get_permissions): New helper function split off
22289         from qcopy_acl.
22290         * lib/set-permissions.c: (set_acls_from_mode): On Solaris, Cygwin, and
22291         AIX, set a file's permissions based only on a file mode.
22292         (acl_from_mode, context_acl_from_mode, context_aclv_from_mode): All
22293         other platforms construct a temporary acl from the file mode and set
22294         that acl in the same way as setting an acl read from the source file.
22295         This should help avoid code duplication and inconsistent / buggy
22296         behavior.
22297         (set_acls): New helper function Split off from qcopy_acl.
22298         (chmod_or_fchmod): Moved here from qset-acl.c.
22299         (set_permissions): New helper function.
22300         * lib/qcopy-acl.c (qcopy_acl): Rewrite using get_permissions and
22301         set_permissions.
22302         * lib/qset-acl.c (qset_acl): Rewrite using set_permissions.
22303         * modules/qacl: Add get-permissions.c and set-permissions.c.
22305         file-has-acl: Split feature tests again (Bug#20667)
22306         * lib/file-has-acl.c: Instead of testing for
22307         XATTR_NAME_POSIX_ACL_ACCESS and XATTR_NAME_POSIX_ACL_DEFAULT,
22308         define them when needed.
22309         * m4/acl.m4 (gl_FILE_HAS_ACL): With that, Paul's
22310         GETXATTR_WITH_POSIX_ACLS change shouldn't be needed anymore.
22312 2015-05-27  Pádraig Brady  <P@draigBrady.com>
22314         string: fix build failure on BSD/OSX with FORTIFY_SOURCE
22315         This avoids a conflict with "FORTIFY_SOURCE" variants
22316         of the string functions when they're replaced on NetBSD-6.0.1
22317         and Darwin-14.3.0 at least.
22318         * lib/string.in.h: Avoid including our "lib/string.h" while
22319         including the system <string.h>.
22321 2015-05-26  Eric Blake  <eblake@redhat.com>
22323         stdio: limit __gnu_printf__ witness to gcc 4.4+
22324         * lib/error.h (_GL_ATTRIBUTE_SPEC_PRINTF): Move gcc version probe...
22325         * m4/stdio_h.m4 (gl_STDIO_H): ...here.
22327         error: use correct printf attributes on mingw
22328         * lib/stdio.in.h (_GL_ATTRIBUTE_SPEC_PRINTF): New define.
22330         inttypes: force correct mingw PRIdMAX even without <stdio.h>
22331         * modules/inttypes (Depends-on): Require extensions, so that mingw
22332         always uses GNU style inttypes.
22333         * lib/inttypes.in.h: On mingw, include <stdio.h>.
22335         stdio: fix probe on mingw under gcc 5.1
22336         * m4/stdio_h.m4 (gl_STDIO_H): Change to compile test, to work
22337         around new gcc preprocessor rules.
22339 2015-05-07  Glenn Morris  <rgm@gnu.org>
22341         gitlog-to-changelog: parse "Tiny-change"
22342         * build-aux/gitlog-to-changelog: Treat "Tiny-change" like
22343         "Copyright-paperwork-exempt".  (Bug#20324)
22345 2015-05-06  Pádraig Brady  <P@draigBrady.com>
22347         doc: document glibc posix_fallocate() issues
22348         * doc/posix-functions/posix_fallocate.texi: Mention the
22349         glibc efficiency problems and issues with NFS.
22351 2015-05-05  Karl Berry  <karl@freefriends.org>
22353         * build-aux/gendocs.sh (usage): document new css default
22354         for HTML (--htmlarg).
22356 2015-04-29  Paul Eggert  <eggert@cs.ucla.edu>
22358         extern-inline: no need for workaround in GCC 5.1
22359         * doc/extern-inline.texi (extern inline):
22360         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
22361         GCC bugs 54113 and 63877 are fixed in GCC 5.1, so don't work
22362         around these bugs in GCC 5.1 and later.  Maybe in a decade or
22363         two we can remove these workarounds.
22365 2015-04-28  Pádraig Brady  <P@draigBrady.com>
22367         eealloc, pagealign_alloc, xalloc: avoid clang warnings
22368         Avoid [-Wunknown-attributes] warnings like:
22369         warning: unknown attribute '__alloc_size__' ignored
22370         * lib/xalloc.h: Don't use the __alloc_size__  attribute
22371         with clang, as support has been fully removed as of clang 3.5:
22372         https://github.com/llvm-mirror/clang/commit/c047507a
22373         * lib/eealloc.h: Likewise.
22374         * lib/pagealign_alloc.h: Likewise.
22376 2015-04-27  Paul Eggert  <eggert@cs.ucla.edu>
22378         tests: pacify GCC 5.1's stricter printf checking
22379         * tests/test-dirname.c (main):
22380         * tests/test-getaddrinfo.c (simple):
22381         * tests/test-getlogin.c (main):
22382         * tests/test-getndelim2.c (main):
22383         * tests/test-inttostr.c (CK):
22384         * tests/test-md5.c (main):
22385         * tests/test-read-file.c (main):
22386         * tests/test-sha1.c (main):
22387         Fix mismatches between printf format and value signedness.
22388         * tests/test-inttostr.c (FMT, CAST_VAL, V_min, V_max):
22389         Remove, as CAST_VAL always returned a value of type uintmax_t.
22391         fts: port to GCC 5.1 with --enable-gcc-warnings
22392         Without this fix, GCC 5.1 (correctly) warns about a subscript
22393         error on the fts_name component of FTSENT.  It's actually a
22394         flexible member, so define it that way on C99 or later hosts.
22395         * lib/fts.c (fts_alloc): Use offsetof, not sizeof, for a
22396         structure that now has a flexible array member.
22397         * lib/fts_.h (__FLEXIBLE_ARRAY_MEMBER): New macro.
22398         (FTSENT): fts_name is now flexible on C99-or-later platforms.
22399         * modules/fts (Depends-on): Add flexmember.
22401 2015-04-26  Paul Eggert  <eggert@cs.ucla.edu>
22403         file-has-acl: port to CentOS 6
22404         Problem reported by Tom G. Christensen in:
22405         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00074.html
22406         * lib/file-has-acl.c: Use GETXATTR_WITH_POSIX_ACLS instead of a
22407         combination of HAVE_SYS_XATTR_H, HAVE_LINUX_XATTR_H, and
22408         HAVE_GETXATTR.
22409         * m4/acl.m4 (gl_FILE_HAS_ACL): Test fot the entire combination of
22410         linux/xattr.h, sys/xattr.h, getxattr, XATTR_NAME_POSIX_ACL_ACCESS,
22411         and XATTR_NAME_POSIX_ACL_DEFAULT, since that's what
22412         file-has-acl.c actually needs.
22414 2015-04-26  Pádraig Brady  <P@draigBrady.com>
22416         file-has-acl: always return false when ACLs aren't supported
22417         * lib/file-has-acl.c (file_has_acl): Consistent with other paths,
22418         change the GNU/Linux getxattr path, to transform "not supported"
22419         errors to a false return rather than an error.  This is handled
22420         within file_has_acl() due to the platform specific tests to
22421         determine if ACLs are not supported.
22423 2015-04-25  Paul Eggert  <eggert@cs.ucla.edu>
22425         gettext: propagate po/Makefile.in.in too
22426         * build-aux/po/Makefile.in.in: Copy from latest gettext.
22427         * config/srclist.txt: In build-aux/po, copy Makefile.in.in and
22428         remove-potcdate.sin from $GETTEXT.  This fixes a version mismatch
22429         between Makefile.in.in and the gettext-runtime m4 files.
22431 2015-04-24  Paul Eggert  <eggert@cs.ucla.edu>
22433         file-has-acl: new module, split from acl
22434         And add a new module file-has-acl-tests to match.
22435         I ran into a problem with the recent changes to the acl module,
22436         as they introduced a typo 'test use_xattrs = 0' into 'configure'.
22437         When using the fixed version with Emacs, I discovered that
22438         file-has-acl wasn't separated out well enough for Emacs (e.g., it
22439         had multiple libraries, but needed only one), so I fixed that too.
22440         * NEWS: Document this incompatible change.
22441         * modules/file-has-acl, modules/file-has-acl-tests: New files.
22442         * m4/acl.m4 (gl_FUNC_ACL_ARG): New macro, split from gl_FUNC_ACL.
22443         Initialize gl_need_lib_has_acl.
22444         (gl_FUNC_ACL): Require it.
22445         Simplify use of 'test'.  Set LIB_HAS_ACL if gl_need_lib_has_acl.
22446         Move the file-has-acl.c-relevant stuff to ...
22447         (gl_FILE_HAS_ACL): ... this new macro.  Rewrite to fix 'test
22448         use_xattrs = 0' typo, and omit some needless work.  Set
22449         gl_need_lib_has_acl=1 if we'll need LIB_HAS_ACL to be set
22450         when gl_FUNC_ACL is called.
22451         * modules/acl (Files, lib_SOURCES): Remove lib/file-has-acl.c.
22452         (Link): Remove $(LIB_HAS_ACL).
22453         * modules/acl-tests (Files, Depends-on, configure.ac, TESTS)
22454         (check_PROGRAMS): Move stuff relevant to file-has-acl to
22455         modules/file-has-acl-tests.
22456         (test_file_has_acl_LDADD): Move to modules/file-has-acl-tests.
22458         manywarnings: add GCC 5.1 warnings
22459         * build-aux/gcc-warning.spec: Add -Wabi=, -Warray-bounds,
22460         -Warray-bounds=, -Wc++14-compat, -Wc90-c99-compat,
22461         -Wc99-c11-compat, -Wshadow-ivar, -Wsized-deallocation,
22462         -Wsuggest-override, -Wuse-without-only.  Change
22463         -Wnormalized=... operands to match 5.1.
22464         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wbool-compare,
22465         -Wchkp, -Wdesignated-init, -Wdiscarded-array-qualifiers,
22466         -Wdiscarded-qualifiers, -Wformat-signedness,
22467         -Wincompatible-pointer-types, -Wint-conversion,
22468         -Wlogical-not-parentheses, -Wmemset-transposed-args, -Wodr,
22469         -Wshift-count-negative, -Wshift-count-overflow,
22470         -Wsizeof-array-argument, -Wsuggest-final-methods,
22471         -Wsuggest-final-types, -Wswitch-bool.  Remove -Warray-bounds,
22472         and add -Warray-bounds=2 as a special case.
22474 2015-04-21  Simon Josefsson  <simon@josefsson.org>
22476         doc: update FDL template to match FDL examples.
22477         * doc/alloca-opt.texi:
22478         * doc/alloca.texi:
22479         * doc/c-ctype.texi:
22480         * doc/c-strcase.texi:
22481         * doc/c-strcaseeq.texi:
22482         * doc/c-strcasestr.texi:
22483         * doc/c-strstr.texi:
22484         * doc/c-strtod.texi:
22485         * doc/c-strtold.texi:
22486         * doc/ctime.texi:
22487         * doc/error.texi:
22488         * doc/gcd.texi:
22489         * doc/gnulib-tool.texi:
22490         * doc/inet_ntoa.texi:
22491         * doc/intprops.texi:
22492         * doc/lib-symbol-visibility.texi:
22493         * doc/maintain.texi:
22494         * doc/parse-datetime.texi:
22495         * doc/quote.texi:
22496         * doc/regexprops-generic.texi:
22497         * doc/standards.texi: Remove spurious 'with' in FDL license
22498         template.
22500 2015-04-21  Paul Eggert  <eggert@cs.ucla.edu>
22502         lstat: fix cross-compilation 'ln -s' problem
22503         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
22504         Have the test program call 'symlink' rather than a separate
22505         script run 'ln -s'; this is more likely to work in
22506         cross-compilation environments.  Reported by Pavel Fedin in:
22507         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00060.html
22509 2015-04-16  Ludovic Courtès  <ludo@gnu.org>
22511         gendocs.sh: default to a common CSS style sheet for HTML output
22512         * build-aux/gendocs.sh (htmlarg): Change default value.
22514 2015-04-15  Mats Erik Andersson  <gnu@gisladisker.se>
22516         gnulib-tool: output bold attribute more portably
22517         * gnulib-tool (func_show_module_list): Change hexadecimal
22518         numbers to octal in BOLD_ON and BOLD_OFF.  The use of hex
22519         encoded numbers as arguments to `printf' is not portable,
22520         and is not claimed by POSIX.  This is the case with FreeBSD.
22522 2015-04-15  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
22524         qacl: Simplify HP-UX acl_nontrivial check
22525         * lib/acl-internal.c: Remove struct stat parameter from HP-UX's version of
22526         acl_nontrivial. Check if the acl has at most three entries instead (it must
22527         have exactly three entries according to the HP-UX documentation). Ignore
22528         uids and gids as long as an entry is either for a user (i.e., the owner),
22529         a group (i.e., the owning group), or others.
22530         * lib/acl-internal.h: Change HP-UX's acl_nontrivial prototype.
22531         * lib/qcopy-acl.c (qcopy_acl): With that, we no longer need to stat the file.
22533 2015-04-15  Andreas Gruenbacher   <andreas.gruenbacher@gmail.com>
22535         acl: On Linux, check for acls without libacl
22536         On Linux, use the getxattr syscall instead of the acl_extended_file libacl
22537         library function to check for the presence of acls, avoiding a library.
22538         * lib/file-has-acl.c: Include xattr headers if we have them.
22539         (file_has_acl): On Linux, use getxattr().
22540         * m4/acl.m4 (gl_FUNC_ACL): Define LIB_HAS_ACL as the libraries to link with for
22541         file_has_acl(). Check for xattr headers and getxattr().
22543 2015-04-14  Ángel González  <keisial@gmail.com>
22545         tempname: avoid unused parameter warnings (trivial)
22546         * lib/tempname.c (try_dir): Tag with __GL_UNUSED.
22547         (try_nocreate): Likewise.
22549 2015-04-14  HIRAMATSU Yoshifumi  <hiramatu@boreas.dti.ne.jp>
22551         fseeko: fix build failure on NetBSD >= 6 (trivial)
22552         * lib/fseeko.c (feeko): NetBSD 6 changed the definition of _offset
22553         from 'fpos_t struct' to __off_t, which is a typedef of __int64_t.
22555 2015-04-09  Paul Eggert  <eggert@cs.ucla.edu>
22557         gitlog-to-changelog: port to MS-Windows
22558         * build-aux/gitlog-to-changelog (git_dir_option):
22559         Use strftime with "%Y-%m-%d", not "%F", to avoid a bug in
22560         MS-Windows Perl.  Reported by Eli Zaretskii in:
22561         http://lists.gnu.org/r/emacs-devel/2015-04/msg00504.html
22563 2015-04-07  Karl Berry  <karl@gnu.org>
22565         gendocs: new option --tex for passing args to texi2dvi.
22566         * build-aux/gendocs.sh: new option --tex, default -t @finalout.
22567         (TEXI2DVI): cut to just command name.
22568         (usage): mention new option, and update copyright.
22569         <generate_tex>: use it.
22571 2015-04-07  Karl Berry  <karl@gnu.org>
22573         * config/srclistvars.sh (GETTEXT): new definition.
22574         * config/srclist.txt: use it for gettext .m4 files.
22575         Thread starting at http://lists.gnu.org/r/bug-gnulib/201
22576         and confirmed at http://lists.gnu.org/r/bug-gnulib/2015-02/msg00146.html
22577         and continuing into April.
22579 2015-04-07  Daiki Ueno  <ueno@gnu.org>
22581         uniname/uniname-tests: fix failure due to alias
22582         Reported by Jack Howarth in:
22583         <https://lists.gnu.org/r/bug-libunistring/2015-04/msg00000.html>.
22584         * tests/uniname/test-uninames.c (name_has_alias): New function.
22585         (test_inverse_lookup): Exclude character name with valid alias,
22586         from randomly generated character names.
22587         (main): Fill unicode_aliases before calling test functions.
22589 2015-04-03  Giuseppe Scrivano  <gscrivan@redhat.com>
22591         hash: remove deprecated hash_insert0 function
22592         * lib/hash.h (hash_insert0): Remove deprecated function.
22593         * lib/hash.c (hash_insert0): Likewise.
22595 2015-04-02  Pádraig Brady  <P@draigBrady.com>
22597         mountlist: remove dependency on libmount
22598         * lib/mountlist.c (read_file_system_list): Parse /proc/self/mountinfo
22599         directly, rather than depending on libmount, which has many
22600         dependencies due to its dependence on libselinux, as detailed at:
22601         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00063.html
22602         Note we restrict this to __linux__ as that's probably where this
22603         interface will remain.  If ever porting, it would be best
22604         to first pull the makedev() wrapper from coreutils to a gnulib module.
22605         Note also we don't add a getline dependency to the mountlist module,
22606         as all Linux versions are sufficient.
22608 2015-04-02  Paul Eggert  <eggert@cs.ucla.edu>
22610         stddef: port to pre-C11 GCC on x86
22611         On this platform, max_align_t should have an alignment of 8 even
22612         though the storage alignments of double, long, etc. max out at 4.
22613         Inspired by a comment of Andreas Schwab's here:
22614         https://sourceware.org/ml/libc-alpha/2015-04/msg00017.html
22615         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS) [!HAVE_MAX_ALIGN_T]: New macro.
22616         (max_align_t) [!HAVE_MAX_ALIGN_T]: Use it.
22617         * tests/test-stddef.c: Test __alignof__ too, if available.
22619 2015-03-24  Pádraig Brady  <P@draigBrady.com>
22621         quotearg-simple-tests: add missing gl_FUNC_MMAP_ANON dependency
22622         * modules/quotearg-simple-tests: Reference m4/mmap-anon.m4
22624 2015-03-24  Tobias Stoeckmann  <tobias@stoeckmann.org>
22626         yesno: make EOL optional in ENABLE_NLS case also (trival)
22627         * lib/yesno.c (yesno): Check for EOL before replacing.
22628         * tests/test-yesno.sh: Add a test case (test along with gettext).
22630 2015-03-22  Paul Eggert  <eggert@cs.ucla.edu>
22632         fdopendir-tests: test it does not close its arg
22633         * tests/test-fdopendir.c (main): Test that fdopendir does not
22634         close its argument.  From a suggestion by David Grayson in:
22635         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00039.html
22637 2015-03-20  Paul Eggert  <eggert@cs.ucla.edu>
22639         gitlog-to-changelog: trim trailing white space
22640         * build-aux/gitlog-to-changelog (main):
22641         Trim trailing white space from commit message lines.
22642         This is helpful for processing the GNU Emacs repository,
22643         which dates back to 1985 and contains a lot of such lines.
22645         gitlog-to-changelog: new option --ignore-matching
22646         * build-aux/gitlog-to-changelog (usage, git_dir_option, main):
22647         Support new option --ignore-matching=PAT, which ignores all
22648         commit messages whose first line matches PAT.
22650 2015-03-19  Paul Eggert  <eggert@cs.ucla.edu>
22652         fdopendir: port better to MinGW
22653         * lib/fdopendir.c (fd_clone_opendir) [REPLACE_FCHDIR]:
22654         Use 'dup' if dirfd fails.  Suggested by Eli Zaretskii in:
22655         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00033.html
22656         * modules/fdopendir (Depends-on): Add dirfd.
22658 2015-03-18  Paul Eggert  <eggert@cs.ucla.edu>
22660         fdopendir: fix typo in comment
22661         * lib/fdopendir.c (fdopendir_with_dup): REPLACE_FCHDIR was misspelled.
22663 2015-03-09  Eric Blake  <eblake@redhat.com>
22665         error: document all entry points provided
22666         * doc/glibc-functions/error_print_progname.texi
22667         (error_print_progname): Mention the error module.
22668         * doc/glibc-functions/error_at_line.texi (error_at_line):
22669         Likewise.
22670         * doc/glibc-functions/error_message_count.texi
22671         (error_message_count): Likewise.
22672         * doc/glibc-functions/error_one_per_line.texi
22673         (error_one_per_line): Likewise.
22675 2015-03-03  Paul Eggert  <eggert@cs.ucla.edu>
22677         vasnprintf: pacify clang 3.5.0
22678         Problem reported by Werner Lemberg in:
22679         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00000.html
22680         * lib/vasnprintf.c (VASNPRINTF): Omit casts that clang objects to.
22681         The casts aren't needed, since the characters in question are ASCII.
22683 2015-02-24  Paul Eggert  <eggert@cs.ucla.edu>
22685         glob, etc.: port to MSVC v18 on MS-Windows 8.1
22686         * lib/dirent--.h (GNULIB_defined_opendir):
22687         * lib/dirent.in.h (GNULIB_defined_opendir)
22688         (GNULIB_defined_closedir):
22689         * lib/getcwd.c, lib/glob.c, lib/mountlist.c (opendir, closedir):
22690         #undef only if Gnulib defined it.
22692         poll: port to MSVC v18 on MS-Windows 8.1
22693         Problem reported by Gisle Vanem in:
22694         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00139.html
22695         * lib/poll.c: Always include <sys/select.h> and <sys/socket.h>.
22696         * modules/poll (Depends-on) [!HAVE_POLL || REPLACE_POLL]:
22697         Add sys_socket.
22699 2015-02-24  Pádraig Brady  <P@draigBrady.com>
22701         tests: support stderr verification with returns_()
22702         * tests/init.sh (returns_): Disable tracing for this wrapper
22703         function, so that stderr of the wrapped command is unchanged,
22704         allowing for verification of the contents.
22706 2015-02-24  Pavel Hrdina  <phrdina@redhat.com>
22708         passfd: avoid valgrind uninitalised data warning
22709         * lib/passfd.c (sendfd): Reset the msg_controllen of msghdr,
22710         to include just the fd we've initialized, rather than including
22711         the extra space used for alignment.
22713 2015-02-23  Paul Eggert  <eggert@cs.ucla.edu>
22715         uniwbrk/u32-wordbreaks-tests: fix copyright
22716         * tests/uniwbrk/test-uc-wordbreaks.c: Fix copyright date.
22718         dup2: doc and test for Android bug
22719         Reported by Kevin Cernekee in:
22720         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00125.html
22721         * doc/posix-functions/dup2.texi (dup2): Document the bug.
22722         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the bug.
22724 2015-02-23  Kevin Cernekee  <cernekee@google.com>
22726         Replace dup2() on Android
22727         * m4/dup2.m4 (gl_FUNC_DUP2): Android implements dup2() using dup3().
22728         Since dup3(fd, fd) fails but dup2(fd, fd) should pass, test-dup2
22729         fails.  Using rpl_dup2() fixes this because it has an explicit test
22730         for this condition.
22732 2015-02-22  Paul Eggert  <eggert@cs.ucla.edu>
22734         Android doesn't define RLIM_SAVED_*
22735         Portability problem reported by Kevin Cernekee in:
22736         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00122.html
22737         * doc/posix-headers/sys_resource.texi (sys/resource.h):
22738         Mention the portability problem.
22739         * lib/getdtablesize.c (RLIM_SAVED_CUR, RLIM_SAVED_MAX):
22740         Define if not defined.
22741         * m4/dup2.m4 (gl_FUNC_DUP2):
22742         * m4/fcntl.m4 (gl_FUNC_FCNTL):
22743         Likewise.
22745 2015-02-21  Paul Eggert  <eggert@cs.ucla.edu>
22747         vasnprintf-posix-tests: use consistent test
22748         * tests/test-vasnprintf-posix.c (test_function):
22749         Use "<" in assert instead of "<=", for consistency with other tests.
22751 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
22753         printf, isinf, etc.: noncanonical != NaN
22754         Do not require that isinf, printf, etc. treat noncanonical
22755         values as NaNs.  Instead, require only that they do not crash.
22756         Problem reported by Joseph Myers in:
22757         https://sourceware.org/ml/libc-alpha/2015-02/msg00244.html
22758         * doc/posix-functions/dprintf.texi (dprintf):
22759         * doc/posix-functions/fprintf.texi (fprintf):
22760         * doc/posix-functions/isfinite.texi (isfinite):
22761         * doc/posix-functions/isinf.texi (isinf):
22762         * doc/posix-functions/isnan.texi (isnan):
22763         * doc/posix-functions/printf.texi (printf):
22764         * doc/posix-functions/snprintf.texi (snprintf):
22765         * doc/posix-functions/sprintf.texi (sprintf):
22766         * doc/posix-functions/vdprintf.texi (vdprintf):
22767         * doc/posix-functions/vfprintf.texi (vfprintf):
22768         * doc/posix-functions/vprintf.texi (vprintf):
22769         * doc/posix-functions/vsnprintf.texi (vsnprintf):
22770         * doc/posix-functions/vsprintf.texi (vsprintf):
22771         Document this.
22772         * m4/isfinite.m4 (gl_ISFINITEL_WORKS):
22773         * m4/isinf.m4 (gl_ISINFL_WORKS):
22774         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS):
22775         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE):
22776         * tests/test-isfinite.c (test_isfinitel):
22777         * tests/test-isinf.c (test_isinfl):
22778         * tests/test-isnan.c (test_long_double):
22779         * tests/test-isnanl.h (main):
22780         * tests/test-snprintf-posix.h (test_function):
22781         * tests/test-sprintf-posix.h (test_function):
22782         * tests/test-vasnprintf-posix.c (test_function):
22783         * tests/test-vasprintf-posix.c (test_function):
22784         Test only that noncanonical values do not cause crashes, not that
22785         they are treated as NaNs.  In some cases this means a larger
22786         output buffer is needed.
22788 2015-02-20  Jaroslav Skarvada  <jskarvad@redhat.com>
22790         fts: remove redundant close() (trivial)
22791         * lib/fts.c (fts_read): Remove redundant call to close().
22792         Spotted by coverity.
22794 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
22796         getdtablesize: port better for Android
22797         Problem reported by Kevin Cernekee in:
22798         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00112.html
22799         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Mention bug.
22800         * lib/getdtablesize.c (getdtablesize): Don't fall back on _SC_OPEN_MAX.
22801         Instead, just use getrlimit, taking care to avoid Cygwin bug.
22803         poll: fixes for large fds
22804         * lib/poll.c (poll): Don't check directly for NFD too large.
22805         Don't rely on undefined behavior in FD_SET when an arg exceeds
22806         FD_SETSIZE.  Always set revents afterwards, even if to zero.
22807         * tests/test-poll.c (poll1): Set revents to -1 instead of 0,
22808         as that makes the test a bit stricter.
22810 2015-02-19  Kevin Cernekee  <cernekee@google.com>
22812         fcntl: Fix cross compiling
22813         * m4/fcntl.m4 (gl_FUNC_FCNTL): Assign the guessed result to the
22814         correct variable name (gl_cv_func_fcntl_f_dupfd_works).
22816 2015-02-18  Paul Eggert  <eggert@cs.ucla.edu>
22818         dup2, fcntl: cross-compile better for Android
22819         Problem reported by Kevin Cernekee in:
22820         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00109.html
22821         * m4/dup2.m4 (gl_FUNC_DUP2): Don't guess no when cross-compiling
22822         for a Linux kernel.  That kernel bug was fixed on 2009-05-11, and
22823         there's little need to cross-compile for older kernels nowadays.
22824         * m4/fcntl.m4 (gl_FUNC_FCNTL): When cross-compiling, guess no only
22825         for systems where the bug is known to occur (AIX, Cygwin, Haiku).
22827 2015-02-18  Pádraig Brady  <P@draigBrady.com>
22829         getopt: don't crash on memory exhaustion
22830         * lib/getopt.c (_getopt_internal_r): Use degraded diagnostics on
22831         memory exhaustion.  In the _LIBC case we use alloca() as is
22832         already done in glibc, so we don't need to consider the separate
22833         error path in that awkward case.  Also fix a memory leak when
22834         ambiguous options are present.
22835         Reported by Tobias Stoeckmann
22837 2015-02-17  Mike Miller  <mtmiller@ieee.org>
22839         tempname: allow compilation with C++ (trivial)
22840         * lib/tempname.h [C++]: Specify extern "C" linkage.
22841         * lib/tempname.h (try_tempname):
22842         * lib/tempname.c (__try_tempname, __gen_tempname):
22843         Rename 'try' to 'tryfunc'.
22845 2015-02-17  Paul Eggert  <eggert@cs.ucla.edu>
22847         dup2, fcntl: port to AIX
22848         * m4/dup2.m4 (gl_FUNC_DUP2):
22849         * m4/fcntl.m4 (gl_FUNC_FCNTL):
22850         Prefer getrusage (RLIM_NOFILE ...)/rlim_cur to sysconf (_SC_OPEN_MAX).
22851         The former works on AIX 7.1 but the latter does not.
22852         Also, this may work better with Android; see:
22853         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00100.html
22855 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
22857         getdtablesize, dup2, fcntl: port to Android
22858         Problem reported by Kevin Cernekee in:
22859         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00092.html
22860         * doc/glibc-functions/getdtablesize.texi (getdtablesize):
22861         Mention that getdtablesize doesn't work on Android.
22862         * lib/getdtablesize.c: Use getrlimit substitute only if
22863         getdtablesize is declared.  This should suffice for Cygwin
22864         while not breaking Android.
22865         * m4/dup2.m4 (gl_FUNC_DUP2):
22866         * m4/fcntl.m4 (gl_FUNC_FCNTL):
22867         Prefer sysconf (_SC_OPEN_MAX) to getdtablesize, as the former is
22868         standardized but the latter is not, and sysconf works on Android.
22869         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE):
22870         Also check that getdtablesize is declared.
22871         This removes the need for a special case for Android.
22873 2015-02-16  Kevin Cernekee  <cernekee@google.com>
22875         localename: Implement gl_locale_name_thread_unsafe for Android
22876         * lib/localename.c: Android API level >= 21 supports two hardcoded
22877         locales: C (POSIX) and C.UTF-8.  Distinguish them by checking
22878         the internal __locale_t struct.
22880 2015-02-16  Kamil Dudka  <kdudka@redhat.com>
22882         fts: avoid crash when a cycle is added while traversing
22883         This could be triggered by auto-mounting a recursive bind mount.
22884         Reported by Michael Chapman in: https://bugzilla.redhat.com/1188498
22885         * lib/fts.c (fts_read): Avoid removing the original hash table item
22886         when leaving a directory that caused a cycle, and preserve the FTS_DC
22887         flag.
22889 2015-02-16  Daiki Ueno  <ueno@gnu.org>
22891         uniname/uniname: support character alias
22892         * lib/uniname/gen-uninames.lisp (main): New argument ALIASFILE.
22893         Generate one-way mapping from aliases to codepoints in the
22894         generated tables.  Special case variation selectors to reduce
22895         table size.
22896         * lib/uniname/uniname.c (unicode_character_name): Special case
22897         variation selectors.
22898         (unicode_name_character): Special case variation selectors and
22899         their aliases.
22900         * lib/uniname/uninames.h: Regenerate.
22901         * tests/uniname/NameAliases.txt: New file, taken from UCD 7.0.0.
22902         * modules/uniname/uniname-tests (Files): Add
22903         tests/uniname/NameAliases.txt.
22904         * tests/uniname/test-uninames.c: Mark as static.
22905         (ALIASLEN): Define.
22906         (struct unicode_alias): New struct.
22907         (unicode_aliases): New variable.
22908         (fill_aliases): New function.
22909         (test_alias_lookup): New test function.
22910         (main): Run the 'test_alias_lookup' test if the second argument is
22911         given.
22912         * tests/uniname/test-uninames.sh: Supply NameAliases.txt as the
22913         second argument.
22915 2015-02-11  Kevin Cernekee  <cernekee@google.com>
22917         Fix FILE struct compatibility with Android API level >= 21
22918         * lib/stdio-impl.h: Test explicitly for __ANDROID__ instead of
22919         __sferror.  Recent versions of Bionic's stdio.h no longer define
22920         __sferror.
22921         * lib/fbufmode.c: Likewise.
22922         * lib/fflush.c: Likewise.
22923         * lib/fpurge.c: Likewise.
22924         * lib/freadable.c: Likewise.
22925         * lib/freadahead.c: Likewise.
22926         * lib/freading.c: Likewise.
22927         * lib/freadptr.c: Likewise.
22928         * lib/freadseek.c: Likewise.
22929         * lib/fseeko.c: Likewise.
22930         * lib/fseterr.c: Likewise.
22931         * lib/fwritable.c: Likewise.
22933         Assume unbroken ungetc() on Android
22934         * m4/ungetc.m4: Add Android case to host OS check.  The ungetc()
22935         test case passed when running on an Android host, and the code
22936         hasn't really changed since 2009.
22938         getdtablesize: Fix Android build
22939         * m4/getdtablesize.m4: Add Android case to host OS check.  Recent NDK
22940         versions have this symbol in the .so library (at least 32-bit
22941         platforms) but are missing the declaration in the header file,
22942         causing the m4 logic to guess incorrectly.
22944         localename: Fix Android build
22945         * modules/localename (Depends-on): Add langinfo.
22947         getugroups: Fix Android build
22948         * lib/getugroups.c: Don't reference unsupported {get,set,end}grent
22949         functions.
22951         euidaccess: Fix Android build
22952         * modules/euidaccess (Depends-on): Add fcntl-h to ensure that
22953         AT_EACCESS gets declared.
22955         linkat_nofollow: Add fallback case for cross compiling
22956         * m4/linkat.m4: Guess no for Darwin, yes otherwise.
22958         net_if: Handle content-free <net/if.h> system headers
22959         * m4/net_if_h.m4: Check to make sure <net/if.h> actually defines
22960         struct if_nameindex.  If not, enable the replacement header.
22962         signal_h: Fix Android build
22963         * lib/signal.in.h: Add Android to the list of platforms that declare
22964         pthread_sigmask() in <pthread.h> instead of <signal.h>.
22966         duplocale: Fix Android build of duplocale-tests
22967         * modules/duplocale-tests (Depends-on): Add langinfo, as the header
22968         is included by test-duplocale.c (but not by duplocale.c).
22969         * modules/duplocale-tests (configure.ac): Check for monetary.h.
22970         * tests/test-duplocale.c: Skip test if monetary.h is absent.
22971         * doc/posix-headers/monetary.texi: Add Android to the list of
22972         platforms missing monetary.h.
22974 2015-02-11  Pádraig Brady  <P@draigBrady.com>
22976         tests: avoid recent -Werror=unused-variable regression in test-locale
22977         * tests/test-locale.c (main): Reference the variable to avoid the
22978         "unused variable" warning.
22980 2015-02-11  Pádraig Brady  <P@draigBrady.com>
22982         maint: various whitespace cleanups in tempname
22983         * lib/tempname.c: Normalize spacing and line length.
22984         * lib/tempname.h: Likewise.
22985         * modules/tempname: Likewise.
22987 2015-02-11  Pádraig Brady  <P@draigBrady.com>
22989         tests: provide returns_() to simplify exit status checking
22990         * tests/init.sh (returns_): A new function for use in tests,
22991         to allow for easier checking of return values, where you expect
22992         a command to exit with failure status.  By checking for a particular
22993         exit code, you don't hide any crashes for example.
22995 2015-02-11  Pádraig Brady  <P@draigBrady.com>
22997         mountlist: only use libmount when specified
22998         There are currently many shared libs dependencies introduced by
22999         libmount with associated runtime and virt mem overhead.
23000         Therefore don't enable by default.
23001         * m4/ls-mntd-fs.m4: Use --with-libmount to enable at build time.
23003 2015-02-08  Daiki Ueno  <ueno@gnu.org>
23005         uniname/unimame-tests: don't link with -lunistring
23006         * modules/uniname/uniname-tests (Makefile.am): Don't link against
23007         $(LIBUNISTRING).  Document the rationale why we need to
23008         conditionalize the test.
23010 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
23012         fstrcmp: don't assume strlen < INT_MAX
23013         * lib/fstrcmp.c: Include stddef.h and stdint.h.
23014         (uintptr_t): Remove, as we're now assuming stdint.
23015         (OFFSET, EXTRA_CONTEXT_FIELDS, fstrcmp_bounded):
23016         Prefer ptrdiff_t to int when the value could exceed INT_MAX
23017         if the input string is long.
23018         (fstrcmp_bounded): Check for size-calculation overflow.  Prefer
23019         uintptr_t to size_t when the underlying value is a pointer casted
23020         to an unsigned integer.  Avoid unnecessary 'buffer != NULL' test.
23021         * modules/fstrcmp (Depends-on): Add stdint.
23023         diffseq: prefer ptrdiff_t to ssize_t
23024         * lib/diffseq.h: In commentary, prefer ptrdiff_t to ssize_t.
23025         ptrdiff_t is the natural type for signed indexes.
23026         On a few older platforms, ssize_t is narrower than size_t.
23028         xalloc: fix typo that suppressed warnings
23029         * lib/xalloc.h: Add missing _GL_INLINE_HEADER_END.
23030         This typo, introduced a couple of years ago, mistakenly suppressed
23031         some -Wsuggest-attribute=const, -Wmissing-prototypes, and
23032         -Wmissing-declarations warnings.
23034         full-read: fix license notice typo
23035         * lib/full-read.h: Remove a stray line in the license notice.
23036         Reported by Sam Ellis in: http://bugs.gnu.org/19808
23038         crypto/gc: fix a -Wswitch warning
23039         Reported by Bruce Korb in:
23040         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00046.html
23041         * lib/gc-gnulib.c (gc_hash_open): Fail faster if MODE is nonzero.
23043 2015-02-03  Pádraig Brady  <P@draigBrady.com>
23045         gnulib-tool: fix handling of patch(1) diagnostics
23046         * gnulib-tool: Send diagnostics from patch(1) to stderr,
23047         as otherwise gnulib-tool will reparse that output and attempt
23048         to lookup modules.
23050 2015-02-03  Pádraig Brady  <P@draigBrady.com>
23052         bootstrap: exit immediately upon gnulib-tool failure
23053         * build-aux/bootstrap: Exit immediately if gnulib-tool fails.
23054         This was noticed when gnulib-tool exited early due to failure
23055         to apply a patch in coreutils at http://hydra.nixos.org/eval/1172233,
23056         but various confusing errors were then given as the build proceeded.
23058 2015-02-02  Andreas Gruenbacher  <agruen@gnu.org>
23060         symlinkat: include all required header files
23061         * lib/symlinkat.c (HAVE_SYMLINK_AT): Add <sys/stat.h> for fstatat(),
23062         and string.h for strlen(), required at least on OS X 10.10 (Yosemite).
23063         Reported at https://savannah.gnu.org/bugs/index.php?44151
23064         and by Jack Howarth.
23066 2015-01-29  Pádraig Brady  <P@draigBrady.com>
23068         localename: support Solaris 12 and illumos
23069         * lib/localename.c (gl_locale_name_thread_unsafe): call
23070         getlocalename_l() on newer __sun platforms.
23071         Reported by Alexander Pyhalov.
23072         Fix suggested by Rich Burridge.
23074 2015-01-29  Alexander Pyhalov  <alp@rsu.ru>
23076         locale: fix tests on illumos (trivial)
23077         * tests/test-locale.c: LC_GLOBAL_LOCALE is a function call on illumos,
23078         so move from global scope to main().
23080 2015-01-24  Daiki Ueno  <ueno@gnu.org>
23082         unictype: avoid undefined left-shift behavior
23083         * lib/unictype/bidi_of.c (uc_bidi_class): Building libunistring with
23084         gcc's -fsanitize=shift and running its tests triggered:
23085           unictype/bidi_of.c:43:60: runtime error: left shift of 40167 by 16 \
23086             places cannot be represented in type 'int'
23087         Cast LHS to 'unsigned int' after integer promotion.
23088         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
23089         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
23091 2015-01-20  Daiki Ueno  <ueno@gnu.org>
23093         libunistring: bump version of unitypes dependants
23094         Due to the header file search order, all the headers which depend
23095         on unitypes.h need to be generated, when the preinstalled
23096         libunistring is older.
23097         * modules/unicase/base (configure.ac): Bump minimum version to
23098         0.9.4.
23099         * modules/uniconv/base (configure.ac): Likewise.
23100         * modules/unilbrk/base (configure.ac): Likewise.
23101         * modules/uninorm/base (configure.ac): Likewise.
23102         * modules/unistdio/base (configure.ac): Likewise.
23103         * modules/unistr/base (configure.ac): Likewise.
23104         * modules/uniwbrk/base (configure.ac): Likewise.
23105         * modules/uniwidth/base (configure.ac): Likewise.
23107 2015-01-20  Daiki Ueno  <ueno@gnu.org>
23109         unictype/category-none: fix link with libunistring
23110         Since _UC_CATEGORY_NONE is not a public symbol, it will be
23111         prefixed with "libstring_" when compiled as part of libunistring.
23112         To avoid undefined symbol at link time, increase the minimum
23113         version when the dependant modules are updated.
23114         * modules/unictype/category-none (configure.ac): Bump minimum
23115         version to 0.9.5.
23117 2015-01-20  Daiki Ueno  <ueno@gnu.org>
23119         unitypes: fix build with installed libunistring
23120         The minimum version has not bumped after _UC_ATTRIBUTE_CONST and
23121         _UC_ATTRIBUTE_PURE were added to unitypes.in.h.
23122         * modules/unitypes (configure.ac): Bump minimum version to 0.9.4.
23124 2015-01-15  Paul Eggert  <eggert@cs.ucla.edu>
23126         time: port to MinGW32 3.21
23127         Problem reported by Eli Zaretskii in:
23128         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00042.html
23129         * lib/time.in.h:
23130         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC):
23131         * modules/time (Depends-on):
23132         Fall back on unistd.h if the other include files don't define
23133         struct timespec.
23135         update-copyright: apply to self
23136         * build-aux/update-copyright: Fix copyright date.  How ironic!
23138 2015-01-15  Daiki Ueno  <ueno@gnu.org>
23140         libunistring: update to Unicode 7.0.0
23141         * lib/unictype/joininggroup_byname.gperf: Add Straight Waw and
23142         Manichaean names.
23143         * lib/unictype/joininggroup_name.h: Likewise.
23144         * lib/unictype.in.h (UC_JOINING_GROUP_STRAIGHT_WAW)
23145         (UC_JOINING_GROUP_MANICHAEAN_ALEPH): New enumeration values.
23146         * lib/gen-uni-tables.c (UC_JOINING_GROUP_STRAIGHT_WAW)
23147         (UC_JOINING_GROUP_MANICHAEAN_*): New enumeration values.
23148         (fill_arabicshaping, joining_group_as_c_identifier): Support those
23149         enum values.
23150         (is_property_alphabetic): Accept newly added characters to
23151         cuneiform numeric signs.
23152         (is_property_default_ignorable_code_point): Reject U+0605.
23153         (FIELDLEN): Increase from 120 to 160.
23154         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0605,
23155         U+08FF, U+0C00, U+0C81, U+0D01, U+1AB0..U+1ABE, U+1BAC..U+1BAD,
23156         U+1CF8..U+1CF9, U+1DE7..U+1DF5, U+A9E5, U+AA7C, U+FE27..U+FE2D,
23157         U+102E0, U+10376..U+1037A, U+10AE5..U+10AE6, U+1107F, U+11173,
23158         U+1122F..U+11231, U+11234, U+11236..U+11237, U+112DF,
23159         U+112E3..U+112EA, U+11301, U+1133C, U+11340, U+11366..U+1136C,
23160         U+11370..U+11374, U+114B3..U+114B8, U+114BA, U+114BF..U+114C0,
23161         U+114C2..U+114C3, U+115B2..U+115B5, U+115BC..U+115C0,
23162         U+11633..U+1163A, U+1163D, U+1163F..U+11640, U+16AF0..U+16AF4,
23163         U+16B30..U+16B36, U+1BC9D..U+1BC9E, U+1BCA0..U+1BCA3, and
23164         U+1E8D0..U+1E8D6.
23165         (uc_width): Adjust nonspacing_table_ind boundary from 240 to 248.
23166         * tests/uniwidth/test-uc_width2.sh: Same updates as in
23167         lib/uniwidth/width.c.
23168         * all generated files under lib/uni* and tests/uni*: Regenerate.
23170 2015-01-14  Daiki Ueno  <ueno@gnu.org>
23172         libunistring: update to Unicode 6.3.0
23173         * lib/uniwbrk.in.h (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
23174         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support WB7a, WB7b, and WB7c.
23175         Update WB5, WB6, WB7, WB9, WB11, WB12, WB13a, and WB13b.
23176         * lib/uniwbrk/wbrktable.h (uniwbrk_table): Adjust table size.
23177         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support rule WB7a.
23178         Update WB5, WB9, WB10, WB13a, and WB13b.
23179         * tests/uniwbrk/test-uc-wordbreaks.c
23180         (wordbreakproperty_to_string): Support WBP_DQ, WBP_SQ, and WBP_HL.
23181         * lib/gen-uni-tables.c (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
23182         (UC_BIDI_PDI): New enumeration values.
23183         (bidi_category_byname): Support those enum values.
23184         (is_WBP_MIDNUMLET): Exclude 0x0027 (SINGLE QUOTE), which is now a
23185         dedicated property assigned.
23186         (is_property_case_ignorable): Check 0x0027.
23187         (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
23188         (get_wbp, debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
23189         (output_wbp): Support those enum values.
23190         * lib/unictype.in.h (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
23191         (UC_BIDI_PDI): New enumeration values.
23192         * lib/unictype/bidi_byname.gperf: Add those property names.
23193         * lib/uniwidth/width.c (nonspacing_table_data): Add U+061C,
23194         U+180E, U+1A1B, and U+2066..U+2069.
23195         * tests/uniwidth/test-uc_width2.sh: Same updates as in
23196         lib/uniwidth/width.c.
23197         * all generated files under lib/uni* and tests/uni*: Regenerate.
23199 2015-01-14  Daiki Ueno  <ueno@gnu.org>
23201         libunistring: update to Unicode 6.2.0
23202         * lib/unilbrk/lbrktables.h (LBP_RI): New enumeration value.
23203         (unilbrk_table): Adjust table size.
23204         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
23205         for LBP_RI.
23206         * lib/uniwbrk.in.h (WBP_RI): New enumeration value.
23207         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support rule WB13c.
23208         Normalize table index skipping ignored properties.
23209         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support WBP_RI.  Remove
23210         WBP_EXTEND and WBP_FORMAT, which are now computed without using
23211         the table.
23212         * lib/uniwbrk/wbrktable.h: Adjust table size.
23213         * lib/unigbrk.in.h (GBP_RI): New enumeration value.
23214         * lib/unigbrk/uc-is-grapheme-break.c (UC_IS_GRAPHEME_BREAK):
23215         Support rule GB8a.
23216         (UC_GRAPHEME_BREAKS_FOR, gb_table): Support GBP_RI.
23217         * tests/unigbrk/test-uc-is-grapheme-break.c
23218         (graphemebreakproperty_to_string): Support GBP_RI.
23219         * tests/uniwbrk/test-uc-wordbreaks.c
23220         (wordbreakproperty_to_string): Support WBP_RI.
23221         * lib/gen-uni-tables.c (LBP_RI): New enumeration value.
23222         (get_lbp, debug_output_lbp, fill_org_lbp, debug_output_org_lbp)
23223         (output_lbp): Support LBP_RI.  Adjust some characters changed from
23224         LBP_AL to LBP_ID.
23225         (output_lbp): Support LBP_RI.
23226         (WBP_RI): New enumeration value.
23227         (debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
23228         (output_wbp): Support WBP_RI.
23229         (GBP_RI): New enumeration value.
23230         (output_gbp_test, fill_org_gbp): Support GBP_RI.
23231         * all generated files under lib/uni* and tests/uni*: Regenerate.
23233 2015-01-14  Daiki Ueno  <ueno@gnu.org>
23235         libunistring: update to Unicode 6.1.0
23236         * lib/gen-uni-tables.c (output_joining_group): Switch to
23237         3-level table to accommodate joining groups defined with higher
23238         codepoint value.  Since there are only 88 groups defined in
23239         Unicode 7.0.0, use 7-bit packed format for level3 entries.
23240         (get_lbp): Update for Unicode 6.1.0.
23241         * lib/unictype/joininggroup_of.c (uc_joining_group): Adjust to use
23242         3-level table.
23243         * lib/unictype/joininggroup_byname.gperf: Add Rohingya Yeh
23244         joining group name.
23245         * lib/unictype/joininggroup_name.h: Likewise.
23246         * lib/unilbrk/lbrktables.h (LBP_HL): New enumeration value.
23247         (unilbrk_table): Adjust table size.
23248         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
23249         for LBP_HL.
23250         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0604,
23251         U+08E4..U+08FE, U+1BAB, U+1CF4, U+A674..U+A67B, U+A69F,
23252         U+AAEC..U+AAED, U+AAF6, U+11100..U+11102, U+11127..U+1112B,
23253         U+1112D..U+11134, U+11180..U+11181, U+111B6..U+111BE, U+116AB,
23254         U+116AD, U+116B0..U+116B5, U+116B7, U+16F8F..U+16F92.  Remove
23255         U+302E..U+302F.
23256         * tests/uniwidth/test-uc_width2.sh: Same updates as in
23257         lib/uniwidth/width.c.
23258         * all generated files under lib/uni* and tests/uni*: Regenerate.
23259         * modules/uni*/* (configure.ac): Bump minimum version to 0.9.5.
23261 2015-01-15  Daiki Ueno  <ueno@gnu.org>
23263         uniwbrk/u32-wordbreaks-tests: add conformance test
23264         * modules/uniwbrk/u32-wordbreaks-tests (Files): Add
23265         tests/uniwbrk/test-uc-wordbreaks.c,
23266         tests/uniwbrk/test-uc-wordbreaks.sh, and
23267         tests/uniwbrk/WordBreakTest.txt.
23268         (Makefile.am): Add uniwbrk/test-uc-wordbreaks.sh to $(TESTS), add
23269         test-uc-wordbreaks to $(check_PROGRAMS), and define
23270         test_uc_wordbreaks_SOURCES and test_uc_wordbreaks_LDADD.
23271         * tests/uniwbrk/test-uc-wordbreaks.sh: New file.
23272         * tests/uniwbrk/test-uc-wordbreaks.c: New file.
23274 2015-01-15  Daiki Ueno  <ueno@gnu.org>
23276         uniwbrk: ignore Extended/Format characters at BOL not BOS
23277         * lib/uniwbrk/u-wordbreaks.h (FUNC): Ignore Extend and Format
23278         characters if the previous character property is one of
23279         WBP_NEWLINE, WBP_CR, and WBP_LF.
23281 2015-01-11  Jim Meyering  <meyering@fb.com>
23283         test-strstr.c: avoid a trivial leak
23284         * tests/test-strstr.c (main): Free haystack.
23286         update-copyright: recognize groff's \(co marker
23287         * build-aux/update-copyright (circle_c_re): Also accept
23288         uses of \(co, as found in gzip.1.
23290 2015-01-08  Pádraig Brady  <P@draigBrady.com>
23292         maint.mk: fix compatibility with OS X nm
23293         * top/maint.mk (_gl_tight_scope): Use the -g option to
23294         show exported items rather than the -e option which is
23295         ignored on all platforms except OS X where it gives an error.
23296         Reported by Assaf Gordon.
23298 2015-01-07  KO Myung-Hun  <komh@chollian.net>
23300         localcharset: improve charset detection on OS/2
23301         Use system codepage when appropriate.  Map OS/2 codepages to
23302         GNU canonical charset names if possible.
23303         * lib/config.charset: Don't output aliases if "$os" is os2*.
23304         * lib/localcharset.c (get_charset_aliases) [OS2]: Hardcode the
23305         result for OS/2.
23306         (locale_charset) [OS2]: Use system codepage if codeset is omitted
23307         from the locale name which is neither "C" nor "POSIX".
23309 2015-01-06  Paul Eggert  <eggert@cs.ucla.edu>
23311         count-leading-zeros: use 64-bit intrinsics on 32-bit Windows
23312         This reverts the last patch but one, as it shouldn't be needed now
23313         that the typo is fixed.
23314         * lib/count-leading-zeros.h (count_leading_zeros_ll):
23315         * lib/count-trailing-zeros.h:
23316         * lib/count-one-bits.h:
23317         Go back to using 64-bit intrinsics.
23319         count-leading-zeros: fix pragma typos
23320         * lib/count-leading-zeros.h (_BitScanReverse, _BitScanReverse64):
23321         Fix typos in declaration of intrinsics when _MSC_VER.
23323 2015-01-06  Pádraig Brady  <P@draigBrady.com>
23325         count-leading-zeros: avoid 64-bit intrinsics on 32-bit Windows
23326         * lib/count-leading-zeros.h (count_leading_zeros_ll): Use 32 bit
23327         intrinsics in this case.
23328         * lib/count-trailing-zeros.h: Likewise.
23329         * lib/count-one-bits.h: Likewise.
23331 2015-01-06  Daiki Ueno  <ueno@gnu.org>
23333         uniname/uniname: update to Unicode 7.0.0
23334         To accommodate new characters added since Unicode 5.1.0, this
23335         changes the internal representation of codepoint ranges.
23336         Previously, we grouped codepoint ranges by manually assigned 4-bit
23337         tag, which only allowed 16 groups.  This removes the limitation by
23338         switching to binary search on a table.  For the detail rationale
23339         and the benchmark results, see:
23340         https://lists.gnu.org/r/bug-libunistring/2014-06/msg00001.html
23341         * lib/uniname/gen-uninames.lisp (unicode-char): Rename CODE member
23342         to INDEX, as it no longer represents a codepoint.
23343         (range): New struct.
23344         (main): Switch to intervals list from a bit-pattern based
23345         classification.
23346         * lib/uniname/uninames.h: Regenerate.
23347         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 7.0.0.
23348         * modules/uniname/base (configure.ac): Bump minimum version to
23349         0.9.5.
23350         * modules/uniname/uniname (configure.ac): Bump minimum version to
23351         0.9.5.
23353 2015-01-05  Eric Blake  <eblake@redhat.com>
23355         doc: update INSTALL from autoconf
23356         * doc/install.texi: Resync from autoconf.
23357         * doc/INSTALL: Reflect recent autoconf update.
23358         * doc/INSTALL.ISO: Likewise.
23359         * doc/INSTALL.UTF-8: Likewise.
23361         stdio: fix use of PRIdMAX on modern mingw
23362         * m4/stdio_h.m4 (gl_STDIO_H): Probe for printf flavor via inttypes.
23363         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): Use result
23364         to work with modern mingw.
23366 2015-01-05  Daniel P. Berrange  <berrange@redhat.com>  (tiny change)
23368         pthread: detect git mingw builds with only partial pollution
23369         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for additional
23370         pollution, as seen temporarily in Fedora 21.
23372 2015-01-04  Paul Eggert  <eggert@cs.ucla.edu>
23374         lib-symbol-versions: cache script check
23375         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT):
23376         Cache the check for linker version scripts.
23377         From a suggestion by Christophe Curis in:
23378         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00011.html
23380 2015-01-04  Benno Schulenberg  <bensberg@justemail.net>
23382         maint: fix grammar nits in propername (trivial change)
23383         * lib/propername.h: Remove a mistaken comma and a duplicate "from",
23384         and use an adequate verb and tense.
23386 2015-01-02  Ludovic Courtès  <ludo@gnu.org>
23388         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
23389         * module/gendocs: Add 'doc/gendocs_template_min'.
23391         * build-aux/gendocs.sh: Change email addresses and upstream URLs
23392         from to Gnulib's.
23393         (scripturl, templateurl): Adjust accordingly.
23395 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
23397         gendocs: copyright date and version fix
23398         Reported by Karl Berry in:
23399         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00002.html
23400         * build-aux/gendocs.sh, doc/gendocs_template, doc/gendocs_template_min:
23401         Fix copyright date.
23402         * build-aux/gendocs.sh (scriptversion): Update.
23404 2015-01-01  Karl Berry  <karl@gnu.org>
23406         * doc/install.texi,
23407         * build-aux/mdate-sh,
23408         * build-aux/depcomp,
23409         * build-aux/config.guess,
23410         * build-aux/config.sub,
23411         * build-aux/ar-lib,
23412         * build-aux/compile: revert copyright updates (some from last
23413         year) in slaved files.
23415 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
23417         version-etc: new year
23418         * doc/gnulib.texi:
23419         * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright date.
23420         * all files: Run 'make update-copyright'.
23422 2014-12-30  Pádraig Brady  <P@draigBrady.com>
23424         xstrtol: ensure errno is reset
23425         Since commit 3bf75404, on 26-09-1998, errno may not have been reset.
23426         Noticed with a spurious coreutils test failure on Darwin 14.0.0.
23428         * lib/xstrtol.c (__xstrtol): Always reset errno before returning.
23430 2014-12-28  Paul Eggert  <eggert@cs.ucla.edu>
23432         utimens: fix dependency typo
23433         * modules/utimens (Depends-on): Remove 'assure'.
23434         This bug was introduced in the recent 'assure' patch.
23436 2014-12-22  Eric Blake  <eblake@redhat.com>
23438         docs: mention why libgen.h is bad
23439         * doc/posix-headers/libgen.texi (libgen.h): Refer to dirname module.
23441 2014-12-20  Paul Eggert  <eggert@cs.ucla.edu>
23443         assure: new module
23444         This works better than 'assert' when compiling with -DNDEBUG,
23445         as it avoids some compiler diagnostics in that case.
23446         Reported by Norihiro Tanaka in:
23447         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00215.html
23448         * MODULES.html.sh (func_all_modules): Add 'assure'.
23449         * lib/assure.h, modules/assure: New files.
23450         * lib/chdir-long.c, lib/cycle-check.c, lib/fchdir.c, lib/fts.c:
23451         * lib/poll.c, lib/savewd.c, lib/xstrtol.c:
23452         Prefer 'assure' to 'assert'.
23453         * lib/utimens.c: Stop using 'assert'; it wasn't helpful.
23454         * modules/chdir-long, modules/cycle-check, modules/fchdir:
23455         * modules/poll, modules/savewd, modules/utimens, modules/xstrtol:
23456         Depend on 'assure'.
23458 2014-12-16  Paul Eggert  <eggert@cs.ucla.edu>
23460         stdalign: port better to HP compilers
23461         * m4/stdalign.m4 (gl_STDALIGN_H): Try the test if __HP_cc or
23462         __HP_aCC are nonzero, to be consistent with the 2014-01-20 patch.
23464         stdalign: work around Apple GCC 4.0 bug
23465         Reported by David Fang in:
23466         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00194.html
23467         * lib/stdalign.in.h (_Alignas):
23468         * m4/stdalign.m4 (gl_STDALIGN_H):
23469         Do not use aligned attribute with GCC 4.0 on Apple.
23471 2014-12-16  Pádraig Brady  <P@draigBrady.com>
23473         getcwd: fix test failure on OS X 10.9
23474         * m4/getcwd-path-max.m4: Avoid the replacement if it
23475         won't be effective due to the PATH_MAX limitation of lstat().
23476         (gl_cv_func_getcwd_path_max): Adjust to indicate this case.
23477         * m4/getcwd.m4 (gl_FUNC_GETCWD): Define HAVE_GETCWD_SHORTER
23478         for this case for use in tests, and also exclude this
23479         case when setting REPLACE_GETCWD.
23480         * tests/test-getcwd.c (test_long_name): Restrict the
23481         tested path length so that lstat() will not be passed
23482         a path greater than PATH_MAX.
23483         Also key a test condition on HAVE_OPENAT_SUPPORT rather
23484         than AT_FDCWD, since the latter is set unconditionally
23485         since Sep 2009 in commit 52c658e9.
23487 2014-12-14  Tim Rühsen  <tim.ruehsen@gmx.de>
23489         parse-datetime: avoid a compiler warning with byacc (trivial)
23490         * lib/parse-datetime.y (yylex): Use the same prototype in the
23491         function definition as the declaration, to avoid a -Wstrict-prototypes
23492         warning seen when using byacc.
23494 2014-12-12  Daiki Ueno  <ueno@gnu.org>
23496         unicase/locale-language-tests: fix LOCALE_FR test
23497         * tests/unicase/test-locale-language.sh: Really use $LOCALE_FR for
23498         a French locale with traditional encoding.
23499         Reported by umerqayam in:
23500         http://lists.gnu.org/r/bug-libunistring/2014-12/msg00000.html
23502 2014-12-12  Paul Eggert  <eggert@cs.ucla.edu>
23504         stddef: support C11's max_align_t
23505         * doc/posix-headers/stddef.texi (stddef.h): Document max_align_t.
23506         * lib/stddef.in.h (_@GUARD_PREFIX@_STDDEF_H) [__need_wint_t]:
23507         Do not undef, as that might cause max_align_t to be defined twice.
23508         Instead, change use to check for _GL_STDDEF_WINT_T too.
23509         (max_align_t) [!HAVE_MAX_ALIGN_T]: New decl.
23510         * m4/stddef_h.m4 (gl_STDDEF_H, gl_STDDEF_H_DEFAULTS):
23511         Check for max_align_t.
23512         * modules/stddef (stddef.h): Substitute HAVE_MAX_ALIGN_T.
23513         * modules/stddef-tests (Depends-on): Add stdalign.
23514         * tests/test-stddef.c: Test max_align_t.
23516 2014-12-11  Daiki Ueno  <ueno@gnu.org>
23518         unistd: fix iOS check conditional
23519         On Mac OS X 10.8, the TARGET_* macros are unconditonally defined
23520         as 0 or 1 in <TargetConditionals.h>, and the previous check always
23521         yielded true on non-iOS environment.
23522         * lib/unistd.in.h (environ) [__APPLE__]: Check the values of
23523         TARGET_OS_IPHONE and TARGET_IPHONE_SIMULATOR, instead of whether
23524         they are defined.
23526 2014-12-09  Paul Eggert  <eggert@cs.ucla.edu>
23528         posixtm: avoid compiler warning in a better way
23529         * lib/posixtm.c (IF_LINT): Remove.
23530         (year, posix_time_parse):
23531         Return true (not 0) if successful.  All callers changed.
23532         (posix_time_parse): Simplify to pacify GCC without need for IF_LINT.
23534 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
23536         * lib/relocatable.c (relocate): Prepend $UNIXROOT to pathname if it is
23537         started with '/' on EMX.
23539 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
23541         freopen: workaround freopen() on OS/2 kLIBC
23542         * lib/freopen.c (rpl_freopen): Workaround.
23543         * m4/freopen.m4: Add os2* case.
23545         get_shared_library_fullname: port to EMX
23546         * lib/relocatable.c: Define strcmp and strncmp to stricmp and strnicmp
23547         on EMX, respectively.
23548         (_DLL_InitTerm): New on EMX.
23549         (get_shared_library_fullname): Implement on EMX.
23551         find_executable: port to EMX
23552         * lib/progreloc.c (find_executable): Implement on EMX.
23554         sched: check struct sched_param in spawn.h as well
23555         * lib/sched.in.h: Include spawn.h on kLIBC.
23556         * lib/sched_h.m4: Check struct sched_param in spawn.h as well.
23558 2014-12-08  Martin Kletzander  <mkletzan@redhat.com>  (tiny change)
23560         bootstrap: Allow perl modules in $buildreq
23561         * build-aux/bootstrap: Add case for perl modules.
23563 2014-12-08  Pádraig Brady  <P@draigBrady.com>
23565         apply _GL_ATTRIBUTE_PURE to some inline functions
23566         clang 3.4.2 flagged these inline functions as pure
23567         * lib/savewd.h (savewd_errno): Set _GL_ATTRIBUTE_PURE.
23568         * lib/sig-handler.h (get_handler): Likewise.
23569         * lib/stat-time.h (get_stat_{a,c,m,birth}time{,_ns}): Likewise.
23570         * lib/timespec.h (timespec_cmp, timespec_sign): Likewise.
23572 2014-12-06  Pádraig Brady  <P@draigBrady.com>
23574         vasnprintf: fix potential use after free
23575         * lib/vasnprintf.c (VASNPRINTF): Fix free-memory read,
23576         flagged by clang-analyzer 3.4.2.
23578 2014-12-05  Pádraig Brady  <P@draigBrady.com>
23580         filevercmp, posixtm: avoid compiler warnings with -O3
23581         * lib/filevercmp.h (filevercmp): Tag with _GL_ATTRIBUTE_PURE
23582         * lib/posixtm.c: (IF_LINT): Define.
23583         (posix_time_parse): Use it to void a "may be used uninitialized"
23584         warning, seen only with -O3.
23586 2014-12-05  Bruno Haible  <bruno@clisp.org>
23588         Fix LDBL80_WORDS macro on big endian platforms.
23589         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Add missing parenthesis in
23590         LDBL80_WORDS macro.
23591         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
23592         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
23593         * tests/test-isfinite.c (test_isfinitel): Likewise.
23594         * tests/test-isinf.c (test_isinfl): Likewise.
23595         * tests/test-isnan.c (test_long_double): Likewise.
23596         * tests/test-isnanl.h (main): Likewise.
23597         * tests/test-snprintf-posix.h (LDBL80_WORDS): Add missing parenthesis.
23598         * tests/test-sprintf-posix.h (LDBL80_WORDS): Likewise.
23599         * tests/test-vasnprintf-posix.c (LDBL80_WORDS): Likewise.
23600         * tests/test-vasprintf-posix.c (LDBL80_WORDS): Likewise.
23601         Reported by Pádraig Brady.
23603 2014-12-02  KO Myung-Hun  <komh78@gmail.com>
23605         git-version-gen: do not print new line characters
23606         * build-aux/git-version-gen: Use printf instead of echo and tr.
23608         gnulib-tool: recognize x:* as an absolute path
23609         * gnulib-tool (func_gnulib_dir): Add ?:* case.
23610         (func_relconcat): Likewise.
23612 2014-12-02  Andrei Borzenkov  <arvidjaar@gmail.com>
23614         argp: avoid extraneous translation and mem leak with empty pre doc
23615         * lib/argp-help.c (argp_doc): Never translate the empty string,
23616         when "\v" is the first or last character of the string, as that
23617         has a reserved meaning to return the header info from a po file.
23618         This also fixes a small memory leak in the !post case.
23619         The issue can be seen with this command for example:
23620         LC_MESSAGES=en_US grub2-mknetdir --help
23622 2014-11-27  Daiki Ueno  <ueno@gnu.org>
23624         uniname/uniname-tests: skip if system's libunistring is used
23625         * modules/uniname/uniname-tests (Makefile.am): Skip test if
23626         uniname/uniname module is not compiled.
23628 2014-11-27  Pádraig Brady  <P@draigBrady.com>
23630         printf: fix configure check on big endian systems
23631         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Add missing bracket.
23633 2014-11-22  Daiki Ueno  <ueno@gnu.org>
23635         pipe-filter-gi, pipe-filter-ii: port to AIX
23636         On AIX 7.1, 'select' is defined as static and cannot be referred
23637         to from inline function.
23638         * lib/pipe-filter-aux.h (nointr_select): Remove, manually expand
23639         the definition...
23640         * lib/pipe-filter-gi.c (filter_loop): ...here, and...
23641         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): ...here.
23643 2014-11-20  Paul Eggert  <eggert@cs.ucla.edu>
23645         gitlog-to-changelog: add --until
23646         * build-aux/gitlog-to-changelog: Support new --until option.
23647         Need described by Eli Zaretskii in: http://bugs.gnu.org/19113
23649 2014-11-14  Paul Eggert  <eggert@cs.ucla.edu>
23651         extern-inline: update commentary about GCC bugs
23652         * m4/extern-inline.m4: Add another GCC bug number to comments.
23654 2014-11-13  Daiki Ueno  <ueno@gnu.org>
23656         gen-uni-tables: untabify
23657         * lib/gen-uni-tables.c: Untabify.
23659 2014-11-13  Daiki Ueno  <ueno@gnu.org>
23661         gen-uni-tables: check out-of-range values added to 3-level tables
23662         * lib/gen-uni-tables.c (output_category, output_bidi_category)
23663         (output_joining_type, output_ident_category): Check out-of-range
23664         values added to 3-level tables.
23666 2014-11-13  Daiki Ueno  <ueno@gnu.org>
23668         gen-uni-tables: utilize 'assert'
23669         * lib/gen-uni-tables.c: Include <assert.h>.
23670         (output_category, output_combclass, output_decimal_digit_test)
23671         (output_decimal_digit, output_digit_test, output_digit)
23672         (output_numeric, get_mirror_value, fill_properties)
23673         (fill_property30, is_property_alphabetic)
23674         (is_property_default_ignorable_code_point)
23675         (is_property_uppercase, is_property_lowercase)
23676         (is_property_cased, is_property_case_ignorable)
23677         (is_property_changes_when_lowercased, is_property_iso_control)
23678         (is_property_math, fill_arabicshaping, output_joining_group)
23679         (fill_scripts, fill_blocks, output_lbp, fill_org_wbp)
23680         (output_wbp, fill_org_gbp, get_decomposition)
23681         (output_decomposition, fill_composition_exclusions)
23682         (debug_output_composition_tables, output_composition_tables)
23683         (redistribute_casefolding_rules, output_casing_rules): Use
23684         'assert (EXPR);' instead of 'if (!EXPR) abort ();' for better error
23685         reporting.
23687 2014-11-13  Daiki Ueno  <ueno@gnu.org>
23689         gen-uni-tables: cosmetic improvements
23690         * lib/gen-uni-tables.c: Escape newlines in the Emacs file local
23691         variables specification.
23692         (is_outdigit): Remove unused function.
23694 2014-11-12  Jeroen Roovers  <jer@gentoo.org>  (tiny change)
23696         fcntl-h-tests: port to PA-RISC GNU/Linux
23697         * tests/test-fcntl-h.c (main): Check O_SYNC is different from O_DSYNC.
23699 2014-11-10  Paul Eggert  <eggert@cs.ucla.edu>
23701         fts: port to C89
23702         Problem reported for MSVC 16 by Gisle Vanem in:
23703         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00027.html
23704         * lib/fts.c (fts_build): Avoid declaration before statement.
23706 2014-11-06  Paul Eggert  <eggert@cs.ucla.edu>
23708         unistd: port to iOS
23709         Problem reported by André Klitzing in:
23710         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00013.html
23711         * lib/unistd.in.h (environ): Do not include crt_externs.h on iOS.
23713 2014-11-05  Paul Eggert  <eggert@cs.ucla.edu>
23715         obstack: do not reject malloc-style obstack_chunkfun, obstack_freefun
23716         Problem reported by Alan Modra in:
23717         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00007.html
23718         * lib/obstack.h (obstack_chunkfun, obstack_freefun):
23719         Always cast the function arg, reverting this part of the previous
23720         change.
23722 2014-11-04  Paul Eggert  <eggert@cs.ucla.edu>
23724         obstack: avoid potentially-nonportable function casts
23725         * lib/obstack.c (CALL_CHUNKFUN, CALL_FREEFUN):
23726         Remove, replacing with ...
23727         (call_chunkfun, call_freefun): New static functions.
23728         All uses changed.  Avoid potentially-nonportable casts.
23729         (chunkfun_type, freefun_type): Remove typedefs; no longer used.
23730         (_obstack_begin_worker): Omit last two args, since they
23731         rely on potentially-nonportable casts.  All callers changed.
23732         * lib/obstack.h (_OBSTACK_CAST): New macro.
23733         Use it everywhere the old API used a potentially-nonportable cast.
23734         The new API doesn't cast.
23735         (struct obstack): Use unions rather than requiring
23736         potentially-nonportable casts.
23737         (obstack_chunkfun, obstack_freefun): Return void.
23739 2014-11-03  Alan Modra  <amodra@gmail.com>
23741         obstack: fix macro return values
23742         * lib/obstack.h (obstack_next_free): Return void *.
23743         (obstack_1grow_fast, obstack_blank_fast): Return void.
23744         For __GNUC__ macros:
23745         (obstack_1grow, obstack_blank): Remove now unnecessary (void) 0.
23746         For !__GNUC__ macros:
23747         (obstack_make_room, obstack_grow, obstack_grow0)
23748         (obstack_ptr_grow_fast, obstack_int_grow_fast): Return void.
23750 2014-11-03  Paul Eggert  <eggert@cs.ucla.edu>
23752         obstack: do not assume system-supplied obstack is size_t safe
23753         * m4/obstack.m4: New file.
23754         * modules/obstack (Files): Add it.
23756         obstack: port to platforms that #define __alignof__
23757         * lib/obstack.c: Include <alignof.h> if !defined __alignof__,
23758         not if !_LIBC.  We don't know of any platforms that #define
23759         __alignof__, but it might be useful in tests.  Conversely,
23760         glibc assumes GCC.
23762 2014-11-03  Pádraig Brady  <P@draigBrady.com>
23764         linkat: don't unconditionally replace on GNU/Linux
23765         * m4/linkat.m4 (gl_FUNC_LINKAT): The compile check for AT_SYMLINK_FOLLOW
23766         was redundant for a few reasons.  It was present to support compiling
23767         on new systems but running on the old narrow window of Linux 2.6.1[67].
23768         It setup and cleaned up test files which weren't actually used.
23769         On non __linux__ it compile tested AT_SYMLINK_FOLLOW, but that is
23770         implicit in the following check.
23772 2014-11-03  Pádraig Brady  <P@draigBrady.com>
23774         linkat: wrap to handle symlinks on OS X 10.10
23775         * m4/linkat.m4 (gl_FUNC_LINKAT): linkat() is available on Yosemite
23776         but not usable because it doesn't support creating hardlinks
23777         to symlinks.  Therefore add a generic test for this capability
23778         and fallback to our emulation if linkat() fails with ENOTSUP.
23780 2014-11-02  Paul Eggert  <eggert@cs.ucla.edu>
23782         open, openat: document nonstandard FreeBSD, NetBSD O_NOFOLLOW errno
23783         * doc/posix-functions/open.texi (open):
23784         * doc/posix-functions/openat.texi (openat):
23785         Document that these functions do not set errno to ELOOP when
23786         a symlink is opened with O_NOFOLLOW.
23788 2014-10-31  Paul Eggert  <eggert@cs.ucla.edu>
23790         obstack: add NEWS entry for recent incompatible changes
23791         * NEWS: Describe recent changes.
23793 2014-10-30  Pádraig Brady  <P@draigBrady.com>
23795         mountlist: don't use libmount to decide on dummy/remote
23796         * lib/mountlist.c (read_file_system_list): Don't use the libmount
23797         routines to determine whether a file system is dummy or remote,
23798         as they're not currently compatible.  For example the remoteness
23799         is determined on file system type (for which the list seems incomplete),
23800         rather than simply checking for a ':' in the device name.
23801         Also libmount currently determines that 'tmpfs' is a dummy file system
23802         even though it has associated storage.
23804 2014-10-29  Paul Eggert  <eggert@cs.ucla.edu>
23806         obstack: prefer __alignof__ to alignof
23807         This is for portability to pre-4.7 GCC when compiling glibc.
23808         See Joseph S. Myers in:
23809         http://sourceware.org/ml/libc-alpha/2014-10/msg00703.html
23810         * lib/obstack.c (__alignof__) [!_LIBC && !__GNUC__]:
23811         New macro, defined by including and using <alignof.h>.
23812         (MAX): New macro.
23813         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Redefine in terms of these.
23814         Do not use enums as they are not portable to some broken compilers.
23815         * modules/obstack (Depends-on): Depend on alignof, not stdalign.
23817         obstack: prefer alignof to calculating alignments by hand
23818         * lib/obstack.c: Include <stdalign.h>.
23819         (struct fooalign): Remove.
23820         (DEFAULT_ALIGNMENT): Use alignof rather than the old offsetof hack.
23821         * modules/obstack (Depends-on): Add stdalign.
23823 2014-10-28  Paul Eggert  <eggert@cs.ucla.edu>
23825         obstack: use size_t alignments and check for overflow
23826         * lib/obstack.c, lib/obstack.h (_obstack_begin, _obstack_begin_1):
23827         * lib/obstack.c (_obstack_begin_worker, _obstack_newchunk):
23828         * lib/obstack.h (struct obstack.alignment_mask):
23829         Use _OBSTACK_SIZE_T, not int, for alignments.
23830         * lib/obstack.c (_obstack_newchunk): Fail if the size calculation
23831         overflows, e.g., when adding the alignment.
23833 2014-10-29  Alan Modra  <amodra@gmail.com>
23835         obstack: 64-bit obstack support, part 3
23836         This finally enables full 64-bit obstack support.  The glibc
23837         shared library specific code is removed from obstack.c too, and
23838         the error handling code conditionally compiled under control of
23839         another macro, _OBSTACK_NO_ERROR_HANDLER.
23840         * lib/obstack.h: Include string.h earlier.
23841         (_OBSTACK_INTERFACE_VERSION): Define.
23842         (_OBSTACK_SIZE_T, _CHUNK_SIZE_T): Define as size_t for version 2.
23843         * lib/obstack.c: Don't include shlib-compat.h.
23844         (OBSTACK_INTERFACE_VERSION): Delete.
23845         (_OBSTACK_ELIDE_CODE): Rename from ELIDE_CODE.  Define when version 1
23846         glibc code is compatible with version 2.  Don't include stdio.h for
23847         __GNU_LIBRARY.
23848         (obstack_exit_failure, print_and_abort, obstack_alloc_failed_handler):
23849         Omit when _OBSTACK_NO_ERROR_HANDLER defined.  Include stdio.h here.
23850         (_obstack_compat, _obstack, _obstack_newchunk, obstack_free): Delete
23851         glibc shared library specific source.
23853         obstack: 64-bit obstack support, part 2
23854         This gets us 4G obstack support, without changing ABI
23855         compatibility, apart from possibly introducing some
23856         signed/unsigned comparison warnings in code that uses obstack.h.
23857         a) Replace "int" size parameters, return values, and macro local vars
23858            with _OBSTACK_SIZE_T, an "unsigned int" for now.
23859         b) Make obstack.chunk_size a _CHUNK_SIZE_T, an "unsigned long" for now.
23860         c) Make all obstack macros checking available room use obstack_room.
23861            "next_free + desired > chunk_limit" may wrap the lhs for chunks
23862            allocated near the top of memory.
23863         d) Use unsigned comparisons, and macro locals to support >2G on 32-bit.
23864         * lib/obstack.h (_OBSTACK_SIZE_T): Define.  Use throughout
23865         in place of "int" size parameters, return values and local vars.
23866         (_CHUNK_SIZE_T): Define.
23867         (struct obstack): Make chunk_size a _CHUNK_SIZE_T.  Make temp
23868         union use an _OBSTACK_SIZE_T integer type.
23869         For __GNUC__ versions of the following macros...
23870         (obstack_room): Rename local var.
23871         (obstack_make_room): Use obstack_room.
23872         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
23873         obstack_int_grow, obstack_blank): Likewise.
23874         (obstack_finish): Use unsigned comparison when comparing aligned
23875         next_free against chunk_limit.
23876         (obstack_free): Cast OBJ to remove possible const qualifier.
23877         For !__GNUC__ versions of the following macros...
23878         (obstack_make_room): Use obstack_room.
23879         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
23880         obstack_int_grow, obstack_blank): Likewise.
23881         (obstack_finish): Use unsigned comparision when comparing aligned
23882         next_free against chunk_limit.
23883         (obstack_free): Use temp.p and same comparisons as __GNUC__ version.
23884         * lib/obstack.c (_obstack_begin_worker): Make "size" parameter
23885         _OBSTACK_SIZE_T.
23886         (_obstack_begin, _obstack_begin_1): Likewise.
23887         (_obstack_newchunk): Likewise for length parameter.  Use size_t locals.
23888         (_obstack_memory_used): Return and use _OBSTACK_SIZE_T local.
23890         obstack: 64-bit obstack support, part 1
23891         a) Correct calls to alloc function, to use a size_t arg.  "long" is
23892            just wrong on targets like x86_64-mingw64 where "long" is 32 bits
23893            and "size_t" 64 bits.
23894         b) Consolidate _obstack_begin and _obstack_begin1 code.
23895         * lib/obstack.h (struct obstack <chunkfun>): Correct prototype to
23896         use "size_t" rather than "long".
23897         (_obstack_begin, _obstack_begin1): Likewise.
23898         (obstack_init, obstack_begin, obstack_specify_allocation_with_arg,
23899         obstack_chunkfun): Update alloc function casts.
23900         * lib/obstack.c (CALL_CHUNKFUN): Update chunkfun cast.
23901         (chunkfun_type, freefun_type): New typdefs.
23902         (_obstack_begin_worker): Split out from ..
23903         (_obstack_begin, _obstack_begin_1): ..here.
23905         obstack: tidy part 2
23906         a) Don't be concerned about "not polluting the namespace with stddef.h
23907            symbols" in obstack.h, since gnulib string.h includes stddef.h
23908            anyway, and it seems unlikely that anyone would care.
23909         b) Don't roll our own slow memcpy in _obstack_newchunk.
23910         c) Rename obstack_free to _obstack_free.  This makes the naming
23911            consistent with other obstack functions and obviates the need for
23912            __obstack_free.  Ancient obstack.c defined both obstack_free and
23913            _obstack_free.  We continue to do that for _LIBC via an alias.
23914         d) Miscellaneous macro fixes.  The expression used to test for gcc-2.8
23915            is clever, but nowadays gcc warns on undefined macros.  You'll get
23916            an undefined macro warning if simulating an old gcc with -U__GNUC__
23917            -U__GNUC_MINOR__ -D__GNUC__=1.
23918         * lib/obstack.h: Include stddef.h unconditionally.  Formatting fixes.
23919         (PTR_INT_TYPE): Delete, replace with ptrdiff_t.
23920         (__obstack_free): Delete, update refs.
23921         (_obstack_free): Rename from obstack_free.
23922         (__extension__): Avoid undefined macro warning for __GNUC_MINOR__.
23923         (obstack_object_size, obstack_room): Parenthesise !__GNUC__ versions.
23924         * lib/obstack.c: Don't include stddef.h.
23925         (COPYING_UNIT): Delete.
23926         (_obstack_begin): Formatting fix.
23927         (_obstack_newchunk): Use memcpy to move existing object to new chunk.
23928         (_obstack_free): Rename from __obstack_free, update alias.  Move
23929         undef of obstack_free to where it is needed.
23931         obstack: tidy part 1
23932         a) Rename temp fields.  temp.tempint and temp.tempptr just looks ugly
23933            to me, and result in overlong lines after later patches.
23934         b) Move error handling code, to avoid a forward declaration and to
23935            simplify later patches in this series.
23936         * lib/obstack.h (struct obstack <temp>): Rename fields of union
23937         and update all uses.
23938         * lib/obstack.c: Include stdlib.h earlier.
23939         (obstack_exit_failure, obstack_alloc_failed_handler): Move later
23940         in file.
23941         (print_and_abort): Remove now redundant forward declaration.
23943 2014-10-24  Paul Eggert  <eggert@cs.ucla.edu>
23945         socketlib, sockets, sys_socket: Use AC_REQUIRE to pacify autoconf.
23946         Without this change, in bleeding-edge fileutils Autoconf complains
23947         that gl_SOCKETLIB etc. are AC_REQUIREd after being invoked.
23948         * modules/socketlib (configure.ac): AC_REQUIRE gl_SOCKETLIB.
23949         * modules/sockets (configure.ac): AC_REQUIRE gl_SOCKETS.
23950         * modules/sys_socket (configure.ac): AC_REQUIRE gl_HEADER_SYS_SOCKET.
23952 2014-10-24  Daiki Ueno  <ueno@gnu.org>
23954         iconv: avoid false detection of non-working iconv
23955         The INBUF arguments of iconv can be either 'const char **'
23956         or 'char **'.  If CC is g++, the difference causes a compile error
23957         and thus leads to a false detection of non-working iconv.
23958         Reported by Eli Zaretskii and Werner LEMBERG in:
23959         <https://lists.gnu.org/r/bug-gnulib/2014-10/msg00023.html>.
23960         * m4/iconv.m4 (AM_ICONV_LINK): Try all possible argument types of
23961         iconv.  Bump serial number.
23963 2014-10-23  Pádraig Brady  <P@draigBrady.com>
23965         bootstrap: print more diagnostics for missing programs
23966         * build-aux/bootstrap: only suppress stderr when checking for
23967         alternative program names.  This supports programs issuing non
23968         standard error messages.
23970 2014-10-23  Pádraig Brady  <P@draigBrady.com>
23972         bootstrap: only update the gnulib submodule
23973         * build-aux/bootstrap: Restrict the "submodule update" command
23974         to the gnulib path.
23976 2014-10-18  Paul Eggert  <eggert@cs.ucla.edu>
23978         symlinkat: port to AIX 7.1
23979         * doc/posix-functions/symlinkat.texi (symlinkat):
23980         Mention AIX porting problem.
23981         * lib/symlinkat.c: Always include errno.h.
23982         (rpl_symlinkat) [HAVE_SYMLINKAT]: New function.
23983         * lib/unistd.in.h (symlinkat): Add replacement machinery.
23984         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Check symlinkat behavior.
23985         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_SYMLINKAT.
23986         * modules/symlinkat (Depends-on): Add fstatat if REPLACE_SYMLINKAT.
23987         (configure.ac): Also compile replacement if REPLACE_SYMLINKAT.
23988         * modules/unistd (unistd.h): Substitute REPLACE_SYMLINKAT.
23990         readlinkat: port to AIX 7.1
23991         * doc/posix-functions/readlink.texi (readlink):
23992         * doc/posix-functions/readlinkat.texi (readlinkat):
23993         Mention AIX porting problem.
23994         * lib/readlinkat.c (rpl_readlinkat) [HAVE_READLINKAT]:
23995         New function.
23996         * lib/unistd.in.h (readlinkat): Add replacement machinery.
23997         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check readlinkat signature.
23998         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_READLINKAT.
23999         * modules/readlinkat (configure.ac): Also compile replacement
24000         if REPLACE_READLINKAT.
24001         * modules/unistd (unistd.h): Substitute REPLACE_READLINKAT.
24003 2014-10-12  Karl Berry  <karl@gnu.org>
24005         * doc/posix-functions/dirname.texi: remove spurious {.
24007 2014-09-28  Ben Pfaff  <blp@cs.stanford.edu>
24009         basename, dirname: Improve documentation.
24010         * doc/posix-functions/basename.texi: Mention dirname module and
24011         base_name() function.
24012         * doc/posix-functions/dirname.texi: Mention dir_name() and
24013         mdir_name() functions.
24014         Suggested by Werner LEMBERG <wl@gnu.org>.
24016 2014-09-24  Jim Meyering  <meyering@fb.com>
24018         exclude: declare exclude_patopts static
24019         * lib/exclude.c (exclude_patopts): Declare static,
24020         to avoid triggering a -Wmissing-prototypes warning.
24021         The alternative (declaring it in the .h file) would
24022         require publicizing the private "struct patopts".
24024 2014-09-21  Werner Lemberg  <wl@gnu.org>
24026         dirname: support compilation with C++
24027         * lib/dirname.h: Add necessary C linkage declarations.
24029 2014-09-16  Paul Eggert  <eggert@cs.ucla.edu>
24031         qsort_r: include <config.h>
24032         Problem reported by Tom G. Christensen in:
24033         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00071.html
24034         * lib/qsort.c [!_LIBC]: Include <config.h> first.
24036 2014-09-16  Dylan Cali  <calid1984@gmail.com>
24038         avltree-list: avoid compiler warnings (trivial)
24039         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
24040         -Werror=suggest-attribute=pure.
24041         * lib/gl_array_list.c: Likewise.
24042         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Add extern
24043         declaration to avoid -Werror=missing-prototypes.  This is not added
24044         to a header as only exported for tests.  Add (void) to the
24045         check_invariants() call to indicate we're discarding the result
24046         in this context which avoids -Werror=unused-value.  Note we don't
24047         use ignore_value here to avoid a dependency as we know we'll not
24048         be adding __attribute__((warn_unused_result)) to check_invariants().
24049         Add _GL_ATTRIBUTE_CONST to avoid -Werror=suggest-attribute=const.
24051 2014-09-15  Paul Eggert  <eggert@cs.ucla.edu>
24053         qsort_r: new module, for GNU-style qsort_r
24054         * m4/qsort_r.m4: New file.  Forgot to add this earlier.
24056 2014-09-15  Werner LEMBERG  <wl@gnu.org>
24058         strerror_r-posix: support compilation with C++
24059         * lib/strerror_r.c: Add necessary C linkage declarations.
24061 2014-09-11  Johannes Zarl  <johannes.zarl@jku.at>
24063         fcntl-h: fix compilation with Intel C++ compiler (trivial)
24064         * lib/fcntl.in.h: ICC has the same issue as GCC <= 4.2.
24066 2014-09-09  Fridolin Pokorny  <fpokorny@redhat.com>
24068         mountlist: use /proc/self/mountinfo when available
24069         Use libmount to propagate device IDs provided by Linux in
24070         /proc/self/mountinfo.  This will give more accurate output when
24071         using df in chroot'ed environments as the device IDs are not
24072         determined by stat() which may be inaccurate within the chroot.
24073         * lib/mountlist.c (read_file_system_list): Use the libmount routines
24074         from util-linux to parse "/proc/self/mountinfo" or fall back to
24075         standard getmntent() processing.
24076         * m4/ls-mntd-fs.m4: Check for libmount only when 1-argument
24077         getmntent() is used, as is the case on GNU/Linux.
24079 2014-09-07  Eric Wong  <normalperson@yhbt.net>
24081         users.txt: add cmogstored
24082         cmogstored has used gnulib since the beginning in 2012 to support
24083         GNU/Linux, FreeBSD, and GNU/kFreeBSD.
24085 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
24087         Trivial change.
24088         * gnulib-tool: Use same options as build-aux/bootstrap to download
24089         PO files.
24091 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
24093         Trivial change.
24094         * gnulib-tool: Fallback to wget when rsync of PO files fails.
24096 2014-09-04  Eric Blake  <eblake@redhat.com>
24098         maintainer-makefile: add syntax check for useless ';;'
24099         * top/maint.mk (sc_prohibit_double_semicolon): New rule.
24101 2014-09-04  Paul Eggert  <eggert@cs.ucla.edu>
24103         pthread, pthread_sigmask, threadlib: port to Ubuntu 14.04
24104         Problem reported by Assaf Gordon in:
24105         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
24106         Apparently Ubuntu is doing some fancy link-time optimization
24107         that doesn't work with -lpthread but does work with -pthread.
24108         Work around the bug by preferring -pthread to -lpthread.
24109         * m4/pthread.m4 (gl_PTHREAD_CHECK):
24110         * m4/threadlib.m4 (gl_THREADLIB_BODY): Prefer -pthread to -lpthread.
24111         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
24112         Treat -pthread like -lpthread.
24114 2014-09-04  Eric Blake  <eblake@redhat.com>
24116         error: drop spurious semicolon
24117         * lib/error.c (__error_at_line): Fix ';;'.
24119 2014-09-02  Paul Eggert  <eggert@cs.ucla.edu>
24121         gnulib-common.m4: port to GCC 4.2.1 and Sun Studio 12 C++
24122         * m4/gnulib-common.m4 (AC_C_RESTRICT):
24123         Override AC_C_RESTRICT unconditionally.
24124         Update from autoconf, incorporating:
24125         2014-09-02 autoconf: port 'restrict' to GCC 4.2.1
24126         2009-01-28 Fix AC_C_RESTRICT for Sun Studio 12 C++.
24128 2014-09-01  Paul Eggert  <eggert@cs.ucla.edu>
24130         manywarnings: add GCC 4.9 warnings
24131         Also, make it easier to maintain this in the future.
24132         * build-aux/gcc-warning.spec: Add -Wabi-tag,
24133         -Wconditionally-supported, -Wdelete-incomplete,
24134         -Winherited-variadic-ctor, -Wvirtual-move-assign, -Wzerotrip.
24135         Remove duplicates.  Use tabs uniformly, as that's what 'cut' wants.
24136         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wdate-time,
24137         -Wopenmp-simd.  Use -fdiagnostics-show-option and -funit-at-a-time
24138         only for older GCC versions that need them.  Handle
24139         -Wnormalized=nfc specially, so that the 'comm' command used
24140         for maintenance doesn't get confused.
24142 2014-08-31  Paul Eggert  <eggert@cs.ucla.edu>
24144         vasnprintf: fix bugs in width computation
24145         * lib/vasnprintf.c (VASNPRINTF):
24146         Rework previous change, which introduced a bug,
24147         to avoid the warning in a different way.
24148         Avoid undefined behavior if the width arg is less than -INT_MAX.
24149         Avoid unnecessary use of HAS_WIDTH local.
24151 2014-08-31  Thien-Thi Nguyen  <ttn@gnu.org>  (tiny change)
24153         vasnprintf: Avoid signed/unsigned comparison warning.
24154         * lib/vasnprintf.c (VASNPRINTF): To calculate padding,
24155         compare end addr of generated string w/ maximum end addr.
24157 2013-08-30  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
24159         parse-datetime: Avoid pointer difference.
24160         * lib/parse-datetime.y (yylex): Compare pointer to end of buffer,
24161         instead of calculating difference of pointers.  This removes an
24162         annoying warning, devoid of any use.
24164 2014-08-29  Paul Eggert  <eggert@cs.ucla.edu>
24166         qsort_r: new module, for GNU-style qsort_r
24167         This works even on FreeBSD, which has an incompatible qsort_r API.
24168         * MODULES.html.sh: Add it.
24169         * doc/glibc-functions/qsort_r.texi: It's now supported.
24170         * lib/qsort.c: New file, taken from glibc with minor changes
24171         inside "#ifndef _LIBC" and with an unnecessary "#include <alloca.h>"
24172         removed.
24173         * lib/qsort_r.c: New file, compiled only on FreeBSD.
24174         * lib/stdlib.in.h (qsort_r): Declare in the usual way.
24175         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS):
24176         * modules/qsort_r, modules/qsort_r-tests: New files.
24177         * modules/stdlib (Makefile): Set up its defaults.
24178         * tests/test-qsort_r.c: New file.
24180 2014-08-08  Paul Eggert  <eggert@cs.ucla.edu>
24182         vla: new module
24183         GNU RCS can use this, mostly for documentation I expect.  See:
24184         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00025.html
24185         * MODULES.html.sh: Add vla.
24186         * lib/vla.h, modules/vla: New files.
24188 2014-08-07  Daiki Ueno  <ueno@gnu.org>
24190         localename: make gl_locale_name_thread really thread-safe on Windows
24191         * lib/localename.c [WINDOWS_NATIVE && !IN_LIBINTL]: Include
24192         "glthread/lock.h".
24193         (get_lcid_lock) [WINDOWS_NATIVE]: New variable.
24194         (get_lcid) [WINDOWS_NATIVE]: Lock while looking for an LCID.
24196 2014-08-07  Paul Eggert  <eggert@cs.ucla.edu>
24198         getpass: don't assume struct termios
24199         Problem report and trivial fix by Jonas 'Sortie' Termansen in:
24200         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00015.html
24201         * lib/getpass.c (getpass): Port to systems lacking struct termios.
24203         getdtablesize: fall back on sysconf (_SC_OPEN_MAX)
24204         Problem reported by Jonas 'Sortie' Termansen in:
24205         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00023.html
24206         * lib/getdtablesize.c (getdtablesize) [_SC_OPEN_MAX]:
24207         Implement via sysconf for platforms that lack getdtablesize.
24209         vararrays: modernize AC_C_VARARRAYS for C11
24210         This backports a change I recently made to Autoconf.
24211         * m4/vararrays.m4 (AC_C_VARARRAYS): Define __STDC_NO_VLA__ if
24212         VLAs are not supported, as this is what C11 does.  The old macro
24213         HAVE_C_VARARRAYS is still defined if they are supported, but is
24214         now obsolescent.  Also, check for VLA bug in GCC 3.4.3.
24216 2014-08-07  Alessandro Degano  <degano@cern.ch>  (tiny change)
24218         relocatable-prog-wrapper: port gettext to OS X 10.8 + GCC 4.8.1
24219         * build-aux/install-reloc (func_create_wrapper): Also wrap
24220         strerror-override, stat, stat.
24222 2014-08-05  Paul Eggert  <eggert@cs.ucla.edu>
24224         sys_select: fix FD_ZERO problem on Solaris 10
24225         * lib/sys_select.in.h: Fix Solaris 10 bug where "#include
24226         <sys/time.h>" followed by "#include <sys/select.h>" caused FD_ZERO
24227         to expand to an expression that invoked memset without necessarily
24228         including <string.h>.  The problem was that the first include
24229         defined _SYS_TIME_H, causing the second include to short-circuit.
24230         Fix a similar problem with <sys/types.h> followed by <sys/select.h>.
24231         Also, fix what appears to be a cut-and-paste typo, by replacing
24232         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H with
24233         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TYPES_H.
24235         accept: document Solaris 10 type glitch
24236         * doc/posix-functions/accept.texi (accept): Mention that
24237         Solaris 10 'accept' takes void * last arg, not socklen_t *.
24239 2014-08-04  Paul Eggert  <eggert@cs.ucla.edu>
24241         extern-inline: port to FreeBSD, DragonFly
24242         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Also assume the bug
24243         is present if either __DragonFly__ or __FreeBSD__ is defined.
24244         FreeBSD problem reported by Andrey Borzenkov in:
24245         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00104.html
24246         Also, worry about __APPLE__ only if __MACH__ is also defined,
24247         as this is more consistent with the rest of gnulib.
24248         (_GL_EXTERN_INLINE_STDHEADER_BUG): Rename this internal macro from
24249         _GL_EXTERN_INLINE_APPLE_BUG, since the bug is not limited to Apple.
24251 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
24253         regex: Make #if/#ifdef usage consistent for DEBUG
24254         * lib/regex_internal.c: Use "#if defined DEBUG && DEBUG" instead
24255         of the inconsistent usage of #if and #ifdef as that works with
24256         both Glibc and Gnulib's style.
24258 2014-07-31  Eric Blake  <eblake@redhat.com>
24260         openat-die: use _Noreturn markup
24261         * modules/openat-die (Depends-on): Add snippet/_Noreturn.
24262         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Mark
24263         _Noreturn.
24265 2014-07-30  Eric Blake  <eblake@redhat.com>
24267         test-open: port to cygwin, which lacks Fortify
24268         * tests/test-open.h (ALWAYS_INLINE): New macro.
24269         (__always_inline): Don't abuse internal symbol on non-glibc.
24271 2014-07-19  Eli Zaretskii  <eliz@gnu.org>
24273         localename: Enforce declarations before statements.
24274         * localename.c (gl_locale_name_thread): Declare 'lcid' before the
24275         first statement.
24277 2014-07-18  Jim Meyering  <meyering@fb.com>
24279         test-userspec: don't look up numeric user names
24280         * tests/test-userspec.c: I found a system for which getpwnam("0")
24281         returned a pointer to a non-root user's entry, and that made the
24282         test fail.
24283         (T): Prefix each numeric input with "+", to inhibit lookup.
24285 2014-07-15  Eli Zaretskii  <eliz@gnu.org>
24287         localcharset, localename: MS-Windows support for non-default locales
24288         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Before
24289         falling back on the default system codepage, try extracting
24290         the codepage from what 'setlocale' returns.  This allows to
24291         take into account changes of the codeset due to non-default
24292         locale set by a previous call to 'setlocale'.
24293         * lib/localename.c (LOCALE_NAME_MAX_LENGTH) [WINDOWS_NATIVE]:
24294         Define if not already defined.
24295         (enum_locales_fn, get_lcid) [WINDOWS_NATIVE]: New functions.
24296         (gl_locale_name_thread) [WINDOWS_NATIVE]: Produce the
24297         current locale by calling 'setlocale', then converting the
24298         locale name into LCID by calling 'get_lcid'.  This allows to
24299         take into account changes in the current locale from the
24300         default one, in contrast to GetThreadLocale.
24302 2014-07-14  Daiki Ueno  <ueno@gnu.org>
24304         announce-gen: avoid failure when Digest::SHA is installed
24305         When Digest::SHA is available, Digest::SHA1 is not loaded and thus
24306         Digest::SHA1->new in print_checksums fails.
24307         * build-aux/announce-gen (digest_classes): New associative array
24308         for available message digest implementations.
24309         (print_locations): Use it.
24311 2014-07-13  Pádraig Brady  <P@draigBrady.com>
24313         gettext: revert "update macros to version 0.19"
24314         This reverts commit 9b9370ca, as it currently requires that
24315         developers of any project that explicitly uses the gettext module
24316         or implicitly uses it through the utimens-tests or
24317         futimens-tests modules, use gettext >= 0.19.
24318         However there are some stability and availablity issues with
24319         that version at present.  We can reinstate this soon, when stability
24320         is addressed and packages are more readily available.
24322 2014-07-12  Jim Meyering  <meyering@fb.com>
24324         regex: don't deref NULL upon heap allocation failure
24325         * lib/regcomp.c (parse_dup_op): Handle duplicate_tree
24326         failure in one more place.
24327         To trigger the segfault, configure grep -with-included-regex,
24328         build it, and run these commands:
24329         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
24330         I discovered this while replying to a private report from
24331         Jens Schleusener about excessive memory consumption by grep
24332         when using a regular expression like the one above.
24334 2014-07-11  Paul Eggert  <eggert@cs.ucla.edu>
24336         regex: fix memory leak in compiler
24337         Fix by Andreas Schwab in:
24338         https://sourceware.org/ml/libc-alpha/2014-06/msg00503.html
24339         * lib/regcomp.c (parse_reg_exp): Deallocate partially
24340         constructed tree before returning error.
24342 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
24344         announce-gen: avoid perl warnings
24345         * build-aux/announce-gen: add two minor checks to avoid
24346         "use of uninitialized value" warnings when command-line parameters are
24347         missing.
24349 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
24351         localename: avoid -Wsuggest-attribute={const,pure} warnings
24352         * lib/localename.c (string_has): Tag internal function as pure.
24353         * lib/localename.h (gl_locale_name_default): Tag extern declaration
24354         as const when appropriate.
24356 2014-07-10  Eli Zaretskii  <eliz@gnu.org>
24358         nl_langinfo: Fix last change.
24359         * lib/nl_langinfo.c (includes): Drop redundant include.
24361 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
24363         error: Fix -Wundef warnings in glibc
24364         * lib/error.c [_LIBC]: Define default macros for
24365         glibc.
24366         (print_errno_message) [defined HAVE_STRERROR_R || _LIBC]:
24367         Check _LIBC before STRERROR_R_CHAR_P.
24369         error: Sync from glibc master
24370         * lib/error.c [_LIBC]: Remove INTUSE usage.
24371         (error_tail): Remove unused macro ALLOCA_LIMIT.
24372         Fix potential buffer overflow.  Fix potential NULL dereference
24373         in strcmp.
24375 2014-07-09  Pavel Hrdina  <phrdina@redhat.com> (tiny change)
24377         nl_langinfo: fix build under mingw
24378         * lib/nl_langinfo.c (includes): Pick up <windows.h> for GetACP().
24380 2014-07-09  Andrew D Warshall  <warshall@99main.com>
24382         mountlist: do not classify a bind-mounted dir entry as "dummy"
24383         * m4/ls-mntd-fs.m4: Check for hasmntopt() on platforms with
24384         1-argument getmntent() (instead of assuming absence).
24386 2014-07-08  Eric Blake  <eblake@redhat.com>
24388         maint.mk: less syntax-check noise when SIGPIPE is ignored
24389         * top/maint.mk (_sc_header_without_use)
24390         (sc_require_config_h_first): Parse full list.
24392 2014-07-07  Eli Zaretskii  <eliz@gnu.org>
24393             Paul Eggert  <eggert@cs.ucla.edu>
24395         nl_langinfo: CODESET on MS-Windows and more items from localeconv
24396         * lib/langinfo.in.h (DECIMAL_POINT, THOUSANDS_SEP, GROUPING)
24397         (CURRENCY_SYMBOL, INT_CURR_SYMBOL, MON_DECIMAL_POINT)
24398         (MON_THOUSANDS_SEP, MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN)
24399         (FRAC_DIGITS, INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES)
24400         (P_SEP_BY_SPACE, N_SEP_BY_SPACE, P_SIGN_POSN, N_SIGN_POSN): Define.
24401         * lib/nl_langinfo.c: Include <locale.h> and <string.h> early.
24402         Include <stdio.h> if Microsoft Windows.
24403         Include <time.h> if !REPLACE_NL_LANGINFO.
24404         (ctype_codeset): New function, taken from rpl_nl_langinfo,
24405         and with improvements for Microsoft Windows.
24406         (rpl_nl_langinfo): Use it.
24407         (nl_langinfo) [!REPLACE_NL_LANGINFO]: Likewise.
24408         Compute the values of RADIXCHAR, THOUSEP, GROUPING, CRNCYSTR,
24409         INT_CURR_SYMBOL, MON_DECIMAL_POINT, MON_THOUSANDS_SEP,
24410         MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN, FRAC_DIGITS,
24411         INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES, P_SEP_BY_SPACE,
24412         N_SEP_BY_SPACE, P_SIGN_POSN, and N_SIGN_POSN from the
24413         corresponding values returned by 'localeconv'.  Compute the values
24414         of AM_STR, PM_STR, DAY_n, ABDAY_n, MON_n, and ABMON_n by calling
24415         'strftime' with a suitable struct tm value.
24417 2014-07-05  Paul Eggert  <eggert@cs.ucla.edu>
24419         Bruno Haible has stepped down as maintainer.
24420         See Karl Berry in:
24421         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00004.html
24422         Daiki Ueno has volunteered to maintain libunistring; see:
24423         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00005.html
24424         * modules/gen-uni-tables, modules/libunistring:
24425         * modules/libunistring-optional, modules/ucs4-utf16, modules/ucs4-utf8:
24426         * modules/unicase/base, modules/unicase/cased:
24427         * modules/unicase/empty-prefix-context:
24428         * modules/unicase/empty-suffix-context, modules/unicase/ignorable:
24429         * modules/unicase/locale-language, modules/unicase/special-casing:
24430         * modules/unicase/tocasefold, modules/unicase/tolower:
24431         * modules/unicase/totitle, modules/unicase/toupper:
24432         * modules/unicase/u16-casecmp, modules/unicase/u16-casecoll:
24433         * modules/unicase/u16-casefold, modules/unicase/u16-casemap:
24434         * modules/unicase/u16-casexfrm, modules/unicase/u16-ct-casefold:
24435         * modules/unicase/u16-ct-tolower, modules/unicase/u16-ct-totitle:
24436         * modules/unicase/u16-ct-toupper, modules/unicase/u16-is-cased:
24437         * modules/unicase/u16-is-casefolded, modules/unicase/u16-is-invariant:
24438         * modules/unicase/u16-is-lowercase, modules/unicase/u16-is-titlecase:
24439         * modules/unicase/u16-is-uppercase, modules/unicase/u16-prefix-context:
24440         * modules/unicase/u16-suffix-context, modules/unicase/u16-tolower:
24441         * modules/unicase/u16-totitle, modules/unicase/u16-toupper:
24442         * modules/unicase/u32-casecmp, modules/unicase/u32-casecoll:
24443         * modules/unicase/u32-casefold, modules/unicase/u32-casemap:
24444         * modules/unicase/u32-casexfrm, modules/unicase/u32-ct-casefold:
24445         * modules/unicase/u32-ct-tolower, modules/unicase/u32-ct-totitle:
24446         * modules/unicase/u32-ct-toupper, modules/unicase/u32-is-cased:
24447         * modules/unicase/u32-is-casefolded, modules/unicase/u32-is-invariant:
24448         * modules/unicase/u32-is-lowercase, modules/unicase/u32-is-titlecase:
24449         * modules/unicase/u32-is-uppercase, modules/unicase/u32-prefix-context:
24450         * modules/unicase/u32-suffix-context, modules/unicase/u32-tolower:
24451         * modules/unicase/u32-totitle, modules/unicase/u32-toupper:
24452         * modules/unicase/u8-casecmp, modules/unicase/u8-casecoll:
24453         * modules/unicase/u8-casefold, modules/unicase/u8-casemap:
24454         * modules/unicase/u8-casexfrm, modules/unicase/u8-ct-casefold:
24455         * modules/unicase/u8-ct-tolower, modules/unicase/u8-ct-totitle:
24456         * modules/unicase/u8-ct-toupper, modules/unicase/u8-is-cased:
24457         * modules/unicase/u8-is-casefolded, modules/unicase/u8-is-invariant:
24458         * modules/unicase/u8-is-lowercase, modules/unicase/u8-is-titlecase:
24459         * modules/unicase/u8-is-uppercase, modules/unicase/u8-prefix-context:
24460         * modules/unicase/u8-suffix-context, modules/unicase/u8-tolower:
24461         * modules/unicase/u8-totitle, modules/unicase/u8-toupper:
24462         * modules/unicase/ulc-casecmp, modules/unicase/ulc-casecoll:
24463         * modules/unicase/ulc-casexfrm, modules/unicodeio:
24464         * modules/uniconv/base, modules/uniconv/u16-conv-from-enc:
24465         * modules/uniconv/u16-conv-to-enc:
24466         * modules/uniconv/u16-strconv-from-enc:
24467         * modules/uniconv/u16-strconv-from-locale:
24468         * modules/uniconv/u16-strconv-to-enc:
24469         * modules/uniconv/u16-strconv-to-locale:
24470         * modules/uniconv/u32-conv-from-enc, modules/uniconv/u32-conv-to-enc:
24471         * modules/uniconv/u32-strconv-from-enc:
24472         * modules/uniconv/u32-strconv-from-locale:
24473         * modules/uniconv/u32-strconv-to-enc:
24474         * modules/uniconv/u32-strconv-to-locale:
24475         * modules/uniconv/u8-conv-from-enc, modules/uniconv/u8-conv-to-enc:
24476         * modules/uniconv/u8-strconv-from-enc:
24477         * modules/uniconv/u8-strconv-from-locale:
24478         * modules/uniconv/u8-strconv-to-enc:
24479         * modules/uniconv/u8-strconv-to-locale, modules/unictype/base:
24480         * modules/unictype/bidicategory-all:
24481         * modules/unictype/bidicategory-byname:
24482         * modules/unictype/bidicategory-name, modules/unictype/bidicategory-of:
24483         * modules/unictype/bidicategory-test, modules/unictype/bidiclass-all:
24484         * modules/unictype/bidiclass-byname:
24485         * modules/unictype/bidiclass-longname, modules/unictype/bidiclass-name:
24486         * modules/unictype/bidiclass-of, modules/unictype/bidiclass-test:
24487         * modules/unictype/block-all, modules/unictype/block-list:
24488         * modules/unictype/block-of, modules/unictype/block-test:
24489         * modules/unictype/category-C, modules/unictype/category-Cc:
24490         * modules/unictype/category-Cf, modules/unictype/category-Cn:
24491         * modules/unictype/category-Co, modules/unictype/category-Cs:
24492         * modules/unictype/category-L, modules/unictype/category-LC:
24493         * modules/unictype/category-Ll, modules/unictype/category-Lm:
24494         * modules/unictype/category-Lo, modules/unictype/category-Lt:
24495         * modules/unictype/category-Lu, modules/unictype/category-M:
24496         * modules/unictype/category-Mc, modules/unictype/category-Me:
24497         * modules/unictype/category-Mn, modules/unictype/category-N:
24498         * modules/unictype/category-Nd, modules/unictype/category-Nl:
24499         * modules/unictype/category-No, modules/unictype/category-P:
24500         * modules/unictype/category-Pc, modules/unictype/category-Pd:
24501         * modules/unictype/category-Pe, modules/unictype/category-Pf:
24502         * modules/unictype/category-Pi, modules/unictype/category-Po:
24503         * modules/unictype/category-Ps, modules/unictype/category-S:
24504         * modules/unictype/category-Sc, modules/unictype/category-Sk:
24505         * modules/unictype/category-Sm, modules/unictype/category-So:
24506         * modules/unictype/category-Z, modules/unictype/category-Zl:
24507         * modules/unictype/category-Zp, modules/unictype/category-Zs:
24508         * modules/unictype/category-all, modules/unictype/category-and:
24509         * modules/unictype/category-and-not, modules/unictype/category-byname:
24510         * modules/unictype/category-longname, modules/unictype/category-name:
24511         * modules/unictype/category-none, modules/unictype/category-of:
24512         * modules/unictype/category-or, modules/unictype/category-test:
24513         * modules/unictype/category-test-withtable:
24514         * modules/unictype/combining-class:
24515         * modules/unictype/combining-class-all:
24516         * modules/unictype/combining-class-byname:
24517         * modules/unictype/combining-class-longname:
24518         * modules/unictype/combining-class-name, modules/unictype/ctype-alnum:
24519         * modules/unictype/ctype-alpha, modules/unictype/ctype-blank:
24520         * modules/unictype/ctype-cntrl, modules/unictype/ctype-digit:
24521         * modules/unictype/ctype-graph, modules/unictype/ctype-lower:
24522         * modules/unictype/ctype-print, modules/unictype/ctype-punct:
24523         * modules/unictype/ctype-space, modules/unictype/ctype-upper:
24524         * modules/unictype/ctype-xdigit, modules/unictype/decimal-digit:
24525         * modules/unictype/digit, modules/unictype/joininggroup-all:
24526         * modules/unictype/joininggroup-byname:
24527         * modules/unictype/joininggroup-name, modules/unictype/joininggroup-of:
24528         * modules/unictype/joiningtype-all:
24529         * modules/unictype/joiningtype-byname:
24530         * modules/unictype/joiningtype-longname:
24531         * modules/unictype/joiningtype-name, modules/unictype/joiningtype-of:
24532         * modules/unictype/mirror, modules/unictype/numeric:
24533         * modules/unictype/property-all, modules/unictype/property-alphabetic:
24534         * modules/unictype/property-ascii-hex-digit:
24535         * modules/unictype/property-bidi-arabic-digit:
24536         * modules/unictype/property-bidi-arabic-right-to-left:
24537         * modules/unictype/property-bidi-block-separator:
24538         * modules/unictype/property-bidi-boundary-neutral:
24539         * modules/unictype/property-bidi-common-separator:
24540         * modules/unictype/property-bidi-control:
24541         * modules/unictype/property-bidi-embedding-or-override:
24542         * modules/unictype/property-bidi-eur-num-separator:
24543         * modules/unictype/property-bidi-eur-num-terminator:
24544         * modules/unictype/property-bidi-european-digit:
24545         * modules/unictype/property-bidi-hebrew-right-to-left:
24546         * modules/unictype/property-bidi-left-to-right:
24547         * modules/unictype/property-bidi-non-spacing-mark:
24548         * modules/unictype/property-bidi-other-neutral:
24549         * modules/unictype/property-bidi-pdf:
24550         * modules/unictype/property-bidi-segment-separator:
24551         * modules/unictype/property-bidi-whitespace:
24552         * modules/unictype/property-byname:
24553         * modules/unictype/property-case-ignorable:
24554         * modules/unictype/property-cased:
24555         * modules/unictype/property-changes-when-casefolded:
24556         * modules/unictype/property-changes-when-casemapped:
24557         * modules/unictype/property-changes-when-lowercased:
24558         * modules/unictype/property-changes-when-titlecased:
24559         * modules/unictype/property-changes-when-uppercased:
24560         * modules/unictype/property-combining:
24561         * modules/unictype/property-composite:
24562         * modules/unictype/property-currency-symbol:
24563         * modules/unictype/property-dash:
24564         * modules/unictype/property-decimal-digit:
24565         * modules/unictype/property-default-ignorable-code-point:
24566         * modules/unictype/property-deprecated:
24567         * modules/unictype/property-diacritic:
24568         * modules/unictype/property-extender:
24569         * modules/unictype/property-format-control:
24570         * modules/unictype/property-grapheme-base:
24571         * modules/unictype/property-grapheme-extend:
24572         * modules/unictype/property-grapheme-link:
24573         * modules/unictype/property-hex-digit:
24574         * modules/unictype/property-hyphen:
24575         * modules/unictype/property-id-continue:
24576         * modules/unictype/property-id-start:
24577         * modules/unictype/property-ideographic:
24578         * modules/unictype/property-ids-binary-operator:
24579         * modules/unictype/property-ids-trinary-operator:
24580         * modules/unictype/property-ignorable-control:
24581         * modules/unictype/property-iso-control:
24582         * modules/unictype/property-join-control:
24583         * modules/unictype/property-left-of-pair:
24584         * modules/unictype/property-line-separator:
24585         * modules/unictype/property-logical-order-exception:
24586         * modules/unictype/property-lowercase, modules/unictype/property-math:
24587         * modules/unictype/property-non-break:
24588         * modules/unictype/property-not-a-character:
24589         * modules/unictype/property-numeric:
24590         * modules/unictype/property-other-alphabetic:
24591         * modules/unictype/property-other-default-ignorable-code-point:
24592         * modules/unictype/property-other-grapheme-extend:
24593         * modules/unictype/property-other-id-continue:
24594         * modules/unictype/property-other-id-start:
24595         * modules/unictype/property-other-lowercase:
24596         * modules/unictype/property-other-math:
24597         * modules/unictype/property-other-uppercase:
24598         * modules/unictype/property-paired-punctuation:
24599         * modules/unictype/property-paragraph-separator:
24600         * modules/unictype/property-pattern-syntax:
24601         * modules/unictype/property-pattern-white-space:
24602         * modules/unictype/property-private-use:
24603         * modules/unictype/property-punctuation:
24604         * modules/unictype/property-quotation-mark:
24605         * modules/unictype/property-radical:
24606         * modules/unictype/property-sentence-terminal:
24607         * modules/unictype/property-soft-dotted:
24608         * modules/unictype/property-space:
24609         * modules/unictype/property-terminal-punctuation:
24610         * modules/unictype/property-test, modules/unictype/property-titlecase:
24611         * modules/unictype/property-unassigned-code-value:
24612         * modules/unictype/property-unified-ideograph:
24613         * modules/unictype/property-uppercase:
24614         * modules/unictype/property-variation-selector:
24615         * modules/unictype/property-white-space:
24616         * modules/unictype/property-xid-continue:
24617         * modules/unictype/property-xid-start:
24618         * modules/unictype/property-zero-width, modules/unictype/scripts:
24619         * modules/unictype/scripts-all, modules/unictype/syntax-c-ident:
24620         * modules/unictype/syntax-c-whitespace:
24621         * modules/unictype/syntax-java-ident:
24622         * modules/unictype/syntax-java-whitespace, modules/unigbrk/base:
24623         * modules/unigbrk/u16-grapheme-breaks:
24624         * modules/unigbrk/u16-grapheme-next, modules/unigbrk/u16-grapheme-prev:
24625         * modules/unigbrk/u32-grapheme-breaks:
24626         * modules/unigbrk/u32-grapheme-next, modules/unigbrk/u32-grapheme-prev:
24627         * modules/unigbrk/u8-grapheme-breaks, modules/unigbrk/u8-grapheme-next:
24628         * modules/unigbrk/u8-grapheme-prev, modules/unigbrk/uc-gbrk-prop:
24629         * modules/unigbrk/uc-is-grapheme-break:
24630         * modules/unigbrk/ulc-grapheme-breaks, modules/unilbrk/base:
24631         * modules/unilbrk/tables, modules/unilbrk/u16-possible-linebreaks:
24632         * modules/unilbrk/u16-width-linebreaks:
24633         * modules/unilbrk/u32-possible-linebreaks:
24634         * modules/unilbrk/u32-width-linebreaks:
24635         * modules/unilbrk/u8-possible-linebreaks:
24636         * modules/unilbrk/u8-width-linebreaks, modules/unilbrk/ulc-common:
24637         * modules/unilbrk/ulc-possible-linebreaks:
24638         * modules/unilbrk/ulc-width-linebreaks, modules/uniname/base:
24639         * modules/uniname/uniname, modules/uninorm/base:
24640         * modules/uninorm/canonical-decomposition:
24641         * modules/uninorm/compat-decomposition, modules/uninorm/composition:
24642         * modules/uninorm/decompose-internal, modules/uninorm/decomposing-form:
24643         * modules/uninorm/decomposition, modules/uninorm/decomposition-table:
24644         * modules/uninorm/filter, modules/uninorm/nfc, modules/uninorm/nfd:
24645         * modules/uninorm/nfkc, modules/uninorm/nfkd:
24646         * modules/uninorm/u16-normalize, modules/uninorm/u16-normcmp:
24647         * modules/uninorm/u16-normcoll, modules/uninorm/u16-normxfrm:
24648         * modules/uninorm/u32-normalize, modules/uninorm/u32-normcmp:
24649         * modules/uninorm/u32-normcoll, modules/uninorm/u32-normxfrm:
24650         * modules/uninorm/u8-normalize, modules/uninorm/u8-normcmp:
24651         * modules/uninorm/u8-normcoll, modules/uninorm/u8-normxfrm:
24652         * modules/unistdio/base, modules/unistdio/u-printf-args:
24653         * modules/unistdio/u16-asnprintf, modules/unistdio/u16-asprintf:
24654         * modules/unistdio/u16-printf-parse, modules/unistdio/u16-snprintf:
24655         * modules/unistdio/u16-sprintf, modules/unistdio/u16-u16-asnprintf:
24656         * modules/unistdio/u16-u16-asprintf, modules/unistdio/u16-u16-snprintf:
24657         * modules/unistdio/u16-u16-sprintf:
24658         * modules/unistdio/u16-u16-vasnprintf:
24659         * modules/unistdio/u16-u16-vasprintf:
24660         * modules/unistdio/u16-u16-vsnprintf:
24661         * modules/unistdio/u16-u16-vsprintf, modules/unistdio/u16-vasnprintf:
24662         * modules/unistdio/u16-vasprintf, modules/unistdio/u16-vsnprintf:
24663         * modules/unistdio/u16-vsprintf, modules/unistdio/u32-asnprintf:
24664         * modules/unistdio/u32-asprintf, modules/unistdio/u32-printf-parse:
24665         * modules/unistdio/u32-snprintf, modules/unistdio/u32-sprintf:
24666         * modules/unistdio/u32-u32-asnprintf:
24667         * modules/unistdio/u32-u32-asprintf, modules/unistdio/u32-u32-snprintf:
24668         * modules/unistdio/u32-u32-sprintf:
24669         * modules/unistdio/u32-u32-vasnprintf:
24670         * modules/unistdio/u32-u32-vasprintf:
24671         * modules/unistdio/u32-u32-vsnprintf:
24672         * modules/unistdio/u32-u32-vsprintf, modules/unistdio/u32-vasnprintf:
24673         * modules/unistdio/u32-vasprintf, modules/unistdio/u32-vsnprintf:
24674         * modules/unistdio/u32-vsprintf, modules/unistdio/u8-asnprintf:
24675         * modules/unistdio/u8-asprintf, modules/unistdio/u8-printf-parse:
24676         * modules/unistdio/u8-snprintf, modules/unistdio/u8-sprintf:
24677         * modules/unistdio/u8-u8-asnprintf, modules/unistdio/u8-u8-asprintf:
24678         * modules/unistdio/u8-u8-snprintf, modules/unistdio/u8-u8-sprintf:
24679         * modules/unistdio/u8-u8-vasnprintf, modules/unistdio/u8-u8-vasprintf:
24680         * modules/unistdio/u8-u8-vsnprintf, modules/unistdio/u8-u8-vsprintf:
24681         * modules/unistdio/u8-vasnprintf, modules/unistdio/u8-vasprintf:
24682         * modules/unistdio/u8-vsnprintf, modules/unistdio/u8-vsprintf:
24683         * modules/unistdio/ulc-asnprintf, modules/unistdio/ulc-asprintf:
24684         * modules/unistdio/ulc-fprintf, modules/unistdio/ulc-printf-parse:
24685         * modules/unistdio/ulc-snprintf, modules/unistdio/ulc-sprintf:
24686         * modules/unistdio/ulc-vasnprintf, modules/unistdio/ulc-vasprintf:
24687         * modules/unistdio/ulc-vfprintf, modules/unistdio/ulc-vsnprintf:
24688         * modules/unistdio/ulc-vsprintf, modules/unistr/base:
24689         * modules/unistr/u16-check, modules/unistr/u16-chr:
24690         * modules/unistr/u16-cmp, modules/unistr/u16-cmp2:
24691         * modules/unistr/u16-cpy, modules/unistr/u16-cpy-alloc:
24692         * modules/unistr/u16-endswith, modules/unistr/u16-mblen:
24693         * modules/unistr/u16-mbsnlen, modules/unistr/u16-mbtouc:
24694         * modules/unistr/u16-mbtouc-unsafe, modules/unistr/u16-mbtoucr:
24695         * modules/unistr/u16-move, modules/unistr/u16-next:
24696         * modules/unistr/u16-prev, modules/unistr/u16-set:
24697         * modules/unistr/u16-startswith, modules/unistr/u16-stpcpy:
24698         * modules/unistr/u16-stpncpy, modules/unistr/u16-strcat:
24699         * modules/unistr/u16-strchr, modules/unistr/u16-strcmp:
24700         * modules/unistr/u16-strcoll, modules/unistr/u16-strcpy:
24701         * modules/unistr/u16-strcspn, modules/unistr/u16-strdup:
24702         * modules/unistr/u16-strlen, modules/unistr/u16-strmblen:
24703         * modules/unistr/u16-strmbtouc, modules/unistr/u16-strncat:
24704         * modules/unistr/u16-strncmp, modules/unistr/u16-strncpy:
24705         * modules/unistr/u16-strnlen, modules/unistr/u16-strpbrk:
24706         * modules/unistr/u16-strrchr, modules/unistr/u16-strspn:
24707         * modules/unistr/u16-strstr, modules/unistr/u16-strtok:
24708         * modules/unistr/u16-to-u32, modules/unistr/u16-to-u8:
24709         * modules/unistr/u16-uctomb, modules/unistr/u32-check:
24710         * modules/unistr/u32-chr, modules/unistr/u32-cmp:
24711         * modules/unistr/u32-cmp2, modules/unistr/u32-cpy:
24712         * modules/unistr/u32-cpy-alloc, modules/unistr/u32-endswith:
24713         * modules/unistr/u32-mblen, modules/unistr/u32-mbsnlen:
24714         * modules/unistr/u32-mbtouc, modules/unistr/u32-mbtouc-unsafe:
24715         * modules/unistr/u32-mbtoucr, modules/unistr/u32-move:
24716         * modules/unistr/u32-next, modules/unistr/u32-prev:
24717         * modules/unistr/u32-set, modules/unistr/u32-startswith:
24718         * modules/unistr/u32-stpcpy, modules/unistr/u32-stpncpy:
24719         * modules/unistr/u32-strcat, modules/unistr/u32-strchr:
24720         * modules/unistr/u32-strcmp, modules/unistr/u32-strcoll:
24721         * modules/unistr/u32-strcpy, modules/unistr/u32-strcspn:
24722         * modules/unistr/u32-strdup, modules/unistr/u32-strlen:
24723         * modules/unistr/u32-strmblen, modules/unistr/u32-strmbtouc:
24724         * modules/unistr/u32-strncat, modules/unistr/u32-strncmp:
24725         * modules/unistr/u32-strncpy, modules/unistr/u32-strnlen:
24726         * modules/unistr/u32-strpbrk, modules/unistr/u32-strrchr:
24727         * modules/unistr/u32-strspn, modules/unistr/u32-strstr:
24728         * modules/unistr/u32-strtok, modules/unistr/u32-to-u16:
24729         * modules/unistr/u32-to-u8, modules/unistr/u32-uctomb:
24730         * modules/unistr/u8-check, modules/unistr/u8-chr:
24731         * modules/unistr/u8-cmp, modules/unistr/u8-cmp2, modules/unistr/u8-cpy:
24732         * modules/unistr/u8-cpy-alloc, modules/unistr/u8-endswith:
24733         * modules/unistr/u8-mblen, modules/unistr/u8-mbsnlen:
24734         * modules/unistr/u8-mbtouc, modules/unistr/u8-mbtouc-unsafe:
24735         * modules/unistr/u8-mbtoucr, modules/unistr/u8-move:
24736         * modules/unistr/u8-next, modules/unistr/u8-prev:
24737         * modules/unistr/u8-set, modules/unistr/u8-startswith:
24738         * modules/unistr/u8-stpcpy, modules/unistr/u8-stpncpy:
24739         * modules/unistr/u8-strcat, modules/unistr/u8-strchr:
24740         * modules/unistr/u8-strcmp, modules/unistr/u8-strcoll:
24741         * modules/unistr/u8-strcpy, modules/unistr/u8-strcspn:
24742         * modules/unistr/u8-strdup, modules/unistr/u8-strlen:
24743         * modules/unistr/u8-strmblen, modules/unistr/u8-strmbtouc:
24744         * modules/unistr/u8-strncat, modules/unistr/u8-strncmp:
24745         * modules/unistr/u8-strncpy, modules/unistr/u8-strnlen:
24746         * modules/unistr/u8-strpbrk, modules/unistr/u8-strrchr:
24747         * modules/unistr/u8-strspn, modules/unistr/u8-strstr:
24748         * modules/unistr/u8-strtok, modules/unistr/u8-to-u16:
24749         * modules/unistr/u8-to-u32, modules/unistr/u8-uctomb, modules/unitypes:
24750         * modules/uniwbrk/base, modules/uniwbrk/table:
24751         * modules/uniwbrk/u16-wordbreaks, modules/uniwbrk/u32-wordbreaks:
24752         * modules/uniwbrk/u8-wordbreaks, modules/uniwbrk/ulc-wordbreaks:
24753         * modules/uniwbrk/wordbreak-property, modules/uniwidth/base:
24754         * modules/uniwidth/u16-strwidth, modules/uniwidth/u16-width:
24755         * modules/uniwidth/u32-strwidth, modules/uniwidth/u32-width:
24756         * modules/uniwidth/u8-strwidth, modules/uniwidth/u8-width:
24757         * modules/uniwidth/width, modules/utf16-ucs4:
24758         * modules/utf16-ucs4-unsafe, modules/utf8-ucs4:
24759         * modules/utf8-ucs4-unsafe:
24760         Change maintainer from Bruno Haible to Daiki Ueno.
24761         This is my guess at the libunistring modules; please feel free
24762         to fix if I guessed incorrectly.
24763         * modules/accept4, modules/acl, modules/acos, modules/acosf:
24764         * modules/alignof, modules/amemxfrm, modules/ansi-c++-opt:
24765         * modules/areadlink, modules/array-list, modules/array-mergesort:
24766         * modules/array-oset, modules/asin, modules/asinf, modules/astrxfrm:
24767         * modules/atan, modules/atan2, modules/atan2f, modules/atanf:
24768         * modules/avltree-list, modules/avltree-oset, modules/avltreehash-list:
24769         * modules/binary-io, modules/bison-i18n, modules/btowc:
24770         * modules/c-ctype, modules/c-strcase, modules/c-strcaseeq:
24771         * modules/c-strcasestr, modules/c-strstr, modules/calloc-posix:
24772         * modules/canonicalize-lgpl, modules/careadlinkat, modules/carray-list:
24773         * modules/cbrt, modules/cbrt-ieee, modules/cbrtf, modules/cbrtf-ieee:
24774         * modules/cbrtl, modules/cbrtl-ieee, modules/ceil, modules/ceil-ieee:
24775         * modules/ceilf, modules/ceilf-ieee, modules/ceill, modules/ceill-ieee:
24776         * modules/chdir, modules/classpath, modules/clean-temp, modules/close:
24777         * modules/closedir, modules/concat-filename, modules/copy-file:
24778         * modules/copysign, modules/copysignf, modules/copysignl, modules/cos:
24779         * modules/cosf, modules/cosh, modules/coshf, modules/csharpcomp:
24780         * modules/csharpcomp-script, modules/csharpexec:
24781         * modules/csharpexec-script, modules/ctype, modules/diffseq:
24782         * modules/dprintf, modules/dprintf-posix, modules/dup:
24783         * modules/dup2-obsolete, modules/dup3, modules/duplocale:
24784         * modules/eealloc, modules/environ, modules/erf, modules/erfc:
24785         * modules/errno, modules/execute, modules/exp, modules/exp-ieee:
24786         * modules/exp2, modules/exp2-ieee, modules/exp2f, modules/exp2f-ieee:
24787         * modules/exp2l, modules/exp2l-ieee, modules/expf, modules/expf-ieee:
24788         * modules/expl, modules/expl-ieee, modules/expm1, modules/expm1-ieee:
24789         * modules/expm1f, modules/expm1f-ieee, modules/expm1l:
24790         * modules/expm1l-ieee, modules/fabs, modules/fabs-ieee, modules/fabsf:
24791         * modules/fabsf-ieee, modules/fabsl, modules/fabsl-ieee:
24792         * modules/fatal-signal, modules/fbufmode, modules/fchdir:
24793         * modules/fclose, modules/fd-hook, modules/fdopen, modules/filename:
24794         * modules/findprog, modules/findprog-lgpl, modules/floor:
24795         * modules/floor-ieee, modules/floorf, modules/floorf-ieee:
24796         * modules/floorl, modules/floorl-ieee, modules/fma, modules/fma-ieee:
24797         * modules/fmaf, modules/fmaf-ieee, modules/fmal, modules/fmal-ieee:
24798         * modules/fmod, modules/fmod-ieee, modules/fmodf, modules/fmodf-ieee:
24799         * modules/fmodl, modules/fmodl-ieee, modules/fopen, modules/fpieee:
24800         * modules/fprintf-posix, modules/fpucw, modules/fpurge:
24801         * modules/freadable, modules/freadahead, modules/freadptr:
24802         * modules/freadseek, modules/freopen, modules/frexp:
24803         * modules/frexp-ieee, modules/frexp-nolibm, modules/frexpf:
24804         * modules/frexpf-ieee, modules/frexpl, modules/frexpl-ieee:
24805         * modules/frexpl-nolibm, modules/fseek, modules/fseeko:
24806         * modules/fseterr, modules/fstat, modules/fstrcmp, modules/ftell:
24807         * modules/ftello, modules/full-read, modules/full-write:
24808         * modules/fwritable, modules/fwriteerror, modules/gcd:
24809         * modules/get-rusage-as, modules/get-rusage-data:
24810         * modules/getdtablesize, modules/getrusage, modules/gettext:
24811         * modules/gettext-h, modules/git-merge-changelog, modules/gperf:
24812         * modules/grantpt, modules/havelib, modules/host-cpu-c-abi:
24813         * modules/hostent, modules/hypot, modules/hypot-ieee, modules/hypotf:
24814         * modules/hypotf-ieee, modules/hypotl, modules/hypotl-ieee:
24815         * modules/iconv, modules/iconv-h, modules/iconv_open:
24816         * modules/iconv_open-utf, modules/idpriv-drop, modules/idpriv-droptemp:
24817         * modules/ilogb, modules/ilogbf, modules/ilogbl, modules/imaxabs:
24818         * modules/imaxdiv, modules/integer_length, modules/integer_length_l:
24819         * modules/integer_length_ll, modules/ioctl, modules/isatty:
24820         * modules/isblank, modules/isnand, modules/isnand-nolibm:
24821         * modules/isnanf, modules/isnanf-nolibm, modules/isnanl:
24822         * modules/isnanl-nolibm, modules/iswblank, modules/iswctype:
24823         * modules/j0, modules/j1, modules/javacomp, modules/javacomp-script:
24824         * modules/javaexec, modules/javaexec-script, modules/javaversion:
24825         * modules/jn, modules/langinfo, modules/ldd, modules/ldexp:
24826         * modules/ldexp-ieee, modules/ldexpf, modules/ldexpf-ieee:
24827         * modules/ldexpl, modules/ldexpl-ieee, modules/lgamma:
24828         * modules/lib-symbol-visibility, modules/libsigsegv:
24829         * modules/linked-list, modules/linkedhash-list, modules/list:
24830         * modules/localcharset, modules/locale, modules/localeconv:
24831         * modules/localename, modules/lock, modules/log, modules/log-ieee:
24832         * modules/log10, modules/log10-ieee, modules/log10f:
24833         * modules/log10f-ieee, modules/log10l, modules/log10l-ieee:
24834         * modules/log1p, modules/log1p-ieee, modules/log1pf:
24835         * modules/log1pf-ieee, modules/log1pl, modules/log1pl-ieee:
24836         * modules/log2, modules/log2-ieee, modules/log2f, modules/log2f-ieee:
24837         * modules/log2l, modules/log2l-ieee, modules/logb, modules/logb-ieee:
24838         * modules/logbf, modules/logbf-ieee, modules/logbl, modules/logbl-ieee:
24839         * modules/logf, modules/logf-ieee, modules/login_tty:
24840         * modules/logl-ieee, modules/malloc-posix, modules/malloca:
24841         * modules/mbchar, modules/mbfile, modules/mbiter, modules/mbmemcasecmp:
24842         * modules/mbmemcasecoll, modules/mbrlen, modules/mbrtowc:
24843         * modules/mbscasecmp, modules/mbscasestr, modules/mbschr:
24844         * modules/mbscspn, modules/mbsinit, modules/mbslen:
24845         * modules/mbsncasecmp, modules/mbsnlen, modules/mbsnrtowcs:
24846         * modules/mbspbrk, modules/mbspcasecmp, modules/mbsrchr:
24847         * modules/mbsrtowcs, modules/mbssep, modules/mbsspn, modules/mbsstr:
24848         * modules/mbstok_r, modules/mbswidth, modules/mbtowc, modules/mbuiter:
24849         * modules/memchr-obsolete, modules/memcmp2, modules/minmax:
24850         * modules/mkdtemp, modules/mkostemp, modules/mktime-internal:
24851         * modules/modf, modules/modf-ieee, modules/modff, modules/modff-ieee:
24852         * modules/modfl, modules/modfl-ieee, modules/msvc-inval:
24853         * modules/msvc-nothrow, modules/multiarch, modules/nextafter:
24854         * modules/nl_langinfo, modules/no-c++, modules/nocrash:
24855         * modules/nonblocking, modules/open, modules/opendir, modules/openmp:
24856         * modules/oset, modules/pclose, modules/pipe, modules/pipe-filter-gi:
24857         * modules/pipe-filter-ii, modules/pipe2, modules/poll-h:
24858         * modules/posix_spawn, modules/posix_spawn-internal:
24859         * modules/posix_spawn_file_actions_addclose:
24860         * modules/posix_spawn_file_actions_adddup2:
24861         * modules/posix_spawn_file_actions_addopen:
24862         * modules/posix_spawn_file_actions_destroy:
24863         * modules/posix_spawn_file_actions_init:
24864         * modules/posix_spawnattr_destroy, modules/posix_spawnattr_getflags:
24865         * modules/posix_spawnattr_getpgroup:
24866         * modules/posix_spawnattr_getschedparam:
24867         * modules/posix_spawnattr_getschedpolicy:
24868         * modules/posix_spawnattr_getsigdefault:
24869         * modules/posix_spawnattr_getsigmask, modules/posix_spawnattr_init:
24870         * modules/posix_spawnattr_setflags, modules/posix_spawnattr_setpgroup:
24871         * modules/posix_spawnattr_setschedparam:
24872         * modules/posix_spawnattr_setschedpolicy:
24873         * modules/posix_spawnattr_setsigdefault:
24874         * modules/posix_spawnattr_setsigmask, modules/posix_spawnp:
24875         * modules/pow, modules/powf, modules/printf-frexp:
24876         * modules/printf-frexpl, modules/printf-posix, modules/printf-safe:
24877         * modules/progname, modules/propername, modules/pselect:
24878         * modules/pthread_sigmask, modules/ptsname, modules/ptsname_r:
24879         * modules/qacl, modules/quotearg-simple, modules/raise, modules/random:
24880         * modules/rbtree-list, modules/rbtree-oset, modules/rbtreehash-list:
24881         * modules/read, modules/readdir, modules/readlink:
24882         * modules/realloc-posix, modules/regex-quote, modules/relocatable-lib:
24883         * modules/relocatable-lib-lgpl, modules/relocatable-perl:
24884         * modules/relocatable-prog, modules/relocatable-prog-wrapper:
24885         * modules/relocatable-script, modules/remainder:
24886         * modules/remainder-ieee, modules/remainderf, modules/remainderf-ieee:
24887         * modules/remainderl, modules/remainderl-ieee, modules/rewinddir:
24888         * modules/rint, modules/rint-ieee, modules/rintf, modules/rintf-ieee:
24889         * modules/rintl, modules/rintl-ieee, modules/round-ieee:
24890         * modules/roundf-ieee, modules/roundl-ieee, modules/safe-read:
24891         * modules/safe-write, modules/sched, modules/servent, modules/setenv:
24892         * modules/setlocale, modules/sh-quote, modules/shutdown:
24893         * modules/signal, modules/signbit, modules/sigpipe:
24894         * modules/sigpipe-die, modules/sigprocmask, modules/sin, modules/sinf:
24895         * modules/sinh, modules/sinhf, modules/size_max, modules/sleep:
24896         * modules/snippet/arg-nonnull, modules/snippet/c++defs:
24897         * modules/snippet/link-warning, modules/snippet/unused-parameter:
24898         * modules/snprintf, modules/snprintf-posix, modules/spawn:
24899         * modules/spawn-pipe, modules/sprintf-posix, modules/sqrt:
24900         * modules/sqrt-ieee, modules/sqrtf, modules/sqrtf-ieee:
24901         * modules/sqrtl-ieee, modules/stdalign, modules/stdarg:
24902         * modules/stdbool, modules/stpcpy, modules/stpncpy, modules/strcase:
24903         * modules/strcasestr, modules/strcasestr-simple, modules/strcspn:
24904         * modules/streq, modules/strerror_r-posix, modules/striconv:
24905         * modules/striconveh, modules/striconveha, modules/strncat:
24906         * modules/strnlen1, modules/strpbrk, modules/strtod-obsolete:
24907         * modules/sublist, modules/sys_resource, modules/sys_utsname:
24908         * modules/sys_wait, modules/system-posix, modules/system-quote:
24909         * modules/tan, modules/tanf, modules/tanh, modules/tanhf:
24910         * modules/tcgetsid, modules/termios, modules/threadlib, modules/tls:
24911         * modules/tmpdir, modules/towctrans, modules/trunc, modules/trunc-ieee:
24912         * modules/truncf, modules/truncf-ieee, modules/truncl:
24913         * modules/truncl-ieee, modules/ttyname_r, modules/uname:
24914         * modules/unlockpt, modules/unsetenv, modules/vasnprintf:
24915         * modules/vasnprintf-posix, modules/vasprintf, modules/vasprintf-posix:
24916         * modules/vdprintf, modules/vdprintf-posix, modules/vfprintf-posix:
24917         * modules/vfscanf, modules/vma-iter, modules/vprintf-posix:
24918         * modules/vscanf, modules/vsnprintf-posix, modules/vsprintf-posix:
24919         * modules/wait-process, modules/waitpid, modules/wcpcpy:
24920         * modules/wcpncpy, modules/wcrtomb, modules/wcscasecmp, modules/wcscat:
24921         * modules/wcschr, modules/wcscmp, modules/wcscoll, modules/wcscpy:
24922         * modules/wcscspn, modules/wcsdup, modules/wcslen, modules/wcsncasecmp:
24923         * modules/wcsncat, modules/wcsncmp, modules/wcsncpy, modules/wcsnlen:
24924         * modules/wcsnrtombs, modules/wcspbrk, modules/wcsrchr:
24925         * modules/wcsrtombs, modules/wcsspn, modules/wcsstr, modules/wcstok:
24926         * modules/wcswidth, modules/wcsxfrm, modules/wctob, modules/wctomb:
24927         * modules/wctrans, modules/wctype, modules/wcwidth, modules/wmemchr:
24928         * modules/wmemcmp, modules/wmemcpy, modules/wmemmove, modules/wmemset:
24929         * modules/write, modules/xconcat-filename, modules/xlist:
24930         * modules/xmalloca, modules/xoset, modules/xprintf-posix:
24931         * modules/xreadlink, modules/xsetenv, modules/xsize, modules/xstriconv:
24932         * modules/xstriconveh, modules/xsublist, modules/xvasprintf-posix:
24933         * modules/y0, modules/y1, modules/yn:
24934         Remove Bruno Haible as maintainer; if he's the sole maintainer,
24935         change the maintainer to 'all'.  Let's hope someone volunteers.
24937 2014-06-27  Paul Eggert  <eggert@cs.ucla.edu>
24939         mktime: merge #if/#ifdef usage from glibc
24940         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
24941         as that works with both Glibc's and Gnulib's style.
24942         See thread starting at Siddhesh Poyarekar's bug report at:
24943         http://lists.gnu.org/r/bug-gnulib/2014-06/msg00102.html
24945 2014-06-20  Alfred M. Szmidt  <ams@gnu.org>
24947         git-version-gen: improve option descriptions
24948         * build-aux/git-version-gen: Mention that --prefix and --fallback
24949         have a mandatory argument.
24951 2014-06-19  Paul Eggert  <eggert@penguin.cs.ucla.edu>
24953         regex: fix memory leak in compiler
24954         Fix by Andreas Schwab in:
24955         https://sourceware.org/ml/libc-alpha/2014-06/msg00462.html
24956         * lib/regcomp.c (parse_expression): Deallocate partially
24957         constructed tree before returning error.
24959         regex: merge patch from libc
24960         2014-02-12  Joseph Myers  <joseph@codesourcery.com>
24961         Combine __USE_BSD and __USE_SVID into __USE_MISC.
24962         * lib/regex.h [__USE_BSD]: Change condition to [__USE_MISC].
24964 2014-06-17  Paul Eggert  <eggert@cs.ucla.edu>
24966         acl: port to gcc -Wredundant-decls
24967         From a request by Dmitry Antipov in:
24968         http://lists.gnu.org/r/emacs-devel/2014-06/msg00263.html
24969         * lib/acl.h (_GL_ACL_H): New macro.  Protect entire contents with
24970         "#ifndef _GL_ACL_H".
24972 2014-06-11  Bruce Korb  <bkorb@gnu.org>
24973         Jim Meyering  <meyering@fb.com>
24975         parse-duration: eliminate 68-year duration limit
24976         * lib/parse-duration.c: Include "intprops.h".
24977         (TIME_MAX): Rename to MAX_DURATION and define to
24978         TYPE_MAXIMUM(time_t).
24979         * modules/parse-duration (Depends-on): Add intprops.
24980         Reported by Jonas 'Sortie' Termansen.
24982 2014-06-14  Paul Eggert  <eggert@cs.ucla.edu>
24984         pthread: don't assume AC_CANONICAL_HOST, port better to Solaris, etc.
24985         * modules/pthread (Depends-on): Add 'extensions', as it defines
24986         _POSIX_PTHREAD_SEMANTICS, which is needed on Solaris.
24987         (configure.ac-early): New section.
24988         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, as
24989         it is no longer needed.
24991 2014-06-14  Pádraig Brady  <P@draigBrady.com>
24993         pthread: define thread-safe macros on some platforms
24994         * m4/pthread.m4 (gl_PTHREAD_CHECK): Define macros needed
24995         for thread-safe operation on some platforms.
24997 2014-06-13  Paul Eggert  <eggert@cs.ucla.edu>
24999         regex: don't be multithreaded if USE_UNLOCKED_IO.
25000         Problem reported by Michael Felt in: http://bugs.gnu.org/17773
25001         * lib/regex_internal.h: Do not use multithreaded version if
25002         USE_UNLOCKED_IO is defined.  This is a hack, but it works
25003         around a porting bug with coreutils 8.22 on AIX 7.1.
25005 2014-06-11  Daiki Ueno  <ueno@gnu.org>
25007         gettext: update macros to version 0.19
25008         * m4/intl.m4, m4/po.m4: Update from gettext-0.19.  In particular,
25009         depend on gl_EXTERN_INLINE and drop support for older Bison
25010         versions.
25012 2014-06-10  Pádraig Brady  <P@draigBrady.com>
25014         select,poll: fix console handle check on windows 8
25015         lib/poll.c (IsConsoleHandle): Change from testing the lower
25016         2 bits of the handle to the more expensive but accurate syscall.
25017         lib/select.c: Likewise.
25019 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
25021         select: fix waiting on anonymous pipes on MS-Windows
25022         * lib/select.c (rpl_select): Fall back to polling when select()
25023         indicates there is nothing to check, while due to the timeout not
25024         expiring, activity is indicated on one of the handles.
25025         Also clear the TIMEOUT argument if the timer does expire.
25027 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
25029         times: fix to return non constant value on MS-Windows
25030         * lib/times.c (times): Don't use the process creation time,
25031         rather clock() which on windows returns the number of
25032         clock ticks since the process started.
25034 2014-06-09  Michael Goffioul  <michael.goffioul@gmail.com>
25036         isatty: fix to work on windows 8
25037         * lib/isatty.c (IsConsoleHandle): Change from testing the lower
25038         2 bits of the handle to the more expensive but accurate syscall.
25040 2014-06-07  Paul Eggert  <eggert@cs.ucla.edu>
25042         maint: fix typo in fdl.texi
25043         * doc/fdl.texi: Fix typo (missing '@').
25044         Somehow this was in fdl.texi but not fdl-1.3.texi.
25046 2014-06-06  Ben Walton  <bdwalton@gmail.com>
25048         mountlist: avoid hasmntopt const type warning on solaris
25049         * lib/mountlist.c: Solaris defines the OPT param of hasmntopt()
25050         with char * instead of const char *.  Passing the constant string
25051         "ignore" generates a compiler warning.  For Solaris cast MNT_IGNORE
25052         to avoid the warning.
25054 2014-06-04  Eric Blake  <eblake@redhat.com>
25056         maintainer-makefile: delete obsolete code
25057         * top/maint.mk (build_aux): Drop old code, as threatened.
25059         maintainer-makefile: avoid spurious error messages
25060         * top/maint.mk (syntax-check): Guard definition and use of
25061         $(shell) by whether Makefile is present.
25063 2014-06-03  Ben Walton  <bdwalton@gmail.com>
25065         rename: avoid unused-but-set-variable compiler warning
25066         * lib/rename.c (rpl_rename):  In the non-Win32 variant of rpl_rename,
25067         it is possible that dst_exists may be set but not used.  Mark it with
25068         the unused attribute to avoid compiler warnings.
25070 2014-06-02  Ben Walton  <bdwalton@gmail.com>
25072         rename: mark a label as potentially unused
25073         * lib/rename.c (rpl_rename): Avoid compiler warnings seen on Solaris,
25074         by marking the out label as potentially unused.
25075         * m4/gnulib-common.m4: Mention the need for the trailing ; for C++.
25077 2014-06-01  Paul Eggert  <eggert@cs.ucla.edu>
25079         gnulib-common.m4: Fix typo in _GL_UNUSED_LABEL.
25080         * m4/gnulib-common.m4 (_GL_UNUSED_LABEL): Omit trailing semicolon.
25082 2014-06-02  Ben Walton  <bdwalton@gmail.com>
25084         acl: apply pure attribute to two functions
25085         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial):
25086         Mark as "pure" as flagged by gcc 4.9 on Solaris 10.
25088 2014-06-01  Pádraig Brady  <P@draigBrady.com>
25090         gnulib-common.m4: add _GL_UNUSED_LABEL
25091         * m4/gnulib-common.m4: Add _GL_UNUSED_LABEL which is similar to
25092         _GL_UNUSED, but handles g++ < 4.5 not supporting this syntax.
25094 2014-05-31  Paul Eggert  <eggert@cs.ucla.edu>
25096         dup2, fcntl, fcntl-h: port to AIX 7.1
25097         This fixes some porting problems discovered when testing the latest
25098         grep snapshot on AIX 7.1.  I don't think if fixes any bugs
25099         in grep but it could be important for other applications.
25100         * doc/posix-functions/dup2.texi:
25101         * doc/posix-functions/fcntl.texi:
25102         * doc/posix-headers/fcntl.texi:
25103         Document AIX bugs.
25104         * lib/fcntl.in.h (O_CLOEXEC, O_NOFOLLOW, O_TTY_INIT) [_AIX]:
25105         Define to 0 if outside 'int' range.
25106         * m4/dup2.m4 (gl_FUNC_DUP2):
25107         * m4/fcntl.m4 (gl_FUNC_FCNTL):
25108         Check for getdtablesize.  If it's available, test a value just
25109         outside its range instead of testing 1000000.  When cross-compiling,
25110         guess that AIX will fail this improved test.
25112 2014-05-30  Paul Eggert  <eggert@cs.ucla.edu>
25114         printf, config.rpath: Port to FreeBSD 10.
25115         Problem reported by Tijl Coosemans in:
25116         http://lists.gnu.org/r/bug-gnulib/2014-05/msg00078.html
25117         * build-aux/config.rpath (hardcode_libdir_flag_spec)
25118         (hardcode_direct): Simplify FreeBSD configuration.
25119         (library_names_spec): Don't mishandle FreeBSD 10+.
25120         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE)
25121         (gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_F)
25122         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99)
25123         (gl_SNPRINTF_DIRECTIVE_N, gl_VSNPRINTF_ZEROSIZE_C99):
25124         Don't mishandle FreeBSD 10+ when cross-compiling.
25126         ftoastr: work around compiler bug in IBM xlc 12.1
25127         * lib/ftoastr.h (_GL_FLT_PREC_BOUND, _GL_DBL_PREC_BOUND)
25128         (_GL_LDBL_PREC_BOUND): Make these macros, not enums, to work
25129         around a compiler bug in IBM xlc 12.1.0.0: it complains
25130         '"ftoastr.c", line 80.37: 1506-045 (S) Undeclared identifier
25131         _GL_FLT_PREC_BOUND.'
25133 2014-05-30  Kieran Colford  <colfordk@gmail.com>
25135         valgrind-tests: fixed misleading help message
25136         * m4/valgrind-tests.m4: The help message generated by configure
25137         implied that valgrind was disabled by default, which it wasn't.
25138         Adjusted the help message using s/enable/disable/ to clarify.
25140 2014-05-30  Ulrich Weigand  <uweigand@de.ibm.com>
25142         isfinite, isinf, isnan tests: fix for little-endian PowerPC
25143         * tests/test-isfinite.c (test_isfinitel): Only manipulate the
25144         first double of a PowerPC "double double" pair.
25145         * tests/test-isinf.c (test_isinfl): Likewise.
25146         * tests/test-isnan.c (test_long_double): Likewise.
25147         * tests/test-isnanl.h (main): Likewise.
25148         * tests/test-signbit.c (test_signbitl): Likewise.
25150 2014-05-29  Paul Eggert  <eggert@cs.ucla.edu>
25152         exclude-tests: port to AIX 7.1
25153         * modules/exclude-tests (test_exclude_LDADD): Add $(LIBTHREAD).
25154         Needed on AIX 7.1 with xlc V12.1, otherwise it won't link because
25155         the regex code uses locks.
25157 2014-05-28  Paul Eggert  <eggert@cs.ucla.edu>
25159         pthread_sigmask, timer-time: use gl_THREADLIB only if needed
25160         Without this fix, Emacs would sometimes call sigprocmask instead
25161         of pthread_sigmask, which is a no-no in multithreaded applications.
25162         Problem reported by Jorgen Schaefer in <http://bugs.gnu.org/17561>.
25163         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
25164         Suppress check for pthread_sigmask working without -lpthread if
25165         the application always links with -lpthread.  Do not link with
25166         $LIBMULTITHREAD if gl_THREADLIB is not defined.
25167         * m4/timer_time.m4 (gl_TIMER_TIME):
25168         Require gl_THREADLIB only if it is defined.  Do not append
25169         $LIBMULTITHREAD to LIB_TIMER_TIME if gl_THREADLIB is not defined.
25171 2014-05-27  Sylvain Beucler  <beuc@beuc.net>.
25173         gnulib-tool: wget translations using --no-verbose rather than --quiet
25174         This allows the user to see error messages if any (--quiet hides them)
25175         * gnulib-tool: Invoke wget with --no-verbose, rather than --quiet.
25177 2014-05-27  Sylvain Beucler  <beuc@beuc.net>
25179         gnulib-tool: adjust translation wget to avoid a https redirection
25180         Context: http://translationproject.org/latest/gnulib redirects to
25181            https://translationproject.org/latest/gnulib/
25182         Rationale: if the user falls back to wget, she doesn't have rsync and
25183         is probably in a minimal build environment, where packages such as
25184         'ca-certificates' are missing as well, resulting in a failed (and
25185         difficult to detect since ignored) translation initial fetch.
25186         Consequently let's avoid https if possible, and add the missing
25187         trailing slash.  This also avoids an unnecessary 302 redirection.
25188         * gnulib-tool: Add trailing slash to gnulib URL.
25190 2014-05-22  Pádraig Brady  <P@draigBrady.com>
25192         getlogin_r-tests: check return value rather than errno
25193         * tests/test-getlogin_r.c (main): As per POSIX we should be
25194         verifying the return value from getlogin_r() rather than errno.
25196 2014-05-22  Pádraig Brady  <P@draigBrady.com>
25198         getlogin_r-tests: fix various issues in recent change
25199         * tests/test-getlogin_r.c: Include required headers that were
25200         missed in recent commit eec20b4e.
25201         Also consistently check the errno rather than the return value from
25202         getlogin_r as POSIX only specifies that non zero is returned on error.
25203         * modules/getlogin_r-tests (configure.ac): Add the check for ttyname().
25205 2014-05-21  Paul Eggert  <eggert@cs.ucla.edu>
25207         fchdir: port 'open' and 'close' redefinitions to AIX 7.1
25208         * lib/chown.c, lib/clean-temp.c, lib/copy-file.c, lib/execute.c:
25209         * lib/fsusage.c, lib/gc-gnulib.c, lib/javacomp.c, lib/mountlist.c:
25210         * lib/openat-proc.c, lib/pagealign_alloc.c, lib/progreloc.c:
25211         * lib/spawn-pipe.c:
25212         Do not #undef 'open' and 'close'.  AIX 7 does '#define open open64'
25213         and then 'int open64(const char *, int, ...);', which means the
25214         declaration for 'open' gets lost if we later '#undef open'.
25215         Discovered while building grep pretest 2.18.151-1c770 on AIX 7.1,
25216         where the compilation reported the non-fatal error "In function
25217         'openat_proc_name' ... warning: implicit declaration of function
25218         'open'".  In this case the error is relatively harmless, but in
25219         other cases it might not be so minor.
25221 2014-05-20  Paul Eggert  <eggert@cs.ucla.edu>
25223         xalloc: don't potentially generate invalid code for xmemdup calls
25224         * lib/xalloc.h (xmemdup): Do not mark with _GL_ATTRIBUTE_ALLOC, as
25225         this function can initialize the newly-allocated storage with new
25226         pointers, which means this function is not malloc-like.  See:
25227         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56955
25229 2014-05-19  Pádraig Brady  <P@draigBrady.com>
25231         getlogin_r-tests: avoid false failure under sudo/ssh etc.
25232         * tests/test-getlogin_r.c (main): Sync up with test-getlogin.c
25233         changes from commit 97249cf29 to not depend on environment variables.
25235 2014-05-18  Pádraig Brady  <P@draigBrady.com>
25237         getlogin-tests: avoid false failure under cron
25238         * tests/test-getlogin.c (main): Avoid verifying errnos from ttyname()
25239         since that's not what's under test.  Centos 6 was seen to return
25240         EINVAL for ttyname() when run from cron.
25242 2014-05-16  Jim Meyering  <meyering@fb.com>
25244         mbrtowc.m4: fix a comment typo
25245         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Fix typo s/2/-2/ in
25246         emitted documentation string.
25248 2014-05-16  Paul Eggert  <eggert@cs.ucla.edu>
25250         mbrlen, mbrtowc: fix bug with empty input
25251         * lib/mbrtowc.c (rpl_mbrtowc) [MBRTOWC_EMPTY_INPUT_BUG]: Fix the bug.
25252         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): New macro.  It's not used,
25253         so this is mainly for documentation.
25254         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): New macro.
25255         (gl_FUNC_MBRTOWC): Use it.
25256         * tests/test-mbrtowc.c (main): Test for the bug.
25258 2014-05-15  Paul Eggert  <eggert@cs.ucla.edu>
25260         doc: document mbrtowc and mbrlen problem with empty input
25261         * doc/posix-functions/mbrlen.texi (mbrlen):
25262         * doc/posix-functions/mbrtowc.texi (mbrtowc):
25263         Document portability problem when the input string is empty.  See:
25264         https://sourceware.org/bugzilla/show_bug.cgi?id=16950
25266         doc: document exec* = spawn+exit bug with non-Cygwin Windows platforms
25267         Problem reported by Eli Zaretskii in:
25268         http://lists.gnu.org/r/bug-grep/2014-05/msg00118.html
25269         * doc/posix-functions/execl.texi (execl):
25270         * doc/posix-functions/execle.texi (execle):
25271         * doc/posix-functions/execlp.texi (execlp):
25272         * doc/posix-functions/execv.texi (execv):
25273         * doc/posix-functions/execve.texi (execve):
25274         * doc/posix-functions/execvp.texi (execvp):
25275         Mention spawn+exit problem on non-Cygwin Windows platforms.
25277 2014-05-14  Guilherme de Almeida Suckevicz  <guito.linux@gmail.com>
25279         getlogin-tests: avoid false failure under sudo/ssh etc.
25280         * modules/getlogin-tests (configure.ac): Check for ttyname().
25281         * tests/test-getlogin.c (main): Don't depend on environment variables
25282         to correlate with getlogin(), since sudo and ssh etc. can tamper
25283         with the LOGNAME and USER env vars.  Instead lookup the name from
25284         the uid associated with the stdin tty.
25286 2014-05-11  Paul Eggert  <eggert@cs.ucla.edu>
25288         mbsstr, quotearg, xstrtol: pacify IRIX 6.5 cc
25289         These were found when building the latest grep snapshot on IRIX 6.5.
25290         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Break "a=b=c;" into
25291         "b=c; a=b;", since IRIX 6.5 cc complains about the former if b is
25292         never used later.
25293         * lib/quotearg.c (quoting_options_from_style):
25294         * lib/xstrtol.c (__xstrtol):
25295         Use enum instead of 0, to pacify IRIX 6.5 cc.
25297 2014-04-18  Pádraig Brady  <P@draigBrady.com>
25299         gitlog-to-changelog: revert inclusion of git-log-fix file
25300         * build-aux/git-log-fix: Delete dummy file.
25301         * modules/gitlog-to-changelog: Don't reference (overwrite)
25302         the project specific git-log-fix file.
25304 2014-04-18  Assaf Gordon  <agordon@wi.mit.edu>
25306         maint.mk: Relax the copyright check to cater for non FSF projects
25307         * top/maint.mk (sc_copyright_check): Relax the check for $PACKAGE.texi
25308         to not require the "Free" suffix after the copyright years.
25310 2014-04-18  Natanael Copa  <ncopa@alpinelinux.org>
25312         physmem: use sysinfo on linux-gnu if _SC_PHYS_PAGES unavailable
25313         * lib/physmem.c (physmem_total): Some systems like musl libc don't yet
25314         support _SC_PHYS_PAGES.  Use the linux syscall sysinfo as fallback
25315         if _SC_PHYS_PAGES or _SC_PAGESIZE fails.
25316         (physmem_available): Likewise for _SC_AVPHYS_PAGES.
25318 2014-04-18  Paul Eggert  <eggert@cs.ucla.edu>
25320         exclude: port to strict C99
25321         Strict C does not allow converting a function pointer to void *
25322         and vice versa.  Pass a pointer to a function pointer instead.
25323         * lib/exclude.c (add_exclude_file):
25324         Pass the address of the function pointer.
25325         (call_addfn): And deference the address here, to match.
25327 2014-04-17  Paul Eggert  <eggert@cs.ucla.edu>
25329         regex: do not depend on malloc-gnu
25330         * modules/regex (Depends-on): Remove malloc-gnu.
25331         It's no longer needed, because of the 2012-12-29 patch
25332         "regex: port to hosts where malloc (0) == NULL".
25333         Reported by Nathan Kennedy in:
25334         http://lists.gnu.org/r/bug-gnulib/2014-04/msg00026.html
25336 2014-04-16  Assaf Gordon  <agordon@wi.mit.edu>
25338         expl: avoid incorrect expl(small_value) on OpenBSD 5.4
25339         * m4/expl.m4 (gl_FUNC_EXPL): Add a check for this condition.
25340         * doc/posix-functions/expl.texi: Mention the workaround.
25342 2014-04-12  Paul Eggert  <eggert@cs.ucla.edu>
25344         xalloc: allow x2nrealloc (P, PN, S) where P && !*PN
25345         * lib/xalloc.h (x2nrealloc): Extend slightly, to allow the current
25346         size to be zero even when the pointer is nonnull.  This
25347         accommodates the use case where P is malloc (0) and *PN is 0 on a
25348         host where malloc (0) yields nonnull.
25350 2014-04-09  Eric Blake  <eblake@redhat.com>
25352         fts: avoid unnecessary strlen calls
25353         * lib/fts.c (_D_EXACT_NAMLEN): Restore definition when needed.
25355 2014-04-09  Paul Eggert  <eggert@cs.ucla.edu>
25357         fts: avoid unnecessary strlen calls
25358         * lib/fts.c (fts_build): Go back to using _D_EXECT_NAMLEN
25359         when that can be faster than strlen.
25361 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
25363         fts: avoid unnecessary strlen calls
25364         * lib/fts.c (_D_EXACT_NAMLEN): Remove macro.
25365         (fts_build): Store the length of the dp->d_name entry in a local variable
25366         instead of calling strlen() several times via the above, removed macro.
25367         For 'rm -rf some-dir' with e.g. 1M directory entries, this speeds up the
25368         run by ~4%, yet this reduces the execution time by about a third if run
25369         via "ltrace -c rm -rf some-dir".
25371 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
25373         obstack: Remove ancient NeXTSTEP gcc support conditional
25374         This change will ease merging with glibc.  The "#if ... __NEXT__"
25375         causes a warning with -Wundef which glibc now enables by default.
25376         Problem reported by Will Newton in
25377         <http://lists.gnu.org/r/bug-gnulib/2014-03/msg00032.html>.
25378         glibc <sys/cdefs.h> now uses __extension__ for GCC 2.8 or later,
25379         so go with that.
25380         * lib/obstack.h (__extension__):
25382 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
25384         obstack: merge with glibc changes
25385         * lib/obstack.c, lib/obstack.h: Merge from glibc.
25386         This is mostly indenting and commentary changes.
25387         Instances of 'register' have been removed.
25389 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
25391         strftime: wrap macros in "do {...} while(0)"
25392         * lib/strftime.c (DO_NUMBER): Wrap multi-statement code block of
25393         this macro in "do {...} while(0)" to prevent false use as a
25394         single statement, e.g., in an un-braced "{}" else-block.
25395         (DO_SIGNED_NUMBER, DO_TZ_OFFSET, DO_NUMBER_SPACEPAD): Likewise.
25396         (strftime_case_): Remove 'else' after 'goto' - which was the
25397         only non-fatal, un-braced use of one of the above macros.
25398         Spotted by coverity (NESTING_INDENT_MISMATCH).
25400 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
25402         modechange: avoid memory leaks for invalid octal modes
25403         * lib/modechange.c (mode_compile): During the parsing of
25404         notations like +40, free the 'mc' buffer for invalid mode
25405         strings like +17777 (greater than the maximum octal mode),
25406         =18 (bad octal mode characters) or u=1 ('affected' with
25407         octal modes).
25408         Reproducer, e.g.:
25409             $ valgrind --leak-check=full chmod +17777 file
25410         Introduced via the 2012-03-09 commit, 4730c3e3, "modechange:
25411         add notations +40, 00440, etc.".
25412         Spotted by coverity (RESOURCE_LEAK).
25414 2014-03-24  Paul Eggert  <eggert@cs.ucla.edu>
25416         gitlog-to-changelog: include a dummy git-log-fix file
25417         Problem reported by Nathan Stratton Treadway in:
25418         http://lists.gnu.org/r/bug-tar/2014-03/msg00082.html
25419         * build-aux/git-log-fix: New file.
25421 2014-03-13  Jim Meyering  <meyering@fb.com>
25423         gitlog-to-changelog: also include the file, git-log-fix
25424         * modules/gitlog-to-changelog (Files): Add git-log-fix.
25425         Reported by Assaf Gordon.
25427 2014-03-06  Paul Eggert  <eggert@cs.ucla.edu>
25429         regex: port to OS X 10.8.5 en_US.UTF-8 locale
25430         This fixes a bug when ignoring case and when comparing the
25431         titlecase letter 'Lj' (U+01C8 LATIN CAPITAL LETTER L WITH SMALL
25432         LETTER J) to the corresponding uppercase letter 'LJ' (U+01C7 LATIN
25433         CAPITAL LETTER LJ).  In the OS X 10.8.5 en_US.UTF-8 locale, the
25434         titlecase letter is neither lowercase nor uppercase, but
25435         uppercasing the titlecase letter (via towupper) yields the
25436         uppercase letter, so the two letters should match when ignoring case.
25437         Problem reported by Jim Meyering in <http://debbugs.gnu.org/16911#16>.
25438         * lib/regex_internal.c (build_wcs_upper_buffer, build_upper_buffer):
25439         Don't test whether a character is lowercase before uppercasing it.
25441 2014-03-04  Kevin Cernekee  <cernekee@gmail.com>
25443         stdint, read-file: fix missing SIZE_MAX on Android (tiny change)
25444         This is basically one of the options Bruno Haible proposed in:
25445         http://lists.gnu.org/r/bug-gnulib/2012-01/msg00282.html
25446         * lib/sys_types.in.h (_GL_INCLUDING_UNISTD_H): New macro.
25447         * lib/stdint.in.h: Use it.
25448         * modules/stdint (Depends-on): Add sys_types.
25450 2014-02-26  Pádraig Brady  <P@draigBrady.com>
25452         parse-datetime: fix crash or infloop in TZ="" parsing
25453         * lib/parse-datetime.y (parse_datetime): Break out of the
25454         TZ="" parsing loop once the second significant " is found.
25455         Also skip over any subsequent whitespace to be consistent
25456         with the non TZ= case.
25457         * tests/test-parse-datetime.c: Add test cases for TZ="" parsing.
25459 2014-02-26  Paul Eggert  <eggert@cs.ucla.edu>
25461         savedir: new symbol for fast-read version
25462         * lib/savedir.h (SAVEDIR_SORT_FASTREAD): New symbol, for programs
25463         like GNU cp that want to use SAVEDIR_SORT_INODE if available,
25464         SAVEDIR_SORT_NONE otherwise.  Problem reported by Bernhard Voelker in:
25465         http://lists.gnu.org/r/coreutils/2014-02/msg00037.html
25467 2014-02-25  Paul Eggert  <eggert@penguin.cs.ucla.edu>
25469         unistd: port readlink to Mac OS X 10.3.9
25470         * lib/unistd.in.h (_GL_INCLUDING_UNISTD_H): New macro, to work
25471         around self-include problem in Mac OS X 10.3.9 when combined with
25472         readlink module.  Problem reported by Klaus Zietler in
25473         <http://bugs.gnu.org/16825>.
25475 2014-02-23  Paul Eggert  <eggert@cs.ucla.edu>
25477         diffseq: remove TOO_EXPENSIVE heuristic
25478         Problem with diffutils reported by Vincent Lefevre in
25479         <http://bugs.gnu.org/16848>.  The simplest solution is to remove
25480         the TOO_EXPENSIVE heuristic that I added to GNU diff in 1993.
25481         Although appropriate for circa-1993 hardware, these days the heuristic
25482         seems to be more trouble than it's worth.
25483         * lib/diffseq.h: Modernize citations.
25484         (struct context): Remove member too_expensive.
25485         All uses changed.
25486         (struct partition): Remove members lo_minimal, hi_minimal.
25487         All uses changed.
25488         (diag, compareseq): Remove arg find_minimal.  All uses changed.
25489         (diag): Remove the TOO_EXPENSIVE heuristic that I added back in
25490         1993 to make 'diff' run faster (but not as well) on large inputs.
25491         These days, computers are fast enough that it's typically better
25492         to run slower but more accurately.
25493         * lib/fstrcmp.c: Remove duplicate comment.
25494         * lib/fstrcmp.c (strcmp_bounded):
25495         * lib/git-merge-changelog.c (compute_differences):
25496         Adjust to diffseq.h changes.
25497         * NEWS: Document the change.
25499         savedir: simplify by using stpcpy
25500         * lib/savedir.c (direntry_t): Remove size member.  All uses removed.
25501         (streamsavedir): Use stpcpy instead.
25502         * modules/savedir (Depends-on): Add stpcpy.
25504 2014-02-21  Pádraig Brady  <P@draigBrady.com>
25506         spawn: fix link error on uclibc
25507         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): use AC_SEARCH_LIBS,
25508         to incorporate -lrt if needed (on uclibc for example).
25509         * modules/posix_spawn: Reference the substituted LIB.
25511 2014-02-21  Thomas Petazzoni  <thomas.petazzoni@free-electrons.com>  (tiny change)
25512         timer: fix uClibc detection of threading
25513         * m4/time_time.m4 (gl_TIMER_TIME): Detect whether threads are
25514         enabled in uClibc.
25516 2014-02-21  Eric Blake  <eblake@redhat.com>
25518         maintainer-makefiles: provide AC_PROG_SED for older autoconf
25519         * m4/gnulib-common.m4 (AC_PROG_SED): Copy from newer autoconf.
25521 2014-02-21  Sergey Poznyakoff  <gray@gnu.org.ua>
25523         exclude: add support for posix regexps
25525         This commit adds support for POSIX extended regular expressions
25526         and fixes a long-standing memory leak (pattern buffer was never
25527         freed).  It also implements a new interface function to read
25528         exclude patterns from a FILE, which passes an additional parameter
25529         to its callback function, thereby allowing to preserve its state
25530         between invocations.
25532         * lib/exclude.c (struct patopts): Pack regex and pattern into union.
25533         (pattern_buffer): New struct.
25534         (exclude): New member patbuf.
25535         (exclude_add_pattern_buffer): New function.
25536         (free_exclude_segment): Free regexps.
25537         (free_exclude): Free allocated pattern buffers.
25538         (exclude_patopts): New function.
25539         (file_pattern_matches): Use exclude_patopts.
25540         (add_exclude): support regexps.
25541         (add_exclude_fp): New function.
25542         (add_exclude_file): Rewrite using add_exclude_fp.
25543         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
25544         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
25545         (add_exclude_fp)
25546         (add_exclude_file): Rewrite using add_exclude_fp.
25547         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
25548         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
25549         (add_exclude_fp)
25550         (exclude_add_pattern_buffer): New prototypes.
25551         * modules/exclude: Depends on regex and filename.
25553 2014-02-20  Eric Blake  <eblake@redhat.com>
25555         maintainer-makefiles: use $(SED) for syntax check
25556         * modules/maintainer-makefile (configure.ac): Check for sane sed.
25557         * top/maint.mk: Change sed to $(SED).
25559 2014-02-11  Sergey Poznyakoff  <gray@gnu.org.ua>
25560             Paul Eggert  <eggert@cs.ucla.edu>
25562         savedir: add sorting arg to savedir, streamsavedir; remove fdsavedir
25563         Patch based on an idea by Dick Streefland in
25564         <https://savannah.gnu.org/patch/?7892>.
25565         * NEWS: Document this.
25566         * lib/savedir.c (NAME_SIZE_DEFAULT): Remove.
25567         (direntry_t, comparison_function): New types.
25568         (direntry_cmp_name): New function.
25569         (direntry_cmp_inode) [D_INO_IN_DIRENT]: New function.
25570         (streamsavedir, savedir): New arg OPTION.
25571         (streamsavedir): Simplify memory allocation.
25572         (fdsavedir): Remove.
25573         * lib/savedir.h (enum savedir_option): New type.
25574         (streamsavedir, savedir): New arg OPTION.
25575         (fdsavedir): Remove.
25577 2014-02-05  Paul Eggert  <eggert@cs.ucla.edu>
25579         file-type: add support for doors and other less-common file types
25580         Problem with S_ISDOOR reported by Rich Burridge.
25581         * lib/file-type.c (file_type): Do S_ISLNK early too.  Do S_TYPEIS*
25582         macros before the rest.  Add S_ISCTG, S_ISDOOR, S_ISMPB, S_ISMPC,
25583         S_ISMPX, S_ISNAM, S_ISNWK, S_ISOFD, S_ISOFL, S_ISPORT, S_ISWHT.
25585 2014-01-23  Eric Blake  <eblake@redhat.com>
25587         pthread: work around winpthread header pollution on mingw
25588         * lib/time.in.h: Move pthread workarounds...
25589         * lib/pthread.in.h: ...here.
25590         * m4/pthread.m4 (gl_PTHREAD_CHECK): Also build pthread.h when we
25591         detect macro pollution on mingw.
25592         * doc/posix-headers/pthread.texi (pthread.h): Document the problems.
25594 2014-01-22  Paul Eggert  <eggert@cs.ucla.edu>
25596         qacl: check for fchmod
25597         * m4/acl.m4 (gl_FUNC_ACL): Check for fchmod, since acl-internal.h
25598         and qset-acl.c both use HAVE_FCHMOD.
25600 2014-01-20  Paul Eggert  <eggert@cs.ucla.edu>
25602         fdopen-tests: port to Tru64
25603         * tests/test-fdopen.c (main): Don't invoke fdopen on a file
25604         descriptor that is not open, as POSIX doesn't specify the
25605         resulting behavior and the test does not work on Tru64.
25606         Problem reported by Steven M. Schweda in:
25607         http://lists.gnu.org/r/bug-gnulib/2014-01/msg00079.html
25609         stdalign: port to HP-UX compilers
25610         * lib/stdalign.in.h (_Alignas): Use __attribute__ (__aligned__ (x))
25611         if __HP_cc or __HP_aCC are nonzero.
25613 2014-01-16  Paul Eggert  <eggert@cs.ucla.edu>
25615         strtoimax: port to platforms lacking 'long long'
25616         VMS's pre-C99 compiler lacks 'long long', so 'configure' doesn't
25617         check whether strtoll is declared, which causes the C file to
25618         wrongly report an error.  Problem reported by Steven M. Schweda in:
25619         http://lists.gnu.org/r/bug-diffutils/2014-01/msg00003.html
25620         * lib/strtoimax.c (strtoull):
25621         Declare only if HAVE_UNSIGNED_LONG_LONG_INT.
25622         (strtoll): Declare only if HAVE_LONG_LONG_INT.
25624 2014-01-16  Daniel Albers  <daniel@lbe.rs>  (tiny change)
25626         relocatable-perl: fix texi syntax
25627         * doc/relocatable-maint.texi: Escape braces.
25629 2014-01-09  Reuben Thomas  <rrt@sc3d.org>
25631         relocatable-perl: like relocatable-script, but for Perl scripts
25632         * build-aux/relocatable.pl.in: Add.
25633         * doc/relocatable-maint.texi: Add documentation.
25634         * modules/relocatable-perl: Add.
25636 2014-01-07  Paul Eggert  <eggert@cs.ucla.edu>
25638         tests: fix export bug in previous patch
25639         Problem reported by Jim Meyering.
25640         * tests/init.sh (re_shell): New var, which is exported instead of
25641         re_shell_.
25643         tests: simplify porting to Solaris 10 /bin/sh
25644         Some test cases in 'grep' need a shell that groks '$(';
25645         export re_shell_ for their benefit.  Problem reported for 'grep'
25646         by Dagobert Michelsen in <http://bugs.gnu.org/16380>.
25647         * tests/init.sh (re_shell_): Export if it's used.
25649 2014-01-06  Eric Blake  <eblake@redhat.com>
25651         md5, sha1, sha256, sha512: support older autoconf
25652         * m4/00gnulib.m4 (m4_divert_push): Wrap diversion stack
25653         for autoconf < 2.63b.
25655         include_next: port to autoconf 2.63
25656         * m4/gnulib-common.m4 (AS_VAR_COPY): Define if missing.
25658 2014-01-04  Jim Meyering  <meyering@fb.com>
25660         maint: add a gnulib-local rule to keep non-ascii out of .texi files
25661         * cfg.mk (sc_keep_gnulib_texi_files_mostly_ascii): New rule,
25662         so that "make sc_maint" will ding anyone who puts non-ascii
25663         in any of gnulib's .texi files.
25665 2014-01-03  Jim Meyering  <meyering@fb.com>
25667         freadable, fwritable, fwriting: declare with the "pure" attribute
25668         * lib/freadable.h (freadable): Declare with the "pure" attribute.
25669         * lib/fwritable.h (fwritable): Likewise.
25670         * lib/fwriting.h (fwriting): Likewise.
25671         Suggested by Bruno Haible.
25673         maint.mk: adapt openat.h-include-without-use test
25674         * top/maint.mk (sc_prohibit_openat_without_use): Also check for
25675         FCHMODAT_INLINE, FCHOWNAT_INLINE and STATAT_INLINE, to avoid
25676         failing on gnulib's own lib/{chmod,chown,stat}at.c files.
25677         With this change, running "make sc_maint" in gnulib's top-level
25678         directory now passes for me.
25680 2014-01-03  Paul Eggert  <eggert@cs.ucla.edu>
25682         doc: use ASCII in .texi files where UTF-8 isn't needed
25683         * doc/posix-functions/crypt.texi, doc/posix-functions/encrypt.texi:
25684         * doc/posix-functions/setkey.texi, doc/regex.texi:
25685         Use ASCII input, not UTF-8.
25687 2014-01-02  Jim Meyering  <meyering@fb.com>
25689         freading: declare with the "pure" attribute
25690         * lib/freading.h (freading): Declare with the "pure" attribute.
25692         manywarnings: remove -Wmudflap
25693         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove -Wmudflap, since
25694         it is no longer supported in gcc-4.9-to-be.
25696 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
25698         relocatable-script: remove unused code
25699         Problem reported by Reuben Thomas in:
25700         http://lists.gnu.org/r/bug-gnulib/2013-12/msg00117.html
25701         * build-aux/relocatable.sh.in (func_tmpdir): Remove unused function.
25703 2014-01-01  Jim Meyering  <meyering@fb.com>
25705         maint: fix public-submodule-commit to work with newer git
25706         * top/maint.mk (public-submodule-commit): Remove excess quoting.
25707         We were over-quoting the test arguments, and somewhere prior to
25708         version 1.8.5.2.229, git stopped removing those excess quotes,
25709         which made the test fail, since the unexpanded strings would
25710         always differ; using GIT_TRACE=1 confirmed that the git merge-base
25711         command wasn't even being run.
25713 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
25715         doc: update main copyright year
25716         * doc/gnulib.texi: Update copyright date.
25718 2014-01-01  Eric Blake  <eblake@redhat.com>
25720         version-etc: new year
25721         * lib/version-etc.c (COPYRIGHT_YEAR): Bump to 2014.
25722         * all files: run 'make update-copyright'
25724 2013-12-24  Eric Blake  <eblake@redhat.com>
25726         passfd: give nicer error for recvfd at eof
25727         * lib/passfd.c (recvfd): Fake ENOTCONN if other end closes early.
25728         * tests/test-passfd.c (main): Enhance test to cover this.
25730 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
25732         gettimeofday: port recent C++ fix to Emacs
25733         Without this further patch, Emacs won't build due to
25734         the portcheck failing.  Also, this simplifies the patch a bit.
25735         * lib/time.in.h (localtime, gmtime): Don't replace unless
25736         GNULIB_GETTIMEOFDAY.  Treat them more like mktime.
25737         * lib/time.in.h (localtime, gmtime):
25738         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME):
25739         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
25740         * modules/time (time.h):
25741         Don't worry about the possibility of localtime and gmtime
25742         being absent; they're present in all C libraries we know about.
25743         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
25744         Don't assume sys_time is present and has been initialized.
25745         Instead, use a hack that should work even if it hasn't been.
25746         Don't use a portcheck for gmtime or localtime; this supports
25747         the hack.
25748         * modules/time (time.h): Substitute GNULIB_GETTIMEOFDAY.
25750 2013-12-17  John W. Eaton  <jwe@gnu.org>
25752         gettimeofday: fix C++ crosscompilation
25754         Never replace gmtime and localtime by macros when compiling with
25755         C++, this prevents <ctime> from being included.
25757         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Do not
25758         define gmtime and localtime as preprocessor macros.  Instead
25759         define some HAVE_GMTIME, HAVE_LOCALTIME, REPLACE_GMTIME, and
25760         REPLACE_LOCALTIME substitutions.
25761         * lib/time.in.h: Declare gmtime and localtime when needed.
25762         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): AC_SUBST HAVE_GMTIME,
25763         HAVE_LOCALTIME, REPLACE_GMTIME, and REPLACE_LOCALTIME.
25764         * modules/time: Depend on gettimeofday, and substitute the above
25765         variables in time.h.
25767 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
25769         qacl: port to Windows better
25770         See Eli Zaretskii in
25771         <http://lists.gnu.org/r/emacs-devel/2013-12/msg00593.html>.
25772         * lib/file-has-acl.c (acl_access_nontrivial):
25773         Return -1 and set errno if !HAVE_ACL_FIRST_ENTRY &&
25774         !HAVE_ACL_TO_SHORT_TEXT && !HAVE_ACL_FREE_TEXT.
25776 2013-12-12  Alexander V. Lukyanov  <lav@netis.ru>
25778         md5, sha1, sha256, sha512: fix (trivial) compile error in c++ mode.
25779         * lib/gl_openssl.h: Cast void pointers to a specific type.
25781 2013-12-07  Pádraig Brady  <P@draigBrady.com>
25783         open-tests: fix build failure with -Werror=old-style-declaration
25784         * tests/test-open.h: Reorder the inline to avoid the issue.
25786 2013-12-07  Pádraig Brady  <P@draigBrady.com>
25788         md5, sha1, sha256, sha512: fix link error with partial libcrypto
25789         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Only clear LIB_CRYPTO at
25790         init time, so that if early checks find crypto routines,
25791         while the last does not, then @LIB_CRYPTO@ is replaced correctly,
25792         avoiding link failures.
25794 2013-12-07  Paul Eggert  <eggert@cs.ucla.edu>
25796         md5, sha1, sha256, sha512: add gl_SET_CRYPTO_CHECK_DEFAULT
25797         This provides a new way to specify the default for
25798         gl_CRYPTO_CHECK, one that is reflected in the --help message.
25799         Emacs uses this, as well as the old way.
25800         This attempts to implement a suggestion by Pádraig Brady in
25801         <http://lists.gnu.org/r/coreutils/2013-12/msg00080.html>.
25802         * m4/gl-openssl.m4(gl_SET_CRYPTO_CHECK_DEFAULT): New macro.
25803         (gl_CRYPTO_CHECK): Use it.  Mention the default in --help output.
25805         md5, sha1, sha256, sha512: add 'auto', and a way to specify default
25806         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK):
25807         Add support for a new option, --with-openssl=auto, which causes
25808         the library to be used if available and silently ignored if not.
25809         Add support to allow configure.ac to specify its own
25810         default, by setting with_openssl_default before invoking gl_INIT.
25812 2013-12-05  Paul Eggert  <eggert@cs.ucla.edu>
25814         open-tests: port to glibc with _FORTIFY_SOURCE and -O1
25815         Problem reported by Daiki Ueno in:
25816         http://lists.gnu.org/r/bug-gnulib/2013-06/msg00052.html
25817         * tests/test-open.h (__always_inline):
25818         New macro, if not already defined.
25819         (test_open): Use it.
25821 2013-12-04  Eric Blake  <eblake@redhat.com>
25823         include_next: minimize code duplication
25824         * modules/include_next (Depends-on): Add absolute-header.
25825         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Reuse
25826         gl_ABSOLUTE_HEADER_ONE instead of open-coding it.
25828 2013-12-04  Pádraig Brady  <P@draigBrady.com>
25830         getcwd: fix compile error in configure check
25831         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Include errno.h
25833 2013-12-04  Pádraig Brady  <P@draigBrady.com>
25835         regex: suppress core dumps from detection code
25836         * m4/regex.m4 (gl_REGEX): Catch the SIGABRT and convert to SIGTERM
25837         to suppress core dumps that may well occur on glibc systems.
25838         These core dumps might not be cleaned up automatically, or could
25839         trigger some system core dump handling logic.
25841 2013-12-03  Pádraig Brady  <P@draigBrady.com>
25843         md5, sha1, sha256, sha512: support mandating use of openssl
25844         * m4/gl-openssl.m4 (gl_crypto_check): Adjust the --with-openssl
25845         description, to list the now 3 separate options.  also don't
25846         mention the default=no, since this is implicit given the option
25847         is described as --with-openssl rather than --without-openssl.
25848         If projects change the default they're free to document that.
25849         with --with-openssl[=yes] we now error out when the specified
25850         hash algorithm is not available in libcrypto.
25852 2013-12-03  Ivailo  <xakepa10@gmail.com>
25854         test-xvasprintf: (trivial) fix to disable some -Wformat-security diags
25855         * tests/test-xvasprintf.c: Disable -Wformat-zero-length and
25856         -Wformat-nonliteral checks, as these edge cases are part of the test.
25858 2013-12-03  Eric Blake  <eblake@redhat.com>
25860         regex: avoid glibc deadlock during configure
25861         * m4/regex.m4 (gl_REGEX): Avoid recursive malloc deadlock when
25862         glibc bug 15078 in turn triggers bug 16159.
25863         Reported by Michal Privoznik.
25865 2013-12-02  Pádraig Brady  <P@draigBrady.com>
25867         md5, sha1, sha256, sha512: use openssl routines if available.
25868         --with-openssl the libcrypto md5, sha1, sha224, sha256, sha384, sha256
25869         routines will be used if available, requiring apps to link @LIB_CRYPTO@
25870         * lib/gl_openssl.h: Provide wrappers for specified openssl hash.
25871         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): New function to lookup libcrypto
25872         in the standard system location.
25873         * m4/sha1.m4: Call gl_CRYPTO_CHECK() for SHA1.
25874         * m4/sha256.m4: Likewise with SHA256.
25875         * m4/sha512.m4: Likewise with SHA512.
25876         * m4/md5.m4: Likewise with MD5.
25877         * m4/gc.m4: Ensure @LIB_CRYPTO@ set for tests.
25878         * lib/sha1.h: Include wrappers if HAVE_OPENSSL_SHA1.
25879         * lib/sha256.h: Likewise with SHA256.
25880         * lib/sha512.h: Likewise with SHA512.
25881         * lib/md5.h: Likewise with MD5.
25882         * lib/sha1.c: Exlude functionality if HAVE_OPENSSL_SHA1.
25883         * lib/sha256.c: Likewise with SHA256.
25884         * lib/sha512.c: Likewise with SHA512.
25885         * lib/md5.c: Likewise with MD5.
25886         * modules/crypto/sha1 (Link:): Add the new optional lib.
25887         (Depends-on:): Add dependency on extern-inline.
25888         * modules/crypto/sha256: Likewise.
25889         * modules/crypto/sha512: Likewise.
25890         * modules/crypto/md5: Likewise.
25891         * modules/crypto/sha1-tests: Reference the lib here too.
25892         * modules/crypto/md5-tests: Likewise.
25893         * modules/crypto/gc-des-tests: Likewise.
25894         * modules/crypto/gc-hmac-md5-tests: Likewise.
25895         * modules/crypto/gc-hmac-sha1-tests: Likewise.
25896         * modules/crypto/gc-hmac-sha256-tests: Likewise.
25897         * modules/crypto/gc-hmac-sha512-tests: Likewise.
25898         * modules/crypto/gc-md5-tests: Likewise.
25899         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
25900         * modules/crypto/gc-sha1-tests: Likewise.
25901         * modules/crypto/gc-tests: Likewise.
25902         * modules/crypto/hmac-md5-tests: Likewise.
25903         * modules/crypto/hmac-sha1-tests: Likewise.
25904         * modules/crypto/hmac-sha256-tests: Likewise.
25905         * modules/crypto/hmac-sha512-tests: Likewise.
25907 2013-11-29  RV1971  <rv1971@web.de>
25909         base64: (trivial) fix compilation regression on some compilers
25910         * lib/base64.c: Don't return the void function,
25911         instead split to a separate return statement.
25913 2013-11-28  Paul Eggert  <eggert@cs.ucla.edu>
25915         ignore-value: revert previous code change
25916         * lib/ignore-value.h (ignore_value): Use __extension__ and
25917         __typeof__ only for GCC 3.4 and later.  Reported by Eric Blake in
25918         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00102.html>.
25919         Change the comment to try to explain this better.
25921 2013-11-27  Pádraig Brady  <P@draigBrady.com>
25923         selinux-h: improve stub types and add more stub functions
25925         * lib/se-selinux.in.h: Change security_context_t to a typedef
25926         rather than a define, as it's a pointer type and so is better
25927         as a typedef to avoid issues declaring multiple variables
25928         with the comma operator.  Also add stub for string_to_security_class().
25929         * lib/se-context.in.h: Add stub functions for
25930         context_{type,range,role,user}_get().
25932 2013-11-27  Paul Eggert  <eggert@cs.ucla.edu>
25934         ignore-value: prefer GCC version back through 2.0
25935         The code didn't match the comments, so I did a bit of software
25936         archaeology.  GCC 2.0 seems to support __extension__ and
25937         __typeof__, so fix both code and comments to use 2.0.
25938         * lib/ignore-value.h (ignore_value): Use __extension__ and
25939         __typeof__ for GCC 2.0 through 3.3, too.
25941 2013-11-25  Mats Erik Andersson  <gnu@gisladisker.se>
25943         pty: Activate the signature wrapper of forkpty.
25944         The intended preprocessor macro HAVE_FORKPTY is
25945         never defined, yet `lib/forkpty.c' depends on it.
25947         * m4/pty.m4 (gl_FUNC_FORKPTY): At completed analysis,
25948         apply AC_DEFINE_UNQUOTED to HAVE_FORKPTY with value
25949         $HAVE_FORKPTY for access to wrapper in `lib/forkpty.c'.
25951 2013-11-18  Jim Meyering  <meyering@fb.com>
25952         and Paul Eggert  <eggert@cs.ucla.edu>
25954         quotearg: don't attempt to store 1 << 31 into an "int"
25955         * lib/quotearg.c (quotearg_buffer_restyled): Building coreutils with
25956         gcc's new -fsanitize=undefined and running its tests triggered some
25957         new test failures due to undefined behavior, all with this diagnostic:
25958           lib/quotearg.c:629:62: runtime error: left shift of 1 by 31 places \
25959             cannot be represented in type int
25960         Rather than shifting "1" left to form a mask, shift the bits right and
25961         simply use "1" as the mask.
25963 2013-11-21  Paul Eggert  <eggert@cs.ucla.edu>
25965         error: depend on stdio
25966         Problem reported by Nikos Mavrogiannopoulos in
25967         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00084.html>
25968         * modules/error (Depends-on): Add stdio.
25970 2013-11-18  Ben Pfaff  <blp@cs.stanford.edu>
25972         * doc/relocatable-maint.texi (Supporting Relocation): Improve
25973         wording.
25974         Reported by Reuben Thomas <rrt@sc3d.org>.
25976 2013-11-13  Paul Eggert  <eggert@cs.ucla.edu>
25978         * lib/getgroups.c (posix_getgroups, getgroups) [__APPLE__]:
25979         New function and macro, to work around _DARWIN_C_SOURCE problem.
25980         Reported by Jack Howarth in <http://bugs.gnu.org/14463>.
25982 2013-11-11  Pádraig Brady  <P@draigBrady.com>
25984         base64: provide a fast path for encoding well sized buffers
25985         Avoid conditionals in the base64 encoding loop,
25986         which was seen to give 60% better throughput.
25987         * lib/base64.c (base64_encode_fast): A new function to be called
25988         when we don't want to NUL terminate, and we have enough space
25989         in the output to encode the given input.
25990         (base64_encode): Call the _fast() version when appropriate.
25991         Also remove a redundant mask with 0x3F on the first encoded byte.
25993 2013-11-08  Paul Eggert  <eggert@cs.ucla.edu>
25995         extern-inline: port better to OS X 10.9
25996         * m4/extern-inline.m4: Omit serial number; this file doesn't use them.
25997         (gl_EXTERN_INLINE): Do not suppress the use of extern inline on
25998         OS X 10.9, except for g++ where the bug is still present.
25999         See <http://trac.macports.org/ticket/41033>.
26001 2013-11-08  Eric Blake  <eblake@redhat.com>
26003         fpending: fix regression on DragonFly BSD
26004         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for declaration.
26005         * lib/fpending.h (__fpending): Don't declare twice.
26006         Reported by GW in
26007         <https://lists.gnu.org/r/bug-m4/2013-11/msg00000.html>
26009 2013-11-05  Jim Meyering  <meyering@fb.com>
26011         hash: relax license to LGPLv2+, for libguestfs
26012         * modules/hash (License): Change from GPL to LGPLv2+.
26014 2013-11-03  Paul Eggert  <eggert@cs.ucla.edu>
26016         intprops: port to Oracle Studio c99
26017         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__SUNPRO_C && __STDC__]:
26018         Define to 0, to avoid diagnostics when Oracle Studio is pedantic.
26020 2013-10-31  Paul Eggert  <eggert@cs.ucla.edu>
26022         obstack: pacify HP C
26023         * lib/obstack.h (obstack_free) [!__GNUC__]: Rewrite to avoid
26024         warning "conversion from pointer to smaller integer" from HP
26025         C-ANSI-C - cc version B9007AA/B3910B A.06.26.  It's safe to assume
26026         C89 or later nowadays, so cast to void instead of int.  Privately
26027         reported by H.Merijn Brand.  Also, change header to match glibc's,
26028         to make checking against glibc easier.
26030 2013-10-29  Jim Meyering  <meyering@fb.com>
26032         maint.mk: prefer gpgv2 over gpgv
26033         * top/maint.mk (gpgv): Use gpgv2 if present, else gpgv.
26034         (gpg_key_ID): Use $(gpgv), rather than hard-coding "gpgv".
26035         Reported by Gary Vaughan.
26037 2013-10-30  Paul Eggert  <eggert@cs.ucla.edu>
26039         isnan: port to VAX
26040         Reported by John Klos for NetBSD-5/VAX in
26041         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00133.html>.
26042         * lib/isnan.c (IEEE_FLOATING_POINT): New macro, stolen from Emacs.
26043         (FUNC): Use it.
26045 2013-10-28  Jim Meyering  <meyering@fb.com>
26047         gnulib-tool: protect against CDPATH
26048         * gnulib-tool: Many "cd" built-in functions print a directory name
26049         to stdout when CDPATH is set, e.g.,
26050           $ bash -c 'CDPATH=/; cd tmp'
26051           /tmp
26052         Unset it, when possible.  Prompted by a comment from Bruce Korb.
26054         maint.mk: restore functionality removed by recent change...
26055         Sunday's change, v0.0-8062-g6b24f60, may have appeared correct from
26056         the context of a shallow-cloned gnulib repository: "git describe"
26057         would fail in such a directory.  However, that change made it so
26058         the reported gnulib revision no longer includes the version number
26059         or a commit count, even when run from a full clone.
26060         * top/maint.mk (gnulib-version): Use the full "git describe"
26061         output when possible, e.g., the form above, rather than the
26062         abbreviated, no-tag, no-commit-count string, and fall back to
26063         using a 10-byte hash, rather than the default minimal-length
26064         hash prefix, since while the minimal-length one may be fine today,
26065         it is likely not to be unique for very long.
26067 2013-10-26  Jim Meyering  <meyering@fb.com>
26069         maint.mk: fix "release" target to build _version
26070         This fixes a bug in README-release whereby following the outlined
26071         steps, one would publish a tarball whose programs would report
26072         --version output not consistent with the package version number.
26073         This bug caused grep-2.15 to produce a grep program whose
26074         --version option made it print 2.14.56-1e3d rather than 2.15.
26075         * top/maint.mk (release): Making this target build "_version"
26076         ensures that the new version number is reflected in configure.
26078 2013-10-21  Ben Pfaff  <blp@cs.stanford.edu>
26080         install-reloc: Support multi-binary installation.
26081         * build-aux/install-reloc: Support installing multiple programs in
26082         one invocation, as done by Automake starting with commit
26083         4295fe33eb23f (Multi-file install for PROGRAMS.).  From Bruno
26084         Haible <bruno@clisp.org>, archived at
26085         http://lists.debian.org/debian-bsd/2012/05/msg00032.html.
26086         Reported by Sylvain <beuc@gnu.org>.
26088 2013-10-21  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
26090         selinux-h: Really build without selinux when library is missing.
26091         * m4/selinux-selinux-h.m4: When the selinux library is missing, really
26092         continue without selinux, as already told in the warning message.
26094 2013-10-21  Jim Meyering  <meyering@fb.com>
26096         regex: also remove dependency on HAVE_WCSCOLL
26097         * lib/regex_internal.h: Remove final vestige of the wcscoll dependency.
26099 2013-10-21  Reuben Thomas  <rrt@sc3d.org>
26101         xfreopen: Fix typo. s/frepoen/freopen/
26102         * lib/xfreopen.c: Fix description.
26103         * modules/xfreopen: Likewise.
26105 2013-10-21  Jim Meyering  <meyering@fb.com>
26107         regex: don't depend on wcscoll
26108         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wcscoll.
26109         It is no longer used.
26111 2013-10-20  Jim Meyering  <meyering@fb.com>
26113         error: add the printf attribute to a static function
26114         * lib/error.c (error_tail): Add the printf attribute, to placate
26115         gcc's -Werror=suggest-attribute=format option.
26117 2013-09-30  Jim Meyering  <meyering@fb.com>
26119         fpending, obstack, strerror-override: use pure+const function attrs
26120         * lib/fpending.h (__fpending): Declare with the "pure" attribute.
26121         * lib/obstack.c (_obstack_allocated_p): Likewise.
26122         * lib/obstack.h (_obstack_memory_used): Likewise.
26123         (_obstack_memory_used): Likewise.
26124         * lib/strerror-override.h (strerror_override): Declare with
26125         the "const" attribute.
26127 2013-10-18  Eric Blake  <eblake@redhat.com>
26129         extern-inline: make safe for -Wundef usage
26130         Reported by Vladimir 'phcoder' Serbinenko in
26131         https://lists.gnu.org/r/bug-gnulib/2013-10/msg00078.html
26132         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Port to older gcc.
26134 2013-10-16  Paul Eggert  <eggert@cs.ucla.edu>
26136         mkfifo-tests, etc.: allow HP-UX 11.11 bug
26137         Problem reported by Daniel Richard G. in
26138         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00068.html>.
26139         * doc/posix-functions/mkfifo.texi (mkfifo):
26140         * doc/posix-functions/mkfifoat.texi (mkfifoat):
26141         * doc/posix-functions/mknod.texi (mknod):
26142         * doc/posix-functions/mknodat.texi (mknodat):
26143         Document the HP-UX 11.11 bug.
26144         * tests/test-mkfifo.h (test_mkfifo):
26145         Allow the HP-UX 11.11 bug.
26147 2013-10-14  Paul Eggert  <eggert@cs.ucla.edu>
26149         acl: allow cross-compilation to Gentoo
26150         Problem reported by Gabriel Marcano in
26151         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00058.html>.
26152         * m4/acl.m4 (gl_ACL_GET_FILE): When cross-compiling,
26153         test only whether it links.
26155 2013-10-13  Paul Eggert  <eggert@cs.ucla.edu>
26157         mgetgroups: remove dependency on realloc-gnu
26158         The dependency violates the comment in realloc-gnu, which
26159         says that tests can't depend on realloc-gnu; some tests depend
26160         on mgetgroups, so mgetgroups can't depend on realloc-gnu.
26161         Problem reported by Daniel Richard G. in
26162         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00056.html>.
26163         * lib/mgetgroups.c (mgetgroups): Don't call realloc (NULL, 0).
26164         * modules/mgetgroups (Depends-on): Depend on realloc-posix,
26165         not realloc-gnu.
26167 2013-10-12  Paul Eggert  <eggert@cs.ucla.edu>
26169         regex-tests: port to HP-UX 11.11
26170         Problem reported by Daniel Richard G. in
26171         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00052.html>.
26172         * modules/regex-tests (test_regex_LDADD): Add LIBTHREAD, LIB_PTHREAD.
26174 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
26176         verify: document some 'assume' pitfalls
26177         * doc/verify.texi (Compile-time Assertions):
26178         Mention that 'assume (E)' can sometimes slow things down.
26179         Use CHAR_MAX + 1, not UCHAR_MAX + 1.
26181 2013-10-10  Eric Blake  <eblake@redhat.com>
26183         strtoumax: fix typo in previous commit.
26184         * modules/strtoumax (Depends-on): Fix typo.
26185         * modules/strtoimax (Depends-on): Likewise.
26187 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
26189         strtoumax: port to Solaris 8
26190         This problem was introduced in the recent HP-UX patch.
26191         Reported by Tom G. Christensen in
26192         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00037.html>.
26193         * modules/strtoumax (Depends-on): Test HAVE_STRTOUMAX
26194         and REPLACE_STRTOUMAX rather than ac_cv_func_strtoumax.
26196 2013-10-09  Paul Eggert  <eggert@cs.ucla.edu>
26198         strtoimax, strtoumax: port to HP-UX 11.11
26199         Problem reported by Daniel Richard G. in
26200         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00023.html>.
26201         * lib/inttypes.in.h (strtoumax): Replace strtoumax if
26202         REPLACE_STRTOUMAX, thus treating it consistently with strtoimax.
26203         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Add default for
26204         REPLACE_STRTOUMAX.
26205         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX):
26206         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX):
26207         Replace the function if defined as a macro but not as a function.
26208         * modules/inttypes-incomplete (inttypes.h): Substitute
26209         REPLACE_STRTOUMAX.
26210         * modules/strtoumax (configure.ac): Replace strtoumax if
26211         REPLACE_STRTOUMAX.
26213 2013-10-08  Paul Eggert  <eggert@cs.ucla.edu>
26215         strtoimax: port to HP-UX 11.11
26216         Problem reported by Daniel Richard G.
26217         * lib/strtoimax.c (Strtoimax, Strtol, Strtoll): New macros.
26218         (strtoimax, strtol, strtoll) [UNSIGNED]: Remove, since
26219         they might clash with inttypes.h.
26221 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
26223         New module 'count-trailing-zeros'.
26224         * MODULES.html.sh: Mention it.
26225         * lib/count-trailing-zeros.c, lib/count-trailing-zeros.h:
26226         * m4/count-trailing-zeros.m4, modules/count-trailing-zeros:
26227         * modules/count-trailing-zeros-tests:
26228         * tests/test-count-trailing-zeros.c:
26229         New files.
26231         count-leading-zeros: port to MSC; support types wider than 64 bits
26232         The ideas behind the MSC port are stolen from Emacs.
26233         * lib/count-leading-zeros.h:
26234         Don't include verify.h: it's no longer needed, as types wider than
26235         64 bits are now supported.
26236         (COUNT_LEADING_ZEROS): New arg MSC_BUILTIN, for better
26237         performance with MSC.  All uses changed.  Do not assume that TYPE
26238         has at most 64 bits.
26239         (count_leading_zeros_32): Assume 0 < X < 2**32, for speed.
26240         All uses changed.  Fold the subtraction from 31 into the table.
26242         count-one-bits: port to MSC; support types wider than 64 bits
26243         The ideas behind the MSC port are stolen from Emacs.
26244         * lib/count-one-bits.c (popcount_support) [_MSC_VER]: New variable.
26245         * lib/count-one-bits.h: Include limits.h, for CHAR_BIT.
26246         Don't include verify.h: it's no longer needed, as types wider than
26247         64 bits are now supported.
26248         (COUNT_ONE_BITS_GENERIC): New macro.
26249         (popcount_supported) [_MSC_VER]: New inline function.
26250         (COUNT_ONE_BITS): Use it.  New arg MSC_BUILTIN, for better
26251         performance with MSC.  All uses changed.  Do not assume that TYPE
26252         has at most 64 bits.
26253         * modules/count-one-bits (Depends-on): Do not depend on 'verify'.
26255 2013-10-06  Andrew Borodin  <aborodin@vmail.ru>
26257         mountlist: fix resource leak with MOUNTED_INTERIX_STATVFS
26258         * lib/mountlist.c (read_file_system_list): fix leak of directory
26259         streams in case of #ifdef MOUNTED_INTERIX_STATVFS.
26261 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
26263         tests: improve diagnostic when an assertion fails
26264         * tests/macros.h (ASSERT): Report the assertion that failed.
26266 2013-10-02  Paul Eggert  <eggert@cs.ucla.edu>
26268         verify: new macro 'assume'
26269         This is taken from Emacs, and should be generally useful.
26270         * doc/verify.texi (assume): Document it.
26271         * lib/verify.h (assume): New macro.
26272         (__has_builtin): Expand to 0 if not defined.
26274 2013-09-26  Eric Blake  <eblake@redhat.com>
26276         dup2, dup3: work around another cygwin crasher
26277         * m4/dup2.m4 (gl_FUNC_DUP2): Expose the bug.
26278         * m4/dup3.m4 (gl_FUNC_DUP3): Likewise.
26279         * tests/test-dup2.c (main): Likewise.
26280         * lib/dup2.c (rpl_dup2): Use setdtablesize to avoid it.
26281         * lib/dup3.c (dup3): Likewise.
26282         * doc/posix-functions/dup2.texi (dup2): Document it.
26283         * doc/glibc-functions/dup3.texi (dup3): Likewise.
26285         getdtablesize: work around cygwin issue
26286         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Detect problem.
26287         * modules/getdtablesize (configure.ac): Build replacement.
26288         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set up a witness.
26289         * modules/unistd (Makefile.am): Expose the witness.
26290         * lib/unistd.in.h (getdtablesize): Declare replacement.
26291         * lib/getdtablesize.c (rpl_getdtablesize): Work around it.
26292         * tests/test-getdtablesize.c (main): Test it.
26293         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Document it.
26295 2013-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
26297         pmccabe2html: escaping of special characters
26298         Escape all '<', '>', and '&' in HTML output.
26299         * build-aux/pmccabe2html (html_fnc): Call gsub()
26300         instead of sub() to capture all '<', '>', and '&'.
26301         Neither of '<' and '>' is special in a regexp,
26302         so first arguments to gsub() are corrected. Also,
26303         in replacement strings, ampersand must be escaped.
26304         Finally, '&' must be handled first, then '<' and '>'.
26306 2013-09-24  Eric Blake  <eblake@redhat.com>
26308         manywarnings: enable nicer gcc warning messages
26309         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Older gcc requires
26310         some -f options for optimal warnings.
26312 2013-09-21  Jim Meyering  <meyering@fb.com>
26314         timespec: use the new TIMESPEC_RESOLUTION in a few more places
26315         * lib/timespec-add.c (timespec_add): Also replace 999999999
26316         with TIMESPEC_RESOLUTION - 1.
26317         * lib/timespec-sub.c (timespec_sub): Likewise.
26319 2013-09-23  Paul Eggert  <eggert@cs.ucla.edu>
26321         warnings: port --enable-gcc-warnings to Solaris Studio 12.3
26322         Problem reported by Dagobert Michelsen via Eric Blake in
26323         <http://lists.gnu.org/r/bug-gnulib/2013-09/msg00052.html>.
26324         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use AC_LINK_IFELSE,
26325         not AC_COMPILE_IFELSE.
26327 2013-09-23  Eric Blake  <eblake@redhat.com>
26329         configmake: support new --runstatedir option
26330         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Substitute runstatedir
26331         even if autoconf was too old to provide the command line option.
26332         * modules/configmake (Makefile.am): Propagate it to .h file.
26334 2013-09-22  Paul Eggert  <eggert@cs.ucla.edu>
26336         ctype, string: depend on extern-inline
26337         This is needed to complete the recent OS X fixes.
26338         Also, fix related documentation as suggested by Eric Blake.
26339         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
26340         * doc/posix-functions/isascii.texi, doc/posix-functions/iscntrl.texi:
26341         * doc/posix-functions/isdigit.texi, doc/posix-functions/isgraph.texi:
26342         * doc/posix-functions/islower.texi, doc/posix-functions/isprint.texi:
26343         * doc/posix-functions/ispunct.texi, doc/posix-functions/isspace.texi:
26344         * doc/posix-functions/isupper.texi, doc/posix-functions/isxdigit.texi:
26345         * doc/posix-functions/toascii.texi, doc/posix-functions/tolower.texi:
26346         * doc/posix-functions/toupper.texi:
26347         List the 'ctype' gnulib module.
26348         * doc/posix-functions/strcat.texi, doc/posix-functions/strcpy.texi:
26349         * doc/posix-functions/strncpy.texi:
26350         List the 'string' gnulib module.
26351         * modules/memcpy, modules/memmove, modules/memset (Depends-on):
26352         Add string.
26353         * modules/ctype, modules/string (Depends-on): Add extern-inline.
26355 2013-09-19  Pádraig Brady  <P@draigBrady.com>
26357         userspec: support optional parameters to parse_user_spec()
26358         * lib/userspec.c (parse_user_spec): If the GID param is NULL,
26359         then avoid group processing and treat the full spec as a user.
26360         (parse_with_separator): Allow the USERNAME and GROUPNAME to
26361         be optional params (NULL), in which case they're ignored.
26363 2013-09-19  Paul Eggert  <eggert@cs.ucla.edu>
26365         timespec: new function make_timespec, and new constants
26366         * lib/timespec.h: Incorporate recent changes on the Emacs trunk.
26367         (TIMESPEC_RESOLUTION, LOG10_TIMESPEC_RESOLUTION): New constants.
26368         (make_timespec): New function.
26369         * lib/dtotimespec.c (dtotimespec):
26370         * lib/timespec-add.c (timespec_add):
26371         * lib/timespec-sub.c (timespec_sub):
26372         * lib/utimens.c (validate_timespec):
26373         * lib/utimensat.c (rpl_utimensat):
26374         Use these new constants and functions.
26376         stdio: OS X port of putc_unlocked + extern inline
26377         * lib/stdio.in.h (putc_unlocked): #undef on problematic Apple platforms.
26378         * doc/posix-functions/putc_unlocked.texi:
26379         * doc/posix-functions/putchar_unlocked.texi:
26380         Document this portability problem.
26382         signal: OS X port of sigaddset etc. + extern inline
26383         * lib/signal.in.h (sigaddset, sigdelset, sigemptyset, sigfillset)
26384         (sigismember): #undef on problematic Apple platforms.
26385         * doc/posix-functions/sigaddset.texi:
26386         * doc/posix-functions/sigdelset.texi:
26387         * doc/posix-functions/sigemptyset.texi:
26388         * doc/posix-functions/sigfillset.texi:
26389         * doc/posix-functions/sigismember.texi:
26390         Document this portability problem.
26392         extern-inline: do not always suppress extern inline on OS X
26393         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Suppress the use of
26394         extern inline on Apple only if the particular compile-time
26395         configuration is known to have the problem.
26396         (_GL_EXTERN_INLINE_APPLE_BUG): New private macro, to implement this.
26397         (_GL_EXTERN_INLINE_IN_USE): New macro, intended for use by
26398         other Gnulib modules.
26400         extern-inline: document fixes for ctype and wctype macros
26401         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
26402         * doc/posix-functions/isascii.texi, doc/posix-functions/isblank.texi:
26403         * doc/posix-functions/iscntrl.texi, doc/posix-functions/isdigit.texi:
26404         * doc/posix-functions/isgraph.texi, doc/posix-functions/islower.texi:
26405         * doc/posix-functions/isprint.texi, doc/posix-functions/ispunct.texi:
26406         * doc/posix-functions/isspace.texi, doc/posix-functions/isupper.texi:
26407         * doc/posix-functions/iswalnum.texi, doc/posix-functions/iswalpha.texi:
26408         * doc/posix-functions/iswcntrl.texi, doc/posix-functions/iswctype.texi:
26409         * doc/posix-functions/iswdigit.texi, doc/posix-functions/iswgraph.texi:
26410         * doc/posix-functions/iswlower.texi, doc/posix-functions/iswprint.texi:
26411         * doc/posix-functions/iswpunct.texi, doc/posix-functions/iswspace.texi:
26412         * doc/posix-functions/iswupper.texi, doc/posix-functions/iswxdigit.texi:
26413         * doc/posix-functions/isxdigit.texi, doc/posix-functions/toascii.texi:
26414         * doc/posix-functions/memcpy.texi, doc/posix-functions/memmove.texi:
26415         * doc/posix-functions/memset.texi, doc/posix-functions/stpcpy.texi:
26416         * doc/posix-functions/stpncpy.texi, doc/posix-functions/strcat.texi:
26417         * doc/posix-functions/strcpy.texi, doc/posix-functions/strncat.texi:
26418         * doc/posix-functions/strncpy.texi:
26419         * doc/posix-functions/tolower.texi, doc/posix-functions/toupper.texi:
26420         * doc/posix-functions/towlower.texi, doc/posix-functions/towupper.texi:
26421         Document that Gnulib fixes portability problems with these
26422         functions on OS X 10.8 and earlier when called from plain inline
26423         or extern inline functions.
26425 2013-09-17  Kevin Cernekee  <cernekee@gmail.com>
26427         fflush, freadahead, fseeko: Fix for Android
26428         Suggested by Bruno Haible in:
26429         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00306.html>
26430         * lib/stdio-impl.h: Use local __sfileext definition.
26432 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>
26434         pmccabe2html: Portability to other awk versions.
26435         The functions systime() and strftime() are available
26436         in Gawk only.  Properly close two HTML-tags 'style'
26437         and 'span'.
26438         * build-aux/pmccabe2html (BEGIN): Store timing
26439         strings in EPOCH_TIME and CHRONOS_TIME.  Replace
26440         systime() in HTML_COMMENT.
26441         (html_header): Correctly close tag 'style'.
26442         (END): Replace strftime() by CHRONOS_TIME.  Close
26443         tag 'span' correctly, not as 'div'.
26445 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
26447         getgroups: statement without effect
26448         * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]:
26449         Change equality conditional to expected assignment.
26451 2013-09-09  Eric Blake  <eblake@redhat.com>
26453         glob: fix compilation
26454         * lib/glob.in.h (__THROW): Fix missing line in previous commit.
26456 2013-09-07  Eric Blake  <eblake@redhat.com>
26458         glob: fix build for platforms without __THROW
26459         * lib/glob.in.h (__THROW): Add definition again.
26461 2013-09-04  Anton Ovchinnikov  <revolver112@gmail.com>  (tiny change)
26463         regex-quote: fix buffer access out of bounds
26464         http://lists.gnu.org/r/bug-gnulib/2013-09/msg00001.html
26465         * lib/regex-quote.c (regex_quote_spec_pcre):
26466         Fix typo that resulted in an out-of-bounds read.
26468 2013-09-04  Eric Blake  <eblake@redhat.com>
26470         glob: avoid -Wattribute warnings on glibc
26471         * lib/glob.c (next_brace_sub, prefix_array, collated_compare): Use
26472         __THROWNL, not __THROW, on static functions.
26473         * lib/glob.in.h (__THROW): Adjust...
26474         (__THROWNL): ...accordingly.
26476 2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>
26478         headers: check that _GL_INLINE_HEADER_BEGIN is defined
26479         Suggested by Bruce Korb in:
26480         http://lists.gnu.org/r/bug-gnulib/2013-08/msg00070.html
26481         * doc/extern-inline.texi (extern inline):
26482         Suggest checking that _GL_INLINE_HEADER_BEGIN is defined.
26483         * lib/acl-internal.h, lib/argp-fmtstream.h, lib/argp.h:
26484         * lib/binary-io.h, lib/bitrotate.h, lib/count-leading-zeros.h:
26485         * lib/count-one-bits.h, lib/eealloc.h, lib/execinfo.in.h:
26486         * lib/gethrxtime.h, lib/gl_list.h, lib/gl_oset.h, lib/gl_xlist.h:
26487         * lib/gl_xoset.h, lib/gl_xsublist.h, lib/glthread/cond.h:
26488         * lib/glthread/thread.h, lib/math.in.h, lib/mbchar.h, lib/mbfile.h:
26489         * lib/mbiter.h, lib/mbuiter.h, lib/openat.h, lib/pipe-filter-aux.h:
26490         * lib/priv-set.h, lib/pthread.in.h, lib/savewd.h, lib/se-context.in.h:
26491         * lib/se-selinux.in.h, lib/sig-handler.h, lib/stat-time.h:
26492         * lib/sys_socket.in.h, lib/timespec.h, lib/u64.h, lib/unistd.in.h:
26493         * lib/utimens.h, lib/wctype.in.h, lib/xalloc.h, lib/xsize.h:
26494         * lib/xtime.h:
26495         Check that _GL_INLINE_HEADER_BEGIN is defined.
26497 2013-08-29  Pádraig Brady  <P@draigBrady.com>
26499         bootstrap: remove the --version requirement from ancillary tools
26500         * build-aux/bootstrap (check_exists): A new refactored function to
26501         determine if a command exists.
26502         (find_tool): Use the new function which does not require the
26503         --version option to be supported.
26504         (check_versions): Use the new function.
26506 2013-08-26  Simon Josefsson  <simon@josefsson.org>
26508         gc: support HMAC-SHA256 and HMAC-SHA512.
26509         * lib/gc.h: Add gc_hmac_sha256 and gc_hmac_sha512.
26510         * lib/gc-libgcrypt.c (gc_hmac_sha256, gc_hmac_sha512): New
26511         functions.
26512         (gc_hmac_md5): Use symbolic constant.
26513         * lib/gc-gnulib.c: Include hmac.h for HMAC-SHA256/512 too.
26514         (gc_hmac_sha256, gc_hmac_sha512): New functions.
26515         * lib/hmac.h: Add hmac_sha256 and hmac_sha512 prototypes.
26516         * m4/sha256.m4: Protect against empty expansion.
26517         * m4/sha512.m4: Likewise.
26518         * lib/hmac-sha256.c: New file.
26519         * lib/hmac-sha512.c: Likewise.
26520         * m4/gc-hmac-sha256.m4: Likewise.
26521         * m4/gc-hmac-sha512.m4: Likewise.
26522         * m4/gc-sha256.m4: Likewise.
26523         * m4/gc-sha512.m4: Likewise.
26524         * modules/crypto/gc-hmac-sha256: Likewise.
26525         * modules/crypto/gc-hmac-sha256-tests: Likewise.
26526         * modules/crypto/gc-hmac-sha512: Likewise.
26527         * modules/crypto/gc-hmac-sha512-tests: Likewise.
26528         * modules/crypto/hmac-sha256: Likewise.
26529         * modules/crypto/hmac-sha256-tests: Likewise.
26530         * modules/crypto/hmac-sha512: Likewise.
26531         * modules/crypto/hmac-sha512-tests: Likewise.
26532         * tests/test-gc-hmac-sha256.c: Likewise.
26533         * tests/test-gc-hmac-sha512.c: Likewise
26534         * tests/test-hmac-sha256.c: Likewise.
26535         * tests/test-hmac-sha512.c: Likewise
26537 2013-08-24  Daiki Ueno  <ueno@gnu.org>
26539         * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse
26540         of AC_CHECK_DECLS.
26542 2013-08-23  Paul Eggert  <eggert@cs.ucla.edu>
26544         selinux-at: omit unnecessary include
26545         * lib/selinux-at.c: Don't include dosname.h; not needed, since
26546         this source file doesn't use its macros, and subsidiary files that
26547         use the macros already include it.
26549 2013-08-21  Eric Blake  <eblake@redhat.com>
26551         d-ino: avoid false negative on symlink
26552         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
26553         Reported by Stephane Chazelas.
26555 2013-08-12  Mike Miller  <mtmiller@ieee.org>  (tiny change)
26557         bootstrap: port to OpenBSD sed
26558         * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which
26559         does not interpret `-' as a file argument to mean stdin.
26561 2013-08-15  Eric Blake  <eblake@redhat.com>
26563         warnings: minor optimization
26564         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use fewer processes.
26566         warnings: check -Wfoo rather than -Wno-foo
26567         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): If name begins with
26568         -Wno-, test if the compiler recognizes the positive form instead.
26570 2013-08-15  Karl Berry  <karl@gnu.org>
26572         * config/srclist-update: add option "doclicense" to placate
26573         pulling *.texi files from Emacs.  Write terse usage
26574         documentation at the top.
26576 2013-08-13  Paul Eggert  <eggert@cs.ucla.edu>
26578         xvasprintf-tests: port to GCC with hardening flags
26579         * tests/test-xvasprintf.c (test_xasprintf): Pass another arg to
26580         xasprintf, to pacify GCC.  Reported by Santiago Vila in:
26581         http://lists.gnu.org/r/bug-diffutils/2013-08/msg00002.html
26583 2013-08-11  Paul Eggert  <eggert@cs.ucla.edu>
26585         fpending: port to recent Cygwin change to stdio_ext.h
26586         Reported by LRN in
26587         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00028.html>.
26588         * lib/fpending.h: Don't worry about HAVE_DECL___FPENDING;
26589         just declare __fpending unless it's a macro.
26590         A duplicate decl shouldn't hurt.
26591         * m4/fpending.m4 (gl_FUNC_FPENDING): Check that an __fpending
26592         call compiles and links, instead of separately checking for
26593         decl and lib function.
26594         * modules/fpending (configure-ac):
26595         Adjust to fpending.m4's renaming of shell variable.
26597 2013-08-10  Paul Eggert  <eggert@cs.ucla.edu>
26599         sys_time: port to OpenBSD
26600         * lib/sys_time.in.h: Simply delegate to the system's header
26601         in the BSDish cases as well.  Problem reported by Mike Miller in
26602         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00016.html>.
26603         * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type):
26604         Allow platforms like 64-bit OpenBSD where timeval's tv_sec is
26605         wider than time_t.
26607 2013-08-09  Pádraig Brady  <P@draigBrady.com>
26609         bootstrap: support checksum utils having -c but not --status
26610         * build-aux/bootstrap: Only look for sha1sum if updating po files.
26611         Add sha1 to the list of supported checksum utils since it's now
26612         supported through adjustments below.
26613         (update_po_files): Remove the use of --status
26614         in a way that will suppress all error messages, but since this is
26615         only used to minimize updates, it shouldn't cause an issue.
26616         Exit early if there is a problem updating the po file checksums.
26617         (find_tool): Remove the check for --version support as this
26618         is optional as per commit 86186b17.  Don't even check for the
26619         presence of the command as if that is needed, it's supported
26620         through configuring prerequisites in bootstrap.conf.
26621         Prompt that when a tool isn't found, one can define an environment
26622         variable to add to the hardcoded search list.
26624 2013-08-05  Jim Meyering  <meyering@fb.com>
26626         regex: port to non-glibc/lock-using systems
26627         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
26628         system with GNULIB_LOCK would fail due to absence of the
26629         included "glthread/lock.h".  This would affect any package
26630         for which the "lock" module is used only by the regex module,
26631         and not explicitly used.
26632         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
26633         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
26634         Add a dependency on the "lock" module.
26636 2013-07-20  Daiki Ueno  <ueno@gnu.org>
26638         localecharset: make locale_charset thread-safe on Mac OS X
26639         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
26640         instead of MB_CUR_MAX.
26642 2013-07-20  Daiki Ueno  <ueno@gnu.org>
26644         gettext: update to version 0.18.3
26645         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
26646         require AC_PROG_SED to allow user to specify custom sed command when
26647         generating en@quot PO file.
26649 2013-07-18  Werner Lemberg  <wl@gnu.org>  (tiny change)
26651         bootstrap: use correct source when copying build-aux files
26652         * build-aux/bootstrap (gnulib_extra_files): This variable is
26653         relative to upstream gnulib layout, not downstream.
26655 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
26657         tmpdir: fix bug in VMS port
26658         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
26659         See Steven M. Schweda in
26660         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00026.html>.
26662 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
26664         tmpdir: port to VMS, to // != /, and to long dirs
26665         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
26666         __secure_getenv, so that we're more like the glibc version.
26667         All uses changed.
26668         (path_search): Don't put slash after directory if __VMS.
26669         Problem reported by Steven M. Schweda in
26670         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00019.html>.
26671         Simplify code to add slash; no need for a loop.
26672         Do not remove trailing slash from "//".
26673         Do not assume dlen <= INT_MAX.
26675 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
26677         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
26678         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
26679         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
26680         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00015.html>.
26682         accept4, dup3, pipe2: port to Cygwin
26683         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
26684         * lib/accept4.c (accept4) [O_BINARY]:
26685         * lib/dup3.c (dup3) [O_BINARY]:
26686         * lib/pipe2.c (pipe2) [O_BINARY]:
26687         Use set_binary_mode, not setmode.
26688         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
26689         * modules/binary-io (Depends-on): Remove module indicator.
26690         These last two bits undo the previous change to pipe2 and binary-io.
26692 2013-07-09  Pádraig Brady  <P@draigBrady.com>
26694         mountlist: add support for deallocating returned list entries
26695         * lib/mountlist.c (free_mount_entry): A new exported function
26696         to deallocate a mount list entry.
26697         (read_file_system_list): Refactor to use the new deallocation function.
26698         Suggested by Anton Ovchinnikov.
26700 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
26702         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
26703         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
26704         * lib/stdalign.in.h (_Alignas, _Alignof):
26705         Port to FreeBSD 9.1, and to C11 and C++11.
26706         (_Alignas): Also support ICC.
26707         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
26708         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
26710 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
26712         fnmatch: don't goto over declaration
26713         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
26714         undefined behavior for goto over a declaration.
26715         Problem reported by Charlie Brown in
26716         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00009.html>.
26718         pipe2: decouple from binary-io a bit
26719         This is for Emacs, which needs pipe2 but not binary-io.
26720         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
26721         * modules/binary-io (Depends-on): Add module indicator.
26723 2013-07-03  Eric Blake  <eblake@redhat.com>
26725         mgetgroups: relax license to LGPLv2+
26726         * modules/getugroups (License): Change from GPLv3+.
26727         * modules/mgetgroups (License): Likewise.
26728         * modules/getgroups (License): Change from LGPLv3+.
26730         xalloc-oversized: relax license to LGPLv2+
26731         * modules/xalloc-oversized (License): Change from GPLv3+.
26733         nproc: relax license to LGPLv2+
26734         * modules/nproc (License): Change from LGPLv3+.
26736         bootstrap: honor --no-git
26737         * build-aux/bootstrap: Don't even try to use git when user is
26738         pointing to a static checkout.
26740 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
26742         ignore-value: port to gcc -pedantic
26743         * lib/ignore-value.h (ignore_value):
26744         Port to gcc -pedantic, by using __extension__.
26745         Reindent as per usual gnulib style nowadays.
26746         Simplify GCC version check.
26748 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
26750         extern-inline: port to gcc -std=c89
26751         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
26752         Do not use __gnu_inline__ if pedantic and pre-C99.
26754 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
26756         doc: document extern-inline
26757         * doc/extern-inline.texi: New file.
26758         * doc/gnulib.texi (alloca-opt): Include it.
26759         * m4/extern-inline.m4: Move some comments to documentation,
26760         and others closer to what they describe.
26762         doc: chatter less
26763         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
26764         (updated-stamp): Use it.  This causes 'make' to output just
26765         one file name rather than zillions.
26767         fflush, fseeko: port to musl cross-compiles
26768         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
26769         on some implementation that (1) is not known to be buggy,
26770         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
26771         cross-compiled to so we can't easily check for lack of
26772         conformance.  This is for cross-compiling to musl.
26773         Reported by Rich Felker in
26774         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00043.html>.
26775         * m4/fclose.m4 (gl_FUNC_FCLOSE):
26776         * m4/fflush.m4 (gl_FUNC_FFLUSH):
26777         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
26778         Adjust to above change.
26779         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
26780         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
26781         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
26782         known not to work, or unknown.
26784 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
26786         msvc-inval: port to mingw-w64
26787         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
26788         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
26789         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00039.html>.
26791 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
26793         getcwd-lgpl: port to Tru64
26794         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
26795         Problem reported by Steven M. Schweda in
26796         <http://lists.gnu.org/r/bug-gzip/2013-06/msg00010.html>.
26798         tests: port large-fd POSIX spawn tests to OS X
26799         Problem reported by Daiki Ueno in
26800         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00031.html>.
26801         * tests/test-posix_spawn_file_actions_addclose.c:
26802         * tests/test-posix_spawn_file_actions_adddup2.c:
26803         * tests/test-posix_spawn_file_actions_addopen.c:
26804         Include <limits.h>, for OPEN_MAX, if available.
26805         (big_fd): New static function.
26806         (main): Use it.
26808 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
26810         tests/nap.h: use an adaptive delay to avoid ctime update issues
26811         The recent change in nap.h (5191133e) decreased the probability of lost
26812         races to about a third, however such problems could still be observed
26813         in virtual machines and openSUSE's OBS.
26814         Before, nap() detected the needed time once empirically and then used
26815         that delay (together with a small correction multiplier) in further
26816         calls.  This problem has been reported and discussed several times,
26817         including guesses about possible kernel issues:
26818         https://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html
26819         http://lists.gnu.org/r/coreutils/2012-03/msg00088.html
26820         https://lists.gnu.org/r/bug-gnulib/2011-11/msg00226.html
26821         http://bugs.gnu.org/12820
26822         https://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html
26823         https://lists.gnu.org/r/bug-gnulib/2009-11/msg00007.html
26824         Now, nap() avoids the race alltogether by verifying on a reference
26825         file whether a timestamp difference has happened.
26826         * tests/nap.h (nap_fd): Define file descriptor variable for the
26827         witness file.
26828         (nap_works): Change return value to bool.  Change passing
26829         the old file's status by value instead of by reference as this function
26830         does no longer update that timestamp; rename the function argument from
26831         st to old_st.  Remove the local variables cdiff and mdiff because that
26832         function now returns true/false instead of the precise delay.
26833         (guess_delay): Remove function.
26834         (clear_tmp_file): Add new function to close and unlink the witness file.
26835         (nap): Instead of re-using the delay which has been calculated during
26836         the first call, avoid the race by actually verifying that a timestamp
26837         difference can be observed on the current file system.  Use an adaptive
26838         approach for the delay to minimize execution time.  Assert that the
26839         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
26840         = 2^31 - 1 = 2.1s.
26841         Use atexit to call clear_tmp_file when the process terminates.
26843 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
26845         sig2str: port to C++
26846         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
26847         Reported by Daniel J Sebald in
26848         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00000.html>.
26850 2013-05-30  Eric Blake  <eblake@redhat.com>
26852         docs: mention cygwin shortcoming in <sys/un.h>
26853         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
26855         vasnprintf: silence mingw compiler warning
26856         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
26858 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
26860         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
26861         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
26862         This fixes a porting bug I recently reintroduced in regex, and
26863         some other instances that I discovered while testing the fix.
26864         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
26865         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
26866         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
26867         with an empty argument if this is a pedantic pre-C99 GCC.
26868         * lib/verify.h: Do not use _Static_assert if this is a pedantic
26869         pre-C11 GCC.
26871         regex: adapt to locking regime instead of depending on pthread
26872         Instead of depending on pthread, adapt to whatever thread
26873         modules are in use.  Problem reported by Ludovic Courtès in
26874         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00082.html>
26875         and by Mats Erik Andersson in
26876         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00100.html>.
26877         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
26878         Support either the 'lock' module, or the 'pthread' module, or
26879         no module.
26880         (lock_lock, lock_unlock): New macros.
26881         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
26882         * modules/lock, modules/pthread (configure.ac): Add module indicator.
26883         * modules/regex (Depends-on): Remove pthread.
26885 2013-05-22  Eric Blake  <eblake@redhat.com>
26887         getgroups: document portability issues
26888         * doc/glibc-functions/initgroups.texi (initgroups): Mention
26889         multithread safety.
26890         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
26891         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
26892         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
26893         getugroups.
26894         * doc/posix-functions/getgroups.texi (getgroups): Mention
26895         multithread safety and mgetgroups.
26897 2013-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
26899         test-lchown, test-chown: also skip test if chown fails with EPERM
26900         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
26901         skip this test, to handle FAT file systems.
26902         * tests/test-chown.h (test_chown): Likewise.
26904 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
26906         regex: fix dfa race in multithreaded uses
26907         Problem reported by Ludovic Courtès in
26908         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00058.html>.
26909         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
26910         New macros.  All uses of __libc_lock_define, __libc_lock_init
26911         changed to use the first two of these.
26912         (__libc_lock_lock, __libc_lock_unlock): New macros, for
26913         non-glibc platforms.
26914         (struct re_dfa_t): Define the lock unconditionally.
26915         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
26916         '#ifdef _LIBC"s.
26917         * modules/regex (Depends-on): Add pthread, if we use the
26918         included regex.
26920         * lib/regcomp.c: Do actions that are not needed for glibc,
26921         but may be needed elsewhere.
26922         (regfree, re_compile_internal): Destroy the lock.
26923         (re_compile_internal): Check for lock-initialization failure.
26925         malloca: port to compilers that reject size-zero arrays
26926         This fixes a bug introduced in my previous patch.
26927         * lib/malloca.c (struct preliminary_header): Use an int
26928         rather than a character array of size int; that's simpler.
26929         (struct header): Remove, replacing with ...
26930         (union header): New type.  This avoids the need for declaring a
26931         character array of size zero, which is not allowed on some platforms.
26932         All uses changed.
26934 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
26936         parse-datetime, tests: don't use "string" + int
26937         Recent versions of 'clang' complain about C source code that
26938         uses expressions of the form '"string literal" + integer',
26939         I guess on the theory that it's confusing for readers who are
26940         used to C++.  On those grounds I suppose it's OK to make this
26941         minor style change.
26942         * lib/parse-datetime.y (parse_datetime):
26943         * tests/test-fchdir.c (main):
26944         * tests/test-snprintf-posix.h (test_function):
26945         * tests/test-snprintf.c (main):
26946         * tests/test-vasnprintf-posix.c (test_function):
26947         * tests/test-vasnprintf.c (test_function):
26948         * tests/test-vsnprintf.c (main):
26949         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
26950         Rewrite '"str" + E' to '&"str"[E]'.
26952 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
26954         argmatch: port to C++
26955         * lib/argmatch.h [__cplusplus]: Add extern "C".
26957         argp: typo fix
26958         * lib/argp-help.c: Typo in comment.
26960 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
26962         manywarnings: update for GCC 4.8.0
26963         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
26964         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
26965         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
26966         -Wmissing-noreturn, as they are duplicates of other warnings.
26967         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
26968         was documented to be flaky in earlier versions of GCC.
26970         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
26971         * tests/test-spawn.c (main):
26972         * tests/test-sys_socket.c (main):
26973         * tests/test-sys_wait.c (main):
26974         Don't have a switch value that isn't covered by a case.
26976         getaddrinfo-tests: port --enable-gcc-warnings to clang
26977         * tests/test-getaddrinfo.c (simple):
26978         Avoid casts from looser to stricter-aligned pointers.
26980         thread: port --enable-gcc-warnings to clang
26981         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
26982         Include <signal.h>, to pacify a warning about pthread_sigmask.
26984         stdio: use __REDIRECT for fwrite, fwrite_unlocked
26985         * lib/stdio.in.h (fwrite):
26986         When working around bug 11959, use __REDIRECT rather than '#define
26987         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
26988         fix the -Wunused-value issue with clang, and it works with GCC too.
26989         Problem with targeting reported by Eric Blake in
26990         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00067.html>.
26991         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
26992         debugging the fwrite issue.
26994         stdio: port --enable-gcc-warnings to clang
26995         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
26996         since the GCC workaround for fwrite does not pacify clang.
26998         sig2str: port --enable-gcc-warnings to clang
26999         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
27001         obstack: port --enable-gcc-warnings to clang
27002         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
27003         Avoid casts from looser to stricter-aligned pointers.
27005         memchr2: port --enable-gcc-warnings to clang
27006         * lib/memchr2.c (memchr2):
27007         Avoid casts from looser to stricter-aligned pointers.
27009         mbsstr: port --enable-gcc-warnings to clang
27010         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
27011         Avoid casts from looser to stricter-aligned pointers.
27013         malloca: port --enable-gcc-warnings to clang
27014         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
27015         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
27017         inttostr: port --enable-gcc-warnings to clang
27018         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
27020         warnings: port to clang
27021         Problem reported by Daniel P. Berrange via Eric Blake in
27022         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00055.html>.
27023         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
27024         (gl_WARN_ADD): Use it.
27026 2013-05-11  Jim Meyering  <meyering@fb.com>
27028         quotearg: do not read beyond end of buffer
27029         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
27030         end of an ARG for which no length was specified.  With an N-byte
27031         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
27032         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
27033         via coreutils' misc/sort-debug-keys.sh test and detected by running
27034         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
27035         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
27036         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
27037         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
27038         characters correctly."
27040 2013-05-11  Daiki Ueno  <ueno@gnu.org>
27042         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
27043         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
27044         compilation target is Mac OS X 10.6.
27045         Problem reported by parafin and Andoni Morales in
27046         <http://savannah.gnu.org/bugs/?37844> and
27047         <http://lists.gnu.org/r/bug-gettext/2013-05/msg00007.html>.
27049 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
27051         mkdir-p: remove assumptions about umask and mode
27052         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
27053         umask is 0, or that MODE is a subset of MODE_BITS.
27055 2013-05-10  Eric Blake  <eblake@redhat.com>
27057         maint.mk: catch more abuse of HAVE_DECL in syntax-check
27058         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
27060 2013-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
27062         deps: require Automake >= 1.9.6 in generated Makefile fragments
27064         That is the same minimal version required in the DEPENDENCIES file.
27065         Moreover, the old code generated a requirement of Automake >= 1.5,
27066         and that is an insanely outdated version.
27068         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
27069         * tests/havelib/rpathlx/Makefile.am: Likewise.
27070         * tests/havelib/rpathly/Makefile.am: Likewise.
27071         * tests/havelib/rpathlyx/Makefile.am: Likewise.
27072         * tests/havelib/rpathlz/Makefile.am: Likewise.
27073         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
27074         * tests/havelib/rpathx/Makefile.am: Likewise.
27075         * tests/havelib/rpathy/Makefile.am: Likewise.
27076         * tests/havelib/rpathz/Makefile.am: Likewise.
27078 2013-05-08  Eric Blake  <eblake@redhat.com>
27080         bootstrap: AC_INIT may have more than four parameters
27081         * build-aux/bootstrap (extract_package_name): Correctly extract
27082         non-empty tarname field.  Avoid range in regex.
27083         Based on a report by Sami Kerola <kerolasa@iki.fi>.
27085 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
27087         qacl: port to MS-Windows port of GNU Emacs
27088         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
27089         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
27090         port of GNU Emacs.  Problem reported by Eli Zaretskii in
27091         <http://bugs.gnu.org/14295#14>.
27093 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
27095         acl: include quote.h
27096         * lib/copy-acl.c: Include quote.h.
27097         * lib/set-acl.c: Likewise.
27099 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
27101         fchownat, renameat, unlinkat: update statat dependencies
27102         These modules use statat and lstatat, not fstatat; so depend on
27103         the statat module, which was split out recently from fstatat.
27104         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
27105         * modules/renameat: Likewise.  Also delete fstat.
27106         URL: http://bugs.gentoo.org/468790
27108 2013-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
27110         Assume gnulib is checked out from Git, not CVS
27112         In fact, access to the gnulib repository through CVS has been
27113         disabled, or more precisely, got broken and was never restored; see:
27114         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00008.html>
27116         Note that support for CVS is not removed completely and unthinkingly
27117         by this change: only support for CVS checkouts of gnulib itself is
27118         removed.  For example, the 'bootstrap' script still cater to .cvsingore
27119         files and CVS directories, for the benefit of those poor gnulib clients
27120         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
27122         * gnulib-tool: Simplify accordingly.
27123         * posix-modules: Likewise.
27124         * MODULES.html.sh: Likewise.
27125         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
27126         repository.
27127         * doc/gnulib-intro.texi: Likewise.
27128         * doc/gnulib-readme.texi: Likewise.
27129         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
27130         sample '.gitignore' file rather than a sample '.cvsignore'.
27131         * NEWS: Update.
27132         * m4/extensions.m4: While at it, remove a comment mistakenly referring
27133         to "CVS Autoconf" rather than "git Autoconf".
27135 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
27137         utimensat-tests, etc.: try to fix some races
27138         Problem reported by Bernhard Voelker in
27139         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html>.
27140         I don't know whether this patch fixes that race condition, but it
27141         fixes *some* race conditions, so it should be a win.
27142         * modules/chown-tests (Depends-on):
27143         * modules/fchownat-tests (Depends-on):
27144         * modules/fdutimensat-tests (Depends-on):
27145         * modules/futimens-tests (Depends-on):
27146         * modules/lchown-tests (Depends-on):
27147         * modules/stat-time-tests (Depends-on):
27148         * modules/utimens-tests (Depends-on):
27149         * modules/utimensat-tests (Depends-on):
27150         Depend on nanosleep, not usleep.
27151         * modules/chown-tests (test_chown_LDADD):
27152         * modules/lchown-tests (test_lchown_LDADD):
27153         * modules/stat-time-tests (test_stat_time_LDADD):
27154         New macro.
27155         * modules/fchownat-tests (test_fchownat_LDADD):
27156         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
27157         * modules/futimens-tests (test_futimens_LDADD):
27158         * modules/utimens-tests (test_utimens_LDADD):
27159         * modules/utimensat-tests (test_utimensat_LDADD):
27160         Add $(LIB_NANOSLEEP).
27161         * modules/stat-time-tests (Files): Add tests/nap.h.
27162         * tests/nap.h: Include <limits.h>, for INT_MAX.
27163         (lt_mtime): Remove.
27164         (diff_timespec): New function.
27165         (get_stat): Rename from get_mtime.  All callers changed.
27166         (nap_works): Determine the needed delay by inspecting the
27167         file system's timestamp jumps; this should be more reliable.
27168         Look at both mtime and ctime, and take the maximum of the two jumps.
27169         (nap_works, guess_delay):
27170         Return a nanosecond count, not a microsecond count.
27171         All callers changed.
27172         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
27173         failure.
27174         (nap): Multiply the guess by 1.125, to accommodate the case where
27175         the file system's clock is a bit slower than nanosleep's clock.
27176         * tests/test-stat-time.c (BASE): New macro.
27177         Include nap.h.
27178         (nap): Remove; nap.h now defines this.  This removes a duplicate
27179         implementation of 'nap'.
27181         utimens, utimensat: work around Solaris UTIME_OMIT bug
27182         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
27183         Linux kernel 2.6.32 does.  Work around it in the same way.
27184         * doc/posix-functions/futimens.texi (futimens):
27185         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
27186         * lib/utimens.c (fdutimens, lutimens):
27187         * lib/utimensat.c (rpl_utimensat): Work around the bug.
27189         gettext: now it's your responsibility to add -I$(top_builddir)/intl
27190         Formerly, it was your responsibility to do this for all Makefile.ams
27191         other than Gnulib's.  Now it's your responsibility to do it for
27192         Gnulib's Makefile.am, too.
27193         * NEWS: Document this.
27194         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
27196         acl: include errno.h to get errno
27197         Reported by Daiki Ueno in
27198         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00073.html>.
27199         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
27201 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
27203         tests: don't assume getdtablesize () <= 10000000
27204         * modules/cloexec-tests:
27205         * modules/dup2-tests:
27206         * modules/dup3-tests:
27207         * modules/nonblocking-tests:
27208         * modules/posix_spawn_file_actions_addclose-tests:
27209         * modules/posix_spawn_file_actions_adddup2-tests:
27210         * modules/posix_spawn_file_actions_addopen-tests:
27211         * modules/unistd-safer-tests:
27212         Depend on the getdtablesize module.
27213         * tests/test-cloexec.c:
27214         * tests/test-dup-safer.c:
27215         * tests/test-dup2.c:
27216         * tests/test-dup3.c:
27217         * tests/test-fcntl.c:
27218         * tests/test-nonblocking.c:
27219         * tests/test-posix_spawn_file_actions_addclose.c:
27220         * tests/test-posix_spawn_file_actions_adddup2.c:
27221         * tests/test-posix_spawn_file_actions_addopen.c:
27222         Don't assume getdtablesize () <= 10000000.
27224 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
27226         extern-inline: work around bug in Sun c99
27227         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
27228         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
27230 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
27232         qacl: new module, broken out from the acl module
27233         This is for GNU Emacs, which wants the acl functions but does
27234         not want 'error' invoked when they fail.
27235         * lib/acl-internal.h: Do not include error.h, quote.h.
27236         (ENOSYS, ENOTSUP): Remove; no longer needed.
27237         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
27238         * lib/acl.h: Include <stdbool.h>.
27239         (acl_errno_valid): New function.
27240         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
27241         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
27242         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
27243         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
27244         (ACL_INTERNAL_INLINE): Remove; no longer needed.
27245         * lib/file-has-acl.c (file_has_acl):
27246         * lib/qcopy-acl.c (qcopy_acl):
27247         * lib/qset-acl.c (qset_acl):
27248         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
27249         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
27250         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
27251         lib/file-has-acl.c, m4/acl.m4 to qacl module.
27252         Add lib/set-acl.c.
27253         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
27254         Add qacl.
27255         (configure.ac): Move gl_FUNC_ACL to qacl module.
27256         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
27257         Rename set-mode-acl.c to set-acl.c.
27258         * lib/acl-errno-valid.c: New file.
27259         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
27260         copy_acl function remains in copy-acl.c.
27261         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
27262         (_): Remove; not needed.
27263         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
27264         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
27265         * modules/qacl: New file, moved from the old modules/acl.
27266         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
27267         Remove set-mode-acl.c, copy-acl.c.
27268         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
27270         alignof, intprops, malloca: port better to IBM's C compiler
27271         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
27272         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
27273         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
27275 2013-04-25  Daiki Ueno  <ueno@gnu.org>
27277         wctype-h: fix gettext link error on mingw
27278         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
27279         <https://lists.gnu.org/r/bug-gettext/2013-03/msg00086.html>.
27280         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
27281         rpl_towupper and rpl_towupper.
27283 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
27285         regex-tests, regex: allow glibc re_search behavior
27286         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
27287         re_search input data to make the multi-character collating element
27288         in it clearly visible, and treat re_search return code 0 as valid.
27289         * m4/regex.m4 (gl_REGEX): Likewise.
27291 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
27293         stdalign: doc fix
27294         * doc/posix-headers/stdalign.texi (stdalign.h):
27295         Gnulib doesn't support '_Alignof expr'.
27297 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
27299         stdalign: port to stricter ISO C11
27300         ISO C11 says that _Alignof's operand must be a parenthesized type.
27301         Problem reported by Eli Zaretskii in
27302         <http://lists.gnu.org/r/emacs-devel/2013-03/msg00960.html>.
27303         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
27304         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
27306 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
27308         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
27309         Problem reported by Marco Atzeri in
27310         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00000.html>.
27311         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
27312         Simply delegate to the system <sys/select.h> in this case too.
27313         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
27314         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
27315         be needed on Solaris either.
27316         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
27317         Simply delegate to the system <sys/time.h> in this case.
27319 2013-03-19  Karl Berry  <karl@gnu.org>
27321         * build-aux/gnupload: check for erroneous (with gnupload) use of
27322         ftp-upload.gnu.org, tweak help.
27324 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
27326         copy-file, rpmatch: fix problems found by cppcheck
27327         Reported by Arno Onken in
27328         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00069.html>.
27329         * lib/rpmatch.c (try): Fix memory leak.
27330         * lib/copy-file.c: Include "ignore-value.h".
27331         (qcopy_file_preserving): Ignore chown value.
27332         * modules/copy-file (Depends-on): Add ignore-value.
27334 2013-01-27  Jim Meyering  <jim@meyering.net>
27336         prefix-gnulib-mk: give better diagnostics
27337         * build-aux/prefix-gnulib-mk: Don't just "die".
27338         Give better diagnostics upon failure.
27340 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
27342         putenv: port to Solaris 10
27343         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
27344         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
27345         is not what is wanted here.
27346         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
27347         declaration, not for its existence.
27349 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
27351         mktime: fix configure typo
27352         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
27354 2013-03-12  Eric Blake  <eblake@redhat.com>
27356         regex-tests: skip UTF-8 test on mingw
27357         * modules/regex-tests (Depends-on): Add localcharset.
27358         * tests/test-regex.c (main): Use it to skip test on mingw.
27360 2013-03-11  Eric Blake  <eblake@redhat.com>
27362         tests: make it easier to bypass alarm time in debugger
27363         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
27364         * tests/test-memmem.c (main): Likewise.
27365         * tests/test-passfd.c (main): Likewise.
27366         * tests/test-ptsname.c (main): Likewise.
27367         * tests/test-ptsname_r.c (main): Likewise.
27368         * tests/test-strcasestr.c (main): Likewise.
27369         * tests/test-strstr.c (main): Likewise.
27371         regex: port to mingw's recent addition of undeclared alarm
27372         * doc/posix-functions/alarm.texi (alarm): Document that alarm
27373         exists but still doesn't work in newer mingw.
27374         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
27375         not existence.  Ensure SIGALRM is not trapped.
27376         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
27377         * m4/regex.m4 (gl_REGEX): Likewise.
27378         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
27379         * tests/test-regex.c (main): Use correct probe for alarm.
27381         putenv: avoid compilation warning on mingw
27382         * lib/putenv.c (_unsetenv): Protect variable declaration.
27383         (putenv): Fix indentation.
27385 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
27387         unistd: don't prevent Tru64 Unix from using gnulib strtod.
27388         * lib/unistd.in.h: be careful not to include un-needed system
27389         stdlib.h from here, because that prevents gnulib stdlib.h from
27390         defining rpl_strtod correctly.
27392 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
27394         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
27395         changesets, but for the 'precision 0' test.
27396         * tests/test-vasprintf-posix.c (test_function): Don't insist on
27397         round-to-even, since POSIX says rounding is implementation-defined
27398         and OS X 10.8.2 rounds 1.51 to 1 here.
27400         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
27401         changeset.
27402         * tests/test-vasprintf-posix.c (test_function): Don't insist on
27403         round-to-even, since POSIX says rounding is implementation-defined
27404         and OS X 10.8.2 rounds 1.5 to 1 here.
27406 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
27408         vasnprintf-posix-tests: allow rounding 1.5 to 1
27409         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
27410         round-to-even, since POSIX says rounding is implementation-defined
27411         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
27412         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00019.html>.
27414         bootstrap: port to FreeBSD
27415         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
27416         that treat '--' differently.  Reported by Mats Erik Andersson in
27417         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00012.html>.
27419 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
27421         regex: rename remaining __attribute calls to __attribute__.
27422         2012-02-25 changed definition of __attribute, but left some uses
27423         unchanged, preventing compilation of regex module on most non-gcc
27424         environments.
27425         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
27426         (lookup_collation_sequence_value, build_range_exp)
27427         (build_collating_symbol): Set attributes with newly renamed
27428         __attribute__ decorator.
27429         * lib/regex_internal.c (re_string_peek_byte_case)
27430         (re_node_set_compare, re_node_set_contains): Likewise.
27431         * lib/regexec.c (acquire_init_state_context): Likewise.
27433 2013-03-06  Bruno Haible  <bruno@clisp.org>
27435         execute: Revert last change, but use a different condition.
27436         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
27437         on Windows.
27439 2013-03-05  Eric Blake  <eblake@redhat.com>
27441         execute: drop dead code
27442         * lib/execute.c (nonintr_close, nonintr_open): Delete.
27444 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
27446         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
27447         * m4/non-recursive-gnulib-prefix-hack.m4
27448         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
27449         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
27450         <http://bugs.gnu.org/10305#237>.
27452 2013-03-04  Eric Blake  <eblake@redhat.com>
27454         test-getsockopt: avoid compiler warning
27455         * tests/test-getsockopt.c (includes): Ensure close is declared.
27457 2013-03-02  Bruno Haible  <bruno@clisp.org>
27459         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
27460         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
27462 2013-03-02  Bruno Haible  <bruno@clisp.org>
27464         gettext: Update to version 0.18.2.
27465         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
27466         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
27467                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
27469 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
27471         regex: merge patches from libc
27473         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
27474         * lib/regex_internal.h (__attribute__): Rename from __attribute.
27475         All uses changed.
27476         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
27477         (re_string_wchar_at, re_string_elem_size_at):
27478         Mark function as possibly unused.
27480         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
27481         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
27482         elements compare against the byte sequence of it, not its name.
27484 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
27486         putenv: port better to native Windows
27487         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
27488         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
27489         (_unsetenv): Use _putenv if available.
27490         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
27491         a bit less likely to cause damage.
27492         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
27493         Fix the wrong value with SetEnvironmentVariable.
27494         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
27495         code better.
27497 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
27499         regex: ignore old-style-definition warnings
27500         * lib/regex.c: Add pragma to ignore these warnings.
27501         Problem reported for GNU tar by Pavel Raiskup.
27503 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
27505         getcwd: support coreutils better
27506         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
27507         but this might not be correct in coreutils, which disables
27508         the raw decl checks.  Problem reported by Nagendra in
27509         <http://bugs.gnu.org/10305#192>.
27510         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
27511         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
27512         Test the getcwd function, not any macro, since getcwd.c wants the
27513         function.
27514         * m4/getcwd.m4 (gl_FUNC_GETCWD):
27515         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
27516         compile, as might happen if there's a macro but no function.
27518         strtod: support coreutils better
27519         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
27520         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
27521         disables the raw decl checks.  This assumes there is an underlying
27522         strtod, but that's a safe assumption these days.
27523         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
27525         mountlist: port to HP NonStop
27526         Reported by Joachim Schmitz in
27527         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00084.html>.
27528         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
27529         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
27531 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
27533         extern-inline: avoid compilation error with HP-UX cc
27534         Reported by Richard Lloyd in
27535         <http://lists.gnu.org/r/bug-texinfo/2013-02/msg00030.html>.
27536         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
27537         Suppress extern inline with HP-UX cc.  This should be safe,
27538         though it may hurt performance.  Perhaps someone with some HP-UX
27539         experience can come up with a higher-performance fix.
27541 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
27543         putenv: fix heap corruption with mixed putenv/_putenv
27544         Problem reported by Michael Goffioul in
27545         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00061.html>.
27546         * lib/putenv.c (putenv) [HAVE__PUTENV]:
27547         Rely on _putenv to allocate the new environment.
27548         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
27549         * modules/putenv (configure.ac): Use it.
27551 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
27553         unsetenv etc.: port to Solaris 11 + GNU Emacs
27554         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
27555         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
27556         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
27557         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
27558         idea but is too painful to fix right now), and without this gnulib
27559         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
27560         compiling unsetenv.c on Solaris 11.  Fix the problem for
27561         unsetenv.c, and fix other similar occurrences.
27563 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
27565         secure_getenv: fix C++ declaration typo
27566         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
27567         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
27568         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00057.html>.
27570 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
27572         careadlinkat: stop exporting careadlinkatcwd
27573         Only Emacs used it directly, and Emacs no longer needs it.
27574         * NEWS: Document this simplification.
27575         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
27576         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
27577         for readlink.
27578         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
27579         Don't include stdlib.h; no longer needed.
27580         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
27581         * lib/relocwrapper.c: Adjust comment to match new dependencies.
27582         * modules/areadlink (Depends-on): Add readlink.
27583         (Maintainer): Add self.
27584         * modules/careadlinkat (Depends-on): Remove readlink.
27586         extensions: port better to HP-UX
27587         This is merged from git Autoconf.
27588         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
27589         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
27590         so that it's compatible with the value used when compiling.
27592         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
27593         Problem reported by Mats Erik Andersson in
27594         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00051.html>.
27595         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
27596         openpty function exists, not merely when we intend to replace it.
27597         This corrects the 2013-01-31 patch, which mistakenly defined
27598         HAVE_OPENPTY even on hosts that lacked it.
27600 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
27602         secure_getenv: fix include typo
27603         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
27605         secure_getenv: port better to FreeBSD and Solaris
27606         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
27607         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
27608         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
27609         This works better on BSDish platforms.
27610         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
27611         Test for issetugid if __secure_getenv is missing.
27613 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
27615         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
27616         Some of these changes are merged in from git Autoconf.
27617         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
27618         When deciding whether to define _XOPEN_SOURCE, inspect the
27619         preprocessor macro __hpux instead of the more-heavyweight
27620         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
27621         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
27622         as the key for __EXTENSIONS__.
27624         unistd: avoid namespace pollution on non-glibc systems
27625         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
27626         This avoids namespace pollution on non-glibc systems, by causing
27627         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
27628         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
27629         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00027.html>.
27631 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
27633         tmpdir: use secure_getenv
27634         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
27635         Define to secure_getenv, not getenv.
27636         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
27637         as that's now secure_getenv's job.
27638         * modules/tmpdir (Depends-on): Add secure_getenv.
27640         tempname: use secure_getenv
27641         * lib/tempname.c (__secure_getenv) [!_LIBC]:
27642         Define to secure_getenv, not getenv.
27643         * modules/tempname (Depends-on):
27644         Add secure_getenv.
27646         secure_getenv: new module
27647         * MODULES.html.sh (Extra functions based on ANSI C 89):
27648         Add secure_getenv.
27649         * doc/glibc-functions/secure_getenv.texi: New file.
27650         * doc/gnulib.texi: Include it.
27651         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
27652         New files.
27653         * lib/stdlib.in.h (secure_getenv): New decl.
27654         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
27655         * modules/stdlib (stdlib.h):
27656         Add secure_getenv checks.
27658 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
27660         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
27661         Reported for OS X 10.8.2 by Assaf Gordon in
27662         <http://bugs.gnu.org/13516>.
27663         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
27664         !HAVE_OPENAT && !HAVE_FDOPENDIR.
27665         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
27666         so that they can be kept in sync more easily.  Avoid PATH_MAX
27667         test on the Hurd.  Sync from test-getcwd.c for errno tests after
27668         mkdir or chdir failure.
27669         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
27670         lib/getcwd.c.
27671         (test_abort_bug): Do not test for the deep directory bug unless we
27672         have openat support.  Avoid PATH_MAX test on the Hurd.
27674         regex-tests, regex: fix bug: memset undeclared
27675         * tests/test-regex.c: Don't include regex.h twice.  Include
27676         string.h, to declare memset.  Christensen's report also mentioned
27677         this issue.
27678         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
27679         test-regex.c, to avoid future problems like this.  Remove
27680         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
27681         twice.
27683         regex-tests: fix link errors on older Solaris
27684         These need to link with @LIBINTL@ to get libintl_gettext.
27685         Problem reported by Tom G. Christensen in
27686         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00003.html>.
27687         * modules/regex-tests (test_regex_LDADD): New macro.
27689 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
27691         regex-tests: new module
27692         * modules/regex-tests, tests/test-regex.c: New files.
27694         regex: fix off-by-one error in configure test
27695         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
27697 2013-01-31  Eric Blake  <eblake@redhat.com>
27699         regex: avoid infinite configure test
27700         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
27702 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
27704         openpty: fix bug where HAVE_OPENPTY wasn't defined
27705         See the thread starting at:
27706         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00185.html
27707         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
27708         openpty function exists, not merely when we intend to replace it.
27710 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
27712         sys_time: port to Solaris 2.6
27713         There is a circularity problem on Solaris 2.6, where <time.h> includes
27714         <sys/time.h> for struct timespec.  The include nesting is gnulib
27715         <time.h>, system <time.h>, gnulib <sys/time.h>, system
27716         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
27717         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
27718         <sys/siginfo.h>; the last, innermost file needs struct
27719         timestruc_t, which is defined in <sys/time.h>, which has not been
27720         fully parsed.  Problem reported by Tom G. Christensen in
27721         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00113.html>.
27722         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
27723         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
27724         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
27725         uses split double-inclusion guards.
27727 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
27729         regex: test for buffer overrun
27730         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
27731         for the just-fixed regex bug.
27733 2013-01-29  Andreas Schwab  <schwab@suse.de>
27735         regex: fix buffer overrun in regexp matcher [BZ #15078]
27736         * lib/regexec.c (extend_buffers): Add parameter min_len.
27737         (check_matching): Pass minimum needed length.
27738         (clean_state_log_if_needed): Likewise.
27739         (get_subexp): Likewise.
27741 2013-01-28  Pádraig Brady  <P@draigBrady.com>
27743         mountlist: don't consider "devtmpfs" as dummy
27744         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
27745         as there is storage associcated with it.
27747 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
27749         futimens-tests, utimens-tests: Depend on gettext.
27750         This works around a problem introduced in my 2013-01-12 patch,
27751         which added @LIBINTL@ to these modules.
27752         * modules/futimens-tests (Depends-on):
27753         * modules/utimens-tests (Depends-on): Add gettext.
27755 2013-01-26  Eric Blake  <eblake@redhat.com>
27757         test-getpeername: fix typo
27758         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
27760 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
27762         bootstrap: remove the need for a sorted .gitignore file
27763         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
27764         rename to insert_if_absent(), so that we don't need or generate
27765         a sorted .gitignore file.  We do require a .gitignore with no
27766         existing duplicate entries and enforce that.
27767         (sort_patterns): Remove this function as we now use the simpler
27768         technigue of inserting blacklist entries at the top of the file,
27769         assuming gnulib won't be inserting !whitelist entries.
27771 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
27773         readlinkat: don't depend on gl_FUNC_OPENAT
27774         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
27775         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
27776         renameat.m4, symlinkat.m4; but one thing at a time.
27778         statat: new module, split out from fstatat
27779         GNU Emacs needs the POSIX-specified fstatat, but not the
27780         gnulib-specified statat and lstat.  Split the latter two into a
27781         new module 'statat'.
27782         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
27783         * lib/openat.h, lib/statat.c (STATAT_INLINE):
27784         Rename from FSTATAT_INLINE. All uses changed.
27785         * modules/fstatat (Files): Remove lib/statat.c.
27786         (gl_MODULE_INDICATOR([fstatat])): Remove.
27787         (lib_SOURCES): Remove.
27788         (Maintainer): Add self.
27789         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
27790         * tests/test-fstatat.c (BASE): Don't define if already defined.
27791         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
27793 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
27795         tests: don't assume fd 99 is closed
27796         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
27797         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
27798         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
27799         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
27800         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
27801         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
27802         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
27803         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
27804         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
27805         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
27806         * tests/test-fwrite.c, tests/test-getpeername.c:
27807         * tests/test-getsockname.c, tests/test-getsockopt.c:
27808         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
27809         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
27810         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
27811         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
27812         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
27813         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
27814         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
27815         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
27816         * tests/test-unlinkat.c, tests/test-unlockpt.c:
27817         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
27818         Close file descriptor 99, instead of assuming it's already closed.
27820 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
27822         stpncpy: port to OS X 10.8
27823         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
27824         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
27826 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
27828         unistd: port to recent mingw
27829         * lib/unistd.in.h: Remove special invocation convention for mingw,
27830         which breaks for the latest mingw version.  See John W. Eaton in
27831         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00100.html>.
27833         largefile: port better to Mac OS X 10.5
27834         This patch is backported from Autoconf git.
27835         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
27836         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
27837         with ino_t size being different for configuration time versus
27838         build/run time.  Problem reported by PHO in
27839         <http://lists.gnu.org/r/bug-autoconf/2013-01/msg00040.html>.
27841 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
27843         doc: clarify -Werror
27844         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
27845         clarify that it's intended for developers, not for ordinary builds,
27846         and mention --enable-gcc-warnings as one possible use.
27848 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
27850         stdint: fix build with Android's Bionic fox x86
27851         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
27852         was already included as _SSIZE_T_DEFINED_ might also be defined
27853         in include/machine/_types.h, which is included by stdio.h
27855 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
27857         net_if-tests: port to Solaris 7 + GCC 3.4.6
27858         Problem reported by Tom G. Christensen in
27859         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00091.html>.
27860         * tests/test-net_if.c (ni): Move to next the code that uses it,
27861         so that it's declared only if needed.
27863 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
27865         net_if-tests: port to older Solaris
27866         Problem reported by Tom G. Christensen in
27867         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
27868         * modules/net_if-tests (NET_IF_LIB): New substitution.
27869         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
27870         (HAVE_IF_NAMEINDEX): New C macro.
27871         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
27873         system-quote-tests: port to older Solaris
27874         Problem reported by Tom G. Christensen in
27875         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
27876         * tests/test-system-quote-child.c (fopen, fread): Undef.
27878         c-xvasprintf etc.: fix link errors on older Solaris
27879         These need to link with @LIBINTL@ to get libintl_gettext.
27880         Problem reported by Tom G. Christensen in
27881         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
27882         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
27883         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
27884         * modules/futimens-tests (test_futimens_LDADD):
27885         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
27887 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
27889         locale: port to Solaris 2.6 and 7 + GNU gettext
27890         * lib/locale.in.h: Just include_next <locale.h> when
27891         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
27892         when combining the localename module with GNU gettext 0.18.2.
27893         Problem reported by Tom G. Christensen in
27894         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00084.html>.
27896 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
27898         stdlib: port to Solaris 2.6
27899         Also, the code worked on Solaris 7 through 9 only by accident.
27900         Problem reported by Tom G. Christensen in
27901         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00059.html>.
27902         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
27903         simply include the system stdlib.h.
27904         * lib/getopt.in.h (__need_system_stdlib_h):
27905         * lib/pthread.in.h (__need_system_stdlib_h):
27906         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
27907         Define when including <stdlib.h>, to avoid problems at least for
27908         the pthread case on Solaris 2.6 and 7.  These .h files can get by
27909         with the system stdlib.h.
27911 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
27913         doc: update main copyright year
27914         * doc/gnulib.texi: Update copyright date.
27916         doc: improve ISO 8601 discussion
27917         * doc/parse-datetime.texi (Combined date and time of day items):
27918         Specify more carefully what formats are supported and what is
27919         done with excess precision.
27921 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
27923         doc: avoid small caps
27924         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
27925         they're more trouble than they're worth.  Suggested by Karl Berry
27926         in <http://bugs.gnu.org/13360>.
27928         regex: conform to strict C
27929         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
27930         From Aharon Robbins.
27932         gnulib-tool: fix incompatibility with autopoint 0.18.2
27933         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
27934         Problem reported by Tom G. Christensen in
27935         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00053.html>.
27937 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
27939         fprintftime: bring back and reword fwrite comment
27940         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
27942         stdio: remove now-unnecessary stdio.c
27943         Since stdio.in.h no longer uses inline functions, we no longer
27944         need to compile the extern versions.
27945         * lib/stdio.c: Remove.
27946         * modules/stdio (Files): Remove lib/stdio.c.
27947         (lib_SOURCES): Remove.
27949         unicodeio: depend on stdio, not ignore-value
27950         * lib/unicodeio.c: Do not include ignore-value.h.
27951         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
27952         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
27954         fprintftime: depend on stdio, not ignore-value
27955         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
27956         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
27957         since the stdio module arranges to silence that warning now.
27958         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
27960 2012-10-04  Simon Josefsson  <simon@josefsson.org>
27962         stdint-tests: Fix expanded-before-required-warning.
27963         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
27965 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
27967         fwrite: silence __wur only for older glibc versions
27968         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
27969         This will help us remove this workaround some time in the far future.
27971 2013-01-03  Eric Blake  <eblake@redhat.com>
27973         fwrite: silence __wur without using inline
27974         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
27975         just gcc, and in a way that avoids inline issues.
27976         * modules/stdio (Depends-on): Drop extern-inline.
27978 2013-01-03  Jim Meyering  <jim@meyering.net>
27980         update-copyright: avoid copyright notice date corruption
27981         Given a sequence of copyright year numbers in which the final
27982         one was a two-digit number that happened to be a substring of
27983         a preceding four-digit year number, we would mistakenly update
27984         the substring (from two- to four-digit) rather than the two-digit
27985         number at the end, which, combined with the addition of the current
27986         4-digit year number would yield two 5-digit year numbers, e.g.,
27987         here, it would convert the first "99" to "1999, 2013" rather than
27988         the final one:
27989           1991, 99
27990           11999, 20131, 1999
27991         * build-aux/update-copyright: Tighten a regexp.
27992         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
27993         Reported by Joseph Myers in
27994         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
27996 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
27998         regex: omit needless signed-pointer casts
27999         * lib/regcomp.c (build_charclass, build_charclass_op):
28000         Use char *, not unsigned char *, for class name and extra.
28001         The char values are always nonnegative so there's no need to
28002         insist on unsigned char * here, and using char * removes the need
28003         for casts.  Reported by Aharon Robbins in
28004         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
28006         regex: support Gawk, which never uses alloca
28007         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
28008         Do not include in this case.  Gawk doesn't supply a substitute
28009         alloca.h and doesn't need one.
28011         regex: port __libc_lock_define usage to C89
28012         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
28013         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
28014         does not conform to C89, as it has an empty macro argument.
28015         Reported by Aharon Robbins in
28016         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
28018 2013-01-01  Eric Blake  <eblake@redhat.com>
28020         maint: update all copyright year number ranges
28021         Run "make update-copyright".
28023         version-etc: bump copyright year reported in --version
28024         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
28026 2012-12-31  Eric Blake  <eblake@redhat.com>
28028         sigprocmask-tests: skip test if pid is unexpectedly large
28029         * tests/test-sigprocmask.c (main): Add range check.
28031         git-version-gen: avoid test -z portability glitch
28032         * build-aux/git-version-gen: Prefer portable test spelling, since
28033         git-version-gen is run on more than just developer machines.
28035 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
28037         git-version-gen: add --fallback option to use if git is not present
28038         * build-aux/git-version-gen: Add support for the new option --fallback,
28039         which comes into play when there is no $tarball_version_file and
28040         git is not working.
28041         (scriptversion): Update.
28043         maint.mk: handle missing git with more grace
28044         * top/maint.mk (no-submodule-changes, public-submodule-commit):
28045         Quietly proceed if git is not present.
28047 2012-12-31  Eric Blake  <eblake@redhat.com>
28049         dup2: work around cygwin bug
28050         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
28051         * lib/dup2.c (rpl_dup2): Work around it.
28052         * doc/posix-functions/dup2.texi (dup2): Document it.
28054 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
28056         regex: remove unnecessary dependency on localcharset.h
28057         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
28058         hasn't been needed for years.
28059         * modules/regex (Depends-on): Remove localcharset.
28061         regex: revert single-byte change
28062         * lib/regexec.c (check_node_accept_bytes): Revert previous change
28063         to this function.  This was alredy fixed in a different way, at
28064         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
28065         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
28066         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
28068         regex: simplify based on Gawk version
28069         * lib/regex_internal.c (re_dfa_add_node): Simplify.
28070         Reported by Aharon Robbins in
28071         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
28073 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
28075         regex: check that pattern char is single-byte
28076         Reported by Aharon Robbins in
28077         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
28078         * lib/regexec.c (check_node_accept_bytes):
28079         Return 0 if the pattern string has a multibyte character here.
28081         regex: implement rational ranges
28082         Reported by Aharon Robbins in
28083         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
28084         * lib/regcomp.c (build_range_exp) [!_LIBC]:
28085         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
28086         Implement rational ranges.
28088         regex: avoid redefining __wctype
28089         Reported by Aharon Robbins in
28090         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
28091         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
28092         #undef before defining.
28094         regex: port to hosts where malloc (0) == NULL
28095         Reported by Aharon Robbins in
28096         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
28097         * lib/regex_internal.c (re_node_set_alloc):
28098         Don't assume that malloc (0) yields nonnull.
28099         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
28100         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
28101         * modules/regex (Files): Add m4/eealloc.m4.
28103         regex: port to C89
28104         Reported by Aharon Robbins in
28105         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
28106         * lib/regcomp.c (init_word_char): Declaration before statement.
28108         regex: merge glibc changes
28109         Also, copy the license wording from glibc.  This simplifies
28110         merging changes.  gnulib-tool will change the wording to GPL as
28111         appropriate, when importing it to other packages.  The only
28112         glibc change made since the last merge, which needs merging, is:
28113         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
28114         * lib/regex_internal.h (gettext): Remove use of INTUSE.
28116         * users.txt: Add Emacs.
28118         doc: omit mention of version when not needed
28119         * doc/gnulib-intro.texi (Portability and Application Code):
28120         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
28121         Don't mention particular dates or versions when not necessary, so
28122         that the documentation won't go out of date so quickly.
28124         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
28126 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
28128         bootstrap: pass --force to autoreconf.
28129         * build-aux/bootstrap (AUTORECONFFLAGS): New.
28130         Add "--force" so that Automake's ylwrap and other such tools
28131         be updated at each bootstrap invocation.
28132         Use it.
28134 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
28136         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
28137         The earlier patch forgot to update one of the #if conditions, causing
28138         a problem on Debian testing i386 reported by Mats Erik Andersson
28139         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00124.html>.
28140         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
28141         (__argp_fmtstream_puts, argp_fmtstream_puts)
28142         (__argp_fmtstream_write, argp_fmtstream_write)
28143         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
28145         * doc/gnulib-readme.texi: Minor fixups.
28146         (Portability guidelines): Modernize URLs.  Remove some repetition.
28147         (Indent with spaces not TABs): Reword to avoid too-long lines.
28148         Remove some '@ifset standalone' stuff that isn't used.
28150         * doc/gnulib-readme.texi (Portability guidelines):
28151         ctype.h, not ctime.h.
28153         Correct name of POSIX.1-2001.
28154         * doc/posix-functions/fgetc.texi (fgetc):
28155         * doc/posix-functions/fgets.texi (fgets):
28156         * doc/posix-functions/fread.texi (fread):
28157         * doc/posix-functions/fscanf.texi (fscanf):
28158         * doc/posix-functions/getc.texi (getc):
28159         * doc/posix-functions/getchar.texi (getchar):
28160         * doc/posix-functions/scanf.texi (scanf):
28161         POSIX.1-2001, not POSIX-2001.
28163         doc: move README into manual
28164         * README: Move contents to new file doc/gnulib-readme.texi.
28165         Replace with a one-line summary.
28166         * doc/gnulib.texi (Brief Overview): New section,
28167         with old intro preface.  Include gnulib-readme.texi for contents.
28168         (Philosophy): Rename from "Introduction", since this
28169         section no longer introduces the rest.  Write a new preface.
28170         * doc/gnulib-readme.texi: New file, with the old contents of
28171         README texinfo-ized.  This way, the README info appears
28172         in the online and printed manual.
28174 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
28176         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
28177         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
28178         c_vasprintf() prototype.
28180 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
28182         c-vasprintf: Fix "empty declaration" warning reported by GCC.
28183         * lib/c-vasprintf.h: Remove stray semicolon.
28185 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
28187         gettext: avoid obsolete macro AM_PROG_MKDIR_P
28188         It is obsolete and is planned to be removed from Automake 1.14; see
28189         <http://lists.gnu.org/r/automake/2012-12/msg00029.html>.
28190         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
28191         (installdirs-data, installdirs-data-yes):
28192         Use $(MKDIR_P), not $(mkdir_p).
28193         * m4/intl.m4 (AM_INTL_SUBDIR):
28194         * m4/po.m4 (AM_PO_SUBDIRS):
28195         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
28197 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
28199         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
28200         On this platform, we are not optimizing but we are using
28201         the substitute for extern inlines, so compile as if
28202         C99-style extern inline, or a substitute, is available.
28203         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
28204         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
28205         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
28206         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
28207         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
28208         Declare as ARGP_FS_EI, not as extern.
28209         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
28210         (__option_is_short, _option_is_end, __option_is_end)
28211         [!_LIBC && __USE_EXTERN_INLINES]:
28212         Declare as ARGP_EI, not as extern.
28214 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
28216         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
28217         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
28218         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
28219         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
28220         ...), as the latter is fatal with older Autoconfs.
28221         Problem reported and fix suggested by Eric Blake in thread starting at
28222         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00097.html>.
28224 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
28226         AC_PROG_MKDIR_P: don't workaround if not buggy
28227         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
28228         Define only for Autoconf versions before 2.62.
28229         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
28230         undocumented m4_PACKAGE_VERSION, for consistency with the
28231         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
28232         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
28233         was introduced in 2.62.
28235 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
28237         New 'c-*printf' modules for formatted output in C locale.
28239         New module 'c-vasnprintf'.
28240         * modules/c-vasnprintf: New file.
28241         * lib/c-vasnprintf.c: New file.
28242         * lib/c-vasnprintf.h: New file.
28244         New module 'c-snprintf'.
28245         * modules/c-snprintf: New file.
28246         * modules/c-snprintf-tests: New file.
28247         * lib/c-snprintf.c: New file.
28248         * lib/c-snprintf.h: New file.
28249         * tests/test-c-snprintf.c: New file.
28250         * tests/test-c-snprintf.sh: New file.
28252         New module 'c-vsnprintf'.
28253         * modules/c-vsnprintf: New file.
28254         * modules/c-vsnprintf-tests: New file.
28255         * lib/c-vsnprintf.c: New file.
28256         * lib/c-vsnprintf.h: New file.
28257         * tests/test-c-vsnprintf.c: New file.
28258         * tests/test-c-vsnprintf.sh: New file.
28260         New module 'c-vasprintf'.
28261         * modules/c-vasprintf: New file.
28262         * modules/c-vasprintf-tests: New file.
28263         * lib/c-asprintf.c: New file.
28264         * lib/c-vasprintf.c: New file.
28265         * lib/c-vasprintf.h: New file.
28266         * tests/test-c-vasprintf.c  +: New file.
28267         * tests/test-c-vasprintf.sh: New file.
28269         New module 'c-xvasprintf'.
28270         * modules/c-xvasprintf: New file.
28271         * modules/c-xvasprintf-tests: New file.
28272         * lib/c-xasprintf.c: New file.
28273         * lib/c-xvasprintf.c: New file.
28274         * lib/c-xvasprintf.h: New file.
28275         * tests/test-c-xvasprintf.c: New file.
28276         * tests/test-c-xvasprintf.sh: New file.
28278 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
28280         argp: better 'inline'
28281         Use extern-inline module to declare extern inline functions.
28282         This avoids some bogus warning diagnostics.  Problem discovered
28283         when modifying GNU tar to use the manywarnings module.
28284         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
28285         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
28286         Define based on extern-inline.
28287         * modules/argp (Depends-on): Add extern-inline.
28289 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
28291         filemode, sys_stat: Handle MPX files a la AIX.
28292         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
28293         * lib/sys_stat.in.h (S_ISMPX): New macro.
28294         * tests/test-sys_stat.c: Add tests for MPX files.
28296 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
28298         x-to-1: honor $PERL
28299         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
28300         a chance to use his preferred version of Perl.  This is typically
28301         required by Darwin users whose default /usr/bin/perl does not have all
28302         the libraries required by help2man, and who need to use their MacPorts
28303         installation of Perl instead.
28305 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
28307         gnu-web-doc-update: add all the new files, even in new directories
28308         See http://lists.gnu.org/r/bug-gnulib/2012-12/msg00057.html
28309         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
28310         Use it.
28311         (main): Don't use cvsutils to get the list of unknown files,
28312         just add all the existing files and directories.
28314 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
28316         gnu-web-doc-update: improve --help
28317         * build-aux/gnu-web-doc-update: Move comments into --help.
28319 2012-12-07  Eric Wong  <normalperson@yhbt.net>
28321         mountlist: recognize more "dummy" file systems
28322         * lib/mountlist.c (ME_DUMMY_0):
28323         Add these dummy FS names to the list:
28324         - "debugfs" virtual filesystem for kernel debugging
28325         - "devpts" PTY slave filesystem
28326         - "devtmpfs" device filesystem on top of tmpfs/ramfs
28327         - "fusectl" control filesystem for FUSE
28328         - "mqueue" enumerates POSIX message queues
28329         - "rpc_pipefs" kernel <-> userspace bridge for NFS
28330         - "sysfs" is for exporting kernel objects
28331         - "devfs" device filesystem for Linux 2.4 and FreeBSD
28333 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
28335         extern-inline: avoid incompatibility with Darwin Libc
28336         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
28337         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
28338         Problem reported by Akim Demaille in
28339         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00023.html>.
28341 2012-12-11  Simon Josefsson  <simon@josefsson.org>
28343         gnupload: Work with GnuPG using gpg-agent (for smartcards).
28344         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
28345         let it handle password prompting.
28347 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
28349         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
28350         * lib/canonicalize.c (canonicalize_filename_mode):
28351         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
28352         fetching the current directory.  Don't overrun the beginning of
28353         rpath if there's no slashes after the MS-Windows drive letter.
28355 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
28357         maint.mk: avoid extra forks
28358         * top/maint.mk (_cfg_mk): The GNU make manual documents that
28359         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
28360         So use that instead of "$(shell test -f FILE && echo FILE)".
28362 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
28364         vasnprintf: fix ASCII_ONLY typo
28365         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
28366         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
28367         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
28368         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
28369         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00021.html>.
28371 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
28373         list, oset, xlist, xoset: fix extern inline issue with C99
28374         This was introduced by my recent changes for 'inline'.
28375         Problem reported for gettext by Daiki Ueno in
28376         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00000.html>.
28377         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
28378         (gl_list_nx_create, gl_list_size, gl_list_node_value)
28379         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
28380         (gl_list_previous_node, gl_list_get_at)
28381         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
28382         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
28383         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
28384         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
28385         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
28386         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
28387         (gl_list_iterator_free, gl_sortedlist_search)
28388         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
28389         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
28390         (gl_sortedlist_remove):
28391         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
28392         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
28393         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
28394         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
28395         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
28396         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
28397         (gl_list_add_at, gl_sortedlist_add):
28398         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
28399         Wrap these extern decls inside "#if 0", because they are implemented
28400         as inline functions, and extern inline is not what's wanted here.
28401         It would simplify these .h files to remove the extern decls entirely,
28402         although a downside would be less-clear separation between
28403         specification and implementation.
28405 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
28407         sys_stat: no 'static inline'
28408         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
28409         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
28411         extern-inline: no 'static inline'
28412         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
28413         Do not require AC_C_INLINE.
28414         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
28415         'static inline', for older compilers.
28417         snippet/warn-on-use: no 'static inline'
28418         * build-aux/snippet/warn-on-use.h:
28419         Remove unnecessary 'inline' in comment.
28421         rbtree-list, rbtreehash-list: no 'static inline'
28422         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
28423         * lib/gl_anytree_list2.h (node_at):
28424         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
28425         (gl_oset_first, add_nodes_to_buckets):
28426         Now static, not static inline.
28428         regex: no 'static inline'
28429         * lib/regex_internal.c (calc_state_hash):
28430         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
28431         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
28432         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
28433         Now static, not static inline.
28434         (inline) [__GNUC__ < 3 && _LIBC]:
28435         Remove macro; no longer needed.
28437         xvasprintf: no 'static inline'
28438         * lib/xvasprintf.c (xstrcat):
28439         Now static, not static inline.
28440         * m4/xvasprintf.m4 (gl_XVASPRINTF):
28441         Do not require AC_C_INLINE.
28443         parse-datetime, parse-duration: no 'static inline'
28444         * lib/parse-datetime.y (to_uchar):
28445         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
28446         (scale_n_add):
28447         Now static, not static inline.
28448         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
28449         * modules/parse-duration (configure.ac):
28450         Do not require AC_C_INLINE.
28452         getaddrinfo: no 'static inline'
28453         * lib/getaddrinfo.c (validate_family):
28454         Now static, not static inline.
28455         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
28456         Do not require AC_C_INLINE.
28458         ftruncate, fts, lstat, openat, raise: no 'static inline'
28459         * lib/ftruncate.c (chsize_nothrow):
28460         * lib/fts.c (opendirat, diropen):
28461         * lib/lstat.c (orig_lstat):
28462         * lib/openat.c (orig_openat):
28463         * lib/raise.c (raise_nothrow):
28464         Now static, not static inline.
28465         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
28466         * m4/fts.m4 (gl_FUNC_FTS_CORE):
28467         * m4/lstat.m4 (gl_PREREQ_LSTAT):
28468         * m4/openat.m4 (gl_PREREQ_OPENAT):
28469         * m4/raise.m4 (gl_PREREQ_RAISE):
28470         Do not require AC_C_INLINE.
28472         fflush, stat: no 'static inline'
28473         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
28474         (clear_ungetc_buffer, disable_seek_optimization)
28475         (restore_seek_optimization, update_fpos_cache):
28476         * lib/stat.c (orig_stat):
28477         Now static, not static inline.
28478         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
28479         (update_fpos_cache):
28480         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
28481         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
28482         * m4/stat.m4 (gl_PREREQ_STAT):
28483         Do not require AC_C_INLINE.
28485         error, filevercmp: no 'static inline'
28486         * lib/error.c (is_open, flush_stdout):
28487         * lib/filevercmp.c (order):
28488         Now static, not static inline.
28489         * m4/error.m4 (gl_PREREQ_ERROR):
28490         * modules/filevercmp (configure.ac):
28491         Do not require AC_C_INLINE.
28493         dup, execute, fatal-signal, etc.: no 'static inline'
28494         * lib/dup.c (dup_nothrow):
28495         * lib/execute.c (nonintr_close, nonintr_open):
28496         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
28497         * lib/fopen.c (orig_fopen):
28498         * lib/freadseek.c (freadptrinc):
28499         * lib/freopen.c (orig_freopen):
28500         * lib/fstat.c (orig_fstat, fstat_nothrow):
28501         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
28502         (get_rusage_as_via_iterator):
28503         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
28504         * lib/getdtablesize.c (_setmaxstdio_nothrow):
28505         * lib/isatty.c (_isatty_nothrow):
28506         * lib/open.c (orig_open):
28507         * lib/read.c (read_nothrow):
28508         * lib/sigprocmask.c (signal_nothrow):
28509         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
28510         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
28511         * lib/wait-process.c (unregister_slave_subprocess):
28512         * lib/write.c (write_nothrow):
28513         Now static, not static inline.
28514         * lib/spawn-pipe.c (nonintr_open): Define only if
28515         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
28516         * m4/dup.m4 (gl_PREREQ_DUP):
28517         * m4/execute.m4 (gl_EXECUTE):
28518         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
28519         * m4/fopen.m4 (gl_PREREQ_FOPEN):
28520         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
28521         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
28522         * m4/fstat.m4 (gl_PREREQ_FSTAT):
28523         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
28524         * m4/isatty.m4 (gl_PREREQ_ISATTY):
28525         * m4/open.m4 (gl_PREREQ_OPEN):
28526         * m4/read.m4 (gl_PREREQ_READ):
28527         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
28528         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
28529         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
28530         * m4/wait-process.m4 (gl_WAIT_PROCESS):
28531         * m4/write.m4 (gl_PREREQ_WRITE):
28532         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
28533         Do not require AC_C_INLINE.
28535         c-strtod, memcoll, readutmp: no 'static inline'
28536         * lib/c-strtod.c (c_locale):
28537         * lib/memcoll.c (strcoll_loop):
28538         * lib/readutmp.c (desirable_utmp_entry):
28539         Now static, not static inline.
28540         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
28541         * m4/memcoll.m4 (gl_MEMCOLL):
28542         * m4/readutmp.m4 (gl_READUTMP):
28543         Do not require AC_C_INLINE.
28545         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
28546         * lib/arctwo.c (to_uchar):
28547         * lib/md4.c (set_uint32):
28548         * lib/md5.c (set_uint32):
28549         * lib/sha1.c (set_uint32):
28550         * lib/sha256.c (set_uint32):
28551         * lib/sha512.c (set_uint64):
28552         Now static, not static inline.  This is a bit simpler, and doesn't
28553         affect performance with GCC and default optimization.
28554         * m4/arctwo.m4 (gl_ARCTWO):
28555         * m4/md4.m4 (gl_MD4):
28556         * m4/md5.m4 (gl_MD5):
28557         * m4/sha1.m4 (gl_SHA1):
28558         * m4/sha256.m4 (gl_SHA256):
28559         * m4/sha512.m4 (gl_SHA512):
28560         Do not require AC_C_INLINE.
28562         cond, lock, thread: better 'inline'
28563         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
28564         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
28565         New macros.  Use them instead of static inline, for header functions.
28566         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
28567         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
28568         * lib/glthread/lock.c (gl_waitqueue_init)
28569         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
28570         * lib/glthread/thread.c (get_current_thread_handle):
28571         Change 'static inline' to 'inline'.
28572         * lib/glthread/cond.h, lib/glthread/thread.h:
28573         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
28574         * m4/cond.m4 (gl_COND):
28575         * m4/lock.m4 (gl_PREREQ_LOCK):
28576         * m4/thread.m4 (gl_THREAD):
28577         Do not require AC_C_INLINE.
28578         * modules/cond, modules/thread (Depends-on): Add extern-inline.
28580         chdir-long, cycle-check, savewd: better 'inline'
28581         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
28582         (find_non_slash):
28583         * lib/cycle-check.c (is_zero_or_power_of_two):
28584         * lib/savewd.c (savewd_delegating):
28585         Change 'static inline' to 'inline'.
28586         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
28587         Replace all remaining uses of 'static inline' with it.
28588         * lib/savewd.h:
28589         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
28590         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
28591         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
28592         * m4/savewd.m4 (gl_SAVEWD):
28593         Do not require AC_C_INLINE.
28594         * modules/savewd (Depends-on): Add extern-inline.
28596         base32, base64: no need for 'inline'
28597         * lib/base32.c (to_uchar, get_8, decode_8):
28598         * lib/base64.c (to_uchar, get_4, decode_4):
28599         Change 'static inline' to 'inline'.
28600         * m4/base32.m4 (gl_PREREQ_BASE32):
28601         * m4/base64.m4 (gl_PREREQ_BASE64):
28602         Do not require AC_C_INLINE.
28604         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
28605         * lib/gl_array_oset.c (gl_array_nx_add_at):
28606         (gl_array_remove_at):
28607         * lib/gl_linkedhash_list.c (hash_resize_after_add)
28608         (add_to_bucket, remove_from_bucket):
28609         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
28610         Change 'static inline' to 'static', as it's simpler to omit
28611         'inline' unless there's a significant performance advantage.
28613         list, oset, xlist, xoset, xsublist: simplify via extern inline
28614         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
28615         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
28616         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
28617         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
28618         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
28619         New macro.  Replace all uses of 'static inline' with it.
28620         [HAVE_INLINE]: Implement functions as *_INLINE functions,
28621         instead of as macros FOO that are defined to static inline
28622         functions FOO_inline.
28623         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
28624         * lib/gl_xsublist.c:
28625         Reimplement from scratch, by defining the corresponding *_INLINE
28626         macro and including the corresponding .h file.  This is simpler.
28627         * modules/list, modules/oset, modules/xlist, modules/xoset:
28628         (Files): Remove m4/gl_list.m4.
28629         (configure.ac): Remove gl_LIST.
28630         * m4/gl_list.m4: Remove.
28631         * modules/list, modules/oset, modules/xlist, modules/xoset:
28632         * modules/xsublist:
28633         (Depends-on): Depend on extern-inline, not inline.
28635         xalloc: better 'inline'
28636         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
28637         New macro.  Replace all uses of 'static inline' with it.
28638         (static_inline): Remove.
28639         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
28640         Let 'extern inline' do the work automatically, instead of doing
28641         it by hand.
28642         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
28643         Remove.  All uses removed.
28644         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
28646         gethrxtime: better 'inline'
28647         * lib/xtime.c: New file.
28648         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
28649         * lib/xtime.h (XTIME_INCLUDE):
28650         New macros.  Replace all uses of 'static inline' with them.
28651         * lib/gethrxtime.c (gethrxtime): Define only if
28652         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
28653         this source file is now always compiled, because of the extern inline.
28654         * lib/gethrxtime.h, lib/xtime.h:
28655         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
28656         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
28657         if gethrtime works, as they're not needed in that case.
28658         (gl_XTIME): Do not require AC_C_INLINE.
28659         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
28660         compiled now.  Move the check into gl_GETHRXTIME.
28661         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
28662         (Depends-on): Add extern-inline.
28663         (configure.ac): gethrxtime is always compiled now.
28664         (lib_SOURCES): Add gethrxtime.c.
28666         wctype-h: better 'inline'
28667         * lib/wctype-h.c: New file.
28668         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
28669         New macro.  Replace all uses of 'static inline' with it.
28670         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
28671         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
28672         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
28673         (Depends-on): Add extern-inline.
28675         unistd: better 'inline'
28676         * lib/unistd.c: New file.
28677         * lib/unistd.in.h (_GL_UNISTD_INLINE):
28678         New macro.  Replace all uses of 'static inline' with it.
28679         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
28680         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
28681         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
28682         (Depends-on): Add extern-inline.
28684         sys_socket: better 'inline'
28685         * lib/sys_socket.c: New file.
28686         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
28687         New macro.  Replace all uses of 'static inline' with it.
28688         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
28689         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
28690         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
28691         (Depends-on): Add extern-inline.
28693         stdio: better 'inline'
28694         * lib/stdio.c: New file.
28695         * lib/stdio.in.h (_GL_STDIO_INLINE):
28696         New macro.  Replace all uses of 'static inline' with it.
28697         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
28698         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
28699         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
28700         (Depends-on): Add extern-inline.
28702         sigaction: better 'inline'
28703         * lib/sig-handler.c: New file.
28704         * lib/sig-handler.h (SIG_HANDLER_INLINE):
28705         New macro.  Replace all uses of 'static inline' with it.
28706         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
28707         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
28708         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
28709         (Depends-on): Add extern-inline.
28711         selinux-h: better 'inline'
28712         * lib/se-context.c, lib/se-selinux.c: New files.
28713         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
28714         * lib/se-context.in.h (SE_CONTEXT_INLINE):
28715         New macro.  Replace all uses of 'static inline' with it.
28716         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
28717         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
28718         New macro.  Replace all uses of 'static inline' with it.
28719         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
28720         * modules/selinux-h (Files, lib_SOURCES):
28721         Add lib/se-context.c, lib/se-selinux.c.
28722         (Depends-on): Add extern-inline.
28723         (configure.ac): Do not require AC_C_INLINE.
28725         pthread: better 'inline'
28726         * lib/pthread.c: New file.
28727         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
28728         New macro.  Replace all uses of 'static inline' with it.
28729         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
28730         * m4/pthread.m4 (gl_PTHREAD_CHECK):
28731         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
28732         * modules/pthread (Files): Add lib/pthread.c.
28733         (Depends-on): Add extern-inline.
28735         math: better 'inline'
28736         * lib/math.c: New file.
28737         * lib/math.in.h (_GL_MATH_INLINE):
28738         New macro.  Replace all uses of 'static inline' with it.
28739         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
28740         * m4/math_h.m4 (gl_MATH_H):
28741         Do not require AC_C_INLINE.
28742         * modules/math (Files, lib_SOURCES):
28743         Add lib/math.c.
28744         (Depends-on): Add extern-inline.
28746         count-one-bits: better 'inline'
28747         * lib/count-one-bits.c: New file.
28748         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
28749         New macro.  Replace all uses of 'static inline' with it.
28750         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
28751         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
28752         Do not require AC_C_INLINE.
28753         * modules/count-one-bits (Files, lib_SOURCES):
28754         Add lib/count-one-bits.c.
28755         (Depends-on): Add extern-inline.
28757         count-leading-zeros: better 'inline'
28758         * lib/count-leading-zeros.c: New file.
28759         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
28760         New macro.  Replace all uses of 'static inline' with it.
28761         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
28762         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
28763         Do not require AC_C_INLINE.
28764         * modules/count-leading-zeros (Files, lib_SOURCES):
28765         Add lib/count-leading-zeros.c.
28766         (Depends-on): Add extern-inline.
28768         bitrotate: better 'inline'
28769         * lib/bitrotate.c: New file.
28770         * lib/bitrotate.h (BITROTATE_INLINE):
28771         New macros.
28772         Replace all uses of 'static inline' with them.
28773         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
28774         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
28775         (Depends-on): Add extern-inline.
28776         (configure.ac): Do not require AC_C_INLINE.
28778 2012-11-20  Theophile Ranquet  <ranquet@lrde.epita.fr>
28780         maint.mk: avoid gratuitous failure
28781         Reported by Stefano Lattarini in
28782         <http://lists.gnu.org/r/bug-bison/2012-11/msg00022.html>
28783         * top/maint.mk (public-submodule-commit): Quote more safely.
28785 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
28787         canonicalize, canonicalize-lgpl: support MS-Windows file names
28788         See <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00074.html>
28789         for test cases, which it'd be nice to add at some point.
28790         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
28791         * lib/canonicalize.c (canonicalize_filename_mode):
28792         * lib/canonicalize-lgpl.c (__realpath):
28793         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
28794         slash is at the beginning of the file name.  Use ISSLASH, instead
28795         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
28796         the first character with '/'.  Test for
28797         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
28798         with a drive letter.
28799         * lib/canonicalize.c (SLASHES): New macro.
28800         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
28802 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
28804         fts: introduce FTS_VERBATIM
28805         * lib/fts_.h (FTS_VERBATIM): New bit flag.
28806         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
28807         * lib/fts.c (fts_open): Honor it.
28809 2012-11-09  Pádraig Brady  <P@draigBrady.com>
28811         getlogin-tests: allow errno == ENXIO
28812         * tests/test-getlogin.c (main): Skip tests if getlogin fails
28813         with errno == ENXIO (No controlling tty).
28814         getlogin_r-tests: Likewise. Also allow errno == ENOENT
28815         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
28816         with errno == ENOENT.  This was reported to happen in various
28817         situations on GNU/Linux.
28819 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
28821         getlogin-tests: allow errno == ENOENT
28822         * tests/test-getlogin.c (main): Skip tests if getlogin fails
28823         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
28824         when running a test in an Emacs shell buffer.
28826 2012-11-08  Jim Meyering  <jim@meyering.net>
28828         tests/nap.h: avoid warning about unused variable
28829         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
28831         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
28832         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
28833         white space before each of the special-cased file names, to avoid
28834         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
28835         in http://bugs.gnu.org/12830.
28837 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
28839         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
28840         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
28841         fails with errno == EBADF when fd is opened with O_PATH.
28842         Reported by Jim Meyering in
28843         <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00026.html>.
28844         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
28845         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
28847 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
28849         test-utimens: speed up by taking shorter naps
28850         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
28851         New functions.
28852         (nap): Use them, to do a better job of guessing the delay.
28853         On Fedora 17 with ext4 atop md atop hard disks, this made
28854         test-utimens run 10x faster, because the test napped for
28855         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
28856         <http://bugs.gnu.org/12820#11>.
28858 2012-11-07  Jim Meyering  <jim@meyering.net>
28860         mountlist.c: fix a compilation failure
28861         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
28862         I introduced while transforming commit v0.0-7683-g613bcb6
28864 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
28866         errno: port to LynxOS 178 2.2.2
28867         Problem reported by Joel Brobecker in
28868         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00088.html>.
28869         * doc/posix-headers/errno.texi (errno.h): Document this.
28870         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
28871         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
28872         Supply a string for EILSEQ.
28873         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
28875 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
28877         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
28878         Linux kernel 2.6.39 introduced O_PATH (see
28879         <http://lwn.net/Articles/433854/>) and this is a better fallback
28880         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
28881         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
28882         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
28883         * lib/fcntl.in.h (O_ACCMODE):
28884         * tests/test-fcntl-h.c (main):
28885         Do not reject O_ACCMODE merely because it has more than the
28886         minimal number of bits, as POSIX allows extensions here.
28888 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
28890         mountlist: do not classify a bind-mounted dir entry as "dummy"
28891         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
28892         the "none"-testing clause.
28893         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
28894         exception for bind-mounted directories.
28896 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
28898         quote: provide a means to escape strings with nul characters
28899         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
28900         (quote, quote_n): Rename formal arguments for consistency with
28901         quotearg.
28903 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
28905         test-raise: don't assume 199 is an invalid signal
28906         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
28908         sh-quote-tests: port to Solaris 9
28909         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
28910         Problem reported by Dagobert Michelsen in
28911         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00114.html>.
28913 2012-10-28  Jim Meyering  <jim@meyering.net>
28915         maint.mk: rename a new configurable variable
28916         * top/maint.mk (_gl_translatable_string_re): Rename from
28917         translation-markers: _gl_ prefix to insulate from user Makefile code,
28918         and the _re suffix to inform that it's a regular expression.
28920 2012-10-26  Eric Blake  <eblake@redhat.com>
28922         maint.mk: let packages tweak sc_po_check pattern
28923         * top/maint.mk (sc_po_check): Add translation-markers, to allow
28924         finding files with other translation markers.
28926 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
28928         euidaccess: speed up 'configure' on GNU hosts
28929         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
28930         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
28931         it's needed only in this case.  Use AC_CHECK_DECLS, not
28932         AC_CHECK_DECLS_ONCE.
28933         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
28934         or AC_REQUIRE for AC_FUNC_GETGROUPS.
28936         * lib/regexec.c (re_search_internal): Fix grammar in comment.
28938 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
28940         fchmodat, fchownat, fstatat: port to non-inlining compilers
28941         Problem reported for FreeBSD 9 by Jim Meyering in
28942         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00070.html>.
28943         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
28944         New files, which define FCHMODAT_INLINE etc.
28945         * lib/fchmodat.c (FCHMODAT_INLINE):
28946         * lib/fchownat.c (FCHOWNAT_INLINE):
28947         * lib/fstatat.c (FSTATAT_INLINE):
28948         Remove, as chmodat.c etc. now do this.
28949         * modules/fchmodat (Files): Add lib/chmodat.c.
28950         * modules/fchownat (Files): Add lib/chownat.c.
28951         * modules/fstatat (Files): Add lib/statat.c.
28953 2012-10-15  Jim Meyering  <jim@meyering.net>
28955         fchmodat.c, fchownat.c: compile-impeding typos
28956         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
28957         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
28958         Introduced in commit v0.0-7636-gd202279.
28960 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
28962         fcntl-h: support GNU flags like O_IGNORE_CTTY
28963         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
28964         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
28965         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
28966         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
28967         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
28968         Define to 0 if not already defined.
28969         * tests/test-fcntl-h.c: Test these new flags.
28971 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
28973         faccessat, etc.: support AT_FDCWD-only use
28974         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
28975         this function only if its first argument is AT_FDCWD.
28976         Emacs wants faccessat for AT_EACCESS but not for any first-arg
28977         values other than AT_FDCWD, so it doesn't want all the openat
28978         machinery with fchdir etc.
28979         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
28980         * modules/fstatat, modules/mkdirat, modules/openat (Files):
28981         * modules/unlinkat (Files):
28982         Remove lib/openat-priv.h, as at-internal supplies this file.
28983         Removing this file here allows us to support programs like Emacs
28984         that avoid at-internal.
28986         faccessat: speed up 'configure' on mainstream hosts
28987         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
28988         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
28989         since it's only on unusual platforms that we need to check for
28990         'access', and it's better not to slow 'configure' down on all
28991         platforms.
28993         faccessat: port to Solaris 10
28994         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
28995         Needed on Solaris 10, which doesn't have AT_EACCESS,
28996         so we need the Gnulib fcntl.h, which defines it.
28998 2012-10-14  Pádraig Brady  <P@draigBrady.com>
28999         canonicalize: fix C89 compilation
29000         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
29001         declarations so C89 is supported.  Also remove the comment
29002         referencing memorty allocation as the suggested feature could
29003         not be implemented as suggested.
29004         Reported by Michael Goffioul.
29006 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
29008         group-member: omit unnecessary dependencies
29009         This is for Emacs, which has its own allocator and where we
29010         don't want to use xalloc.
29011         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
29012         since we no longer use xmalloc.  Do not include stdbool.h, since
29013         the changes below happen to remove the only use of bool.
29014         (GROUPBUF_SIZE): New constant.
29015         (struct group_info): Remove n_groups member.  Add groupbuf member.
29016         This lets us get the groups without using malloc, usually.
29017         (free_group_info, get_group_info): Adjust to this.
29018         (get_group_info): Return the number of groups found, or -1 on error.
29019         Use plain malloc not xmalloc, and treat its failure as if there
29020         are no groups, as the user already loses in case of error.
29021         (group_member): Simplify, based on changes to get_group_info.
29022         * modules/group-member (Depends-on): Remove dependencies on
29023         xalloc and stdbool.  Add dependency on xalloc-oversized.
29025 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
29027         gethrxtime: port to C++
29028         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
29030 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
29032         ptsname: fix macro-name typo
29033         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
29035 2012-10-03  Simon Josefsson  <simon@josefsson.org>
29037         inttostr: Relax license.
29038         * modules/inttostr (License): Change from LGPL to LGPLv2+.
29040 2012-10-03  Eric Blake  <eblake@redhat.com>
29042         ptsname_r: support ptys returned by FreeBSD posix_openpt
29043         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
29044         lives in /dev/pts/.
29046 2012-10-02  Eric Blake  <eblake@redhat.com>
29048         pselect: reject invalid file descriptors
29049         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
29050         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
29051         * modules/pselect (Depends-on): Add dup2.
29052         * doc/posix-functions/pselect.texi (pselect): Document this.
29054         select: reject invalid file descriptors
29055         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
29056         * lib/select.c (rpl_select) [!win32]: Work around it.
29057         * modules/select (Depends-on): Add dup2.
29058         * doc/posix-functions/select.texi (select): Document this.
29060         select: enhance test
29061         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
29062         New functions.
29063         (test_function): Enhance test.
29064         (do_select_bad_fd): Avoid any stale errno values.
29066         ptsname: reject invalid file descriptors
29067         http://www.austingroupbugs.net/view.php?id=503
29068         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
29069         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
29070         * modules/stdlib (Makefile.am): Replace witness.
29071         * lib/stdlib.in.h (ptsname): Allow for replacement.
29072         * modules/ptsname (configure.ac): Trigger replacement.
29073         * doc/posix-functions/ptsname.texi (ptsname): Document this.
29075 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
29077         hash-pjw-bare: new module
29078         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
29079         * lib/hash-pjw-bare.h: Likewise.
29080         * modules/hash-pjw-bare: New file.
29081         * MODULES.html.sh (Misc): Add it.
29083 2012-10-02  Eric Blake  <eblake@redhat.com>
29085         manywarnings: cater to more gcc infelicities
29086         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
29087         -Wuninitialized without -O.
29089 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
29091         select, poll tests: Make setsockopt invocation effective.
29092         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
29093         the bind() call.
29094         * tests/test-select.h (open_server_socket): Likewise.
29096 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
29098         sockets, sys_stat: restore AC_C_INLINE
29099         This undoes the 2012-09-22 patch.
29100         * m4/sockets.m4 (gl_SOCKETS):
29101         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
29102         Restore AC_C_INLINE, since MSVC requires __inline or _inline
29103         and does not support plain 'inline'.  Reported by Bruno Haible in
29104         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00183.html>.
29106 2012-09-30  Bruno Haible  <bruno@clisp.org>
29108         localeconv tests: Avoid test failure on OpenIndiana.
29109         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
29110         skip the 'grouping' and 'mon_grouping' tests.
29111         Reported by Jim Meyering.
29113 2012-09-30  Bruno Haible  <bruno@clisp.org>
29115         havelib: Follow libtool developments.
29116         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
29117         Suggested by Simon Josefsson.
29119 2012-09-29  Jim Meyering  <meyering@redhat.com>
29121         fstatat.c: fix a compile-impeding typo
29122         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
29123         Introduced in commit v0.0-7636-gd202279.
29124         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
29126 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
29128         extern-inline: provide a -Wundef safe config.h
29129         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
29130         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
29131         to produce a -Wundef warning free config.h.
29133 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
29135         hash-pjw: relax license to LGPLv2+
29136         * modules/hash-pjw (License): Relax, with consent of author.
29138 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
29140         maint.mk: fix strict vs. lazy variable issues with RELEASE
29141         * top/maint.mk (_equal): New function.
29142         (member_check): Strip the result to avoid spurious spaces.
29143         (url_dir_list): Do not use ifeq, which is strict, as it will
29144         require RELEASE_TYPE to be defined.
29145         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
29146         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
29147         (announcement_Cc_alpha,announcement_mail_headers_alpha)
29148         (announcement_Cc_beta,announcement_mail_headers_beta)
29149         (announcement_Cc_stable,announcement_mail_headers_stable): these.
29150         (release): Do not depend on $(release-type), as it forces its
29151         evaluation.  Bounce to it.
29153 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
29155         maint.mk: formatting changes
29156         * top/maint.mk: Indent bodies of if's.
29158 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
29160         maint.mk: factor the validation of RELEASE_TYPE
29161         With help from Jim Meyering.
29162         http://lists.gnu.org/r/bug-gnulib/2012-09/msg00132.html
29163         * top/maint.mk (_empty, _sp): Move their definition earlier.
29164         (member-check, release-type): New.
29165         Use the latter instead of $(RELEASE_TYPE).
29166         Remove now useless local checks.
29168 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
29170         maint.mk: provide "make upload" to ease uploading
29171         See
29172         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00028.html>.
29173         Do not depend simply on the current $(VERSION), as there may have been
29174         new commits since the tarball generation.  Rather, rely on $(RELEASE),
29175         as "make release-commit" already does.
29177         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
29178         "make TYPE".
29180         * top/maint.mk (upload_command, upload, release): New.
29181         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
29182         (VERSION): first word of $(RELEASE) is always right.
29183         (emit_upload_commands): Adjust.
29184         * top/README-release: Update.
29186 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
29188         maint.mk: silent rules
29189         With help from Stefano Lattarini.
29190         * top/maint.mk (writable-files): Use $(AM_V_GEN).
29191         (announcement): Use $(AM_V_at).
29193 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
29195         localename: port gl_locale_name_thread_unsafe to FreeBSD
29196         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
29197         and use the simpler FreeBSD implementation on Mac OS X as well.
29198         Original idea suggested by Ed Maste in
29199         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00094.html>.
29201 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
29203         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
29204         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
29205         * lib/mbuiter.c, lib/xsize.c: New files.
29206         * lib/binary-io.h (BINARY_IO_INLINE):
29207         * lib/eealloc.h (EEALLOC_INLINE):
29208         * lib/mbfile.h (MBFILE_INLINE):
29209         * lib/mbiter.h (MBITER_INLINE):
29210         * lib/mbuiter.h (MBUITER_INLINE):
29211         * lib/xsize.h (XSIZE_INLINE):
29212         New macros.
29213         Replace all uses of 'static inline' with them.
29214         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
29215         * m4/eealloc.m4 (gl_EEALLOC):
29216         * m4/mbfile.m4 (gl_MBFILE):
29217         * m4/mbiter.m4 (gl_MBITER):
29218         * m4/xsize.m4 (gl_XSIZE):
29219         Do not require AC_C_INLINE.
29220         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
29221         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
29222         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
29223         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
29224         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
29225         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
29226         * modules/binary-io, modules/eealloc, modules/mbfile:
29227         * modules/mbiter, modules/mbuiter:
29228         (Depends-on): Add extern-inline.
29230         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
29231         * lib/pipe-filter-aux.c: New file.
29232         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
29233         Replace all uses of 'static inline' with it.
29234         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
29235         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
29236         (filter_retcode): No real need for inline here.
29237         * modules/pipe-filter-gi, modules/pipe-filter-ii:
29238         (Files): Add lib/pipe-filter-aux.c.
29239         (Depends-on): Add extern-inline.
29240         (configure.ac): Do not require AC_C_INLINE.
29241         (lib_SOURCES): Add pipe-filter-aux.c.
29243         fdutimensat: omit unnecessary AC_C_INLINE
29244         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
29246         fchmodat, fchownat, fstatat: use extern-inline
29247         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
29248         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
29249         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
29250         New macros.
29251         * lib/openat.h:
29252         Replace all uses of 'static inline' with them.
29253         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
29254         * modules/fchmodat, modules/fchownat, modules/fstatat:
29255         * modules/openat-h:
29256         (Depends-on):
29257         Add extern-inline.
29258         (configure.ac): Remove AC_C_INLINE.
29260         acl, mbchar, priv-set: use extern-inline
29261         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
29262         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
29263         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
29264         New macros.
29265         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
29266         Replace all uses of 'static inline' with it.
29267         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
29268         * m4/acl.m4 (gl_FUNC_ACL):
29269         * m4/mbchar.m4 (gl_MBCHAR):
29270         * m4/priv-set.m4 (gl_PRIV_SET):
29271         Remove AC_C_INLINE, since 'inline' is no longer used directly.
29272         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
29273         Add extern-inline.
29275         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
29276         * m4/sockets.m4 (gl_SOCKETS):
29277         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
29278         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
29279         environments where it's already guaranteed to work, so we needn't
29280         check for it at 'configure'-time.
29282         tls-tests: omit unnecessary 'inline'
29283         * tests/test-tls.c (perhaps_yield): No longer inline.
29284         Simplicity and portability trump efficiency in test cases.
29286         utimens-tests: avoid unnecessary 'inline'
29287         * modules/fdutimensat-tests (configure.ac):
29288         * modules/futimens-tests (configure.ac):
29289         * modules/utimens-tests (configure.ac):
29290         * modules/utimensat-tests (configure.ac):
29291         Remove AC_C_INLINE.
29292         * tests/test-utimens-common.h (ctime_compare):
29293         No longer inline.  Simplicity and portability trump efficiency here.
29295         misc: don't limit commentary to inline functions
29296         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
29297         * lib/xalloc-oversized.h, lib/xsize.h:
29298         Contrast macros to functions in general, not just to inline functions,
29299         when the commentary does not apply only to inline functions.
29301 2012-09-20  Jim Meyering  <meyering@redhat.com>
29303         non-recursive-gnulib-prefix-hack: new module
29304         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
29305         the file that originated in Bison.
29306         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
29307         largely copied from a snippet that resided in bison's configure.ac.
29308         * modules/non-recursive-gnulib-prefix-hack: New file.
29309         * MODULES.html.sh (Support for maintaining and releasing projects):
29310         Add it.
29312 2012-09-18  Jim Meyering  <meyering@redhat.com>
29314         maint.mk: generalize _gl_tight_scope for non-recursive make
29315         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
29316         that *.h would describe additional .h files in the directory
29317         specified by $(_gl_TS_dir).  I.e., add this...
29318         (_gl_TS_other_headers): New variable.
29320         maint.mk: exempt trailing blanks found in "binary" files
29321         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
29322         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
29323         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
29325 2012-09-17  Jim Meyering  <meyering@redhat.com>
29327         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
29328         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
29329         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
29330         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
29332 2012-09-17  Jim Meyering  <meyering@redhat.com>
29334         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
29335         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
29336         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
29337         It is not in the same category as "exit (0)" or "exit (1)", and
29338         besides, I know of no symbolic name for that 77.  Reported by
29339         Richard W.M. Jones in
29340         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
29342 2012-09-17  Jim Meyering  <meyering@redhat.com>
29344         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
29345         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
29346         all uses of #define, not just those that start in column 1.
29347         Richard W.M. Jones reported a false positive in
29348         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
29350 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
29352         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
29353         * lib/localcharset.c (locale_charset) [DARWIN7]:
29354         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
29355         as these two values are incompatible.  Problem reported by Max Horn.
29356         For more discussion, please see
29357         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00061.html>.
29359         doc: document sticky-EOF issue
29360         * doc/posix-functions/fgetc.texi (fgetc):
29361         * doc/posix-functions/fgets.texi (fgets):
29362         * doc/posix-functions/fread.texi (fread):
29363         * doc/posix-functions/fscanf.texi (fscanf):
29364         * doc/posix-functions/getc.texi (getc):
29365         * doc/posix-functions/getchar.texi (getchar):
29366         * doc/posix-functions/scanf.texi (scanf):
29367         Mention that glibc and default Solaris do not conform to
29368         C99 and POSIX-2001 or later, with respect to how getchar
29369         etc. behave when feof reports nonzero.
29371 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
29373         poll: fix poll(0, NULL, msec)
29374         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
29375         but nfd is 0.  In that case poll should behave like select.
29377 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
29378             Paolo Bonzini  <bonzini@gnu.org>
29380         poll: fix for systems that can't recv() on a non-socket
29381         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
29382         is readable.  In this case POLLHUP will not be supported.
29383         * doc/posix-functions/poll.texi: Document this.
29385 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
29387         poll/select: document portability problems not fixed by Gnulib.
29388         * doc/posix-functions/poll.texi: poll does not work well on
29389         pipes under Windows.  It has the same limitations as select on
29390         BeOS.
29391         * doc/posix-functions/select.texi: select does not work well
29392         on pipes under Windows.
29394 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
29396         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
29397         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
29398         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
29399         <http://lists.gnu.org/r/bug-tar/2012-07/msg00018.html>.
29401 2012-09-06  Eric Blake  <eblake@redhat.com>
29403         net_if: give more details about the bug being fixed
29404         * doc/posix-headers/net_if.texi: Add clarification.
29406 2012-09-05  Eric Blake  <eblake@redhat.com>
29408         net_if: new module
29409         * modules/net_if: New module, borrowing ideas from netinet_in.
29410         * m4/net_if_h.m4: New file.
29411         * lib/net_if.in.h: Likewise.
29412         * doc/posix-headers/net_if.texi (net/if.h): Document it.
29413         * MODULES.html.sh (lacking POSIX:2008): Likewise.
29414         * tests/test-net_if.c: Make function checks conditional.
29415         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
29417 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
29419         readutmp: fix non-portable UT_PID use
29420         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
29421         Use `UT_PID (u) > 0' as absolute condition.
29423 2012-09-04  Jim Meyering  <meyering@redhat.com>
29425         fts: reduce two or more trailing spaces to just one, usually
29426         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
29427         or more slashes, trim all but the final one.  But if a name consists
29428         solely of two slashes, don't modify it.  If it consists solely of
29429         three or more slashes, strip all but one.
29431         This is part of the solution to a minor problem with rm:
29432         it would print a bogus ELOOP diagnostic when failing to remove
29433         the slash-decorated name of a symlink-to-directory:
29435             $ mkdir d && ln -s d s && env rm -r s/
29436             rm: cannot remove 's': Too many levels of symbolic links
29438         With the change below and a trivial don't-trim-trailing-slashes
29439         adjustment to remove.c, it does this:
29441             $ env rm -r s/
29442             rm: cannot remove 's/': Not a directory
29444         Improved by: Eric Blake
29446         fts: when there is no risk of overlap, use memcpy, not memmove
29447         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
29449 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
29451         stdbool: be more compatible with mixed C/C++ compiles
29452         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
29453         Define to bool, true, false, respectively, as GCC's builtin
29454         stdbool.h does.  Problem reported by Michael Goffioul in
29455         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00143.html>.
29457 2012-08-28  Jim Meyering  <meyering@redhat.com>
29459         revert last change: it was not needed
29460         * tests/test-vc-list-files-git.sh: There's already a test for
29461         a working git, just below.
29463 2012-08-28  Jim Meyering  <meyering@redhat.com>
29465         tests: test-vc-list-files-git.sh: skip if git is not available
29466         * tests/test-vc-list-files-git.sh: Skip this test when git is
29467         not available.
29469 2012-08-26  Bruno Haible  <bruno@clisp.org>
29471         gnulib-tool: Remove no-op option --no-changelog.
29472         * gnulib-tool (func_usage): Don't mention --no-changelog.
29473         (do_changelog): Remove variable.
29474         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
29476 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
29478         doc: remove fdl-1.2.texi
29479         It is no longer used or maintained, and its use of @acronym
29480         is problematic.  See the thread containing
29481         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00134.html>.
29482         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
29483         * doc/old-licenses/fdl-1.2.texi: Remove.
29485         execinfo: port to FreeBSD
29486         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
29487         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
29488         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00113.html>.
29489         * modules/execinfo (Link): Add $(LIB_EXECINFO).
29491 2012-08-23  Jim Meyering  <meyering@redhat.com>
29493         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
29494         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
29495         to placate gcc's -Wold-style-declaration.
29497 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
29499         doc: do not use @acronym
29500         * doc/inet_ntoa.texi (inet_ntoa):
29501         * doc/parse-datetime.texi (Seconds since the Epoch)
29502         (Specifying time zone rules):
29503         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
29504         Don't use @acronym.  Problem reported by John Darlington in
29505         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00124.html>.
29507 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
29509         stdnoreturn: port to newer GCCs
29510         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
29511         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
29512         Problem reported by Jim Meyering in
29513         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00121.html>.
29514         Also, rename the 'test' function to a void a clash with the
29515         already-supplied 'main' function; this fixes a bug that incorrectly
29516         rejected GCC 4.7.1's <stdnoreturn.h>.
29517         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
29518         Document GCC problem.
29520 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
29522         pipe-filter: fix comment typo
29523         * lib/pipe-filter.h: Mention correct function.
29525 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
29527         execinfo: new module
29528         This is for Emacs.  Currently, it provides a no-effect stub
29529         on all platforms where it does not already work.
29530         It already works on glibc-based systems, and on Solaris 11.
29531         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
29532         New files.
29533         * doc/glibc-headers/execinfo.texi (execinfo.h):
29534         * MODULES.html.sh (Misc): Document it.
29536 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
29538         extern-inline: support old GCC 'inline'
29539         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
29540         if available.  This applies to GCC versions 2.7 through 4.2, or
29541         when newer GCC is using -fgnu89-inline.  The goal is to address
29542         some of the performance issues mentioned by Bruno Haible in
29543         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00097.html>.
29545 2012-08-20  Eric Blake  <eblake@redhat.com>
29547         maint.mk: avoid redundant file name in message
29548         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
29549         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
29550         (sc_makefile_path_separator_check): Remove bogus $(ME).
29552 2012-08-20  Mike Frysinger  <vapier@gentoo.org>
29554         timer-time: fix link order when static linking on glibc
29555         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
29556         _after_ -lrt so that it's significant.
29558 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
29560         timespec: omit unnecessary AC_C_INLINE
29561         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
29563         stat-time: omit unnecessary AC_C_INLINE
29564         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
29565         Do not require AC_C_INLINE.
29567         ignore-value: omit unnecessary AC_C_INLINE
29568         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
29570         sys_select: avoid 'static inline'
29571         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
29573         mktime: avoid 'static inline'
29574         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
29575         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
29577 2012-08-19  Bruno Haible  <bruno@clisp.org>
29579         gnulib-tool: Improve coding style.
29580         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
29581         func_emit_lib_Makefile_am.
29582         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
29584 2012-08-19  Bruno Haible  <bruno@clisp.org>
29586         gnulib-tool: Fix indentation.
29587         * gnulib-tool (func_import): Fix indentation.
29589 2012-08-19  Bruno Haible  <bruno@clisp.org>
29591         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
29592         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
29593         on the list of removed files.
29595 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
29597         test-parse-datetime: avoid glibc leap-second glitch
29598         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
29599         with the 2012 rules.  Problem reported by Bruce Dubbs in
29600         <http://bugs.gnu.org/12206>.
29602 2012-08-14  Bruno Haible  <bruno@clisp.org>
29604         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
29605         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
29606         from argument.
29607         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
29609 2012-08-14  Eric Blake  <eblake@redhat.com>
29611         ldexp: relax license
29612         * modules/ldexp (License): Trivial relax, since the module only
29613         provides a permissively licensed m4 file.
29615 2012-08-13  Bruno Haible  <bruno@clisp.org>
29617         gnulib-tool: Fix persistence of --witness-c-macro option.
29618         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
29619         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
29621 2012-08-11  Eric Blake  <eblake@redhat.com>
29623         count-leading-zeros: use a lookup table on non-gcc compilers
29624         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
29625         alternate implementation, suggested by Jim Meyering.
29627 2012-08-10  Eric Blake  <eblake@redhat.com>
29629         count-leading-zeros: new module
29630         * modules/count-leading-zeros: New module.
29631         * m4/count-leading-zeros.m4: New file.
29632         * lib/count-leading-zeros.h: Likewise.
29633         * modules/count-leading-zeros-tests: New test.
29634         * tests/test-count-leading-zeros.c: New file.
29635         * MODULES.html.sh (Integer arithmetic functions): Document it.
29637 2012-08-07  Simon Josefsson  <simon@josefsson.org>
29638             Jim Meyering  <meyering@redhat.com>
29640         maintainer-makefile: Fix syntax error with dash.
29641         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
29642         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
29644 2012-08-05  Jim Meyering  <meyering@redhat.com>
29646         extern-inline: also ignore -Wmissing-declarations
29647         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
29648         required with gcc-4.8.0-to-be.
29650         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
29651         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
29652         for /error ?([^,]*)/.  This avoids false-positives for strings like
29653         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
29655 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
29657         gnumakefile: better interaction with Automake-NG
29658         * modules/gnumakefile [Makefile.am]: The makefiles generated by
29659         Automake-NG always contain a definition of VPATH, even in non-VPATH
29660         builds (its value being simply '.' in that case).  So, in the
29661         'clean-GNUmakefile' rule, to determine whether running under a
29662         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
29663         '$(VPATH)' expands to the empty string.
29665 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
29667         base64: Use extern C scope in header file, for C++.
29668         * lib/base64.h: Add C++ namespace protection.
29670 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
29672         stat-time, timespec, u64: support naive out-of-dir builds
29673         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
29674         Use '#include "foo.h"', not '#include <foo.h>', when including
29675         one's own interface.  This works better when configuring with
29676         out-of-directory builds, since packages need not add an
29677         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
29679 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
29681         utimens: use extern-inline
29682         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
29683         * lib/utimens.h: Add copyright notice, since this is now large enough
29684         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
29685         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
29686         * modules/utimens (Depends-on): Add extern-inline.
29688         u64: use extern-inline
29689         * lib/u64.c: New file.
29690         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
29691         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
29692         * modules/u64 (Files): Add lib/u64.c.
29693         (Depends-on): Add extern-inline.
29694         (configure.ac): No need to require AC_C_INLINE, since extern-inline
29695         does that now.
29696         (lib_SOURCES): Add u64.c.
29698         timespec: use extern-inline
29699         * lib/timespec.c: New file.
29700         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
29701         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
29702         * modules/timespec (Files): Add lib/timespec.c.
29703         (Depends-on): Add extern-inline.
29704         (lib_SOURCES): Add timespec.c.
29706         stat-time: use extern-inline
29707         * lib/stat-time.c: New file.
29708         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
29709         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
29710         * modules/stat-time (Files): Add lib/stat-time.c.
29711         (Depends-on): Add extern-inline.
29712         (lib_SOURCES): Add stat-time.c.
29714         extern-inline: new module
29715         * modules/extern-inline, m4/extern-inline.m4: New files.
29716         This is for better support of 'extern inline' a la ISO C99,
29717         with a portable alternative on compilers that do not support
29718         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
29719         of the Emacs executable, when compiled with debugging disabled,
29720         which is a typical way that Emacs is built while developing.
29722 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
29724         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
29725         * build-aux/do-release-commit-and-tag: Move variable definitions
29726         together.
29727         ($branch): Instead of defaulting to "master", default to the current
29728         branch (as gnu-web-doc-update does).
29729         (help): Display the current values of the option arguments.
29730         * top/maint.mk (release-commit): New.
29731         * top/README-release: Simplify the corresponding step.
29733 2012-07-30  Eric Blake  <eblake@redhat.com>
29735         passfd: fix comment on recvfd
29736         * lib/passfd.c (recvfd): Fix comment.
29737         Reported by Jann Horn <jannhorn@googlemail.com>.
29739 2012-07-30  Jim Meyering  <meyering@redhat.com>
29741         maint.mk: avoid a sub-shell
29742         * top/maint.mk (release-prep): Remove unneeded sub-shell.
29744 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
29746         maint.mk: use silent-rules support from Automake
29747         * top/maint.mk (news-check, vc-diff-check, announcement)
29748         (no-submodule-changes, alpha beta stable, release-prep)
29749         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
29751 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
29753         maint.mk: provide a web-manual-update target
29754         * top/maint.mk: here.
29755         * top/README-release: Use it to simplify the web manual update step.
29757 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
29759         README-release: shorten the circuit to post a news
29760         * top/README-release: Point directly to the news submission form.
29762 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
29764         gnu-web-doc-update: fix --help
29765         * build-aux/gnu-web-doc-update: The information "top level" was written
29766         twice.
29768 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
29770         maint.mk: absolute VPATH issue
29771         * top/maint.mk (release-prep): Help Git find .git/.
29772         From Jim Meyering.
29774 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
29776         gitlog-to-changelog: fix previous change
29777         * build-aux/gitlog-to-changelog: Fix condition.
29778         Add missing ";".
29780 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
29782         gitlog-to-changelog: don't expect .git to be in $srcdir
29783         Reported by Bruno Haible.
29784         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00265.html>
29785         * build-aux/gitlog-to-changelog (&git_dir_option): New.
29786         Use it.
29788 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
29790         maint.mk: absolute VPATH build fix
29791         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
29792         $(srcdir) is not a parent of $(builddir).
29794 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
29796         clean-temp: Fix memory leak.
29797         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
29798         'files' members of tmpdir.
29800 2012-07-27  Jim Meyering  <meyering@redhat.com>
29802         maint.mk: new rule: refresh-gnulib-patches
29803         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
29804         Use this rule to refresh them.
29805         * top/maint.mk (refresh-gnulib-patches): New rule.
29807 2012-07-24  Bruno Haible  <bruno@clisp.org>
29809         gnulib-tool: Fix handling of inctests variable.
29810         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
29811         Reported by Nick Bowler <nbowler@elliptictech.com>.
29813 2012-07-22  Bruno Haible  <bruno@clisp.org>
29815         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
29816         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
29817         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
29818         Remove exemption for getpass.h.
29819         Suggested by Eric Blake.
29821 2012-07-20  Eric Blake  <eblake@redhat.com>
29823         verify: document conflict with -Wnested-externs
29824         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
29826         maint.mk: forbid exit(-1)
29827         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
29829 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
29831         fsusage: port back to Solaris
29832         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
29833         error (fsd not declared) on Solaris 10.  Reported privately by
29834         Andrew Borodin.
29836 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
29838         gnu-web-doc-update: fix error messages
29839         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
29841         gnu-web-doc-update: check the requirements.
29842         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
29843         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
29844         * build-aux/bootstrap (find_tool): Comment change.
29846 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
29848         maint.mk: minor simplication.
29849         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
29850         for default values.
29852 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
29854         gitlog-to-changelog: VPATH build issues
29855         If builddir is not a subdirectory of srcdir, running git from it will
29856         fail.
29857         * build-aux/gitlog-to-changelog (--srcdir): New option.
29859 2012-07-15  Bruno Haible  <bruno@clisp.org>
29861         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
29862         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
29863         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
29864         Remove exemption for fpending.h.
29865         Suggested by Eric Blake.
29867 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
29869         pthread_sigmask: fix bug on FreeBSD 9
29870         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
29871         Include string.h.
29872         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
29873         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
29874         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
29875         but pthread_sigmask (1729, NULL, NULL) returns zero.
29876         See <http://bugs.gnu.org/11884>.
29877         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
29878         by inspecting whether the main call changed the old mask.
29880 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
29882         README-release: make it more legible
29883         * top/README-release: Improve typography slightly.
29885 2012-07-15  Jim Meyering  <meyering@redhat.com>
29887         maint: require that each sc_... command start with "@"
29888         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
29889         "make sc_maint" helps us avoid this nit.
29891 2012-07-15  Jim Meyering  <meyering@redhat.com>
29893         maint.mk: add leading "@" to quiet new "make syntax-check" rule
29894         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
29896 2012-07-13  Eric Blake  <eblake@redhat.com>
29898         maint.mk: new syntax check for HAVE_DECL checks
29899         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
29900         * cfg.mk
29901         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
29902         Exempt some false positives.
29903         Based on a report by Karel Zak.
29905         argp: make HAVE_DECL usage consistent
29906         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
29907         macros, not whether they are defined.
29908         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
29909         convention with other declaration checks.
29910         Reported by Karel Zak, with suggestions from Paul Eggert.
29912         stat-time: relax license to LGPLv2+
29913         * modules/stat-time (License): Relax, with consent of all authors.
29915         strndup: fix m4 usage error
29916         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
29917         defined, to either 0 or 1.
29918         Reported by Karel Zak.
29920 2012-07-11  Jim Meyering  <meyering@redhat.com>
29922         maint: enable the sc_avoid_if_before_free syntax-check rule
29923         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
29924         (if_before_free_offenders_): Define.
29925         (if_before_free_basename_re_): Define.
29926         Exempt current files with useless if-before-free.
29928 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
29930         gettext: do not assume '#define ... defined ...' behavior
29931         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
29932         Do not use '#define FOO ... defined BAR ...', as the C standard says
29933         it's not portable to expect that this works after macro expansion.
29934         Problem reported for gzip by Steven M. Schweda in
29935         <http://lists.gnu.org/r/bug-gzip/2012-07/msg00000.html>.
29937 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
29939         getloadavg: clean out old Emacs and Autoconf cruft
29940         See Glenn Morris in <http://bugs.gnu.org/11905>.
29941         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
29942         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
29943         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
29944         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
29946 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
29948         bootstrap: let warn be like tests/init.sh's warn_
29949         Reported by Jim Meyering.
29950         * build-aux/bootstrap (warn): Remove, replaced by...
29951         (warnf_, warn_): these.
29952         Adjust callers.
29953         Shorten messages that no longer fit in 80 columns.
29955 2012-07-09  Bruno Haible  <bruno@clisp.org>
29957         getopt: Simplify after Emacs changed.
29958         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
29959         (gl_GETOPT_IFELSE): Remove macro.
29961 2012-07-09  Jim Meyering  <meyering@redhat.com>
29963         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
29964         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
29966         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
29967         Bugs in both of those conspired to make the
29968         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
29969         _sc_search_regexp's handling of non-empty $in_files would filter
29970         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
29971         choice of in_files value meant there would be no match in most
29972         projects, due to the presence of two or more Makefile.in files.
29973         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
29974         Fix a bug in how a non-empty $$in_files was processed:
29975         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
29976         in spite of the name, it's a regexp, not a list of file names.
29978 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
29980         getloadavg, getopt: fix commentary re configure.in
29981         Autoconf is deprecating the name 'configure.in', so change it to
29982         to the new name 'configure.ac' in a couple of places.
29983         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
29984         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
29985         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
29986         Emacs has renamed it to configure.ac, and it no longer refers
29987         to these macros anyway.
29989         timespec: mark functions with const attributes
29990         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
29991         Mark with _GL_ATTRIBUTE_CONST.
29993 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
29995         canonicalize[-lgpl]: handle "guessing" values when cross-building
29996         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
29997         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
29998         matches "*yes" instead of just "yes".  Regression introduced in commit
29999         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
30001 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
30002             Bruno Haible  <bruno@clisp.org>
30004         canonicalize: make the right guess when cross-compiling to GNU
30005         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
30006         determine whether cross-compiling to glibc systems, so as to
30007         include GNU/Hurd.
30009 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
30011         timespec-sub: avoid duplicate include
30012         * lib/timespec-sub.c: Do not include <config.h> twice.
30013         Reported by Juanma Barranquero.
30015 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
30017         bootstrap: use a more consistent error reporting scheme
30018         * build-aux/bootstrap (warn, die): New.
30019         Use them.
30021 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
30023         sys_time: allow too-wide tv_sec
30024         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
30025         timeval even if tv_sec is wider than time_t.  This allows
30026         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
30027         as without this patch gnulib replaces struct timeval
30028         and OpenBSD futimes therefore has a type mismatch.
30029         * doc/posix-headers/sys_time.texi: Mention this.
30031         pthread: check for both pthread_create and pthread_join
30032         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
30033         alter the check so that it tests for both pthread_create and
30034         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
30035         Suggested by Bruno Haible and Richard Yao in
30036         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00048.html>.
30038         parse-datetime: doc tuneup
30039         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
30040         spacing issues.
30042 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
30044         do-release-commit-and-tag: fix the previous commit
30045         * build-aux/do-release-commit-and-tag: Actually the test was right,
30046         but the comment and the error message were misleading.
30047         Fix comment, and improve error message.
30048         Perform check first, so that NEWS is not modified uselessly.
30050         do-release-commit-and-tag: fix typo
30051         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
30052         _not_ start with a stub.
30054 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
30056         pthread: check for pthread_create, not pthread_join
30057         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
30058         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
30059         pthread_join in libc.  I hope this removes the need for all the
30060         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
30061         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00042.html>.
30063 2012-07-04  Jim Meyering  <meyering@redhat.com>
30065         parse-datetime: fix failure to diagnose invalid input
30066         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
30067         rather than diagnosing the invalid input.  Now it reports this:
30068         date: invalid date '\260'
30069         * lib/parse-datetime.y (to_uchar): Define.
30070         (yylex): Don't sign-extend "other" bytes.
30071         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
30072         Thanks to Bruno Haible for the patch to this file.
30073         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
30074         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
30076 2012-07-03  Jim Meyering  <meyering@redhat.com>
30078         bootstrap: do not require now-removed build-aux/missing
30079         Now that build-aux/missing is, er, missing, bootstrap would
30080         silently fail.
30081         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
30082         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
30083         no longer part of gnulib.
30084         Diagnose the failure.
30086 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
30088         alloca: add support for HP NonStop TNS/E native
30089         * lib/alloca.in.h (alloca): Support the new host.
30090         From a suggestion by Joachim Schmitz in
30091         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00355.html>.
30093 2012-07-02  Pádraig Brady  <P@draigBrady.com>
30095         fsusage: remove code not needed on non GNU/Linux systems.
30097         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
30098         Don't include headers no longer needed in this case.
30099         * lib/fsusage.c [STAT_STATVFS &&
30100         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
30101         STAT_STATFS2_FRSIZE to exclude code not used in this case.
30103 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
30105         fsusage: include files needed for glibc 2.6 fallback
30106         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
30107         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
30108         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
30109         Problem reported by Ludovic Courtès in
30110         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00005.html>.
30112         fsusage: avoid needless check on GNU/Linux
30113         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
30114         on GNU/Linux systems, since it can't possibly work.
30116 2012-07-01  Bruno Haible  <bruno@clisp.org>
30118         log: Fix an autoconf >= 2.64 warning.
30119         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
30120         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
30122 2012-06-28  Bruno Haible  <bruno@clisp.org>
30124         log10f: Fix possible configuration problem.
30125         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
30126         $LOGF_LIBM.
30127         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
30129 2012-06-28  Bruno Haible  <bruno@clisp.org>
30131         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
30132         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
30133         not gl_cv_func_unlink_works.
30134         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
30136 2012-06-27  Eric Blake  <eblake@redhat.com>
30138         config: drop scripts that automake says are not independent
30139         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
30140         * build-aux/elisp-comp: Delete.
30141         * build-aux/missing: Likewise.
30142         * build-aux/ylwrap: Likewise.
30143         * modules/elisp-comp: Likewise.
30144         * MODULES.html.sh: Drop mention of elisp-comp.
30145         * NEWS: Mention this.
30147 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
30149         root-uid: new module
30150         This is for portability to Tandem's NonStop Kernel.
30151         * lib/root-uid.h, modules/root-uid: New files.
30152         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
30153         * lib/write-any-file.c, tests/test-sethostname2.c:
30154         Include "root-uid.h".
30155         * lib/euidaccess.c (euidaccess):
30156         * lib/pt_chown.c (main):
30157         * lib/unlinkdir.c (cannot_unlink_dir):
30158         * lib/write-any-file.c (can_write_any_file):
30159         * m4/mknod.m4 (gl_FUNC_MKNOD):
30160         * tests/test-sethostname2.c (geteuid, main):
30161         Don't assume ROOT_UID == 0.
30162         * modules/euidaccess (Depends-on):
30163         * modules/pt_chown (Depends-on):
30164         * modules/sethostname-tests (Depends-on):
30165         * modules/unlinkdir (Depends-on):
30166         * modules/write-any-file (Depends-on):
30167         Add root-uid.
30169         regex: use locale-independent comparison for codeset name
30170         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
30171         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
30172         for codeset name.
30173         * lib/regex_internal.h: Do not include <strings.h>, since we
30174         no longer use strcasecmp.
30175         * modules/regex (Depends-on): Remove strcase.
30177 2012-06-23  Bruno Haible  <bruno@clisp.org>
30179         getopt-posix: No longer guarantee that option processing is resettable.
30180         * doc/posix-functions/getopt.texi: Drop description of problem with
30181         internal state. Fix info about mingw and msvc9.
30182         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
30183         option processing by getopt(). Run three test programs instead of one.
30184         Simplify cross-compilation guess.
30185         * NEWS: Mention the change.
30186         Reported by Rich Felker <dalias@aerifal.cx>.
30188 2012-06-26  Bruno Haible  <bruno@clisp.org>
30190         argp, regex: Ensure strcasecmp gets declared.
30191         * lib/argp-help.c: Include <strings.h>.
30192         * lib/regex_internal.h: Likewise.
30193         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
30195 2012-06-24  Bruno Haible  <bruno@clisp.org>
30197         ptsname_r: Make it consistent with ptsname on AIX.
30198         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
30199         implementation as for OSF/1.
30200         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
30201         a pty master.
30203         ptsname_r: Make it consistent with ptsname on OSF/1.
30204         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
30205         OSF/1.
30207 2012-06-24  Bruno Haible  <bruno@clisp.org>
30209         ttyname_r: Fix result on OSF/1, Solaris.
30210         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
30212 2012-06-24  Bruno Haible  <bruno@clisp.org>
30214         ptsname_r: Add support for Solaris.
30215         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
30216         Solaris.
30218         ptsname_r: Fix test failure on native Windows.
30219         * modules/ptsname_r (Depends-on): Add isatty.
30221         ptsname_r: Fix test failures on IRIX, Solaris.
30222         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
30223         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
30224         accordingly.
30225         * lib/ptsname_r.c: Include <fcntl.h>.
30226         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
30227         set errno if fd is invalid.
30228         * tests/test-isatty.c (main): Update comments.
30230 2012-06-24  Bruno Haible  <bruno@clisp.org>
30232         ptsname test: Extend test.
30233         * tests/test-ptsname.c: Include <errno.h>.
30234         (main): Test behaviour with invalid file descriptor.
30236 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
30238         time: fix obsolete comment
30239         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
30240         reference to HAVE_STRUCT_TIMESPEC in comment.
30242 2012-06-23  Bruno Haible  <bruno@clisp.org>
30244         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
30245         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
30246         does not handle abbreviated long options with equivalent
30247         disambiguations, set gl_replace_getopt to yes.
30248         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
30250 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
30252         time_r: fix typo that always overrode localtime_r decl
30253         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
30254         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
30255         not in a standard include.
30257 2012-06-22  Bruno Haible  <bruno@clisp.org>
30259         Write "Mac OS X" instead of "MacOS X".
30260         * README: Write "Mac OS X" instead of "MacOS X".
30261         * build-aux/bootstrap: Likewise.
30262         * build-aux/install-reloc: Likewise.
30263         * lib/acl-internal.h: Likewise.
30264         * lib/acl_entries.c: Likewise.
30265         * lib/argp-ba.c: Likewise.
30266         * lib/argp-pv.c: Likewise.
30267         * lib/config.charset: Likewise.
30268         * lib/copy-acl.c: Likewise.
30269         * lib/csharpexec.c: Likewise.
30270         * lib/euidaccess.c: Likewise.
30271         * lib/fbufmode.c: Likewise.
30272         * lib/fflush.c: Likewise.
30273         * lib/file-has-acl.c: Likewise.
30274         * lib/filemode.h: Likewise.
30275         * lib/fpurge.c: Likewise.
30276         * lib/freadable.c: Likewise.
30277         * lib/freadahead.c: Likewise.
30278         * lib/freading.c: Likewise.
30279         * lib/freadptr.c: Likewise.
30280         * lib/freadseek.c: Likewise.
30281         * lib/fseeko.c: Likewise.
30282         * lib/fseterr.c: Likewise.
30283         * lib/fsusage.c: Likewise.
30284         * lib/fwritable.c: Likewise.
30285         * lib/fwriting.c: Likewise.
30286         * lib/get-rusage-as.c: Likewise.
30287         * lib/get-rusage-data.c: Likewise.
30288         * lib/getdomainname.c: Likewise.
30289         * lib/idpriv-drop.c: Likewise.
30290         * lib/idpriv-droptemp.c: Likewise.
30291         * lib/localcharset.c: Likewise.
30292         * lib/locale.in.h: Likewise.
30293         * lib/localename.c: Likewise.
30294         * lib/mbsrtowcs-state.c: Likewise.
30295         * lib/nproc.c: Likewise.
30296         * lib/passfd.c: Likewise.
30297         * lib/posix_openpt.c: Likewise.
30298         * lib/printf-parse.c: Likewise.
30299         * lib/progreloc.c: Likewise.
30300         * lib/safe-read.h: Likewise.
30301         * lib/safe-write.h: Likewise.
30302         * lib/sched.in.h: Likewise.
30303         * lib/set-mode-acl.c: Likewise.
30304         * lib/signal.in.h: Likewise.
30305         * lib/stdint.in.h: Likewise.
30306         * lib/stdio-impl.h: Likewise.
30307         * lib/stdlib.in.h: Likewise.
30308         * lib/strtod.c: Likewise.
30309         * lib/sys_select.in.h: Likewise.
30310         * lib/tcgetsid.c: Likewise.
30311         * lib/unistd.in.h: Likewise.
30312         * lib/unlockpt.c: Likewise.
30313         * lib/vasnprintf.c: Likewise.
30314         * lib/vma-iter.c: Likewise.
30315         * lib/wcsrtombs-state.c: Likewise.
30316         * m4/acl.m4: Likewise.
30317         * m4/acosl.m4: Likewise.
30318         * m4/asinl.m4: Likewise.
30319         * m4/atanl.m4: Likewise.
30320         * m4/c-stack.m4: Likewise.
30321         * m4/cosl.m4: Likewise.
30322         * m4/expl.m4: Likewise.
30323         * m4/extensions.m4: Likewise.
30324         * m4/fdatasync.m4: Likewise.
30325         * m4/fmal.m4: Likewise.
30326         * m4/frexp.m4: Likewise.
30327         * m4/frexpf.m4: Likewise.
30328         * m4/frexpl.m4: Likewise.
30329         * m4/fsusage.m4: Likewise.
30330         * m4/getdomainname.m4: Likewise.
30331         * m4/getloadavg.m4: Likewise.
30332         * m4/getopt.m4: Likewise.
30333         * m4/gettext.m4: Likewise.
30334         * m4/gnulib-common.m4: Likewise.
30335         * m4/intdiv0.m4: Likewise.
30336         * m4/intlmacosx.m4: Likewise.
30337         * m4/largefile.m4: Likewise.
30338         * m4/ldexpl.m4: Likewise.
30339         * m4/link-follow.m4: Likewise.
30340         * m4/locale-ar.m4: Likewise.
30341         * m4/locale-fr.m4: Likewise.
30342         * m4/locale-ja.m4: Likewise.
30343         * m4/locale-tr.m4: Likewise.
30344         * m4/locale-zh.m4: Likewise.
30345         * m4/locale_h.m4: Likewise.
30346         * m4/lock.m4: Likewise.
30347         * m4/logl.m4: Likewise.
30348         * m4/mathfunc.m4: Likewise.
30349         * m4/minus-zero.m4: Likewise.
30350         * m4/mktime.m4: Likewise.
30351         * m4/mmap-anon.m4: Likewise.
30352         * m4/multiarch.m4: Likewise.
30353         * m4/nanosleep.m4: Likewise.
30354         * m4/nocrash.m4: Likewise.
30355         * m4/poll.m4: Likewise.
30356         * m4/printf-frexpl.m4: Likewise.
30357         * m4/printf.m4: Likewise.
30358         * m4/signbit.m4: Likewise.
30359         * m4/sinl.m4: Likewise.
30360         * m4/sqrtl.m4: Likewise.
30361         * m4/strerror_r.m4: Likewise.
30362         * m4/tanl.m4: Likewise.
30363         * m4/threadlib.m4: Likewise.
30364         * m4/ttyname_r.m4: Likewise.
30365         * m4/unlink.m4: Likewise.
30366         * m4/visibility.m4: Likewise.
30367         * m4/wcwidth.m4: Likewise.
30368         * tests/minus-zero.h: Likewise.
30369         * tests/test-alloca-opt.c: Likewise.
30370         * tests/test-copy-acl.sh: Likewise.
30371         * tests/test-copy-file.sh: Likewise.
30372         * tests/test-fdatasync.c: Likewise.
30373         * tests/test-file-has-acl.sh: Likewise.
30374         * tests/test-flock.c: Likewise.
30375         * tests/test-fsync.c: Likewise.
30376         * tests/test-localename.c: Likewise.
30377         * tests/test-malloca.c: Likewise.
30378         * tests/test-nonblocking-pipe.h: Likewise.
30379         * tests/test-nonblocking-socket.h: Likewise.
30380         * tests/test-openpty.c: Likewise.
30381         * tests/test-posix_openpt.c: Likewise.
30382         * tests/test-ptsname.c: Likewise.
30383         * tests/test-ptsname_r.c: Likewise.
30384         * tests/test-sameacls.c: Likewise.
30385         * tests/test-select.h: Likewise.
30386         * tests/test-set-mode-acl.sh: Likewise.
30387         * tests/test-snprintf-posix.h: Likewise.
30388         * tests/test-sprintf-posix.h: Likewise.
30389         * tests/test-strtod.c: Likewise.
30390         * tests/test-time.c: Likewise.
30391         * tests/test-vasnprintf-posix.c: Likewise.
30392         * tests/test-vasprintf-posix.c: Likewise.
30393         * doc/acl-resources.txt: Likewise.
30394         * doc/**/*.texi: Likewise.
30395         Reported by Max Horn <max@quendi.de>.
30397 2012-06-22  Bruno Haible  <bruno@clisp.org>
30399         grantpt: Relax requirement regarding invalid file descriptors.
30400         * lib/grantpt.c: Don't include <fcntl.h>.
30401         (grantpt): Don't verify the validity of the file descriptor.
30402         * modules/grantpt (Depends-on): Remove fcntl-h.
30403         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
30404         file descriptors.
30405         * doc/posix-functions/grantpt.texi: Document more platforms on which
30406         grantpt succeeds for invalid file descriptors.
30407         Reported by Rich Felker <dalias@aerifal.cx>.
30409 2012-06-22  Bruno Haible  <bruno@clisp.org>
30411         fbufmode test: Don't test unportable behaviour.
30412         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
30413         (main): Invoke it three times.
30414         Reported by Szabolcs Nagy <nsz@port70.net>
30415         and Rich Felker <dalias@aerifal.cx>.
30417 2012-06-21  Bruno Haible  <bruno@clisp.org>
30419         gnulib-tool: Refactor inctests variable.
30420         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
30421         (func_modules_transitive_closure,
30422         func_modules_transitive_closure_separately,
30423         func_import, func_create_testdir): Update.
30425         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
30426         * gnulib-tool: Accept option --without-tests.
30427         (func_usage): Document --without-tests option. Rearrange.
30428         (inctests): Normalize according to the mode.
30429         * NEWS: Mention the change.
30430         Suggested by Simon Josefsson.
30432 2012-06-21  Bruce Korb  <bkorb@gnu.org>
30434         parse-duration test: Avoid spurious output.
30435         * tests/test-parse-duration.sh: Reindent with leading tabs.
30437 2012-06-21  Jim Meyering  <meyering@redhat.com>
30439         maint: disable the strncpy prohibition
30440         * cfg.mk: Do not prohibit strncpy here.
30442 2012-06-21  Bruno Haible  <bruno@clisp.org>
30444         nonblocking: Avoid compilation error on mingw64.
30445         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
30446         fscanf.
30447         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
30448         * modules/vfscanf (configure.ac): Likewise.
30449         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
30450         definition only if stdio.h has prepared it.
30451         Reported by Daniel P. Berrange <berrange@redhat.com>.
30453 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
30455         gnulib-tool: Use readlink if it is available.
30456         * gnulib-tool (func_readlink): Choose function more appropriately.
30458 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
30460         posixtm-tests: port to buggy compiler
30461         Problem reported by Simon Josefsson in
30462         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00246.html>.
30463         * modules/posixtm-tests (Depends-on): Add stdint.
30464         * tests/test-posixtm.c (struct posixtm_test.t_expected):
30465         Now of type int_least64_t, not int64_t, both because that's
30466         what INT64_C returns and because int_least64_t works even
30467         on 72-bit hosts.
30468         (T): Use INT64_C on constants outside the traditional int range,
30469         to work around compiler bug noted by Simon.
30471         mktime: fix integer overflow in 'configure'-time test
30472         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
30473         after integer overflow.  Problem reported by Rich Felker in
30474         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00257.html>.
30475         Also, don't look for further instances of a bug if we've already
30476         found one instance; this helps 'configure' run faster.
30478 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
30480         tmpfile, clean-temp: Fix invocation of GetVersionEx.
30481         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
30482         GetVersionEx correctly.
30483         * lib/clean-temp.c (supports_delete_on_close): Likewise.
30485 2012-06-20  Bruno Haible  <bruno@clisp.org>
30487         fdopen: Allow implementations that don't reject invalid fd arguments.
30488         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
30489         succeeds.
30490         Reported by Rich Felker <dalias@aerifal.cx>.
30492 2012-06-20  Simon Josefsson  <simon@josefsson.org>
30494         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
30495         bring in LIBINTL.
30497 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
30499         init.sh: do not rely on autoupated PWD
30500         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
30501         <http://lists.gnu.org/r/bug-gzip/2012-06/msg00008.html>.
30502         Although Nelson's bug was not necessarily fixed by this patch,
30503         it seems wise to make the change for safety.
30504         * tests/init.sh (path_prepend_): Do not rely on PWD updating
30505         automagically after 'cd'; this is not reliable on older shells.
30506         (setup_): Fail if we cannot cd to temporary directory.
30508 2012-06-19  Bruno Haible  <bruno@clisp.org>
30510         stat, fstat: Avoid warnings on mingw64.
30511         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
30512         redefining.
30513         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
30514         Reported by Daniel P. Berrange <berrange@redhat.com>.
30516 2012-06-19  Bruno Haible  <bruno@clisp.org>
30518         stdioext: Add support for musl libc.
30520         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
30521         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
30523         * m4/fseterr.m4: New file.
30524         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
30525         function exists.
30526         * modules/fseterr (Files): Add m4/fseterr.m4.
30527         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
30528         __fseterr does not exist.
30529         (Makefile.am): Remove fseterr.c from lib_SOURCES.
30531         * lib/freadable.h: Update comment.
30533         * lib/fwritable.h: Update comment.
30535         * lib/freading.h: Update comment.
30537         * lib/fwriting.h: Update comment.
30539         * m4/freadahead.m4: New file.
30540         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
30541         that function exists.
30542         * modules/freadahead (Files): Add m4/freadahead.m4.
30543         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
30544         __freadahead does not exist.
30545         (Makefile.am): Remove freadahead.c from lib_SOURCES.
30547         * m4/freadptr.m4: New file.
30548         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
30549         function exists.
30550         * modules/freadptr (Files): Add m4/freadptr.m4.
30551         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
30552         __freadptr does not exist.
30553         (Makefile.am): Remove freadptr.c from lib_SOURCES.
30555         * m4/freadseek.m4: New file.
30556         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
30557         exists.
30558         * modules/freadseek (Files): Add m4/freadseek.m4.
30559         (configure.ac): Invoke gl_FUNC_FREADSEEK.
30561         * lib/fpurge.c (fpurge): Update comment.
30563         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
30565 2012-06-19  Bruno Haible  <bruno@clisp.org>
30567         *printf-posix: Put more info into config.log.
30568         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
30569         exit code into config.log.
30571 2012-06-19  Bruno Haible  <bruno@clisp.org>
30573         getopt-gnu: Fix exit code overflow in autoconf test.
30574         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
30575         to keep them below < 128.
30577 2012-06-17  Jim Meyering  <meyering@redhat.com>
30579         maint.mk: fix typo in code to derive GPG key at release time
30580         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
30582 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
30584         regex: avoid warning when pointers are not long
30585         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
30586         and uintptr_t, not long, for portability to hosts where pointers and
30587         long have different sizes.  Issue noted by Daniel P. Berrange in
30588         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00122.html>
30589         and fix suggested by Bruno Haible in
30590         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00128.html>.
30592 2012-06-17  Bruno Haible  <bruno@clisp.org>
30594         dummy: Relicense into the public domain.
30595         * modules/dummy (License): Set to "public domain".
30596         Suggested by Reuben Thomas.
30598 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
30600         announce-gen: VPATH issues
30601         * build-aux/announce-gen (--srcdir): New option, used to trim the
30602         $srcdir part of the path from $builddir to NEWS.
30603         * top/maint.mk (announcement): Adjust.
30605 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
30607         gnu-web-doc-update: VPATH builds
30608         * build-aux/gnu-web-doc-update (--builddir): New option.
30609         Revamp the handling of options.
30610         Prefer $(...) to `...`.
30611         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
30612         the template, and it is GNU mktemp specific.
30613         Prefer set -e to long series of &&.
30614         Restore the initial git branch, not "master".
30615         Properly initialize submodules (don't rely only on bootstrap).
30616         Do not reconfigure blindly, use config.status.
30617         * top/README-release: Update instructions for gnu-web-doc-update.
30619 2012-06-11  Jim Meyering  <meyering@redhat.com>
30621         maint.mk: revert most of the previous change re "all these"
30622         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
30623         For rationale, see the discussion at
30624         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
30626 2012-06-10  Karl Berry  <karl@gnu.org>
30628         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
30630         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
30632 2012-06-10  Bruce Korb  <bkorb@gnu.org>
30634         parse-duration: Relicense under LGPLv2+.
30635         * modules/parse-duration (License): Change to LGPLv2+.
30637 2012-06-10  Jim Meyering  <meyering@redhat.com>
30639         maint.mk: prohibit common grammar error: "all these"
30640         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
30641         the list of prohibited word sequences.  It should be "all of these".
30642         * lib/tempname.c (__gen_tempname): Fix one of them.
30644 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
30646         do-release-commit-and-tag: support VPATH builds
30647         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
30648         (noteworthy): Defined earlier to factor its value.
30649         (noteworthy_stub): New.
30650         Use it to factor.
30651         (help_version): Split into...
30652         (help, version): these.
30653         Adjust the option processing part.
30654         Support "--option=value" in addition to "--option value".
30655         (builddir): New.
30656         (--builddir): New option.
30657         * top/README-release: Document this.
30658         Reword slightly so that the reader cannot understand that he
30659         has to do these steps before calling do-release-commit-and-tag.
30661 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
30663         readme-release: also require announce-gen and maintainer-makefile
30664         * modules/readme-release (Depends-on): here.
30665         * modules/announce-gen, modules/do-release-commit-and-tag,
30666         modules/gnu-web-doc-update, modules/maintainer-makefile
30667         (Description): Point to readme-release.
30669 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
30671         maint.mk: fix VPATH issues.
30672         * top/maint.mk (news-check): GNU Make understand $< very well.
30673         (release-prep): NEWS is in $(srcdir).
30675 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
30677         readme-release: require the promoted modules.
30678         * modules/readme-release (Depends-on): Add
30679         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
30680         in this text.
30682 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
30683             Bruno Haible  <bruno@clisp.org>
30685         error, strerror-override: Support mingw64 from Fedora 17.
30686         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
30687         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
30688         EINPROGRESS.
30689         * lib/strerror-override.h (strerror_override): Test it.
30690         * lib/strerror-override.c (strerror_override): Likewise.
30691         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
30693 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
30694             Bruno Haible  <bruno@clisp.org>
30696         error, strerror-override: Support mingw64 from Fedora 17.
30697         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
30698         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
30699         * lib/strerror-override.h (strerror_override): Test it.
30700         * lib/strerror-override.c (strerror_override): Likewise.
30702 2012-06-03  Bruno Haible  <bruno@clisp.org>
30704         error, strerror-override: Support new errno values from POSIX:2008.
30705         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
30706         ENOTRECOVERABLE.
30707         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
30708         platforms.
30709         * lib/strerror-override.c (strerror_override): Conditionalize the
30710         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
30711         * lib/strerror-override.h (strerror_override): Declare also if
30712         GNULIB_defined_EOWNERDEAD is defined.
30713         * tests/test-errno.c (e130, e131): New variables.
30714         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
30715         ENOTRECOVERABLE.
30716         Reported by Paolo Bonzini.
30718 2012-05-31  Jim Meyering  <meyering@redhat.com>
30720         savewd: add missing dependency on sys_wait module
30721         * modules/savewd (Depends-on): Add sys_wait, needed at least
30722         for MSVC.  Report and suggested change by Michael Goffioul.
30724 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
30726         system-quote-tests: port to CentOS 5
30727         Problem reported by Tom G. Christensen in
30728         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00255.html>.
30729         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
30731 2012-05-29  Jim Meyering  <meyering@redhat.com>
30733         maint: fix typos in comments and ChangeLog
30734         Culprits identified and fixed mostly automatically using these commands:
30735         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
30736         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
30737         using http://github.com/lyda/misspell-check
30738         * ChangeLog: Fix typos.
30739         * doc/solaris-versions: Likewise.
30740         * lib/regexec.c (re_search_stub): Likewise.
30741         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
30743 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
30745         manywarnings: remove duplicate -Wmultichar entry
30746         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
30747         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
30748         so keep the entry marked as documented.
30750 2012-05-27  Karl Berry  <karl@gnu.org>
30752         * config/srclist.txt (mktime.c): remove last libc sync,
30753         perhaps just temporarily.
30755 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
30757         regex: don't assume uint64_t or uint32_t
30758         * lib/regcomp.c (init_word_char): Don't assume that the types
30759         uint64_t and uint32_t exist.  The C standard doesn't guarantee
30760         them, and on some 32-bit compilers there is no uint64_t.
30761         Problem reported by Gianluigi Tiesi in
30762         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00154.html>.
30764 2012-05-25  Jim Meyering  <meyering@redhat.com>
30766         maint.mk: add strncpy-prohibiting syntax-check rule
30767         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
30769 2012-05-24  Jim Meyering  <meyering@redhat.com>
30771         maint.mk: compute $(gpg_key_ID) more portably
30772         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
30773         That use of sed is not portable to some fringe systems.
30774         Reported by Paul Eggert in
30775         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
30777 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
30779         mktime: sync from glibc
30780         * config/srclist.txt: Uncomment mktime.c.
30781         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
30782         First, indent with tabs, since glibc uses tabs and doesn't want to
30783         change and we'd rather be identical to glibc.  Also, two small
30784         coding changes:
30785         (isdst_differ): Use &&, not &, as && is the usual style.
30786         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
30787         for clarity.
30789 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
30791         announce-gen: du -h is more portable than du --human
30792         * build-aux/announce-gen (sizes): Invoke du with -h instead
30793         of --human.  Accept leading white space in its output.
30795 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
30797         announce-gen: Improve diagnostics.
30798         * build-aux/announce-gen: When parsing command line options,
30799         prefer "announce-gen: option --release-type requires an argument"
30800         to "Option release-type requires an argument".
30802 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
30804         maint.mk: gpg_key_ID: use sed more portably
30805         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
30806         the closing brace.
30807         (refresh-po): Fuse two sed invocations into one.
30809 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
30811         gitlog-to-changelog: support the log message format used in Bison.
30812         * build-aux/gitlog-to-changelog: Support --strip-tab and
30813         --strip-cherry-picked.
30815 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
30817         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
30818         the rest of the current time slice to another thread in the current
30819         process. So if the thread that feeds the file decscriptor we're
30820         polling is not in the current process, we get busy-waiting.
30821         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
30822         Patch from Theodore Leblond.
30823         * lib/select.c: Split polling out of the loop that sets the output
30824         fd_sets.  Check for zero result and loop if the wait timeout is
30825         infinite.
30827 2012-05-21  Simon Josefsson  <simon@josefsson.org>
30829         select: Fix build error on IRIX 6.5.
30830         * lib/select.c: Include stddef.h for NULL.
30832 2012-05-21  Simon Josefsson  <simon@josefsson.org>
30834         gc: fix libgcrypt detection on older machines.
30835         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
30836         copyright years because the file has been distributed every year
30837         since it was created.
30839 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
30841         crypto: fix bug in large buffer handling
30842         Problem reported by Serge Belyshev for glibc in
30843         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
30844         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00226.html>.
30845         * lib/md4.c (md4_process_block):
30846         * lib/md5.c (md5_process_block):
30847         * lib/sha1.c (sha1_process_block):
30848         * lib/sha256.c (sha256_process_block):
30849         Don't assume the buffer length is less than 2**32.
30850         * lib/sha512.c (sha512_process_block): Likewise.
30851         Here, the bug is present only in the rare case where the host does
30852         not support uint64_t or where size_t is wider than 64 bits.
30853         Use u64size to work around the problems.
30854         * lib/u64.h (u64size): New macro.
30856 2012-05-15  Pádraig Brady  <P@draigBrady.com>
30858         fsusage: fix block size returned on older Linux 2.6
30860         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
30861         which is available since Linux 2.6.
30862         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
30863         when the member is available so it can be used as a fallback.
30864         * doc/posix-functions/statvfs.texi: Mention the hang issue
30865         on Linux < 2.6.36.
30867 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
30869         bootstrap: suppress stderr chatter
30870         * build-aux/bootstrap (insert_sorted_if_absent, main program):
30871         Omit unnecessary chatter to stderr.  The main program chatter
30872         was there only inadvertantly.
30874         bootstrap: .gitignore files created by autopoint, libtool
30875         I ran into this problem when bootstrapping the latest diffutils.
30876         After './bootstrap', 'git status' reported lots of untracked files
30877         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
30878         autopoint and do not need to be version-controlled.
30879         * build-aux/bootstrap: Put into .gitignore the files that
30880         autopoint and libtool create, by keeping track of files that exist
30881         after but not before these programs are run.
30882         (version_controlled_file): Move up.  2nd arg is now full file
30883         name, not base name; this is more convenient.  Put CVS at the end,
30884         as it's now somewhat deprecated.
30886 2012-05-14  Jim Meyering  <meyering@redhat.com>
30888         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
30889         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
30890         definition.  Reported by Bruno Haible.
30892 2012-05-13  Bruno Haible  <bruno@clisp.org>
30893             Paul Eggert  <eggert@cs.ucla.edu>
30895         binary-io: Define set_binary_mode function.
30896         * lib/binary-io.h (set_binary_mode): New function.
30897         (SET_BINARY): Define in terms of set_binary_mode.
30898         * modules/binary-io (configure.ac): Require AC_C_INLINE.
30899         * tests/test-binary-io.c (main): Accept an argument, and test either
30900         set_binary_mode or SET_BINARY depending on the argument.
30901         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
30902         argument. Clean up also t-bin-out0.tmp.
30904 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
30906         bootstrap: take advantage of POSIX shell features
30908         The 'bootstrap' script offered by Gnulib script already uses POSIX
30909         shell features (like $((...)) arithmetic expansions) that are not
30910         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
30911         means that bootstrap must already be run using a proper POSIX shell,
30912         which will thus provide more features, like ${var#pattern} parameter
30913         expansion or inversion of a command exit status with '!'.  We can
30914         thus use these features to improve the clarity and the performances
30915         of the bootstrap script.
30917         Suggested by Eric Blake.
30919         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
30920         of sed/expr plus command substitutions, to save some forks.  While
30921         we are at it, prefer the POSIX $(...) form of command substitution,
30922         rather than the legacy form `...` (since the former is visually
30923         clearer and interacts better with quoting), and prefer the idiom:
30924           "if ! CMD; then ACTION ..."
30925         over the idiom:
30926           "if CMD; then :; else ACTION ..."
30927         which was required by legacy Bourne shells not supporting '!'.
30929 2012-05-12  Bruno Haible  <bruno@clisp.org>
30931         system-quote: Add more comments.
30932         * lib/system-quote.h: Add more comments about wilcards and limitations.
30933         Suggested by Eli Zaretskii <eliz@gnu.org>.
30935         sh-quote, system-quote: Add comments about wildcards.
30936         * lib/sh-quote.h: Clarify what happens with wildcard characters.
30937         * lib/system-quote.h: Likewise.
30938         Reported by Eli Zaretskii <eliz@gnu.org>.
30940 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
30942         fsusage: check for GNU/Linux statvfs problem dynamically
30943         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
30944         Define STAT_STATFS2_BSIZE too, since in this case the code now
30945         checks dynamically whether statvfs is reliable, falling back on
30946         Linux-style statfs otherwise.
30947         (statvfs_works): New function, for dynamically testing statvfs.
30948         (get_fs_usage) [STAT_STATVFS]: Use it.
30949         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
30950         statvfs on GNU/Linux hosts, since it's now done dynamically.
30952 2012-05-10  Bruno Haible  <bruno@clisp.org>
30954         system-quote, execute, spawn-pipe: Escape '?' on Windows.
30955         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
30956         '?' character.
30957         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
30958         * tests/test-system-quote-main.c (check_all): Check also strings like
30959         "??????????".
30960         Reported by Eli Zaretskii <eliz@gnu.org>.
30962 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
30964         _Noreturn: port config.h to gcc -Wundef
30965         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
30966         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
30967         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00147.html>.
30969 2012-05-10  Bruno Haible  <bruno@clisp.org>
30971         system-quote: Refactor.
30972         * lib/system-quote.h (system_quote_copy): Fix comment.
30973         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
30974         New functions, extracted from system_quote_copy.
30975         (system_quote_length, system_quote_copy): Use these functions.
30976         Reported by Paul Eggert.
30978 2012-05-08  Bruno Haible  <bruno@clisp.org>
30980         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
30981         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
30983 2012-05-08  Bruno Haible  <bruno@clisp.org>
30985         Tests for module 'system-quote'.
30986         * modules/system-quote-tests: New file.
30987         * tests/test-system-quote.sh: New file.
30988         * tests/test-system-quote-main.c: New file.
30989         * tests/test-system-quote-child.c: New file.
30991         New module 'system-quote'.
30992         * lib/system-quote.h: New file.
30993         * lib/system-quote.c: New file.
30994         * modules/system-quote: New file.
30996 2012-05-08  Bruno Haible  <bruno@clisp.org>
30998         sh-quote: Make C++ safe and allow multiple inclusion.
30999         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
31000         declarations in extern "C".
31002 2012-05-08  Bruno Haible  <bruno@clisp.org>
31004         sh-quote tests: Make tests stricter.
31005         * tests/test-sh-quote.c (check_one): Check the return value of
31006         shell_quote_copy.
31007         (main): Check a string with a CR character. Check a string that
31008         contains UCHAR_MAX.
31010 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
31012         warnings.m4: provide a means to specify the program to compile.
31013         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
31014         (gl_WARN_ADD): here.
31015         Use gl_AS_VAR_APPEND.
31016         Support an argument to specify the program to compile.
31017         (gl_WARN_ADD): Accept an argument to specify the program to compile.
31018         AC_SUBST the WARN_CFLAGS when they are used.
31019         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
31020         leave this to gl_WARN_ADD.
31022 2012-05-08  Eric Blake  <eblake@redhat.com>
31024         doc: recommendations on gettext version
31025         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
31026         choice between versions.
31027         * DEPENDENCIES (gettext): Cover both approaches.
31029 2012-05-08  Jim Meyering  <meyering@redhat.com>
31031         init.sh: explain why EXEEXT support uses aliases rather than functions
31032         * tests/init.sh: Add a comment.
31034         init.sh: don't let bash aliases interfere with tests
31035         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
31036         is bash.  This avoids problems for those who alias standard commands to
31037         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
31038         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
31040 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
31042         stdint: be more consistent with glibc, SunOS libc
31043         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
31044         (gl_int_fast16_t, gl_uint_fast16_t)
31045         (gl_int_fast32_t, gl_uint_fast32_t)
31046         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
31047         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
31048         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
31049         Be consistent with glibc by default, and with SunOS 5.10 and later
31050         if __sun is defined.  This lessens the likelihood of clashes if
31051         code compiled for older hosts is combined with code compiled for
31052         newer ones.  Problem reported by Niels Möller in
31053         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00074.html>.
31055 2012-05-07  Eric Blake  <eblake@redhat.com>
31057         isatty: relax license to LGPLv2+
31058         * modules/isatty (License): Relax license.
31060 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
31062         stat-size: comment fix
31063         * lib/stat-size.h: Remove obsolete comment about indenting.
31065 2012-05-06  Bruno Haible  <bruno@clisp.org>
31067         Tests for module 'sh-quote'.
31068         * modules/sh-quote-tests: New file.
31069         * tests/test-sh-quote.c: New file.
31071 2012-05-06  Bruno Haible  <bruno@clisp.org>
31073         sh-quote: Improve shell_quote_argv's signature.
31074         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
31075         * lib/sh-quote.c (shell_quote_argv): Likewise.
31077 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
31079         stdint: document issues with int_fast8_t etc.
31080         * doc/posix-headers/stdint.texi (stdint.h): Say that other
31081         stdint.h substitutes may define these types differently.  See
31082         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00071.html>.
31084 2012-05-05  Bruno Haible  <bruno@clisp.org>
31086         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
31087         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
31088         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
31089         or 'guessing no (mishandles large arguments)'.
31091 2012-05-05  Bruno Haible  <bruno@clisp.org>
31093         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
31094         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
31095         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
31096         set gl_cv_func_link_follows_symlink to "guessing no".
31098 2012-05-05  Bruno Haible  <bruno@clisp.org>
31100         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
31101         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
31102         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
31103         "guessing no".
31104         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
31106 2012-05-05  Bruno Haible  <bruno@clisp.org>
31108         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
31109         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
31110         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
31111         set gl_cv_struct_dirent_d_ino to "guessing yes".
31113 2012-05-05  Bruno Haible  <bruno@clisp.org>
31115         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
31116         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
31117         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
31118         "guessing yes".
31120 2012-05-05  Bruno Haible  <bruno@clisp.org>
31122         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
31123         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
31124         compiling to a glibc system, set gl_cv_func_signbit and
31125         gl_cv_func_signbit_gcc to "guessing yes".
31127 2012-05-05  Bruno Haible  <bruno@clisp.org>
31129         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
31130         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
31131         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
31132         to "guessing yes".
31133         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
31134         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
31136 2012-05-05  Bruno Haible  <bruno@clisp.org>
31138         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
31139         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
31140         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
31141         gl_cv_func_realpath_works to "guessing yes".
31143 2012-05-05  Bruno Haible  <bruno@clisp.org>
31145         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
31146         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
31147         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
31149 2012-05-04  Bruno Haible  <bruno@clisp.org>
31151         Tweak last commit.
31152         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
31153         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
31155 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
31157         unistd_h: make it easier to avoid sys_types_h
31158         This is useful for Emacs, which has its own method of porting to
31159         Windows, and which therefore does not need the sys_types_h module.
31160         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
31161         code moved here from gl_SYS_TYPES_H.
31162         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
31163         using the code directly.
31164         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
31165         gl_SYS_TYPES_H.
31166         * modules/sys_types (Files):
31167         * modules/unistd (Files): Add m4/off_t.m4.
31169 2012-05-03  Bruno Haible  <bruno@clisp.org>
31171         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
31172         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
31173         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
31174         "guessing yes" or "guessing no".
31175         (gl_FUNC_LSTAT): Update.
31176         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
31177         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
31178         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
31180 2012-05-03  Bruno Haible  <bruno@clisp.org>
31182         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
31183         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
31184         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
31185         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
31186         cross-compiling, choose the first alternative on glibc systems.
31187         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
31189 2012-05-03  Bruno Haible  <bruno@clisp.org>
31191         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
31192         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
31193         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
31195 2012-05-03  Bruno Haible  <bruno@clisp.org>
31197         chown: Avoid "guessing no" when cross-compiling to glibc systems.
31198         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
31200 2012-05-03  Bruno Haible  <bruno@clisp.org>
31202         Avoid "guessing no" guesses when cross-compiling to glibc systems.
31203         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
31204         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
31205         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
31206         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
31207         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
31208         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
31209         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
31210         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
31211         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
31212         compiling to glibc systems, set gl_cv_func_chown_slash_works,
31213         gl_cv_func_chown_ctime_works to "guessing yes".
31214         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
31215         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
31216         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
31217         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
31218         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
31219         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
31220         compiling to glibc systems, set gl_cv_func_open_directory_works to
31221         "guessing yes".
31222         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
31223         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
31224         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
31225         "guessing yes".
31226         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
31227         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
31228         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
31229         compiling to glibc systems, set gl_cv_func_floorf_ieee to
31230         "guessing yes".
31231         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
31232         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
31233         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
31234         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
31235         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
31236         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
31237         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
31238         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
31239         "guessing yes".
31240         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
31241         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
31242         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
31243         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
31244         "guessing yes".
31245         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
31246         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
31247         "guessing yes".
31248         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
31249         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
31250         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
31251         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
31252         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
31253         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
31254         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
31255         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
31256         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
31257         compiling to glibc systems, set gl_cv_func_log10f_ieee to
31258         "guessing yes".
31259         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
31260         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
31261         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
31262         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
31263         "guessing yes".
31264         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
31265         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
31266         "guessing yes".
31267         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
31268         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
31269         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
31270         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
31271         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
31272         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
31273         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
31274         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
31275         compiling to glibc systems, set gl_cv_func_mkfifo_works to
31276         "guessing yes".
31277         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
31278         compiling to glibc systems, set gl_cv_func_mknod_works to
31279         "guessing yes".
31280         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
31281         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
31282         "guessing yes".
31283         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
31284         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
31285         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
31286         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
31287         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
31288         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
31289         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
31290         compiling to glibc systems, set gl_cv_func_svid_putenv to
31291         "guessing yes".
31292         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
31293         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
31294         "guessing yes".
31295         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
31296         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
31297         "guessing yes".
31298         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
31299         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
31300         to "guessing yes".
31301         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
31302         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
31303         to "guessing yes".
31304         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
31305         compiling to glibc systems, set gl_cv_func_rmdir_works to
31306         "guessing yes".
31307         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
31308         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
31309         gl_cv_func_unlink_parent_fails to "guessing yes".
31310         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
31311         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
31312         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
31313         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
31314         gl_cv_func_rename_dest_works to "guessing yes".
31315         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
31316         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
31317         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
31318         compiling to glibc systems, set gl_cv_func_roundf_ieee to
31319         "guessing yes".
31320         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
31321         compiling to glibc systems, set gl_cv_func_roundl_ieee to
31322         "guessing yes".
31323         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
31324         compiling to glibc systems, set gl_cv_func_setenv_works to
31325         "guessing yes".
31326         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
31327         compiling to glibc systems, set gl_cv_func_unsetenv_works to
31328         "guessing yes".
31329         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
31330         compiling to glibc systems, set gl_cv_func_sleep_works to
31331         "guessing yes".
31332         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
31333         compiling to glibc systems, set gl_cv_func_stat_file_slash to
31334         "guessing yes".
31335         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
31336         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
31337         "guessing yes".
31338         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
31339         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
31340         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
31341         compiling to glibc systems, set gl_cv_func_truncf_ieee to
31342         "guessing yes".
31343         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
31344         compiling to glibc systems, set gl_cv_func_truncl_ieee to
31345         "guessing yes".
31346         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
31347         compiling to glibc systems, set gl_cv_func_usleep_works to
31348         "guessing yes".
31349         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
31350         compiling to glibc systems, set gl_cv_func_futimesat_works to
31351         "guessing yes".
31353 2012-05-03  Bruno Haible  <bruno@clisp.org>
31355         Say "guessing yes" or "guessing no" when cross-compiling.
31356         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
31357         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
31358         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
31359         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
31360         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
31361         am_cv_func_working_getline to "guessing yes" or "guessing no".
31362         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
31363         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
31364         (gl_FUNC_MEMMEM): When cross-compiling, set
31365         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
31366         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
31367         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
31368         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
31369         set gl_cv_func_strcasestr_works_always to "guessing yes" or
31370         "guessing no".
31371         (gl_FUNC_STRCASESTR): When cross-compiling, set
31372         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
31373         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
31374         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
31375         (gl_FUNC_STRSTR): When cross-compiling, set
31376         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
31377         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
31378         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
31379         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
31380         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
31382 2012-05-01  Bruno Haible  <bruno@clisp.org>
31384         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
31385         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
31386         * build-aux/reloc-ldflags: Likewise.
31387         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
31389 2012-05-01  Bruno Haible  <bruno@clisp.org>
31391         gnulib-tool: Remove transitional code.
31392         * gnulib-tool: Don't warn about --import with 0 arguments any more.
31393         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
31395 2012-05-01  Bruno Haible  <bruno@clisp.org>
31397         getcwd: Fix misindentation.
31398         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
31400 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
31402         exclude: process exclude and include directives in order
31403         This restores the pre-2009 behavior, and is part of a fix of a
31404         grep bug reported by Quentin Arce in
31405         <http://lists.gnu.org/r/bug-grep/2012-04/msg00056.html>.
31406         * lib/exclude.c (struct exclude): Remove 'tail' member.
31407         (new_exclude_segment): Prepend the new segment instead of appending.
31408         Return void, since that's now more convenient.
31409         (file_pattern_matches): Renamed from excluded_file_pattern_p.
31410         (file_name_matches): Renamed from excluded_file_name_p.
31411         (file_pattern_matches, file_name_matches):
31412         Return true if the pattern matches, not if it excludes.
31413         All callers changed.
31414         (excluded_file_name): Process the list in reverse order;
31415         since the list is now reversed this restores the pre-2009 behavior.
31416         (add_exclude): Adjust to new reversed-order list.  Use local var
31417         rather than macro, for clarity.
31418         * tests/test-exclude7.sh: Adjust to corrected behavior.
31420         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
31421         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
31422         it's not possible here.  Handle the case of \ at end of pattern
31423         without dumping core.
31424         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
31426         _Noreturn: future-proof non-GNU and non-MSVC compilers
31427         * build-aux/snippet/_Noreturn.h (_Noreturn):
31428         * m4/gnulib-common.m4 (gl_COMMON_BODY):
31429         Do not define _Noreturn if __STDC_VERSION__ indicates this is
31430         C11 or later.  This is more likely to work with random future C
31431         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
31432         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00195.html>.
31434         exclude: handle wildcards with FNM_EXTMATCH
31435         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
31436         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
31437         comment that "has wildcards" really means "has or may have
31438         wildcards".  Simplify by avoiding the need to call strcspn.
31440 2012-04-29  Bruno Haible  <bruno@clisp.org>
31442         gnulib-tool: Fix list of authors.
31443         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
31445 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
31447         bootstrap: support Automake-NG in $buildreq
31448         * bootstrap (check_versions): Handle automake and aclocal from
31449         Automake-NG specially.  They can be specified as respectively
31450         the "automake-ng" and "aclocal-ng" requirements.
31452 2012-04-25  Eric Blake  <eblake@redhat.com>
31454         bootstrap: only force latest Makefile.in.in for gettext module
31455         * build-aux/bootstrap (with_gettext): Only install latest
31456         Makefile.in.in for projects requesting bleeding edge gettext.
31458 2012-04-22  Bruno Haible  <bruno@clisp.org>
31460         doc: Mention reason for replacement on glibc/Linux systems.
31461         * doc/posix-functions/dprintf.texi: Mention the problem with special
31462         'long double' values.
31463         * doc/posix-functions/fprintf.texi: Likewise.
31464         * doc/posix-functions/printf.texi: Likewise.
31465         * doc/posix-functions/snprintf.texi: Likewise.
31466         * doc/posix-functions/sprintf.texi: Likewise.
31467         * doc/posix-functions/vdprintf.texi: Likewise.
31468         * doc/posix-functions/vfprintf.texi: Likewise.
31469         * doc/posix-functions/vprintf.texi: Likewise.
31470         * doc/posix-functions/vsnprintf.texi: Likewise.
31471         * doc/posix-functions/vsprintf.texi: Likewise.
31472         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
31473         platforms with F_DUPFD_CLOEXEC problems.
31474         * doc/posix-functions/glob.texi: Mention which platforms are affected
31475         by the problem with symbolic links.
31476         * doc/posix-functions/linkat.texi: Mention the problem with
31477         AT_SYMLINK_FOLLOW on Linux.
31479 2012-04-22  Bruno Haible  <bruno@clisp.org>
31481         pwrite: Don't replace on all platforms.
31482         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
31484 2012-04-22  Bruno Haible  <bruno@clisp.org>
31486         rint* tests: Avoid gcc warnings.
31487         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
31488         * tests/test-rintf.c (INFINITY, NAN): Likewise.
31489         * tests/test-rintl.c (INFINITY, NAN): Likewise.
31491 2012-04-21  Bruno Haible  <bruno@clisp.org>
31493         users.txt: Update.
31494         * users.txt: Add freedink, wdiff. Update URLs for projects that have
31495         switched from CVS to git, bzr, or svn.
31497 2012-04-21  Bruno Haible  <bruno@clisp.org>
31499         Large File Support for native Windows platforms.
31501         * m4/largefile.m4 (gl_LARGEFILE): New macro.
31502         * modules/largefile (configure.ac): Require gl_LARGEFILE.
31504         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
31505         type.
31506         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
31507         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
31508         * doc/posix-headers/sys_types.texi: Mention the effect of the
31509         'largefile' module.
31511         * lib/fcntl.in.h: Add comments about off_t.
31512         * modules/fcntl-h (Depends-on): Add sys_types.
31514         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
31515         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
31516         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
31517         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
31518         * modules/unistd (Depends-on): Add sys_types.
31519         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
31521         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
31522         instead of lseek.
31523         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
31524         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
31525         * modules/lseek (Depends-on): Add sys_types.
31527         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
31528         msvc-nothrow.h.
31529         (SetFileSize): New function.
31530         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
31531         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
31532         if Large File Support is requested.
31533         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
31534         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
31536         * lib/stdio.in.h: Add comments about off_t.
31537         * modules/stdio (Depends-on): Add sys_types.
31539         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
31540         instead of ftello.
31541         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
31542         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
31543         (gl_PREREQ_FTELLO): New macro.
31544         * modules/ftello (Depends-on): Add sys_types.
31545         (configure.ac): Incoke gl_PREREQ_FTELLO.
31547         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
31548         instead of fseeko.
31549         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
31550         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
31551         (gl_PREREQ_FSEEKO): New macro.
31552         * modules/fseeko (Depends-on): Add sys_types.
31553         (configure.ac): Invoke gl_PREREQ_FSEEKO.
31555         * lib/sys_stat.in.h: Add comments about off_t.
31556         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
31557         64-bit integer for st_size in 'struct stat'.
31558         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
31559         Define _GL_WINDOWS_64_BIT_ST_SIZE.
31560         * modules/sys_stat (Depends-on): Add sys_types.
31561         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
31563         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
31564         instead of stat or _stat.
31566         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
31567         'struct _stati64' instead of fstat and 'struct stat'.
31568         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
31569         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
31571         Reported by Ray Satiro <raysatiro@yahoo.com>.
31573 2012-04-19  Eric Blake  <eblake@redhat.com>
31575         bootstrap: accommodate older libtool
31576         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
31577         Reported by Daniel P. Berrange.
31579 2012-04-19  Jim Meyering  <meyering@redhat.com>
31581         announce-gen: avoid failure due to lack of Digest::SHA1
31582         Even with the preferred Digest::SHA available, this script
31583         would fail when the backup module, Digest::SHA1, was not installed.
31584         * build-aux/announce-gen: Quote the conditional use of "use".
31585         Reported by Reuben Thomas in:
31586         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
31588         bootstrap: don't let a user's CDPATH setting affect this script
31589         When CDPATH is set, cd will sometimes generate output.
31590         When "cd" is run in a subshell whose output matters, that
31591         surprising-to-some output can cause malfunction.
31592         Unsetting CDPATH turns off this shell "feature."
31593         * build-aux/bootstrap (CDPATH): Unset.
31594         Reported by Reuben Thomas in:
31595         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
31596         and inspired by his patch here:
31597         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
31599 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
31600         and Jim Meyering  <meyering@redhat.com>
31602         maint.mk: catch "see @xref{}" and similar
31603         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
31604         prohibit "See also @xref{", "Also see @pxref{", and similar.
31606 2012-04-16  Jim Meyering  <meyering@redhat.com>
31608         bootstrap: really use gnulib's po/Makefile.in.in
31609         * build-aux/bootstrap: Correct the source file name in previous change.
31610         Reported by Akim Demaille.
31612         configmake: correct minor inconsistency in Makefile rule
31613         * modules/configmake (Makefile.am): All other rules like this one
31614         run the final "mv -f ..." in the same backslash-continued command
31615         as the one that does everything else.  This one put the mv -f ...
31616         command on a separate, non-backslash-continued line.
31617         Make it like the others.
31619         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
31620         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
31621         the one from gettext.  Reported by Akim Demaille.
31623 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
31625         Fix recursion of install-* into po directories.
31626         Bison's install-pdf bug reported by Hans Aberg at
31627         <http://lists.gnu.org/r/bug-bison/2011-05/msg00008.html>.
31628         * build-aux/po/Makefile.in.in (install-dvi, install-html)
31629         (install-info, install-pdf, install-ps): New targets.
31631 2012-04-16  Jim Meyering  <meyering@redhat.com>
31633         maint: avoid spurious "make sc_maint" failure
31634         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
31635         exempt all *.class file names, for lib/javaversion.class.
31637 2012-04-15  Bruno Haible  <bruno@clisp.org>
31639         lseek: Make configure test independent of environment.
31640         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
31641         Windows, we know that lseek() on pipes is broken; skip the runtime
31642         test.
31644 2012-04-14  Bruno Haible  <bruno@clisp.org>
31646         stat: Bypass buggy override in mingw64.
31647         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
31648         * lib/stat.c (stat) [mingw64]: Define to _stat.
31649         * doc/posix-functions/stat.texi: Mention mingw64 bug.
31651 2012-04-14  Bruno Haible  <bruno@clisp.org>
31653         pathmax: Fix compilation error on MSVC 9.
31654         * modules/pathmax (Depends-on): Add unistd.
31656 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
31658         README: document pointer comparison assumption
31659         * README (Portability guidelines): Document assumption about
31660         pointer comparisons, in response to a recent bug-gnulib comment by
31661         Jeffrey Kegler.
31663 2012-04-12  Bruno Haible  <bruno@clisp.org>
31665         Tests for module 'getrusage'.
31666         * modules/getrusage-tests: New file.
31667         * tests/test-getrusage.c: New file.
31669         New module 'getrusage'.
31670         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
31671         warn-on-use.h.
31672         (getrusage): New declaration.
31673         * lib/getrusage.c: New file.
31674         * m4/getrusage.m4: New file.
31675         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
31676         is declared.
31677         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
31678         HAVE_GETRUSAGE.
31679         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
31680         snippet/c++defs, snippet/warn-on-use.
31681         (Makefile.am): Update generation of sys/resource.h. Substitute
31682         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
31683         * modules/getrusage: New file.
31684         * doc/posix-functions/getrusage.texi: Mention the new module.
31686 2012-04-12  Bruno Haible  <bruno@clisp.org>
31688         Tests for module 'sys_resource'.
31689         * modules/sys_resource-tests: New file.
31690         * tests/test-sys_resource.c: New file.
31692         New module 'sys_resource'.
31693         * lib/sys_resource.in.h: New file.
31694         * m4/sys_resource_h.m4: New file.
31695         * modules/sys_resource: New file.
31696         * doc/posix-headers/sys_resource.texi: Mention the new module.
31698 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
31700         ioctl: Fix compilation error on mingw.
31701         * lib/ioctl.c: Include <windows.h>.
31702         Also reported by Ray Satiro <raysatiro@yahoo.com>.
31704 2012-04-04  Jim Meyering  <meyering@redhat.com>
31706         regex: correct #pragma guard expression
31707         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
31708         not 4.3.  Correct its cpp guard expression.
31710 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
31712         regex: remove unnecessary type punning
31713         Problem reported by Vladimir Serbinenko in
31714         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00006.html>.
31715         * lib/regex.h (struct re_pattern_buffer): Change the type of
31716         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
31717         Fix comment to match code.
31718         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
31719         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
31720         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
31721         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
31722         (set_regs):
31723         Omit no-longer-necessary casts.
31725 2012-04-03  Bruno Haible  <bruno@clisp.org>
31727         Tests for module 'ilogbl'.
31728         * modules/ilogbl-tests: New file.
31729         * tests/test-ilogbl.c: New file.
31731         New module 'ilogbl'.
31732         * lib/math.in.h (ilogbl): New declaration.
31733         * lib/ilogbl.c: New file.
31734         * m4/ilogbl.m4: New file.
31735         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
31736         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
31737         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
31738         Split sed invocation, to avoid the limit of 100 substitutions of
31739         HP-UX 'sed'.
31740         * modules/ilogbl: New file.
31741         * tests/test-math-c++.cc: Check the declaration of ilogbl.
31742         * doc/posix-functions/ilogbl.texi: Mention the new module.
31744 2012-04-03  Bruno Haible  <bruno@clisp.org>
31746         Tests for module 'ilogbf'.
31747         * modules/ilogbf-tests: New file.
31748         * tests/test-ilogbf.c: New file.
31750         New module 'ilogbf'.
31751         * lib/math.in.h (ilogbf): New declaration.
31752         * lib/ilogbf.c: New file.
31753         * m4/ilogbf.m4: New file.
31754         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
31755         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
31756         REPLACE_ILOGBF.
31757         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
31758         REPLACE_ILOGBF.
31759         * modules/ilogbf: New file.
31760         * tests/test-math-c++.cc: Check the declaration of ilogbf.
31761         * doc/posix-functions/ilogbf.texi: Mention the new module.
31763 2012-04-03  Bruno Haible  <bruno@clisp.org>
31765         Tests for module 'ilogb'.
31766         * modules/ilogb-tests: New file.
31767         * tests/test-ilogb.c: New file.
31768         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
31769         tests/test-logb-ieee.h.
31771         New module 'ilogb'.
31772         * lib/math.in.h (ilogb): New declaration.
31773         * lib/ilogb.c: New file.
31774         * m4/ilogb.m4: New file.
31775         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
31776         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
31777         REPLACE_ILOGB.
31778         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
31779         REPLACE_ILOGB.
31780         * modules/ilogb: New file.
31781         * tests/test-math-c++.cc: Check the declaration of ilogb.
31782         * doc/posix-functions/ilogb.texi: Mention the new module.
31784 2012-04-03  Bruno Haible  <bruno@clisp.org>
31786         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
31787         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
31788         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
31789         (main): Check their values.
31790         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
31791         problem.
31793 2012-04-03  Bruno Haible  <bruno@clisp.org>
31795         Tests for module 'logbl-ieee'.
31796         * modules/logbl-ieee-tests: New file.
31797         * tests/test-logbl-ieee.c: New file.
31799         New module 'logbl-ieee'.
31800         * modules/logbl-ieee: New file.
31802         Tests for module 'logb-ieee'.
31803         * modules/logb-ieee-tests: New file.
31804         * tests/test-logb-ieee.c: New file.
31806         New module 'logb-ieee'.
31807         * modules/logb-ieee: New file.
31809         Tests for module 'logbf-ieee'.
31810         * modules/logbf-ieee-tests: New file.
31811         * tests/test-logbf-ieee.c: New file.
31812         * tests/test-logb-ieee.h: New file.
31814         New module 'logbf-ieee'.
31815         * modules/logbf-ieee: New file.
31817 2012-04-03  Bruno Haible  <bruno@clisp.org>
31819         Tests for module 'logbl'.
31820         * modules/logbl-tests: New file.
31821         * tests/test-logbl.c: New file.
31823         New module 'logbl'.
31824         * lib/math.in.h (logbl): New declaration.
31825         * lib/logbl.c: New file.
31826         * m4/logbl.m4: New file.
31827         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
31828         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
31829         REPLACE_LOGBL.
31830         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
31831         REPLACE_LOGBL.
31832         * modules/logbl: New file.
31833         * tests/test-math-c++.cc: Check the declaration of logbl.
31834         * doc/posix-functions/logbl.texi: Mention the new module.
31836 2012-04-02  Bruno Haible  <bruno@clisp.org>
31838         Tests for module 'logbf'.
31839         * modules/logbf-tests: New file.
31840         * tests/test-logbf.c: New file.
31842         New module 'logbf'.
31843         * lib/math.in.h (logbf): New declaration.
31844         * lib/logbf.c: New file.
31845         * m4/logbf.m4: New file.
31846         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
31847         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
31848         REPLACE_LOGBF.
31849         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
31850         REPLACE_LOGBF.
31851         * modules/logbf: New file.
31852         * tests/test-math-c++.cc: Check the declaration of logbf.
31853         * doc/posix-functions/logbf.texi: Mention the new module.
31855 2012-04-02  Bruno Haible  <bruno@clisp.org>
31857         logb tests: More tests.
31858         * tests/test-logb.h: New file, based on tests/test-logb.c and
31859         tests/test-frexp.h.
31860         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
31861         (main): Just invoke test_function.
31862         * modules/logb-tests (Files): Add tests/test-logb.h,
31863         tests/minus-zero.h, tests/randomd.c.
31864         (Makefile.am): Add randomd.c to test_logb_SOURCES.
31866         logb: Provide replacement and workarounds.
31867         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
31868         is 1.
31869         * lib/logb.c: New file.
31870         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
31871         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
31872         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
31873         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
31874         * modules/logb (Files): Add lib/logb.c.
31875         (Depends-on): Add isfinite, frexp, isnand.
31876         (configure.ac): Compile the replacement code logb.c if needed.
31877         * tests/test-math-c++.cc: Check the declaration of logb.
31878         * doc/posix-functions/logb.texi: Mention the replacement and the bug
31879         with subnormal numbers.
31881 2012-04-02  Bruno Haible  <bruno@clisp.org>
31883         log10* tests: Speed up.
31884         * tests/test-log10.h (test_function): Reduce amount of random numbers
31885         to test.
31887 2012-04-01  Bruno Haible  <bruno@clisp.org>
31889         logf-ieee: Fix test whether logf works.
31890         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
31892 2012-04-01  Bruno Haible  <bruno@clisp.org>
31894         log10l: Work around log10l-ieee test failure on IRIX 6.5.
31895         * lib/log10l.c: Include <float.h>
31896         (log10l): On IRIX, normalize the +Infinity value.
31897         * modules/log10l (Depends-on): Add 'float'.
31898         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
31899         +Infinity.
31901         log10f-ieee: Work around test failure on NetBSD 5.1.
31902         * m4/log10f-ieee.m4: New file.
31903         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
31904         test whether log10f works with a negative argument. Replace it if not.
31905         * lib/log10f.c (log10f): For negative arguments, return NaN.
31906         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
31907         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
31908         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
31910         log10f-ieee: Work around test failure on Solaris 9.
31911         * modules/log10f-ieee (Depends-on): Add log10-ieee.
31912         (configure.ac): Require gl_FUNC_LOG10F.
31914         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
31915         * m4/log10-ieee.m4: New file.
31916         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
31917         whether log10 works with a negative argument. Replace it if not.
31918         * lib/log10.c (log10): For negative arguments, return NaN.
31919         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
31920         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
31921         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
31923         Tests for module 'log10l-ieee'.
31924         * modules/log10l-ieee-tests: New file.
31925         * tests/test-log10l-ieee.c: New file.
31927         New module 'log10l-ieee'.
31928         * modules/log10l-ieee: New file.
31930         Tests for module 'log10-ieee'.
31931         * modules/log10-ieee-tests: New file.
31932         * tests/test-log10-ieee.c: New file.
31934         New module 'log10-ieee'.
31935         * modules/log10-ieee: New file.
31937         Tests for module 'log10f-ieee'.
31938         * modules/log10f-ieee-tests: New file.
31939         * tests/test-log10f-ieee.c: New file.
31940         * tests/test-log10-ieee.h: New file.
31942         New module 'log10f-ieee'.
31943         * modules/log10f-ieee: New file.
31945 2012-04-01  Bruno Haible  <bruno@clisp.org>
31947         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
31948         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
31949         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
31950         workaround.
31951         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
31952         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
31953         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
31954         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
31955         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
31956         (Depends-on): Update conditions.
31957         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
31958         IRIX 6.5, OSF/1 5.1 problems.
31960 2012-04-01  Bruno Haible  <bruno@clisp.org>
31962         log10f: Work around OSF/1 5.1 bug.
31963         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
31964         * lib/log10f.c (log10f): If logf exists, use it and provide just the
31965         workaround.
31966         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
31967         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
31968         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
31969         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
31970         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
31971         (Depends-on): Update conditions.
31972         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
31974 2012-04-01  Bruno Haible  <bruno@clisp.org>
31976         log10: Work around OSF/1 5.1 bug.
31977         * lib/math.in.h (log10): New declaration.
31978         * lib/log10.c: New file.
31979         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
31980         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
31981         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
31982         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
31983         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
31984         * modules/log10 (Files): Add lib/log10.c.
31985         (Depends-on): Add math.
31986         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
31987         * tests/test-math-c++.cc: Check the declaration of log10.
31988         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
31990 2012-03-31  Bruno Haible  <bruno@clisp.org>
31992         log10l tests: More tests.
31993         * modules/log10l-tests (Files): Add tests/test-log10l.h,
31994         tests/minus-zero.h, tests/randoml.c.
31995         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
31996         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
31997         (main): Invoke test_function.
31999         log10f tests: More tests.
32000         * modules/log10f-tests (Files): Add tests/test-log10.h,
32001         tests/minus-zero.h, tests/randomf.c.
32002         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
32003         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
32004         (main): Invoke test_function.
32006         log10 tests: More tests.
32007         * tests/test-log10.h: New file.
32008         * modules/log10-tests (Files): Add tests/test-log10.h,
32009         tests/minus-zero.h, tests/randomd.c.
32010         (Makefile.am): Add randomd.c to test_log10_SOURCES.
32011         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
32012         (main): Invoke test_function.
32014 2012-03-31  Simon Josefsson  <simon@josefsson.org>
32016         fflush: Fix syntax error.
32017         * lib/fflush.c: Include unused-parameter.h, needed for
32018         _GL_UNUSED_PARAMETER.
32019         * modules/fflush (Depends-on): Add snippet/unused-parameter.
32021 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
32023         regex: pacify GCC when compiling GRUB
32024         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
32025         a diagnostic.  Reported by Vladimir Serbinenko in
32026         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00163.html>.
32028 2012-03-29  Eric Blake  <eblake@redhat.com>
32030         stdio: don't assume gets any more
32031         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
32032         support.
32033         * modules/stdio (Makefile.am): Likewise.
32034         * lib/stdio-read.c (gets): Likewise.
32035         * tests/test-stdio-c++.cc: Likewise.
32036         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
32037         * lib/stdio.in.h (gets): Make warning occur in more places.
32038         * doc/posix-functions/gets.texi (gets): Update documentation.
32039         Reported by Christer Solskogen.
32041         maint.mk: fix syntax checks without exclusions
32042         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
32043         Reported by Daniel P. Berrange.
32045         strerror_r: avoid compiler warning
32046         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
32047         level.
32049         fflush: avoid compiler warning
32050         * lib/fflush.c (update_fpos_cache): Mark variables that are
32051         potentially unused.
32053 2012-03-25  Bruno Haible  <bruno@clisp.org>
32055         Tests for module 'localeconv'.
32056         * modules/localeconv-tests: New file.
32057         * tests/test-localeconv.c: New file.
32059         New module 'localeconv'.
32060         * lib/locale.in.h (localeconv): New declaration.
32061         * lib/localeconv.c: New file.
32062         * m4/localeconv.m4: New file.
32063         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
32064         REPLACE_LOCALECONV.
32065         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
32066         REPLACE_LOCALECONV.
32067         * modules/localeconv: New file.
32068         * modules/nl_langinfo (Depends-on): Add localeconv.
32069         * modules/human (Depends-on): Likewise.
32070         * doc/posix-functions/localeconv.texi: Mention the new module.
32072 2012-03-25  Bruno Haible  <bruno@clisp.org>
32074         locale: Provide a complete 'struct lconv'.
32075         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
32076         'struct lconv' does not contain int_p_cs_precedes.
32077         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
32078         * doc/posix-headers/locale.texi: Update.
32080         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
32081         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
32082         * doc/posix-headers/locale.texi: Update.
32084         locale: Provide a working 'struct lconv'.
32085         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
32086         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
32087         'struct lconv' does not even contain decimal_point.
32088         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
32089         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
32090         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
32091         * doc/posix-headers/locale.texi: Mention the problems with
32092         'struct lconv'.
32093         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
32095 2012-03-24  Bruno Haible  <bruno@clisp.org>
32097         Enable common subexpression optimization in GCC.
32098         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
32099         macros.
32100         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
32101         GCC attribute 'const'.
32102         (uc_locale_language): Declare with GCC attribute 'pure'.
32103         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
32104         with GCC attribute 'const'.
32105         * lib/unictype.in.h (uc_is_general_category_withtable,
32106         uc_combining_class, uc_combining_class_name,
32107         uc_combining_class_long_name, uc_bidi_class_name,
32108         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
32109         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
32110         uc_decimal_value, uc_digit_value, uc_numeric_value,
32111         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
32112         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
32113         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
32114         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
32115         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
32116         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
32117         Declare with GCC attribute 'const'.
32118         (uc_general_category_name, uc_general_category_long_name,
32119         uc_general_category_byname, uc_general_category,
32120         uc_is_general_category, uc_combining_class_byname,
32121         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
32122         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
32123         Declare with GCC attribute 'pure'.
32124         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
32125         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
32126         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
32127         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
32128         with GCC attribute 'pure'.
32129         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
32130         'const'.
32131         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
32132         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
32133         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
32134         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
32135         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
32136         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
32137         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
32138         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
32139         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
32140         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
32141         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
32142         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
32143         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
32144         GCC attribute 'pure'.
32145         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
32146         'const'.
32147         * lib/uniwidth.in.h (uc_width): Simplify declaration.
32148         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
32149         u32_strwidth): Declare with GCC attribute 'pure'.
32151         Enable common subexpression optimization in GCC.
32152         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
32153         (alphasort): Declare with GCC attribute 'pure'.
32154         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
32155         (atoll): Declare with GCC attribute 'pure'.
32156         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
32157         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
32158         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
32159         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
32160         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
32161         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
32162         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
32164 2012-03-24  Bruno Haible  <bruno@clisp.org>
32166         gnulib-tool: Avoid unintended error output from 'cmp'.
32167         * gnulib-tool (func_add_file, func_update_file, func_import): Use
32168         "cmp -s", not "cmp > /dev/null".
32170 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
32172         gnulib-tool: fix imprecise comments w.r.t. an automake bug
32174         It's not just Automake versions < 1.9b that creates an empty
32175         pkgdatadir at installation time if pkgdata_DATA is specified
32176         to empty; modern automake versions do this as well, at least
32177         until automake 1.11.4 (not yet released at the moment of writing,
32178         but soon to appear).  That behaviour was generally considered a
32179         feature rather than a bug, at least until this discussion:
32180         <http://lists.gnu.org/r/automake/2012-03/msg00014.html>
32182         See also automake bugs #10997 and #11030.
32184         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
32185         reference to relevant automake bug numbers.
32186         (func_emit_tests_Makefile_am): Likewise.
32188 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
32190         announce-gen: use Digest::SHA when possible
32191         * build-aux/announce-gen: Use Digest::SHA when possible, falling
32192         back to Digest::SHA1 if necessary.
32194 2012-03-20  Jim Meyering  <meyering@redhat.com>
32196         tests: avoid gcc warnings about argv vs. const initializers
32197         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
32198         warnings about discarding 'const' qualifier from pointer target type.
32199         * tests/test-posix_spawn2.c (main): Likewise.
32201 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
32203         README-release: simplify slightly
32204         * top/README-release: Run "git checkout master" only once.
32206 2012-03-15  Mark Wielaard  <mark@klomp.org>
32208         git-merge-changelog: add specific example on how to use with hg.
32209         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
32211 2012-03-18  Mark Wielaard  <mark@klomp.org>
32213         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
32215 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
32217         git-version-gen: don't let "prefix" envvar cause trouble
32218         * build-aux/git-version-gen (prefix): Initialize properly,
32219         so as not to use a value specified via the environment.
32220         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
32222 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
32224         regex: diagnose too-large repeat counts in EREs
32225         Previously, the code did not diagnose the too-large repeat count
32226         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
32227         as if it were 'b\{1000000000}', which is unexpected.
32228         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
32229         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
32230         is a reasonable one for this problem.  Another option would be to
32231         create a new REG_OVERFLOW error for repeat counts that are too large.
32232         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
32233         count is too large, so that the caller can distinguish the two cases.
32234         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
32235         "Too large" return code, and that repeat counts are one example of this.
32237 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
32239         doc: some glibc x32 integer width issues
32240         * doc/posix-headers/sys_types.texi (sys/types.h):
32241         * doc/posix-headers/time.texi (time.h):
32242         Mention that glibc x32 does not conform to POSIX in a couple of
32243         areas related to integer widths.
32245 2012-03-15  Bruno Haible  <bruno@clisp.org>
32247         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
32248         * lib/fma.c (VOLATILE): New macro.
32249         (FUNC): Use it to work around a GCC compiler bug.
32251 2012-03-13  Bruno Haible  <bruno@clisp.org>
32253         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
32254         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
32255         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
32256         REPLACE_HYPOTL to 1.
32257         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
32259 2012-03-13  Bruno Haible  <bruno@clisp.org>
32261         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
32262         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
32263         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
32264         REPLACE_REMAINDERL to 1.
32265         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
32266         bug.
32268 2012-03-13  Bruno Haible  <bruno@clisp.org>
32270         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
32271         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
32272         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
32273         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
32274         too big rounding errors.
32275         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
32276         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
32277         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
32278         (Depends-on): Update conditions.
32279         * tests/test-sqrtl.c (my_ldexpl): New function.
32280         (main): Add test of a particular value.
32281         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
32283 2012-03-13  Pádraig Brady  <P@draigBrady.com>
32285         doc: Update timer_* platform portability notes.
32286         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
32287         that always return ENOSYS.
32288         * doc/posix-functions/timer_delete.texi: Likewise.
32289         * doc/posix-functions/timer_gettime.texi: Likewise.
32290         * doc/posix-functions/timer_settime.texi: Likewise.
32292 2012-03-13  Bruno Haible  <bruno@clisp.org>
32294         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
32295         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
32296         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
32297         REPLACE_CBRTL to 1.
32298         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
32300 2012-03-13  Bruno Haible  <bruno@clisp.org>
32302         remainderl: Avoid compilation error on AIX >= 5.2.
32303         * lib/math.in.h (remainderl): Undefine macro from the system header.
32305 2012-03-13  Bruno Haible  <bruno@clisp.org>
32307         Avoid compilation errors with MSVC option -fp:strict.
32308         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
32309         * lib/cbrtf.c: Likewise.
32310         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
32312 2012-03-12  Bruno Haible  <bruno@clisp.org>
32314         uninorm: Don't crash in out-of-memory conditions.
32315         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
32316         gracefully.
32317         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
32318         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
32320 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
32322         quote: fix syntax-check
32323         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
32324         also exports quote_quoting_options.
32326 2012-03-12  Simon Josefsson  <simon@josefsson.org>
32328         Collapse list of copyright years to ranges.  See
32329         <https://lists.gnu.org/r/bug-gnulib/2012-03/msg00051.html>.
32330         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
32331         build-aux/csharpexec.sh.in, build-aux/gnupload,
32332         build-aux/install-reloc, build-aux/javacomp.sh.in,
32333         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
32334         build-aux/move-if-change, build-aux/reloc-ldflags,
32335         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
32337 2012-03-11  Bruno Haible  <bruno@clisp.org>
32339         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
32340         * m4/log2f-ieee.m4: New file.
32341         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
32342         whether log2f works with a minus zero argument. Replace it if not.
32343         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
32344         (Depends-on): Add log2-ieee.
32345         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
32346         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
32348         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
32349         * m4/log2-ieee.m4: New file.
32350         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
32351         whether log2 works with a minus zero argument. Replace it if not.
32352         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
32353         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
32354         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
32356         Tests for module 'log2l-ieee'.
32357         * modules/log2l-ieee-tests: New file.
32358         * tests/test-log2l-ieee.c: New file.
32360         New module 'log2l-ieee'.
32361         * modules/log2l-ieee: New file.
32363         Tests for module 'log2-ieee'.
32364         * modules/log2-ieee-tests: New file.
32365         * tests/test-log2-ieee.c: New file.
32367         New module 'log2-ieee'.
32368         * modules/log2-ieee: New file.
32370         Tests for module 'log2f-ieee'.
32371         * modules/log2f-ieee-tests: New file.
32372         * tests/test-log2f-ieee.c: New file.
32373         * tests/test-log2-ieee.h: New file.
32375         New module 'log2f-ieee'.
32376         * modules/log2f-ieee: New file.
32378 2012-03-11  Bruno Haible  <bruno@clisp.org>
32380         Tests for module 'log2l'.
32381         * modules/log2l-tests: New file.
32382         * tests/test-log2l.c: New file.
32384         New module 'log2l'.
32385         * lib/math.in.h (log2l): New declaration.
32386         * lib/log2l.c: New file.
32387         * m4/log2l.m4: New file.
32388         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
32389         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
32390         REPLACE_LOG2L.
32391         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
32392         REPLACE_LOG2L.
32393         * modules/log2l: New file.
32394         * tests/test-math-c++.cc: Check the declaration of log2l.
32395         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
32396         and OSF/1 problems.
32398 2012-03-11  Bruno Haible  <bruno@clisp.org>
32400         Tests for module 'log2f'.
32401         * modules/log2f-tests: New file.
32402         * tests/test-log2f.c: New file.
32404         New module 'log2f'.
32405         * lib/math.in.h (log2f): New declaration.
32406         * lib/log2f.c: New file.
32407         * m4/log2f.m4: New file.
32408         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
32409         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
32410         REPLACE_LOG2F.
32411         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
32412         REPLACE_LOG2F.
32413         * modules/log2f: New file.
32414         * tests/test-math-c++.cc: Check the declaration of log2f.
32415         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
32416         and OSF/1 and Cygwin problems.
32418 2012-03-11  Bruno Haible  <bruno@clisp.org>
32420         Tests for module 'log2'.
32421         * modules/log2-tests: New file.
32422         * tests/test-log2.c: New file.
32423         * tests/test-log2.h: New file.
32425         New module 'log2'.
32426         * lib/math.in.h (log2): New declaration.
32427         * lib/log2.c: New file.
32428         * m4/log2.m4: New file.
32429         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
32430         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
32431         REPLACE_LOG2.
32432         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
32433         REPLACE_LOG2.
32434         * modules/log2: New file.
32435         * tests/test-math-c++.cc: Check the declaration of log2.
32436         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
32437         and OSF/1 and Cygwin problems.
32439 2012-03-11  Bruno Haible  <bruno@clisp.org>
32441         exp2* tests: More tests.
32442         * tests/test-exp2.h (test_function): Test all integral arguments that
32443         don't need to overflow or denormalized numbers.
32444         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
32445         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
32446         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
32448 2012-03-10  Bruno Haible  <bruno@clisp.org>
32450         log1pl-ieee: Work around test failure on AIX 7.1.
32451         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
32453         log1pl-ieee: Work around test failure on IRIX 6.5.
32454         * m4/log1pl-ieee.m4: New file.
32455         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
32456         test whether log1pl works with a minus zero argument. Replace it if
32457         not.
32458         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
32459         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
32460         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
32461         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
32462         (Depends-on): Update conditions.
32463         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
32464         m4/signbit.m4.
32465         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
32466         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
32468         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
32469         * m4/log1pf-ieee.m4: New file.
32470         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
32471         test whether log1pf works with a minus zero argument. Replace it if
32472         not.
32473         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
32474         m4/signbit.m4.
32475         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
32476         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
32478         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
32479         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
32480         (configure.ac): Require gl_FUNC_LOG1PF.
32482         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
32483         * m4/log1p-ieee.m4: New file.
32484         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
32485         whether log1p works with a minus zero argument. Replace it if not.
32486         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
32487         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
32488         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
32489         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
32490         (Depends-on): Update conditions.
32491         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
32492         m4/signbit.m4.
32493         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
32494         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
32496         Tests for module 'log1pl-ieee'.
32497         * modules/log1pl-ieee-tests: New file.
32498         * tests/test-log1pl-ieee.c: New file.
32500         New module 'log1pl-ieee'.
32501         * modules/log1pl-ieee: New file.
32503         Tests for module 'log1p-ieee'.
32504         * modules/log1p-ieee-tests: New file.
32505         * tests/test-log1p-ieee.c: New file.
32507         New module 'log1p-ieee'.
32508         * modules/log1p-ieee: New file.
32510         Tests for module 'log1pf-ieee'.
32511         * modules/log1pf-ieee-tests: New file.
32512         * tests/test-log1pf-ieee.c: New file.
32513         * tests/test-log1p-ieee.h: New file.
32515         New module 'log1pf-ieee'.
32516         * modules/log1pf-ieee: New file.
32518 2012-03-10  Bruno Haible  <bruno@clisp.org>
32520         Tests for module 'log1pl'.
32521         * modules/log1pl-tests: New file.
32522         * tests/test-log1pl.c: New file.
32524         New module 'log1pl'.
32525         * lib/math.in.h (log1pl): New declaration.
32526         * lib/log1pl.c: New file.
32527         * m4/log1pl.m4: New file.
32528         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
32529         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
32530         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
32531         * modules/log1pl: New file.
32532         * tests/test-math-c++.cc: Check the declaration of log1pl.
32533         * doc/posix-functions/log1pl.texi: Mention the new module.
32535 2012-03-10  Bruno Haible  <bruno@clisp.org>
32537         Tests for module 'log1pf'.
32538         * modules/log1pf-tests: New file.
32539         * tests/test-log1pf.c: New file.
32541         New module 'log1pf'.
32542         * lib/math.in.h (log1pf): New declaration.
32543         * lib/log1pf.c: New file.
32544         * m4/log1pf.m4: New file.
32545         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
32546         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
32547         REPLACE_LOG1PF.
32548         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
32549         REPLACE_LOG1PF.
32550         * modules/log1pf: New file.
32551         * tests/test-math-c++.cc: Check the declaration of log1pf.
32552         * doc/posix-functions/log1pf.texi: Mention the new module.
32554 2012-03-10  Bruno Haible  <bruno@clisp.org>
32556         log1p tests: More tests.
32557         * tests/test-log1p.h: New file.
32558         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
32559         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
32560         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
32561         (main): Invoke test_function.
32563         log1p: Provide replacement for Minix and MSVC.
32564         * lib/math.in.h (log1p): New declaration.
32565         * lib/log1p.c: New file.
32566         * m4/log1p.m4: New file.
32567         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
32568         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
32569         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
32570         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
32571         (Depends-on): Add math, isnand, log, round.
32572         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
32573         HAVE_LOG1P is 0.
32574         * tests/test-math-c++.cc: Check the declaration of log1p.
32575         * doc/posix-functions/log1p.texi: Mention the replacement.
32577 2012-03-10  Bruno Haible  <bruno@clisp.org>
32579         math tests: Small simplification.
32580         * tests/test-exp.h (test_function): Use the same err_bound for
32581         'double' on platforms with sizeof (long double) == sizeof (double)
32582         than on platforms with sizeof (long double) > sizeof (double).
32583         * tests/test-exp2.h (test_function): Likewise.
32584         * tests/test-expm1.h (test_function): Likewise.
32585         * tests/test-log.h (test_function): Likewise.
32587 2012-03-10  Bruno Haible  <bruno@clisp.org>
32589         Fix some comments.
32590         * lib/expl.c: Fix an ambiguous comment.
32591         * lib/expm1.c: Likewise.
32592         * lib/expm1l.c: Likewise.
32593         * lib/exp2.c: Likewise.
32594         * lib/exp2l.c: Likewise.
32596 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
32598         regex: allow inclusion of <regex.h> before <limits.h>
32599         Without this patch, portable programs had to include <limits.h> before
32600         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
32601         I ran into this problem with a test version of GNU grep on Solaris 8.
32602         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
32603         This is done conditionally so that this change can be merged
32604         back to glibc.
32605         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
32606         using the included regex.
32608         fts: depend on fdopendir
32609         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
32610         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
32611         problem was introduced when fdopendir was split out.
32613 2012-03-10  Bruno Haible  <bruno@clisp.org>
32615         Remove unused variables.
32616         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
32617         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
32619 2012-03-10  Bruno Haible  <bruno@clisp.org>
32621         isnanf-nolibm: Fix last commit.
32622         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
32624         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
32625         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
32627 2012-03-10  Bruno Haible  <bruno@clisp.org>
32629         logf-ieee: Work around test failure on NetBSD 5.1.
32630         * m4/logf-ieee.m4: New file.
32631         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
32632         whether logf works with a negative argument. Replace it if not.
32633         * lib/logf.c (logf): For negative arguments, return NaN.
32634         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
32635         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
32636         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
32638         logf-ieee: Work around test failure on Solaris 9.
32639         * modules/logf-ieee (Depends-on): Add log-ieee.
32640         (configure.ac): Require gl_FUNC_LOGF.
32642         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
32643         * m4/log-ieee.m4: New file.
32644         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
32645         log works with a negative argument. Replace it if not.
32646         * lib/log.c (log): For negative arguments, return NaN.
32647         * modules/log-ieee (Files): Add m4/log-ieee.m4.
32648         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
32649         * doc/posix-functions/log.texi: Mention the log-ieee module.
32651         Tests for module 'logl-ieee'.
32652         * modules/logl-ieee-tests: New file.
32653         * tests/test-logl-ieee.c: New file.
32655         New module 'logl-ieee'.
32656         * modules/logl-ieee: New file.
32658         Tests for module 'log-ieee'.
32659         * modules/log-ieee-tests: New file.
32660         * tests/test-log-ieee.c: New file.
32662         New module 'log-ieee'.
32663         * modules/log-ieee: New file.
32665         Tests for module 'logf-ieee'.
32666         * modules/logf-ieee-tests: New file.
32667         * tests/test-logf-ieee.c: New file.
32668         * tests/test-log-ieee.h: New file.
32670         New module 'logf-ieee'.
32671         * modules/logf-ieee: New file.
32673 2012-03-10  Bruno Haible  <bruno@clisp.org>
32675         log: Fix bug introduced on 2012-03-09.
32676         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
32678 2012-03-10  Pádraig Brady  <P@draigBrady.com>
32680         timer-time: link explicitly with pthreads on glibc
32681         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
32682         to support static linking, when newer glibc is
32683         detected, as that contains pthread emulation of
32684         POSIX timer functions where required.
32685         * modules/timer-time: Depend on threadlib to
32686         pull in the appropriate library to link.
32688 2012-03-10  Bruno Haible  <bruno@clisp.org>
32690         log* tests: More tests.
32691         * tests/test-log.h: New file.
32692         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
32693         (main): Invoke test_function.
32694         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
32695         (main): Invoke test_function.
32696         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
32697         (main): Invoke test_function.
32698         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
32699         tests/randomd.c.
32700         (Makefile.am): Add randomd.c to test_log_SOURCES.
32701         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
32702         tests/randomf.c.
32703         (Makefile.am): Add randomf.c to test_logf_SOURCES.
32704         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
32705         tests/randoml.c.
32706         (Depends-on): Add 'float'.
32707         (Makefile.am): Add randoml.c to test_logl_SOURCES.
32709 2012-03-09  Bruno Haible  <bruno@clisp.org>
32711         logl: Work around OSF/1 5.1 bug.
32712         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
32713         * lib/logl.c (logl): If logl exists, use it and provide just the
32714         workaround.
32715         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
32716         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
32717         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
32718         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
32719         * modules/logl (configure.ac): Consider REPLACE_LOGL.
32720         (Depends-on): Update conditions.
32721         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
32723 2012-03-09  Bruno Haible  <bruno@clisp.org>
32725         logf: Work around OSF/1 5.1 bug.
32726         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
32727         * lib/logf.c (logf): If logf exists, use it and provide just the
32728         workaround.
32729         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
32730         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
32731         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
32732         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
32733         * modules/logf (configure.ac): Consider REPLACE_LOGF.
32734         (Depends-on): Update conditions.
32735         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
32737 2012-03-09  Bruno Haible  <bruno@clisp.org>
32739         log: Work around OSF/1 5.1 bug.
32740         * lib/math.in.h (log): New declaration.
32741         * lib/log.c: New file.
32742         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
32743         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
32744         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
32745         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
32746         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
32747         * modules/log (Files): Add lib/log.c.
32748         (Depends-on): Add math.
32749         (configure.ac): If REPLACE_LOG is 1, compile an override.
32750         * tests/test-math-c++.cc: Check the declaration of log.
32751         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
32753 2012-03-09  Jim Meyering  <meyering@redhat.com>
32755         readtokens.c: adjust wording in a comment
32756         * lib/readtokens.c: Insert omitted "that" in a comment.
32758 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
32760         modechange: add notations +40, 00440, etc.
32761         * lib/modechange.c (mode_compile): Support new notations
32762         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
32764 2012-03-08  Bruno Haible  <bruno@clisp.org>
32766         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
32767         * m4/exp2l-ieee.m4: New file.
32768         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
32769         test whether exp2l works with a NaN argument and with a negative
32770         infinity argument. Replace it if not.
32771         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
32772         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
32773         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
32774         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
32775         (Depends-on): Update conditions.
32776         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
32777         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
32778         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
32780         Tests for module 'exp2l-ieee'.
32781         * modules/exp2l-ieee-tests: New file.
32782         * tests/test-exp2l-ieee.c: New file.
32784         New module 'exp2l-ieee'.
32785         * modules/exp2l-ieee: New file.
32787         Tests for module 'exp2-ieee'.
32788         * modules/exp2-ieee-tests: New file.
32789         * tests/test-exp2-ieee.c: New file.
32791         New module 'exp2-ieee'.
32792         * modules/exp2-ieee: New file.
32794         Tests for module 'exp2f-ieee'.
32795         * modules/exp2f-ieee-tests: New file.
32796         * tests/test-exp2f-ieee.c: New file.
32797         * tests/test-exp2-ieee.h: New file.
32799         New module 'exp2f-ieee'.
32800         * modules/exp2f-ieee: New file.
32802 2012-03-08  Bruno Haible  <bruno@clisp.org>
32804         Tests for module 'exp2l'.
32805         * modules/exp2l-tests: New file.
32806         * tests/test-exp2l.c: New file.
32808         New module 'exp2l'.
32809         * lib/math.in.h (exp2l): New declaration.
32810         * lib/exp2l.c: New file.
32811         * lib/expl-table.c: New file, extracted from lib/expl.c.
32812         * lib/expl.c (gl_expl_table): New declaration.
32813         (expl): Remove expl_table. Update reference.
32814         * m4/exp2l.m4: New file.
32815         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
32816         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
32817         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
32818         * modules/exp2l: New file.
32819         * modules/expl (Files): Add lib/expl-table.c.
32820         (configure.ac): Compile also expl-table.c.
32821         * tests/test-math-c++.cc: Check the declaration of exp2l.
32822         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
32823         problem.
32825 2012-03-08  Bruno Haible  <bruno@clisp.org>
32827         Tests for module 'exp2f'.
32828         * modules/exp2f-tests: New file.
32829         * tests/test-exp2f.c: New file.
32831         New module 'exp2f'.
32832         * lib/math.in.h (exp2f): New declaration.
32833         * lib/exp2f.c: New file.
32834         * m4/exp2f.m4: New file.
32835         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
32836         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
32837         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
32838         * modules/exp2f: New file.
32839         * tests/test-math-c++.cc: Check the declaration of exp2f.
32840         * doc/posix-functions/exp2f.texi: Mention the new module and the
32841         IRIX problem.
32843 2012-03-08  Bruno Haible  <bruno@clisp.org>
32845         Tests for module 'exp2'.
32846         * modules/exp2-tests: New file.
32847         * tests/test-exp2.c: New file.
32848         * tests/test-exp2.h: New file.
32850         New module 'exp2'.
32851         * lib/math.in.h (exp2): New declaration.
32852         * lib/exp2.c: New file.
32853         * m4/exp2.m4: New file.
32854         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
32855         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
32856         REPLACE_EXP2.
32857         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
32858         REPLACE_EXP2.
32859         * modules/exp2: New file.
32860         * tests/test-math-c++.cc: Check the declaration of exp2.
32861         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
32862         and OpenBSD problems.
32864 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
32866         savedir: fix comment typo
32867         * lib/savedir.c (savedirstream): Fix typo in comment.
32869 2012-03-08  Bruno Haible  <bruno@clisp.org>
32871         test-readtokens.c: use const; remove unwarranted cast
32872         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
32874 2012-03-08  Bruno Haible  <bruno@clisp.org>
32876         fmal: Avoid compilation error on AIX.
32877         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
32878         AIX 5.2..7.1.
32880 2012-03-08  Bruno Haible  <bruno@clisp.org>
32882         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
32883         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
32884         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
32885         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
32886         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
32887         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
32888         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
32890 2012-03-08  Bruno Haible  <bruno@clisp.org>
32892         remainderf: Override buggy system function on IRIX 6.5.
32893         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
32894         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
32895         when it exists.
32896         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
32898 2012-03-08  Jim Meyering  <meyering@redhat.com>
32900         test-readtokens.c: avoid const-related compilation warnings
32901         * tests/test-readtokens.c: Avoid const-related compilation warnings.
32903 2012-03-07  Jim Meyering  <meyering@redhat.com>
32904             Bruno Haible  <bruno@clisp.org>
32906         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
32907         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
32908         tests/randomd.c.
32909         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
32910         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
32911         tests/randoml.c.
32912         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
32914 2012-03-07  Bruno Haible  <bruno@clisp.org>
32916         expm1l: Avoid compilation error on AIX.
32917         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
32918         AIX 5.2..7.1.
32920 2012-03-07  Bruno Haible  <bruno@clisp.org>
32922         expm1l: Don't override undeclared system function on IRIX 6.5.
32923         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
32924         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
32925         it exists. Set HAVE_DECL_EXPM1L.
32926         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
32927         HAVE_EXPM1L.
32928         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
32929         HAVE_EXPM1L.
32930         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
32932 2012-03-07  Bruno Haible  <bruno@clisp.org>
32934         remainderl: Don't override undeclared system function on IRIX 6.5.
32935         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
32936         HAVE_REMAINDERL.
32937         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
32938         declared when it exists. Set HAVE_DECL_REMAINDERL.
32939         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
32940         not HAVE_REMAINDERL.
32941         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
32942         HAVE_REMAINDERL.
32943         * doc/posix-functions/remainderl.texi: Mention missing declaration
32944         problem.
32946 2012-03-07  Bruno Haible  <bruno@clisp.org>
32948         rintf: Don't override undeclared system function on IRIX 6.5.
32949         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
32950         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
32951         exists. Set HAVE_DECL_RINTF.
32952         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
32953         HAVE_RINTF.
32954         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
32955         HAVE_RINTF.
32956         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
32958 2012-03-07  Bruno Haible  <bruno@clisp.org>
32960         roundl: Avoid compilation error on AIX.
32961         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
32962         AIX 5.2..7.1.
32964 2012-03-07  Bruno Haible  <bruno@clisp.org>
32966         roundl: Don't override undeclared system function on IRIX 6.5.
32967         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
32968         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
32969         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
32970         * modules/roundl (configure.ac): For replacement code, test
32971         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
32972         (Depends-on): Update conditions.
32973         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
32975 2012-03-07  Bruno Haible  <bruno@clisp.org>
32977         roundf: Don't override undeclared system function on IRIX 6.5.
32978         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
32979         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
32980         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
32981         * modules/roundf (configure.ac): For replacement code, test
32982         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
32983         (Depends-on): Update conditions.
32984         * modules/roundf-ieee (Depends-on): Update conditions.
32985         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
32987 2012-03-07  Bruno Haible  <bruno@clisp.org>
32989         round: Don't override undeclared system function on IRIX 6.5.
32990         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
32991         argument.
32992         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
32993         also when it is not declared. Set HAVE_ROUND. For replacement code,
32994         test HAVE_ROUND, not HAVE_DECL_ROUND.
32995         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
32996         not HAVE_DECL_ROUND.
32997         (Depends-on): Update conditions.
32998         * modules/round-ieee (Depends-on): Update conditions.
32999         * doc/posix-functions/round.texi: Mention the IRIX problem.
33001 2012-03-07  Bruno Haible  <bruno@clisp.org>
33003         copysignf: Don't override undeclared system function on IRIX 6.5.
33004         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
33005         HAVE_COPYSIGNF.
33006         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
33007         declared when it exists. Set HAVE_DECL_COPYSIGNF.
33008         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
33009         not HAVE_COPYSIGNF.
33010         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
33011         HAVE_COPYSIGNF.
33012         * doc/posix-functions/copysignf.texi: Mention missing declaration
33013         problem.
33015 2012-03-07  Jim Meyering  <meyering@redhat.com>
33017         readtokens: add tests
33018         * modules/readtokens-tests: New file.
33019         * tests/test-readtokens.c: New file.
33021 2012-03-07  Jim Meyering  <meyering@redhat.com>
33023         quotearg: the module must now include quote.h
33024         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
33025         So must the module.
33026         * modules/quotearg (Files): Add quote.h.
33028 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
33030         readtokens: avoid core dumps with unusual calling patterns
33031         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
33032         * lib/readtokens.c: Include limits.h.
33033         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
33034         (readtoken): Don't cache the delimiters; the cache code was buggy
33035         if !delim && saved_delim, or if the new n_delim differs from the old.
33036         Also, it wasn't thread-safe.
33038 2012-03-07  Bruno Haible  <bruno@clisp.org>
33040         quote: Adhere to common module description layout.
33041         * modules/quote (Makefile.am): Add back empty section.
33043 2012-03-06  Akim Demaille  <demaille@gostai.com>
33045         quote: fuse into quotearg
33046         This patch is made for the benefit of Bison.
33047         quote does not leave the choice of the quoting style to the user.
33048         quoting_style provides poor customizability, yet quoting_options,
33049         which is very rich, is hidden inside quotearg.c.  So in order to
33050         allow quote customization, move its implementation to quotearg.c.
33051         * lib/quote.c: Remove.
33052         * modules/quote: Adjust.
33053         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
33054         warning: provide all the members of literal structs.
33055         (quote_quoting_options): New.
33056         (quote, quote_n): Import implementation from quote.c.
33057         * lib/quote.h: Import the comments from quote.c.
33058         (quote_quoting_options): New.
33060 2012-03-06  Bruno Haible  <bruno@clisp.org>
33062         Tests for module 'expm1l-ieee'.
33063         * modules/expm1l-ieee-tests: New file.
33064         * tests/test-expm1l-ieee.c: New file.
33066         New module 'expm1l-ieee'.
33067         * modules/expm1l-ieee: New file.
33069         Tests for module 'expm1f-ieee'.
33070         * modules/expm1f-ieee-tests: New file.
33071         * tests/test-expm1f-ieee.c: New file.
33073         New module 'expm1f-ieee'.
33074         * modules/expm1f-ieee: New file.
33076         Tests for module 'expm1-ieee'.
33077         * modules/expm1-ieee-tests: New file.
33078         * tests/test-expm1-ieee.c: New file.
33079         * tests/test-expm1-ieee.h: New file.
33081         New module 'expm1-ieee'.
33082         * modules/expm1-ieee: New file.
33083         * m4/expm1-ieee.m4: New file.
33084         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
33085         whether expm1 works with a minus zero argument. Replace it if not.
33086         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
33087         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
33088         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
33089         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
33090         (Depends-on): Update conditions.
33091         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
33092         AIX problem.
33094 2012-03-06  Bruno Haible  <bruno@clisp.org>
33096         Work around expm1f bug on IRIX 6.5.
33097         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
33098         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
33099         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
33100         not work.
33101         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
33102         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
33103         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
33104         (Depends-on): Update conditions.
33105         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
33107 2012-03-06  Bruno Haible  <bruno@clisp.org>
33109         Tests for module 'expm1l'.
33110         * modules/expm1l-tests: New file.
33111         * tests/test-expm1l.c: New file.
33113         New module 'expm1l'.
33114         * lib/math.in.h (expm1l): New declaration.
33115         * lib/expm1l.c: New file.
33116         * m4/expm1l.m4: New file.
33117         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
33118         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
33119         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
33120         * modules/expm1l: New file.
33121         * tests/test-math-c++.cc: Check the declaration of expm1l.
33122         * doc/posix-functions/expm1l.texi: Mention the new module.
33124 2012-03-06  Bruno Haible  <bruno@clisp.org>
33126         Tests for module 'expm1f'.
33127         * modules/expm1f-tests: New file.
33128         * tests/test-expm1f.c: New file.
33130         New module 'expm1f'.
33131         * lib/math.in.h (expm1f): New declaration.
33132         * lib/expm1f.c: New file.
33133         * m4/expm1f.m4: New file.
33134         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
33135         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
33136         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
33137         * modules/expm1f: New file.
33138         * tests/test-math-c++.cc: Check the declaration of expm1f.
33139         * doc/posix-functions/expm1f.texi: Mention the new module.
33141 2012-03-06  Bruno Haible  <bruno@clisp.org>
33143         Tests for module 'expm1'.
33144         * modules/expm1-tests: New file.
33145         * tests/test-expm1.c: New file.
33146         * tests/test-expm1.h: New file.
33148         New module 'expm1'.
33149         * lib/math.in.h (expm1): New declaration.
33150         * lib/expm1.c: New file.
33151         * m4/expm1.m4: New file.
33152         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
33153         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
33154         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
33155         * modules/expm1: New file.
33156         * tests/test-math-c++.cc: Check the declaration of expm1.
33157         * doc/posix-functions/expm1.texi: Mention the new module.
33159 2012-03-06  Bruno Haible  <bruno@clisp.org>
33161         math: Ensure declarations of math functions.
33162         * modules/acosf (Depends-on): Add 'extensions'.
33163         * modules/asinf (Depends-on): Likewise.
33164         * modules/atan2f (Depends-on): Likewise.
33165         * modules/atanf (Depends-on): Likewise.
33166         * modules/cbrt (Depends-on): Likewise.
33167         * modules/cbrtf (Depends-on): Likewise.
33168         * modules/cbrtl (Depends-on): Likewise.
33169         * modules/copysignf (Depends-on): Likewise.
33170         * modules/copysignl (Depends-on): Likewise.
33171         * modules/cosf (Depends-on): Likewise.
33172         * modules/coshf (Depends-on): Likewise.
33173         * modules/expf (Depends-on): Likewise.
33174         * modules/fabsf (Depends-on): Likewise.
33175         * modules/fabsl (Depends-on): Likewise.
33176         * modules/fmaf (Depends-on): Likewise.
33177         * modules/fmal (Depends-on): Likewise.
33178         * modules/fmodf (Depends-on): Likewise.
33179         * modules/fmodl (Depends-on): Likewise.
33180         * modules/frexpf (Depends-on): Likewise.
33181         * modules/frexpl (Depends-on): Likewise.
33182         * modules/hypot (Depends-on): Likewise.
33183         * modules/hypotf (Depends-on): Likewise.
33184         * modules/hypotl (Depends-on): Likewise.
33185         * modules/ldexpf (Depends-on): Likewise.
33186         * modules/ldexpl (Depends-on): Likewise.
33187         * modules/log10f (Depends-on): Likewise.
33188         * modules/log10l (Depends-on): Likewise.
33189         * modules/log1p (Depends-on): Likewise.
33190         * modules/logb (Depends-on): Likewise.
33191         * modules/logf (Depends-on): Likewise.
33192         * modules/modff (Depends-on): Likewise.
33193         * modules/modfl (Depends-on): Likewise.
33194         * modules/powf (Depends-on): Likewise.
33195         * modules/remainderf (Depends-on): Likewise.
33196         * modules/remainderl (Depends-on): Likewise.
33197         * modules/rintf (Depends-on): Likewise.
33198         * modules/rintl (Depends-on): Likewise.
33199         * modules/sinf (Depends-on): Likewise.
33200         * modules/sinhf (Depends-on): Likewise.
33201         * modules/sqrtf (Depends-on): Likewise.
33202         * modules/tanf (Depends-on): Likewise.
33203         * modules/tanhf (Depends-on): Likewise.
33204         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
33205         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
33206         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
33207         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
33208         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
33209         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
33210         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
33211         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
33212         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
33213         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
33214         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
33215         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
33216         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
33217         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
33218         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
33219         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
33220         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
33221         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
33222         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
33223         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
33224         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
33225         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
33226         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
33227         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
33228         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
33229         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
33230         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
33231         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
33232         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
33233         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
33234         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
33235         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
33236         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
33237         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
33238         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
33239         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
33240         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
33241         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
33242         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
33243         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
33244         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
33246 2012-03-06  Bruno Haible  <bruno@clisp.org>
33248         math: Update module names in warnings.
33249         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
33250         tanl): Use specific module name in warn-on-use warning.
33252 2012-03-06  Bruno Haible  <bruno@clisp.org>
33254         expl: Simplify computation.
33255         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
33257 2012-03-05  Bruno Haible  <bruno@clisp.org>
33259         exp* tests: More tests.
33260         * tests/test-exp.h: New file.
33261         * tests/test-exp.c: Include <float.h> and test-exp.h.
33262         (main): Invoke test_function.
33263         * tests/test-expf.c: Include <float.h> and test-exp.h.
33264         (main): Invoke test_function.
33265         * tests/test-expl.c: Include <float.h> and test-exp.h.
33266         (main): Invoke test_function.
33267         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
33268         (Makefile.am): Add randomd.c to test_exp_SOURCES.
33269         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
33270         (Makefile.am): Add randomf.c to test_expf_SOURCES.
33271         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
33272         (Depends-on): Add 'float'.
33273         (Makefile.am): Add randoml.c to test_expl_SOURCES.
33275         expl: Fix precision of computed result.
33276         * lib/expl.c: Completely rewritten.
33277         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
33278         (Maintainer): Add me.
33279         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
33281 2012-03-05  Bruno Haible  <bruno@clisp.org>
33283         cbrt* tests: More tests.
33284         * tests/test-cbrt.h: New file.
33285         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
33286         (main): Invoke test_function.
33287         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
33288         (main): Invoke test_function.
33289         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
33290         (main): Invoke test_function.
33291         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
33292         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
33293         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
33294         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
33295         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
33296         (Depends-on): Add 'float'.
33297         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
33299 2012-03-05  Bruno Haible  <bruno@clisp.org>
33301         hypot* tests: More tests.
33302         * tests/test-hypot.h: New file, partially extracted from
33303         tests/test-hypotl.c.
33304         * tests/test-hypot.c: Include test-hypot.h.
33305         (main): Invoke test_function.
33306         * tests/test-hypotf.c: Include test-hypot.h.
33307         (main): Invoke test_function.
33308         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
33309         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
33310         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
33311         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
33312         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
33313         tests/randomf.c.
33314         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
33315         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
33316         tests/randoml.c.
33317         (Depends-on): Add 'fpucw', 'float'.
33318         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
33320 2012-03-05  Bruno Haible  <bruno@clisp.org>
33322         fpucw: Doc about FreeBSD.
33323         * lib/fpucw.h: Mention FreeBSD in comments.
33325 2012-03-04  Bruno Haible  <bruno@clisp.org>
33327         sqrt* tests: More tests.
33328         * tests/test-sqrt.h: New file.
33329         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
33330         (main): Invoke test_function.
33331         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
33332         (main): Invoke test_function.
33333         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
33334         (main): Invoke test_function.
33335         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
33336         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
33337         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
33338         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
33339         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
33340         (Depends-on): Add 'float'.
33341         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
33343 2012-03-04  Bruno Haible  <bruno@clisp.org>
33345         remainder* tests: More tests.
33346         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
33347         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
33348         (main): Invoke test_function.
33349         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
33350         (main): Invoke test_function.
33351         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
33352         (main): Invoke test_function.
33353         * modules/remainder-tests (Files): Add tests/test-remainder.h,
33354         tests/randomd.c.
33355         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
33356         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
33357         tests/randomf.c.
33358         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
33359         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
33360         tests/randoml.c.
33361         (Depends-on): Add 'float'.
33362         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
33364 2012-03-04  Bruno Haible  <bruno@clisp.org>
33366         remainder, remainderf, remainderl: Fix computation for large quotients.
33367         * lib/remainder.c: Completely rewritten.
33368         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
33369         USE_FLOAT.
33370         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
33371         USE_LONG_DOUBLE.
33372         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
33373         isnand, isinf. Remove round, fma.
33374         * modules/remainderf (Files): Add lib/remainder.c.
33375         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
33376         Remove roundf, fmaf.
33377         * modules/remainderl (Files): Add lib/remainder.c.
33378         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
33379         isinf. Remove roundl, fmal.
33380         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
33381         REMAINDER_LIBM.
33382         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
33383         REMAINDERF_LIBM.
33384         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
33385         REMAINDERL_LIBM.
33387 2012-03-04  Bruno Haible  <bruno@clisp.org>
33389         fmod* tests: More tests.
33390         * tests/test-fmod.h (my_ldexp): New function.
33391         (test_function): Reduce amount of random numbers to test. Add tests
33392         of very large quotients x / y.
33393         * tests/test-fmod.c (MAX_EXP): New macro.
33394         * tests/test-fmodf.c (MAX_EXP): Likewise.
33395         * tests/test-fmodl.c (MAX_EXP): Likewise.
33397 2012-03-04  Bruno Haible  <bruno@clisp.org>
33399         fmod, fmodl: Fix computation for large quotients x / y.
33400         * lib/fmod.c: Completely rewritten.
33401         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
33402         USE_LONG_DOUBLE.
33403         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
33404         isnand. Remove fma.
33405         * modules/fmodl (Files): Add lib/fmod.c.
33406         (Depends-on): Add float, isfinite, signbit, fabsl,
33407         frexpl, ldexpl, isnanl. Remove fma.
33408         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
33409         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
33411 2012-03-03  Bruno Haible  <bruno@clisp.org>
33413         fmod* tests: More tests.
33414         * tests/test-fmod.h: New file.
33415         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
33416         (main): Invoke test_function.
33417         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
33418         (main): Invoke test_function.
33419         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
33420         (main): Invoke test_function.
33421         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
33422         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
33423         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
33424         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
33425         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
33426         (Depends-on): Add 'float'.
33427         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
33429 2012-03-03  Bruno Haible  <bruno@clisp.org>
33431         rint* tests: More tests.
33432         * tests/test-rint.h: New file, partially extracted from
33433         tests/test-rintl.c.
33434         * tests/test-rint.c: Include test-rint.h.
33435         (main): Invoke test_function.
33436         * tests/test-rintf.c: Include test-rint.h.
33437         (main): Invoke test_function.
33438         * tests/test-rintl.c: Include test-rint.h.
33439         (main): Invoke test_function.
33440         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
33441         (Makefile.am): Add randomd.c to test_rint_SOURCES.
33442         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
33443         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
33444         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
33445         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
33447 2012-03-03  Bruno Haible  <bruno@clisp.org>
33449         modf* tests: More tests.
33450         * tests/test-modf.h: New file.
33451         * tests/test-modf.c: Include <float.h> and test-modf.h.
33452         (main): Invoke test_function.
33453         * tests/test-modff.c: Include <float.h> and test-modf.h.
33454         (main): Invoke test_function.
33455         * tests/test-modfl.c: Include <float.h> and test-modf.h.
33456         (main): Invoke test_function.
33457         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
33458         (Makefile.am): Add randomd.c to test_modf_SOURCES.
33459         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
33460         (Makefile.am): Add randomf.c to test_modff_SOURCES.
33461         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
33462         (Depends-on): Add 'float'.
33463         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
33465 2012-03-03  Bruno Haible  <bruno@clisp.org>
33467         fabs* tests: More tests.
33468         * tests/test-fabs.h: New file, partially extracted from
33469         tests/test-fabsl.c.
33470         * tests/test-fabs.c (RANDOM): New macro.
33471         * tests/test-fabsf.c (RANDOM): New macro.
33472         * tests/test-fabsl.c (RANDOM): New macro.
33473         * modules/fabs-tests (Files): Add tests/randomd.c.
33474         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
33475         * modules/fabsf-tests (Files): Add tests/randomf.c.
33476         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
33477         * modules/fabsl-tests (Files): Add tests/randoml.c.
33478         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
33480 2012-03-03  Bruno Haible  <bruno@clisp.org>
33482         ldexp* tests: More tests.
33483         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
33484         * tests/test-ldexp.c (RANDOM): New macro.
33485         * tests/test-ldexpf.c (RANDOM): New macro.
33486         * tests/test-ldexpl.c (RANDOM): New macro.
33487         * modules/ldexp-tests (Files): Add tests/randomd.c.
33488         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
33489         * modules/ldexpf-tests (Files): Add tests/randomf.c.
33490         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
33491         * modules/ldexpl-tests (Files): Add tests/randoml.c.
33492         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
33494 2012-03-03  Bruno Haible  <bruno@clisp.org>
33496         frexp* tests: More tests.
33497         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
33498         * tests/test-frexp.c (RANDOM): New macro.
33499         * tests/test-frexpf.c (RANDOM): New macro.
33500         * tests/test-frexpl.c (RANDOM): New macro.
33501         * modules/frexp-tests (Files): Add tests/randomd.c.
33502         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
33503         * modules/frexpf-tests (Files): Add tests/randomf.c.
33504         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
33505         * modules/frexpl-tests (Files): Add tests/randoml.c.
33506         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
33508 2012-03-03  Bruno Haible  <bruno@clisp.org>
33510         Support for pseudo-random numbers in tests.
33511         * tests/randomf.c: New file.
33512         * tests/randomd.c: New file.
33513         * tests/randoml.c: New file.
33514         * tests/macros.h (randomf, randomd, randoml): New declarations.
33516 2012-03-03  Bruno Haible  <bruno@clisp.org>
33518         frexp* tests: Refactor.
33519         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
33520         * tests/test-frexp.c: Include and use it.
33521         * tests/test-frexpf.c: Likewise.
33522         * tests/test-frexpl.c: Likewise.
33523         * modules/frexp-tests (Files): Add tests/test-frexp.h.
33524         * modules/frexpf-tests (Files): Likewise.
33525         * modules/frexpl-tests (Files): Likewise.
33527 2012-03-02  Jim Meyering  <meyering@redhat.com>
33529         maint: don't specify XZ_OPT=-9ev in dist-related rule
33530         Using xz's -9 option is warranted only if you have a very large
33531         tarball (see xz's documentation for the sizes vs. presets), and
33532         requires 64MiB of memory at decompression time.
33533         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
33534         Automake's default of just "-e" is fine.  Override on a
33535         per-package basis by setting XZ_OPT e.g., in cfg.mk.
33537 2012-03-01  Eric Blake  <eblake@redhat.com>
33539         maint.mk: allow announcement for non-gnulib project
33540         * maint.mk (announcement): Skip gnulib version if not used.
33542 2012-03-01  Jim Meyering  <meyering@redhat.com>
33544         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
33545         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
33546         envvar settings cannot interfere.  Otherwise, setting envvars like
33547         prohibit=foo require=bar, etc. would cause spurious test failures.
33549 2012-03-01  Eric Blake  <eblake@redhat.com>
33551         maint.mk: add per-line exclusions to prohibitions
33552         * maint.mk (_sc_search_regexp): Add $exclude parameter.
33553         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
33554         (sc_const_long_option): Use it.
33556 2012-03-01  Bruno Haible  <bruno@clisp.org>
33558         Tests for module 'expl-ieee'.
33559         * modules/expl-ieee-tests: New file.
33560         * tests/test-expl-ieee.c: New file.
33562         New module 'expl-ieee'.
33563         * modules/expl-ieee: New file.
33565         Tests for module 'exp-ieee'.
33566         * modules/exp-ieee-tests: New file.
33567         * tests/test-exp-ieee.c: New file.
33569         New module 'exp-ieee'.
33570         * modules/exp-ieee: New file.
33572         Tests for module 'expf-ieee'.
33573         * modules/expf-ieee-tests: New file.
33574         * tests/test-expf-ieee.c: New file.
33575         * tests/test-exp-ieee.h: New file.
33577         New module 'expf-ieee'.
33578         * modules/expf-ieee: New file.
33580 2012-02-29  Bruno Haible  <bruno@clisp.org>
33582         cbrtl-ieee: Work around test failure on IRIX 6.5.
33583         * m4/cbrtl-ieee.m4: New file.
33584         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
33585         test whether cbrtl works with a minus zero argument. Replace it if not.
33586         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
33587         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
33588         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
33589         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
33590         (Depends-on): Update conditions.
33591         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
33592         m4/signbit.m4.
33593         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
33594         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
33595         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
33597         Tests for module 'cbrtl-ieee'.
33598         * modules/cbrtl-ieee-tests: New file.
33599         * tests/test-cbrtl-ieee.c: New file.
33601         New module 'cbrtl-ieee'.
33602         * modules/cbrtl-ieee: New file.
33604         Tests for module 'cbrt-ieee'.
33605         * modules/cbrt-ieee-tests: New file.
33606         * tests/test-cbrt-ieee.c: New file.
33608         New module 'cbrt-ieee'.
33609         * modules/cbrt-ieee: New file.
33611         Tests for module 'cbrtf-ieee'.
33612         * modules/cbrtf-ieee-tests: New file.
33613         * tests/test-cbrtf-ieee.c: New file.
33614         * tests/test-cbrt-ieee.h: New file.
33616         New module 'cbrtf-ieee'.
33617         * modules/cbrtf-ieee: New file.
33619 2012-02-29  Bruno Haible  <bruno@clisp.org>
33621         cbrtf: Work around bug in IRIX 6.5 system function.
33622         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
33623         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
33624         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
33625         work.
33626         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
33627         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
33628         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
33629         (Depends-on): Update conditions.
33630         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
33632 2012-02-29  Bruno Haible  <bruno@clisp.org>
33634         Tests for module 'cbrtl'.
33635         * modules/cbrtl-tests: New file.
33636         * tests/test-cbrtl.c: New file.
33638         New module 'cbrtl'.
33639         * lib/math.in.h (cbrtl): New declaration.
33640         * lib/cbrtl.c: New file.
33641         * m4/cbrtl.m4: New file.
33642         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
33643         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
33644         HAVE_DECL_CBRTL.
33645         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
33646         HAVE_DECL_CBRTL.
33647         * modules/cbrtl: New file.
33648         * tests/test-math-c++.cc: Check the declaration of cbrtl.
33649         * doc/posix-functions/cbrtl.texi: Mention the new module.
33651 2012-02-29  Bruno Haible  <bruno@clisp.org>
33653         Tests for module 'cbrtf'.
33654         * modules/cbrtf-tests: New file.
33655         * tests/test-cbrtf.c: New file.
33657         New module 'cbrtf'.
33658         * lib/math.in.h (cbrtf): New declaration.
33659         * lib/cbrtf.c: New file.
33660         * m4/cbrtf.m4: New file.
33661         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
33662         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
33663         HAVE_DECL_CBRTF.
33664         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
33665         HAVE_DECL_CBRTF.
33666         * modules/cbrtf: New file.
33667         * tests/test-math-c++.cc: Check the declaration of cbrtf.
33668         * doc/posix-functions/cbrtf.texi: Mention the new module.
33670 2012-02-29  Bruno Haible  <bruno@clisp.org>
33672         cbrt: Provide replacement on MSVC and Minix.
33673         * lib/math.in.h (cbrt): New declaration.
33674         * lib/cbrt.c: New file.
33675         * m4/cbrt.m4: New file.
33676         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
33677         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
33678         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
33679         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
33680         (Depends-on): Add dependencies.
33681         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
33682         * tests/test-math-c++.cc: Check the declaration of cbrt.
33683         * doc/posix-functions/cbrt.texi: Mention that the module provides a
33684         replacement.
33686 2012-02-29  Bruno Haible  <bruno@clisp.org>
33688         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
33689         * m4/hypotl-ieee.m4: New file.
33690         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
33691         test whether hypotl works with mixed NaN and Infinity arguments.
33692         Replace it if not.
33693         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
33694         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
33695         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
33696         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
33697         (Depends-on): Update conditions.
33698         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
33699         (Depends-on): Add hypot-ieee.
33700         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
33701         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
33703         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
33704         * m4/hypotf-ieee.m4: New file.
33705         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
33706         test whether hypotf works with mixed NaN and Infinity arguments.
33707         Replace it if not.
33708         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
33709         (Depends-on): Add hypot-ieee.
33710         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
33711         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
33713         hypot-ieee: Work around test failure on OSF/1 and native Windows.
33714         * lib/math.in.h (hypot): New declaration.
33715         * lib/hypot.c: New file.
33716         * m4/hypot-ieee.m4: New file.
33717         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
33718         whether hypot works with mixed NaN and Infinity arguments. Replace it
33719         if not.
33720         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
33721         REPLACE_HYPOT.
33722         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
33723         * modules/hypot (Files): Add lib/hypot.c.
33724         (Depends-on): Add dependencies.
33725         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
33726         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
33727         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
33728         * tests/test-math-c++.cc: Check the declaration of hypot.
33729         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
33731         Tests for module 'hypotl-ieee'.
33732         * modules/hypotl-ieee-tests: New file.
33733         * tests/test-hypotl-ieee.c: New file.
33735         New module 'hypotl-ieee'.
33736         * modules/hypotl-ieee: New file.
33738         Tests for module 'hypot-ieee'.
33739         * modules/hypot-ieee-tests: New file.
33740         * tests/test-hypot-ieee.c: New file.
33742         New module 'hypot-ieee'.
33743         * modules/hypot-ieee: New file.
33745         Tests for module 'hypotf-ieee'.
33746         * modules/hypotf-ieee-tests: New file.
33747         * tests/test-hypotf-ieee.c: New file.
33748         * tests/test-hypot-ieee.h: New file.
33750         New module 'hypotf-ieee'.
33751         * modules/hypotf-ieee: New file.
33753 2012-02-29  Bruno Haible  <bruno@clisp.org>
33755         Remove unused variables.
33756         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
33757         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
33758         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
33759         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
33761 2012-02-29  Eric Blake  <eblake@redhat.com>
33763         termios: fix pid_t always, not just for tcgetsid
33764         * doc/posix-headers/termios.texi (termios.h): Mention problem.
33765         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
33766         just when building tcgetsid.
33768 2012-02-29  Bruno Haible  <bruno@clisp.org>
33770         Tests for module 'hypotl'.
33771         * modules/hypotl-tests: New file.
33772         * tests/test-hypotl.c: New file.
33774         New module 'hypotl'.
33775         * lib/math.in.h (hypotl): New declaration.
33776         * lib/hypotl.c: New file.
33777         * m4/hypotl.m4: New file.
33778         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
33779         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
33780         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
33781         * modules/hypotl: New file.
33782         * tests/test-math-c++.cc: Check the hypotl declaration.
33783         * doc/posix-functions/hypotl.texi: Mention the new module.
33785 2012-02-29  Eric Blake  <eblake@redhat.com>
33787         tcgetsid: fix cygwin header bug
33788         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
33790         docs: update cygwin progress
33791         * doc/posix-functions/llround.texi (llround): Added in cygwin
33792         1.7.8.
33793         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
33794         * doc/glibc-functions/program_invocation_name.texi
33795         (program_invocation_name): Likewise.
33796         * doc/glibc-functions/program_invocation_short_name.texi
33797         (program_invocation_short_name): Likewise.
33798         * doc/glibc-functions/madvise.texi (madvise): Likewise.
33799         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
33800         Likewise.
33801         * doc/posix-functions/pthread_spin_destroy.texi
33802         (pthread_spin_destroy): Added in cygwin 1.7.10.
33803         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
33804         Likewise.
33805         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
33806         Likewise.
33807         * doc/posix-functions/pthread_spin_trylock.texi
33808         (pthread_spin_trylock): Likewise.
33809         * doc/posix-functions/pthread_spin_unlock.texi
33810         (pthread_spin_unlock): Likewise.
33811         * doc/posix-functions/pthread_setschedprio.texi
33812         (pthread_setschedprio): Likewise.
33813         * doc/posix-functions/pthread_attr_getstack.texi
33814         (pthread_attr_getstack): Likewise.
33815         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
33816         (pthread_attr_getstackaddr): Likewise.
33817         * doc/glibc-functions/pthread_getattr_np.texi
33818         (pthread_getattr_np): Likewise.
33819         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
33820         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
33821         * doc/posix-functions/clock_settime.texi (clock_settime):
33822         Likewise.
33823         * doc/posix-functions/pthread_attr_getguardsize.texi
33824         (pthread_attr_getguardsize): Likewise.
33825         * doc/posix-functions/pthread_attr_setguardsize.texi
33826         (pthread_attr_setguardsize): Likewise.
33827         * doc/posix-functions/pthread_attr_setstack.texi
33828         (pthread_attr_setstack): Likewise.
33829         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
33830         (pthread_attr_setstackaddr): Likewise.
33831         * doc/posix-functions/clock_getcpuclockid.texi
33832         (clock_getcpuclockid): Likewise.
33833         * doc/posix-functions/pthread_getcpuclockid.texi
33834         (pthread_getcpuclockid): Likewise.
33835         * doc/glibc-functions/error.texi (error): Likewise.
33836         * doc/glibc-functions/error_at_line.texi (error_at_line):
33837         Likewise.
33838         * doc/glibc-functions/error_message_count.texi
33839         (error_message_count): Likewise.
33840         * doc/glibc-functions/error_one_per_line.texi
33841         (error_one_per_line): Likewise.
33842         * doc/glibc-functions/error_print_progname.texi
33843         (error_print_progname): Likewise.
33844         * doc/posix-functions/pthread_condattr_getclock.texi
33845         (pthread_condattr_getclock): Likewise.
33846         * doc/posix-functions/pthread_condattr_setclock.texi
33847         (pthread_condattr_setclock): Likewise.
33848         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
33849         Likewise.
33850         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
33851         * doc/glibc-functions/getpt.texi (getpt): Likewise.
33852         * doc/glibc-functions/get_current_dir_name.texi
33853         (get_current_dir_name): Likewise.
33854         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
33855         Likewise.
33856         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
33857         wrong return type.
33858         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
33859         1.7.11.
33861 2012-02-29  Bruno Haible  <bruno@clisp.org>
33863         Tests for module 'hypotf'.
33864         * modules/hypotf-tests: New file.
33865         * tests/test-hypotf.c: New file.
33867         New module 'hypotf'.
33868         * lib/math.in.h (hypotf): New declaration.
33869         * lib/hypotf.c: New file.
33870         * m4/hypotf.m4: New file.
33871         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
33872         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
33873         REPLACE_HYPOTF.
33874         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
33875         REPLACE_HYPOTF.
33876         * modules/hypotf: New file.
33877         * tests/test-math-c++.cc: Check the hypotf declaration.
33878         * doc/posix-functions/hypotf.texi: Mention the new module.
33880         hypot: Prepare for hypotf module.
33881         * m4/hypot.m4: New file.
33882         * modules/hypot (Files): Add m4/hypot.m4.
33883         (configure.ac): Invoke gl_FUNC_HYPOT.
33885 2012-02-29  Bruno Haible  <bruno@clisp.org>
33887         hypot tests: More tests.
33888         * tests/test-hypot.c: Include <float.h>.
33889         (main): Add tests about overflow and underflow.
33891 2012-02-29  Bruno Haible  <bruno@clisp.org>
33893         math code: Add comments.
33894         * lib/acosl.c: Add comment about related glibc source files.
33895         * lib/asinl.c: Likewise.
33896         * lib/atanl.c: Likewise.
33897         * lib/expl.c: Likewise.
33898         * lib/logl.c: Likewise.
33899         * lib/sincosl.c: Likewise.
33900         * lib/sinl.c: Likewise.
33901         * lib/tanl.c: Likewise.
33902         * lib/trigl.c: Likewise.
33903         * lib/cosl.c: Likewise. Fix comments.
33905 2012-02-28  Bruno Haible  <bruno@clisp.org>
33907         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
33908         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
33909         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
33910         HUGE_VALL are defined.
33911         (numeric_equald): Renamed from numeric_equal.
33912         (numeric_equalf, numeric_equall): New functions.
33913         (main): Check also HUGE_VALF, HUGE_VALL.
33914         * modules/math-tests (Files): Add tests/macros.h.
33915         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
33916         HUGE_VALL.
33918 2012-02-28  Bruno Haible  <bruno@clisp.org>
33920         doc: Move ISO C11 feature notes into POSIX chapters.
33921         * doc/posix-functions/aligned_alloc.texi: Renamed from
33922         doc/glibc-functions/aligned_alloc.texi.
33923         * doc/posix-functions/quick_exit.texi: Renamed from
33924         doc/glibc-functions/quick_exit.texi.
33925         * doc/posix-headers/uchar.texi: Renamed from
33926         doc/glibc-headers/uchar.texi.
33927         * doc/posix-functions/c16rtomb.texi: Renamed from
33928         doc/glibc-functions/c16rtomb.texi.
33929         * doc/posix-functions/c32rtomb.texi: Renamed from
33930         doc/glibc-functions/c32rtomb.texi.
33931         * doc/posix-functions/mbrtoc16.texi: Renamed from
33932         doc/glibc-functions/mbrtoc16.texi.
33933         * doc/posix-functions/mbrtoc32.texi: Renamed from
33934         doc/glibc-functions/mbrtoc32.texi.
33935         * doc/gnulib.texi: Update.
33936         (Glibc uchar.h): Remove section.
33937         Suggested by Eric Blake.
33939 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
33941         stdnoreturn: port to MSVC better
33942         MSVC standard headers use __declspec(noreturn), so #define noreturn
33943         to empty on that platform.  Reported by Bruno Haible in
33944         <http://lists.gnu.org/r/bug-gnulib/2012-02/msg00152.html>.
33945         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
33946         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
33948 2012-02-28  Bruno Haible  <bruno@clisp.org>
33950         doc: Mention new glibc headers and functions.
33951         * doc/glibc-headers/uchar.texi: New file.
33952         * doc/glibc-functions/aligned_alloc.texi: New file.
33953         * doc/glibc-functions/c16rtomb.texi: New file.
33954         * doc/glibc-functions/c32rtomb.texi: New file.
33955         * doc/glibc-functions/clock_adjtime.texi: New file.
33956         * doc/glibc-functions/fanotify_init.texi: New file.
33957         * doc/glibc-functions/fanotify_mark.texi: New file.
33958         * doc/glibc-functions/inet6_opt_append.texi: New file.
33959         * doc/glibc-functions/inet6_opt_find.texi: New file.
33960         * doc/glibc-functions/inet6_opt_finish.texi: New file.
33961         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
33962         * doc/glibc-functions/inet6_opt_init.texi: New file.
33963         * doc/glibc-functions/inet6_opt_next.texi: New file.
33964         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
33965         * doc/glibc-functions/inet6_rth_add.texi: New file.
33966         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
33967         * doc/glibc-functions/inet6_rth_init.texi: New file.
33968         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
33969         * doc/glibc-functions/inet6_rth_segments.texi: New file.
33970         * doc/glibc-functions/inet6_rth_space.texi: New file.
33971         * doc/glibc-functions/login.texi: New file.
33972         * doc/glibc-functions/mbrtoc16.texi: New file.
33973         * doc/glibc-functions/mbrtoc32.texi: New file.
33974         * doc/glibc-functions/name_to_handle_at.texi: New file.
33975         * doc/glibc-functions/ntp_gettimex.texi: New file.
33976         * doc/glibc-functions/open_by_handle_at.texi: New file.
33977         * doc/glibc-functions/prlimit.texi: New file.
33978         * doc/glibc-functions/process_vm_readv.texi: New file.
33979         * doc/glibc-functions/process_vm_writev.texi: New file.
33980         * doc/glibc-functions/recvmmsg.texi: New file.
33981         * doc/glibc-functions/scandirat.texi: New file.
33982         * doc/glibc-functions/sendmmsg.texi: New file.
33983         * doc/glibc-functions/setns.texi: New file.
33984         * doc/glibc-functions/timespec_get.texi: New file.
33985         * doc/gnulib.texi: Include them.
33986         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
33987         sections.
33988         Reported by Eric Blake.
33990 2012-02-28  Bruno Haible  <bruno@clisp.org>
33992         Avoid compilation errors with MSVC option -fp:strict.
33993         * lib/floor.c: Use MSVC specific pragma fenv_access.
33994         * lib/ceil.c: Likewise.
33995         * lib/trunc.c: Likewise.
33996         * lib/round.c: Likewise.
33997         * lib/rint.c: Likewise.
33998         * lib/fma.c: Likewise.
33999         * lib/integer_length.c: Likewise.
34000         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
34001         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
34002         * tests/test-floor2.c: Likewise.
34003         * tests/test-floorf2.c: Likewise.
34004         * tests/test-ceil2.c: Likewise.
34005         * tests/test-ceilf2.c: Likewise.
34006         * tests/test-trunc2.c: Likewise.
34007         * tests/test-truncf2.c: Likewise.
34008         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
34010 2012-02-27  Bruno Haible  <bruno@clisp.org>
34012         Tests for module 'sqrtl-ieee'.
34013         * modules/sqrtl-ieee-tests: New file.
34014         * tests/test-sqrtl-ieee.c: New file.
34016         New module 'sqrtl-ieee'.
34017         * modules/sqrtl-ieee: New file.
34019         Tests for module 'sqrt-ieee'.
34020         * modules/sqrt-ieee-tests: New file.
34021         * tests/test-sqrt-ieee.c: New file.
34023         New module 'sqrt-ieee'.
34024         * modules/sqrt-ieee: New file.
34026         Tests for module 'sqrtf-ieee'.
34027         * modules/sqrtf-ieee-tests: New file.
34028         * tests/test-sqrtf-ieee.c: New file.
34029         * tests/test-sqrt-ieee.h: New file.
34031         New module 'sqrtf-ieee'.
34032         * modules/sqrtf-ieee: New file.
34034 2012-02-27  Bruno Haible  <bruno@clisp.org>
34036         remainderl-ieee: Work around test failure on OSF/1.
34037         * m4/remainderl-ieee.m4: New file.
34038         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
34039         present, test whether remainderl works with a zero second argument.
34040         Replace it if not.
34041         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
34042         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
34043         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
34044         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
34045         (Depends-on): Update conditions.
34046         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
34047         (Depends-on): Add remainder-ieee.
34048         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
34049         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
34050         module.
34052         remainderf-ieee: Work around test failure on OSF/1.
34053         * m4/remainderf-ieee.m4: New file.
34054         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
34055         present, test whether remainderf works with a zero second argument.
34056         Replace it if not.
34057         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
34058         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
34059         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
34060         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
34061         (Depends-on): Update conditions.
34062         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
34063         (Depends-on): Add remainder-ieee.
34064         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
34065         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
34066         module.
34068         remainder-ieee: Work around test failure on OSF/1.
34069         * m4/remainder-ieee.m4: New file.
34070         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
34071         present, test whether remainder works with a zero second argument.
34072         Replace it if not.
34073         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
34074         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
34075         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
34076         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
34077         (Depends-on): Update dependencies.
34078         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
34079         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
34080         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
34082         Tests for module 'remainderl-ieee'.
34083         * modules/remainderl-ieee-tests: New file.
34084         * tests/test-remainderl-ieee.c: New file.
34086         New module 'remainderl-ieee'.
34087         * modules/remainderl-ieee: New file.
34089         Tests for module 'remainder-ieee'.
34090         * modules/remainder-ieee-tests: New file.
34091         * tests/test-remainder-ieee.c: New file.
34093         New module 'remainder-ieee'.
34094         * modules/remainder-ieee: New file.
34096         Tests for module 'remainderf-ieee'.
34097         * modules/remainderf-ieee-tests: New file.
34098         * tests/test-remainderf-ieee.c: New file.
34099         * tests/test-remainder-ieee.h: New file.
34101         New module 'remainderf-ieee'.
34102         * modules/remainderf-ieee: New file.
34104 2012-02-27  Bruno Haible  <bruno@clisp.org>
34106         modff, modfl: Fix configure syntax error.
34107         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
34108         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
34110 2012-02-27  Bruno Haible  <bruno@clisp.org>
34112         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
34113         * m4/fmodl-ieee.m4: New file.
34114         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
34115         whether fmodl works with zero arguments. Replace it if not.
34116         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
34117         (Depends-on): Add fmod-ieee.
34118         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
34119         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
34121         fmodf-ieee: Work around test failure on OSF/1.
34122         * m4/fmodf-ieee.m4: New file.
34123         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
34124         whether fmodf works with zero arguments. Replace it if not.
34125         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
34126         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
34127         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
34128         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
34129         (Depends-on): Update dependencies.
34130         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
34131         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
34132         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
34134         fmodf-ieee: Work around test failure on MSVC 9.
34135         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
34136         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
34138         fmod-ieee: Work around test failures on OSF/1, mingw.
34139         * m4/fmod-ieee.m4: New file.
34140         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
34141         whether fmod works with zero arguments. Replace it if not.
34142         * lib/math.in.h (fmod): New declaration.
34143         * lib/fmod.c: New file.
34144         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
34145         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
34146         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
34147         * modules/fmod (Files): Add lib/fmod.c.
34148         (Depends-on): Add math, isinf, trunc, fma.
34149         (configure.ac): Arrange to compile lib/fmod.c if needed.
34150         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
34151         m4/signbit.m4.
34152         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
34153         * tests/test-math-c++.cc: Check the declaration of fmod.
34154         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
34156         fmodl-ieee: Fix test failures.
34157         * lib/fmodl.c (fmodl): Treat Inf specially.
34158         * modules/fmodl (Depends-on): Add isinf.
34160         Tests for module 'fmodl-ieee'.
34161         * modules/fmodl-ieee-tests: New file.
34162         * tests/test-fmodl-ieee.c: New file.
34164         New module 'fmodl-ieee'.
34165         * modules/fmodl-ieee: New file.
34167         Tests for module 'fmod-ieee'.
34168         * modules/fmod-ieee-tests: New file.
34169         * tests/test-fmod-ieee.c: New file.
34171         New module 'fmod-ieee'.
34172         * modules/fmod-ieee: New file.
34174         Tests for module 'fmodf-ieee'.
34175         * modules/fmodf-ieee-tests: New file.
34176         * tests/test-fmodf-ieee.c: New file.
34177         * tests/test-fmod-ieee.h: New file.
34179         New module 'fmodf-ieee'.
34180         * modules/fmodf-ieee: New file.
34182 2012-02-27  Bruno Haible  <bruno@clisp.org>
34184         Tests for module 'rintl-ieee'.
34185         * modules/rintl-ieee-tests: New file.
34186         * tests/test-rintl-ieee.c: New file.
34188         New module 'rintl-ieee'.
34189         * modules/rintl-ieee: New file.
34191         Tests for module 'rint-ieee'.
34192         * modules/rint-ieee-tests: New file.
34193         * tests/test-rint-ieee.c: New file.
34195         New module 'rint-ieee'.
34196         * modules/rint-ieee: New file.
34198         Tests for module 'rintf-ieee'.
34199         * modules/rintf-ieee-tests: New file.
34200         * tests/test-rintf-ieee.c: New file.
34201         * tests/test-rint-ieee.h: New file.
34203         New module 'rintf-ieee'.
34204         * modules/rintf-ieee: New file.
34206 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
34208         regex: re_search etc. should return -2 when memory exhausted
34209         This bug was uncovered when testing 'grep'.  Without the fix,
34210         re_search and friends return -1 when memory is exhausted, but -1
34211         means no match, and this causes grep to falsely report no-match
34212         instead of memory-exhaustion.  See
34213         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
34214         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
34215         trouble; this can occur if re_search_internal ran out of memory.
34217 2012-02-26  Bruno Haible  <bruno@clisp.org>
34219         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
34220         * m4/modfl-ieee.m4: New file.
34221         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
34222         whether modfl works with Inf. Replace it if not.
34223         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
34224         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
34225         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
34226         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
34227         (Depends-on): Update dependencies.
34228         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
34229         m4/signbit.m4.
34230         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
34231         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
34233         modfl-ieee: Fix dependencies.
34234         * modules/modfl-ieee (Depends-on): Add modf-ieee.
34236         modfl-ieee: Fix test failures.
34237         * lib/modfl.c (modfl): Treat NaN and Inf specially.
34238         * modules/modfl (Depends-on): Add isfinite, isinf.
34240         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
34241         * m4/modff-ieee.m4: New file.
34242         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
34243         whether modff works with NaN and Inf. Replace it if not.
34244         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
34245         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
34246         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
34247         * modules/modff (configure.ac): Consider REPLACE_MODFF.
34248         (Depends-on): Update dependencies.
34249         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
34250         m4/signbit.m4.
34251         (Depends-on): Add modf-ieee.
34252         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
34253         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
34255         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
34256         * m4/modf-ieee.m4: New file.
34257         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
34258         whether modf works with NaN and Inf. Replace it if not.
34259         * lib/math.in.h (modf): New declaration.
34260         * lib/modf.c: New file.
34261         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
34262         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
34263         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
34264         * modules/modf (Files): Add lib/modf.c.
34265         (Depends-on): Add math, isfinite, trunc, isinf.
34266         (configure.ac): Addrange to compile lib/modf.c if needed.
34267         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
34268         m4/signbit.m4.
34269         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
34270         * tests/test-math-c++.cc: Check the declaration of modf.
34271         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
34273         Tests for module 'modfl-ieee'.
34274         * modules/modfl-ieee-tests: New file.
34275         * tests/test-modfl-ieee.c: New file.
34277         New module 'modfl-ieee'.
34278         * modules/modfl-ieee: New file.
34280         Tests for module 'modf-ieee'.
34281         * modules/modf-ieee-tests: New file.
34282         * tests/test-modf-ieee.c: New file.
34284         New module 'modf-ieee'.
34285         * modules/modf-ieee: New file.
34287         Tests for module 'modff-ieee'.
34288         * modules/modff-ieee-tests: New file.
34289         * tests/test-modff-ieee.c: New file.
34290         * tests/test-modf-ieee.h: New file.
34292         New module 'modff-ieee'.
34293         * modules/modff-ieee: New file.
34295 2012-02-26  Bruno Haible  <bruno@clisp.org>
34297         Tests for module 'fabsl-ieee'.
34298         * modules/fabsl-ieee-tests: New file.
34299         * tests/test-fabsl-ieee.c: New file.
34301         New module 'fabsl-ieee'.
34302         * modules/fabsl-ieee: New file.
34304         Tests for module 'fabs-ieee'.
34305         * modules/fabs-ieee-tests: New file.
34306         * tests/test-fabs-ieee.c: New file.
34308         New module 'fabs-ieee'.
34309         * modules/fabs-ieee: New file.
34311         Tests for module 'fabsf-ieee'.
34312         * modules/fabsf-ieee-tests: New file.
34313         * tests/test-fabsf-ieee.c: New file.
34314         * tests/test-fabs-ieee.h: New file.
34316         New module 'fabsf-ieee'.
34317         * modules/fabsf-ieee: New file.
34319 2012-02-26  Bruno Haible  <bruno@clisp.org>
34321         Tests for module 'fmal-ieee'.
34322         * modules/fmal-ieee-tests: New file.
34323         * tests/test-fmal-ieee.c: New file.
34325         New module 'fmal-ieee'.
34326         * modules/fmal-ieee: New file.
34328         Tests for module 'fma-ieee'.
34329         * modules/fma-ieee-tests: New file.
34330         * tests/test-fma-ieee.c: New file.
34332         New module 'fma-ieee'.
34333         * modules/fma-ieee: New file.
34335         Tests for module 'fmaf-ieee'.
34336         * modules/fmaf-ieee-tests: New file.
34337         * tests/test-fmaf-ieee.c: New file.
34338         * tests/test-fma-ieee.h: New file.
34340         New module 'fmaf-ieee'.
34341         * modules/fmaf-ieee: New file.
34343 2012-02-26  Bruno Haible  <bruno@clisp.org>
34345         Tests for module 'ldexpl-ieee'.
34346         * modules/ldexpl-ieee-tests: New file.
34347         * tests/test-ldexpl-ieee.c: New file.
34349         New module 'ldexpl-ieee'.
34350         * modules/ldexpl-ieee: New file.
34352         Tests for module 'ldexp-ieee'.
34353         * modules/ldexp-ieee-tests: New file.
34354         * tests/test-ldexp-ieee.c: New file.
34356         New module 'ldexp-ieee'.
34357         * modules/ldexp-ieee: New file.
34359         Tests for module 'ldexpf-ieee'.
34360         * modules/ldexpf-ieee-tests: New file.
34361         * tests/test-ldexpf-ieee.c: New file.
34362         * tests/test-ldexp-ieee.h: New file.
34364         New module 'ldexpf-ieee'.
34365         * modules/ldexpf-ieee: New file.
34367 2012-02-26  Bruno Haible  <bruno@clisp.org>
34369         Refactor frexp*-ieee tests.
34370         * tests/test-frexp-ieee.h: New file.
34371         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
34372         (main): Just call test_function.
34373         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
34374         (main): Just call test_function.
34375         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
34376         (main): Just call test_function.
34377         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
34378         * modules/frexp-ieee-tests (Files): Likewise.
34379         * modules/frexpl-ieee-tests (Files): Likewise.
34381         Tests for module 'frexpl-ieee'.
34382         * modules/frexpl-ieee-tests: New file.
34383         * tests/test-frexpl-ieee.c: New file.
34385         New module 'frexpl-ieee'.
34386         * modules/frexpl-ieee: New file.
34388         Tests for module 'frexp-ieee'.
34389         * modules/frexp-ieee-tests: New file.
34390         * tests/test-frexp-ieee.c: New file.
34392         New module 'frexp-ieee'.
34393         * modules/frexp-ieee: New file.
34395         Tests for module 'frexpf-ieee'.
34396         * modules/frexpf-ieee-tests: New file.
34397         * tests/test-frexpf-ieee.c: New file.
34399         New module 'frexpf-ieee'.
34400         * modules/frexpf-ieee: New file.
34402 2012-02-26  Bruno Haible  <bruno@clisp.org>
34404         roundl-ieee tests: More tests.
34405         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
34406         (main): Add tests for [MX] shaded specification in POSIX.
34407         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
34408         (Depends-on): Add isnanl-nolibm.
34410         round-ieee tests: More tests.
34411         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
34412         (main): Add tests for [MX] shaded specification in POSIX.
34413         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
34414         (Depends-on): Add isnand-nolibm.
34416         roundf-ieee tests: More tests.
34417         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
34418         (main): Add tests for [MX] shaded specification in POSIX.
34419         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
34420         (Depends-on): Add isnanf-nolibm.
34422         truncl-ieee tests: More tests.
34423         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
34424         (main): Add tests for [MX] shaded specification in POSIX.
34425         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
34426         (Depends-on): Add isnanl-nolibm.
34428         trunc-ieee tests: More tests.
34429         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
34430         (main): Add tests for [MX] shaded specification in POSIX.
34431         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
34432         (Depends-on): Add isnand-nolibm.
34434         truncf-ieee tests: More tests.
34435         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
34436         (main): Add tests for [MX] shaded specification in POSIX.
34437         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
34438         (Depends-on): Add isnanf-nolibm.
34440         ceill-ieee tests: More tests.
34441         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
34442         (main): Add tests for [MX] shaded specification in POSIX.
34443         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
34444         (Depends-on): Add isnanl-nolibm.
34446         ceil-ieee tests: More tests.
34447         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
34448         (main): Add tests for [MX] shaded specification in POSIX.
34449         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
34450         (Depends-on): Add isnand-nolibm.
34452         ceilf-ieee tests: More tests.
34453         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
34454         (main): Add tests for [MX] shaded specification in POSIX.
34455         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
34456         (Depends-on): Add isnanf-nolibm.
34458         floorl-ieee tests: More tests.
34459         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
34460         (main): Add tests for [MX] shaded specification in POSIX.
34461         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
34462         (Depends-on): Add isnanl-nolibm.
34464         floor-ieee tests: More tests.
34465         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
34466         (main): Add tests for [MX] shaded specification in POSIX.
34467         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
34468         (Depends-on): Add isnand-nolibm.
34470         floorf-ieee tests: More tests.
34471         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
34472         (main): Add tests for [MX] shaded specification in POSIX.
34473         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
34474         (Depends-on): Add isnanf-nolibm.
34476 2012-02-26  Bruno Haible  <bruno@clisp.org>
34478         fpieee: More comments.
34479         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
34481 2012-02-25  Bruno Haible  <bruno@clisp.org>
34483         Tests for module 'log10l'.
34484         * modules/log10l-tests: New file.
34485         * tests/test-log10l.c: New file.
34486         * tests/test-math-c++.cc: Check the declaration of log10l.
34488         New module 'log10l'.
34489         * lib/math.in.h (log10l): New declaration.
34490         * lib/log10l.c: New file.
34491         * m4/log10l.m4: New file.
34492         * modules/log10l: New file.
34493         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
34494         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
34495         HAVE_DECL_LOG10L.
34496         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
34497         HAVE_DECL_LOG10L.
34498         * doc/posix-functions/log10l.texi: Mention the new module.
34500 2012-02-25  Bruno Haible  <bruno@clisp.org>
34502         fmodl, remainder*: Avoid wrong results due to rounding errors.
34503         * lib/fmodl.c (fmodl): Correct the result if it is not within the
34504         expected bounds.
34505         * lib/remainderf.c (remainderf): Likewise.
34506         * lib/remainder.c (remainder): Likewise.
34507         * lib/remainderl.c (remainderl): Likewise.
34509 2012-02-25  Bruno Haible  <bruno@clisp.org>
34511         Tests for module 'remainderl'.
34512         * modules/remainderl-tests: New file.
34513         * tests/test-remainderl.c: New file.
34514         * tests/test-math-c++.cc: Check the declaration of remainderl.
34516         New module 'remainderl'.
34517         * lib/math.in.h (remainderl): New declaration.
34518         * lib/remainderl.c: New file.
34519         * m4/remainderl.m4: New file.
34520         * modules/remainderl: New file.
34521         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
34522         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
34523         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
34524         HAVE_REMAINDERL.
34525         * doc/posix-functions/remainderl.texi: Mention the new module.
34527 2012-02-25  Bruno Haible  <bruno@clisp.org>
34529         Tests for module 'remainderf'.
34530         * modules/remainderf-tests: New file.
34531         * tests/test-remainderf.c: New file.
34532         * tests/test-math-c++.cc: Check the declaration of remainderf.
34534         New module 'remainderf'.
34535         * lib/math.in.h (remainderf): New declaration.
34536         * lib/remainderf.c: New file.
34537         * m4/remainderf.m4: New file.
34538         * modules/remainderf: New file.
34539         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
34540         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
34541         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
34542         HAVE_REMAINDERF.
34543         * doc/posix-functions/remainderf.texi: Mention the new module.
34545 2012-02-25  Bruno Haible  <bruno@clisp.org>
34547         remainder: Support for MSVC.
34548         * lib/math.in.h (remainder): New declaration.
34549         * lib/remainder.c: New file.
34550         * m4/remainder.m4: New file.
34551         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
34552         (Depends-on): Add math, round, fma.
34553         (configure.ac): Use results of gl_FUNC_REMAINDER.
34554         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
34555         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
34556         HAVE_DECL_REMAINDER.
34557         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
34558         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
34559         * tests/test-math-c++.cc: Check the declaration of remainder.
34560         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
34561         problems are fixed.
34563 2012-02-25  Bruno Haible  <bruno@clisp.org>
34565         Tests for module 'fmodl'.
34566         * modules/fmodl-tests: New file.
34567         * tests/test-fmodl.c: New file.
34568         * tests/test-math-c++.cc: Check the declaration of fmodl.
34570         New module 'fmodl'.
34571         * lib/math.in.h (fmodl): New declaration.
34572         * lib/fmodl.c: New file.
34573         * m4/fmodl.m4: New file.
34574         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
34575         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
34576         REPLACE_FMODL.
34577         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
34578         REPLACE_FMODL.
34579         * modules/fmodl: New file.
34580         * doc/posix-functions/fmodl.texi: Mention the new module.
34582 2012-02-25  Bruno Haible  <bruno@clisp.org>
34584         Tests for module 'modfl'.
34585         * modules/modfl-tests: New file.
34586         * tests/test-modfl.c: New file.
34587         * tests/test-math-c++.cc: Check the declaration of modfl.
34589         New module 'modfl'.
34590         * lib/math.in.h (modfl): New declaration.
34591         * lib/modfl.c: New file.
34592         * m4/modfl.m4: New file.
34593         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
34594         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
34595         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
34596         * modules/modfl: New file.
34597         * doc/posix-functions/modfl.texi: Mention the new module.
34599 2012-02-25  Bruno Haible  <bruno@clisp.org>
34601         Tests for module 'fabsl'.
34602         * modules/fabsl-tests: New file.
34603         * tests/test-fabsl.c: New file.
34604         * tests/test-math-c++.cc: Check the declaration of fabsl.
34606         New module 'fabsl'.
34607         * lib/math.in.h (fabsl): New declaration.
34608         * lib/fabsl.c: New file.
34609         * m4/fabsl.m4: New file.
34610         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
34611         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
34612         REPLACE_FABSL.
34613         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
34614         REPLACE_FABSL.
34615         * modules/fabsl: New file.
34616         * doc/posix-functions/fabsl.texi: Mention the new module.
34618 2012-02-25  Bruno Haible  <bruno@clisp.org>
34620         fabs tests: More tests.
34621         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
34622         (zero): New variable.
34623         (main): Add tests for signed zero.
34624         * modules/fabs-tests (Files): Add tests/minus-zero.h.
34626         fabsf tests: More tests.
34627         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
34628         (zero): New variable.
34629         (main): Add tests for signed zero.
34630         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
34632 2012-02-24  Bruno Haible  <bruno@clisp.org>
34634         atanl: Provide function definition on MSVC.
34635         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
34636         function pointer.
34637         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
34639 2012-02-24  Bruno Haible  <bruno@clisp.org>
34641         acosl: Provide function definition on MSVC.
34642         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
34643         function pointer.
34644         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
34646 2012-02-24  Bruno Haible  <bruno@clisp.org>
34648         asinl: Provide function definition on MSVC.
34649         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
34650         function pointer.
34651         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
34653 2012-02-24  Bruno Haible  <bruno@clisp.org>
34655         tanl: Provide function definition on MSVC.
34656         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
34657         function pointer.
34658         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
34660 2012-02-24  Bruno Haible  <bruno@clisp.org>
34662         cosl: Provide function definition on MSVC.
34663         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
34664         function pointer.
34665         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
34667 2012-02-24  Bruno Haible  <bruno@clisp.org>
34669         sinl: Provide function definition on MSVC.
34670         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
34671         function pointer.
34672         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
34674 2012-02-24  Bruno Haible  <bruno@clisp.org>
34676         logl: Provide function definition on MSVC.
34677         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
34678         function pointer.
34679         * lib/math.in.h (logl): Undefine if it does not exist as a function.
34681 2012-02-24  Bruno Haible  <bruno@clisp.org>
34683         expl: Provide function definition on MSVC.
34684         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
34685         function pointer.
34686         * lib/math.in.h (expl): Undefine if it does not exist as a function.
34688 2012-02-24  Bruno Haible  <bruno@clisp.org>
34690         sqrtl: Provide function definition on MSVC.
34691         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
34692         a function pointer.
34693         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
34695 2012-02-24  Bruno Haible  <bruno@clisp.org>
34697         ceill: Provide function definition on MSVC.
34698         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
34699         used as a function pointer.
34700         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
34702 2012-02-24  Bruno Haible  <bruno@clisp.org>
34704         floorl: Provide function definition on MSVC.
34705         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
34706         used as a function pointer.
34707         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
34709 2012-02-24  Bruno Haible  <bruno@clisp.org>
34711         ceilf: Provide function definition on MSVC.
34712         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
34713         used as a function pointer.
34714         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
34716 2012-02-24  Bruno Haible  <bruno@clisp.org>
34718         floorf: Provide function definition on MSVC.
34719         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
34720         used as a function pointer.
34721         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
34723 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
34725         stdnoreturn: new module
34726         This implements a replacement for C11's <stdnoreturn.h>.
34727         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
34728         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
34729         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
34730         * tests/test-stdnoreturn.c: New files.
34732 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
34734         regex: fix false multibyte matches in some regular expressions
34735         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
34736         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
34737         * lib/regex_internal.c (re_string_skip_chars):
34738         Fix miscomputation of remain_len that may cause incomplete
34739         multi-byte character and false match.
34741 2012-02-24  Jim Meyering  <meyering@redhat.com>
34743         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
34744         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
34745         uses with "==" *before* the call, e.g., 0 == strcmp (...)
34746         Remove now-unnecessary str''cmp obfuscation.
34747         Suggested by Akim Demaille.
34749 2012-02-24  Bruno Haible  <bruno@clisp.org>
34751         streq: Rename macro.
34752         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
34753         * NEWS: Mention the change.
34754         * lib/mbrtowc.c (mbrtowc): Update.
34755         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
34756         * lib/wcwidth.c (wcwidth): Update.
34757         Suggested by Akim Demaille and Jim Meyering.
34759 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
34761         regex: fix typo in definition of MIN
34762         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
34763         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
34765 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
34766             Bruno Haible  <bruno@clisp.org>
34768         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
34769         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
34770         entries into a stack-allocated buffer directly.
34771         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
34773 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
34774             Bruno Haible  <bruno@clisp.org>
34776         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
34778          - There were several instances of this pattern:
34780              for (;;) {
34781                n = acl (f, GETACLCNT, 0, NULL);
34782                [ allocate an array A of size N ]
34783                if (acl (f, GETACL, n, a) == n)
34784                  break;
34785              }
34787            This loop might never terminate if some other process is constantly
34788            manipulating the file's ACL.  The loop should be rewritten to
34789            terminate.
34791          - The acl (... GETACLNT ...) call is merely an optimization; its value
34792            is merely a hint as to how big to make the array.  A better
34793            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
34794            and just guess a reasonably-big size, growing the size and trying
34795            again if it's not large enough.  This guarantees termination, and
34796            saves a system call.
34798         * lib/acl-internal.h: Include <limits.h>.
34799         (MIN, SIZE_MAX): New macros.
34800         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
34801         a stack-allocated buffer, and use malloc if it does not fit. Don't
34802         use GETACLCNT.
34803         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
34805 2012-02-19  Bruno Haible  <bruno@clisp.org>
34807         acl: Fix endless loop on Solaris with vxfs.
34808         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
34809         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
34810         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
34811         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
34812         * tests/test-sameacls.c (main)[Solaris]: Likewise.
34813         Reported by Bill Jones in
34814         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
34816 2012-02-19  Bruno Haible  <bruno@clisp.org>
34818         acl: Fix copy-acl test failure on Solaris 11.0.
34819         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
34820         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
34821         that this function returns 0 in some more cases.
34823 2012-02-19  Bruno Haible  <bruno@clisp.org>
34825         acl: Update doc references.
34826         * doc/acl-resources.txt: Update links to Solaris documentation.
34828 2012-02-19  Bruno Haible  <bruno@clisp.org>
34830         Fix test failure in many locales on Solaris 11.
34831         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
34832         'tr' arguments.
34833         * tests/test-pipe-filter-ii1.c (main): Likewise.
34834         * build-aux/bootstrap (check_versions): Run 'tr' command with range
34835         expressions in the C locale.
34836         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
34837         * m4/host-os.m4 (gl_HOST_OS): Likewise.
34839 2012-02-19  Bruno Haible  <bruno@clisp.org>
34841         gnulib-tool: Improve usage message.
34842         * gnulib-tool (func_usage): Move doc of --help and --version to the
34843         section "Operation modes".
34845 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
34847         README-release: make it easier to execute commands
34848         * top/README-release: break commands out on to separate lines.
34850 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
34852         GNUmakefile: simplify detection of unconfigured trees
34853         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
34854         whether the tree make is being run from is already configured or
34855         not.  Related simplifications.
34857 2012-02-13  Simon Josefsson  <simon@josefsson.org>
34859         * gnulib-tool (func_usage): Document --help and --version.
34861 2012-02-11  Jim Meyering  <meyering@redhat.com>
34863         bootstrap: don't exit 0 upon gnulib-tool failure
34864         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
34865         its exit status, not 0.
34867 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
34869         README-release: various improvements
34870         * top/README-release: Give a command to push changes for the
34871         release.  Add "distcheck" to list of other pre-release checks.
34872         Fix instance of "make stable" which should be "make TYPE".
34874 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
34876         maint: replace FSF snail-mail addresses with URLs
34877         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
34878         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
34879         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
34880         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
34881         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
34882         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
34883         * lib/check-version.c, lib/check-version.h, lib/config.charset:
34884         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
34885         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
34886         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
34887         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
34888         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
34889         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
34890         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
34891         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
34892         * lib/glthread/thread.c, lib/glthread/thread.h:
34893         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
34894         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
34895         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
34896         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
34897         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
34898         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
34899         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
34900         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
34901         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
34902         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
34903         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
34904         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
34905         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
34906         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
34907         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
34908         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
34909         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
34910         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
34911         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
34912         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
34913         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
34914         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
34915         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
34916         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
34917         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
34918         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
34919         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
34920         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
34921         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
34922         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
34923         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
34924         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
34925         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
34926         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
34927         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
34928         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
34929         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
34930         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
34931         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
34932         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
34933         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
34934         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
34935         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
34936         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
34937         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
34938         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
34939         * tests/test-poll.c, tests/test-quotearg-simple.c:
34940         * tests/test-quotearg.c, tests/test-quotearg.h:
34941         * tests/test-round-ieee.c, tests/test-round1.c:
34942         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
34943         * tests/test-roundl-ieee.c, tests/test-roundl.c:
34944         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
34945         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
34946         * tests/test-strerror.c, tests/test-strerror_r.c:
34947         * tests/test-strsignal.c, tests/test-strverscmp.c:
34948         * tests/test-xmemdup0.c:
34949         Replace FSF snail mail addresses with URLs, as per GNU coding
34950         standards.  See glibc bug
34951         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
34953 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
34955         README-release: capitalize a word and split a line
34956         * top/README-release: Fix punctuation and spacing.
34958 2012-02-08  Akim Demaille  <demaille@gostai.com>
34960         fatal-signal: use C prototypes (with explicit void).
34961         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
34962         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
34964 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
34966         regex: spelling fix
34967         * lib/regexec.c: spelling fix
34969         regex: rely on stdint.h for SIZE_MAX
34970         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
34972 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
34974         regex: merge glibc changes
34976         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
34977         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
34978         (init_word_char): Work even if bitset words are not exactly 32 or
34979         64 bits wide.  Don't assume there are no padding bits.
34980         * lib/regex.c [_LIBC]: Do not include <config.h>.
34981         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
34982         and -Wtype-limits.
34983         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
34984         needless disagreement with glibc.  All uses changed.  Define it to
34985         1 only if _GNU_SOURCE, to match glibc.
34986         (_REG_RM_NAME): Remove; no longer needed, since the names in
34987         question are now all protected by __USE_GNU.
34988         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
34989         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
34990         * lib/regex_internal.h (MIN): New macro.
34992         2012-01-03 Ulrich Drepper <drepper@gmail.com>
34993         * lib/regcomp.c (init_word_char): Optimize regex a bit.
34995         2011-12-30 Jakub Jelinek <jakub@redhat.com>
34996         * lib/regex_internal.c (re_string_fetch_byte_case):
34997         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
34998         is miscompiled, and it turns out it is because of an incorrect
34999         attribute on re_string_fetch_byte_case.  Unlike
35000         re_string_peek_byte_case, this one is really not pure, it modifies
35001         memory (increments pstr->cur_idx), and with the pure attribute GCC
35002         assumed it doesn't and it cached the presumed value of
35003         regexp->cur_idx in a variable across the
35004          for (;; ++i)
35005            {
35006              if (i >= BRACKET_NAME_BUF_SIZE)
35007                return REG_EBRACK;
35008              if (token->type == OP_OPEN_CHAR_CLASS)
35009                ch = re_string_fetch_byte_case (regexp);
35010              else
35011                ch = re_string_fetch_byte (regexp);
35012              if (re_string_eoi(regexp))
35013                return REG_EBRACK;
35014              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
35015                break;
35016              elem->opr.name[i] = ch;
35017            }
35019         2011-11-29 Andreas Schwab <schwab@redhat.com>
35020         * lib/regcomp.c (build_equiv_class):
35021         Fix access after end of search string in regex matcher.
35023         2011-11-12 Ulrich Drepper <drepper@redhat.com>
35024         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
35026         2011-10-12 Ulrich Drepper <drepper@redhat.com>
35027         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
35029         2011-10-11 Ulrich Drepper <drepper@redhat.com>
35030         * lib/regcomp.c (parse_branch, parse_sub_exp):
35031         More regex memory leak fixes and tests.
35032         (parse_sub_exp, parse_bracket_exp):
35033         Fix memory leak for some invalid regular expressions.
35035         2011-05-28 Ulrich Drepper <drepper@gmail.com>
35036         * lib/regex_internal.c, lib/regexec.c:
35037         Fix unnecessary overallocation due to incomplete character.  When
35038         incomplete characters are found at the end of a string the code
35039         ran amok and allocated lots of memory.  Stricter limits are now in
35040         place.
35042         2011-05-20 Reuben Thomas <rrt@sc3d.org>
35043         * lib/regex.h: Update documentation.
35045         2011-05-16 Aharon Robbins <arnold@skeeve.com>
35046         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
35048         2010-05-05 Andreas Schwab <schwab@redhat.com>
35049         * lib/regexec.c (find_collation_sequence_value):
35050         Fix lookup of collation sequence value during regexp matching.
35052         2010-01-22 Ulrich Drepper <drepper@redhat.com>
35053         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
35055         2008-01-16 Ulrich Drepper <drepper@redhat.com>
35056         * lib/regex.h: Cleanup namespace.
35058         2007-11-26 Ulrich Drepper <drepper@redhat.com>
35059         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
35061         2007-08-26 Ulrich Drepper <drepper@redhat.com>
35062         * lib/regex_internal.h: Prevent some declarations and definitions
35063         to be seen when used in tests.
35065         2005-05-06 Ulrich Drepper <drepper@redhat.com>
35066         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
35067         __libc_lock_* macros if not _LIBC.
35068         (struct re_dfa_t): Add lock.
35070 2012-02-07  Eric Blake  <eblake@redhat.com>
35072         maint.mk: also prohibit lower-case @var@
35073         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
35074         lower case, like @top_srcdir@.
35076 2012-02-04  Eric Blake  <eblake@redhat.com>
35078         canonicalize: avoid uninitialized memory use
35079         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
35080         random '/' left in dest.
35081         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
35083 2012-02-04  Bruno Haible  <bruno@clisp.org>
35085         isatty: Fix test failure of ptsname_r on native Windows.
35086         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
35087         and don't set errno.
35088         (isatty): Test first whether fd is valid. Set errno when returning 0.
35090 2012-02-04  Bruno Haible  <bruno@clisp.org>
35092         spawn-pipe tests: Fix a NULL program name in a diagnostic.
35093         * tests/test-spawn-pipe-main.c: Include progname.h.
35094         (main): Invoke set_program_name.
35095         * modules/spawn-pipe-tests (Depends-on): Add progname.
35097         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
35098         * tests/test-nonblocking-socket-main.c: Include progname.h.
35099         (main): Invoke set_program_name.
35100         * modules/nonblocking-socket-tests (Depends-on): Add progname.
35102         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
35103         * tests/test-nonblocking-pipe-main.c: Include progname.h.
35104         (main): Invoke set_program_name.
35105         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
35107 2012-02-04  Eric Blake  <eblake@redhat.com>
35109         canonicalize-lgpl: fix // handling
35110         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
35112         canonicalize: fix // handling
35113         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
35114         /// to //, since only // is special.
35116 2012-02-04  Bruno Haible  <bruno@clisp.org>
35118         ioctl: Fix test failure on native Windows.
35119         * lib/ioctl.c: Include msvc-nothrow.h.
35120         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
35122 2012-02-04  Bruno Haible  <bruno@clisp.org>
35124         fsync: Avoid test failure on native Windows.
35125         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
35126         read-only.
35128 2012-02-04  Bruno Haible  <bruno@clisp.org>
35130         sys_select: Avoid syntax error on OpenBSD 5.0.
35131         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
35132         currently being included, just include the system's <sys/select.h>.
35134 2012-02-04  Bruno Haible  <bruno@clisp.org>
35136         sys_select: Avoid syntax error on OpenBSD 5.0.
35137         * lib/sys_select.in.h: Include <signal.h> only after the include_next
35138         <sys/select.h>, not before.
35139         Reported by Jiri B <jirib@devio.us>.
35141 2012-02-04  Bruno Haible  <bruno@clisp.org>
35143         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
35144         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
35145         global variables.
35146         * tests/test-get-rusage-data.c (main): Likewise.
35147         Reported by Jim Meyering.
35149 2012-02-04  Bruno Haible  <bruno@clisp.org>
35151         stdioext: Fix last commit.
35152         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
35154 2012-02-03  Bruno Haible  <bruno@clisp.org>
35156         stdioext: Add tentative support for Plan9.
35157         * lib/stdio-impl.h: Include <errno.h>.
35158         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
35159         * lib/freadable.c (freadable): Likewise.
35160         * lib/fwritable.c (fwritable): Likewise.
35161         * lib/fbufmode.c (fbufmode): Likewise.
35162         * lib/freading.c (freading): Likewise.
35163         * lib/fwriting.c (fwriting): Likewise.
35164         * lib/freadptr.c (freadptr): Likewise.
35165         * lib/freadseek.c (freadptrinc): Likewise.
35166         * lib/freadahead.c (freadahead): Likewise.
35167         * lib/fpurge.c (fpurge): Likewise.
35168         * lib/fseeko.c (rpl_fseeko): Likewise.
35169         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
35170         Reported by Jens Staal <staal1978@gmail.com>.
35172 2012-02-02  Jim Meyering  <meyering@redhat.com>
35174         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
35175         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
35176         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
35177         not even to try to add the attribute.  Instead, add a pragma to suppress
35178         the suggestion/warning.
35180 2012-01-31  Karl Berry  <karl@gnu.org>
35182         setstate doc: typo.
35183         * doc/posix-functions/setstate.texi (setstate): { not (.
35185 2012-01-31  Bruno Haible  <bruno@clisp.org>
35187         popen: Make more robust on Windows.
35188         * lib/popen.c: On native Windows, use the _popen based code even if
35189         HAVE_POPEN is set.
35190         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
35191         environment variable on native Windows.
35193 2012-01-30  Bruno Haible  <bruno@clisp.org>
35195         pclose: Fix typo.
35196         * lib/stdio.in.h (pclose): Fix typo in warning message.
35198 2012-01-30  Bruno Haible  <bruno@clisp.org>
35200         doc about getlogin_r, setstate.
35201         * doc/posix-functions/getlogin_r.texi: List the incompatible
35202         declaration problem under "not fixed by gnulib".
35203         * doc/posix-functions/setstate.texi: Mention incompatible declaration
35204         problem on Solaris 11 and other platforms.
35206 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
35207             Bruno Haible  <bruno@clisp.org>
35209         poll tests: Make test more robust.
35210         * tests/test-poll.c: Include macros.h.
35211         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
35212         return value of various I/O operations.
35213         * modules/poll-tests (Files): Add tests/macros.h.
35215 2012-01-30  Bruno Haible  <bruno@clisp.org>
35217         sys_stat: Fix support for mingw64 and MSVC.
35218         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
35219         header files already do it.
35220         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
35221         stat itself.
35222         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
35224 2012-01-30  Bruno Haible  <bruno@clisp.org>
35226         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
35227         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
35228         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
35230 2012-01-29  Bruno Haible  <bruno@clisp.org>
35232         quotearg: Fix test failure on MacOS X 10.5.
35233         * tests/test-quotearg-simple.c: Include localcharset.h.
35234         (main): If the locale encoding is not ASCII, bypass the tests of
35235         locale_quoting_style and clocale_quoting_style.
35236         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
35238 2012-01-29  Jim Meyering  <meyering@redhat.com>
35240         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
35241         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
35242         detect uses of canonicalize_file_name.
35244 2012-01-28  Bruno Haible  <bruno@clisp.org>
35246         test-framework-sh: Fix test failure with AIX 7.1 diff.
35247         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
35248         in column 1, like 'diff -c' does.
35249         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
35250         whether 'diff -u' is used. Instead, test whether the output contains
35251         some '@' character.
35253 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
35255         strtoimax: eliminate need for stdint.h, inttypes.h checks
35256         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
35257         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
35258         the prerequisites for a recently-introduced strtoimax test.
35259         I guess this might cause strtoimax to be replaced when not
35260         strictly necessary on older hosts, but this shouldn't introduce
35261         any bugs and it should make Emacs 'configure' faster on typical
35262         modern hosts.  Problem discovered when importing the latest gnulib
35263         to an Emacs test version.
35264         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
35266 2012-01-28  Bruno Haible  <bruno@clisp.org>
35268         sys_time: Override 'struct timeval' on some native Windows platforms.
35269         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
35270         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
35271         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
35272         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
35273         needs to be overridden.
35274         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
35275         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
35276         * tests/test-sys_select.c: Check that the tv_sec member has the same
35277         size as a 'time_t'.
35278         * tests/test-sys_time.c: Likewise.
35279         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
35280         is set, set also REPLACE_GETTIMEOFDAY.
35281         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
35282         convert the resulting 'struct timeval' before returning.
35283         * lib/select.c: Include <sys/time.h>.
35284         (select, timeval): Undefine at the right place.
35285         * modules/select (Depends-on): Add sys_time.
35286         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
35287         some Windows platforms.
35288         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
35290 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
35292         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
35293         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
35294         an integer.
35295         * lib/fcntl.c (dupfd): Likewise.
35296         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
35298 2012-01-28  Bruno Haible  <bruno@clisp.org>
35300         fcntl: Avoid compilation error on native Windows.
35301         * modules/fcntl (Depends-on): Add 'close'.
35303 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
35305         select, poll, isatty: Avoid warnings on x86_64 mingw64.
35306         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
35307         pointer to an integer.
35308         * lib/poll.c (IsConsoleHandle): Likewise.
35309         * lib/isatty.c (IsConsoleHandle): Likewise.
35311 2012-01-28  Jim Meyering  <meyering@redhat.com>
35313         doc: clarify README-release
35314         * top/README-release: Clarify: you should make a point to have
35315         the latest stable versions of build tools in your PATH, and the
35316         reference to buildreq is solely for its list of tool names, not
35317         for its minimal-functional version numbers.
35318         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
35320         maint.mk: use more readable (yet functionally equivalent) quoting
35321         It is common to quote a single quote in a single quoted string like
35322         this:  '...'\''...'.  Unless you know the idiom, that looks like
35323         gibberish, so prefer to double-quote the string when possible.
35324         Then you can use a more readable, lone single quote: "...'..."
35325         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
35326         "don't" is more readable than the equivalent 'don'\''t'.
35327         (sc_cast_of_x_alloc_return_value): Likewise.
35328         (sc_cast_of_alloca_return_value): Likewise.
35329         (sc_makefile_path_separator_check): Similar: use ":" in '...',
35330         rather than '\'':'\''.
35332 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
35334         stdalign: relax _Alignof and tighten _Alignas test
35335         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
35336         as it was too strict: alignof must divide offsetof, but it need
35337         not equal offsetof.  Inspired by Joseph S. Myers's comment
35338         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
35339         Conversely, tighten the _Alignas test a bit, as the resulting
35340         alignment must be exactly 8.
35342 2012-01-27  Bruno Haible  <bruno@clisp.org>
35344         stdalign: Document the last change.
35345         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
35347 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
35349         stdalign: check that alignof and offsetof are consistent
35350         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
35351         Problem reported for gnulib by Richard W.M. Jones in
35352         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00340.html>.
35354 2012-01-27  Jim Meyering  <meyering@redhat.com>
35356         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
35357         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
35358         convert a sequence with gaps to the minimal containing range.
35359         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
35360         * tests/test-update-copyright.sh: Test for this.
35361         The FSF confirmed it is ok to do this, assuming there is at
35362         least one significant change per year in the affected range:
35363         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
35365 2012-01-26  Bruno Haible  <bruno@clisp.org>
35367         pipe2: refine doc about thread-safety
35368         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
35369         multithread-safety problem.
35370         * doc/glibc-functions/accept4.texi: Likewise.
35372 2012-01-26  Bruno Haible  <bruno@clisp.org>
35374         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
35375         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
35376         In the test program, include <fcntl.h>, for O_RDONLY.
35378 2012-01-26  Eric Blake  <eblake@redhat.com>
35380         pipe2: document lack of thread-safety in replacement
35381         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
35382         issue in replacement.
35383         * doc/glibc-functions/accept4.texi (accept4): Likewise.
35384         Based on a report by Eric Wong.
35386 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
35387             Bruno Haible  <bruno@clisp.org>
35389         malloca: Avoid warnings on x86_64 mingw64.
35390         * lib/malloca.c: Include <stdint.h>.
35391         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
35392         * modules/malloca (Depends-on): Add stdint.
35393         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
35395 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
35397         obstack: remove __STDC__ conditionals
35398         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
35399         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
35400         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
35401         m4/include_next.m4 as the only gnulib-maintained places that still
35402         refer to __STDC__.
35404 2012-01-24  Bruno Haible  <bruno@clisp.org>
35406         havelib: Modern quoting.
35407         * build-aux/config.rpath: Quote 'like this', not `like this', as per
35408         the recent change to the GNU coding standards.
35410 2012-01-24  Bruno Haible  <bruno@clisp.org>
35412         stdint: Improve support for Android.
35413         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
35414         Reported by Simon Josefsson <simon@josefsson.org>.
35416 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
35418         doc: omit trailing empty lines from INSTALL etc.
35419         * doc/Makefile (INSTALL): Omit trailing empty lines.
35420         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
35421         omit trailing empty lines.  This simplifies the build procedure.
35423 2012-01-23  Jim Meyering  <meyering@redhat.com>
35425         tests: avoid spurious warnings about gl_sockets_startup
35426         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
35427         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
35428         reporting a "statement with no effect".
35429         * tests/test-accept.c (main): Mark as "(void)".
35430         * tests/test-accept4.c (main): Likewise.
35431         * tests/test-bind.c (main): Likewise.
35432         * tests/test-connect.c (main): Likewise.
35433         * tests/test-getpeername.c (main): Likewise.
35434         * tests/test-getsockname.c (main): Likewise.
35435         * tests/test-getsockopt.c (main): Likewise.
35436         * tests/test-listen.c (main): Likewise.
35437         * tests/test-recv.c (main): Likewise.
35438         * tests/test-recvfrom.c (main): Likewise.
35439         * tests/test-send.c (main): Likewise.
35440         * tests/test-sendto.c (main): Likewise.
35441         * tests/test-setsockopt.c (main): Likewise.
35442         * tests/test-shutdown.c (main): Likewise.
35444 2012-01-21  Bruno Haible  <bruno@clisp.org>
35446         locale-fr.m4: Fix for Android.
35447         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
35448         failure of the test program on Bionic libc.
35450 2012-01-21  Jim Meyering  <meyering@redhat.com>
35452         bootstrap: fail when bootstrap_post_import_hook fails
35453         Otherwise, it's far too easy to miss diagnostics emitted
35454         between gnulib-tool's output and that of running configure.
35455         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
35457 2012-01-17  Jim Meyering  <meyering@redhat.com>
35459         maint: enable sc_trailing_blank
35460         * build-aux/pmccabe.css: Remove trailing blanks.
35461         * doc/acl-cygwin.txt: Likewise.
35462         * doc/gnu-oids.texi: Likewise
35463         * cfg.mk: Enable sc_trailing_blank.
35464         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
35466 2012-01-17  Jim Meyering  <meyering@redhat.com>
35468         maint: enable sc_prohibit_openat_without_use
35469         * cfg.mk: Enable sc_prohibit_openat_without_use.
35470         Exempt lib/selinux-at.c.
35472 2012-01-17  Jim Meyering  <meyering@redhat.com>
35474         maint: enable sc_prohibit_cloexec_without_use
35475         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
35476         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
35478 2012-01-17  Jim Meyering  <meyering@redhat.com>
35480         maint: enable sc_prohibit_intprops_without_use
35481         * cfg.mk: Enable sc_prohibit_intprops_without_use
35482         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
35484 2012-01-17  Jim Meyering  <meyering@redhat.com>
35486         maint: enable sc_prohibit_hash_pjw_without_use
35487         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
35488         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
35489         to match any use of \<hash_pjw\>, i.e., not necessarily with a
35490         following " (".
35492 2012-01-17  Jim Meyering  <meyering@redhat.com>
35494         maint: enable double-word-prohibiting rule
35495         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
35496         Exempt three files.
35498 2012-01-17  Jim Meyering  <meyering@redhat.com>
35500         maint: remove empty lines at EOF, but excluding modules/*
35501         Apply syntax rules at home as well as abroad.  Most changes
35502         were induced by running this:
35503           make srcdir=. _build-aux=build-aux -f top/maint.mk \
35504             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
35505             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
35506         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
35507         Exempt modules/* and two binary files.
35508         Also exempt doc/INSTALL*, per request from Bruno Haible.
35509         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
35510         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
35511         * doc/Copyright/request-assign.future: Likewise.
35512         * doc/Copyright/request-disclaim.changes: Likewise.
35513         * doc/INSTALL: Likewise.
35514         * doc/INSTALL.ISO: Likewise.
35515         * doc/INSTALL.UTF-8: Likewise.
35516         * doc/acl-cygwin.txt: Likewise.
35517         * doc/acl-resources.txt: Likewise.
35518         * doc/fdl-1.2.texi: Likewise.
35519         * doc/fdl-1.3.texi: Likewise.
35520         * doc/fdl.texi: Likewise.
35521         * lib/argp-pin.c: Likewise.
35522         * lib/round.c: Likewise.
35523         * lib/unicase/u16-totitle.c: Likewise.
35524         * lib/unictype/block_test.c: Likewise.
35525         * lib/uninorm/canonical-decomposition.c: Likewise.
35526         * m4/README: Likewise.
35527         * m4/relocatable-lib.m4: Likewise.
35528         * tests/test-isnand-nolibm.c: Likewise.
35529         * tests/test-isnand.c: Likewise.
35530         * tests/uninorm/NormalizationTest.txt: Likewise.
35532 2012-01-17  Jim Meyering  <meyering@redhat.com>
35534         maint: add framework to run syntax-check rules against gnulib sources
35535         * cfg.mk: New file, to disable all currently-failing tests.
35536         We'll enable them one by one, as they are made to pass.
35537         * Makefile (sc_maint): New rule.
35539 2012-01-21  Bruno Haible  <bruno@clisp.org>
35541         stdint: Add support for Android.
35542         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
35543         include the system's <stdint.h>.
35544         Reported by Simon Josefsson <simon@josefsson.org>.
35546 2012-01-19  Jim Meyering  <meyering@redhat.com>
35548         bootstrap: add bootstrap_post_import_hook
35549         Bison does still need something like the gnulib_mk_hook whose
35550         invocation I had to remove along with slurp in commit 767ccd40.
35551         Technically, we could get along without it, but doing so would
35552         have required living with a warning and a mandatory post-bootstrap
35553         automake rerun.
35554         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
35555         (bootstrap_post_import_hook): New function.
35556         Invoke it after gnulib-tool --import and before autoreconf.
35558 2012-01-18  Jim Meyering  <meyering@redhat.com>
35560         gitlog-to-changelog: don't use "no_"-prefixed variable name
35561         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
35562         to enable both --cluster and --no-cluster.  Change variable name,
35563         s/\$no_cluster/$cluster/, and reverse usage to match.
35565         gitlog-to-changelog: use "||", not "or" in expressions
35566         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
35567         expressions.
35569 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
35571         gitlog-to-changelog: new option --no-cluster
35572         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
35573         clustering of adjacent commit messages.
35575 2012-01-17  Jim Meyering  <meyering@redhat.com>
35577         maint: spell file systems with two words, not one
35578         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
35579         two words, not one.
35581 2012-01-16  Jim Meyering  <meyering@redhat.com>
35583         bootstrap: add a FIXME comment to ensure we eventually remove the hack
35584         * build-aux/bootstrap (gnulib_tool_options): Add comment.
35586 2012-01-16  Eric Blake  <eblake@redhat.com>
35588         bootstrap: cater to autoconf 2.59
35589         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
35590         is not available.
35592         bootstrap: properly check for libtool
35593         * build-aux/bootstrap (libtoolize): Also run libtool when older
35594         usage is detected.
35596 2012-01-15  Bruno Haible  <bruno@clisp.org>
35598         Improve support for MSVC 9.
35599         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
35600         clashes on MSVC.
35601         * lib/fcntl.in.h: Likewise.
35602         * lib/stdlib.in.h: Likewise.
35603         * lib/sys_stat.in.h: Likewise.
35605 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
35607         gnupload: we hold the master copy of this script now
35608         For motivation and more information, see:
35609         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00222.html>
35610         * build-aux/gnupload: Make it clear in the heading comments that the
35611         master copy of this file is maintained by gnulib.  Since we are at
35612         it, bump its copyright year and ...
35613         ($scriptversion): ... the date in its version.
35614         ($usage): Patches and bug reports should be sent to the gnulib list,
35615         not the automake one.
35616         * config/srclist.txt: Don't try to sync 'gnupload' from automake
35617         anymore.
35619 2012-01-15  Bruno Haible  <bruno@clisp.org>
35621         Fix module 'random'.
35622         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
35623         initstate, setstate are declared.
35625 2012-01-14  Bruno Haible  <bruno@clisp.org>
35627         Tests for module 'random'.
35628         * modules/random-tests: New file.
35629         * tests/test-random.c: New file, based on tests/test-random_r.c.
35631         New module 'random'.
35632         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
35633         declarations.
35634         * lib/random.c: New file, based on glibc/stdlib/random.c.
35635         * m4/random.m4: New file.
35636         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
35637         HAVE_RANDOM.
35638         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
35639         * modules/random: New file.
35640         * config/srclist.txt: Add an entry for random.c.
35641         * doc/posix-functions/random.texi: Mention the 'random' module.
35642         * doc/posix-functions/initstate.texi: Likewise.
35643         * doc/posix-functions/setstate.texi: Likewise.
35644         * doc/posix-functions/srandom.texi: Likewise.
35646 2012-01-12  Bruno Haible  <bruno@clisp.org>
35648         random_r: Use common idioms.
35649         * lib/random_r.c: Include <stdlib.h> first.
35651         random_r: Override incompatible API on AIX, OSF/1.
35652         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
35653         Override the system function if REPLACE_RANDOM_R is 1.
35654         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
35655         and OSF/1, set REPLACE_RANDOM_R.
35656         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
35657         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
35658         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
35659         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
35660         * doc/glibc-functions/random_r.texi: Likewise.
35661         * doc/glibc-functions/setstate_r.texi: Likewise.
35663         random_r: Support for MSVC 9.
35664         * lib/random_r.c: Include stdint.h, not inttypes.h.
35666 2012-01-12  Eric Blake  <eblake@redhat.com>
35668         inet_ntop: guard extra work by IF_LINT
35669         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
35670         better code generation when not checking for warnings.
35671         Suggested by Paul Eggert and Jim Meyering.
35673         strptime: fix regression on mingw
35674         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
35675         Fix regression.  Reported by Bruno Haible.
35677 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
35678             Bruno Haible  <bruno@clisp.org>
35680         copy-file: add error-code-returning variant.
35681         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
35682         (qcopy_file_preserving): New declaration.
35683         * lib/copy-file.c (qcopy_file_preserving): Renamed from
35684         copy_file_preserving. Change return type to 'int'. Don't emit an error
35685         message here.
35686         (copy_file_preserving): New function.
35687         * tests/test-copy-file.c: Include <stdlib.h>.
35688         (main): Test qcopy_file_preserving if the environment variable
35689         NO_STDERR_OUTPUT is set.
35690         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
35691         with NO_STDERR_OUTPUT
35692         * tests/test-copy-file-2.sh: Likewise.
35694 2012-01-10  Bruno Haible  <bruno@clisp.org>
35696         copy-file: Use 'quote' module consistently.
35697         * lib/copy-file.c (copy_file_preserving): Use quote().
35699         copy-file: Refactor.
35700         * lib/copy-file.c: Include quote.h.
35701         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
35702         message here.
35703         * modules/copy-file (Depends-on): Add quote.
35705         acl: Export qcopy_acl.
35706         * lib/acl.h (qcopy_acl): New declaration.
35707         * lib/copy-acl.c (qcopy_acl): Make non-static.
35709         acl: Rename a local variable.
35710         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
35712         acl: Align return values of copy_acl and qcopy_acl.
35713         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
35714         maybe < -1.
35716 2012-01-11  Eric Blake  <eblake@redhat.com>
35718         strptime: silence gcc warnings
35719         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
35720         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
35721         Reported by Daniel P. Berrange.
35723         inet_ntop: silence gcc warning
35724         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
35725         Reported by Daniel P. Berrange.
35727 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
35729         getloadavg test: skip the test on GNU/Linux without /proc mounted
35730         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
35731         file.  When /proc is not mounted, it always fails with ENOENT.
35732         * tests/test-getloadavg.c (main): Treat ENOENT return code from
35733         getloadavg(3) the same way as ENOSYS and ENOTSUP.
35735 2012-01-10  Bruno Haible  <bruno@clisp.org>
35737         regex: Avoid link error on MSVC 9.
35738         * modules/regex (Depends-on): Add wctype.
35740 2012-01-10  Bruno Haible  <bruno@clisp.org>
35742         doc: Mention --with-tests option.
35743         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
35744         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
35745         --with-tests.
35746         Reported by Reuben Thomas.
35748 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
35750         users.txt: order package names lexicographically.
35751         * users.txt: Order package names lexicographically.
35753 2012-01-10  Jim Meyering  <meyering@redhat.com>
35755         maint.mk: fix description in comment
35756         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
35758         ignore-value: remove deprecated ignore_ptr function
35759         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
35760         * NEWS: Note this.
35762 2012-01-09  Jim Meyering  <meyering@redhat.com>
35764         test-init.sh: avoid a subshell
35765         * tests/test-init.sh: Remove protective subshell.
35766         Suggested by Bernhard Voelker.  While a subshell is normally
35767         required to protect against older shells (Solaris, FreeBSD) that
35768         warn about a missing program before performing redirection, the
35769         shell-selection tests performed by init.sh probably exclude any
35770         offending shell.
35772 2012-01-08  Bruno Haible  <bruno@clisp.org>
35774         setlocale tests: Avoid test failure on Solaris 11.0.
35775         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
35776         variable.
35778 2012-01-08  Bruno Haible  <bruno@clisp.org>
35780         posix_spawn_file_actions_addopen: Work around Solaris 11.0 bug.
35781         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
35782         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
35783         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
35784         macro.
35785         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
35786         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
35787         * lib/spawn_faction_addopen.c: Add workaround implementation if
35788         HAVE_WORKING_POSIX_SPAWN.
35789         * modules/spawn (Makefile): Substitute
35790         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
35791         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
35792         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
35793         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
35794         (Depends-on): Update conditions.
35795         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
35796         the Solaris 11 bug.
35798 2012-01-08  Bruno Haible  <bruno@clisp.org>
35800         posix_spawn_file_actions_adddup2: Work around Solaris 11.0 bug.
35801         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
35802         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
35803         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
35804         macro.
35805         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
35806         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
35807         * lib/spawn_faction_adddup2.c: Add workaround implementation if
35808         HAVE_WORKING_POSIX_SPAWN.
35809         * modules/spawn (Makefile): Substitute
35810         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
35811         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
35812         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
35813         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
35814         (Depends-on): Update conditions.
35815         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
35816         the Solaris 11 bug.
35818 2012-01-08  Bruno Haible  <bruno@clisp.org>
35820         posix_spawn_file_actions_addclose: Work around Solaris 11.0 bug.
35821         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
35822         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
35823         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
35824         HAVE_WORKING_POSIX_SPAWN.
35825         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
35826         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
35827         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
35828         * lib/spawn_faction_addclose.c: Add workaround implementation if
35829         HAVE_WORKING_POSIX_SPAWN.
35830         * modules/spawn (Makefile): Substitute
35831         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
35832         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
35833         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
35834         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
35835         (Depends-on): Update conditions.
35836         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
35837         the Solaris 11 bug.
35839 2012-01-08  Bruno Haible  <bruno@clisp.org>
35841         doc: Update for Solaris 11.0.
35842         * doc/*/*.texi: Mention Solaris 11.0 where appropriate.
35843         * m4/printf.m4: Update comments.
35845 2012-01-08  Bruno Haible  <bruno@clisp.org>
35847         mktime: Avoid compilation error on Solaris 11.
35848         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
35850 2012-01-08  Bruno Haible  <bruno@clisp.org>
35852         doc: Small fix.
35853         * doc/posix-headers/nl_types.texi: Correct platforms list.
35855 2012-01-08  Simon Josefsson  <simon@josefsson.org>
35857         Add lgpl-3.0 module.
35858         * MODULES.html.sh (Support for building documentation): Add
35859         lgpl-3.0.
35860         * modules/lgpl-3.0: New file.
35862 2012-01-08  Jim Meyering  <meyering@redhat.com>
35864         select.c: indent with spaces, not TABs
35865         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
35867 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
35869         quotearg: do not use grave accent for left quote
35870         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
35871         locale_quoting_style.
35872         (quotearg_buffer_restyled): Fix example.
35873         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
35875 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
35877         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
35878         Most programs do not have translation catalogs for English and much
35879         less separate catalogs for British and American English.  Drop the
35880         suggestion to translators about these two, and provide it
35881         automatically for Unicode locales.  Like most programs, even those
35882         using American English, we use single quotation marks.  This conflicts
35883         with the American typographic convention, but works better when you
35884         cite the entire error message within double quotes.  It also tries not
35885         to clash with established practice and with what non-gnulib programs
35886         will usually do.
35887         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
35888         using an UTF-8 or GB-18030 locale.  The list of other locales with
35889         quotes was provided by Bruno Haible.
35890         (quotearg_buffer_restyled): Adjust instructions to translators.
35891         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
35892         text, since this would be wrong when using Unicode.
35893         * modules/quotearg: Depend on c-strcaseeq.
35895 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
35897         quotearg: fix Wikipedia link
35898         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
35900 2012-01-07  Simon Josefsson  <simon@josefsson.org>
35902         Fix for mingw with MSVC9.
35903         * m4/ld-version-script.m4: Check that compiler rejects version
35904         scripts with syntax errors.  Reported by Bruno Haible
35905         <bruno@clisp.org>.
35907 2012-01-06  Bruno Haible  <bruno@clisp.org>
35909         Talk about "native Windows API", not "Woe32".
35910         * lib/accept4.c: Update comments to mention native Windows.
35911         * lib/execute.c: Likewise.
35912         * lib/fatal-signal.c: Likewise.
35913         * lib/localcharset.c: Likewise.
35914         * lib/nanosleep.c: Likewise.
35915         * lib/nl_langinfo.c: Likewise.
35916         * lib/pclose.c: Likewise.
35917         * lib/pipe-filter-gi.c: Likewise.
35918         * lib/pipe-filter-ii.c: Likewise.
35919         * lib/pipe.c: Likewise.
35920         * lib/pipe2.c: Likewise.
35921         * lib/popen.c: Likewise.
35922         * lib/progreloc.c: Likewise.
35923         * lib/relocatable.c: Likewise.
35924         * lib/sigaction.c: Likewise.
35925         * lib/sigprocmask.c: Likewise.
35926         * lib/spawn-pipe.h: Likewise.
35927         * lib/spawn-pipe.c: Likewise.
35928         * lib/spawni.c: Likewise.
35929         * lib/stat-time.h: Likewise.
35930         * lib/w32spawn.h: Likewise.
35931         * tests/test-isatty.c: Likewise.
35932         * lib/config.charset: More comments.
35933         * doc/gnulib-intro.texi: Mention native Windows.
35934         * doc/posix-functions/_Exit_C99.texi: Likewise.
35935         * doc/posix-headers/fcntl.texi: Likewise.
35937 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
35939         argp: Avoid crash if translator uses % characters in a translation.
35940         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
35941         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
35943 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
35945         doc: C11 and C++11 are now official
35946         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
35947         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
35948         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
35949         * modules/stdalign:
35950         Replace references to draft C1X to C11, and to draft C++0X to C++11.
35952 2012-01-06  Bruno Haible  <bruno@clisp.org>
35954         uc-is-grapheme-break tests: Tweak.
35955         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
35956         message.
35958 2012-01-06  Bruno Haible  <bruno@clisp.org>
35960         test-init.sh: correct the test for diff -u
35961         * tests/test-init.sh: Also redirect stdout to /dev/null.
35963 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
35965         Use ', not `, for quoting output.
35966         * build-aux/announce-gen (usage, sizes, print_news_deltas)
35967         (print_changelog_deltas, get_tool_versions, main program):
35968         * build-aux/git-version-gen:
35969         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
35970         * build-aux/move-if-change (help):
35971         * build-aux/useless-if-before-free (usage, main program):
35972         * check-module (parse_module_file, usage)
35973         (find_included_lib_files, check_module):
35974         * lib/argmatch.c (main) [TEST]:
35975         * lib/argp-help.c (_help):
35976         * lib/getopt1.c (main) [TEST]:
35977         * lib/git-merge-changelog.c (usage):
35978         * lib/xstrtol-error.c (xstrtol_error):
35979         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
35980         * m4/argz.m4 (gl_FUNC_ARGZ):
35981         * m4/bison.m4 (gl_BISON):
35982         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
35983         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
35984         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
35985         * m4/fpending.m4 (gl_PREREQ_FPENDING):
35986         * m4/gc-random.m4 (gl_GC_RANDOM):
35987         * m4/intl.m4 (gt_CHECK_DECL):
35988         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
35989         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
35990         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
35991         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
35992         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
35993         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
35994         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
35995         * tests/test-dirname.c (main):
35996         * tests/test-getpass.c (main):
35997         * tests/test-iconvme.c (main):
35998         * tests/test-parse-datetime.c (LOG):
35999         * tests/test-xstrtoimax.sh:
36000         * tests/test-xstrtol.sh:
36001         * tests/test-xstrtoll.sh:
36002         * tests/test-xstrtoumax.sh:
36003         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
36004         * top/GNUmakefile (abort-due-to-no-makefile):
36005         Quote 'like this', not `like this', as per the recent change to
36006         the GNU coding standards.
36008 2012-01-05  Bruno Haible  <bruno@clisp.org>
36010         strtoimax: Don't force a replacement on systems where intmax_t is int.
36011         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
36012         'intmax_t' is not larger than 'int'.
36013         Reported by Pádraig Brady <P@draigBrady.com>.
36015 2012-01-05  Bruno Haible  <bruno@clisp.org>
36017         doc: Mention NetBSD bugs.
36018         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
36019         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
36021 2012-01-05  Bruno Haible  <bruno@clisp.org>
36023         strtoumax tests: Enhance tests.
36024         * tests/test-strtoumax.c (main): Add tests for large values.
36026 2012-01-05  Bruno Haible  <bruno@clisp.org>
36028         strtoimax: Work around AIX 5.1 bug.
36029         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
36030         definition.
36031         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
36032         Set HAVE_STRTOIMAX.
36033         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
36034         REPLACE_STRTOIMAX.
36035         * modules/inttypes-incomplete (Makefile.am): Substitute
36036         REPLACE_STRTOIMAX.
36037         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
36038         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
36039         (Depends-on): Update conditions.
36040         * tests/test-strtoimax.c (main): Add tests for large values.
36041         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
36043 2012-01-05  Bruno Haible  <bruno@clisp.org>
36045         inttypes: Modernize.
36046         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
36047         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
36048         (Makefile.am): Update inttypes.h rule.
36050 2012-01-05  Jim Meyering  <meyering@redhat.com>
36052         init.sh: don't waste a subshell just to redirect stderr
36053         * tests/init.sh: In testing for diff -u and diff -c, use a
36054         stderr-redirecting exec inside `...` rather than a subshell.
36056         test-init.sh: avoid failure on HP-UX 11.00
36057         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
36058         resolves to diff -c or cmp.  Reported by Bruno Haible.
36060 2012-01-05  Bruno Haible  <bruno@clisp.org>
36062         Tests for module 'strtoull'.
36063         * modules/strtoull-tests: New file.
36064         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
36066 2012-01-05  Bruno Haible  <bruno@clisp.org>
36068         Tests for module 'strtoll'.
36069         * modules/strtoll-tests: New file.
36070         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
36072 2012-01-05  Bruno Haible  <bruno@clisp.org>
36074         Tests for module 'strtoul'.
36075         * modules/strtoul-tests: New file.
36076         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
36078 2012-01-05  Bruno Haible  <bruno@clisp.org>
36080         Tests for module 'strtol'.
36081         * modules/strtol-tests: New file.
36082         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
36084 2012-01-04  Jim Meyering  <meyering@redhat.com>
36086         test-init.sh: accommodate Solaris 5.10's different diff -u output
36087         * tests/test-init.sh: Also exempt @@ lines from the comparison
36088         of diff output, since Solaris 5.10 and GNU diff formats differ.
36089         Reported by Stefano Lattarini.
36091 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
36093         test-posixtm: don't assume signed integer wraparound
36094         * tests/test-posixtm.c (main): Don't assume wraparound semantics
36095         after signed integer overflow.  Inspired by (though it may not
36096         fix) Bruno Haible's bug report in
36097         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00066.html>.
36099         Spell out "Windows 9x" and "Windows XP".
36100         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
36101         "Windows 9x" and "WinXP" with "Windows XP".
36103 2012-01-04  Jim Meyering  <meyering@redhat.com>
36105         test-vc-list-files-cvs.sh: remove obsolete comment
36106         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
36107         double exit.  Now that's all encapsulated via skip_ and Exit.
36109 2012-01-04  Bruno Haible  <bruno@clisp.org>
36111         Talk about "native Windows API", not "Win32".
36112         * lib/classpath.c: Update comments to mention native Windows.
36113         * lib/csharpexec.c: Likewise.
36114         * lib/dup2.c: Likewise.
36115         * lib/error.c: Likewise.
36116         * lib/fcntl.c: Likewise.
36117         * lib/filename.h: Likewise.
36118         * lib/findprog.c: Likewise.
36119         * lib/get-rusage-as.c: Likewise.
36120         * lib/get-rusage-data.c: Likewise.
36121         * lib/getpagesize.c: Likewise.
36122         * lib/javaexec.c: Likewise.
36123         * lib/msvc-inval.c: Likewise.
36124         * lib/msvc-nothrow.c: Likewise.
36125         * lib/nanosleep.c: Likewise.
36126         * lib/nonblocking.c: Likewise.
36127         * lib/printf-parse.c: Likewise.
36128         * lib/setlocale.c: Likewise.
36129         * lib/sigaction.c: Likewise.
36130         * lib/strerror_r.c: Likewise.
36131         * lib/tmpdir.c: Likewise.
36132         * lib/vasnprintf.c: Likewise.
36133         * lib/w32spawn.h: Likewise.
36134         * lib/waitpid.c: Likewise.
36135         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
36136         * m4/locale-ar.m4: Likewise.
36137         * m4/locale-fr.m4: Likewise.
36138         * m4/locale-ja.m4: Likewise.
36139         * m4/locale-tr.m4: Likewise.
36140         * m4/locale-zh.m4: Likewise.
36141         * m4/printf.m4: Likewise.
36142         * tests/test-cloexec.c: Likewise.
36143         * tests/test-copy-acl.sh: Likewise.
36144         * tests/test-copy-file.sh: Likewise.
36145         * tests/test-file-has-acl.sh: Likewise.
36146         * tests/test-set-mode-acl.sh: Likewise.
36147         * tests/test-dup-safer.c: Likewise.
36148         * tests/test-dup2.c: Likewise.
36149         * tests/test-dup3.c: Likewise.
36150         * tests/test-fcntl.c: Likewise.
36151         * tests/test-nonblocking-pipe.h: Likewise.
36152         * tests/test-nonblocking-socket.h: Likewise.
36153         * tests/test-pipe.c: Likewise.
36154         * tests/test-pipe2.c: Likewise.
36155         * tests/test-spawn-pipe-child.c: Likewise.
36156         * doc/acl-resources.txt: Likewise.
36157         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
36158         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
36159         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
36160         * lib/localcharset.c: Update comments to mention native Windows.
36161         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
36162         * lib/localename.c: Likewise.
36163         * lib/progreloc.c: Likewise.
36164         * lib/relocatable.c: Likewise.
36165         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
36166         (windows_compute_revents): Renamed from win32_compute_revents.
36167         (windows_compute_revents_socket): Renamed from
36168         win32_compute_revents_socket.
36169         * lib/select.c: Update comments to mention native Windows.
36170         (windows_poll_handle): Renamed from win32_poll_handle.
36171         * m4/threadlib.m4: Update comments to mention native Windows.
36172         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
36173         --enable-threads=windows instead of --enable-threads=win32. Set
36174         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
36175         * lib/glthread/lock.h: Update comments to mention native Windows.
36176         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
36177         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
36178         USE_WIN32_THREADS.
36179         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
36180         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
36181         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
36182         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
36183         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
36184         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
36185         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
36186         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
36187         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
36188         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
36189         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
36190         * tests/test-tls.c: Likewise.
36191         Rationale:
36192         Microsoft renamed the "Win32 API" to "Windows API", as it is available
36193         on both 32-bit and 64-bit Windows systems.
36194         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
36195         line of distinction is between "native Windows" on one side and Unix/
36196         POSIX systems on the other side. More details in
36197         <https://lists.gnu.org/r/bug-gnulib/2012-01/msg00027.html>.
36198         Suggested by Paul Eggert.
36200 2012-01-03  Bruno Haible  <bruno@clisp.org>
36202         isatty: Support for MSVC 9.
36203         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
36204         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
36205         (_isatty_nothrow): New function.
36206         (isatty): Use it instead of _isatty.
36207         (IsConsoleHandle): Add comment, from Paolo Bonzini.
36208         * lib/poll.c (IsConsoleHandle): Likewise.
36209         * lib/select.c (IsConsoleHandle): Likewise.
36210         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
36211         (gl_PREREQ_ISATTY): New macro.
36212         * modules/isatty (Depends-on): Add msvc-inval.
36213         (configure.ac): Invoke gl_PREREQ_ISATTY.
36215 2012-01-03  Jim Meyering  <meyering@redhat.com>
36217         maint.mk: remove temporary transition aid from over 1.5 years ago
36218         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
36219         purpose was to aid in the transition (avoiding silent malfunction)
36220         from that old name to the new _sc_search_regexp.  This shim was
36221         added by commit 219c504b.
36223         init.sh: do not try to accommodate compare arguments starting with "-"
36224         * tests/init.sh (compare_dev_null_): Do not try to accommodate
36225         compare arguments that start with "-".  Besides, we do not worry
36226         about this when invoking diff or cmp; why start now with sed?
36227         Using "--" to separate options from argument would trigger sed
36228         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
36229         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
36231 2012-01-02  Bruno Haible  <bruno@clisp.org>
36233         Enhance tests for module 'isatty'.
36234         * modules/isatty-tests (Depends-on): Add pipe-posix.
36235         * tests/test-isatty.c: Include <fcntl.h>.
36236         (DEV_NULL): New macro.
36237         (main): Test the resut of isatty() also on regular files, pipes, and
36238         /dev/null.
36240         New module 'isatty'.
36241         * lib/unistd.in.h (isatty): New declaration.
36242         * lib/isatty.c: New file, based on an idea of
36243         Bastien Roucariès <roucaries.bastien@gmail.com>.
36244         * m4/isatty.m4: New file.
36245         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
36246         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
36247         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
36248         REPLACE_ISATTY.
36249         * modules/isatty: New file.
36250         * doc/posix-functions/isatty.texi: Mention the new module.
36251         Suggested by Paolo Bonzini.
36253 2012-01-02  Bruno Haible  <bruno@clisp.org>
36255         canonicalize: Tweak 2011-12-29 commit.
36256         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
36257         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
36259 2012-01-02  Jim Meyering  <meyering@redhat.com>
36261         gitlog-to-changelog: describe input syntax in --help output
36262         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
36264         gitlog-to-changelog: fix typo in --help: show backslash before email @
36265         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
36266         in sources, but not in actual output.
36268 2011-12-30  Jim Meyering  <meyering@redhat.com>
36270         gitlog-to-changelog: don't malfunction when name contains %-directive
36271         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
36272         in a name string cause trouble.  E.g., with a user name of "%s",
36273         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
36275 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
36277         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
36278         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
36279         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
36280         the "  (tiny change)" notation that is appended to the standard
36281         ChangeLog "date  name  email" header line.
36283 2012-01-01  Jim Meyering  <meyering@redhat.com>
36285         test-framework-sh: init.sh: fix "make dist" failure
36286         When using gnulib-tool's --with-tests option and any module that
36287         depends on test-framework-sh, "make dist" would fail due to the
36288         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
36289         in the gltests directory, and not in the gllib/ directory.
36290         One way to work around that is to move the EXTRA_DIST += init.sh
36291         from the primary module to the -tests one:
36292         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
36293         * modules/test-framework-sh (Makefile.am): ...not here.
36294         Reported by Tom G. Christensen in
36295         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
36297         version-etc: update copyright year reported by --version
36298         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
36300 2011-12-31  Pádraig Brady  <P@draigBrady.com>
36302         canonicalize: only stat() if required
36303         * lib/canonicalize.c (canonicalize_filename_mode):
36304         Avoid calling l?stat() when both CAN_MISSING,
36305         and CAN_NOLINKS are set, as we neither need
36306         to resolve symlinks or test component existence.
36308 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
36310         doc: cover st_ino issues once; add OpenVMS etc.
36311         * doc/posix-functions/stat.texi (stat):
36312         * doc/posix-functions/lstat.texi (lstat):
36313         * doc/posix-functions/fstatat.texi (fstatat):
36314         * doc/posix-functions/fstat.texi (fstat):
36315         Move general 'struct stat' stuff to sys_stat.texi,
36316         leaving behind a pointer.
36317         * doc/posix-headers/sys_stat.texi (sys/stat.h):
36318         Merge duplicate info about 'struct stat' problems into here.
36319         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
36320         and suggest partial workarounds.
36322         same-inode: port to OpenVMS
36323         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
36324         three st_ino values.
36326 2011-12-30  Pádraig Brady  <P@draigBrady.com>
36328         canonicalize: fix references to stat() and lstat()
36329         * lib/canonicalize.c (canonicalize_filename_mode):
36330         Ensure references always resolve to a replacement
36331         function if required (even via a macro).
36333 2011-12-30  Jim Meyering  <meyering@redhat.com>
36335         gitlog-to-changelog: remove a little duplication
36336         * build-aux/gitlog-to-changelog (main): Grep @lines once,
36337         rather than twice.
36339 2011-12-29  Pádraig Brady  <P@draigBrady.com>
36341         canonicalize: add support for not resolving symlinks
36342         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
36343         indicate we don't want to follow symlinks.  Also
36344         provide CAN_MODE_MASK to aid setting these existing
36345         mutually exclusive values.
36346         * lib/canonicalize.c (canonicalize_filename_mode):
36347         Extract the flags from can_mode parameter, which
36348         are currently just used to select between stat()
36349         and lstat().  Also ensure that mutually exclusive
36350         values are flagged immediately as invalid.
36351         * tests/test-canonicalize.c: Verify symlinks are
36352         not followed, and that invalid flag combinations
36353         are diagnosed.
36355 2011-12-25  Jim Meyering  <meyering@redhat.com>
36357         gitlog-to-changelog: do not clump multi-paragraph entries
36358         Identical header lines (date,name,email+coauthors) are suppressed,
36359         thus putting all entries with those same characteristics under
36360         a single header.  However, when a log entry consists of two or
36361         more paragraphs, it may not be clear where it starts and ends.
36362         This change makes it so that such an entry is always separated
36363         from others by a header line, even when that header would
36364         otherwise be suppressed.
36365         * build-aux/gitlog-to-changelog: Implement the above.
36366         Inspired by a related request from Stefano Lattarini in
36367         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
36369 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
36371         announce-gen: fix `cmd' typo in diagnostic
36372         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
36373         diagnostic: a missing '$' meant that the command was not output.
36375 2011-12-23  Jim Meyering  <meyering@redhat.com>
36377         test-framework-sh: distribute init.sh
36378         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
36379         Otherwise, "make -C gnulib-tests check" (at least in grep) would
36380         fail due to the lack of init.sh.
36382         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
36383         * modules/atexit-tests: Rather than listing tests/init.sh,
36384         now that there's a module for it, simply depend on that new module.
36385         * modules/closein-tests: Likewise.
36386         * modules/exclude-tests: Likewise.
36387         * modules/getcwd-tests: Likewise.
36388         * modules/perror-tests: Likewise.
36389         * modules/pread-tests: Likewise.
36390         * modules/pwrite-tests: Likewise.
36391         * modules/vc-list-files-tests: Likewise.
36392         * modules/verify-tests: Likewise.
36393         * modules/xalloc-die-tests: Likewise.
36394         * modules/xstrtoimax-tests: Likewise.
36395         * modules/xstrtol-tests: Likewise.
36396         * modules/xstrtoll-tests: Likewise.
36397         * modules/xstrtoumax-tests: Likewise.
36398         * modules/yesno-tests: Likewise.
36400 2011-12-22  Jim Meyering  <meyering@redhat.com>
36402         test-framework-sh: add minimal tests of init.sh's compare function
36403         * modules/test-framework-sh-tests: New file.
36404         * tests/test-init.sh: New file.
36406         test-framework-sh: new module
36407         * modules/test-framework-sh: New file.
36408         * MODULES.html.sh (Support for maintaining and releasing projects):
36409         List it.
36411         init.sh: do not emit simulated diff output to stderr
36412         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
36414 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
36416         .gitignore: ignore gnulib.dvi and regex.info
36417         * doc/.gitignore:add gnulib.dvi and regex.info
36419 2011-12-22  Jim Meyering  <meyering@redhat.com>
36421         init.sh: correct previous change
36422         * tests/init.sh (compare): My previous change was wrong.
36423         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
36425         init.sh: avoid unwarranted test failure when using "set -e"
36426         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
36427         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
36428         a use like "compare exp out" would get evoke an unconditional failure.
36430 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
36432         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
36433         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
36434         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
36435         autoreconf that did not.
36436         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
36437         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
36439 2011-12-17  Jim Meyering  <meyering@redhat.com>
36441         bootstrap: remove some now-unneeded code
36442         This script arose back when gnulib-tool was young.
36443         Since then, it has seen improvements that render much of this
36444         script unnecessary.  In particular, it can now make symlinks
36445         to the files it uses.  Also, I no longer see as much value in
36446         marking files as read-only via comments.
36447         If you relied on the symlink-creation feature of the preceding
36448         version of this script, you can get most of that functionality
36449         by adding the --symlink option to the definition of
36450         gnulib_tool_option_extras in your bootstrap.conf file.
36451         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
36452         Run autopoint and libtoolize *before* gnulib-tool.
36453         After it, run an abbreviated autoreconf, rather than a loop around
36454         all tools.
36455         (slirp, bt_mark_as_generated): Remove functions.
36457 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
36459         ftoastr: fix typo
36460         * lib/ftoastr.h: Fix misspelling in comment.
36462 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
36464         * top/README-release: fix punctuation.
36466 2011-12-17  Jim Meyering  <meyering@redhat.com>
36468         bootstrap: correct the recent buildreq change
36469         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
36470         had no effect.
36471         * build-aux/bootstrap (buildreq): Bracket each search term with
36472         "*...*", so that the shell "case" statement works as intended.
36473         Add comments.
36475 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
36477         build: let bootstrap resort to wget when downloading .po files
36478         * build-aux/bootstrap (download_po_files): Fallback to wget when
36479         downloading the .po files via rsync fails.  This is necessary to
36480         bootstrap from behind a strict firewall.
36482 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
36484         stdint: don't assume C++11 when compiling with g++
36485         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
36486         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00099.html>.
36487         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
36488         work also in C++ before C++11, as that improperly inhibits
36489         generating a substitute stdint.h for that case.
36491 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
36493         alloca: protect comment from gnulib-tool
36494         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
36495         that gnulib-tool doesn't think it's a license, and munge it to
36496         say "GCC version 3".
36498 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
36500         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
36501         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
36502         $(abs_top_builddir) instead of $(top_builddir).
36504 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
36506         strftime-tests: also test nanoseconds
36507         * tests/test-strftime.c (T): Add a test of %N.
36509 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
36511         inttypes, stdint: add C++11 support
36512         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
36513         when including inttypes.h and stdint.h.  Support this change to
36514         the standard.
36515         * doc/posix-headers/inttypes.texi (inttypes.h):
36516         * doc/posix-headers/stdint.texi (stdint.h): Document this.
36517         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
36518         Define if not defined already, for the benefit of pre-C++11 hosts.
36519         Define the standard format macros (e.g., PRId8) always.
36520         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
36521         Likewise, if __cpluspus.  Define the standard constant and limit
36522         macros (e.g., INT8_C, INT8_MAX) always.
36523         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
36524         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
36525         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
36526         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
36527         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
36528         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
36529         Likewise.
36531 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
36533         nonblocking tests: Fix test failure on Linux/PPC.
36534         Suggested by Prerna Saxena in
36535         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00080.html>.
36536         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
36537         Set to 1100000.
36539 2011-12-12  Jim Meyering  <meyering@redhat.com>
36541         argmatch: don't hard-code `' when listing valid option arguments
36542         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
36543         use the quote function to add quotes.  Use fputs rather than
36544         fprintf for the format string with no format directive.
36546 2011-12-07  Eric Blake  <eblake@redhat.com>
36548         bootstrap: detect tools required by gnulib-tool
36549         * build-aux/bootstrap (buildreq): Provide minimum implicit
36550         dependencies.
36551         * DEPENDENCIES: Mention patch as a prereq.
36553 2011-12-04  Bruno Haible  <bruno@clisp.org>
36555         sethostname: Port to Windows platforms.
36556         * lib/sethostname.c: Provide an alternate implementation for Windows
36557         platforms.
36558         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
36559         (main): Skip the test if sethostname() fails with EPERM. On Windows
36560         platforms, don't check the result of gethostname().
36562 2011-12-04  Bruno Haible  <bruno@clisp.org>
36563             Jim Meyering  <meyering@redhat.com>
36565         tests: Avoid spurious error message on platforms without mktemp program.
36566         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
36568 2011-12-04  Bruno Haible  <bruno@clisp.org>
36570         sethostname: Fix documentation.
36571         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
36572         "not fixed" section.
36574 2011-12-03  Bruno Haible  <bruno@clisp.org>
36576         gnulib-tool: Verify that the License field is present and non-empty.
36577         * gnulib-tool (func_get_license_raw): New function, extracted from
36578         func_get_license.
36579         (func_get_license): Use it. Warn if the module is not a test module and
36580         has no license.
36581         Suggested by Jim Meyering.
36583 2011-12-03  Bruno Haible  <bruno@clisp.org>
36585         sethostname tests: Fix link error on mingw.
36586         * tests/test-sethostname1.c: New file, extracted from
36587         tests/test-sethostname.c.
36588         * tests/test-sethostname2.c: New file, extracted from
36589         tests/test-sethostname.c.
36590         * tests/test-sethostname.c: Remove file.
36591         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
36592         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
36593         (Depends-on): Add gethostname.
36594         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
36595         Link the latter with $(GETHOSTNAME_LIB).
36597         sethostname tests: Fix compilation error on mingw.
36598         * tests/test-sethostname.c: Don't include <sys/types.h>.
36599         (geteuid): Use a dummy value without uid_t.
36600         * modules/sethostname-tests (Depends-on): Remove sys_types.
36602         sethostname tests: Avoid a gcc warning.
36603         * tests/test-sethostname.c (main): Remove an unused variable.
36605         Tweak last commit.
36606         * modules/sethostname-tests (Files): Sort by decreasing importance.
36607         (configure.ac): Check for geteuid.
36608         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
36609         the test when there's nothing to test. Drop an unnecessary cast.
36610         Improve an error message. Verify that the final sethostname() call
36611         succeeds.
36613 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
36615         Add a test suite for the sethostname module.
36616         * modules/sethostname-tests: New file.  A test program
36617         for the sethostname module.
36618         * tests/test-sethostname.c: Likewise.
36620 2011-12-03  Bruno Haible  <bruno@clisp.org>
36622         Tweak last commit.
36623         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
36624         Fix preprocessor directives indentation. Fix typos.
36625         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
36626         * modules/unistd (Makefile): Likewise.
36628 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
36630         Integrate the sethostname module into unistd.
36631         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
36632         into the unistd.h header.
36633         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
36634         preprocessor directives.
36635         * modules/unistd: Setup the Makefile substitutions of the
36636         SETHOSTNAME preprocessor directives.
36638 2011-12-03  Bruno Haible  <bruno@clisp.org>
36640         Tweak last commit.
36641         * lib/sethostname.c: Don't include <string.h>.
36642         (sethostname): No need to copy the argument string to the stack. Don't
36643         call clearerr. Preserve errno when fprintf failed.
36644         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
36645         Don't invoke AC_REPLACE_FUNCS.
36646         * modules/sethostname (Link): Remove empty section.
36647         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
36648         failure problem.
36650 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
36652         New module 'sethostname'.
36653         * lib/sethostname.c (sethostname): New file.  Provide sethostname
36654         for systems that lack it.
36655         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
36656         sethostname declaration and function.
36657         * modules/sethostname: New file.  Define the sethostname module.
36659 2011-12-03  Bruno Haible  <bruno@clisp.org>
36661         Tweak last commit.
36662         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
36664 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
36666         Split the HOST_NAME_MAX detection into a separate m4 macro.
36667         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
36668         macro so it can be used by the pending sethostname module.
36670 2011-12-03  Bruno Haible  <bruno@clisp.org>
36672         Fix module descriptions syntax.
36673         * modules/argv-iter (License): Fix syntax.
36674         * modules/di-set (License): Likewise.
36675         * modules/ino-map (License): Likewise.
36676         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
36678 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
36680         stdalign: port to Clang 3.0
36681         Problem reported by Simon Josefsson in
36682         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00005.html>.
36683         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
36684         which has <stdalign.h> but which does not define alignof.
36685         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
36687 2011-12-01  Eric Blake  <eblake@redhat.com>
36689         mktempd: silence dd usage
36690         * build-aux/mktempd (rand_bytes): Silence dd.
36692 2011-11-30  Simon Josefsson  <simon@josefsson.org>
36694         manywarnings: Don't mention gcc version in docstring.
36695         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
36696         Jim Meyering <meyering@redhat.com>.
36698 2011-11-30  Jim Meyering  <meyering@redhat.com>
36700         hash: mark a few floating point constants with "f" suffix
36701         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
36702         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
36703         floating point constants with "f", since they're destined to be
36704         saved/used as "float"s.
36706 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
36708         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
36709         * tests/test-float.c (test_long_double): Correct and re-enable the
36710         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
36712 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
36714         Avoid subtracting two pointers that don't point into the same block.
36715         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
36716         only pointers into the same memory block are subtracted. We cannot
36717         assume that sizeof (ptrdiff_t) == sizeof (void *).
36719 2011-11-29  Eric Blake  <eblake@redhat.com>
36721         maint.mk: add syntax check for use of compare from init.sh
36722         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
36723         moved here from coreutils.
36725         manywarnings: drop -Wunsuffixed-float-constants
36726         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
36727         '1.0D', which is the only way to silence this warning for 'double'.
36729 2011-11-29  Jim Meyering  <meyering@redhat.com>
36731         hash: mark compute_bucket_size with the pure attribute
36732         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
36734         quotearg, propername: correct pragma guard expression
36735         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
36736         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
36738 2011-11-28  Jim Meyering  <meyering@redhat.com>
36740         propername: do not mark proper_name with the const attribute
36741         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
36742         since it examines data pointed to by its parameter.
36743         * lib/propername.c (proper_name): Instead, add a pragma to suppress
36744         the suggestion from -Wsuggest-attribute=const.
36746         propername: mark one more function as const
36747         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
36749 2011-11-27  Jim Meyering  <meyering@redhat.com>
36751         mark functions with const and pure attributes
36753         Mark functions per suggestions from gcc-4.6 when using these options:
36754         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
36755         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
36756         Follow these guidelines: when possible, apply the attribute to
36757         an extern declaration, not to its definition.  Apply it to the
36758         definition only when the definition is static.
36759         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
36760         * lib/argv-iter.h (argv_iter_n_args): Likewise.
36761         * lib/base64.h (isbase64): Likewise.
36762         * lib/basename-lgpl.c (last_component, base_len): Likewise.
36763         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
36764         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
36765         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
36766         (c_tolower, c_toupper): Likewise.
36767         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
36768         * lib/chdir-long.c (find_non_slash): Likewise.
36769         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
36770         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
36771         * lib/file-type.h (file_type): Likewise.
36772         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
36773         * lib/filevercmp.c (verrevcmp): Likewise.
36774         * lib/freadahead.h (freadahead): Likewise.
36775         * lib/fts.c (fts_maxarglen): Likewise.
36776         * lib/hash-pjw.h (hash_pjw): Likewise.
36777         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
36778         * lib/hash.c (is_prime, next_prime): Likewise.
36779         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
36780         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
36781         (hash_table_ok, hash_get_first, hash_string): Likewise.
36782         (compute_bucket_size): Likewise.
36783         * lib/i-ring.h (i_ring_empty): Likewise.
36784         * lib/isnan.c (isnanl): Likewise.
36785         * lib/math.h (isnanl, rpl_isnanl): Likewise.
36786         * lib/memcasecmp.h (memcasecmp): Likewise.
36787         * lib/memchr2.h (memchr2): Likewise.
36788         * lib/memcmp2.h (memcmp2): Likewise.
36789         * lib/parse-datetime.y (lookup_zone): Likewise.
36790         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
36791         [!WINDOWS_SOCKETS]: Likewise.
36792         * lib/strnlen1.h (strnlen1): Likewise.
36793         * lib/uniwidth.in.h (uc_width): Likewise.
36794         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
36795         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
36796         (quoting_options_from_style): Add a comment.
36797         * lib/propername.h (proper_name): Add a comment.
36799 2011-11-27  Bruno Haible  <bruno@clisp.org>
36801         Remove unused macros from !_LIBC code in glibc-borrowed files.
36802         * lib/fnmatch.c (STRCOLL): Remove macro.
36803         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
36804         * lib/glob.c (__stat, __readdir64): Remove macros.
36805         * lib/tempname.c (__open64, __xstat64): Remove macros.
36806         Suggested by Paul Eggert.
36808 2011-11-27  Bruno Haible  <bruno@clisp.org>
36810         getcwd: Fix link error on MSVC 9.
36811         * modules/getcwd (Depends-on): Add readdir, rewinddir.
36813 2011-11-27  Bruno Haible  <bruno@clisp.org>
36815         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
36816         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
36817         HAVE_OPENDIR is 0.
36818         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
36819         HAVE_CLOSEDIR is 0.
36820         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
36821         is 0.
36822         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
36824 2011-11-27  Bruno Haible  <bruno@clisp.org>
36826         getcwd: Fix bug from 2011-08-17.
36827         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
36828         platforms that need it.
36829         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
36830         code of 4 to be a failure, not a success. This ensures that
36831         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
36833 2011-11-27  Bruno Haible  <bruno@clisp.org>
36835         binary-io tests: Avoid test failure on mingw when libtool is used.
36836         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
36837         Don't verify the size of t-bin-out1.tmp here.
36838         * tests/test-binary-io.sh: Verify it here.
36839         Reported by Simon Josefsson.
36841 2011-11-26  Bruno Haible  <bruno@clisp.org>
36843         Fix conflict between two instantiations of module 'unistd'.
36844         * gnulib-tool (func_emit_autoconf_snippet): Substitute
36845         ${include_guard_prefix} also in the autoconf snippet.
36846         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
36847         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
36848         GNULIB_UNISTD_H_GETOPT.
36849         * modules/getopt-posix (configure.ac): Set the
36850         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
36851         * modules/getopt-gnu (configure.ac): Likewise.
36852         * modules/unistd (Makefile.am): Change the substitution value of
36853         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
36854         Reported by Simon Josefsson.
36856 2011-11-25  Bruno Haible  <bruno@clisp.org>
36858         pagealign_alloc: Doc and comments.
36859         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
36860         module.
36861         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
36863 2011-11-25  Jim Meyering  <meyering@redhat.com>
36865         test-update-copyright.sh: avoid false-positive failure
36866         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
36867         around false positive failure on Cygwin/Windows.  The latter was
36868         matching erroneously-created files with names like
36869         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
36871 2011-11-25  Simon Josefsson  <simon@josefsson.org>
36873         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
36874         * m4/valgrind-tests.m4: Check that the parameters that will be
36875         used works, not just a subset of them.  Reported by Bruno Haible
36876         <bruno@clisp.org>.
36878 2011-11-24  Jim Meyering  <meyering@redhat.com>
36880         test-stdalign.c: comment out long double tests
36881         * tests/test-stdalign.c: Don't try to reduce alignment of long double
36882         variables.  That provokes errors like this from gcc-4.7.0 20111124:
36883         error: '_Alignas' specifiers cannot reduce alignment of \
36884         'static_longdouble_alignas'.
36886 2011-11-22  Jim Meyering  <meyering@redhat.com>
36888         init.sh: make "compare /dev/null FILE" output more readable
36889         * tests/init.sh (compare_): Document the preferred order of arguments.
36890         (emit_diff_u_header_): New function.
36891         (compare_dev_null_): Emit a simulated diff, rather than just the
36892         contents of the unexpected file.  Suggestion from Bruno Haible.
36894 2011-11-21  Jim Meyering  <meyering@redhat.com>
36895             Eric Blake  <eblake@redhat.com>
36897         init.sh: work around OSF/1 5.1's mishandling of /dev/null
36898         * tests/init.sh: Make our compare function slightly more portable.
36899         Reported by Bruno Haible in
36900         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
36902 2011-11-21  Simon Josefsson  <simon@josefsson.org>
36904         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
36905         before using it, in code that ends up in config.h.
36907 2011-11-20  Bruno Haible  <bruno@clisp.org>
36909         getcwd: Work around getcwd bug on AIX 5..7.
36910         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
36911         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
36912         Use a different value for gl_cv_func_getcwd_path_max. Move the
36913         definition of HAVE_PARTLY_WORKING_GETCWD from here...
36914         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
36915         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
36916         Define HAVE_MINIMALLY_WORKING_GETCWD.
36917         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
36918         where it is not even minimally working, that is, on AIX.
36919         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
36920         m4/getcwd-path-max.m4.
36921         (main): Update exit code computation.
36922         * doc/posix-functions/getcwd.texi: Mention list of platforms where
36923         getcwd does not handle long file names.
36925 2011-11-20  Bruno Haible  <bruno@clisp.org>
36927         getcwd: Fix bug from 2009-09-10.
36928         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
36929         like "no".
36931 2011-11-20  Simon Josefsson  <simon@josefsson.org>
36933         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
36935 2011-11-20  Bruno Haible  <bruno@clisp.org>
36937         fma tests: Avoid shadowing local variables.
36938         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
36939         expected.
36941 2011-11-20  Bruno Haible  <bruno@clisp.org>
36943         copysignf tests: Fix.
36944         * tests/test-copysignf.c: Fix signature check.
36946 2011-11-20  Bruno Haible  <bruno@clisp.org>
36948         fma: Remove unused code.
36949         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
36950         unused macros.
36952 2011-11-20  Bruno Haible  <bruno@clisp.org>
36954         sethostname: Fix doc about AIX.
36955         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
36956         sethostname; it has it.
36958         sethostname: Mention more portability problems.
36959         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
36960         problem.
36961         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
36963 2011-11-19  Bruno Haible  <bruno@clisp.org>
36965         Depend on module fcntl-h when AT_FDCWD is used.
36966         * modules/utimens (Depends-on): Add fcntl-h.
36967         * modules/areadlinkat (Depends-on): Likewise.
36968         * modules/areadlinkat-with-size (Depends-on): Likewise.
36969         * modules/faccessat (Depends-on): Likewise.
36970         * modules/fchmodat (Depends-on): Likewise.
36971         * modules/fchownat (Depends-on): Likewise.
36972         * modules/getcwd (Depends-on): Likewise.
36973         * modules/mkdirat (Depends-on): Likewise.
36974         * modules/mkfifoat (Depends-on): Likewise.
36975         * modules/readlinkat (Depends-on): Likewise.
36976         * modules/symlinkat (Depends-on): Likewise.
36977         * modules/dup2-tests (Depends-on): Likewise.
36978         * modules/fdutimensat-tests (Depends-on): Likewise.
36979         * modules/futimens-tests (Depends-on): Likewise.
36981 2011-11-19  Bruno Haible  <bruno@clisp.org>
36983         euidaccess: Update a comment.
36984         * lib/euidaccess.c: Update comment about platforms with faccessat.
36986 2011-11-19  Bruno Haible  <bruno@clisp.org>
36988         openat: Fix file list.
36989         * modules/openat (Files): Remove lib/at-func.c.
36991 2011-11-19  Bruno Haible  <bruno@clisp.org>
36993         fstatat: Simplify.
36994         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
36995         gnulib should define rpl_fstatat, there is a
36996         "#define fstatat rpl_fstatat" in <sys/stat.h>.
36998 2011-11-19  Bruno Haible  <bruno@clisp.org>
37000         Ensure 'inline' can be used in tests/test-utimens-common.h.
37001         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
37002         * modules/futimens-tests (configure.ac): Likewise.
37003         * modules/utimens-tests (configure.ac): Likewise.
37004         * modules/utimensat-tests (configure.ac): Likewise.
37006 2011-11-19  Simon Josefsson  <simon@josefsson.org>
37008         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
37009         not hash_insert0.
37010         (hash_insert_if_absent): Doc fix.
37012 2011-11-19  Simon Josefsson  <simon@josefsson.org>
37014         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
37016 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
37018         test-getcwd: disambiguate exit status
37019         * tests/test-getcwd.c (test_long_name): Return 0..7.
37020         (main): Exit with an unambiguous exit status.  The old
37021         code yielded a mysterious mixture of two failure codes.
37023         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
37024         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
37025         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
37026         rpl_fstatat or fstatat.  This should fix the other problem
37027         reported by Kai Habel in
37028         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
37029         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
37030         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00239.html>
37031         and I reproduced it on a Solaris 8 host we still have in production.
37033 2011-11-18  Jim Meyering  <meyering@redhat.com>
37035         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
37036         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
37037         Add a sentence to the comment.
37038         (hash_insert0): New function that simply calls hash_insert_if_absent.
37039         * lib/hash.h (hash_insert_if_absent): Declare it.
37040         (hash_insert0): Add deprecation attribute.
37041         (_GL_ATTRIBUTE_DEPRECATED): Define.
37042         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
37043         not hash_insert0.
37044         * NEWS: Mention it, even though it's not really an incompatible change.
37046 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
37048         openat: avoid compilation failure due to lack of <errno.h> inclusion
37049         * lib/openat.c: Include <errno.h>.
37051 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
37053         * modules/getcwd (Depends-on): Add fdopendir.
37054         This fixes one of the two problems reported by Kai Habel in
37055         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
37057         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
37058         stdalign problem reported by Ian Beckwith in
37059         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00238.html>.
37060         * modules/crypto/gc-arcfour (Depends-on):
37061         Depend conditionally on crypto/arcfour.
37062         * modules/crypto/gc-arctwo (Depends-on):
37063         Depend conditionally on crypto/arctwo.
37064         * modules/crypto/gc-des (Depends-on):
37065         Depend conditionally on crypto/des.
37066         * modules/crypto/gc-hmac-md5 (Depends-on):
37067         Depend conditionally on crypto/hmac-md5.
37068         * modules/crypto/gc-hmac-sha1 (Depends-on):
37069         Depend conditionally on crypto/hmac-sha1.
37070         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
37071         * modules/crypto/gc-md4 (Depends-on):
37072         Depend conditionally on crypto/md4.
37073         * modules/crypto/gc-md5 (Depends-on):
37074         Depend conditionally on crypto/md5.
37075         * modules/crypto/gc-rijndael (Depends-on):
37076         Depend conditionally on crypto/rijndael.
37077         * modules/crypto/gc-sha1 (Depends-on):
37078         Depend conditionally on crypto/sha1.
37079         * modules/crypto/gc-arcfour:
37080         * modules/crypto/gc-arctwo:
37081         * modules/crypto/gc-des:
37082         * modules/crypto/gc-hmac-md5:
37083         * modules/crypto/gc-hmac-sha1:
37084         * modules/crypto/gc-md2:
37085         * modules/crypto/gc-md4:
37086         * modules/crypto/gc-md5:
37087         * modules/crypto/gc-rijndael:
37088         * modules/crypto/gc-sha1:
37089         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
37090         now that the conditional dependencies do the work for us.
37092 2011-11-17  Jim Meyering  <meyering@redhat.com>
37094         tests: factor st_ctime-comparison out of two headers
37095         * tests/test-utimens-common.h (ctime_compare): Define.
37096         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
37097         * tests/test-lutimens.h (test_lutimens): Likewise.
37098         * tests/test-utimens.h (test_utimens): Likewise.
37100         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
37101         Invoke the test program via an init.sh-using wrapper.
37102         * tests/test-getcwd.sh: New file.
37103         * modules/getcwd-tests (Files): Add it.
37104         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
37106 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
37108         gitlog-to-changelog: support multi-author commits.
37109         The FSF cares about keeping track of all authors of patches to its
37110         projects, but Git doesn't provide obvious support for multi-author
37111         changesets. Consensus seems to be forming around the use of extra
37112         Signed-off-by inspired lines in the log message formatted as
37113         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
37114         multi-author commits between version control systems.
37115         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
37116         log message and output in standard ChangeLog multi-author format.
37117         Reported by Peter Rosin <peda@lysator.liu.se>
37119 2011-11-15  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
37120             Bruno Haible  <bruno@clisp.org>
37122         Fix some modules' file list.
37123         * modules/fstatat (Files): Add m4/lstat.m4.
37124         * modules/openat (Files): Likewise.
37125         * modules/unlinkat (Files): Likewise.
37127 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
37129         maint.mk: fix tight-scope.mk generation in VPATH builds.
37130         * top/maint.mk (tight-scope.mk): Make sure to prefix file
37131         reference with $(srcdir) so that the file is found correctly even
37132         when running `make syntax-check' in a VPATH build.
37134 2011-11-13  Bruno Haible  <bruno@clisp.org>
37135             Jim Meyering  <meyering@redhat.com>
37137         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
37138         * tests/init.sh (compare): Remove "No differences encountered" or
37139         synonymous output from the 'diff' program.
37141 2011-11-13  Bruno Haible  <bruno@clisp.org>
37143         Makefile: Tweak indentation.
37144         * Makefile: Use tab as first character in every line that contains rule
37145         commands.
37147 2011-11-13  Bruno Haible  <bruno@clisp.org>
37149         Syntax check for copyright statements.
37150         * check-copyright: New file.
37151         * Makefile (sc_check_copyright): New rule.
37153 2011-11-13  Simon Josefsson  <simon@josefsson.org>
37155         * build-aux/git-version-gen: Add --prefix to configure the tag
37156         match string.
37158 2011-11-13  Simon Josefsson  <simon@josefsson.org>
37160         * build-aux/git-version-gen: Add --help and --version.
37162 2011-11-12  Jim Meyering  <meyering@redhat.com>
37164         revamp the other test-exclude?.sh scripts to use init.sh, too
37165         * tests/test-exclude1.sh: Use init.sh.
37166         * tests/test-exclude2.sh: Likewise.
37167         * tests/test-exclude3.sh: Likewise.
37168         * tests/test-exclude4.sh: Likewise.
37169         * tests/test-exclude5.sh: Likewise.
37170         * tests/test-exclude6.sh: Likewise.
37171         * tests/test-exclude7.sh: Likewise.
37172         * tests/test-exclude8.sh: Likewise.
37173         * modules/exclude-tests (Files): List init.sh.
37175         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
37176         These shell scripts ignored failure of the binary test-exclude,
37177         so making the latter return 77 didn't cause them to be skipped.
37178         * tests/test-exclude5.sh: Exit with test-exclude's error status
37179         when that program fails.  Revamp to use init.sh.
37180         * tests/test-exclude2.sh: Likewise.
37182         test-exclude: fix a typo
37183         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
37185 2011-11-11  Bruno Haible  <bruno@clisp.org>
37187         obstack: Fix compilation error on MSVC 9.
37188         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
37190 2011-11-11  Jim Meyering  <meyering@redhat.com>
37192         test-exclude: skip tests rather than failing on deficient systems
37193         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
37194         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
37195         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
37196         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
37198 2011-11-10  Bruno Haible  <bruno@clisp.org>
37200         ptsname_r test: Avoid gcc warning on glibc systems.
37201         * tests/test-ptsname_r.c (null_ptr): New function.
37202         (test_errors): Use it.
37204 2011-11-10  Bruno Haible  <bruno@clisp.org>
37206         ptsname_r: Avoid compilation error on OSF/1 5.1.
37207         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
37208         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
37209         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
37210         function is not declared or incompatibly declared.
37211         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
37212         * modules/ptsname_r (Depends-on, configure.ac): Update.
37213         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
37215 2011-11-10  Bruno Haible  <bruno@clisp.org>
37217         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
37218         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
37219         When cross-compiling, guess yes on all platforms except AIX.
37220         Reported by Ludovic Courtès <ludo@gnu.org>.
37222 2011-11-09  Bruno Haible  <bruno@clisp.org>
37224         ptsname_r tests: Fix bugs.
37225         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
37226         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
37228 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
37230         fstatat: work with cross-compilation
37231         Problem reported by Ludovic Courtès in
37232         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00136.html>.
37233         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
37234         "cross-compiling" and assume the bug is present.  Replace
37235         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
37236         an inverted sense, to be more conservative about our assumptions.
37237         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
37239 2011-11-09  Bruno Haible  <bruno@clisp.org>
37241         Improve MODULES.html output.
37242         * modules/mkfifoat (Description): Use the word "function".
37243         * modules/readlinkat (Description): Likewise.
37244         * modules/symlinkat (Description): Likewise.
37246 2011-11-09  Eric Blake  <eblake@redhat.com>
37248         ptsname_r-tests: new test module
37249         * modules/ptsname_r-tests: New module.
37250         * tests/test-ptsname_r.c: New file.
37252         ptsname_r: new module
37253         * modules/ptsname_r: New module.
37254         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
37255         * lib/ptsname.c (__ptsname_r): Split...
37256         * lib/ptsname_r.c: ...into new file.
37257         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
37258         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
37259         * modules/stdlib (Makefile.am): Substitute witnesses.
37260         * lib/stdlib.in.h (ptsname_r): Declare it.
37261         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
37262         * MODULES.html.sh (Misc): Likewise.
37263         * modules/ptsname (Depends-on): Alter dependency.
37264         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
37266 2011-11-09  Jim Meyering  <meyering@redhat.com>
37268         announce-gen: be more concise when there's only one URL+tarball
37269         * build-aux/announce-gen (get_tool_versions): When you distribute
37270         only one type of tarball, combine the first two "Here are..."
37271         sections and make the key-checking grammar independent of
37272         how many tarballs there are.
37274 2011-11-09  Eric Blake  <eblake@redhat.com>
37276         openpty: provide a stub on mingw
37277         * lib/pty.in.h (includes): Provide forward declarations.
37278         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
37280         raise: fix mingw handling of SIGPIPE
37281         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
37283 2011-11-08  Bruno Haible  <bruno@clisp.org>
37285         More conditional dependencies.
37286         * modules/faccessat (Depends-on): Add conditions.
37287         * modules/fchmodat (Depends-on): Likewise.
37288         * modules/fchownat (Depends-on): Likewise.
37289         * modules/fstatat (Depends-on): Likewise.
37290         * modules/mkfifoat (Depends-on): Likewise.
37291         * modules/readlinkat (Depends-on): Likewise.
37292         * modules/symlinkat (Depends-on): Likewise.
37293         * modules/unlinkat (Depends-on): Likewise.
37294         * modules/utimensat (Depends-on): Likewise.
37295         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
37296         * modules/linkat (Depends-on): Refine the conditions.
37297         * modules/renameat (Depends-on): Likewise.
37299 2011-11-08  Bruno Haible  <bruno@clisp.org>
37301         faccessat: Move AC_LIBOBJ invocation to module description.
37302         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
37303         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
37304         invocation from here...
37305         * modules/faccessat (configure.ac): ... to here. Invoke
37306         gl_PREREQ_FACCESSAT.
37308 2011-11-08  Bruno Haible  <bruno@clisp.org>
37310         faccessat: Simplify autoconf macro.
37311         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
37312         gl_FUNC_EUIDACCESS.
37314 2011-11-08  Bruno Haible  <bruno@clisp.org>
37316         renameat: Fix dependencies.
37317         * modules/renameat (Depends-on): Add stdbool.
37319 2011-11-08  Bruno Haible  <bruno@clisp.org>
37321         mkfifoat: Fix module description.
37322         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
37323         not gl_UNISTD_MODULE_INDICATOR.
37325 2011-11-08  Bruno Haible  <bruno@clisp.org>
37327         fstatat: Remove unused dependency.
37328         * modules/fstatat (Depends-on): Remove fstat.
37330 2011-11-08  Simon Josefsson  <simon@josefsson.org>
37332         GNUmakefile: behave when Makefile is missing.
37333         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
37335 2011-11-08  Bruno Haible  <bruno@clisp.org>
37337         openat: Conditionalize dependencies.
37338         * lib/openat.c: Reduce the scope of some #includes.
37339         * modules/openat (Depends-on): Add conditions.
37341 2011-11-07  Jim Meyering  <meyering@redhat.com>
37343         maint.mk: extract GPG key ID without using a temporary file
37344         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
37345         without using a temporary file.  Based on a suggestion from Werner Koch
37346         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
37348 2011-11-07  Eric Blake  <eblake@redhat.com>
37350         grantpt: fix typo
37351         * lib/stdlib.in.h (grantpt): Check correct function.
37353         maint.mk: silence new syntax check
37354         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
37356 2011-11-06  Bruno Haible  <bruno@clisp.org>
37358         Doc about floating-point and math API.
37359         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
37360         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
37362 2011-11-06  Bruno Haible  <bruno@clisp.org>
37364         stdalign tests: Skip the test when compiled by Sun C.
37365         * tests/test-stdalign.c (main): Skip the test on Sun C.
37367 2011-11-06  Bruno Haible  <bruno@clisp.org>
37369         ansi-c++-opt: Complete the 2011-06-05 change.
37370         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
37371         does not support namespaces, set the variable to "no", not to ":".
37373 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
37375         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
37377 2011-11-06  Bruno Haible  <bruno@clisp.org>
37379         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
37380         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
37381         (minus_zerol) [HP-UX]: New macro.
37382         (unary_minus) [HP-UX]: New function.
37383         (copysignl) [HP-UX]: Use unary_minus function.
37385 2011-11-06  Bruno Haible  <bruno@clisp.org>
37387         ldexp, ldexpf, ldexpl: Enhance tests.
37388         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
37389         and tests/test-ldexpl.c.
37390         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
37391         LDEXP, MIN_EXP, MAX_EXP): New macros.
37392         Include test-ldexp.h.
37393         (main): Just call test_function.
37394         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
37395         infinity.h, nan.h.
37396         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
37397         MAX_EXP): New macros.
37398         Include test-ldexp.h.
37399         (x, y): Remove variables.
37400         (main): Just call test_function.
37401         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
37402         infinity.h, nan.h.
37403         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
37404         MAX_EXP): New macros.
37405         Include test-ldexp.h.
37406         (x, y): Remove variables.
37407         (main): Just call test_function.
37408         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
37409         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
37410         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
37411         (Depends-on): Add isnand-nolibm, signbit, float.
37412         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
37413         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
37414         (Depends-on): Add isnanf-nolibm, signbit, float.
37416 2011-11-06  Bruno Haible  <bruno@clisp.org>
37418         math tests: Cosmetics.
37419         * tests/test-math-c++.cc: Reorder declarations.
37421 2011-11-05  Bruno Haible  <bruno@clisp.org>
37423         fma*: Simplify test.
37424         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
37425         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
37427         Tests for module 'fmal'.
37428         * modules/fmal-tests: New file.
37429         * tests/test-fmal1.c: New file.
37430         * tests/test-fmal2.c: New file.
37432         New module 'fmal'.
37433         * lib/math.in.h (fmal): New declaration.
37434         * lib/fmal.c: New file.
37435         * m4/fmal.m4: New file.
37436         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
37437         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
37438         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
37439         REPLACE_FMAL.
37440         * modules/fmal: New file.
37441         * doc/posix-functions/fmal.texi: Mention the new module and the various
37442         bugs.
37444         Tests for module 'fmaf'.
37445         * modules/fmaf-tests: New file.
37446         * tests/test-fmaf1.c: New file.
37447         * tests/test-fmaf2.c: New file.
37449         New module 'fmaf'.
37450         * lib/math.in.h (fmaf): New declaration.
37451         * lib/fmaf.c: New file.
37452         * m4/fmaf.m4: New file.
37453         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
37454         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
37455         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
37456         REPLACE_FMAF.
37457         * modules/fmaf: New file.
37458         * doc/posix-functions/fmaf.texi: Mention the new module and the various
37459         bugs.
37461         Tests for module 'fma'.
37462         * modules/fma-tests: New file.
37463         * tests/test-fma1.c: New file.
37464         * tests/test-fma1.h: New file.
37465         * tests/test-fma2.c: New file.
37466         * tests/test-fma2.h: New file.
37468         New module 'fma'.
37469         * lib/math.in.h (fma): New declaration.
37470         * lib/fma.c: New file.
37471         * m4/fma.m4: New file.
37472         * m4/fegetround.m4: New file.
37473         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
37474         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
37475         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
37476         REPLACE_FMA.
37477         * modules/fma: New file.
37478         * doc/posix-functions/fma.texi: Mention the new module and the various
37479         bugs.
37481         Extend gl_MATHFUNC.
37482         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
37483         Support 'void' as argument type.
37484         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
37486 2011-11-05  Jim Meyering  <meyering@redhat.com>
37488         maint.mk: also prohibit inclusion of dirent.h without use
37489         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
37491 2011-11-05  Bruno Haible  <bruno@clisp.org>
37493         ldexpl tests: Avoid test failure on MSVC 9.
37494         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
37495         value. Needed in order to enforce the conversion from a value greater
37496         than LDBL_MAX to Infinity.
37498 2011-11-05  Bruno Haible  <bruno@clisp.org>
37500         New modules 'at-internal', 'openat-h', split off from module 'openat'.
37501         * modules/at-internal: New file, extracted from modules/openat.
37502         * modules/openat-h: New file.
37503         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
37504         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
37505         * modules/openat (Description): Add reference to POSIX function.
37506         (Files): Remove lib/openat.h, lib/openat-proc.c.
37507         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
37508         intprops, unistd.
37509         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
37510         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
37511         gl_FCNTL_MODULE_INDICATOR.
37512         (Include): Remove unistd.h, openat.h.
37513         * modules/areadlinkat (Files): Add lib/at-func.c.
37514         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
37515         openat-die, openat-h, save-cwd.
37516         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
37517         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
37518         openat-die, openat-h, save-cwd, unistd.
37519         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
37520         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
37521         openat-h, save-cwd. Remove fcntl-h, openat.
37522         * modules/fchmodat (Files): Remove lib/openat.h.
37523         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
37524         openat, stdbool, unistd.
37525         * modules/fchownat (Files): Remove lib/openat.h.
37526         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
37527         openat, stdbool, sys_stat.
37528         * modules/fdopendir (Files): Remove lib/openat-priv.h,
37529         lib/openat-proc.c.
37530         (Depends-on): Add at-internal.
37531         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
37532         * modules/fstatat (Files): Remove lib/openat.h.
37533         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
37534         stdbool, unistd.
37535         * modules/fts (Depends-on): Add openat-h.
37536         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
37537         openat.
37538         * modules/mkdirat (Files): Remove lib/openat.h.
37539         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
37540         openat, stdbool, sys_stat.
37541         * modules/mkfifoat (Files): Add lib/at-func.c.
37542         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
37543         openat-h, save-cwd. Remove fcntl-h, openat.
37544         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
37545         * modules/readlinkat (Files): Add lib/at-func.c.
37546         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
37547         openat-h, save-cwd. Remove fcntl-h, openat.
37548         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
37549         openat.
37550         * modules/selinux-at (Files): Add lib/at-func.c.
37551         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
37552         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
37553         * modules/symlinkat (Files): Add lib/at-func.c.
37554         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
37555         openat-h, save-cwd. Remove fcntl-h, openat.
37556         * modules/unlinkat (Files): Remove lib/openat.h.
37557         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
37558         stdbool.
37559         * modules/utimensat (Files): Add lib/at-func.c.
37560         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
37561         openat-die, openat-h, save-cwd.
37562         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
37563         * modules/fdutimensat-tests (Depends-on): Add openat.
37564         * modules/fstatat-tests (Depends-on): Add openat-h.
37565         * modules/readlinkat-tests (Depends-on): Add openat.
37566         * modules/symlinkat-tests (Depends-on): Add openat.
37568 2011-11-05  Bruno Haible  <bruno@clisp.org>
37570         openat: Include <stdbool.h>.
37571         * lib/openat.c: Include <stdbool.h>.
37573 2011-11-04  Bruno Haible  <bruno@clisp.org>
37575         fchownat, renameat, unlinkat: Fix dependencies.
37576         * modules/fchownat (Depends-on): Add fstatat.
37577         * modules/renameat (Depends-on): Likewise.
37578         * modules/unlinkat (Depends-on): Likewise.
37580 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
37582         openat: remove direct dependency on dirent
37583         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
37584         and hasn't been needed ever since fdopendir was split into its own
37585         module on 2009-08-31.
37586         * modules/openat (Depends-on): Remove dirent.
37588 2011-11-04  Bruno Haible  <bruno@clisp.org>
37590         renameat: Optimize code size.
37591         * modules/renameat (configure.ac): Don't compile at-func2.c if
37592         REPLACE_RENAMEAT is 1.
37594 2011-11-04  Bruno Haible  <bruno@clisp.org>
37596         openat tests: Fix file list.
37597         * modules/openat-tests (Files): Add tests/test-open.h.
37599 2011-11-04  Bruno Haible  <bruno@clisp.org>
37601         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
37602         * modules/fchmodat (Depends-on): Add openat-die.
37603         * modules/fchownat (Depends-on): Likewise.
37604         * modules/linkat (Depends-on): Likewise.
37605         * modules/renameat (Depends-on): Likewise.
37606         * modules/openat (Depends-on): Add dirent.
37608 2011-11-04  Jim Meyering  <meyering@redhat.com>
37610         at-func*.c: fix comments
37611         * lib/at-func2.c: Correct/improve first-line comment.
37612         * lib/at-func.c: Correct grammar in first-line comment.
37614 2011-11-04  Bruno Haible  <bruno@clisp.org>
37616         New module 'mkdirat', split off from module 'openat'.
37617         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
37618         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
37619         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
37620         * modules/mkdirat: New file, extracted from modules/openat.
37621         * modules/openat (Files): Remove lib/mkdirat.c.
37622         (Depends-on): Remove mkdir.
37623         (configure.ac): Remove AC_LIBOBJ of mkdirat.
37624         (Include): Remove <sys/stat.h>.
37625         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
37626         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
37627         tests/test-mkdir.h.
37628         (Depends-on): Remove ignore-value.
37629         (Makefile.am): Remove rules for test-mkdirat.
37630         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
37631         of module 'openat'.
37632         * NEWS: Mention the change.
37634 2011-11-04  Bruno Haible  <bruno@clisp.org>
37636         closedir: Avoid warning on mingw.
37637         * lib/closedir.c: Include <unistd.h>.
37639 2011-11-04  Bruno Haible  <bruno@clisp.org>
37641         New module 'fstatat', split off from module 'openat'.
37642         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
37643         defined.
37644         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
37645         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
37646         gl_FUNC_FSTATAT.
37647         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
37648         * modules/fstatat: New file, extracted from modules/openat.
37649         * modules/openat (Files): Remove lib/fstatat.c.
37650         (Depends-on): Remove lstat.
37651         (configure.ac): Remove AC_LIBOBJ of fstatat.
37652         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
37653         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
37654         tests/test-lstat.h, tests/test-stat.h.
37655         (Depends-on): Remove getcwd-lgpl.
37656         (Makefile.am): Remove rules for test-fstatat.
37657         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
37658         of module 'openat'.
37659         * NEWS: Mention the change.
37660         * modules/getcwd (Depends-on): Add fstatat.
37661         * modules/linkat (Depends-on): Likewise.
37662         * modules/mkfifoat-tests (Depends-on): Likewise.
37663         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
37665 2011-11-03  Bruno Haible  <bruno@clisp.org>
37667         New module 'unlinkat', split off from module 'openat'.
37668         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
37669         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
37670         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
37671         * modules/unlinkat: New file, extracted from modules/openat. Correct
37672         the dependency conditions.
37673         * modules/openat (Files): Remove lib/unlinkat.c.
37674         (Depends-on): Remove rmdir, unlink.
37675         (configure.ac): Remove AC_LIBOBJ of unlinkat.
37676         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
37677         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
37678         tests/test-rmdir.h, tests/test-unlink.h.
37679         (Depends-on): Remove unlinkdir.
37680         (Makefile.am): Remove rules for test-unlinkat.
37681         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
37682         of module 'openat'.
37683         * NEWS: Mention the change.
37684         * modules/linkat-tests (Depends-on): Add unlinkat.
37685         * modules/mkfifoat-tests (Depends-on): Likewise.
37686         * modules/readlinkat-tests (Depends-on): Likewise.
37688 2011-11-02  Bruno Haible  <bruno@clisp.org>
37690         New module 'fchmodat', split off from module 'openat'.
37691         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
37692         defined.
37693         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
37694         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
37695         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
37696         * modules/fchmodat: New file, extracted from modules/openat.
37697         * modules/openat (Files): Remove lib/fchmodat.c.
37698         (configure.ac): Remove AC_LIBOBJ of fchmodat.
37699         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
37700         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
37701         (Makefile.am): Remove rules for test-fchmodat.
37702         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
37703         of module 'openat'.
37704         * NEWS: Mention the change.
37706 2011-11-02  Jim Meyering  <meyering@redhat.com>
37708         putenv: indent #definition of "environ" to placate cppi
37709         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
37711         gitlog-to-changelog: provide a ChangeLog-repair mechanism
37712         Git logs are often treated as immutable, because editing them
37713         changes the SHA1 checksums of all descendants.  Thus, errors in
37714         git logs tend to stay there forever.  However, when we generate
37715         a ChangeLog file -- typically for distribution -- from that git log,
37716         we can actually make corrections in the generated file.  The key
37717         lies in recording in machine-readable/applicable form the desired
37718         corrections.  See --help for description and an example.
37719         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
37720         (usage): Describe it; alphabetize option descriptions.
37721         (main): Honor the new option, carefully.
37723 2011-11-01  Jim Meyering  <meyering@redhat.com>
37725         gitlog-to-changelog: avoid an infloop
37726         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
37727         that ends up being empty.
37729 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
37731         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
37732         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
37733         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
37734         contains (possibly-quoted) backslashes.  This should avoid
37735         all-too-common shell bugs if COMPLICATED contains backslashes in
37736         the "wrong" places.  Reported by David Evans in
37737         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00013.html>.
37738         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
37739         because we want ASCII ranges.  Is there some reason we don't use
37740         the C locale everywhere in this script?
37741         (func_module, top level): Avoid unwanted pathname expansion when
37742         $repo_url_prefix or $repo_url_suffix_repl contain shell
37743         metacharacters like '?' and '*'.
37745 2011-11-01  Bruno Haible  <bruno@clisp.org>
37747         fchownat: Improve description.
37748         * modules/fchownat (Description): Add link to function.
37750 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
37752         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
37753         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
37754         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00006.html>.
37755         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
37757 2011-11-01  Bruno Haible  <bruno@clisp.org>
37759         alignof: Avoid collision with stdalign module.
37760         * lib/alignof.h (alignof): Remove macro.
37761         * NEWS: Mention the change.
37762         Reported by Paul Eggert.
37764 2011-11-01  Bruno Haible  <bruno@clisp.org>
37766         New module 'fchownat', split off from module 'openat'.
37767         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
37768         defined.
37769         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
37770         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
37771         invoke gl_FUNC_FCHOWNAT.
37772         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
37773         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
37774         * modules/fchownat: New file, extracted from modules/openat.
37775         * modules/openat (Files): Remove lib/fchownat.c.
37776         (Depends-on): Remove lchown.
37777         (configure.ac): Remove AC_LIBOBJ of fchownat.
37778         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
37779         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
37780         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
37781         (Depends-on): Remove mgetgroups, usleep, stat-time.
37782         (configure.ac): Remove test for getegid.
37783         (Makefile.am): Remove rules for test-fchownat.
37784         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
37785         of module 'openat'.
37786         * NEWS: Mention the change.
37788 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
37790         stdalign: port better to MSVC and to Sun C 5.11
37791         This fixes some of the problems reported by Bruno Haible in
37792         <http://lists.gnu.org/r/bug-gnulib/2011-10/msg00300.html>.
37793         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
37794         shortcomings of MSVC and of Sun C 5.11.
37795         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
37796         around __declspec arg.
37797         * modules/stdalign-tests (Files): Add tests/macros.h.
37798         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
37799         Include macros.h, for ASSERT.
37800         (DECLARE_ALIGNED): Remove.
37801         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
37802         to catch bug), and to 1 if not (simplifies the rest of the code).
37803         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
37804         (CHECK_AUTO): Remove.
37805         (CHECK_ALIGNED): Check only the alignment of the static vars,
37806         since auto var alignment isn't supported by Sun C 5.11.
37807         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
37808         ASSERT failures are easier to diagnose.
37810 2011-10-31  Bruno Haible  <bruno@clisp.org>
37812         doc about some IRIX 5.3 problems.
37813         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
37814         on IRIX 5.3.
37815         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
37816         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
37817         5.3.
37818         * doc/posix-functions/grantpt.texi: Likewise.
37819         * doc/posix-functions/unlockpt.texi: Likewise.
37820         * doc/posix-functions/lgamma.texi: Likewise.
37821         * doc/posix-functions/nextafter.texi: Likewise.
37822         * doc/posix-functions/remainder.texi: Likewise.
37823         * doc/posix-functions/select.texi: Mention misplaced declaration on
37824         IRIX 5.3.
37825         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37827 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
37829         gitlog-to-changelog: fix git-log invocation.
37830         git-log mishandles date strings before 1970-01-01 UTC, and there is
37831         no use to specify --since=1970-01-01 by default anyway.
37832         * build-aux/gitlog-to-changelog: By default, when no --since option
37833         was given, do not specify explicit --since option to git-log.
37835 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
37837         gitlog-to-changelog: new option --append-dot.
37838         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
37839         first non-blank line of each commit message terminated with a dot.
37841 2011-10-30  Bruno Haible  <bruno@clisp.org>
37843         ffsl, ffsll: Avoid compilation error due to 'restrict'.
37844         * lib/ffsl.h: Include <config.h>.
37845         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
37847 2011-10-30  Jim Meyering  <meyering@redhat.com>
37849         GNUmakefile: reenable "make syntax-check" for most projects
37850         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
37851         build-aux variable", "syntax-check" would do nothing but succeed with
37852         the "No version control files detected..." diagnostic (unless you
37853         happened to override _build-aux via cfg.mk).
37854         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
37855         to precede inclusion of maint.mk.  Otherwise, these variables would
37856         be used undefined in any project that does not override the default.
37858 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
37860         gitlog-to-changelog: treat a message with only blank lines as empty.
37861         * build-aux/gitlog-to-changelog: Move the code that removes leading and
37862         trailing blank lines before the code that issues a warning about an
37863         empty commit message.
37865 2011-10-30  Jim Meyering  <meyering@redhat.com>
37867         test-parse-datetime.c: avoid new DST-related false positive test failure
37868         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
37869         based on the time/date we'll convert, not the current time.
37870         Otherwise, the moment we cross a DST boundary like today's in
37871         Europe, (CEST to CET), that offset ends up being one hour off.
37873 2011-10-27  Bruno Haible  <bruno@clisp.org>
37875         fstat: Tweak documentation.
37876         * modules/fstat (Description): More precise description.
37878 2011-10-27  Bruno Haible  <bruno@clisp.org>
37880         Update documentation regarding 'largefile' module.
37881         * doc/posix-functions/fstat.texi: Tweak wording.
37882         * doc/posix-functions/opendir.texi: Mention that the module fixes the
37883         problems with huge directories and/or small ino_t types.
37884         * doc/posix-functions/readdir.texi: Likewise.
37885         * doc/posix-functions/rewinddir.texi: Likewise.
37887 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
37889         maint.mk: don't maintain a second build-aux variable.
37890         * maint.mk (build_aux): Removed.  The maintainer-makefile module
37891         depends on GNUmakefile, which already maintains a cfg.mk
37892         overridable $(_build-aux) for projects with a non-standard
37893         build-aux directory location, although without the $(srcdir)
37894         prefix.  Use that variable consistently instead of introducing a
37895         second one.  Adjust all call sites.
37897 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
37899         Add stdalign module and use it in other modules.
37900         This is based on a previous proposal by Bruno Haible
37901         <https://lists.gnu.org/r/bug-gnulib/2011-07/msg00226.html>.
37903         stdalign: new module
37904         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
37905         * modules/stdalign: New files.
37906         * MODULES.html.sh (c1x_core_properties): Add stdalign.
37907         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
37909         stdalign-tests: new module
37910         * modules/stdalign-tests, tests/test-stdalign.c: New files.
37912         argp: use stdalign
37913         * lib/argp-parse.c: Include <stdalign.h>.
37914         (alignof): Remove.
37915         * modules/argp (Depends-on): Add stdalign.
37917         crypto libraries: use stdalign
37918         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
37919         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
37920         Do not include <stdlib.h> twice, in md4.c.
37921         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
37922         because we are accessing a pointer's bit-pattern, not a size.
37923         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
37924         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
37925         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
37926         * modules/crypto/sha512: Likewise.
37928         sys_socket: use stdalign, not alignof
37929         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
37930         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
37932 2011-10-27  Bruno Haible  <bruno@clisp.org>
37934         raise test: Avoid a test failure on Linux/MIPS.
37935         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
37936         because 99 is a valid signal on Linux/MIPS.
37938 2011-10-27  Bruno Haible  <bruno@clisp.org>
37940         nonblocking tests: Fix test failure on Linux/MIPS.
37941         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
37942         Set to 270000.
37944 2011-10-27  Bruno Haible  <bruno@clisp.org>
37946         utimensat: Work around problem on Linux/hppa.
37947         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
37948         values.
37949         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
37951 2011-10-25  Jim Meyering  <meyering@redhat.com>
37953         maint.mk: fix a bug in sc_prohibit_stddef_without_use
37954         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
37955         after symbols like NULL, size_t, etc.
37956         Reported by Alfred M. Szmidt.
37958         maint.mk: exempt ENODATA from a syntax-check rule
37959         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
37960         from the sc_prohibit_always-defined_macros syntax-check rule.
37961         Add a comment.  See this for more details:
37962         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
37964 2011-10-23  Jim Meyering  <meyering@redhat.com>
37966         fts: close parent dir FD before returning from post-traversal fts_read
37967         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
37968         unlink A, even though an FD open on A remained.  This is suboptimal
37969         (holding a file descriptor open longer than needed), but otherwise not
37970         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
37971         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
37972         that represents a real problem: it causes the removal of A to fail
37973         with e.g., "rm: cannot remove `A': Device or resource busy"
37975         fts visits each directory twice and keeps a cache (fts_fd_ring) of
37976         directory file descriptors.  After completing the final, FTS_DP,
37977         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
37978         cache, but then proceeded to add a new FD to it via the subsequent
37979         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
37980         final file descriptor would be closed only via fts_close's call to
37981         fd_ring_clear.  Now, it is usually closed earlier, via the final
37982         FTS_DP-returning fts_read call.
37983         * lib/fts.c (restore_initial_cwd): New function, converted from
37984         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
37985         Update callers.
37986         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
37987         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
37989 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
37990             Bruno Haible  <bruno@clisp.org>
37991             Jim Meyering  <jim@meyering.net>
37993         readme-release: improve safety of release prep instructions.
37994         * README-release: Don't git pull all branches when only master
37995         is needed for the release process.
37996         Run make maintainer-clean before changing trees and merging.
37997         Don't try to run ./configure right after git pull in case files
37998         that influence the bootstrap process have changed, move the
37999         ./configure step to after running ./bootstrap.
38000         Don't bootstrap "one last time"... it's the first time!
38002 2011-10-22  Bruno Haible  <bruno@clisp.org>
38004         errno, strerror-override: Support for MSVC 10.
38005         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
38006         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
38007         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
38008         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
38009         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
38010         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
38011         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
38012         Assign values compatible with MSVC 10.
38013         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
38014         New macros.
38015         (GNULIB_defined_EWINSOCK): New macro.
38016         * lib/strerror-override.c (strerror_override): Update accordingly.
38017         * lib/strerror-override.h: Likewise.
38018         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
38019         longer equal to the corresponding errno value.
38020         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
38022 2011-10-22  Bruno Haible  <bruno@clisp.org>
38024         perror: Recognize when test program crashes.
38025         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
38026         strerror, set gl_cv_func_perror_works to no.
38027         Reported by Daniel Richard G. <skunk@iskunk.org>.
38029         perror: Fix indentation.
38030         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
38032 2011-10-22  Bruno Haible  <bruno@clisp.org>
38034         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
38035         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
38036         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
38037         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
38038         functions, not as a macro.
38039         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
38040         macros.
38041         (isfinite, isinf, isnan, signbit): Check overloaded functions and
38042         absence of macro.
38043         Suggested by Eric Blake.
38044         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
38046 2011-10-21  Bruno Haible  <bruno@clisp.org>
38048         relocatable-prog-wrapper: Don't leave object files behind.
38049         * build-aux/install-reloc: Re-synchronize list of .o files to be
38050         removed with list of compilation units.
38052 2011-10-20  Bruno Haible  <bruno@clisp.org>
38054         openpty, posix_openpt: Remove code duplication.
38055         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
38056         * lib/openpty.c: Include <stdlib.h>.
38057         (openpty): Use posix_openpt on all platforms except IRIX.
38058         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
38060 2011-10-20  Bruno Haible  <bruno@clisp.org>
38062         unlockpt: Detect invalid argument.
38063         * lib/unlockpt.c: Include <fcntl.h>.
38064         (unlockpt): Check whether fd is valid, using fcntl().
38065         * modules/unlockpt (Depends-on): Add fcntl-h.
38067 2011-10-20  Bruno Haible  <bruno@clisp.org>
38069         openpty: Avoid compilation error on AIX 6.1.
38070         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
38072 2011-10-20  Bruno Haible  <bruno@clisp.org>
38074         posix_openpt: Support for OpenBSD.
38075         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
38076         (posix_openpt) [OpenBSD]: New code.
38077         * lib/grantpt.c: Include <fcntl.h>.
38078         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
38079         * modules/grantpt (Depends-on): Add fcntl-h.
38081 2011-10-20  Bruno Haible  <bruno@clisp.org>
38083         posix_openpt test: Coding style.
38084         * tests/test-posix_openpt.c: Use GNU coding style.
38086 2011-10-20  Bruno Haible  <bruno@clisp.org>
38088         grantpt: Support --avoid=pt_chown.
38089         * modules/grantpt (Files): Add lib/pty-private.h.
38091 2011-10-20  Bruno Haible  <bruno@clisp.org>
38093         posix_openpt: Fix autoconf macro.
38094         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
38095         unneeded check for _getpty.
38097 2011-10-20  Bruno Haible  <bruno@clisp.org>
38099         openpty: Update comments.
38100         * lib/openpty.c: Add comments about Minix.
38102 2011-10-19  Eric Blake  <eblake@redhat.com>
38104         openpty: relax license
38105         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
38107         pt_chown: use configmake to simplify build
38108         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
38110         ptsname and others: relax license
38111         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
38112         * modules/unlockpt (License): Likewise.
38113         * modules/pt_chown (License): Likewise.
38114         * modules/ptsname (License): Likewise.
38115         * modules/ttyname_r (License): Likewise.
38117 2011-10-19  Jim Meyering  <meyering@redhat.com>
38119         posix_openpt: remove spurious #endif
38120         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
38122 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
38124         maint.mk: Respect $(build_aux) in web-manual rule.
38125         * top/maint.mk (web-manual): Find gen-announce script in user's
38126         $(build_aux) directory instead of hard-coding 'build-aux'.
38128 2011-10-19  Bruno Haible  <bruno@clisp.org>
38130         posix_openpt: Fix compilation error.
38131         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
38132         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
38133         Mention the openpty module as an alternative.
38135 2011-10-19  Bruno Haible  <bruno@clisp.org>
38137         Support for old NeXTstep 3.3 frexp().
38138         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
38139         execution time of the test to 5 seconds.
38140         Reported by Daniel Richard G. <skunk@iskunk.org>.
38142 2011-10-19  Bruno Haible  <bruno@clisp.org>
38144         Support for old NeXTstep 3.3 sed.
38145         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
38146         part, use /.../, not \|...|. Escape periods in the header file name.
38147         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
38148         Reported by Daniel Richard G. <skunk@iskunk.org>.
38150 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
38152         Support for old NeXTstep 3.3 gcc.
38153         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
38154         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
38155         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
38156         * lib/spawn.in.h (_Restrict_arr_): Likewise.
38157         * lib/regex.h (_Restrict_arr_): Likewise.
38158         * lib/regex_internal.h (re_token_t): Likewise.
38159         * lib/regexec.c (check_node_accept_bytes): Likewise.
38160         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
38162 2011-10-18  Eric Blake  <eblake@redhat.com>
38164         posix_openpt: new module
38165         * modules/posix_openpt: New module.
38166         * m4/posix_openpt.m4: New file.
38167         * lib/posix_openpt.c: Likewise.
38168         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
38169         (gl_STDLIB_H_DEFAULTS): Set defaults.
38170         * modules/stdlib (Makefile.am): Substitute macros.
38171         * lib/stdlib.in.h (posix_openpt): Declare.
38172         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
38173         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
38174         * modules/posix_openpt-tests: New test module.
38175         * tests/test-posix_openpt.c: New test.
38177 2011-10-15  Bruno Haible  <bruno@clisp.org>
38179         xstrtoll: Fix compilation failure.
38180         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
38181         from lib/strtol.c.
38182         * doc/posix-headers/limits.texi: Mention missing numerical limits on
38183         some platforms.
38184         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38186 2011-10-15  Bruno Haible  <bruno@clisp.org>
38188         vasnprintf: Optimize bit search operation.
38189         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
38190         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
38191         gl_DOUBLE_EXPONENT_LOCATION.
38192         * modules/vasnprintf (Files): Add m4/exponentd.m4.
38193         * modules/unistdio/u8-vasnprintf (Files): Likewise.
38194         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
38195         * modules/unistdio/u16-vasnprintf (Files): Likewise.
38196         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
38197         * modules/unistdio/u32-vasnprintf (Files): Likewise.
38198         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
38199         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
38200         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
38202 2011-10-15  Bruno Haible  <bruno@clisp.org>
38204         vasnprintf: Fix comments.
38205         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
38207 2011-10-14  Bruno Haible  <bruno@clisp.org>
38209         Tests for module 'integer_length_ll'.
38210         * modules/integer_length_ll-tests: New file.
38211         * tests/test-integer_length_ll.c: New file.
38213         New module 'integer_length_ll'.
38214         * lib/integer_length_ll.c: New file.
38215         * modules/integer_length_ll: New file.
38217 2011-10-14  Bruno Haible  <bruno@clisp.org>
38219         Tests for module 'integer_length_l'.
38220         * modules/integer_length_l-tests: New file.
38221         * tests/test-integer_length_l.c: New file.
38223         New module 'integer_length_l'.
38224         * lib/integer_length_l.c: New file.
38225         * modules/integer_length_l: New file.
38227 2011-10-14  Bruno Haible  <bruno@clisp.org>
38229         Tests for module 'integer_length'.
38230         * modules/integer_length-tests: New file.
38231         * tests/test-integer_length.c: New file.
38233         New module 'integer_length'.
38234         * lib/integer_length.h: New file.
38235         * lib/integer_length.c: New file.
38236         * modules/integer_length: New file.
38238 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
38240         popen: Fix dependency conditions.
38241         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
38243 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
38245         perror: Fix autoconf test.
38246         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
38247         <stdlib.h> and <string.h>.
38249 2011-10-14  Bruno Haible  <bruno@clisp.org>
38251         ffsl: Optimize on 64-bit platforms.
38252         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
38253         unrolling.
38255 2011-10-13  Bruno Haible  <bruno@clisp.org>
38257         ffsl: Optimize on 32-bit platforms.
38258         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
38259         use ffs() without a loop.
38261         ffsl, ffsll: Optimize for GCC.
38262         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
38263         * lib/ffsl.c (GCC_BUILTIN): New macro.
38264         * lib/ffsll.c (GCC_BUILTIN): Likewise.
38266 2011-10-13  Bruno Haible  <bruno@clisp.org>
38268         ffs, bcopy, memset: Support symbol renaming via config.h.
38269         * lib/ffs.c: Include <config.h>.
38270         * lib/bcopy.c: Likewise.
38271         * lib/memset.c: Likewise.
38273 2011-10-10  Bruno Haible  <bruno@clisp.org>
38275         atanl: Simplify for platforms where 'long double' == 'double'.
38276         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
38277         alternative implementation.
38278         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
38279         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
38280         * modules/atanl (Depends-on): Add atan. Update conditions.
38282 2011-10-10  Bruno Haible  <bruno@clisp.org>
38284         acosl: Simplify for platforms where 'long double' == 'double'.
38285         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
38286         alternative implementation.
38287         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
38288         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
38289         * modules/acosl (Depends-on): Add acos. Update conditions.
38291 2011-10-10  Bruno Haible  <bruno@clisp.org>
38293         asinl: Simplify for platforms where 'long double' == 'double'.
38294         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
38295         alternative implementation.
38296         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
38297         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
38298         * modules/asinl (Depends-on): Add asin. Update conditions.
38300 2011-10-10  Bruno Haible  <bruno@clisp.org>
38302         tanl: Simplify for platforms where 'long double' == 'double'.
38303         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
38304         implementation.
38305         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
38306         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
38307         * modules/tanl (Depends-on): Add tan. Update conditions.
38308         (configure.ac): Don't compile trigl.c if
38309         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
38311 2011-10-10  Bruno Haible  <bruno@clisp.org>
38313         cosl: Simplify for platforms where 'long double' == 'double'.
38314         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
38315         implementation.
38316         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
38317         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
38318         * modules/cosl (Depends-on): Add cos. Update conditions.
38319         (configure.ac): Don't compile sincosl.c and trigl.c if
38320         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
38322 2011-10-10  Bruno Haible  <bruno@clisp.org>
38324         sinl: Simplify for platforms where 'long double' == 'double'.
38325         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
38326         implementation.
38327         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
38328         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
38329         * modules/sinl (Depends-on): Add sin. Update conditions.
38330         (configure.ac): Don't compile sincosl.c and trigl.c if
38331         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
38333 2011-10-10  Bruno Haible  <bruno@clisp.org>
38335         logl: Simplify for platforms where 'long double' == 'double'.
38336         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
38337         implementation.
38338         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
38339         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
38340         * modules/logl (Depends-on): Add log. Update conditions.
38342 2011-10-10  Bruno Haible  <bruno@clisp.org>
38344         expl: Simplify for platforms where 'long double' == 'double'.
38345         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
38346         implementation.
38347         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
38348         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
38349         * modules/expl (Depends-on): Add exp. Update conditions.
38351 2011-10-10  Bruno Haible  <bruno@clisp.org>
38353         sqrtl: Simplify for platforms where 'long double' == 'double'.
38354         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
38355         alternative implementation.
38356         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
38357         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
38358         * modules/sqrtl (Depends-on): Update conditions.
38360 2011-10-10  Bruno Haible  <bruno@clisp.org>
38362         ldexpl: Simplify for platforms where 'long double' == 'double'.
38363         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
38364         alternative implementation.
38365         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
38366         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
38367         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
38369 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
38371         ffsll: set correct witness
38372         * modules/ffsll (configure.ac): Fix typo.
38374 2011-10-10  Bruno Haible  <bruno@clisp.org>
38376         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
38377         * lib/printf-frexpl.c: Include <config.h>.
38378         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
38379         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
38380         second time.
38381         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
38382         gl_LONG_DOUBLE_VS_DOUBLE.
38383         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
38384         conditions.
38386 2011-10-10  Bruno Haible  <bruno@clisp.org>
38388         frexpl: Simplify for platforms where 'long double' == 'double'.
38389         * lib/frexpl.c: Include <config.h>.
38390         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
38391         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
38392         time.
38393         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
38394         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
38395         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
38396         * modules/frexpl (Depends-on): Add frexp. Update conditions.
38397         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
38398         conditions.
38400 2011-10-10  Jim Meyering  <meyering@redhat.com>
38402         test-renameat: don't leave behind a temporary file
38403         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
38404           ERROR: files left in build directory after distclean:
38405           ./gltests/test-renameat.too
38406           make[1]: *** [distcleancheck] Error 1
38407         Reported by Tom G. Christensen.
38409 2011-10-09  Bruno Haible  <bruno@clisp.org>
38411         rint: Determine RINT_LIBM correctly on AIX 7.
38412         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
38413         directly, not only through a function pointer. Also accept an optional
38414         4th argument with extra code.
38415         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
38416         rintf() call by gcc when optimizing.
38418         mathfunc.m4: Refactor.
38419         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
38420         m4 variable.
38422 2011-10-09  Bruno Haible  <bruno@clisp.org>
38424         rintl: Simplify for platforms where 'long double' == 'double'.
38425         * lib/rintl.c: Include <config.h>.
38426         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
38427         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
38428         time.
38429         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
38430         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
38431         * modules/rintl (Depends-on): Add rint. Update conditions.
38433 2011-10-09  Bruno Haible  <bruno@clisp.org>
38435         roundl: Simplify for platforms where 'long double' == 'double'.
38436         * lib/roundl.c: Include <config.h>.
38437         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
38438         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
38439         time.
38440         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
38441         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
38442         * modules/roundl (Depends-on): Add round. Update conditions.
38444 2011-10-09  Bruno Haible  <bruno@clisp.org>
38446         truncl: Simplify for platforms where 'long double' == 'double'.
38447         * lib/truncl.c: Include <config.h>.
38448         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
38449         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
38450         time.
38451         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
38452         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
38453         * modules/truncl (Depends-on): Add trunc. Update conditions.
38455 2011-10-09  Bruno Haible  <bruno@clisp.org>
38457         ceill: Simplify for platforms where 'long double' == 'double'.
38458         * lib/ceill.c: Include <config.h>.
38459         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
38460         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
38461         time.
38462         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
38463         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
38464         * modules/ceill (Depends-on): Add ceil. Update conditions.
38466 2011-10-09  Bruno Haible  <bruno@clisp.org>
38468         floorl: Simplify for platforms where 'long double' == 'double'.
38469         * lib/floorl.c: Include <config.h>.
38470         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
38471         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
38472         time.
38473         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
38474         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
38475         * modules/floorl (Depends-on): Add floor. Update conditions.
38477 2011-10-09  Bruno Haible  <bruno@clisp.org>
38479         rint: Fix ordering constraints.
38480         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
38481         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
38482         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
38484 2011-10-09  Bruno Haible  <bruno@clisp.org>
38486         copysignl: Simplify for platforms where 'long double' == 'double'.
38487         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
38488         alternative.
38489         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
38490         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
38491         * modules/copysignl (Depends-on): Add copysign. Update conditions.
38493 2011-10-09  Bruno Haible  <bruno@clisp.org>
38495         Tests for module 'rintl'.
38496         * modules/rintl-tests: New file.
38497         * tests/test-rintl.c: New file.
38499         New module 'rintl'.
38500         * lib/math.in.h (rintl): New declaration.
38501         * lib/rintl.c: New file.
38502         * m4/rintl.m4: New file.
38503         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
38504         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
38505         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
38506         * modules/rintl: New file.
38507         * tests/test-math-c++.cc: Check the declaration of rintl.
38508         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
38509         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
38510         * doc/posix-functions/rintl.texi: Mention the new module.
38512 2011-10-09  Bruno Haible  <bruno@clisp.org>
38514         Tests for module 'rintf'.
38515         * modules/rintf-tests: New file.
38516         * tests/test-rintf.c: New file.
38518         New module 'rintf'.
38519         * lib/math.in.h (rintf): New declaration.
38520         * lib/rintf.c: New file.
38521         * m4/rintf.m4: New file.
38522         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
38523         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
38524         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
38525         * modules/rintf: New file.
38526         * tests/test-math-c++.cc: Check the declaration of rintf.
38527         * doc/posix-functions/rintf.texi: Mention the new module.
38529 2011-10-09  Bruno Haible  <bruno@clisp.org>
38531         rint: Support for MSVC.
38532         * lib/math.in.h (rint): New declaration.
38533         * lib/rint.c: New file.
38534         * m4/rint.m4: New file.
38535         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
38536         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
38537         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
38538         * modules/rint (Description): Fix.
38539         (Files): Add lib/rint.c, m4/rint.m4.
38540         (Depends-on): Add math.
38541         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
38542         gl_MATH_MODULE_INDICATOR.
38543         * tests/test-math-c++.cc: Check the declaration of rint.
38544         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
38545         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
38546         * doc/posix-functions/rint.texi: Mention the replacement provided by
38547         the module.
38549         rint tests: More tests.
38550         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
38551         minus-zero.h, infinity.h, nan.h.
38552         (main): Skip the test if the current rounding mode is not standard. Add
38553         tests for negative numbers, minus zero, infinity, NaN.
38554         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
38555         tests/nan.h.
38556         (Depends-on): Add isnand-nolibm.
38558 2011-10-09  Bruno Haible  <bruno@clisp.org>
38560         Tests for module 'copysignl'.
38561         * modules/copysignl-tests: New file.
38562         * tests/test-copysignl.c: New file.
38564         New module 'copysignl'.
38565         * lib/math.in.h (copysignl): New declaration.
38566         * lib/copysignl.c: New file.
38567         * m4/copysignl.m4: New file.
38568         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
38569         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
38570         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
38571         HAVE_COPYSIGNL.
38572         * modules/copysignl: New file.
38573         * tests/test-math-c++.cc: Check the declaration of copysignl.
38574         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
38575         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
38576         * doc/posix-functions/copysignl.texi: Mention the new module.
38578 2011-10-09  Bruno Haible  <bruno@clisp.org>
38580         Tests for module 'copysignf'.
38581         * modules/copysignf-tests: New file.
38582         * tests/test-copysignf.c: New file.
38584         New module 'copysignf'.
38585         * lib/math.in.h (copysignf): New declaration.
38586         * lib/copysignf.c: New file.
38587         * m4/copysignf.m4: New file.
38588         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
38589         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
38590         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
38591         HAVE_COPYSIGNF.
38592         * modules/copysignf: New file.
38593         * tests/test-math-c++.cc: Check the declaration of copysignf.
38594         * doc/posix-functions/copysignf.texi: Mention the new module.
38596 2011-10-09  Bruno Haible  <bruno@clisp.org>
38598         Ensure that HAVE_* variables are set to 1 before they are set to 0.
38599         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
38600         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
38601         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
38602         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
38603         gl_SIGNAL_H_DEFAULTS.
38605 2011-10-09  Bruno Haible  <bruno@clisp.org>
38607         poll: Make macro safer.
38608         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
38609         ac_cv_header_poll_h is not set.
38611 2011-10-09  Bruno Haible  <bruno@clisp.org>
38613         copysign: Provide replacement.
38614         * lib/math.in.h (copysign): New declaration.
38615         * lib/copysign.c: New file.
38616         * m4/copysign.m4: New file.
38617         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
38618         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
38619         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
38620         HAVE_COPYSIGN.
38621         * modules/copysign (Description): Clarify.
38622         (Files): Add lib/copysign.c, m4/copysign.m4.
38623         (Depends-on): Add math, signbit.
38624         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
38625         gl_MATH_MODULE_INDICATOR.
38626         * tests/test-math-c++.cc: Check the declaration of copysign.
38627         * doc/posix-functions/copysign.texi: Mention the effects of the module
38628         on Minix and MSVC.
38630 2011-10-09  Bruno Haible  <bruno@clisp.org>
38632         isinf: Ensure macro on AIX 5.1.
38633         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
38634         macro.
38635         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
38637 2011-10-09  Bruno Haible  <bruno@clisp.org>
38639         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
38640         * modules/snprintf-posix-tests (configure.ac): Require
38641         gl_LONG_DOUBLE_VS_DOUBLE.
38642         * modules/sprintf-posix-tests (configure.ac): Likewise.
38643         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
38644         * modules/vasprintf-posix-tests (configure.ac): Likewise.
38645         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
38646         * modules/vsprintf-posix-tests (configure.ac): Likewise.
38647         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
38648         tests on platforms where 'long double' is the same as 'double'.
38649         * tests/test-sprintf-posix.h (test_function): Likewise.
38650         * tests/test-vasnprintf-posix.c (test_function): Likewise.
38651         * tests/test-vasprintf-posix.c (test_function): Likewise.
38653         *printf: Fix for platforms where 'long double' == 'double'.
38654         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
38655         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
38656         * modules/dprintf-posix (Files): Add m4/math_h.m4.
38657         * modules/fprintf-posix (Files): Likewise.
38658         * modules/obstack-printf-posix (Files): Likewise.
38659         * modules/snprintf-posix (Files): Likewise.
38660         * modules/sprintf-posix (Files): Likewise.
38661         * modules/vasnprintf (Files): Likewise.
38662         * modules/vasnprintf-posix (Files): Likewise.
38663         * modules/vasprintf-posix (Files): Likewise.
38664         * modules/vdprintf-posix (Files): Likewise.
38665         * modules/vfprintf-posix (Files): Likewise.
38666         * modules/vsnprintf-posix (Files): Likewise.
38667         * modules/vsprintf-posix (Files): Likewise.
38668         * modules/unistdio/u8-vasnprintf (Files): Likewise.
38669         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
38670         * modules/unistdio/u16-vasnprintf (Files): Likewise.
38671         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
38672         * modules/unistdio/u32-vasnprintf (Files): Likewise.
38673         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
38674         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
38676         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
38677         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
38678         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
38679         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
38680         'long double'.
38681         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
38683         isinf: Fix for platforms where 'long double' == 'double'.
38684         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
38685         Don't blindly assume 80-bit 'long double'.
38687         isfinite: Fix for platforms where 'long double' == 'double'.
38688         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
38689         Don't blindly assume 80-bit 'long double'.
38691         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
38692         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
38693         * modules/isfinite-tests (configure.ac): Require
38694         gl_LONG_DOUBLE_VS_DOUBLE.
38695         * modules/isinf-tests (configure.ac): Likewise.
38696         * modules/isnan-tests (configure.ac): Likewise.
38697         * modules/isnanl-tests (configure.ac): Likewise.
38698         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
38699         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
38700         tests on platforms where 'long double' is the same as 'double'.
38701         * tests/test-isinf.c (test_isinfl): Likewise.
38702         * tests/test-isnan.c (test_long_double): Likewise.
38703         * tests/test-isnanl.h (main): Likewise.
38705 2011-10-08  Bruno Haible  <bruno@clisp.org>
38707         Tests for module 'tanhf'.
38708         * modules/tanhf-tests: New file.
38709         * tests/test-tanhf.c: New file.
38711         New module 'tanhf'.
38712         * lib/math.in.h (tanhf): New declaration.
38713         * lib/tanhf.c: New file.
38714         * m4/tanhf.m4: New file.
38715         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
38716         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
38717         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
38718         * modules/tanhf: New file.
38719         * tests/test-math-c++.cc: Check the declaration of tanhf.
38720         * doc/posix-functions/tanhf.texi: Mention the new module.
38722         tanh: Use a .m4 file.
38723         * m4/tanh.m4: New file.
38724         * modules/tanh (Files): Add it.
38725         (configure.ac): Just invoke gl_FUNC_TANH.
38727 2011-10-08  Bruno Haible  <bruno@clisp.org>
38729         Tests for module 'coshf'.
38730         * modules/coshf-tests: New file.
38731         * tests/test-coshf.c: New file.
38733         New module 'coshf'.
38734         * lib/math.in.h (coshf): New declaration.
38735         * lib/coshf.c: New file.
38736         * m4/coshf.m4: New file.
38737         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
38738         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
38739         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
38740         * modules/coshf: New file.
38741         * tests/test-math-c++.cc: Check the declaration of coshf.
38742         * doc/posix-functions/coshf.texi: Mention the new module.
38744         cosh: Use a .m4 file.
38745         * m4/cosh.m4: New file.
38746         * modules/cosh (Files): Add it.
38747         (configure.ac): Just invoke gl_FUNC_COSH.
38749 2011-10-08  Bruno Haible  <bruno@clisp.org>
38751         Tests for module 'sinhf'.
38752         * modules/sinhf-tests: New file.
38753         * tests/test-sinhf.c: New file.
38755         New module 'sinhf'.
38756         * lib/math.in.h (sinhf): New declaration.
38757         * lib/sinhf.c: New file.
38758         * m4/sinhf.m4: New file.
38759         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
38760         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
38761         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
38762         * modules/sinhf: New file.
38763         * tests/test-math-c++.cc: Check the declaration of sinhf.
38764         * doc/posix-functions/sinhf.texi: Mention the new module.
38766         sinh: Use a .m4 file.
38767         * m4/sinh.m4: New file.
38768         * modules/sinh (Files): Add it.
38769         (configure.ac): Just invoke gl_FUNC_SINH.
38771 2011-10-08  Bruno Haible  <bruno@clisp.org>
38773         Tests for module 'atan2f'.
38774         * modules/atan2f-tests: New file.
38775         * tests/test-atan2f.c: New file.
38777         New module 'atan2f'.
38778         * lib/math.in.h (atan2f): New declaration.
38779         * lib/atan2f.c: New file.
38780         * m4/atan2f.m4: New file.
38781         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
38782         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
38783         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
38784         * modules/atan2f: New file.
38785         * tests/test-math-c++.cc: Check the declaration of atan2f.
38786         * doc/posix-functions/atan2f.texi: Mention the new module.
38788         atan2: Use a .m4 file.
38789         * m4/atan2.m4: New file.
38790         * modules/atan2 (Files): Add it.
38791         (configure.ac): Just invoke gl_FUNC_ATAN2.
38793 2011-10-08  Bruno Haible  <bruno@clisp.org>
38795         Tests for module 'atanf'.
38796         * modules/atanf-tests: New file.
38797         * tests/test-atanf.c: New file.
38799         New module 'atanf'.
38800         * lib/math.in.h (atanf): New declaration.
38801         * lib/atanf.c: New file.
38802         * m4/atanf.m4: New file.
38803         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
38804         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
38805         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
38806         * modules/atanf: New file.
38807         * tests/test-math-c++.cc: Check the declaration of atanf.
38808         * doc/posix-functions/atanf.texi: Mention the new module.
38810         atan: Use a .m4 file.
38811         * m4/atan.m4: New file.
38812         * modules/atan (Files): Add it.
38813         (configure.ac): Just invoke gl_FUNC_ATAN.
38815 2011-10-08  Bruno Haible  <bruno@clisp.org>
38817         Tests for module 'acosf'.
38818         * modules/acosf-tests: New file.
38819         * tests/test-acosf.c: New file.
38821         New module 'acosf'.
38822         * lib/math.in.h (acosf): New declaration.
38823         * lib/acosf.c: New file.
38824         * m4/acosf.m4: New file.
38825         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
38826         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
38827         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
38828         * modules/acosf: New file.
38829         * tests/test-math-c++.cc: Check the declaration of acosf.
38830         * doc/posix-functions/acosf.texi: Mention the new module.
38832         acos: Use a .m4 file.
38833         * m4/acos.m4: New file.
38834         * modules/acos (Files): Add it.
38835         (configure.ac): Just invoke gl_FUNC_ACOS.
38837 2011-10-08  Bruno Haible  <bruno@clisp.org>
38839         Tests for module 'asinf'.
38840         * modules/asinf-tests: New file.
38841         * tests/test-asinf.c: New file.
38843         New module 'asinf'.
38844         * lib/math.in.h (asinf): New declaration.
38845         * lib/asinf.c: New file.
38846         * m4/asinf.m4: New file.
38847         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
38848         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
38849         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
38850         * modules/asinf: New file.
38851         * tests/test-math-c++.cc: Check the declaration of asinf.
38852         * doc/posix-functions/asinf.texi: Mention the new module.
38854         asin: Use a .m4 file.
38855         * m4/asin.m4: New file.
38856         * modules/asin (Files): Add it.
38857         (configure.ac): Just invoke gl_FUNC_ASIN.
38859 2011-10-08  Bruno Haible  <bruno@clisp.org>
38861         Tests for module 'tanf'.
38862         * modules/tanf-tests: New file.
38863         * tests/test-tanf.c: New file.
38865         New module 'tanf'.
38866         * lib/math.in.h (tanf): New declaration.
38867         * lib/tanf.c: New file.
38868         * m4/tanf.m4: New file.
38869         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
38870         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
38871         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
38872         * modules/tanf: New file.
38873         * tests/test-math-c++.cc: Check the declaration of tanf.
38874         * doc/posix-functions/tanf.texi: Mention the new module.
38876         tan: Use a .m4 file.
38877         * m4/tan.m4: New file.
38878         * modules/tan (Files): Add it.
38879         (configure.ac): Just invoke gl_FUNC_TAN.
38881 2011-10-08  Bruno Haible  <bruno@clisp.org>
38883         Tests for module 'cosf'.
38884         * modules/cosf-tests: New file.
38885         * tests/test-cosf.c: New file.
38887         New module 'cosf'.
38888         * lib/math.in.h (cosf): New declaration.
38889         * lib/cosf.c: New file.
38890         * m4/cosf.m4: New file.
38891         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
38892         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
38893         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
38894         * modules/cosf: New file.
38895         * tests/test-math-c++.cc: Check the declaration of cosf.
38896         * doc/posix-functions/cosf.texi: Mention the new module.
38898         cos: Use a .m4 file.
38899         * m4/cos.m4: New file.
38900         * modules/cos (Files): Add it.
38901         (configure.ac): Just invoke gl_FUNC_COS.
38903 2011-10-08  Bruno Haible  <bruno@clisp.org>
38905         Tests for module 'sinf'.
38906         * modules/sinf-tests: New file.
38907         * tests/test-sinf.c: New file.
38909         New module 'sinf'.
38910         * lib/math.in.h (sinf): New declaration.
38911         * lib/sinf.c: New file.
38912         * m4/sinf.m4: New file.
38913         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
38914         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
38915         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
38916         * modules/sinf: New file.
38917         * tests/test-math-c++.cc: Check the declaration of sinf.
38918         * doc/posix-functions/sinf.texi: Mention the new module.
38920         sin: Use a .m4 file.
38921         * m4/sin.m4: New file.
38922         * modules/sin (Files): Add it.
38923         (configure.ac): Just invoke gl_FUNC_SIN.
38925 2011-10-08  Bruno Haible  <bruno@clisp.org>
38927         Tests for module 'powf'.
38928         * modules/powf-tests: New file.
38929         * tests/test-powf.c: New file.
38931         New module 'powf'.
38932         * lib/math.in.h (powf): New declaration.
38933         * lib/powf.c: New file.
38934         * m4/powf.m4: New file.
38935         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
38936         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
38937         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
38938         * modules/powf: New file.
38939         * tests/test-math-c++.cc: Check the declaration of powf.
38940         * doc/posix-functions/powf.texi: Mention the new module.
38942         pow: Use a .m4 file.
38943         * m4/pow.m4: New file.
38944         * modules/pow (Files): Add it.
38945         (configure.ac): Just invoke gl_FUNC_POW.
38947 2011-10-08  Bruno Haible  <bruno@clisp.org>
38949         Tests for module 'log10f'.
38950         * modules/log10f-tests: New file.
38951         * tests/test-log10f.c: New file.
38953         New module 'log10f'.
38954         * lib/math.in.h (log10f): New declaration.
38955         * lib/log10f.c: New file.
38956         * m4/log10f.m4: New file.
38957         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
38958         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
38959         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
38960         * modules/log10f: New file.
38961         * tests/test-math-c++.cc: Check the declaration of log10f.
38962         * doc/posix-functions/log10f.texi: Mention the new module.
38964         log10: Use a .m4 file.
38965         * m4/log10.m4: New file.
38966         * modules/log10 (Files): Add it.
38967         (configure.ac): Just invoke gl_FUNC_LOG10.
38969 2011-10-08  Bruno Haible  <bruno@clisp.org>
38971         Tests for module 'logf'.
38972         * modules/logf-tests: New file.
38973         * tests/test-logf.c: New file.
38975         New module 'logf'.
38976         * lib/math.in.h (logf): New declaration.
38977         * lib/logf.c: New file.
38978         * m4/logf.m4: New file.
38979         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
38980         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
38981         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
38982         * modules/logf: New file.
38983         * tests/test-math-c++.cc: Check the declaration of logf.
38984         * doc/posix-functions/logf.texi: Mention the new module.
38986         log: Use a .m4 file.
38987         * m4/log.m4: New file.
38988         * modules/log (Files): Add it.
38989         (configure.ac): Just invoke gl_FUNC_LOG.
38991 2011-10-08  Bruno Haible  <bruno@clisp.org>
38993         Tests for module 'expf'.
38994         * modules/expf-tests: New file.
38995         * tests/test-expf.c: New file.
38997         New module 'expf'.
38998         * lib/math.in.h (expf): New declaration.
38999         * lib/expf.c: New file.
39000         * m4/expf.m4: New file.
39001         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
39002         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
39003         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
39004         * modules/expf: New file.
39005         * tests/test-math-c++.cc: Check the declaration of expf.
39006         * doc/posix-functions/expf.texi: Mention the new module.
39008         exp: Use a .m4 file.
39009         * m4/exp.m4: New file.
39010         * modules/exp (Files): Add it.
39011         (configure.ac): Just invoke gl_FUNC_EXP.
39013 2011-10-08  Bruno Haible  <bruno@clisp.org>
39015         Tests for module 'sqrtf'.
39016         * modules/sqrtf-tests: New file.
39017         * tests/test-sqrtf.c: New file.
39019         New module 'sqrtf'.
39020         * lib/math.in.h (sqrtf): New declaration.
39021         * lib/sqrtf.c: New file.
39022         * m4/sqrtf.m4: New file.
39023         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
39024         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
39025         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
39026         * modules/sqrtf: New file.
39027         * tests/test-math-c++.cc: Check the declaration of sqrtf.
39028         * doc/posix-functions/sqrtf.texi: Mention the new module.
39030 2011-10-08  Bruno Haible  <bruno@clisp.org>
39032         Tests: Avoid link failures w.r.t. libintl.
39033         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
39034         $(LIBINTL).
39035         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
39036         $(LIBINTL).
39037         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
39038         against $(LIBINTL).
39039         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
39040         $(LIBINTL).
39041         * modules/openat-tests (Makefile.am): Link test-fchmodat against
39042         $(LIBINTL).
39043         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
39045 2011-10-08  Bruno Haible  <bruno@clisp.org>
39047         pow tests: Defeat compiler optimizations.
39048         * tests/test-pow.c (main): Assign arguments to x and y before use.
39050 2011-10-08  Bruno Haible  <bruno@clisp.org>
39052         gnulib-tool: Improve last commit.
39053         * gnulib-tool (func_modules_transitive_closure): Simplify code.
39054         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
39055         ignore dependencies that are not among the modules list.
39057 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
39059         gnulib-tool: don't follow dependencies to avoided modules
39060         This fixes a bug that is related to the previous one.
39061         * gnulib-tool (func_modules_transitive_closure)
39062         (func_emit_autoconf_snippets):
39063         Check whether a dependency is acceptable before using it.
39064         (--extract-dependencies): Report an error if --avoid is also used,
39065         since this combination of options is not yet supported.
39067         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
39068         Problem reported by Peter Dyballa in
39069         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
39070         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
39071         when echoing "$condition".
39073 2011-10-07  Bruno Haible  <bruno@clisp.org>
39075         Fix documentation about math functions on MacOS X.
39076         * doc/posix-functions/exp2.texi: Don't say the function is missing on
39077         MacOS X 10.5.
39078         * doc/posix-functions/fdim.texi: Likewise.
39079         * doc/posix-functions/feclearexcept.texi: Likewise.
39080         * doc/posix-functions/fegetenv.texi: Likewise.
39081         * doc/posix-functions/fegetround.texi: Likewise.
39082         * doc/posix-functions/feholdexcept.texi: Likewise.
39083         * doc/posix-functions/feraiseexcept.texi: Likewise.
39084         * doc/posix-functions/fesetenv.texi: Likewise.
39085         * doc/posix-functions/fesetround.texi: Likewise.
39086         * doc/posix-functions/fetestexcept.texi: Likewise.
39087         * doc/posix-functions/feupdateenv.texi: Likewise.
39088         * doc/posix-functions/fmax.texi: Likewise.
39089         * doc/posix-functions/fmin.texi: Likewise.
39090         * doc/posix-functions/log2.texi: Likewise.
39091         * doc/posix-functions/modff.texi: Likewise.
39092         * doc/posix-functions/nan.texi: Likewise.
39093         * doc/posix-functions/nanf.texi: Likewise.
39094         * doc/posix-functions/nextafterf.texi: Likewise.
39095         * doc/posix-functions/remquo.texi: Likewise.
39097 2011-10-07  Bruno Haible  <bruno@clisp.org>
39099         modff: Drop assumption about library that defines modff.
39100         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
39101         AC_CHECK_FUNCS.
39102         * modules/modff (Files): Add m4/mathfunc.m4.
39104 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
39106         raise tests: Avoid a GCC warning.
39107         * tests/test-raise.c (handler): Use _Noreturn.
39109 2011-10-07  Bruno Haible  <bruno@clisp.org>
39111         Tests for module 'ldexpf'.
39112         * modules/ldexpf-tests: New file.
39113         * tests/test-ldexpf.c: New file.
39115         New module 'ldexpf'.
39116         * lib/math.in.h (ldexpf): New declaration.
39117         * lib/ldexpf.c: New file.
39118         * m4/ldexpf.m4: New file.
39119         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
39120         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
39121         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
39122         * modules/ldexpf: New file.
39123         * tests/test-math-c++.cc: Check the declaration of ldexpf.
39124         * doc/posix-functions/ldexpf.texi: Mention the new module.
39126 2011-10-06  Bruno Haible  <bruno@clisp.org>
39128         frexpf: Work around problems on IRIX and mingw.
39129         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
39130         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
39131         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
39132         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
39133         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
39134         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
39135         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
39137 2011-10-06  Bruno Haible  <bruno@clisp.org>
39139         fabsf: Drop assumption about library that defines fabsf.
39140         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
39141         AC_CHECK_FUNCS.
39142         * modules/fabsf (Files): Add m4/mathfunc.m4.
39144 2011-10-06  Bruno Haible  <bruno@clisp.org>
39146         frexpf: Drop assumption about library that defines frexpf.
39147         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
39148         'int *', 'float *', 'long double *', 'float', 'long double'.
39149         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
39150         AC_CHECK_FUNCS.
39151         * modules/frexpf (Files): Add m4/mathfunc.m4.
39153         Tests for module 'frexpf'.
39154         * modules/frexpf-tests: New file.
39155         * tests/test-frexpf.c: New file.
39157         New module 'frexpf'.
39158         * lib/math.in.h (frexpf): New declaration.
39159         * lib/frexpf.c: New file.
39160         * m4/frexpf.m4: New file.
39161         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
39162         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
39163         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
39164         * modules/frexpf: New file.
39165         * tests/test-math-c++.cc: Check the declaration of frexpf.
39166         * doc/posix-functions/frexpf.texi: Mention the new module.
39168 2011-10-06  Bruno Haible  <bruno@clisp.org>
39170         math: Sort function declarations of math.in.h.
39171         * lib/math.in.h (frexp, logb): Move declarations.
39173 2011-10-05  Bruno Haible  <bruno@clisp.org>
39175         Tests for module 'modff'.
39176         * modules/modff-tests: New file.
39177         * tests/test-modff.c: New file.
39179         New module 'modff'.
39180         * lib/math.in.h (modff): New declaration.
39181         * lib/modff.c: New file.
39182         * m4/modff.m4: New file.
39183         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
39184         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
39185         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
39186         * modules/modff: New file.
39187         * tests/test-math-c++.cc: Check the declaration of modff.
39188         * doc/posix-functions/modff.texi: Mention the new module.
39190         modf tests: Make test sharper.
39191         * tests/test-modf.c (main): Strengthen upper bound.
39193         modf: Use a .m4 file.
39194         * m4/modf.m4: New file.
39195         * modules/modf (Files): Add it.
39196         (configure.ac): Just invoke gl_FUNC_MODF.
39198 2011-10-05  Bruno Haible  <bruno@clisp.org>
39200         Tests for module 'fmodf'.
39201         * modules/fmodf-tests: New file.
39202         * tests/test-fmodf.c: New file.
39204         New module 'fmodf'.
39205         * lib/math.in.h (fmodf): New declaration.
39206         * lib/fmodf.c: New file.
39207         * m4/fmodf.m4: New file.
39208         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
39209         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
39210         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
39211         * modules/fmodf: New file.
39212         * tests/test-math-c++.cc: Check the declaration of fmodf.
39213         * doc/posix-functions/fmodf.texi: Mention the new module.
39215         fmod: Use a .m4 file.
39216         * m4/fmod.m4: New file.
39217         * modules/fmod (Files): Add it.
39218         (configure.ac): Just invoke gl_FUNC_FMOD.
39220 2011-10-05  Bruno Haible  <bruno@clisp.org>
39222         Tests for module 'fabsf'.
39223         * modules/fabsf-tests: New file.
39224         * tests/test-fabsf.c: New file.
39226         New module 'fabsf'.
39227         * lib/math.in.h (fabsf): New declaration.
39228         * lib/fabsf.c: New file.
39229         * m4/fabsf.m4: New file.
39230         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
39231         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
39232         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
39233         * modules/fabsf: New file.
39234         * tests/test-math-c++.cc: Check the declaration of fabsf.
39235         * doc/posix-functions/fabsf.texi: Mention the new module.
39237         fabs: Use a .m4 file.
39238         * m4/fabs.m4: New file.
39239         * modules/fabs (Files): Add it.
39240         (configure.ac): Just invoke gl_FUNC_FABS.
39242 2011-10-05  Jim Meyering  <meyering@redhat.com>
39244         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
39245         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
39246         ls -lL regression introduced in coreutils-8.12, it does so at the
39247         cost of an additional stat call in the common case.  Besides, now
39248         that the kernel change that prompted commit 95f7c57f has been reverted
39249         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
39250         we have no use for commit 95f7c57f, "file-has-acl: use
39251         acl_extended_file_nofollow if available".
39253 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
39255         file-has-acl: revert unintended change in behavior of ls -L
39256         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
39257         derived from...
39258         (file_has_acl): ...code here.  Call it.
39259         This problem was introduced with 2011-07-22 commit 95f7c57f,
39260         "file-has-acl: use acl_extended_file_nofollow if available".
39261         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
39263 2011-10-03  Bruno Haible  <bruno@clisp.org>
39265         poll: Avoid link errors on MSVC.
39266         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
39267         * modules/poll (Depends-on): Add sockets.
39268         (Link): New section.
39269         * NEWS: Mention the change.
39270         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
39271         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
39272         $(LIB_POLL) instead of $(LIBSOCKET).
39274 2011-10-03  Bruno Haible  <bruno@clisp.org>
39276         sys_select tests: Fix link error on MSVC 9.
39277         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
39278         with $(LIB_SELECT) instead of $(LIBSOCKET).
39280 2011-10-03  Bruno Haible  <bruno@clisp.org>
39282         sys_select: Fix compilation error on mingw.
39283         * lib/sys_select.in.h: On native Windows, include <io.h>.
39285 2011-10-03  Bruno Haible  <bruno@clisp.org>
39287         wmemset: Support for MSVC.
39288         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
39289         whether wmemset() exists.
39291 2011-10-03  Bruno Haible  <bruno@clisp.org>
39293         wmemmove: Support for MSVC.
39294         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
39295         whether wmemmove() exists.
39297 2011-10-03  Bruno Haible  <bruno@clisp.org>
39299         wmemcpy: Support for MSVC.
39300         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
39301         whether wmemcpy() exists.
39303 2011-10-03  Bruno Haible  <bruno@clisp.org>
39305         wmemcmp: Support for MSVC.
39306         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
39307         whether wmemcmp() exists.
39309 2011-10-03  Bruno Haible  <bruno@clisp.org>
39311         wmemchr: Support for MSVC.
39312         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
39313         whether wmemchr() exists.
39315 2011-10-03  Bruno Haible  <bruno@clisp.org>
39317         glthread/*, strsignal: Support for MSVC.
39318         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
39319         including <winsock.h> on MSVC 9.
39320         * lib/glthread/lock.h: Likewise.
39321         * lib/glthread/thread.h: Likewise.
39322         * lib/glthread/tls.h: Likewise.
39323         * lib/glthread/yield.h: Likewise.
39324         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
39325         if HAVE_UNISTD_H is false.
39326         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
39328 2011-10-03  Bruno Haible  <bruno@clisp.org>
39330         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
39331         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
39332         Set to 100000.
39334 2011-10-03  Bruno Haible  <bruno@clisp.org>
39336         acl: Fix specification.
39337         * lib/file-has-acl.c (file_has_acl): Fix specification.
39339 2011-10-03  Bruno Haible  <bruno@clisp.org>
39341         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
39342         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
39343         (compute_curr_prefix, shared_library_fullname,
39344         find_shared_library_fullname, get_shared_library_fullname, relocate):
39345         Use it together with PIC && INSTALLDIR.
39346         Reported by <jojelino@gmail.com>
39347         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
39349 2011-10-01  Jim Meyering  <meyering@redhat.com>
39351         maint.mk: adjust a release-related rule not to require use of gzip
39352         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
39353         Instead, check each file in $(DIST_ARCHIVES).  This is better for
39354         projects that build only .tar.xz files.  Also fix an erroneous test.
39356         test-linkat: don't leave behind a temporary file
39357         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
39358         Otherwise, coreutils' "make distcheck" would fail with this:
39359           Only in /c/cu/tests/torture/coreutils/test/\
39360             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
39361           make[2]: *** [my-distcheck] Error 1
39363         float, math: add omitted file
39364         * lib/itold.c: Add file, required for yesterday's float change.
39366 2011-10-01  Bruno Haible  <bruno@clisp.org>
39368         isinf: Fix for OpenBSD/x86.
39369         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
39370         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
39371         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
39373 2011-10-01  Bruno Haible  <bruno@clisp.org>
39375         isfinite: Fix syntax error in configure test.
39376         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
39378         isfinite: Fix typo.
39379         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
39380         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
39382 2011-10-01  Bruno Haible  <bruno@clisp.org>
39384         nonblocking tests: Fix test failure on Linux/IA-64.
39385         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
39386         Set to 270000.
39388 2011-10-01  Bruno Haible  <bruno@clisp.org>
39390         mkfifoat tests: Fix a test failure on mingw.
39391         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
39392         with error ENOSYS.
39394 2011-09-30  Bruno Haible  <bruno@clisp.org>
39396         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
39397         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
39398         'long double'. Set REPLACE_ITOLD.
39399         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
39400         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
39401         * lib/itold.c: New file.
39402         * modules/float (Files): Add lib/itold.c.
39403         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
39404         (Makefile.am): Substitute REPLACE_ITOLD.
39405         * modules/math (Depends-on): Add float.
39406         (Makefile.am): Substitute REPLACE_ITOLD.
39407         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
39408         * doc/posix-headers/math.texi: Likewise.
39409         * doc/posix-functions/logl.texi: Likewise.
39411 2011-09-30  Bruno Haible  <bruno@clisp.org>
39413         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
39414         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
39415         Set to 140000.
39417 2011-09-30  Bruno Haible  <bruno@clisp.org>
39419         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
39420         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
39421         invocation, say "right after AC_PROG_CC_STDC", not "right after
39422         AC_PROG_CC".
39423         Reported by Gary V. Vaughan <gary@gnu.org>.
39425 2011-09-30  Bruno Haible  <bruno@clisp.org>
39427         Centralize C99 requirement.
39428         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
39429         * modules/stdarg (configure.ac-early): Invoke it instead of
39430         AC_PROG_CC_STDC.
39431         Reported by Gary V. Vaughan and Paul Eggert.
39433 2011-09-29  Bruno Haible  <bruno@clisp.org>
39435         float: Fix LDBL_MAX value on Linux/PowerPC.
39436         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
39437         on Linux/PowerPC.
39438         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
39439         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
39440         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
39441         platform.
39442         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
39444 2011-09-29  Bruno Haible  <bruno@clisp.org>
39446         doc: Improve doc about gl_EARLY.
39447         * doc/gnulib-tool.texi (Initial import): Mention where to place an
39448         AC_PROG_CC_STDC invocation.
39449         Reported by Gary V. Vaughan <gary@gnu.org>.
39451 2011-09-28  Bruno Haible  <bruno@clisp.org>
39453         fgetc, fputc, fread, fwrite tests: Fix link error.
39454         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
39455         on non-MSVC platforms.
39456         * tests/test-fputc.c (main): Likewise.
39457         * tests/test-fread.c (main): Likewise.
39458         * tests/test-fwrite.c (main): Likewise.
39459         Reported by Jim Meyering.
39461 2011-09-27  Bruno Haible  <bruno@clisp.org>
39463         fputc, fwrite tests: Avoid test failure on MSVC.
39464         * tests/test-fgetc.c: Include msvc-inval.h.
39465         (main): Invoke gl_msvc_inval_ensure_handler.
39466         * tests/test-fputc.c: Include msvc-inval.h.
39467         (main): Invoke gl_msvc_inval_ensure_handler.
39468         * tests/test-fread.c: Include msvc-inval.h.
39469         (main): Invoke gl_msvc_inval_ensure_handler.
39470         * tests/test-fwrite.c: Include msvc-inval.h.
39471         (main): Invoke gl_msvc_inval_ensure_handler.
39472         * modules/fgetc-tests (Depends-on): Add msvc-inval.
39473         * modules/fputc-tests (Depends-on): Likewise.
39474         * modules/fread-tests (Depends-on): Likewise.
39475         * modules/fwrite-tests (Depends-on): Likewise.
39477 2011-09-27  Bruno Haible  <bruno@clisp.org>
39479         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
39480         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
39481         (raise): Remove older, duplicated declaration.
39482         (_gl_raise_SIGPIPE): New declaration.
39483         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
39484         (rpl_raise): Remove function.
39485         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
39486         a gnulib-defined SIGPIPE here.
39487         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
39488         'sigprocmask' has detected missing signal-blocking and the module
39489         'sigpipe' is enabled.
39490         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
39492 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
39494         base64-tests: avoid memory leak
39495         * tests/test-base64.c (main): Plug memory leak.
39497         base32: new module
39498         * modules/base32: New module.
39499         * lib/base32.c: New file.
39500         * lib/base32.h: Likewise.
39501         * m4/base32.m4: Likewise.
39502         * modules/base32-tests: New test.
39503         * tests/test-base32.c: Likewise.
39504         * MODULES.html.sh (Misc): Mention it.
39506 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
39508         gnulib: use more-standard license notice wording
39509         * gnulib-tool (func_emit_copyright_notice): When emitting a
39510         license notice into a file, use the standard wording as suggested
39511         by the current information for GNU maintainers, except say "file"
39512         rather than "program".  The new wording gives a license version
39513         number, which addresses an issue raised by Glenn Morris in
39514         <http://lists.gnu.org/r/bug-gnulib/2011-09/msg00397.html>.
39515         * m4/onceonly.m4: Use that same wording here, too.
39517         dup2: minor simplification
39518         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
39519         as lib/dup2.c no longer uses 'inline'.
39521 2011-09-25  Bruno Haible  <bruno@clisp.org>
39523         strings: Fix compilation error on MSVC.
39524         * lib/strings.in.h: Include <stddef.h> for size_t.
39526 2011-09-25  Bruno Haible  <bruno@clisp.org>
39528         fflush et al.: Document limitation on MSVC.
39529         * doc/posix-functions/fflush.texi: Document possible crash in handling
39530         mode other than DEFAULT_HANDLING.
39531         * doc/posix-functions/fgetc.texi: Likewise.
39532         * doc/posix-functions/fputc.texi: Likewise.
39533         * doc/posix-functions/fread.texi: Likewise.
39534         * doc/posix-functions/fwrite.texi: Likewise.
39536 2011-09-25  Bruno Haible  <bruno@clisp.org>
39538         msvc-inval: Allow three invalid parameter handling modes.
39539         * lib/msvc-inval.h: Don't include <stdlib.h> here.
39540         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
39541         macros.
39542         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
39543         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
39544         SANE_LIBRARY_HANDLING as a no-op.
39545         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
39546         <stdlib.h>.
39547         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
39549 2011-09-25  Bruno Haible  <bruno@clisp.org>
39551         msvc-inval: Make handler multithread-safe.
39552         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
39553         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
39554         declarations.
39555         (gl_msvc_inval_current): New declaration.
39556         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
39557         Operate on the structure returned by gl_msvc_inval_current().
39558         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
39559         Remove varaiables.
39560         (tls_index, tls_initialized): New variables.
39561         (not_per_thread): New variable.
39562         (gl_msvc_inval_current): New function.
39563         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
39564         returned by gl_msvc_inval_current().
39566 2011-09-25  Bruno Haible  <bruno@clisp.org>
39568         msvc-inval: Install handler globally.
39569         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
39570         !_MSC_VER.
39571         (gl_msvc_invalid_parameter_handler): Remove declaration.
39572         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
39573         declarations.
39574         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
39575         Install the handler globally, don't uninstall it.
39576         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
39577         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
39578         currently valid, call RaiseException instead.
39579         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
39580         for !_MSC_VER.
39582 2011-09-25  Bruno Haible  <bruno@clisp.org>
39584         strerror_r-posix: Fix for MSVC 9.
39585         * lib/strerror_r.c (local_snprintf): New function.
39586         (snprintf): Define to local_snprintf, not to _snprintf.
39588 2011-09-25  Bruno Haible  <bruno@clisp.org>
39590         ftruncate: Support for MSVC 9.
39591         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
39592         (chsize_nothrow): New function.
39593         (chsize): Redefine as a macro.
39594         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
39595         * modules/ftruncate (Depends-on): Add msvc-inval.
39597 2011-09-25  Bruno Haible  <bruno@clisp.org>
39599         New module 'fstat'.
39600         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
39601         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
39602         * lib/fchdir.c (rpl_fstat): Remove function.
39603         * m4/fstat.m4: New file.
39604         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
39605         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
39606         declared.
39607         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
39608         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
39609         * modules/fstat: New file.
39610         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
39611         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
39612         is set.
39613         * doc/posix-functions/fstat.texi: Mention the new module and the
39614         problem on MSVC.
39615         * NEWS: Mention the change.
39616         * modules/acl (Depends-on): Add fstat.
39617         * modules/chdir-safer (Depends-on): Likewise.
39618         * modules/chown (Depends-on): Likewise.
39619         * modules/copy-file (Depends-on): Likewise.
39620         * modules/fchdir (Depends-on): Likewise.
39621         * modules/fdopendir (Depends-on): Likewise.
39622         * modules/fopen (Depends-on): Likewise.
39623         * modules/fts (Depends-on): Likewise.
39624         * modules/getcwd (Depends-on): Likewise.
39625         * modules/isapipe (Depends-on): Likewise.
39626         * modules/linkat (Depends-on): Likewise.
39627         * modules/lseek (Depends-on): Likewise.
39628         * modules/mkdir-p (Depends-on): Likewise.
39629         * modules/open (Depends-on): Likewise.
39630         * modules/openat (Depends-on): Likewise.
39631         * modules/read-file (Depends-on): Likewise.
39632         * modules/renameat (Depends-on): Likewise.
39633         * modules/utimens (Depends-on): Likewise.
39635 2011-09-25  Bruno Haible  <bruno@clisp.org>
39637         linkat: Fix compilation on MSVC 9.
39638         * lib/linkat.c: Don't include <stdint.h>.
39640 2011-09-25  Bruno Haible  <bruno@clisp.org>
39642         fclose: Support for MSVC 9.
39643         * lib/fclose.c: Include msvc-inval.h.
39644         (fclose_nothrow): New function.
39645         (rpl_fclose): Use it.
39646         * modules/fclose (Depends-on): Add msvc-inval.
39647         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
39649 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
39651         dup2: minor simplifications
39652         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
39653         that it's a performance win.
39654         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
39655         ! defined __CYGWIN__)" to "ifdef F_GETFL".
39657 2011-09-24  Jim Meyering  <meyering@redhat.com>
39659         test-futimens: avoid a warning from gcc -Wshadow
39660         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
39661         to avoid a shadowing warning.
39663 2011-09-24  Bruno Haible  <bruno@clisp.org>
39665         fdopen: Support for MSVC 9.
39666         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
39667         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
39668         * lib/fdopen.c: Include msvc-inval.h.
39669         (fdopen_nothrow): New function.
39670         (rpl_fdopen): Use it.
39671         * modules/fdopen (Depends-on): Add msvc-inval.
39672         * modules/fclose-tests (Depends-on): Add fdopen.
39673         * modules/fflush-tests (Depends-on): Likewise.
39674         * modules/fgetc-tests (Depends-on): Likewise.
39675         * modules/fputc-tests (Depends-on): Likewise.
39676         * modules/fread-tests (Depends-on): Likewise.
39677         * modules/freopen-tests (Depends-on): Likewise.
39678         * modules/fseeko-tests (Depends-on): Likewise.
39679         * modules/ftello-tests (Depends-on): Likewise.
39680         * modules/fwrite-tests  (Depends-on): Likewise.
39681         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
39683 2011-09-24  Bruno Haible  <bruno@clisp.org>
39685         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
39686         * modules/fgetc-tests (Depends-on): Add unistd.
39687         * modules/fputc-tests (Depends-on): Likewise.
39688         * modules/fread-tests (Depends-on): Likewise.
39689         * modules/fwrite-tests (Depends-on): Likewise.
39691 2011-09-24  Bruno Haible  <bruno@clisp.org>
39693         dup: Simplify autoconf test.
39694         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
39695         on gl_MSVC_INVAL's result.
39697 2011-09-24  Bruno Haible  <bruno@clisp.org>
39699         Tests for function fwrite().
39700         * modules/fwrite-tests: New file.
39701         * tests/test-fwrite.c: New file.
39702         * modules/stdio-tests (Depends-on): Add fwrite-tests.
39704         Tests for function fread().
39705         * modules/fread-tests: New file.
39706         * tests/test-fread.c: New file.
39707         * modules/stdio-tests (Depends-on): Add fread-tests.
39709         Activate fputc tests.
39710         * modules/stdio-tests (Depends-on): Add fputc-tests.
39712         Enhance fgetc, fputc tests.
39713         * tests/test-fgetc.c (main): Also test the stream's error indicator.
39714         * tests/test-fputc.c (main): Likewise.
39716 2011-09-24  Bruno Haible  <bruno@clisp.org>
39718         write: Support for MSVC 9.
39719         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
39720         is not 1.
39721         * lib/write.c (write_nothrow): New function.
39722         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
39723         not 1. Use write_nothrow.
39724         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
39725         invalid parameter handler.
39726         (gl_PREREQ_WRITE): New macro.
39727         * modules/write (Depends-on): Add msvc-inval.
39728         (configure.ac): Invoke gl_PREREQ_WRITE.
39729         * doc/posix-functions/write.texi: Mention the problem on MSVC.
39731 2011-09-24  Bruno Haible  <bruno@clisp.org>
39733         read: Fix last commit.
39734         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
39736 2011-09-24  Bruno Haible  <bruno@clisp.org>
39738         dup2: Fix last commit.
39739         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
39740         (rpl_dup2): Disable fcntl workaround on native Windows.
39742         sigprocmask: Make code safer.
39743         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
39744         section that changes macro definitions for this compilation unit.
39746 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
39748         dup2: clarify by coalescing Windows-specific material
39749         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
39750         "msvc-nothrow.h"' to the Windows-specific section, so that the
39751         Emacs source need not contain these include files.
39752         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
39753         Windows-specific fixes into this function rather than just the
39754         nothrow fix, as this shortens and clarifies the code.  Always
39755         define as a function, as that's a bit cleaner than having it be
39756         sometimes a function and sometimes a macro.
39757         (rpl_dup2): Move the Windows-specific stuff out of here and into
39758         ms_windows_dup2.  Don't protect the Haiku-related fix with
39759         "#if !defined __linux__", as the same code also works around
39760         a Linux kernel bug, and it doesn't add any system calls on any
39761         platform.  Add comment about FreeBSD 6.1.
39763         sigprocmask: move #include directive
39764         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
39765         Windows-specific section, so that the Emacs source need not
39766         contain msvc-inval.h.
39768 2011-09-23  Bruno Haible  <bruno@clisp.org>
39770         read: Support for MSVC 9.
39771         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
39772         is not 1.
39773         * lib/read.c (read_nothrow): New function.
39774         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
39775         read_nothrow.
39776         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
39777         invalid parameter handler.
39778         (gl_PREREQ_READ): New macro.
39779         * modules/read (Depends-on): Add msvc-inval.
39780         (configure.ac): Invoke gl_PREREQ_READ.
39781         * doc/posix-functions/read.texi: Mention the problem on MSVC.
39783 2011-09-23  Bruno Haible  <bruno@clisp.org>
39785         close: Support for MSVC 9.
39786         * lib/close.c: Include <errno.h>, msvc-inval.h.
39787         (close_nothrow): New function.
39788         (rpl_close): Use it.
39789         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
39790         invalid parameter handler.
39791         * modules/close (Depends-on): Add msvc-inval.
39792         * modules/dup2-tests (Depends-on): Add close.
39793         * modules/dup3-tests (Depends-on): Likewise.
39794         * modules/fcntl-tests (Depends-on): Likewise.
39795         * modules/spawn-pipe-tests (Depends-on): Likewise.
39796         * modules/unistd-safer-tests (Depends-on): Likewise.
39797         * doc/posix-functions/close.texi: Mention the problem on MSVC.
39799 2011-09-23  Bruno Haible  <bruno@clisp.org>
39801         New module 'dup'.
39802         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
39803         Allow replacement.
39804         * lib/dup.c: New file.
39805         * lib/fchdir.c (rpl_dup): Remove function.
39806         * m4/dup.m4: New file.
39807         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
39808         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
39809         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
39810         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
39811         * modules/dup: New file.
39812         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
39813         'dup' module is in use.
39814         * modules/fdopendir (Depends-on): Add dup.
39815         * modules/fdutimensat-tests (Depends-on): Likewise.
39816         * modules/fts (Depends-on): Likewise.
39817         * modules/futimens-tests (Depends-on): Likewise.
39818         * modules/posix_spawnp-tests (Depends-on): Likewise.
39819         * modules/unistd-safer-tests (Depends-on): Likewise.
39820         * modules/utimens-tests (Depends-on): Likewise.
39821         * doc/posix-functions/dup.texi: Mention the new module and the problem
39822         on MSVC.
39824 2011-09-23  Bruno Haible  <bruno@clisp.org>
39826         getdtablesize: Support for MSVC 9.
39827         * lib/getdtablesize.c: Include msvc-inval.h.
39828         (_setmaxstdio_nothrow): New function.
39829         (_setmaxstdio): Redefine it.
39830         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
39831         * modules/getdtablesize (Depends-on): Add msvc-inval.
39832         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
39834 2011-09-23  Bruno Haible  <bruno@clisp.org>
39836         signal-h: Rename from signal.
39837         * modules/signal-h: Renamed from modules/signal.
39838         * modules/pthread_sigmask (Depends-on): Update.
39839         * modules/raise (Depends-on): Likewise.
39840         * modules/sigaction (Depends-on): Likewise.
39841         * modules/sigpipe (Depends-on): Likewise.
39842         * modules/sigprocmask (Depends-on): Likewise.
39843         * modules/sys_select (Depends-on): Likewise.
39844         * modules/signal-h-tests: Renamed from modules/signal-tests.
39845         (Files, Depends-on, Makefile.am): Update.
39846         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
39847         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
39848         (Files, Makefile.am): Update.
39849         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
39850         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
39851         * modules/signal: New placeholder file.
39852         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
39853         * doc/posix-headers/signal.texi: Update.
39854         * NEWS: Mention the change.
39856 2011-09-23  Bruno Haible  <bruno@clisp.org>
39858         sigprocmask: Avoid crashes through signal() on MSVC 9.
39859         * lib/sigprocmask.c: Include msvc-inval.h.
39860         (signal_nothrow): New function.
39861         (signal): Redefine it.
39862         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
39863         * modules/sigprocmask (Depends-on): Add msvc-inval.
39864         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
39866 2011-09-23  Bruno Haible  <bruno@clisp.org>
39868         Tests for module 'raise'.
39869         * modules/raise-tests: New file.
39870         * tests/test-raise.c: New file.
39872         raise: Support for MSVC.
39873         * lib/signal.in.h (raise): New declaration.
39874         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
39875         for native Windows platforms.
39876         * m4/raise.m4: New file.
39877         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
39878         HAVE_RAISE, REPLACE_RAISE.
39879         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
39880         REPLACE_RAISE.
39881         * modules/raise (Status, Notice): Remove fields.
39882         (Files): Add m4/raise.m4.
39883         (Depends-on): Add signal, msvc-inval.
39884         (configure.ac): Use the common idioms.
39885         (Maintainer): Add me.
39886         * tests/test-signal-c++.cc: Check the signature of raise.
39887         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
39889 2011-09-23  Bruno Haible  <bruno@clisp.org>
39891         pipe2: Fix compilation on pre-C99 compilers.
39892         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
39894 2011-09-23  Bruno Haible  <bruno@clisp.org>
39896         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
39897         * lib/msvc-nothrow.h: New file.
39898         * lib/msvc-nothrow.c: New file.
39899         * m4/msvc-nothrow.m4: New file.
39900         * modules/msvc-nothrow: New file.
39901         * lib/dup2.c: Include msvc-nothrow.h.
39902         (rpl_dup2): No need to protect _get_osfhandle call here.
39903         * lib/accept4.c: Include msvc-nothrow.h.
39904         * lib/error.c: Likewise.
39905         * lib/fcntl.c: Likewise.
39906         * lib/lseek.c: Likewise.
39907         * lib/nonblocking.c: Likewise.
39908         * lib/poll.c: Likewise.
39909         * lib/read.c: Likewise.
39910         * lib/select.c: Likewise.
39911         * lib/sockets.h: Likewise.
39912         * lib/sockets.c: Likewise.
39913         * lib/stdio-read.c: Likewise.
39914         * lib/stdio-write.c: Likewise.
39915         * lib/write.c: Likewise.
39916         * lib/w32sock.h: Likewise.
39917         * lib/w32spawn.h: Likewise.
39918         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
39919         * lib/fsync.c: Likewise.
39920         * lib/isapipe.c: Likewise.
39921         * modules/dup2 (Depends-on): Add msvc-nothrow.
39922         * modules/accept4 (Depends-on): Likewise.
39923         * modules/error (Depends-on): Likewise.
39924         * modules/fcntl (Depends-on): Likewise.
39925         * modules/lseek (Depends-on): Likewise.
39926         * modules/nonblocking (Depends-on): Likewise.
39927         * modules/poll (Depends-on): Likewise.
39928         * modules/read (Depends-on): Likewise.
39929         * modules/select (Depends-on): Likewise.
39930         * modules/sockets (Depends-on): Likewise.
39931         * modules/sigpipe (Depends-on): Likewise.
39932         * modules/write (Depends-on): Likewise.
39933         * modules/accept (Depends-on): Likewise.
39934         * modules/bind (Depends-on): Likewise.
39935         * modules/connect (Depends-on): Likewise.
39936         * modules/gethostname (Depends-on): Likewise.
39937         * modules/getpeername (Depends-on): Likewise.
39938         * modules/getsockname (Depends-on): Likewise.
39939         * modules/getsockopt (Depends-on): Likewise.
39940         * modules/ioctl (Depends-on): Likewise.
39941         * modules/listen (Depends-on): Likewise.
39942         * modules/recv (Depends-on): Likewise.
39943         * modules/recvfrom (Depends-on): Likewise.
39944         * modules/send (Depends-on): Likewise.
39945         * modules/sendto (Depends-on): Likewise.
39946         * modules/setsockopt (Depends-on): Likewise.
39947         * modules/shutdown (Depends-on): Likewise.
39948         * modules/socket (Depends-on): Likewise.
39949         * modules/execute (Depends-on): Likewise.
39950         * modules/spawn-pipe (Depends-on): Likewise.
39951         * modules/flock (Depends-on): Likewise.
39952         * modules/fsync (Depends-on): Likewise.
39953         * modules/isapipe (Depends-on): Likewise.
39954         * tests/test-cloexec.c: Include msvc-nothrow.h.
39955         * tests/test-dup-safer.c: Likewise.
39956         * tests/test-dup2.c: Likewise.
39957         * tests/test-dup3.c: Likewise.
39958         * tests/test-fcntl.c: Likewise.
39959         * tests/test-pipe.c: Likewise.
39960         * tests/test-pipe2.c: Likewise.
39961         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
39962         * modules/unistd-safer-tests (Depends-on): Likewise.
39963         * modules/dup2-tests (Depends-on): Likewise.
39964         * modules/dup3-tests (Depends-on): Likewise.
39965         * modules/fcntl-tests (Depends-on): Likewise.
39966         * modules/pipe-posix-tests (Depends-on): Likewise.
39967         * modules/pipe2-tests (Depends-on): Likewise.
39969 2011-09-23  Bruno Haible  <bruno@clisp.org>
39971         dup2: Make code more maintainable.
39972         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
39973         (rpl_dup2): Use it.
39974         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
39975         * modules/dup2 (configure.ac): Invoke it.
39976         Reported by Paul Eggert.
39978 2011-09-23  Bruno Haible  <bruno@clisp.org>
39980         msvc-inval: Fix compilation error.
39981         * lib/msvc-inval.h: Include <excpt.h>.
39983 2011-09-23  Bruno Haible  <bruno@clisp.org>
39985         mkdir: Tweak for MSVC 9.
39986         * lib/sys_stat.in.h: Update comments.
39987         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
39989         Tests for module 'chdir'.
39990         * modules/chdir-tests: New file.
39991         * tests/test-chdir.c: New file.
39993         New module 'chdir'.
39994         * modules/chdir: New file.
39995         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
39996         (chdir): New declaration.
39997         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
39998         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
39999         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
40000         * tests/test-unistd-c++.cc: Check signature of chdir.
40001         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
40002         * modules/chdir-long (Depends-on): Add chdir.
40003         * modules/fchdir (Depends-on): Likewise.
40004         * modules/rename (Depends-on): Likewise.
40005         * modules/savewd (Depends-on): Likewise.
40007         rmdir: Support for mingw, MSVC 9.
40008         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
40009         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
40011         getcwd: Tweak for MSVC 9.
40012         * lib/unistd.in.h: Update comments.
40013         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
40015 2011-09-22  Bruno Haible  <bruno@clisp.org>
40017         strerror_r-posix: Avoid a link error on MSVC.
40018         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
40019         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
40021 2011-09-22  Bruno Haible  <bruno@clisp.org>
40023         select: Avoid link errors on MSVC.
40024         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
40025         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
40026         * modules/pselect (Link): Likewise.
40027         * NEWS: Mention the change.
40028         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
40029         test-select-stdin against $(LIB_SELECT).
40030         * modules/pselect-tests (Makefile.am): Link test-pselect against
40031         $(LIB_SELECT).
40033 2011-09-22  Bruno Haible  <bruno@clisp.org>
40035         select: Avoid compilation error on MSVC.
40036         * lib/select.c: Don't include <stdbool.h>.
40038 2011-09-21  Bruno Haible  <bruno@clisp.org>
40040         Consolidate all uses of PATH_MAX in *.m4 files.
40041         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
40042         macros.
40043         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
40044         and gl_PATHMAX_SNIPPET.
40045         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
40046         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
40047         * modules/chdir-long (Files): Add m4/pathmax.m4.
40048         * modules/getcwd (Files): Likewise.
40050 2011-09-21  Bruno Haible  <bruno@clisp.org>
40052         ftruncate: Un-deprecate, concentrate on Win32 support.
40053         * modules/ftruncate (Status, Notice): Remove sections.
40054         (Depends-on): Add largefile.
40055         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
40056         non-mingw platforms.
40057         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
40058         include <io.h>.
40059         * modules/perror-tests (Depends-on): Add ftruncate.
40060         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
40061         'ftruncate' module.
40063 2011-09-21  Bruno Haible  <bruno@clisp.org>
40065         Add dependencies to new dirent related modules.
40066         * modules/opendir (Depends-on): Add closedir.
40067         * modules/getcwd (Depends-on): Add opendir, closedir.
40068         * modules/dirent-safer-tests (Depends-on): Likewise.
40069         * modules/fdopendir-tests (Depends-on): Likewise.
40070         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
40071         * modules/renameat-tests (Depends-on): Likewise.
40073 2011-09-21  Bruno Haible  <bruno@clisp.org>
40075         opendir: Avoid compilation error on mingw.
40076         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
40077         * modules/opendir (Depends-on): Add unistd.
40079 2011-09-21  Bruno Haible  <bruno@clisp.org>
40081         ftruncate tests: Avoid a test failure on mingw.
40082         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
40084 2011-09-21  Bruno Haible  <bruno@clisp.org>
40086         select tests: Avoid test failures on OSF/1 5.1 and mingw.
40087         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
40088         native Windows.
40090 2011-09-21  Bruno Haible  <bruno@clisp.org>
40092         New module 'fdopen'.
40093         * lib/stdio.in.h (fdopen): New declaration.
40094         * lib/fdopen.c: New file.
40095         * m4/fdopen.m4: New file.
40096         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
40097         REPLACE_FDOPEN.
40098         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
40099         REPLACE_FDOPEN.
40100         * modules/fdopen: New file.
40101         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
40102         * tests/test-stdio-c++.cc: Check signature of fdopen.
40103         * doc/posix-functions/fdopen.texi: Mention the new module.
40105 2011-09-21  Bruno Haible  <bruno@clisp.org>
40107         unlockpt tests: Avoid test failure on NetBSD 5.1.
40108         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
40109         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
40111 2011-09-21  Bruno Haible  <bruno@clisp.org>
40113         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
40114         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
40115         * tests/test-getlogin_r.c (main): Likewise.
40117 2011-09-20  Bruno Haible  <bruno@clisp.org>
40119         time tests: Don't require pid_t.
40120         * doc/posix-headers/time.texi: Revert last change.
40121         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
40122         * tests/test-time.c: Comment out the check for pid_t.
40124 2011-09-20  Bruno Haible  <bruno@clisp.org>
40126         fsync tests: Avoid a test failure on mingw.
40127         * tests/test-fsync.c (main): Allow a failure with EIO.
40129 2011-09-20  Bruno Haible  <bruno@clisp.org>
40131         euidaccess: Update comments.
40132         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
40134 2011-09-20  Bruno Haible  <bruno@clisp.org>
40136         Ensure EBADF returns for socket functions on mingw.
40137         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
40138         descriptor is invalid.
40139         * lib/bind.c (rpl_bind): Likewise.
40140         * lib/connect.c (rpl_connect): Likewise.
40141         * lib/getpeername.c (rpl_getpeername): Likewise.
40142         * lib/getsockname.c (rpl_getsockname): Likewise.
40143         * lib/getsockopt.c (rpl_getsockopt): Likewise.
40144         * lib/listen.c (rpl_listen): Likewise.
40145         * lib/recv.c (rpl_recv): Likewise.
40146         * lib/recvfrom.c (rpl_recvfrom): Likewise.
40147         * lib/send.c (rpl_send): Likewise.
40148         * lib/sendto.c (rpl_sendto): Likewise.
40149         * lib/setsockopt.c (rpl_setsockopt): Likewise.
40150         * lib/shutdown.c (rpl_shutdown): Likewise.
40152 2011-09-20  Bruno Haible  <bruno@clisp.org>
40154         select tests: EBADF tests.
40155         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
40156         test_bad_fd): New functions.
40157         (test_function): Invoke also test_bad_fd.
40159 2011-09-20  Bruno Haible  <bruno@clisp.org>
40161         Tests for module 'posix_spawn_file_actions_addopen.
40162         * modules/posix_spawn_file_actions_addopen-tests: New file.
40163         * tests/test-posix_spawn_file_actions_addopen.c: New file.
40165         Tests for module 'posix_spawn_file_actions_adddup2'.
40166         * modules/posix_spawn_file_actions_adddup2-tests: New file.
40167         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
40169         Tests for module 'posix_spawn_file_actions_addclose'.
40170         * modules/posix_spawn_file_actions_addclose-tests: New file.
40171         * tests/test-posix_spawn_file_actions_addclose.c: New file.
40173 2011-09-20  Bruno Haible  <bruno@clisp.org>
40175         Tests for module 'unlockpt'.
40176         * modules/unlockpt-tests: New file.
40177         * tests/test-unlockpt.c: New file.
40178         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
40180         Tests for module 'grantpt'.
40181         * modules/grantpt-tests: New file.
40182         * tests/test-grantpt.c: New file.
40183         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
40185 2011-09-20  Bruno Haible  <bruno@clisp.org>
40187         freopen tests: EBADF tests.
40188         * tests/test-freopen.c: Include errno.h, unistd.h.
40189         (main): Add tests for EBADF, commented out for the moment.
40191         fclose tests: EBADF tests.
40192         * tests/test-fclose.c (main): Add tests for EBADF.
40194         fflush tests: EBADF tests.
40195         * tests/test-fflush.c: Include errno.h, macros.h.
40196         (main): Add tests for EBADF.
40198         ftello tests: EBADF tests.
40199         * tests/test-ftello4.sh: New file.
40200         * tests/test-ftello4.c: New file.
40201         * modules/ftello-tests (Files): Add them.
40202         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
40204         fseeko tests: EBADF tests.
40205         * tests/test-fseeko4.sh: New file.
40206         * tests/test-fseeko4.c: New file.
40207         * modules/fseeko-tests (Files): Add them.
40208         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
40210         Tests for function fputc().
40211         * modules/fputc-tests: New file.
40212         * tests/test-fputc.c: New file.
40213         * modules/stdio-tests (Depends-on): Add fputc-tests.
40215         Tests for function fgetc().
40216         * modules/fgetc-tests: New file.
40217         * tests/test-fgetc.c: New file.
40218         * modules/stdio-tests (Depends-on): Add fgetc-tests.
40220         Tests for function fdopen().
40221         * modules/fdopen-tests: New file.
40222         * tests/test-fdopen.c: New file.
40223         * modules/stdio-tests (Depends-on): Add fdopen-tests.
40225         Tests for module 'vdprintf'.
40226         * modules/vdprintf-tests: New file.
40227         * tests/test-vdprintf.c: New file.
40229         Tests for module 'dprintf'.
40230         * modules/dprintf-tests: New file.
40231         * tests/test-dprintf.c: New file.
40233 2011-09-20  Bruno Haible  <bruno@clisp.org>
40235         Tests for module 'ioctl'.
40236         * modules/ioctl-tests: New file.
40237         * tests/test-ioctl.c: New file.
40239 2011-09-20  Bruno Haible  <bruno@clisp.org>
40241         fcntl tests: EBADF tests.
40242         * tests/test-fcntl.c (main): Add more tests for EBADF.
40244 2011-09-20  Bruno Haible  <bruno@clisp.org>
40246         utimensat tests: EBADF tests.
40247         * tests/test-utimensat.c (main): Add tests for EBADF.
40249         renameat tests: EBADF tests.
40250         * tests/test-renameat.c (main): Add tests for EBADF.
40252         mkfifoat tests: EBADF tests.
40253         * tests/test-mkfifoat.c (main): Add tests for EBADF.
40255         readlinkat tests: EBADF tests.
40256         * tests/test-readlinkat.c (main): Add tests for EBADF.
40258         symlinkat tests: EBADF tests.
40259         * tests/test-symlinkat.c (main): Add tests for EBADF.
40261         linkat tests: EBADF tests.
40262         * tests/test-linkat.c (main): Add tests for EBADF.
40264         Tests for module 'faccessat'.
40265         * modules/faccessat-tests: New file.
40266         * tests/test-faccessat.c: New file.
40268         fdopendir tests: EBADF tests.
40269         * tests/test-fdopendir.c (main): Add more tests for EBADF.
40271         openat tests: EBADF tests.
40272         * tests/test-fchownat.c (main): Add tests for EBADF.
40273         * tests/test-fstatat.c (main): Likewise.
40274         * tests/test-mkdirat.c (main): Likewise.
40275         * tests/test-openat.c (main): Likewise.
40276         * tests/test-unlinkat.c (main): Likewise.
40277         * tests/test-fchmodat.c: New file.
40278         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
40279         (Makefile.am): Also run 'test-fchmodat'.
40281 2011-09-20  Bruno Haible  <bruno@clisp.org>
40283         utimens, futimens, fdutimensat tests: EBADF tests.
40284         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
40286         Tests for function fstat().
40287         * modules/fstat-tests: New file.
40288         * tests/test-fstat.c: New file.
40289         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
40291 2011-09-20  Bruno Haible  <bruno@clisp.org>
40293         test-ttyname_r tests: EBADF tests.
40294         * tests/test-ttyname_r.c (main): Add tests for EBADF.
40296         Tests for module 'isatty'.
40297         * modules/isatty-tests: New file.
40298         * tests/test-isatty.c: New file.
40300         Tests for module 'write'.
40301         * modules/write-tests: New file.
40302         * tests/test-write.c: New file.
40304         Tests for module 'read'.
40305         * modules/read-tests: New file.
40306         * tests/test-read.c: New file.
40308         pwrite tests: EBADF tests.
40309         * tests/test-pwrite.c (main): Add tests for EBADF.
40311         pread tests: EBADF tests.
40312         * tests/test-pread.c (main): Add tests for EBADF.
40314         lseek tests: EBADF tests.
40315         * tests/test-lseek.c (main): Add more tests for EBADF.
40317         Tests for module 'ftruncate'.
40318         * modules/ftruncate-tests: New file.
40319         * tests/test-ftruncate.sh: New file.
40320         * tests/test-ftruncate.c: New file.
40322         fsync tests: EBADF tests.
40323         * tests/test-fsync.c (main): Add more tests for EBADF.
40325         fdatasync tests: EBADF tests.
40326         * tests/test-fdatasync.c (main): Add more tests for EBADF.
40328         Tests for module 'fchown'.
40329         * modules/fchown-tests: New file.
40330         * tests/test-fchown.c: New file.
40332         Tests for module 'fchmod'.
40333         * modules/fchmod-tests: New file.
40334         * tests/test-fchmod.c: New file.
40336         fchdir tests: EBADF tests.
40337         * tests/test-fchdir.c (main): Add more tests for EBADF.
40339         dup2 tests: EBADF tests.
40340         * tests/test-dup2.c (main): Add more tests for EBADF.
40342         Tests for module 'dup'.
40343         * modules/dup-tests: New file.
40344         * tests/test-dup.c: New file.
40346         Tests for module 'close'.
40347         * modules/close-tests: New file.
40348         * tests/test-close.c: New file.
40350 2011-09-20  Bruno Haible  <bruno@clisp.org>
40352         Tests for module 'shutdown'.
40353         * modules/shutdown-tests: New file.
40354         * tests/test-shutdown.c: New file.
40356         Tests for module 'setsockopt'.
40357         * modules/setsockopt-tests: New file.
40358         * tests/test-setsockopt.c: New file.
40360         Tests for module 'sendto'.
40361         * modules/sendto-tests: New file.
40362         * tests/test-sendto.c: New file.
40364         Tests for module 'send'.
40365         * modules/send-tests: New file.
40366         * tests/test-send.c: New file.
40368         Tests for module 'recvfrom'.
40369         * modules/recvfrom-tests: New file.
40370         * tests/test-recvfrom.c: New file.
40372         Tests for module 'recv'.
40373         * modules/recv-tests: New file.
40374         * tests/test-recv.c: New file.
40376         Tests for module 'listen'.
40377         * modules/listen-tests: New file.
40378         * tests/test-listen.c: New file.
40380         Tests for module 'getsockopt'.
40381         * modules/getsockopt-tests: New file.
40382         * tests/test-getsockopt.c: New file.
40384         Tests for module 'getsockname'.
40385         * modules/getsockname-tests: New file.
40386         * tests/test-getsockname.c: New file.
40388         Tests for module 'getpeername'.
40389         * modules/getpeername-tests: New file.
40390         * tests/test-getpeername.c: New file.
40392         Tests for module 'connect'.
40393         * modules/connect-tests: New file.
40394         * tests/test-connect.c: New file.
40396         Tests for module 'bind'.
40397         * modules/bind-tests: New file.
40398         * tests/test-bind.c: New file.
40400         accept4 tests: Fix for native Windows.
40401         * tests/test-accept4.c: Include sockets.h.
40402         (main): Invoke gl_sockets_startup.
40403         * modules/accept4-tests (Depends-on): Add sockets.
40405         accept tests: Fix for native Windows.
40406         * tests/test-accept.c: Include sockets.h.
40407         (main): Invoke gl_sockets_startup.
40408         * modules/accept-tests (Depends-on): Add sockets.
40410 2011-09-19  Bruno Haible  <bruno@clisp.org>
40412         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
40413         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
40414         do...while(0).
40415         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
40416         Suggested by Paul Eggert.
40418 2011-09-19  Bruno Haible  <bruno@clisp.org>
40420         sched: Ensure pid_t is defined.
40421         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
40422         not define pid_t.
40423         * lib/sched.in.h: Include <sys/types.h>.
40424         * doc/posix-headers/sched.texi: Mention the pid_t problem.
40425         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40427 2011-09-19  Bruno Haible  <bruno@clisp.org>
40429         msvc-inval: Ensure the entire expansion is a single statement.
40430         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
40431         of braces.
40433 2011-09-19  Jim Meyering  <meyering@redhat.com>
40435         tests: use printf, not echo in init.sh's warn_ function
40436         * tests/init.sh (warn_): Use printf, not echo.  The latter would
40437         misbehave when given strings containing a backslash or starting
40438         with e.g., -n.  James Youngman suggested setting IFS.
40440 2011-09-19  Eric Blake  <eblake@redhat.com>
40442         futimens: enhance test
40443         * tests/test-futimens.h (test_futimens): Also check for EBADF on
40444         closed non-negative fd.
40446         date: accept 'hence' as opposite of 'ago'
40447         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
40448         * tests/test-parse-datetime.c (main): Enhance test.
40449         Suggested by Jesse Wilson.
40451 2011-09-19  Jim Meyering  <meyering@redhat.com>
40453         getcwd: don't fail in a deep directory on a system without openat
40454         Before this change, getcwd would fail when called from a directory
40455         of depth PATH_MAX / 3 or greater.  That was due to the fact that
40456         the non-openat implementation used "..", "../..", "../../..", etc.
40457         to access ancestor directories.  With too many, that string would
40458         be longer than PATH_MAX.
40459         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
40460         using gnulib's openat replacement.
40461         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
40462         we're using the replacement function.
40464 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
40466         maint.mk: avoid warnings from perl about missing files
40467         * top/maint.mk (def_sym_regex): Ignore files listed in
40468         $(gl_other_headers_) that do not exist, say because a project
40469         does not use a corresponding module.
40471 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
40473         stat: use pathmax.h only if needed
40474         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
40475         This is better for Emacs, which does not have a mingw port and
40476         therefore can avoid the pathmax module.
40478         utimens: remove dependency on dup2
40479         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
40480         to work around the Linux kernel bug.
40481         * modules/utimens (Depends-on): Remove dup2.
40483 2011-09-18  Bruno Haible  <bruno@clisp.org>
40485         inet_ntop, inet_pton: Look for it also in libresolv.
40486         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
40487         libnsl, search for it in libresolv.
40488         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
40489         Needed on Solaris 7.
40491 2011-09-18  Bruno Haible  <bruno@clisp.org>
40493         accept, accept4 tests: Avoid link error on Solaris.
40494         * modules/accept-tests (Makefile.am): Link test-accept against
40495         $(LIBSOCKET).
40496         * modules/accept4-tests (Makefile.am): Link test-accept4 against
40497         $(LIBSOCKET).
40499         accept4: Avoid link error on Solaris.
40500         * modules/accept4 (Link): New section.
40502         socket functions: Avoid link errors on Solaris.
40503         * modules/accept (Depends-on): Add socketlib.
40504         (Link): New section.
40505         * modules/bind (Depends-on): Add socketlib.
40506         (Link): New section.
40507         * modules/connect (Depends-on): Add socketlib.
40508         (Link): New section.
40509         * modules/getpeername (Depends-on): Add socketlib.
40510         (Link): New section.
40511         * modules/getsockname (Depends-on): Add socketlib.
40512         (Link): New section.
40513         * modules/getsockopt (Depends-on): Add socketlib.
40514         (Link): New section.
40515         * modules/listen (Depends-on): Add socketlib.
40516         (Link): New section.
40517         * modules/recv (Depends-on): Add socketlib.
40518         (Link): New section.
40519         * modules/recvfrom (Depends-on): Add socketlib.
40520         (Link): New section.
40521         * modules/send (Depends-on): Add socketlib.
40522         (Link): New section.
40523         * modules/sendto (Depends-on): Add socketlib.
40524         (Link): New section.
40525         * modules/setsockopt (Depends-on): Add socketlib.
40526         (Link): New section.
40527         * modules/shutdown (Depends-on): Add socketlib.
40528         (Link): New section.
40529         * modules/socket (Depends-on): Add socketlib.
40530         (Link): New section.
40532 2011-09-18  Bruno Haible  <bruno@clisp.org>
40534         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
40535         * tests/test-ptsname.c (main): Terminate the test if it takes longer
40536         than 5 seconds.
40537         * modules/ptsname-tests (configure.ac): Test for alarm.
40539 2011-09-18  Bruno Haible  <bruno@clisp.org>
40541         posix_spawn_file_actions_add*: Fix module dependencies.
40542         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
40543         posix_spawn_file_actions_init.
40544         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
40545         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
40547 2011-09-18  Bruno Haible  <bruno@clisp.org>
40549         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
40550         * tests/test-rename.h (test_rename): Allow error code EEXIST.
40551         * tests/test-renameat.c (main): Likewise.
40553 2011-09-18  Bruno Haible  <bruno@clisp.org>
40555         Tests for module 'accept4'.
40556         * modules/accept4-tests: New file.
40557         * tests/test-accept4.c: New file.
40559 2011-09-18  Bruno Haible  <bruno@clisp.org>
40561         Tests for module 'accept'.
40562         * modules/accept-tests: New file.
40563         * tests/test-accept.c: New file.
40565 2011-09-18  Bruno Haible  <bruno@clisp.org>
40567         dup2: Support for MSVC.
40568         * lib/dup2.c: Include msvc-inval.h.
40569         (rpl_dup2): Handle invalid parameter notifications during dup2 and
40570         _get_osfhandle calls.
40571         * modules/dup2 (Depends-on): Add msvc-inval.
40572         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
40574         New module 'msvc-inval'.
40575         * lib/msvc-inval.h: New file.
40576         * lib/msvc-inval.c: New file.
40577         * m4/msvc-inval.m4: New file.
40578         * modules/msvc-inval: New file.
40580 2011-09-17  Bruno Haible  <bruno@clisp.org>
40582         Tests for module 'pclose'.
40583         * modules/pclose-tests: New file.
40585         New module 'pclose'.
40586         * lib/stdio.in.h (pclose): New declaration.
40587         * lib/pclose.c: New file.
40588         * m4/pclose.m4: New file.
40589         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
40590         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
40591         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
40592         * modules/pclose: New file.
40593         * modules/popen-tests (Depends-on): Add pclose.
40594         * modules/popen-safer-tests (Depends-on): Likewise.
40595         * doc/posix-functions/pclose.texi: Mention the new module.
40597 2011-09-17  Bruno Haible  <bruno@clisp.org>
40599         popen: Support for MSVC.
40600         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
40601         * lib/popen.c (popen): Provide alternate definition for native Windows.
40602         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
40603         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
40604         * modules/popen (Depends-on, configure.ac): Update condition.
40605         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
40606         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
40607         fixed.
40609 2011-09-17  Bruno Haible  <bruno@clisp.org>
40611         isnanl, isnand, isnanf: Work around MSVC bug.
40612         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
40614 2011-09-17  Bruno Haible  <bruno@clisp.org>
40616         sys_socket tests: Fix recent mistake.
40617         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
40619 2011-09-17  Bruno Haible  <bruno@clisp.org>
40621         putenv: Support for MSVC.
40622         * modules/putenv (Depends-on): Add environ.
40623         * lib/putenv.c (environ): Disable declaration.
40624         * lib/unistd.in.h: Update comment.
40626 2011-09-17  Bruno Haible  <bruno@clisp.org>
40628         math: Avoid macro redefinition warnings on MSVC.
40629         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
40630         Undefine before redefining.
40632 2011-09-17  Bruno Haible  <bruno@clisp.org>
40634         doc: Mention functions which are declared as macros.
40635         * doc/posix-functions/*[fl].texi: Mention that some functions are
40636         defined as macros with arguments only.
40638 2011-09-17  Bruno Haible  <bruno@clisp.org>
40640         Add dependencies to new dirent related modules.
40641         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
40642         * modules/fts (Depends-on): Likewise.
40643         * modules/glob (Depends-on): Likewise.
40644         * modules/savedir (Depends-on): Likewise.
40645         * modules/scandir (Depends-on): Likewise.
40646         * modules/dirent-safer (Depends-on): Add opendir, closedir.
40647         * modules/fdopendir (Depends-on): Add opendir.
40649 2011-09-17  Bruno Haible  <bruno@clisp.org>
40651         inet_pton: Support for MSVC on Windows Vista or newer.
40652         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
40653         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
40654         HAVE_DECL_INET_PTON is defined.
40655         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
40656         On platforms with <winsock2.h>, test whether inet_pton is declared in
40657         <ws2tcpip.h>. If so, arrange to replace it.
40658         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
40659         REPLACE_INET_PTON.
40660         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
40661         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
40662         (Depends-on, configure.ac): Update condition.
40663         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
40665 2011-09-17  Bruno Haible  <bruno@clisp.org>
40667         inet_ntop: Support for MSVC on Windows Vista or newer.
40668         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
40669         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
40670         HAVE_DECL_INET_NTOP is defined.
40671         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
40672         On platforms with <winsock2.h>, test whether inet_ntop is declared in
40673         <ws2tcpip.h>. If so, arrange to replace it.
40674         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
40675         REPLACE_INET_NTOP.
40676         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
40677         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
40678         (Depends-on, configure.ac): Update condition.
40679         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
40681 2011-09-16  Eric Blake  <eblake@redhat.com>
40683         test-fsync: yet another enhancement
40684         * tests/test-fsync.c (main): Also test behavior on read-only text
40685         file.
40687 2011-09-16  Bruno Haible  <bruno@clisp.org>
40689         Enhance fsync, fdatasync tests.
40690         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
40691         * tests/test-fdatasync.c (main): Likewise.
40693 2011-09-16  Bruno Haible  <bruno@clisp.org>
40695         Support for MSVC compiler: Ensure mode_t gets defined.
40696         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
40697         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
40698         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
40699         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
40700         * tests/test-fcntl-h.c: Check that mode_t is defined.
40701         * tests/test-sys_stat.c: Likewise.
40702         * tests/test-sys_types.c: Likewise.
40703         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
40704         * doc/posix-headers/sys_stat.texi: Likewise.
40705         * doc/posix-headers/sys_types.texi: Likewise.
40707 2011-09-16  Bruno Haible  <bruno@clisp.org>
40709         sys_stat: Support for MSVC.
40710         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
40711         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
40712         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
40713         MSVC.
40715 2011-09-16  Bruno Haible  <bruno@clisp.org>
40717         Support for MSVC compiler: Ensure off_t gets defined.
40718         * lib/unistd.in.h: Include <sys/types.h>.
40719         * tests/test-fcntl-h.c: Check that off_t is defined.
40720         * tests/test-sys_stat.c: Likewise.
40721         * tests/test-sys_types.c: Likewise.
40723 2011-09-16  Eric Blake  <eblake@redhat.com>
40725         fdatasync: port to Solaris
40726         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
40727         * modules/fdatasync (Link): Document it.
40728         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
40730         fdatasync: port to MacOS X 10.7
40731         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
40732         declared.
40733         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
40734         * modules/unistd (Makefile.am): Substitute it.
40735         * lib/unistd.in.h (fdatasync): Declare on MacOS.
40736         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
40738         fdatasync: minor improvements
40739         * modules/fdatasync (Depends-on): Add condition for fsync.
40740         * lib/fdatasync.c (fdatasync): Add comment.
40741         * tests/test-unistd-c++.cc: Test fdatasync.
40743         unistd: update refs to newer POSIX
40744         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
40745         Suggested by Bruno Haible.
40747         fdatasync: new module
40748         * modules/fsync (Description): Document difference to fdatasync.
40749         * modules/fdatasync: New module.
40750         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
40751         * lib/fdatasync.c (fdatasync): Likewise.
40752         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
40753         defaults.
40754         * modules/unistd (Makefile.am): Set witnesses.
40755         * lib/unistd.in.h (fdatasync): Declare.
40756         * MODULES.html.sh: Document it.
40757         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
40758         * modules/fdatasync-tests: New test.
40759         * tests/test-fdatasync.c: Likewise.
40761 2011-09-16  Eric Blake  <eblake@redhat.com>
40763         test-fsync: enhance tests
40764         * modules/fsync-tests (Depends-on): Add errno, for mingw.
40765         * tests/test-fsync.c (main): Enhance test.
40767 2011-09-15  Bruno Haible  <bruno@clisp.org>
40769         Support for MSVC compiler: Ensure ssize_t gets defined.
40770         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
40771         * doc/posix-headers/stdio.texi: Likewise.
40772         * modules/stdio (Depends-on): Add ssize_t.
40773         * modules/sys_socket (Depends-on): Likewise.
40774         * modules/sys_types (Depends-on): Likewise.
40775         * modules/sys_uio (Depends-on): Likewise.
40776         * modules/unistd (Depends-on): Likewise.
40777         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
40778         * tests/test-sys_types.c: Check that ssize_t is defined.
40780 2011-09-14  Bruno Haible  <bruno@clisp.org>
40782         Avoid using #, the m4 comment starter character, near brackets.
40783         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
40784         delimiter character in sed expressions.
40785         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
40786         Suggested by Eric Blake.
40788         Properly quote AC_CHECK_DECLS' 4th argument.
40789         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
40790         argument.
40791         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
40792         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
40793         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
40794         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
40795         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
40796         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
40797         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
40798         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
40799         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
40800         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
40801         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
40802         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
40803         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
40804         * m4/isinf.m4 (gl_ISINF): Likewise.
40805         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
40806         * m4/readutmp.m4 (gl_READUTMP): Likewise.
40807         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
40808         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
40809         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
40810         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
40811         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
40812         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
40813         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
40814         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
40815         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
40816         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
40817         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
40818         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
40819         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
40820         Reported by Eric Blake.
40822         Properly quote AC_CHECK_DECL's 4th argument.
40823         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
40824         argument.
40825         * m4/argp.m4 (gl_ARGP): Likewise.
40826         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
40827         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
40828         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
40829         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
40830         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
40831         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
40832         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
40833         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
40834         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
40835         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
40836         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
40837         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
40838         Reported by Eric Blake.
40840 2011-09-14  Eric Blake  <eblake@redhat.com>
40842         opendir: avoid compile warning
40843         * lib/opendir.c (includes): Always include errno.h.
40844         Reported by Tatsuro MATSUOKA.
40846 2011-09-14  Jim Meyering  <meyering@redhat.com>
40848         maint.mk: sc_tight_scope: propagate failure from sub-make
40849         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
40850         Reported by Martin von Gagern.
40852 2011-09-13  Bruno Haible  <bruno@clisp.org>
40854         tempname: Support for MSVC.
40855         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
40856         MSVC.
40857         * modules/tempname (Depends-on): Add fcntl-h.
40859 2011-09-13  Bruno Haible  <bruno@clisp.org>
40861         sys_time: Support for MSVC.
40862         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
40863         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
40864         include <winsock2.h>.
40865         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
40866         function declarations that collide with POSIX.
40867         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
40868         (Makefile.am): Substitute HAVE_WINSOCK2_H.
40870 2011-09-13  Bruno Haible  <bruno@clisp.org>
40872         stat: Support for MSVC.
40873         * lib/stat.c: Include pathmax.h.
40874         * modules/stat (Depends-on): Add pathmax.
40876         pathmax: Support for native Windows.
40877         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
40879 2011-09-12  Bruno Haible  <bruno@clisp.org>
40881         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
40882         * lib/dirent.in.h (struct dirent): New type.
40883         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
40884         DT_WHT): New macros.
40885         (DIR): New type.
40886         (opendir, closedir): Declare only if the module 'opendir' is enabled.
40887         (readdir, rewinddir): New declarations.
40888         * lib/dirent-private.h: New file.
40889         * lib/opendir.c: New file.
40890         * lib/readdir.c: New file.
40891         * lib/rewinddir.c: New file.
40892         * lib/closedir.c: New file.
40893         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
40894         * m4/opendir.m4: New file.
40895         * m4/readdir.m4: New file.
40896         * m4/rewinddir.m4: New file.
40897         * m4/closedir.m4: New file.
40898         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
40899         REPLACE_CLOSEDIR here.
40900         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
40901         readdir, rewinddir are declared.
40902         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
40903         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
40904         HAVE_REWINDDIR, HAVE_CLOSEDIR.
40905         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
40906         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
40907         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
40908         * modules/opendir: New file.
40909         * modules/readdir: New file.
40910         * modules/rewinddir: New file.
40911         * modules/closedir: New file.
40912         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
40913         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
40914         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
40915         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
40916         * NEWS: Mention the 'fchdir' change.
40918 2011-09-11  Bruno Haible  <bruno@clisp.org>
40920         asm-underscore.m4: Support for MSVC.
40921         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
40922         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
40924 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
40926         Doc about crypt functions.
40927         * doc/posix-functions/crypt.texi: Expand range of glibc versions
40928         needing for _GNU_SOURCE to get crypt.
40929         * doc/posix-functions/encrypt.texi: Likewise.
40930         * doc/posix-functions/setkey.texi: Likewise.
40932 2011-09-11  Bruno Haible  <bruno@clisp.org>
40934         doc: Update regarding MSVC 9.
40935         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
40936         tested".
40937         * doc/posix-functions/*.texi: Update with info about MSVC 9.
40938         * doc/posix-headers/*.texi: Likewise.
40939         * doc/pastposix-functions/*.texi: Likewise.
40940         * doc/glibc-functions/*.texi: Likewise.
40941         * doc/glibc-headers/*.texi: Likewise.
40943 2011-09-11  Bruno Haible  <bruno@clisp.org>
40945         unistd et al.: Don't assume <unistd.h> exists.
40946         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
40947         does not exist.
40948         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
40949         exist. But include <stdlib.h>.
40950         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
40951         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
40952         symlink() does not exist.
40953         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
40954         include <io.h> instead.
40955         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
40956         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
40957         include <direct.h> instead.
40958         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
40959         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
40960         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
40961         <io.h> instead.
40962         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
40963         correctly if the system does not have hard links.
40964         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
40965         <direct.h> instead.
40966         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
40967         it when looking for function declarations.
40968         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
40969         <direct.h> and <io.h> instead.
40970         * doc/posix-headers/unistd.texi: More details about MSVC problem.
40972 2011-09-11  Bruno Haible  <bruno@clisp.org>
40974         strcase: Support for MSVC.
40975         * modules/strcase (Status, Notice): Remove obsoletion mark.
40976         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
40977         * doc/posix-functions/strncasecmp.texi: Likewise.
40979         strings: Don't assume <strings.h> exists.
40980         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
40981         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
40982         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
40983         * doc/posix-headers/strings.texi: Mention the MSVC problem.
40985 2011-09-11  Bruno Haible  <bruno@clisp.org>
40987         dirent: Don't assume <dirent.h> exists.
40988         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
40989         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
40990         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
40991         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
40993 2011-09-11  Bruno Haible  <bruno@clisp.org>
40995         Fix wint_t on MSVC.
40996         * lib/wchar.in.h (wint_t): On MSVC, override it.
40997         * lib/wctype.in.h (wint_t): Likewise.
40998         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
40999         MSVC.
41000         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
41001         * doc/posix-headers/wctype.texi: Likewise.
41003 2011-09-11  Bruno Haible  <bruno@clisp.org>
41005         sys_types: Fix typo.
41006         * lib/sys_types.in.h: Fix typo in comment.
41007         Reported by Paul Eggert.
41009         Support for MSVC compiler: Ensure size_t gets defined.
41010         * modules/strings (Depends-on): Add 'sys_types'.
41011         * modules/sys_uio (Depends-on): Likewise.
41012         * lib/sys_uio.in.h: Update comment.
41014         C++ tests for module 'sys_types'.
41015         * modules/sys_types-c++-tests: New file.
41016         * tests/test-sys_types-c++.cc: New file.
41018         Tests for module 'sys_types'.
41019         * modules/sys_types-tests: New file.
41020         * tests/test-sys_types.c: New file.
41022         New module 'sys_types'.
41023         * lib/sys_types.in.h: New file.
41024         * m4/sys_types_h.m4: New file.
41025         * modules/sys_types: New file.
41026         * doc/posix-headers/sys_types.texi: Mention the new module and the
41027         size_t problem on MSVC 9.
41029 2011-09-11  Bruno Haible  <bruno@clisp.org>
41031         Support for MSVC compiler: Avoid division by a literal 0.
41032         * lib/math.in.h (NAN): Define through a function call also on MSVC.
41033         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
41034         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
41035         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
41036         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
41037         * tests/infinity.h: New file.
41038         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
41039         on MSVC.
41040         * tests/test-ceilf1.c: Include infinity.h.
41041         (main): Use Infinityf.
41042         * tests/test-ceil1.c: Include infinity.h.
41043         (main): Use Infinityd.
41044         * tests/test-ceill.c: Include infinity.h.
41045         (main): Use Infinityl.
41046         * tests/test-dprintf-posix.c: Include infinity.h.
41047         (test_function): Use Infinityd.
41048         * tests/test-floorf1.c: Include infinity.h.
41049         (main): Use Infinityf.
41050         * tests/test-floor1.c: Include infinity.h.
41051         (main): Use Infinityd.
41052         * tests/test-floorl.c: Include infinity.h.
41053         (main): Use Infinityl.
41054         * tests/test-fprintf-posix.c: Include infinity.h.
41055         (test_function): Use Infinityd.
41056         * tests/test-frexp.c: Include infinity.h.
41057         (main): Use Infinityd.
41058         * tests/test-frexpl.c: Include infinity.h.
41059         (main): Use Infinityl.
41060         * tests/test-isfinite.c: Include infinity.h.
41061         (test_isfinitef): Use Infinityf.
41062         (test_isfinited): Use Infinityd.
41063         (test_isfinitel): Use Infinityl.
41064         * tests/test-isinf.c: Include infinity.h.
41065         (test_isinff): Use Infinityf.
41066         (test_isinfd): Use Infinityd.
41067         (test_isinfl): Use Infinityl.
41068         * tests/test-isnan.c: Include infinity.h.
41069         (test_float): Use Infinityf.
41070         (test_double): Use Infinityd.
41071         (test_long_double): Use Infinityl.
41072         * tests/test-isnanf.h: Include infinity.h.
41073         (main): Use Infinityf.
41074         * tests/test-isnand.h: Include infinity.h.
41075         (main): Use Infinityd.
41076         * tests/test-isnanl.h: Include infinity.h.
41077         (main): Use Infinityl.
41078         * tests/test-ldexpl.c: Include infinity.h.
41079         (main): Use Infinityl.
41080         * tests/test-printf-posix.h: Include infinity.h.
41081         (test_function): Use Infinityd.
41082         * tests/test-roundf1.c: Include infinity.h.
41083         (main): Use Infinityf.
41084         * tests/test-round1.c: Include infinity.h.
41085         (main): Use Infinityd.
41086         * tests/test-roundl.c: Include infinity.h.
41087         (main): Use Infinityl.
41088         * tests/test-signbit.c: Include infinity.h.
41089         (test_signbitf): Use Infinityf.
41090         (test_signbitd): Use Infinityd.
41091         (test_signbitl): Use Infinityl.
41092         * tests/test-snprintf-posix.h: Include infinity.h.
41093         (test_function): Use Infinityd, Infinityl.
41094         * tests/test-sprintf-posix.h: Include infinity.h.
41095         (test_function): Use Infinityd, Infinityl.
41096         * tests/test-truncf1.c: Include infinity.h.
41097         (main): Use Infinityf.
41098         * tests/test-trunc1.c: Include infinity.h.
41099         (main): Use Infinityd.
41100         * tests/test-truncl.c: Include infinity.h.
41101         (main): Use Infinityl.
41102         * tests/test-vasnprintf-posix.c: Include infinity.h.
41103         (test_function): Use Infinityd, Infinityl.
41104         * tests/test-vasprintf-posix.c: Include infinity.h.
41105         (test_function): Use Infinityd, Infinityl.
41106         * modules/ceilf-tests (Files): Add tests/infinity.h.
41107         * modules/ceil-tests (Files): Likewise.
41108         * modules/ceill-tests (Files): Likewise.
41109         * modules/dprintf-posix-tests (Files): Likewise.
41110         * modules/floorf-tests (Files): Likewise.
41111         * modules/floor-tests (Files): Likewise.
41112         * modules/floorl-tests (Files): Likewise.
41113         * modules/fprintf-posix-tests (Files): Likewise.
41114         * modules/frexp-tests (Files): Likewise.
41115         * modules/frexp-nolibm-tests (Files): Likewise.
41116         * modules/frexpl-tests (Files): Likewise.
41117         * modules/frexpl-nolibm-tests (Files): Likewise.
41118         * modules/isfinite-tests (Files): Likewise.
41119         * modules/isinf-tests (Files): Likewise.
41120         * modules/isnan-tests (Files): Likewise.
41121         * modules/isnanf-tests (Files): Likewise.
41122         * modules/isnanf-nolibm-tests (Files): Likewise.
41123         * modules/isnand-tests (Files): Likewise.
41124         * modules/isnand-nolibm-tests (Files): Likewise.
41125         * modules/isnanl-tests (Files): Likewise.
41126         * modules/isnanl-nolibm-tests (Files): Likewise.
41127         * modules/ldexpl-tests (Files): Likewise.
41128         * modules/printf-posix-tests (Files): Likewise.
41129         * modules/roundf-tests (Files): Likewise.
41130         * modules/round-tests (Files): Likewise.
41131         * modules/roundl-tests (Files): Likewise.
41132         * modules/signbit-tests (Files): Likewise.
41133         * modules/snprintf-posix-tests (Files): Likewise.
41134         * modules/sprintf-posix-tests (Files): Likewise.
41135         * modules/truncf-tests (Files): Likewise.
41136         * modules/trunc-tests (Files): Likewise.
41137         * modules/truncl-tests (Files): Likewise.
41138         * modules/vasnprintf-posix-tests (Files): Likewise.
41139         * modules/vasprintf-posix-tests (Files): Likewise.
41140         * modules/vdprintf-posix-tests (Files): Likewise.
41141         * modules/vfprintf-posix-tests (Files): Likewise.
41142         * modules/vprintf-posix-tests (Files): Likewise.
41143         * modules/vsnprintf-posix-tests (Files): Likewise.
41144         * modules/vsprintf-posix-tests (Files): Likewise.
41145         * modules/xprintf-posix-tests (Files): Likewise.
41147 2011-09-11  Bruno Haible  <bruno@clisp.org>
41149         Ensure pid_t gets defined.
41150         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
41151         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
41152         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
41153         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
41154         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
41155         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
41156         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
41157         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
41158         * tests/test-fcntl-h.c: Check that pid_t is defined.
41159         * tests/test-sched.c: Likewise.
41160         * tests/test-termios.c: Likewise.
41161         * tests/test-time.c: Likewise.
41162         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
41163         * doc/posix-headers/signal.texi: Likewise.
41164         * doc/posix-headers/sys_types.texi: Likewise.
41165         * doc/posix-headers/time.texi: Likewise.
41167 2011-09-11  Bruno Haible  <bruno@clisp.org>
41169         acl: Fix compilation on Solaris 10 (older version).
41170         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
41171         of ACE_EVERYONE.
41172         * lib/set-mode-acl.c (qset_acl): Likewise.
41173         Reported by Christian Jullien <eligis@orange.fr>.
41175 2011-09-10  Bruno Haible  <bruno@clisp.org>
41177         iconv, unsetenv: Add support for MSVC compiler.
41178         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
41179         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
41181 2011-09-10  Bruno Haible  <bruno@clisp.org>
41183         *printf: Add support for MSVC compiler.
41184         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
41185         handles the exception caused by the %n directive. When cross-compiling,
41186         guess no on native Windows.
41187         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
41188         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
41189         emulate it through vsnprintf.
41190         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
41191         * doc/posix-functions/dprintf.texi: Update documentation regarding
41192         MSVC 9.
41193         * doc/posix-functions/fprintf.texi: Likewise.
41194         * doc/posix-functions/printf.texi: Likewise.
41195         * doc/posix-functions/snprintf.texi: Likewise.
41196         * doc/posix-functions/sprintf.texi: Likewise.
41197         * doc/posix-functions/swprintf.texi: Likewise.
41198         * doc/posix-functions/vdprintf.texi: Likewise.
41199         * doc/posix-functions/vfprintf.texi: Likewise.
41200         * doc/posix-functions/vprintf.texi: Likewise.
41201         * doc/posix-functions/vsnprintf.texi: Likewise.
41202         * doc/posix-functions/vsprintf.texi: Likewise.
41203         * doc/glibc-functions/asprintf.texi: Likewise.
41204         * doc/glibc-functions/obstack_printf.texi: Likewise.
41205         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
41206         * doc/glibc-functions/vasprintf.texi: Likewise.
41208 2011-09-10  Bruno Haible  <bruno@clisp.org>
41210         nocrash: Add support for native Windows.
41211         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
41213 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
41214             Bruno Haible  <bruno@clisp.org>
41216         absolute-header, include-next: Add support for MSVC compiler.
41217         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
41218         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
41219         directory separator in #line directives.
41220         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
41221         recognize also backslash as directory separator in #line directives.
41223 2011-09-08  Jim Meyering  <meyering@redhat.com>
41225         maint.mk: mark the post-release commit log with "maint: " prefix
41226         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
41227         one-line commit-log summary.
41229 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
41230             Bruno Haible  <bruno@clisp.org>
41232         Doc about crypt functions.
41233         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
41234         systems.
41235         * doc/posix-functions/encrypt.texi: Likewise.
41236         * doc/posix-functions/setkey.texi: Likewise.
41238 2011-09-08  Simon Josefsson  <simon@josefsson.org>
41240         * lib/gc.h: Fix copyright header.
41242 2011-09-07  Bruno Haible  <bruno@clisp.org>
41244         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
41245         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
41246         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
41248 2011-09-07  Bruno Haible  <bruno@clisp.org>
41250         openat: Work around compilation error with OSF/1 5.1 DTK cc.
41251         * lib/fopen.c: Use different syntax for include of <stdio.h>.
41252         * lib/freopen.c: Likewise.
41253         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
41254         * lib/lstat.c: Likewise.
41255         * lib/stat.c: Likewise.
41256         * lib/open.c: Use different syntax for include of <fcntl.h>.
41257         * lib/openat.c: Include fcntl.h again, explicitly.
41259 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
41261         parse-datetime: document the newly accepted format
41262         * doc/parse-datetime.texi (Combined date and time of day items):
41263         New section.
41265 2011-09-06  Bruno Haible  <bruno@clisp.org>
41267         acl: Fix a test failure on newer Solaris 10 with ZFS.
41268         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
41269         ENOSYS as no ACL.
41270         Reported by Jim Meyering.
41272 2011-09-06  Bruno Haible  <bruno@clisp.org>
41274         acl: Update for AIX >= 5.3 with NFS.
41275         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
41276         ENOSYS as no ACL.
41278         acl: Fix a test failure on AIX >= 5.3 with NFS.
41279         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
41280         as no ACL.
41282 2011-09-06  Bruno Haible  <bruno@clisp.org>
41284         acl: Fix a test failure on IRIX 6.5 with NFS.
41285         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
41286         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
41287         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
41288         * lib/copy-acl.c (qcopy_acl): Likewise.
41290 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
41292         openat: port to AIX 7.1 with large files
41293         AIX 7.1 does a "#define openat open64at" if large files are in use,
41294         so we can't simply #undef openat.  Use the orig_openat trick (similar
41295         to orig_open in lib/open.c) to work around the problem.  Problem
41296         reported by Kevin Brott for GNU tar, in the thread containing
41297         <http://lists.gnu.org/r/bug-tar/2011-09/msg00032.html>.
41298         * lib/openat.c (__need_system_fcntl_h): Define first.
41299         Include <fcntl.h> and <sys/types.h> before undefining.
41300         (orig_openat) [HAVE_OPENAT]: New inline function.
41301         (openat) [HAVE_OPENAT]: Do not undef.
41302         (rpl_openat): Use orig_openat, not openat.
41304 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
41305             Bruno Haible  <bruno@clisp.org>
41307         acl: Avoid errors on NonStop Kernel.
41308         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
41309         ENOTSUP errors.
41311 2011-09-05  Bruno Haible  <bruno@clisp.org>
41313         acl: Clean up Solaris code.
41314         * lib/acl-internal.h: Remove no-op #if.
41315         * lib/file-has-acl.c: Likewise.
41316         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
41317         * lib/copy-acl.c (qcopy_acl): Likewise.
41319 2011-09-05  Bruno Haible  <bruno@clisp.org>
41321         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
41322         binaries built on the original Solaris 10.
41323         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
41324         trivial.
41326 2011-09-05  Bruno Haible  <bruno@clisp.org>
41328         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
41329         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
41330         10.
41331         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
41332         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
41333         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
41334         instead of acl_get, facl_get, acl_set, facl_set.
41336 2011-09-05  Bruno Haible  <bruno@clisp.org>
41338         copy-file: Try unit tests on more file systems.
41339         * tests/test-copy-file-1.sh: New file.
41340         * tests/test-copy-file-2.sh: New file.
41341         * modules/copy-file-tests (Files): Add them.
41342         (Makefile.am): Add them to TESTS.
41344         acl: Try unit tests on more file systems.
41345         * tests/test-file-has-acl-1.sh: New file.
41346         * tests/test-file-has-acl-2.sh: New file.
41347         * tests/test-set-mode-acl-1.sh: New file.
41348         * tests/test-set-mode-acl-2.sh: New file.
41349         * tests/test-copy-acl-1.sh: New file.
41350         * tests/test-copy-acl-2.sh: New file.
41351         * modules/acl-tests (Files): Add them.
41352         (Makefile.am): Add them to TESTS.
41354 2011-09-04  Bruno Haible  <bruno@clisp.org>
41356         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
41357         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
41358         10.
41359         (OLD_ALLOW, OLD_DENY): New macros.
41360         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
41361         ACE_ACCESS_ALLOWED_ACE_TYPE.
41362         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
41363         ACE_ACCESS_DENIED_ACE_TYPE.
41364         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
41365         (NEW_ACE_EXECUTE): Fix value.
41366         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
41367         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
41368         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
41369         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
41370         NEW_ACE_SYNCHRONIZE): New macros.
41371         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
41372         instead of acl_fromtext, acl_set, facl_set.
41373         Fixes a coreutils/tests/cp/perm failure.
41375 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
41377         openat: test for fstatat (..., 0) bug
41378         Further testing with tar suggests that fstatat (..., 0)
41379         does not work in general, on AIX 7.1; see
41380         <http://lists.gnu.org/r/bug-tar/2011-09/msg00023.html>.
41381         So, give up entirely on AIX 7.1's fstatat, and fall back on our
41382         replacement fstatat (which is what older AIX releases were using
41383         anyway).
41384         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
41385         use is now changed to orig_fstatat.  This was probably the right
41386         thing to do anyway.
41387         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
41388         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
41389         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
41390         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
41391         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
41392         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
41393         if the bug is found.
41395         openat: test for fstatat (AT_FDCWD, ..., 0) bug
41396         This tests for another fstatat bug on AIX 7.1:
41397         fstatat (AT_FDCWD, ..., 0) does not work.  See
41398         <http://lists.gnu.org/r/bug-tar/2011-09/msg00015.html>.
41399         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
41400         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
41401         (rpl_fstatat): Adjust so that it works around either (or both)
41402         bugs if present.
41403         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
41405 2011-09-03  Karl Berry  <karl@gnu.org>
41407         * doc/regex.texi (Character Class Operators): Avoid literal ":"
41408         in index entries.
41410 2011-09-02  Bruno Haible  <bruno@clisp.org>
41412         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
41413         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
41414         values of AR, ARFLAGS, RANLIB.
41415         Reported by John W. Eaton <jwe@gnu.org> for Octave.
41417 2011-09-02  Bruno Haible  <bruno@clisp.org>
41419         Find 'ar' program that fits with --host argument.
41420         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
41422 2011-09-02  Bruno Haible  <bruno@clisp.org>
41424         tests: init.sh: Support any non-GNU diff.
41425         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
41426         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
41427         Solaris 8.
41429 2011-09-02  Bruno Haible  <bruno@clisp.org>
41431         tests: init.sh: work also with any non-GNU diff that supports -u
41432         * tests/init.sh: Relax check for diff -u support.
41433         Rather than checking for GNU diff via --version, simply check
41434         for support for -u itself.  Useful at least on OpenBSD 4.9,
41435         AIX 7.1, IRIX 6.5, and Solaris 10.
41437 2011-09-01  Bruno Haible  <bruno@clisp.org>
41439         strtoimax, strtoumax: Document problem on HP-UX 11.
41440         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
41441         * doc/posix-functions/strtoumax.texi: Likewise.
41443 2011-09-01  Bruno Haible  <bruno@clisp.org>
41445         strtoumax: Avoid link error on OSF/1 with DTK cc.
41446         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
41447         defined as a function.
41448         * modules/strtoumax (Depends-on, configure.ac): Test only whether
41449         strtoumax is defined, not whether it is declared.
41451 2011-09-01  Bruno Haible  <bruno@clisp.org>
41453         strtoimax: Avoid link error on OSF/1 with DTK cc.
41454         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
41455         defined as a function.
41456         * modules/strtoimax (Depends-on, configure.ac): Test only whether
41457         strtoimax is defined, not whether it is declared.
41459 2011-09-01  Bruno Haible  <bruno@clisp.org>
41461         imaxdiv: Avoid link error on OSF/1 with DTK cc.
41462         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
41463         as a function.
41464         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
41465         whether it is declared.
41467 2011-09-01  Bruno Haible  <bruno@clisp.org>
41469         imaxabs: Avoid link error on OSF/1 with DTK cc.
41470         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
41471         as a function.
41472         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
41473         whether it is declared.
41475 2011-09-01  Bruno Haible  <bruno@clisp.org>
41477         Tests for module 'strtoumax'.
41478         * modules/strtoumax-tests: New file.
41479         * tests/test-strtoumax.c: New file.
41481         Tests for module 'strtoimax'.
41482         * modules/strtoimax-tests: New file.
41483         * tests/test-strtoimax.c: New file.
41485         Tests for module 'imaxdiv'.
41486         * modules/imaxdiv-tests: New file.
41487         * tests/test-imaxdiv.c: New file.
41489         Tests for module 'imaxabs'.
41490         * modules/imaxabs-tests: New file.
41491         * tests/test-imaxabs.c: New file.
41493 2011-09-01  Bruno Haible  <bruno@clisp.org>
41495         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
41496         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
41497         pthread_create.
41499 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
41501         openat: work around AIX 7.1 fstatat issue
41502         This should fix the problem that was not properly fixed
41503         in the previous change, dated 2011-08-30.
41504         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
41505         __need_system_stat_h defined.
41506         (orig_fstatat) [HAVE_FSTATAT]: New function.
41507         (rpl_fstatat): Go back to the old way of doing things,
41508         except call orig_fstatat instead of fstatat.
41509         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
41510         Remove unnecessary check whether fstatat fills in st_size etc.
41512 2011-09-01  Bruno Haible  <bruno@clisp.org>
41514         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
41515         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
41516         just include the system's header.
41518 2011-08-31  Jim Meyering  <meyering@redhat.com>
41520         tests: avoid spurious assertion failure in test-float.c on ppc64
41521         * tests/test-float.c (test_long_double): Comment out an assertion,
41522         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
41523         with gcc-4.4.4.
41525         maint: indent with spaces, not TABs
41526         I need to get in the habit of running gnulib's "make check".
41527         Both of these would have been caught.
41528         * m4/largefile.m4: Indent with spaces, not TABs.
41529         * lib/parse-datetime.y (iso_8601_time): Likewise.
41530         Spotted by Pádraig Brady.
41532         test-parse-datetime.c: accommodate a relatively strict gcc warning
41533         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
41534         to avoid a warning from gcc's -Werror=missing-declarations.
41535         Insert a few spaces-before-funcall-parenthesis.
41537 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
41539         parse-datetime: accept ISO 8601 date and time rep with "T" separator
41540         The parser now accepts ISO 8601 date-time strings with "T" as the
41541         separator.  It has long parsed dates like "2004-02-29 16:21:42"
41542         with a space between the date and time strings.  Now it also parses
41543         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
41544         variants like "2004-02-29T16:21:42.333-07:00"
41545         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
41546         of day representation using the 'T' separator character.
41547         * doc/parse-datetime.texi (General date syntax): replace use of
41548         deprecated --iso-8601 option with --rfc-3339 in example of date
41549         command output formats that can be parsed.
41550         * tests/test-parse-datetime.c (tm_diff): New function, taken from
41551         lib/parse-datetime.y.
41552         (gmt_offset): New function.
41553         (main): Add additional test cases to validate ISO8601 extended
41554         date and time of day parsing.
41556 2011-08-31  Bruno Haible  <bruno@clisp.org>
41558         freopen: Documentation.
41559         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
41560         name.
41561         Reported by Claudio Bley <claudio.bley@gmail.com>.
41563 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
41565         freopen: Don't crash if the filename argument is NULL.
41566         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
41567         NULL.
41569 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
41571         openat: work around AIX 7.1 fstatat bug
41572         Problem reported by Kevin Brott for GNU tar, in the thread containing
41573         <http://lists.gnu.org/r/bug-tar/2011-08/msg00015.html>.
41574         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
41575         FSTATAT_ST_SIZE_ETC_BROKEN.
41576         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
41577         rpl_fstatat.
41578         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
41579         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
41580         AC_CHECK_FUNCS_ONCE for fstatat.
41581         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
41582         fchmodat, mkdirat, openat and unlinkat.
41584 2011-08-30  Bruno Haible  <bruno@clisp.org>
41586         Avoid endless recursions if config.h includes some header files.
41587         * lib/fopen.c (__need_FILE): Define already before including config.h.
41588         * lib/freopen.c (__need_FILE): Likewise.
41589         * lib/open.c (__need_system_fcntl_h): Likewise.
41590         * lib/stat.c (__need_system_sys_stat_h): Likewise.
41591         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
41592         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
41594 2011-08-25  Karl Berry  <karl@gnu.org>
41596         * config/srclist.txt (ylwrap): new try.
41597         * build-aux/ylwrap: new file.
41599 2011-08-23  Bruno Haible  <bruno@clisp.org>
41601         tmpdir: Use a good default directory on native Windows.
41602         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
41603         (P_tmpdir): Default to _P_tmpdir on native Windows.
41604         (path_search): On native Windows, try the value returned by GetTempPath
41605         before trying P_tmpdir.
41606         * modules/tmpdir (Depends-on): Add pathmax.
41607         Suggested by John Darrington <john@darrington.wattle.id.au>.
41609 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
41611         doc: fix typo in README-release
41612         * top/README-release: Capitalize first word of a sentence.
41614 2011-08-19  Jim Meyering  <meyering@redhat.com>
41616         fts: do not exhaust memory when processing million-entry directories
41617         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
41618         directory would require about 256*N bytes of memory.  Thus, it was
41619         easy to construct a directory too large to be processed by any of
41620         those tools.  With this change, fts' maximum memory utilization is
41621         now limited to around 30MB.
41622         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
41623         (fts_read): When we've processed the final entry (i.e., when
41624         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
41625         using the parent entry to read any remaining entries.  Dispatch
41626         depending on what fts_build returns:
41627         - NULL+stop, aka failure: stop
41628         - NULL otherwise: move up in the dir hierarchy
41629         - non-NULL: handle this new entry
41630         (fts_build): Declare and use new local, continue_readdir.
41631         Prepare to be called from fts_read, when the entries
41632         from a partially-read directory have just been exhausted.
41633         In that case, we'll skip the opendir and instead use the parent's
41634         fts_dirp and derive dir_fd from that.
41635         Finally, in the readdir loop, if we read max_entries entries,
41636         exit the loop ensuring *not* to call closedir.  This is required
41637         so that fts_dirp can be reused on a subsequent call.
41638         Prompted by Ben England's report of memory exhaustion in find
41639         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
41641         maint: fts: move decl of `dp' down into while loop; split a long line
41642         * lib/fts.c (fts_build): No semantic change.
41644         fts: add/use new struct member, fts_dirp
41645         We are about to use this to manage any directory with
41646         too many entries to read all of them into memory at once.
41647         To do that, we'll need to save the DIR* pointer in each
41648         affected FTSENT struct.
41649         * lib/fts_.h: Include <dirent.h>.
41650         (struct FTSENT) [fts_dirp]: New member.
41651         * lib/fts.c (closedir_and_clear): Define.
41652         Use it in place of closedir so that we are sure to
41653         clear the new fts_dirp member when done with it.
41654         (fts_alloc): Initialize the new member.
41655         (fts_lfree): Free, if needed.
41657         maint: fts: give __opendir2 a new parameter and rename
41658         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
41659         than surreptitiously using sole caller's "dir_fd".
41660         (fts_opendir): Rename from __opendir2.
41662         maint: fts.c: remove __opendir2's now-unused parameter, oflag
41663         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
41665         maint: fts.c: correct off-by-one indentation
41666         * lib/fts.c (fts_build): Correct indentation, change style
41667         of a couple of block comments, and bracing style.
41669         maint: fts.c: move __opendir2 #define "up" out of function body
41670         * lib/fts.c (__opendir2): Move "up".  No semantic change.
41672         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
41673         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
41674         out for a long time and besides was useful only on BSD systems.
41676 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
41678         regex: port to Stratus OpenVOS
41679         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
41680         define to empty, rather than attempting nonportable optimizations.
41681         Problem reported by Paul Green in:
41682         http://lists.gnu.org/r/bug-diffutils/2011-08/msg00047.html
41683         and fix suggested by Eric Blake in:
41684         http://lists.gnu.org/r/bug-gnulib/2011-08/msg00143.html
41686 2011-08-17  Eric Blake  <eblake@redhat.com>
41688         getcwd: fix test failures on mingw
41689         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
41690         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
41691         test if long directory cannot be created, and allow mingw errno.
41693         getcwd-lgpl: fix m4 to match relaxed test for BSD
41694         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
41695         (gl_FUNC_GETCWD_SIGNATURE): New macro.
41696         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
41697         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
41698         signature problem.
41700         getcwd: fix compilation on mingw64
41701         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
41702         getcwd.
41703         Reported by Marc-André Lureau.
41705         pipe2: silence compiler warning
41706         * lib/pipe2.c (pipe2): Hide label if it is not used.
41708 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
41710         relocatable-prog: fix link error
41711         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
41712         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
41713         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
41714         into modules/relocatable-lib without noticing that
41715         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
41716         also needs to build relocatable.c.
41718 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
41720         getaddrinfo: fix sh typo in gai_strerrorA decl checking
41721         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
41722         shell code: it contained a 'break' that was not in a loop.
41723         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
41724         via a shell-language loop; this may have been true in old Autoconf
41725         versions, but it's not true in Autoconf 2.68.  I found this bug
41726         when testing coreutils git on Solaris 8, whose shell complains
41727         about the syntax error.
41729 2011-08-12  Simon Josefsson  <simon@josefsson.org>
41731         * lib/base64.c: Fix comment to reference RFC 4648.
41732         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
41733         <gvtulder@gmail.com>.
41735 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
41737         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
41739         po/Makefile.in.in: fix make -q problem
41740         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
41741         rule, since there's no file named 'check-macro-version' and its
41742         use as a file breaks make -q.
41743         (all): Don't depend on check-macro-version.
41744         (CHECK_MACRO_VERSION): New macro.
41745         (stamp-po): Use it.
41747         configmake: fix make -q problem
41748         * modules/configmake (configmake.h): Update configmake.h's time stamp
41749         even if the file does not change.  Otherwise, 'make -q' fails.
41750         Problem reported by Simon Josefsson in
41751         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00088.html>.
41753 2011-08-11  Jim Meyering  <meyering@redhat.com>
41755         git-version-gen: correct the advice in a comment
41756         * build-aux/git-version-gen: Correct comment.
41757         Don't recommend to list .tarball-version in .gitignore.
41759 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
41761         base64: fix off-by-one buffer size bug
41762         Problem and (trivial) fix reported by Gijs van Tulder in
41763         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00083.html>.
41764         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
41765         * tests/test-base64.c (main): Catch the bug.
41767 2011-08-10  Eric Blake  <eblake@redhat.com>
41769         closein: correct comments
41770         * lib/closein.c (close_stdin): Improve comments.
41772 2011-08-09  Bruno Haible  <bruno@clisp.org>
41774         More tests for 'fseeko'.
41775         * tests/test-fseeko3.c: New file, from Eric Blake.
41776         * tests/test-fseeko3.sh: New file.
41777         * modules/fseeko-tests (Files): Add them.
41778         (TESTS): Add test-fseeko3.sh.
41779         (check_PROGRAMS): Add test-fseeko3.
41781 2011-08-09  Eric Blake  <eblake@redhat.com>
41783         fseeko: remove unneeded hack
41784         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
41786         fseeko: fix bug on glibc
41787         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
41788         Reported by John W. Eaton.
41790 2011-08-08  Bruno Haible  <bruno@clisp.org>
41792         unictype/base: Fix interoperability with preinstalled libunistring.
41793         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
41794         Reported by Simon Josefsson.
41796 2011-08-08  Bruno Haible  <bruno@clisp.org>
41798         iswblank: Detect declaration correctly.
41799         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
41800         AC_CHECK_DECLS invocation.
41802 2011-08-08  Bruno Haible  <bruno@clisp.org>
41804         tcgetsid: Detect declaration correctly.
41805         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
41806         AC_CHECK_DECLS invocation.
41807         Reported by Simon Josefsson.
41809 2011-08-08  Eric Blake  <eblake@redhat.com>
41811         largefile: fix typo that regressed large file support
41812         * modules/largefile (configure.ac-early): Fix section name.
41814 2011-08-06  Karl Berry  <karl@gnu.org>
41816         * MODULES.html.sh (func_all_files): _Noreturn is no longer
41817         a separate module.
41819 2011-08-05  Simon Josefsson  <simon@josefsson.org>
41821         openat: Fix warnings and commens when building unlinkat.c on Hurd.
41822         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
41823         get prototype for free.
41825 2011-08-04  Bruno Haible  <bruno@clisp.org>
41827         Tests for module 'pathmax'.
41828         * modules/pathmax-tests: New file.
41829         * tests/test-pathmax.c: New file.
41831         canonicalize-lgpl: Support larger filenames on the Hurd.
41832         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
41833         Reported by Paul Eggert.
41835         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
41836         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
41837         * lib/chdir-long.h: Include pathmax.h.
41838         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
41839         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
41840         (PATH_MAX): Remove code that is done by pathmax.h.
41841         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
41842         * lib/tmpfile.c: Add a comment.
41843         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
41844         * modules/chdir-long (Depends-on): Add pathmax.
41845         * modules/getcwd (Depends-on): Add pathmax.
41846         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
41847         is not defined.
41848         * doc/posix-headers/limits.texi: Mention the pathmax module.
41849         * NEWS: Mention the change.
41851 2011-08-02  Bruno Haible  <bruno@clisp.org>
41853         pthread_sigmask: Actually use results of gl_THREADLIB.
41854         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
41855         gl_THREADLIB, not gl_[]THREADLIB.
41856         Reported by Eric Blake.
41858 2011-08-02  Jim Meyering  <meyering@redhat.com>
41860         maint.mk: relax the default _gl_TS_function_match regexp
41861         * top/maint.mk (_gl_TS_function_match): Don't require at least one
41862         space between function name and "(" in an "extern" declaration.
41863         That would fail to match a decl with no space there: extern void foo();
41865 2011-07-31  Iain Nicol  <iain@thenicols.net>
41867         git-version-gen: document that EXTRA_DIST must include .version
41868         * build-aux/git-version-gen: In the how-to-use comment, document
41869         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
41870         will fail when run from an unpacked distribution tarball.
41872 2011-08-01  Bruno Haible  <bruno@clisp.org>
41874         wctype-h: Fix last change.
41875         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
41876         REPLACE_TOWLOWER to 0.
41877         Reported by Sam Steingold <sds@gnu.org>.
41879 2011-07-31  Bruno Haible  <bruno@clisp.org>
41881         frexpl: Update autoconf test.
41882         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
41883         according to changes of 2011-06-20.
41885 2011-07-31  Bruno Haible  <bruno@clisp.org>
41887         sys_utsname: Add support for Minix.
41888         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
41889         <sys/utsname.h>.
41890         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
41891         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
41893 2011-07-31  Bruno Haible  <bruno@clisp.org>
41895         strings: Add support for Minix.
41896         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
41897         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
41898         * doc/posix-headers/strings.texi: Document the Minix problem.
41900 2011-07-31  Bruno Haible  <bruno@clisp.org>
41902         wctype-h: Add support for Minix.
41903         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
41904         REPLACE_TOWLOWER.
41905         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
41906         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
41907         REPLACE_ISWCNTRL.
41909 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
41911         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
41912         This is a performance improvement for 64-bit hosts: it causes the
41913         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
41915 2011-07-31  Bruno Haible  <bruno@clisp.org>
41917         stdioext: Add support for Minix.
41918         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
41919         * lib/fpurge.c (fpurge): Likewise.
41920         * lib/freadahead.c (freadahead): Likewise.
41921         * lib/freadable.c (freadable): Likewise.
41922         * lib/freading.c (freading): Likewise.
41923         * lib/freadptr.c (freadptr): Likewise.
41924         * lib/freadseek.c (freadptrinc): Likewise.
41925         * lib/fseeko.c (rpl_fseeko): Likewise.
41926         * lib/fseterr.c (fseterr): Likewise.
41927         * lib/fwritable.c (fwritable): Likewise.
41928         * lib/fwriting.c (fwriting): Likewise.
41929         * lib/fflush.c (clear_ungetc_buffer): Update comment.
41930         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
41932 2011-07-31  Bruno Haible  <bruno@clisp.org>
41934         errno: Port to Minix.
41935         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
41936         ECONNABORTED are defined.
41937         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
41938         GNULIB_defined_ECONNABORTED): New macros.
41939         * lib/strerror-override.h (strerror_override): Test also
41940         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
41941         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
41942         ECONNABORTED.
41943         * doc/posix-headers/errno.texi: Mention the Minix problem.
41945 2011-07-31  Bruno Haible  <bruno@clisp.org>
41947         Work around declaration collisions on Minix.
41948         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
41949         defined, set REPLACE_MBSINIT.
41950         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
41951         defined, set REPLACE_MBRTOWC.
41952         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
41953         set REPLACE_MBRLEN.
41954         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
41955         defined, set REPLACE_MBSRTOWCS.
41956         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
41957         defined, set REPLACE_WCRTOMB.
41958         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
41959         defined, set REPLACE_WCSRTOMBS.
41961 2011-07-31  Bruno Haible  <bruno@clisp.org>
41963         Add support for Minix with ACK compiler.
41964         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
41965         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
41966         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
41968 2011-07-31  Bruno Haible  <bruno@clisp.org>
41970         Documentation about Minix.
41971         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
41972         * doc/glibc-headers/*.texi: Likewise.
41973         * doc/posix-functions/*.texi: Likewise.
41974         * doc/glibc-functions/*.texi: Likewise.
41976 2011-07-31  Bruno Haible  <bruno@clisp.org>
41978         snippet/warn-on-use: Fix indentation.
41979         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
41981 2011-07-25  Jim Meyering  <meyering@redhat.com>
41983         tests: test-update-copyright.sh: remove unnecessary "rm" commands
41984         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
41985         commands.
41987 2011-07-27  Jim Meyering  <meyering@redhat.com>
41989         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
41990         * top/maint.mk (gl_extract_significant_defines_): Now that
41991         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
41992         gnulib/lib/signal.in.h, and now that we recommend to
41993         define-if-undefined those two symbols in application code,
41994         we must filter them out of the "significant" list.
41995         This avoids a "make syntax-check" failure in coreutils.
41997 2011-07-26  Eric Blake  <eblake@redhat.com>
41999         warnings: add comments about previous patch
42000         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
42001         * m4/include_next.m4: Likewise.
42002         * m4/warn-on-use.m4: Likewise.
42003         * m4/warnings.m4: Likewise, and simplify use.
42004         Suggested by Stefano Lattarini.
42006         include-next, warnings: support older autoconf
42007         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
42008         AS_VAR_PUSHDEF in a way that works with older autoconf.
42009         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
42010         Reported by Daniel P. Berrange.
42012 2011-07-25  Bruno Haible  <bruno@clisp.org>
42014         fseek, ftell: Fix doc.
42015         * doc/posix-functions/fseek.texi: Reword statement about
42016         AC_SYS_LARGEFILE.
42017         * doc/posix-functions/ftell.texi: Likewise.
42019 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
42020             Bruno Haible  <bruno@clisp.org>
42022         Add dependencies to the 'largefile' module.
42023         * modules/fopen (Depends-on): Add 'largefile'.
42024         * modules/freopen (Depends-on): Likewise.
42025         * modules/fseeko (Depends-on): Likewise.
42026         * modules/ftello (Depends-on): Likewise.
42027         * modules/glob (Depends-on): Likewise.
42028         * modules/lseek (Depends-on): Likewise.
42029         * modules/lstat (Depends-on): Likewise.
42030         * modules/mkostemp (Depends-on): Likewise.
42031         * modules/mkostemps (Depends-on): Likewise.
42032         * modules/mkstemp (Depends-on): Likewise.
42033         * modules/mkstemps (Depends-on): Likewise.
42034         * modules/open (Depends-on): Likewise.
42035         * modules/openat (Depends-on): Likewise.
42036         * modules/pread (Depends-on): Likewise.
42037         * modules/pwrite (Depends-on): Likewise.
42038         * modules/scandir (Depends-on): Likewise.
42039         * modules/stat (Depends-on): Likewise.
42040         * modules/tmpfile (Depends-on): Likewise.
42041         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
42042         since the containing module now depends on the largefile module.
42043         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
42044         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
42045         off_t is fixed by gnulib.
42046         * doc/posix-functions/freopen.texi: Likewise.
42047         * doc/posix-functions/fseeko.texi: Likewise.
42048         * doc/posix-functions/fstatat.texi: Likewise.
42049         * doc/posix-functions/ftello.texi: Likewise.
42050         * doc/posix-functions/glob.texi: Likewise.
42051         * doc/posix-functions/lseek.texi: Likewise.
42052         * doc/posix-functions/lstat.texi: Likewise.
42053         * doc/posix-functions/mkstemp.texi: Likewise.
42054         * doc/posix-functions/open.texi: Likewise.
42055         * doc/posix-functions/openat.texi: Likewise.
42056         * doc/posix-functions/pread.texi: Likewise.
42057         * doc/posix-functions/pwrite.texi: Likewise.
42058         * doc/posix-functions/scandir.texi: Likewise.
42059         * doc/posix-functions/stat.texi: Likewise.
42060         * doc/posix-functions/tmpfile.texi: Likewise.
42061         * doc/glibc-functions/mkostemp.texi: Likewise.
42062         * doc/glibc-functions/mkostemps.texi: Likewise.
42063         * doc/glibc-functions/mkstemps.texi: Likewise.
42065 2011-07-25  Bruno Haible  <bruno@clisp.org>
42067         fcntl: Move AC_LIBOBJ invocation to module description.
42068         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
42069         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
42071         fcntl: Remove call-in from fchdir.m4.
42072         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
42073         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
42075         dup3: Remove potential call-in from fchdir.m4.
42076         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
42077         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
42079         dup2: Move AC_LIBOBJ invocation to module description.
42080         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
42081         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
42082         Don't invoke AC_LIBOBJ.
42083         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
42085         dup2: Remove call-in from fchdir.m4.
42086         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
42087         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
42089         fclose: Move AC_LIBOBJ invocation to module description.
42090         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
42091         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
42092         to 1.
42093         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
42095         fclose: Remove call-in from close.m4.
42096         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
42097         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
42099         close: Move AC_LIBOBJ invocation to module description.
42100         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
42101         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
42102         1.
42103         * modules/close (configure.ac): Invoke AC_LIBOBJ.
42105         close: Remove call-in from fchdir.m4.
42106         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
42107         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
42109         open: Move AC_LIBOBJ invocation to module description.
42110         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
42111         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
42112         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
42114         open: Remove call-in from fchdir.m4.
42115         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
42116         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
42118         fchdir: Start to remove gl_REPLACE_* idiom.
42119         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
42120         (gl_FUNC_FCHDIR): Invoke it.
42122 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
42124         * lib/ftell.c (ftell): Comment out cast.
42126         close: use gl_REPLACE_FCLOSE only if defined
42127         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
42128         is defined.  The close module doesn't depend on the fclose module
42129         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
42130         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00392.html>.
42131         I reproduced the problem with "./gnulib-tool --test close sys_socket".
42133 2011-07-24  Jim Meyering  <meyering@redhat.com>
42135         test-select.h: avoid warning when using gcc's -Wmissing-declarations
42136         * tests/test-select.h (test_function): Declare as "static".
42138 2011-07-24  Bruno Haible  <bruno@clisp.org>
42140         doc: Mention the effects of AC_SYS_LARGEFILE.
42141         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
42142         on this function.
42143         * doc/posix-functions/aio_error.texi: Likewise.
42144         * doc/posix-functions/aio_fsync.texi: Likewise.
42145         * doc/posix-functions/aio_read.texi: Likewise.
42146         * doc/posix-functions/aio_return.texi: Likewise.
42147         * doc/posix-functions/aio_suspend.texi: Likewise.
42148         * doc/posix-functions/aio_write.texi: Likewise.
42149         * doc/posix-functions/fgetpos.texi: Likewise.
42150         * doc/posix-functions/fopen.texi: Likewise.
42151         * doc/posix-functions/freopen.texi: Likewise.
42152         * doc/posix-functions/fsetpos.texi: Likewise.
42153         * doc/posix-functions/fstatvfs.texi: Likewise.
42154         * doc/posix-functions/ftruncate.texi: Likewise.
42155         * doc/posix-functions/ftw.texi: Likewise.
42156         * doc/posix-functions/getrlimit.texi: Likewise.
42157         * doc/posix-functions/glob.texi: Likewise.
42158         * doc/posix-functions/lio_listio.texi: Likewise.
42159         * doc/posix-functions/lockf.texi: Likewise.
42160         * doc/posix-functions/mkstemp.texi: Likewise.
42161         * doc/posix-functions/mmap.texi: Likewise.
42162         * doc/posix-functions/nftw.texi: Likewise.
42163         * doc/posix-functions/openat.texi: Likewise.
42164         * doc/posix-functions/opendir.texi: Likewise.
42165         * doc/posix-functions/posix_fadvise.texi: Likewise.
42166         * doc/posix-functions/posix_fallocate.texi: Likewise.
42167         * doc/posix-functions/pread.texi: Likewise.
42168         * doc/posix-functions/pwrite.texi: Likewise.
42169         * doc/posix-functions/readdir.texi: Likewise.
42170         * doc/posix-functions/readdir_r.texi: Likewise.
42171         * doc/posix-functions/rewinddir.texi: Likewise.
42172         * doc/posix-functions/scandir.texi: Likewise.
42173         * doc/posix-functions/seekdir.texi: Likewise.
42174         * doc/posix-functions/setrlimit.texi: Likewise.
42175         * doc/posix-functions/statvfs.texi: Likewise.
42176         * doc/posix-functions/telldir.texi: Likewise.
42177         * doc/posix-functions/tmpfile.texi: Likewise.
42178         * doc/posix-functions/truncate.texi: Likewise.
42179         * doc/glibc-functions/fallocate.texi: Likewise.
42180         * doc/glibc-functions/fstatfs.texi: Likewise.
42181         * doc/glibc-functions/fts_children.texi: Likewise.
42182         * doc/glibc-functions/fts_read.texi: Likewise.
42183         * doc/glibc-functions/getdirentries.texi: Likewise.
42184         * doc/glibc-functions/mkostemp.texi: Likewise.
42185         * doc/glibc-functions/mkostemps.texi: Likewise.
42186         * doc/glibc-functions/mkstemps.texi: Likewise.
42187         * doc/glibc-functions/preadv.texi: Likewise.
42188         * doc/glibc-functions/pwritev.texi: Likewise.
42189         * doc/glibc-functions/sendfile.texi: Likewise.
42190         * doc/glibc-functions/statfs.texi: Likewise.
42192 2011-07-24  Bruno Haible  <bruno@clisp.org>
42194         doc: Fix typo.
42195         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
42197 2011-07-24  Bruno Haible  <bruno@clisp.org>
42199         doc: Mention fsusage.
42200         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
42202 2011-07-24  Bruno Haible  <bruno@clisp.org>
42204         doc: Mention new glibc headers and functions.
42205         * doc/glibc-headers/gshadow.texi: New file.
42206         * doc/glibc-functions/endsgent.texi: New file.
42207         * doc/glibc-functions/fgetsgent.texi: New file.
42208         * doc/glibc-functions/fgetsgent_r.texi: New file.
42209         * doc/glibc-functions/getsgent.texi: New file.
42210         * doc/glibc-functions/getsgent_r.texi: New file.
42211         * doc/glibc-functions/getsgnam.texi: New file.
42212         * doc/glibc-functions/getsgnam_r.texi: New file.
42213         * doc/glibc-functions/putsgent.texi: New file.
42214         * doc/glibc-functions/setsgent.texi: New file.
42215         * doc/glibc-functions/sgetsgent.texi: New file.
42216         * doc/glibc-functions/sgetsgent_r.texi: New file.
42217         * doc/glibc-functions/malloc_info.texi: New file.
42218         * doc/glibc-functions/preadv.texi: New file.
42219         * doc/glibc-functions/pwritev.texi: New file.
42220         * doc/glibc-functions/register_printf_modifier.texi: New file.
42221         * doc/glibc-functions/register_printf_specifier.texi: New file.
42222         * doc/glibc-functions/register_printf_type.texi: New file.
42223         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
42224         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
42225         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
42226         * doc/glibc-functions/pthread_getname_np.texi: New file.
42227         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
42228         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
42229         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
42230         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
42231         * doc/glibc-functions/pthread_setname_np.texi: New file.
42232         * doc/glibc-functions/pthread_sigqueue.texi: New file.
42233         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
42234         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
42235         * doc/glibc-functions/qsort_r.texi: New file.
42236         * doc/glibc-functions/quick_exit.texi: New file.
42237         * doc/glibc-functions/syncfs.texi: New file.
42238         * doc/gnulib.texi: Include them.
42239         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
42240         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
42241         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
42242         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
42243         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
42244         * doc/glibc-functions/execvpe.texi: Likewise.
42246 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
42248         ftell: don't include <unistd.h>
42249         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
42250         guaranteed to define off_t, and the ftell module depends on the
42251         stdio module.
42253         ftell: do not assume wraparound signed arithmetic
42254         * lib/ftell.c: Include <limits.h>.
42255         (ftell): Don't assume wraparound signed arithmetic.
42257 2011-07-24  Bruno Haible  <bruno@clisp.org>
42259         close: No longer depend on module 'fclose'.
42260         * modules/close (Depends-on): Remove fclose.
42261         * NEWS: Mention the change.
42262         Suggested by Sam Steingold <sds@gnu.org>.
42264 2011-07-24  Bruno Haible  <bruno@clisp.org>
42266         fsusage: Enable large volume support on AIX >= 5.2.
42267         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
42268         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
42269         instead of STAT_STATVFS.
42270         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
42272         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
42273         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
42274         f_blocks field only on MacOS X.
42276         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
42277         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
42278         * modules/fsusage (Depends-on): Add largefile.
42280 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
42282         * README: Modernize discussion of signed integers.
42283         Assuming overflow wraparound is no longer safe.
42284         Mention ones' complement and signed magnitude.
42286 2011-07-22  Bruno Haible  <bruno@clisp.org>
42288         select tests, pselect tests: Refactor.
42289         * tests/test-select.h: New file, extracted from tests/test-select.c.
42290         (select_fn): New type.
42291         (test, do_select, do_select_nowait, do_select_wait, test_tty,
42292         test_connect_first, test_accept_first, test_pair, test_socket_pair,
42293         test_pipe): Add my_select argument.
42294         (test_function): Renamed from main. Add my_select argument.
42295         * tests/test-select.c: Move most code to tests/test-select.h. Include
42296         test-select.h.
42297         * modules/select-tests (Files): Add tests/test-select.h.
42298         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
42299         (my_select, main): New functions.
42300         * modules/pselect-tests (Files): Add tests/test-select.h,
42301         tests/macros.h, tests/signature.h.
42302         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
42303         (configure.ac): Check for <sys/wait.h>.
42305 2011-07-22  Bruno Haible  <bruno@clisp.org>
42307         sys_select tests: Check the signature of FD_*.
42308         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
42309         signature tests from here...
42310         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
42311         here.
42312         * modules/sys_select-tests (Files): Add tests/signature.h.
42314 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
42316         largefile: new module, replacing large-inode
42317         Pádraig Brady suggested this in <http://debbugs.gnu.org/9140#20>.
42318         * MODULES.html.sh: Add largefile, remove large-inode.
42319         * modules/largefile, m4/largefile.m4: New files.
42320         * modules/large-inode, m4/large-inode.m4: Remove.
42322         fsusage: port to MacOS X 10.7 with 4 TiB file systems
42323         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
42324         implementations that use only 32 bits to count blocks.
42325         On typical hosts with 1024-byte blocks, this fails with file
42326         systems as small as 4 TiB.  Problem reported by Herb Wartens
42327         <http://debbugs.gnu.org/9140> and this should also fix a similar
42328         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
42330         large-inode: New module
42331         * MODULES.html.sh: Add it.
42332         * modules/large-inode, m4/large-inode.m4: New files.
42334         extensions: Enable extensions on MacOS X 10.5 and later.
42335         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
42337 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
42339         file-has-acl: use acl_extended_file_nofollow if available
42340         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
42341         (acl_extended_file): New macro.
42342         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
42343         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
42345 2011-07-21  Bruno Haible  <bruno@clisp.org>
42347         Declare system functions in a way that works with C++.
42348         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
42349         declare fdopendir as extern "C".
42350         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
42351         declare frexpl as extern "C".
42352         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
42353         declare gai_strerror as extern "C".
42354         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
42355         programs, declare gai_strerror as extern "C".
42356         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
42357         declare getlogin_r as extern "C".
42358         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
42359         as extern "C".
42360         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
42361         declare ldexpl as extern "C".
42362         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
42363         as extern "C".
42364         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
42365         program, declare getmntinfo as extern "C".
42366         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
42367         stpncpy as extern "C".
42368         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
42369         program, declare __xpg_strerror_r as extern "C".
42370         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
42371         strndup as extern "C".
42372         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
42373         declare memset and bzero as extern "C".
42374         Reported by Sam Steingold <sds@gnu.org>.
42376 2011-07-12  Jim Meyering  <meyering@redhat.com>
42378         maint.mk: prohibit inclusion of "verify.h" without use
42379         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
42381 2011-07-19  Pádraig Brady  <P@draigBrady.com>
42383         timer-time: A new module to check for timer_settime()
42384         * m4/timer_time.m4: Check for the posix function.
42385         * modules/timer-time: Add the new module.
42386         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
42387         Mention it.
42389 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
42390             Bruno Haible  <bruno@clisp.org>
42392         pthread_sigmask: assume POSIX threads if --avoid=threadlib
42393         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
42394         not defined, assume POSIX threads and look for pthread_sigmask in
42395         $LIBS, without changing $CPPFLAGS.
42397 2011-07-19  Bruno Haible  <bruno@clisp.org>
42399         strstr: Update cross-compilation guess.
42400         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
42401         CPUs, guess no, in view of glibc
42402         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
42403         Suggested by Eric Blake. Reported by Reuben Thomas.
42405 2011-07-19  Pádraig Brady  <P@draigBrady.com>
42407         getopt-gnu: suppress core dumps from detection code
42408         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
42409         to suppress core dumps that may well occur on glibc systems.
42410         * modules/getopt-gnu: Depend on nocrash.
42412 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
42414         pthread_sigmask: ensure usleep is declared
42415         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
42416         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
42418 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
42420         doc: Document NonStop portability issues.
42421         * doc/posix-functions/sigaction.texi (sigaction):
42422         * doc/posix-headers/signal.texi (signal.h):
42423         Document NonStop.  See Joachim Schmitz in
42424         http://lists.gnu.org/r/bug-coreutils/2011-07/msg00062.html
42426 2011-07-15  Bruno Haible  <bruno@clisp.org>
42428         ffsl, ffsll: Avoid unportable behaviour.
42429         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
42431 2011-07-15  Bruno Haible  <bruno@clisp.org>
42433         ffs: More tests.
42434         * tests/test-ffs.c (NBITS): New macro.
42435         (main): Add more tests.
42436         * tests/test-ffsl.c (NBITS): New macro.
42437         (main): Add more tests.
42438         * tests/test-ffsll.c (NBITS): New macro.
42439         (main): Add more tests.
42441 2011-07-15  Eric Blake  <eblake@redhat.com>
42443         ffsl, ffsll: new modules
42444         * modules/ffsl: New file.
42445         * modules/ffsll: Likewise.
42446         * m4/ffsl.m4: Likewise.
42447         * m4/ffsll.m4: Likewise.
42448         * lib/ffsl.c: Likewise.
42449         * lib/ffsl.h: Likewise.
42450         * lib/ffsll.c: Likewise.
42451         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
42452         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
42453         * modules/string (Makefile.am): Substitute witnesses.
42454         * lib/strings.in.h (ffsl, ffsll): Declare.
42455         * modules/ffsl-tests: New test file.
42456         * modules/ffsll-tests: Likewise.
42457         * tests/test-ffsl.c: Likewise.
42458         * tests/test-ffsll.c: Likewise.
42459         * MODULES.html.sh (Integer arithmetic functions): Mention it.
42460         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
42461         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
42463         ffs: fix m4 prerequisite
42464         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
42466         ffs: avoid undefined behavior
42467         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
42468         * tests/test-ffs.c (naive, main): Avoid signed shifts.
42469         Reported by Bruno Haible.
42471 2011-07-12  Bruno Haible  <bruno@clisp.org>
42473         pthread_sigmask: Rely on module 'threadlib'.
42474         * modules/pthread_sigmask (Depends-on): Add threadlib.
42475         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
42476         is defined.
42478 2011-07-12  Bruno Haible  <bruno@clisp.org>
42480         regex: Depend on module 'strcase'.
42481         * modules/regex (Depends-on): Add strcase, for strcasecmp().
42483 2011-07-12  Jim Meyering  <meyering@redhat.com>
42485         warn-on-use: fix typo in file name
42486         * modules/snippet/warn-on-use (Files): Correct file name:
42487         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
42489 2011-07-12  Bruno Haible  <bruno@clisp.org>
42491         strings: Document module.
42492         * doc/posix-headers/strings.texi: Mention module 'strings'.
42494 2011-07-12  Bruno Haible  <bruno@clisp.org>
42496         Rename module '_Noreturn' to 'snippet/_Noreturn'.
42497         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
42498         (Files, Makefile.am): Update.
42499         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
42500         * modules/stdlib (Depends-on): Update.
42502 2011-07-12  Bruno Haible  <bruno@clisp.org>
42504         * NEWS: Mention the changes.
42506         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
42507         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
42508         (Files, Makefile.am): Update.
42509         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
42510         * modules/arpa_inet (Depends-on): Update.
42511         * modules/ctype (Depends-on): Update.
42512         * modules/dirent (Depends-on): Update.
42513         * modules/fcntl-h (Depends-on): Update.
42514         * modules/glob (Depends-on): Update.
42515         * modules/iconv-h (Depends-on): Update.
42516         * modules/inttypes-incomplete (Depends-on): Update.
42517         * modules/langinfo (Depends-on): Update.
42518         * modules/locale (Depends-on): Update.
42519         * modules/math (Depends-on): Update.
42520         * modules/netdb (Depends-on): Update.
42521         * modules/poll-h (Depends-on): Update.
42522         * modules/pty (Depends-on): Update.
42523         * modules/search (Depends-on): Update.
42524         * modules/signal (Depends-on): Update.
42525         * modules/spawn (Depends-on): Update.
42526         * modules/stdio (Depends-on): Update.
42527         * modules/stdlib (Depends-on): Update.
42528         * modules/string (Depends-on): Update.
42529         * modules/strings (Depends-on): Update.
42530         * modules/sys_file (Depends-on): Update.
42531         * modules/sys_ioctl (Depends-on): Update.
42532         * modules/sys_select (Depends-on): Update.
42533         * modules/sys_socket (Depends-on): Update.
42534         * modules/sys_stat (Depends-on): Update.
42535         * modules/sys_time (Depends-on): Update.
42536         * modules/sys_times (Depends-on): Update.
42537         * modules/sys_utsname (Depends-on): Update.
42538         * modules/sys_wait (Depends-on): Update.
42539         * modules/termios (Depends-on): Update.
42540         * modules/time (Depends-on): Update.
42541         * modules/unistd (Depends-on): Update.
42542         * modules/wchar (Depends-on): Update.
42543         * modules/wctype-h (Depends-on): Update.
42544         * MODULES.html.sh (Support for building libraries and executables):
42545         Update.
42547         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
42548         * modules/snippet/unused-parameter: Renamed from
42549         modules/unused-parameter.
42550         (Files, Makefile.am): Update.
42551         * build-aux/snippet/unused-parameter.h: Renamed from
42552         build-aux/unused-parameter.h.
42553         * modules/selinux-h (Depends-on): Update.
42554         * modules/unistr/base (Depends-on): Update.
42555         * MODULES.html.sh (Core language properties): Update.
42557         Rename module 'link-warning' to 'snippet/link-warning'.
42558         * modules/snippet/link-warning: Renamed from modules/link-warning.
42559         (Files, Makefile.am): Update.
42560         * build-aux/snippet/link-warning.h: Renamed from
42561         build-aux/link-warning.h.
42562         * MODULES.html.sh (Support for building libraries and executables):
42563         Update.
42565         Rename module 'c++defs' to 'snippet/c++defs'.
42566         * modules/snippet/c++defs: Renamed from modules/c++defs.
42567         (Files, Makefile.am): Update.
42568         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
42569         * modules/arpa_inet (Depends-on): Update.
42570         * modules/ctype (Depends-on): Update.
42571         * modules/dirent (Depends-on): Update.
42572         * modules/fcntl-h (Depends-on): Update.
42573         * modules/glob (Depends-on): Update.
42574         * modules/iconv-h (Depends-on): Update.
42575         * modules/langinfo (Depends-on): Update.
42576         * modules/locale (Depends-on): Update.
42577         * modules/math (Depends-on): Update.
42578         * modules/netdb (Depends-on): Update.
42579         * modules/poll-h (Depends-on): Update.
42580         * modules/pty (Depends-on): Update.
42581         * modules/search (Depends-on): Update.
42582         * modules/signal (Depends-on): Update.
42583         * modules/spawn (Depends-on): Update.
42584         * modules/stdio (Depends-on): Update.
42585         * modules/stdlib (Depends-on): Update.
42586         * modules/string (Depends-on): Update.
42587         * modules/strings (Depends-on): Update.
42588         * modules/sys_ioctl (Depends-on): Update.
42589         * modules/sys_select (Depends-on): Update.
42590         * modules/sys_socket (Depends-on): Update.
42591         * modules/sys_stat (Depends-on): Update.
42592         * modules/sys_time (Depends-on): Update.
42593         * modules/sys_wait (Depends-on): Update.
42594         * modules/termios (Depends-on): Update.
42595         * modules/time (Depends-on): Update.
42596         * modules/unistd (Depends-on): Update.
42597         * modules/wchar (Depends-on): Update.
42598         * modules/wctype-h (Depends-on): Update.
42600         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
42601         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
42602         (Files, Makefile.am): Update.
42603         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
42604         * modules/argv-iter (Depends-on): Update.
42605         * modules/arpa_inet (Depends-on): Update.
42606         * modules/dirent (Depends-on): Update.
42607         * modules/fcntl-h (Depends-on): Update.
42608         * modules/fnmatch (Depends-on): Update.
42609         * modules/getopt-posix (Depends-on): Update.
42610         * modules/glob (Depends-on): Update.
42611         * modules/iconv-h (Depends-on): Update.
42612         * modules/inttypes-incomplete (Depends-on): Update.
42613         * modules/locale (Depends-on): Update.
42614         * modules/math (Depends-on): Update.
42615         * modules/netdb (Depends-on): Update.
42616         * modules/search (Depends-on): Update.
42617         * modules/signal (Depends-on): Update.
42618         * modules/spawn (Depends-on): Update.
42619         * modules/stdio (Depends-on): Update.
42620         * modules/stdlib (Depends-on): Update.
42621         * modules/string (Depends-on): Update.
42622         * modules/strings (Depends-on): Update.
42623         * modules/sys_socket (Depends-on): Update.
42624         * modules/sys_stat (Depends-on): Update.
42625         * modules/sys_time (Depends-on): Update.
42626         * modules/sys_times (Depends-on): Update.
42627         * modules/sys_utsname (Depends-on): Update.
42628         * modules/time (Depends-on): Update.
42629         * modules/unistd (Depends-on): Update.
42630         * modules/wchar (Depends-on): Update.
42631         * MODULES.html.sh (Support for building libraries and executables):
42632         Update.
42634 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
42636         Improvements on _Noreturn and related modules.
42638         modules/_Exit-tests: test _Noreturn too
42639         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
42640         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
42641         (main): Use them.
42643         stdnoreturn, stdnoreturn-tests: remove modules
42644         They're not needed here and a bit premature for use elsewhere.  See
42645         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00209.html>.
42646         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
42647         * tests/test-stdnoreturn.c: Remove files.
42648         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
42649         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
42650         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
42651         and using noreturn.
42652         * modules/openat, modules/sigpipe-die, modules/xalloc:
42653         * modules/xmemdup0, modules/xstrtol:
42654         Remove dependency on stdnoreturn.
42656         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
42657         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
42658         Reparenthesize to avoid GCC warning.
42659         Support Microsoft's syntax.
42660         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
42662         _Noreturn-tests: remove module
42663         * modules/_Noreturn-tests: Remove.
42664         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
42665         * tests/test-_Noreturn.c: Remove.
42666         * tests/test-stdnoreturn.c: Merge from the old
42667         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
42669 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
42671         _Noreturn, stdnoreturn, and related modules.
42673         * top/maint.mk: Adjust to new noreturn support.
42674         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
42675         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
42677         xalloc: use stdnoreturn.h
42678         * lib/xalloc.h: Include <stdnoreturn.h>.
42679         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
42680         * modules/xalloc (Depends-on): Add stdnoreturn.
42682         xstrtol: use stdnoreturn.h
42683         * lib/xstrtol.h: Include <stdnoreturn.h>.
42684         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
42685         * modules/xstrtol (Depends-on): Add stdnoreturn.
42687         xmemdup0: use stdnoreturn.h
42688         * lib/xmemdup0.h: Include <stdnoreturn.h>.
42689         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
42690         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
42692         sigpipe-die: use stdnoreturn.h
42693         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
42694         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
42695         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
42697         openat: use stdnoreturn.h
42698         * lib/openat.h: Include <stdnoreturn.h>.
42699         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
42700         * modules/openat (Depends-on): Add stdnoreturn.
42702         * lib/openat-die.c (openat_save_fail): Modernize comment.
42704         * lib/xalloc-die.c (xalloc_die): Modernize comment.
42706         * lib/glthread/thread.h: Modernize comment.
42708         obstack: use _Noreturn
42709         * lib/obstack.c (__attribute__): Remove macro.
42710         (print_and_abort): Use _Noreturn.
42712         c-stack: use _Noreturn
42713         * lib/c-stack.c (die, overflow_handler, segv_handler):
42714         Use _Noreturn rather than __attribute__((noreturn)).
42716         argmatch-tests, exclude_tests: use _Noreturn
42717         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
42718         Remove.
42719         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
42721         stdlib: use _Noreturn
42722         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
42723         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
42724         * modules/stdlib (Depends-on): Add _Noreturn.
42725         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
42727         stdnoreturn-tests: new module
42728         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
42730         stdnoreturn: new module
42731         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
42732         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
42734         _Noreturn-tests: new module
42735         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
42737         _Noreturn: new module
42738         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
42739         New section, mentioning it.
42740         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
42742         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
42744 2011-07-11  Eric Blake  <eblake@redhat.com>
42746         ffs: new module
42747         * modules/ffs: New file.
42748         * m4/ffs.m4: Likewise.
42749         * lib/ffs.c: Likewise.
42750         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
42751         * modules/strings (Makefile.am): Substitute witness.
42752         (Depends-on): Add c++defs.
42753         * lib/strings.in.h (ffs): Declare.
42754         * modules/ffs-tests: New test file.
42755         * tests/test-ffs.c: Test new module.
42756         * MODULES.html.sh (Integer arithmetic functions): Mention it.
42757         * doc/posix-functions/ffs.texi (ffs): Likewise.
42759         regex: avoid compiler warning
42760         * lib/regex.c (includes): Include <strings.h>, for use of
42761         strcasecmp in regcomp.c.
42762         Reported by Joachim Schmitz.
42764 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
42766         stdint: respect system's intmax_t if INTMAX_MAX
42767         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
42768         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
42769         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
42770         long but int64_t is long long, and where we will clash with the
42771         system intmax_t if we override it.  See
42772         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00160.html>.
42773         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
42774         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
42775         similarly for UINTMAX_C.
42777 2011-07-08  Bruno Haible  <bruno@clisp.org>
42779         pthread_sigmask tests: Avoid a compiler warning.
42780         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
42781         non-zero.
42783         sigprocmask tests: A better way to avoid a compiler warning.
42784         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
42785         (main): Complain if system() returns non-zero.
42786         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
42788 2011-07-08  Bruno Haible  <bruno@clisp.org>
42790         pthread_sigmask: Work around IRIX bug.
42791         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
42792         bug.
42793         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
42794         there may be unblocked pending signals.
42795         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
42797 2011-07-08  Bruno Haible  <bruno@clisp.org>
42799         pthread_sigmask: Work around Cygwin bug.
42800         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
42801         bug.
42802         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
42803         the system's pthread_sigmask function.
42804         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
42806 2011-07-08  Bruno Haible  <bruno@clisp.org>
42808         pthread_sigmask: Work around bug in single-threaded implementation.
42809         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
42810         FreeBSD, HP-UX, Solaris bug.
42811         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
42812         * lib/pthread_sigmask.c: Include <stddef.h>.
42813         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
42814         the system's pthread_sigmask function.
42815         * modules/pthread_sigmask (configure.ac): Invoke
42816         gl_PREREQ_PTHREAD_SIGMASK.
42817         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
42818         HP-UX, Solaris.
42820 2011-07-08  Eric Blake  <eblake@redhat.com>
42822         test-sigprocmask: avoid compiler warning
42823         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
42824         * tests/test-sigprocmask.c (main): Use it to silence warning.
42825         Reported by Jim Meyering.
42827         test-snprintf: avoid compiler warning
42828         * tests/test-snprintf.c (main): Avoid shadowed declaration.
42829         * tests/test-vsnprintf.c (main): Likewise.
42830         Reported by Jim Meyering.
42832 2011-07-08  Bruno Haible  <bruno@clisp.org>
42834         Tests for module 'pthread_sigmask'.
42835         * modules/pthread_sigmask-tests: New file.
42836         * tests/test-pthread_sigmask1.c: New file, based on
42837         tests/test-sigprocmask.c.
42838         * tests/test-pthread_sigmask2.c: New file.
42840 2011-07-08  Jim Meyering  <meyering@redhat.com>
42842         test-getopt.h: avoid warning about an unused variable
42843         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
42845 2011-07-07  Jim Meyering  <meyering@redhat.com>
42847         maint: reduce list of files exempt from sc_prohibit_leading_TABs
42848         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
42849         now that it no longer contains leading TABs.
42850         Remove unused "url=FIXME" statement.
42852 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
42854         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
42855         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
42856         When gl_THREADLIB is not in use, assume that the POSIX sematics
42857         are desired.  This is better for Emacs, which uses POSIX semantics
42858         on GNUish and/or POSIXish platforms, and does not use threads at
42859         all otherwise.
42861         pthread_sigmask: fix typo when testing for libraries
42862         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
42863         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
42865 2011-07-08  Eric Blake  <eblake@redhat.com>
42867         fts: introduce FTS_NOATIME
42868         * lib/fts_.h (FTS_NOATIME): New bit flag.
42869         (FTS_OPTIONMASK): Adjust.
42870         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
42871         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
42873 2011-07-08  Bruno Haible  <bruno@clisp.org>
42875         Tests for module 'thread'.
42876         * modules/thread-tests: New file.
42877         * tests/test-thread_self.c: New file.
42878         * tests/test-thread_create.cc: New file.
42880 2011-07-08  Bruno Haible  <bruno@clisp.org>
42882         thread: Avoid gcc warnings when using gl_thread_self().
42883         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
42884         'void *'.
42885         (gl_thread_self_pointer): Update.
42887 2011-07-07  Bruno Haible  <bruno@clisp.org>
42889         signal-c++-tests: Check declaration of pthread_sigmask.
42890         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
42891         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
42892         $(LIB_PTHREAD_SIGMASK).
42894 2011-07-07  Bruno Haible  <bruno@clisp.org>
42896         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
42897         * lib/signal.in.h (pthread_sigmask): Override if
42898         REPLACE_PTHREAD_SIGMASK is 1.
42899         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
42900         REPLACE_PTHREAD_SIGMASK.
42901         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
42902         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
42903         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
42904         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
42905         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
42907 2011-07-07  Bruno Haible  <bruno@clisp.org>
42909         pthread_sigmask: Ensure declaration in <signal.h>.
42910         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
42911         include <pthread.h>.
42912         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
42913         problem.
42915 2011-07-07  Bruno Haible  <bruno@clisp.org>
42917         pthread_sigmask: Document the module.
42918         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
42920 2011-07-07  Bruno Haible  <bruno@clisp.org>
42922         pthread_sigmask: Follow gnulib conventions.
42923         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
42924         gl_PTHREAD_SIGMASK.
42925         * modules/pthread_sigmask (configure.ac): Update.
42927 2011-07-07  Bruno Haible  <bruno@clisp.org>
42929         pthread_sigmask: Make declaration C++ safe.
42930         * lib/signal.in.h: In two special conditions, just do an #include_next.
42931         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
42932         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
42933         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
42934         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
42935         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
42936         not REPLACE_PTHREAD_MASK.
42937         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
42938         not REPLACE_PTHREAD_MASK.
42939         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
42941 2011-07-07  Bruno Haible  <bruno@clisp.org>
42943         pthread_sigmask: Fix return value.
42944         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
42945         * lib/pthread_sigmask.c: New file.
42946         * modules/pthread_sigmask (Files): Add it.
42947         (configure.ac): Invoke AC_LIBOBJ.
42949 2011-07-07  Eric Blake  <eblake@redhat.com>
42951         getopt: more portable argv creation
42952         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
42953         const, use char arrays rather than strings.
42954         Suggested by Paul Eggert.
42956 2011-07-07  Bruno Haible  <bruno@clisp.org>
42958         Tests for module 'sigprocmask'.
42959         * modules/sigprocmask-tests: New file.
42960         * tests/test-sigprocmask.c: New file.
42962 2011-07-07  Bruno Haible  <bruno@clisp.org>
42964         float tests: Tweak.
42965         * tests/test-float.c (main): Tweak skip message.
42967 2011-07-07  Eric Blake  <eblake@redhat.com>
42969         getopt: avoid compiler warning during configure
42970         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
42971         assigning string literals to non-const pointer.
42973         getopt-gnu: avoid crash in glibc getopt
42974         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
42975         * tests/test-getopt.h (test_getopt): Enhance test.
42976         * tests/test-getopt_long.h (test_getopt_long): Likewise.
42977         * doc/posix-functions/getopt.texi (getopt): Document it.
42978         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
42979         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
42980         Likewise.
42982 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
42984         getopt: handle W; without long options in getopt [BZ #12922]
42985         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
42986         but no long options are defined, just return 'W'.
42988 2011-07-07  Bruno Haible  <bruno@clisp.org>
42990         Avoid literal tabs.
42991         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
42992         variable containing a tab instead of a literal tab.
42993         Reported by Jim Meyering.
42995 2011-07-07  Bruno Haible  <bruno@clisp.org>
42997         Comments.
42998         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
43000 2011-07-06  Bruno Haible  <bruno@clisp.org>
43002         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
43003         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
43004         <winsock2.h>.
43005         (rpl_fd_isset, FD_ISSET): New definitions, copied from
43006         lib/sys_socket.in.h.
43007         (close, gethostname): Hide declarations from <winsock2.h>.
43008         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
43009         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
43010         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
43011         (select): Don't override if gnulib's <sys/select.h> was already
43012         included.
43013         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
43014         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
43015         setsockopt, shutdown, select): Tweak indentation.
43017 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
43019         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
43020         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
43021         in an application that does not use the sys_select module.
43023 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
43025         poll: do not return 0 on timeout=-1
43026         * lib/poll.c: Loop with yield if no events occurred.
43028 2011-07-06  Eric Blake  <eblake@redhat.com>
43030         pthread_sigmask: always replace when not using pthread
43031         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
43032         replacement when using some threading other than pthread.  Fix
43033         logic bug.
43035 2011-07-06  Bruno Haible  <bruno@clisp.org>
43037         Comments.
43038         * m4/printf.m4: Update comments about mingw.
43040 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
43042         sys_select: define sigset_t more portably
43043         * lib/sys_select.in.h: Always include <sys/types.h>, since
43044         we now need sigset_t and mingw defines it there.
43045         Include <signal.h> before split inclusion guard, to avoid
43046         mishaps on Solaris, whose <signal.h> eventually includes us.
43047         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
43048         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
43049         which come from ...
43050         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
43051         gl_CHECK_TYPE_SIGSET_T.
43052         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
43053         does the real work.
43054         * modules/sys_select (Depends-on): Add 'signal'.
43056         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
43057         Suggested by Bruno Haible.
43059         pselect: Use pthread_sigmask, not sigprocmask.
43060         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
43061         multithreaded apps better than sigprocmask does.
43062         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
43063         sigprocmask directly.
43065 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
43067         * lib/pselect.c (pselect): Use plain name, without "rpl_".
43068         Don't #undef,  since we don't need any underlying pselect.
43069         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
43070         (Depends-on): Add select.
43071         (Link): Add $(LIBSOCKET).
43072         These changes suggested by Bruno Haible.
43074         pselect: document better
43075         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
43076         * doc/posix-functions/pselect.texi (pselect): Document new module.
43078         pthread_sigmask: new module
43079         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
43080         * doc/posix-functions/pthread_sigmask.texi: Document new module.
43081         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
43082         This is done only as a macro; I don't know how well that'll
43083         work for C++.  Move <sys/types.h> include before the include_next,
43084         to avoid mishap on Solaris.
43085         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
43086         * modules/signal (Makefile.am): Substitute the check's results.
43087         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
43089         test-pselect: new module
43090         * modules/pselect-tests, tests/test-pselect.c: New files.
43091         * tests/test-select.c, tests/test-sys_select-c++.cc:
43092         If TEST_PSELECT is defined, test pselect instead of testing select.
43094         * tests/test-sys_select.c (sigset_t): Test for it, too.
43095         Suggested by Bruno Haible.
43097 2011-07-05  Eric Blake  <eblake@redhat.com>
43099         snprintf: guarantee %1$d, for libintl
43100         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
43101         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
43102         * doc/posix-functions/snprintf.texi (snprintf): Update.
43103         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
43104         * tests/test-snprintf.c (main): Enhance test.
43105         * tests/test-vsnprintf.c (main): Likewise.
43107 2011-07-05  Jim Meyering  <meyering@redhat.com>
43109         maint: exempt stdio-read.c and stdio-write.c from the cppi check
43110         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
43111         per Bruno's request, to accommodate this idiom (no space after "#")
43112         even when the function is inside an #if block:
43113         char *
43114         gets (char *s)
43115         #undef gets
43116         {
43117           ...
43118         }
43120 2011-07-04  Jim Meyering  <meyering@redhat.com>
43122         maint: indent with spaces, not TABs, and add a rule to check this
43123         * tests/test-userspec.c: Indent with spaces, not TABs.
43124         * tests/test-argp.c: Likewise.
43125         * tests/test-c-stack2.sh: Likewise.
43126         * tests/test-parse-duration.sh: Likewise
43127         * m4/strtod.m4: Likewise.
43128         * m4/alloca.m4: Likewise.
43129         * m4/pselect.m4: Likewise.
43130         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
43132 2011-07-03  Jim Meyering  <meyering@redhat.com>
43134         maint.mk: correct omissions in prohibit_argmatch_without_use check
43135         This rule would mistakenly report that argmatch.h is included without
43136         use even when both the argmatch and invalid_arg macro were used.
43137         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
43138         of argmatch and invalid_arg.
43140 2011-07-03  Bruno Haible  <bruno@clisp.org>
43142         Comments about EINTR.
43143         * lib/safe-read.h: Explain the purpose of this module.
43144         * lib/safe-write.h: Likewise.
43145         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
43146         module.
43147         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
43148         module.
43149         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43151 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
43153         xnanosleep: Rewrite to use new dtotimespec module.
43154         It has the conversion code that used to be in xnanosleep.
43155         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
43156         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
43157         (TIME_T_MAX): Remove.
43158         (xnanosleep): Rewrite in terms of dtotimespec.
43159         * modules/xnanosleep (Depends-on): Add dtotimespec.
43160         Remove intprops, stdbool.
43162         timespec-add, timespec-sub: new modules
43163         * lib/timespec.h (timespec_add, timespec_sub): New decls.
43164         * lib/timespec-add.c, lib/timespec-sub.c:
43165         * modules/timespec-add, modules/timespec-sub: New files.
43167         dtotimespec: new module
43168         * lib/timespec.h (dtotimespec): New decl.
43169         * lib/dtotimespec.c, modules/dtotimespec: New files.
43171         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
43173         pselect: new module
43174         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
43175         (pselect): New decls.
43176         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
43177         since the standard pselect decl uses 'restrict'.
43178         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
43179         HAVE_PSELECT, REPLACE_PSELECT.
43180         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
43181         HAVE_PSELECT, REPLACE_PSELECT.
43182         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
43184         sys_select: don't depend on sys_socket
43185         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
43186         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00358.html>.
43187         This fix works on GNU and GNU-like platforms, but has not been tested
43188         on native Windows.
43189         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
43190         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
43191         gl_HEADER_SYS_SOCKET.
43192         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
43193         gl_PREREQ_SYS_H_WINSOCK2.
43195 2011-06-29  Eric Blake  <eblake@redhat.com>
43197         pipe2: fix C89 compile problem
43198         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
43199         Reported by Bruno Haible.
43201         pipe, pipe2: don't corrupt fd on error
43202         * lib/pipe.c (pipe): Leave fd unchanged on error.
43203         * lib/pipe2.c (pipe2): Likewise.
43204         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
43205         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
43207 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
43209         mmap-anon: do not use regular expressions inadvertently
43210         * m4/mmap-anon.m4: Remove trailing period from strings sought
43211         in the output.
43213 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
43215         nanosleep: fix integer overflow problem
43216         * lib/nanosleep.c (my_usleep): Don't assume signed integer
43217         arithmetic wraps around on overflow.
43219         nanosleep: simplify carrying
43220         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
43221         first call to the underyling nanosleep, not for the last one.
43222         This doesn't fix any bugs, but it simplifies the computation of
43223         the remaining delay.  Found while auditing integer overflow issues.
43225         dup2: remove test for existence of fcntl
43226         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
43227         "#if HAVE_FCNTL", in the configure-time test program.
43228         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
43229         and therefore speeds up "configure" a bit.  Found while
43230         adding the dup2 module to Emacs.
43232 2011-06-24  Eric Blake  <eblake@redhat.com>
43234         maint.mk: enhance useless header checks
43235         * top/maint.mk (_sc_header_without_use): Check both include
43236         styles.
43237         (sc_prohibit_assert_without_use)
43238         (sc_prohibit_close_stream_without_use)
43239         (sc_prohibit_getopt_without_use)
43240         (sc_prohibit_quotearg_without_use)
43241         (sc_prohibit_quote_without_use)
43242         (sc_prohibit_long_options_without_use)
43243         (sc_prohibit_inttostr_without_use)
43244         (sc_prohibit_ignore_value_without_use)
43245         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
43246         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
43247         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
43248         (sc_prohibit_hash_pjw_without_use)
43249         (sc_prohibit_safe_read_without_use)
43250         (sc_prohibit_argmatch_without_use)
43251         (sc_prohibit_canonicalize_without_use)
43252         (sc_prohibit_root_dev_ino_without_use)
43253         (sc_prohibit_openat_without_use)
43254         (sc_prohibit_c_ctype_without_use)
43255         (sc_prohibit_signal_without_use)
43256         (sc_prohibit_stdio--_without_use)
43257         (sc_prohibit_stdio-safer_without_use)
43258         (sc_prohibit_strings_without_use)
43259         (sc_prohibit_intprops_without_use)
43260         (sc_prohibit_stddef_without_use)
43261         (sc_prohibit_xfreopen_without_use): Update clients.
43263 2011-06-24  Jim Meyering  <meyering@redhat.com>
43265         syntax-check: keep one maint.mk rule in sync with its header
43266         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
43267         of the bug Eric has just fixed, with today's commit 25e4c2ec.
43268         I prefer to avoid temporary files here, so use <(...), but that
43269         is not supported by /bin/sh, so...
43270         (SHELL): Define to /bin/bash.
43272 2011-06-24  Eric Blake  <eblake@redhat.com>
43274         maint.mk: update sc_prohibit_intprops_without_use
43275         * top/maint.mk (_intprops_names): Match recent changes.
43277 2011-06-24  Bruno Haible  <bruno@clisp.org>
43279         strerror-override: No-op tweak.
43280         * lib/strerror-override.h (strerror_override): Reorder conditions,
43281         for consistency with lib/strerror-override.c.
43283 2011-06-23  Eric Blake  <eblake@redhat.com>
43285         maint.mk: test further PATH_MAX issues
43286         * top/maint.mk (sc_prohibit_path_max_array): Rename...
43287         (sc_prohibit_path_max_allocation): ...and also test alloca.
43288         Suggested by Jim Meyering.
43290 2011-06-22  Eric Blake  <eblake@redhat.com>
43292         maint.mk: add syntax-check to avoid char[PATH_MAX]
43293         * top/maint.mk (sc_prohibit_path_max_array): New rule.
43295         stat: be robust to PATH_MAX definition
43296         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
43297         * modules/stat (Depends-on): Add verify.
43299         link: work around IRIX bug
43300         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
43301         * lib/link.c (rpl_link): Work around it.
43302         * tests/test-link.h (test_link): Enhance test.
43303         * doc/posix-functions/link.texi (link): Document the bug.
43305         getopt: silence clang warning
43306         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
43307         dereference.
43308         Reported by Gustavo Martin Domato.
43310 2011-06-22  Jim Meyering  <meyering@redhat.com>
43312         bootstrap: do not insert a blank line into each .gitignore file
43313         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
43315 2011-06-21  Eric Blake  <eblake@redhat.com>
43317         perror: test for output mismatch
43318         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
43319         perror on IRIX.
43321         strerror_r: fix OpenBSD behavior on out-of-range
43322         * lib/strerror_r.c (strerror_r): Always use maximal string.
43323         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
43325         strerror_r: fix OpenBSD behavior on 0
43326         * lib/strerror-override.c (strerror_override): Also override 0
43327         when needed.
43328         * lib/strerror-override.h (strerror_override): Likewise.
43329         * lib/strerror.c (strerror): Simplify, now that 0 override is done
43330         earlier.
43331         * lib/strerror_r.c (strerror_r): Likewise.
43332         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
43333         behavior...
43334         (gl_FUNC_STRERROR_0): ...into new macro.
43335         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
43336         is overridden.
43337         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
43338         * modules/strerror-override (Files): Add strerror.m4.
43339         (configure.ac): Also provide override for 0 when needed.
43340         * doc/posix-functions/strerror.texi (strerror): Document this.
43341         * doc/posix-functions/perror.texi (perror): Likewise.
43343         perror: adjust array size
43344         * modules/perror (Depends-on): Add strerror-override.
43345         * lib/perror.c (perror): Use it to avoid magic number.
43347         strerror-override: reduce size
43348         * lib/strerror-override.c (strerror_override): Use fewer lines.
43350 2011-06-20  Bruno Haible  <bruno@clisp.org>
43352         pathmax: Ensure correct value for PATH_MAX on HP-UX.
43353         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
43355 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
43357         alloca: port to compilers that can optimize like GCC 4.6.0
43358         * lib/alloca.c (find_stack_direction): New signature, taken from
43359         Autoconf git.  This works with GCC 4.6.0.  This code should never
43360         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
43361         be used with other compilers that optimize as well as GCC 4.6.0 does.
43362         (alloca): Adjust to new signature.
43363         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
43364         New macro, which patches Autoconf in a similar way.
43366         c-stack: stop worrying about stack direction
43367         * lib/c-stack.c (find_stack_direction): Remove.
43368         (segv_handler): Don't worry about stack direction growth, as it's
43369         too much of a pain to configure this correctly, given how compilers
43370         are optimizing-away our stack-growth detection code.  Instead, assume
43371         that any access to just before or just after the stack is OK.
43372         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
43373         Don't require AC_FUNC_ALLOCA; no longer needed.
43375 2011-06-20  Eric Blake  <eblake@redhat.com>
43377         test-stat: don't allocate PATH_MAX bytes
43378         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
43379         PATH_MAX-sized buffer.
43380         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
43381         * modules/stat-tests (Depends-on): Likewise.
43382         * tests/test-fstatat.c (includes): Drop pathmax.h.
43383         * tests/test-stat.c (includes): Likewise.
43384         Reported by Bruno Haible.
43386 2011-06-20  Bruno Haible  <bruno@clisp.org>
43388         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
43389         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
43390         * lib/float.c: New file.
43391         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
43392         REPLACE_FLOAT_LDBL.
43393         * modules/float (Files): Add lib/float.c.
43394         (configure.ac): Invoke AC_LIBOBJ.
43395         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
43397 2011-06-20  Bruno Haible  <bruno@clisp.org>
43399         Tests for module 'float'.
43400         * modules/float-tests: New file.
43401         * tests/test-float.c: New file.
43403 2011-06-19  Bruno Haible  <bruno@clisp.org>
43405         isinf: Coding style.
43406         * lib/isinf.c: Use GNU coding style.
43408 2011-06-19  Bruno Haible  <bruno@clisp.org>
43410         linkat test: Avoid test failure on AIX 7.1.
43411         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
43412         * tests/test-link.h (test_link): Likewise.
43414 2011-06-19  Bruno Haible  <bruno@clisp.org>
43416         pread test: Avoid test failure on OpenBSD 4.9.
43417         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
43419 2011-06-19  Bruno Haible  <bruno@clisp.org>
43421         sprintf-posix: Fix test failure on AIX 7.1.
43422         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
43423         * doc/posix-functions/dprintf.texi: Mention limited precision problem
43424         on AIX.
43425         * doc/posix-functions/fprintf.texi: Likewise.
43426         * doc/posix-functions/printf.texi: Likewise.
43427         * doc/posix-functions/snprintf.texi: Likewise.
43428         * doc/posix-functions/sprintf.texi: Likewise.
43429         * doc/posix-functions/vdprintf.texi: Likewise.
43430         * doc/posix-functions/vfprintf.texi: Likewise.
43431         * doc/posix-functions/vprintf.texi: Likewise.
43432         * doc/posix-functions/vsnprintf.texi: Likewise.
43433         * doc/posix-functions/vsprintf.texi: Likewise.
43435 2011-06-19  Bruno Haible  <bruno@clisp.org>
43437         roundl-ieee: Fix test failure on AIX 7.1.
43438         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
43439         * doc/posix-functions/roundl.texi: Mention problem with negative
43440         arguments.
43442 2011-06-19  Bruno Haible  <bruno@clisp.org>
43444         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
43445         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
43446         * doc/posix-functions/round.texi: Mention problem with negative
43447         arguments.
43448         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
43450 2011-06-19  Bruno Haible  <bruno@clisp.org>
43452         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
43453         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
43454         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
43455         * doc/posix-functions/roundf.texi: Mention problem with negative
43456         arguments.
43457         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
43459 2011-06-19  Bruno Haible  <bruno@clisp.org>
43461         ceilf-ieee: Work around bug on MacOS X 10.5.
43462         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
43464         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
43465         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
43466         IEEE compliant, avoid compiler optimizations.
43467         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
43468         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
43469         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
43470         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
43471         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
43472         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
43473         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
43474         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
43475         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
43476         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
43478 2011-06-19  Bruno Haible  <bruno@clisp.org>
43480         ceilf-ieee: Work around bug on AIX 7.1.
43481         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
43482         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
43484 2011-06-19  Bruno Haible  <bruno@clisp.org>
43486         ceil-ieee: Work around bug on AIX 7.1.
43487         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
43488         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
43490 2011-06-18  Bruno Haible  <bruno@clisp.org>
43492         fsync test: Avoid test failure on MacOS X and AIX.
43493         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
43494         EINVAL.
43496 2011-06-18  Bruno Haible  <bruno@clisp.org>
43498         openat, fdopendir tests: Fix link errors.
43499         * modules/openat-tests (Depends-on): Add progname.
43500         * modules/fdopendir-tests (Depends-on): Likewise.
43501         * tests/test-fchownat.c: Include progname.h.
43502         (main): Call set_program_name.
43503         * tests/test-fstatat.c: Include progname.h.
43504         (main): Call set_program_name.
43505         * tests/test-mkdirat.c: Include progname.h.
43506         (main): Call set_program_name.
43507         * tests/test-openat.c: Include progname.h.
43508         (main): Call set_program_name.
43509         * tests/test-unlinkat.c: Include progname.h.
43510         (main): Call set_program_name.
43511         * tests/test-fdopendir.c: Include progname.h.
43512         (main): Call set_program_name.
43514 2011-06-18  Bruno Haible  <bruno@clisp.org>
43516         Doc update.
43517         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
43518         HP-UX.
43519         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
43521 2011-06-18  Bruno Haible  <bruno@clisp.org>
43523         getcwd tests: Avoid compilation error on HP-UX 11.31.
43524         * modules/getcwd-tests (Depends-on): Add pathmax.
43525         * tests/test-getcwd.c: Include pathmax.h.
43527 2011-06-18  Bruno Haible  <bruno@clisp.org>
43529         isfinite, isinf: Fix link error on AIX 6 and 7.
43530         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
43531         needed, also test the macro with a 'float' argument.
43532         * m4/isinf.m4 (gl_ISINF): Likewise.
43534 2011-06-18  Bruno Haible  <bruno@clisp.org>
43536         getloadavg: Don't clobber LIBS. Regression from previous commit.
43537         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
43538         AC_CHECK_LIB from here...
43539         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
43540         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
43541         gl_func_getloadavg_done.
43542         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43544 2011-06-18  Bruno Haible  <bruno@clisp.org>
43546         clean-temp: Improve documentation.
43547         * lib/clean-temp.h: Explain better how to use this module.
43548         Reported by John Darrington <john@darrington.wattle.id.au>.
43550 2011-06-17  Bruno Haible  <bruno@clisp.org>
43552         pread, pwrite: Avoid cc warning on AIX.
43553         * lib/unistd.in.h (pread): Undefine before defining as a macro.
43554         (pwrite): Likewise.
43556 2011-06-17  Bruno Haible  <bruno@clisp.org>
43558         spawn-pipe tests: Fix link error.
43559         * tests/test-spawn-pipe-child.c: Undefine fprintf.
43560         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43562 2011-06-17  Bruno Haible  <bruno@clisp.org>
43564         Tests: Remove unnecessary dependency.
43565         * modules/canonicalize-tests (Depends-on): Remove progname.
43566         * modules/chown-tests (Depends-on): Likewise.
43567         * modules/dirname-tests (Depends-on): Likewise.
43568         * modules/fdopendir-tests (Depends-on): Likewise.
43569         * modules/fdutimensat-tests (Depends-on): Likewise.
43570         * modules/hash-tests (Depends-on): Likewise.
43571         * modules/lchown-tests (Depends-on): Likewise.
43572         * modules/linkat-tests (Depends-on): Likewise.
43573         * modules/renameat-tests (Depends-on): Likewise.
43574         * modules/spawn-pipe-tests (Depends-on): Likewise.
43575         * modules/utimensat-tests (Depends-on): Likewise.
43577 2011-06-17  Bruno Haible  <bruno@clisp.org>
43579         spawn-pipe tests: Fix link error.
43580         * tests/test-spawn-pipe-child.c: Undefine fflush.
43582 2011-06-17  Bruno Haible  <bruno@clisp.org>
43584         Fix tests link errors.
43585         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
43586         * modules/chown-tests (Makefile.am): Don't link test-chown with
43587         LIBINTL.
43588         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
43589         LIBINTL.
43590         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
43591         LIBINTL.
43592         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
43593         LIBINTL.
43595 2011-06-16  Bruno Haible  <bruno@clisp.org>
43597         crypto/gc-sha1: Fix recent regression.
43598         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
43599         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
43601         crypto/gc-md5: Fix recent regression.
43602         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
43604         crypto/gc-md4: Fix recent regression.
43605         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
43606         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
43608         crypto/gc-arctwo: Fix recent regression.
43609         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
43610         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
43612         crypto/gc-rijndael: Fix recent regression.
43613         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
43614         (configure.ac): Invoke AC_LIBOBJ here.
43615         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
43616         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43618         crypto/gc-hmac-sha1: Fix recent regression.
43619         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
43620         (configure.ac): Invoke AC_LIBOBJ here.
43621         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
43622         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43624         crypto/gc-hmac-md5: Fix recent regression.
43625         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
43626         (configure.ac): Invoke AC_LIBOBJ here.
43627         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
43628         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43630         crypto/gc-des: Fix recent regression.
43631         * modules/crypto/gc-des (Files): Remove m4/des.m4.
43632         (configure.ac): Invoke AC_LIBOBJ here.
43633         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
43634         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43636         crypto/gc-arcfour: Fix recent regression.
43637         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
43638         (configure.ac): Invoke AC_LIBOBJ here.
43639         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
43640         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43642 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
43644         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
43645         After the 2011-05-21 change, this macro requires
43646         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
43647         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
43649 2011-06-16  Bruno Haible  <bruno@clisp.org>
43651         fprintftime: Move AC_LIBOBJ invocations to module description.
43652         * m4/fprintftime.m4: Remove file.
43653         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
43654         (configure.ac): Remove gl_FPRINTFTIME call.
43655         (Makefile.am): Augment lib_SOURCES.
43656         Reported by Jim Meyering.
43658 2011-06-16  Bruno Haible  <bruno@clisp.org>
43660         tmpfile-safer: Finish 2011-05-23 commit.
43661         * m4/stdio-safer.m4: Really remove file.
43662         Reported by Jim Meyering.
43664 2011-06-16  Bruno Haible  <bruno@clisp.org>
43666         syntax-check: Fix typo.
43667         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
43668         printf-posix.m4.
43669         Reported by Jim Meyering.
43671 2011-06-13  Jim Meyering  <meyering@redhat.com>
43673         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
43674         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
43676 2011-05-23  Bruno Haible  <bruno@clisp.org>
43678         yesno: Move AC_LIBOBJ invocations to module description.
43679         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
43680         * modules/yesno (Makefile.am): Augment lib_SOURCES.
43682 2011-05-23  Bruno Haible  <bruno@clisp.org>
43684         xstrtol: Move AC_LIBOBJ invocations to module description.
43685         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
43686         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
43688 2011-05-23  Bruno Haible  <bruno@clisp.org>
43690         xstrtold: Move AC_LIBOBJ invocations to module description.
43691         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
43692         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
43694 2011-05-23  Bruno Haible  <bruno@clisp.org>
43696         xstrtod: Move AC_LIBOBJ invocations to module description.
43697         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
43698         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
43700 2011-05-23  Bruno Haible  <bruno@clisp.org>
43702         xnanosleep: Move AC_LIBOBJ invocations to module description.
43703         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
43704         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
43706 2011-05-23  Bruno Haible  <bruno@clisp.org>
43708         xgetcwd: Move AC_LIBOBJ invocations to module description.
43709         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
43710         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
43712 2011-05-23  Bruno Haible  <bruno@clisp.org>
43714         xalloc: Move AC_LIBOBJ invocations to module description.
43715         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
43716         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
43718 2011-05-23  Bruno Haible  <bruno@clisp.org>
43720         write-any-file: Move AC_LIBOBJ invocations to module description.
43721         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
43722         invocation.
43723         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
43725 2011-05-23  Bruno Haible  <bruno@clisp.org>
43727         utimens: Move AC_LIBOBJ invocations to module description.
43728         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
43729         * modules/utimens (Makefile.am): Augment lib_SOURCES.
43731 2011-05-23  Bruno Haible  <bruno@clisp.org>
43733         utimecmp: Move AC_LIBOBJ invocations to module description.
43734         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
43735         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
43737 2011-05-23  Bruno Haible  <bruno@clisp.org>
43739         userspec: Move AC_LIBOBJ invocations to module description.
43740         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
43741         * modules/userspec (Makefile.am): Augment lib_SOURCES.
43743 2011-05-23  Bruno Haible  <bruno@clisp.org>
43745         unlinkdir: Move AC_LIBOBJ invocations to module description.
43746         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
43747         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
43749 2011-05-23  Bruno Haible  <bruno@clisp.org>
43751         unistd-safer: Move AC_LIBOBJ invocations to module description.
43752         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
43753         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
43755 2011-05-23  Bruno Haible  <bruno@clisp.org>
43757         tempname: Move AC_LIBOBJ invocations to module description.
43758         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
43759         * modules/tempname (Makefile.am): Augment lib_SOURCES.
43761 2011-05-23  Bruno Haible  <bruno@clisp.org>
43763         strftime: Move AC_LIBOBJ invocations to module description.
43764         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
43765         * modules/strftime (Makefile.am): Augment lib_SOURCES.
43767 2011-05-23  Bruno Haible  <bruno@clisp.org>
43769         stdlib-safer: Move AC_LIBOBJ invocations to module description.
43770         * m4/stdlib-safer.m4: Remove file.
43771         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
43772         (configure.ac): Remove gl_STDLIB_SAFER call.
43773         (Makefile.am): Augment lib_SOURCES.
43775 2011-05-23  Bruno Haible  <bruno@clisp.org>
43777         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
43778         * m4/stdio-safer.m4: Remove file.
43779         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
43780         (configure.ac): Remove gl_TMPFILE_SAFER call.
43781         (Makefile.am): Augment lib_SOURCES.
43783 2011-05-23  Bruno Haible  <bruno@clisp.org>
43785         popen-safer: Move AC_LIBOBJ invocations to module description.
43786         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
43787         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
43788         (configure.ac): Remove gl_POPEN_SAFER call.
43789         (Makefile.am): Augment lib_SOURCES.
43791 2011-05-23  Bruno Haible  <bruno@clisp.org>
43793         freopen-safer: Move AC_LIBOBJ invocations to module description.
43794         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
43795         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
43796         (configure.ac): Remove gl_FREOPEN_SAFER call.
43797         (Makefile.am): Augment lib_SOURCES.
43799 2011-05-23  Bruno Haible  <bruno@clisp.org>
43801         fopen-safer: Move AC_LIBOBJ invocations to module description.
43802         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
43803         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
43804         (configure.ac): Remove gl_FOPEN_SAFER call.
43805         (Makefile.am): Augment lib_SOURCES.
43807 2011-05-23  Bruno Haible  <bruno@clisp.org>
43809         crypto/sha512: Move AC_LIBOBJ invocations to module description.
43810         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
43811         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
43813 2011-05-23  Bruno Haible  <bruno@clisp.org>
43815         crypto/sha256: Move AC_LIBOBJ invocations to module description.
43816         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
43817         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
43819 2011-05-23  Bruno Haible  <bruno@clisp.org>
43821         crypto/sha1: Move AC_LIBOBJ invocations to module description.
43822         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
43823         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
43825 2011-05-23  Bruno Haible  <bruno@clisp.org>
43827         settime: Move AC_LIBOBJ invocations to module description.
43828         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
43829         * modules/settime (Makefile.am): Augment lib_SOURCES.
43831 2011-05-23  Bruno Haible  <bruno@clisp.org>
43833         savedir: Move AC_LIBOBJ invocations to module description.
43834         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
43835         * modules/savedir (Makefile.am): Augment lib_SOURCES.
43837 2011-05-23  Bruno Haible  <bruno@clisp.org>
43839         save-cwd: Move AC_LIBOBJ invocations to module description.
43840         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
43841         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
43843 2011-05-23  Bruno Haible  <bruno@clisp.org>
43845         same: Move AC_LIBOBJ invocations to module description.
43846         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
43847         * modules/same (Makefile.am): Augment lib_SOURCES.
43849 2011-05-23  Bruno Haible  <bruno@clisp.org>
43851         safe-write: Move AC_LIBOBJ invocations to module description.
43852         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
43853         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
43854         instead of gl_SAFE_WRITE.
43855         (Makefile.am): Augment lib_SOURCES.
43857 2011-05-23  Bruno Haible  <bruno@clisp.org>
43859         safe-read: Move AC_LIBOBJ invocations to module description.
43860         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
43861         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
43862         of gl_SAFE_READ.
43863         (Makefile.am): Augment lib_SOURCES.
43865 2011-05-23  Bruno Haible  <bruno@clisp.org>
43867         safe-alloc: Move AC_LIBOBJ invocations to module description.
43868         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
43869         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
43871 2011-05-23  Bruno Haible  <bruno@clisp.org>
43873         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
43874         * m4/rijndael.m4: Remove file.
43875         * modules/crypto/rijndael (Files): Remove it.
43876         (configure.ac): Remove gl_RIJNDAEL call.
43877         (Makefile.am): Augment lib_SOURCES.
43879 2011-05-23  Bruno Haible  <bruno@clisp.org>
43881         readtokens: Move AC_LIBOBJ invocations to module description.
43882         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
43883         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
43885 2011-05-23  Bruno Haible  <bruno@clisp.org>
43887         read-file: Move AC_LIBOBJ invocations to module description.
43888         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
43889         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
43890         of gl_FUNC_READ_FILE.
43891         (Makefile.am): Augment lib_SOURCES.
43893 2011-05-23  Bruno Haible  <bruno@clisp.org>
43895         quotearg: Move AC_LIBOBJ invocations to module description.
43896         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
43897         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
43899 2011-05-23  Bruno Haible  <bruno@clisp.org>
43901         quote: Move AC_LIBOBJ invocations to module description.
43902         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
43903         * modules/quote (Makefile.am): Augment lib_SOURCES.
43905 2011-05-23  Bruno Haible  <bruno@clisp.org>
43907         posixver: Move AC_LIBOBJ invocations to module description.
43908         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
43909         * modules/posixver (Makefile.am): Augment lib_SOURCES.
43911 2011-05-23  Bruno Haible  <bruno@clisp.org>
43913         posixtm: Move AC_LIBOBJ invocations to module description.
43914         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
43915         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
43917 2011-05-23  Bruno Haible  <bruno@clisp.org>
43919         physmem: Move AC_LIBOBJ invocations to module description.
43920         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
43921         * modules/physmem (Makefile.am): Augment lib_SOURCES.
43923 2011-05-23  Bruno Haible  <bruno@clisp.org>
43925         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
43926         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
43927         invocation.
43928         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
43930 2011-05-23  Bruno Haible  <bruno@clisp.org>
43932         mpsort: Move AC_LIBOBJ invocations to module description.
43933         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
43934         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
43936 2011-05-23  Bruno Haible  <bruno@clisp.org>
43938         modechange: Move AC_LIBOBJ invocations to module description.
43939         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
43940         * modules/modechange (Makefile.am): Augment lib_SOURCES.
43942 2011-05-23  Bruno Haible  <bruno@clisp.org>
43944         mkdir-p: Move AC_LIBOBJ invocations to module description.
43945         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
43946         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
43948 2011-05-23  Bruno Haible  <bruno@clisp.org>
43950         mkancesdirs: Move AC_LIBOBJ invocations to module description.
43951         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
43952         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
43954 2011-05-23  Bruno Haible  <bruno@clisp.org>
43956         mgetgroups: Move AC_LIBOBJ invocations to module description.
43957         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
43958         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
43960 2011-05-23  Bruno Haible  <bruno@clisp.org>
43962         memxor: Move AC_LIBOBJ invocations to module description.
43963         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
43964         * modules/memxor (Makefile.am): Augment lib_SOURCES.
43966 2011-05-23  Bruno Haible  <bruno@clisp.org>
43968         memcoll: Move AC_LIBOBJ invocations to module description.
43969         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
43970         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
43972 2011-05-23  Bruno Haible  <bruno@clisp.org>
43974         memcasecmp: Move AC_LIBOBJ invocations to module description.
43975         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
43976         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
43978 2011-05-23  Bruno Haible  <bruno@clisp.org>
43980         crypto/md5: Move AC_LIBOBJ invocations to module description.
43981         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
43982         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
43984 2011-05-23  Bruno Haible  <bruno@clisp.org>
43986         crypto/md4: Move AC_LIBOBJ invocations to module description.
43987         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
43988         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
43990 2011-05-23  Bruno Haible  <bruno@clisp.org>
43992         crypto/md2: Move AC_LIBOBJ invocations to module description.
43993         * m4/md2.m4: Remove file.
43994         * modules/crypto/md2 (Files): Remove it.
43995         (configure.ac): Remove gl_MD2 call.
43996         (Makefile.am): Augment lib_SOURCES.
43998 2011-05-23  Bruno Haible  <bruno@clisp.org>
44000         long-options: Move AC_LIBOBJ invocations to module description.
44001         * m4/long-options.m4: Remove file.
44002         * modules/long-options (Files): Remove it.
44003         (configure.ac): Remove gl_LONG_OPTIONS call.
44004         (Makefile.am): Augment lib_SOURCES.
44006 2011-05-23  Bruno Haible  <bruno@clisp.org>
44008         i-ring: Move AC_LIBOBJ invocations to module description.
44009         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
44010         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
44012 2011-05-23  Bruno Haible  <bruno@clisp.org>
44014         idcache: Move AC_LIBOBJ invocations to module description.
44015         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
44016         * modules/idcache (Makefile.am): Augment lib_SOURCES.
44018 2011-05-23  Bruno Haible  <bruno@clisp.org>
44020         human: Move AC_LIBOBJ invocations to module description.
44021         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
44022         * modules/human (Makefile.am): Augment lib_SOURCES.
44024 2011-05-23  Bruno Haible  <bruno@clisp.org>
44026         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
44027         * m4/hmac-sha1.m4: Remove file.
44028         * modules/crypto/hmac-sha1 (Files): Remove it.
44029         (configure.ac): Remove gl_HMAC_SHA1 call.
44030         (Makefile.am): Augment lib_SOURCES.
44032 2011-05-23  Bruno Haible  <bruno@clisp.org>
44034         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
44035         * m4/hmac-md5.m4: Remove file.
44036         * modules/crypto/hmac-md5 (Files): Remove it.
44037         (configure.ac): Remove gl_HMAC_MD5 call.
44038         (Makefile.am): Augment lib_SOURCES.
44040 2011-05-23  Bruno Haible  <bruno@clisp.org>
44042         hash: Move AC_LIBOBJ invocations to module description.
44043         * m4/hash.m4: Remove file.
44044         * modules/hash (Files): Remove it.
44045         (configure.ac): Remove gl_HASH call.
44046         (Makefile.am): Augment lib_SOURCES.
44048 2011-05-23  Bruno Haible  <bruno@clisp.org>
44050         hard-locale: Move AC_LIBOBJ invocations to module description.
44051         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
44052         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
44054 2011-05-23  Bruno Haible  <bruno@clisp.org>
44056         getugroups: Move AC_LIBOBJ invocations to module description.
44057         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
44058         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
44060 2011-05-23  Bruno Haible  <bruno@clisp.org>
44062         gettime: Move AC_LIBOBJ invocations to module description.
44063         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
44064         * modules/gettime (Makefile.am): Augment lib_SOURCES.
44066 2011-05-23  Bruno Haible  <bruno@clisp.org>
44068         getndelim2: Move AC_LIBOBJ invocations to module description.
44069         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
44070         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
44072 2011-05-23  Bruno Haible  <bruno@clisp.org>
44074         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
44075         * m4/gc-pbkdf2-sha1.m4: Remove file.
44076         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
44077         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
44078         (Makefile.am): Augment lib_SOURCES.
44080 2011-05-23  Bruno Haible  <bruno@clisp.org>
44082         fts: Move AC_LIBOBJ invocations to module description.
44083         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
44084         * modules/fts (configure.ac): ... to here.
44086 2011-05-23  Bruno Haible  <bruno@clisp.org>
44088         file-type: Move AC_LIBOBJ invocations to module description.
44089         * m4/file-type.m4: Remove file.
44090         * modules/file-type (Files): Remove it.
44091         (configure.ac): Remove gl_FILE_TYPE call.
44092         (Makefile.am): Augment lib_SOURCES.
44094 2011-05-23  Bruno Haible  <bruno@clisp.org>
44096         filenamecat*: Respect rules for use of AC_LIBOBJ.
44097         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
44098         Remove AC_LIBOBJ invocation.
44099         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
44100         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
44102 2011-05-23  Bruno Haible  <bruno@clisp.org>
44104         filemode: Move AC_LIBOBJ invocations to module description.
44105         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
44106         * modules/filemode (Makefile.am): Augment lib_SOURCES.
44108 2011-05-23  Bruno Haible  <bruno@clisp.org>
44110         openat-safer: Move AC_LIBOBJ invocations to module description.
44111         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
44112         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
44114 2011-05-23  Bruno Haible  <bruno@clisp.org>
44116         fcntl-safer: Move AC_LIBOBJ invocations to module description.
44117         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
44118         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
44120 2011-05-23  Bruno Haible  <bruno@clisp.org>
44122         exclude: Move AC_LIBOBJ invocations to module description.
44123         * m4/exclude.m4: Remove file.
44124         * modules/exclude (Files): Remove it.
44125         (configure.ac): Remove gl_EXCLUDE call.
44126         (Makefile.am): Augment lib_SOURCES.
44128 2011-05-23  Bruno Haible  <bruno@clisp.org>
44130         dirname*: Respect rules for use of AC_LIBOBJ.
44131         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
44132         invocations.
44133         * modules/dirname (Makefile.am): Augment lib_SOURCES.
44134         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
44136 2011-05-23  Bruno Haible  <bruno@clisp.org>
44138         dirent-safer: Move AC_LIBOBJ invocations to module description.
44139         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
44140         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
44142 2011-05-23  Bruno Haible  <bruno@clisp.org>
44144         crypto/des: Move AC_LIBOBJ invocations to module description.
44145         * m4/des.m4: Remove file.
44146         * modules/crypto/des (Files): Remove it.
44147         (configure.ac): Remove gl_DES call.
44148         (Makefile.am): Augment lib_SOURCES.
44150 2011-05-23  Bruno Haible  <bruno@clisp.org>
44152         cycle-check: Move AC_LIBOBJ invocations to module description.
44153         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
44154         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
44156 2011-05-23  Bruno Haible  <bruno@clisp.org>
44158         c-strtold: Move AC_LIBOBJ invocations to module description.
44159         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
44160         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
44162 2011-05-23  Bruno Haible  <bruno@clisp.org>
44164         c-strtod: Move AC_LIBOBJ invocations to module description.
44165         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
44166         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
44168 2011-05-23  Bruno Haible  <bruno@clisp.org>
44170         crc: Move AC_LIBOBJ invocations to module description.
44171         * m4/crc.m4: Remove file.
44172         * modules/crc (Files): Remove it.
44173         (configure.ac): Remove gl_CRC call.
44174         (Makefile.am): Augment lib_SOURCES.
44176 2011-05-23  Bruno Haible  <bruno@clisp.org>
44178         close-stream: Move AC_LIBOBJ invocations to module description.
44179         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
44180         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
44182 2011-05-23  Bruno Haible  <bruno@clisp.org>
44184         closeout: Move AC_LIBOBJ invocations to module description.
44185         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
44186         * modules/closeout (Makefile.am): Augment lib_SOURCES.
44188 2011-05-23  Bruno Haible  <bruno@clisp.org>
44190         closein: Move AC_LIBOBJ invocations to module description.
44191         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
44192         * modules/closein (Makefile.am): Augment lib_SOURCES.
44194 2011-05-23  Bruno Haible  <bruno@clisp.org>
44196         cloexec: Move AC_LIBOBJ invocations to module description.
44197         * m4/cloexec.m4: Remove file.
44198         * modules/cloexec (Files): Remove it.
44199         (configure.ac): Remove gl_CLOEXEC call.
44200         (Makefile.am): Augment lib_SOURCES.
44202 2011-05-23  Bruno Haible  <bruno@clisp.org>
44204         check-version: Move AC_LIBOBJ invocations to module description.
44205         * m4/check-version.m4: Remove file.
44206         * modules/check-version (Files): Remove it.
44207         (configure.ac): Remove gl_CHECK_VERSION call.
44208         (Makefile.am): Augment lib_SOURCES.
44210 2011-05-23  Bruno Haible  <bruno@clisp.org>
44212         chdir-safer: Move AC_LIBOBJ invocations to module description.
44213         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
44214         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
44216 2011-05-23  Bruno Haible  <bruno@clisp.org>
44218         canonicalize: Move AC_LIBOBJ invocations to module description.
44219         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
44220         AC_LIBOBJ invocation.
44221         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
44223 2011-05-23  Bruno Haible  <bruno@clisp.org>
44225         canon-host: Move AC_LIBOBJ invocations to module description.
44226         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
44227         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
44228         instead of gl_CANON_HOST.
44229         (Makefile.am): Augment lib_SOURCES.
44231 2011-05-23  Bruno Haible  <bruno@clisp.org>
44233         backupfile: Move AC_LIBOBJ invocations to module description.
44234         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
44235         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
44237 2011-05-23  Bruno Haible  <bruno@clisp.org>
44239         argmatch: Move AC_LIBOBJ invocations to module description.
44240         * m4/argmatch.m4: Remove file.
44241         * modules/argmatch (Files): Remove it.
44242         (configure.ac): Remove gl_ARGMATCH call.
44243         (Makefile.am): Augment lib_SOURCES.
44245 2011-05-23  Bruno Haible  <bruno@clisp.org>
44247         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
44248         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
44249         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
44251 2011-05-23  Bruno Haible  <bruno@clisp.org>
44253         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
44254         * m4/arcfour.m4: Remove file.
44255         * modules/crypto/arcfour (Files): Remove it.
44256         (configure.ac): Remove gl_ARCFOUR call.
44257         (Makefile.am): Augment lib_SOURCES.
44259 2011-05-22  Bruno Haible  <bruno@clisp.org>
44261         write: Move AC_LIBOBJ invocations to module description.
44262         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
44263         * modules/write (configure.ac): ... to here.
44265 2011-05-22  Bruno Haible  <bruno@clisp.org>
44267         wmemset: Move AC_LIBOBJ invocations to module description.
44268         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
44269         here...
44270         * modules/wmemset (configure.ac): ... to here.
44272 2011-05-22  Bruno Haible  <bruno@clisp.org>
44274         wmemmove: Move AC_LIBOBJ invocations to module description.
44275         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
44276         here...
44277         * modules/wmemmove (configure.ac): ... to here.
44279 2011-05-22  Bruno Haible  <bruno@clisp.org>
44281         wmemcpy: Move AC_LIBOBJ invocations to module description.
44282         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
44283         here...
44284         * modules/wmemcpy (configure.ac): ... to here.
44286 2011-05-22  Bruno Haible  <bruno@clisp.org>
44288         wmemcmp: Move AC_LIBOBJ invocations to module description.
44289         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
44290         here...
44291         * modules/wmemcmp (configure.ac): ... to here.
44293 2011-05-22  Bruno Haible  <bruno@clisp.org>
44295         wmemchr: Move AC_LIBOBJ invocations to module description.
44296         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
44297         here...
44298         * modules/wmemchr (configure.ac): ... to here.
44300 2011-05-22  Bruno Haible  <bruno@clisp.org>
44302         wcswidth: Move AC_LIBOBJ invocations to module description.
44303         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
44304         here...
44305         * modules/wcswidth (configure.ac): ... to here.
44307 2011-05-22  Bruno Haible  <bruno@clisp.org>
44309         wcwidth: Respect rules for use of AC_LIBOBJ.
44310         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
44311         invocation from here...
44312         * modules/wcwidth (configure.ac): ... to here.
44313         (Depends-on): Update conditions.
44315 2011-05-22  Bruno Haible  <bruno@clisp.org>
44317         wctype: Move AC_LIBOBJ invocations to module description.
44318         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
44319         invocation from here...
44320         * modules/wctype (configure.ac): ... to here.
44321         (Depends-on): Update conditions.
44323 2011-05-22  Bruno Haible  <bruno@clisp.org>
44325         wctrans: Move AC_LIBOBJ invocations to module description.
44326         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
44327         invocation from here...
44328         * modules/wctrans (configure.ac): ... to here.
44330 2011-05-22  Bruno Haible  <bruno@clisp.org>
44332         wctomb: Move AC_LIBOBJ invocations to module description.
44333         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
44334         invocations from here...
44335         * modules/wctomb (configure.ac): ... to here.
44337 2011-05-22  Bruno Haible  <bruno@clisp.org>
44339         wctob: Move AC_LIBOBJ invocations to module description.
44340         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
44341         gl_PREREQ_WCTOB invocations from here...
44342         * modules/wctob (configure.ac): ... to here.
44343         (Depends-on): Update conditions.
44345 2011-05-22  Bruno Haible  <bruno@clisp.org>
44347         wcsxfrm: Move AC_LIBOBJ invocations to module description.
44348         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
44349         here...
44350         * modules/wcsxfrm (configure.ac): ... to here.
44352 2011-05-22  Bruno Haible  <bruno@clisp.org>
44354         wcstok: Move AC_LIBOBJ invocations to module description.
44355         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
44356         * modules/wcstok (configure.ac): ... to here.
44358 2011-05-22  Bruno Haible  <bruno@clisp.org>
44360         wcsstr: Move AC_LIBOBJ invocations to module description.
44361         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
44362         * modules/wcsstr (configure.ac): ... to here.
44364 2011-05-22  Bruno Haible  <bruno@clisp.org>
44366         wcsspn: Move AC_LIBOBJ invocations to module description.
44367         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
44368         * modules/wcsspn (configure.ac): ... to here.
44370 2011-05-22  Bruno Haible  <bruno@clisp.org>
44372         wcsrtombs: Move AC_LIBOBJ invocations to module description.
44373         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
44374         gl_PREREQ_WCSRTOMBS invocations from here...
44375         * modules/wcsrtombs (configure.ac): ... to here.
44377 2011-05-22  Bruno Haible  <bruno@clisp.org>
44379         wcsrchr: Move AC_LIBOBJ invocations to module description.
44380         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
44381         here...
44382         * modules/wcsrchr (configure.ac): ... to here.
44384 2011-05-22  Bruno Haible  <bruno@clisp.org>
44386         wcspbrk: Move AC_LIBOBJ invocations to module description.
44387         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
44388         here...
44389         * modules/wcspbrk (configure.ac): ... to here.
44391 2011-05-22  Bruno Haible  <bruno@clisp.org>
44393         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
44394         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
44395         gl_PREREQ_WCSNRTOMBS invocations from here...
44396         * modules/wcsnrtombs (configure.ac): ... to here.
44398 2011-05-22  Bruno Haible  <bruno@clisp.org>
44400         wcsnlen: Move AC_LIBOBJ invocations to module description.
44401         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
44402         here...
44403         * modules/wcsnlen (configure.ac): ... to here.
44405 2011-05-22  Bruno Haible  <bruno@clisp.org>
44407         wcsncpy: Move AC_LIBOBJ invocations to module description.
44408         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
44409         here...
44410         * modules/wcsncpy (configure.ac): ... to here.
44412 2011-05-22  Bruno Haible  <bruno@clisp.org>
44414         wcsncmp: Move AC_LIBOBJ invocations to module description.
44415         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
44416         here...
44417         * modules/wcsncmp (configure.ac): ... to here.
44419 2011-05-22  Bruno Haible  <bruno@clisp.org>
44421         wcsncat: Move AC_LIBOBJ invocations to module description.
44422         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
44423         here...
44424         * modules/wcsncat (configure.ac): ... to here.
44426 2011-05-22  Bruno Haible  <bruno@clisp.org>
44428         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
44429         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
44430         from here...
44431         * modules/wcsncasecmp (configure.ac): ... to here.
44433 2011-05-22  Bruno Haible  <bruno@clisp.org>
44435         wcslen: Move AC_LIBOBJ invocations to module description.
44436         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
44437         * modules/wcslen (configure.ac): ... to here.
44439 2011-05-22  Bruno Haible  <bruno@clisp.org>
44441         wcsdup: Move AC_LIBOBJ invocations to module description.
44442         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
44443         * modules/wcsdup (configure.ac): ... to here.
44445 2011-05-22  Bruno Haible  <bruno@clisp.org>
44447         wcscspn: Move AC_LIBOBJ invocations to module description.
44448         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
44449         here...
44450         * modules/wcscspn (configure.ac): ... to here.
44452 2011-05-22  Bruno Haible  <bruno@clisp.org>
44454         wcscpy: Move AC_LIBOBJ invocations to module description.
44455         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
44456         * modules/wcscpy (configure.ac): ... to here.
44458 2011-05-22  Bruno Haible  <bruno@clisp.org>
44460         wcscoll: Move AC_LIBOBJ invocations to module description.
44461         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
44462         here...
44463         * modules/wcscoll (configure.ac): ... to here.
44465 2011-05-22  Bruno Haible  <bruno@clisp.org>
44467         wcscmp: Move AC_LIBOBJ invocations to module description.
44468         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
44469         * modules/wcscmp (configure.ac): ... to here.
44471 2011-05-22  Bruno Haible  <bruno@clisp.org>
44473         wcschr: Move AC_LIBOBJ invocations to module description.
44474         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
44475         * modules/wcschr (configure.ac): ... to here.
44477 2011-05-22  Bruno Haible  <bruno@clisp.org>
44479         wcscat: Move AC_LIBOBJ invocations to module description.
44480         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
44481         * modules/wcscat (configure.ac): ... to here.
44483 2011-05-22  Bruno Haible  <bruno@clisp.org>
44485         wcscasecmp: Move AC_LIBOBJ invocations to module description.
44486         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
44487         here...
44488         * modules/wcscasecmp (configure.ac): ... to here.
44490 2011-05-22  Bruno Haible  <bruno@clisp.org>
44492         wcrtomb: Move AC_LIBOBJ invocations to module description.
44493         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
44494         invocations from here...
44495         * modules/wcrtomb (configure.ac): ... to here.
44497 2011-05-22  Bruno Haible  <bruno@clisp.org>
44499         wcpncpy: Move AC_LIBOBJ invocations to module description.
44500         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
44501         here...
44502         * modules/wcpncpy (configure.ac): ... to here.
44504 2011-05-22  Bruno Haible  <bruno@clisp.org>
44506         wcpcpy: Move AC_LIBOBJ invocations to module description.
44507         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
44508         * modules/wcpcpy (configure.ac): ... to here.
44510 2011-05-22  Bruno Haible  <bruno@clisp.org>
44512         waitpid: Move AC_LIBOBJ invocations to module description.
44513         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
44514         invocation from here...
44515         * modules/waitpid (configure.ac): ... to here.
44517 2011-05-22  Bruno Haible  <bruno@clisp.org>
44519         utimensat: Move AC_LIBOBJ invocations to module description.
44520         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
44521         here...
44522         * modules/utimensat (configure.ac): ... to here.
44524 2011-05-22  Bruno Haible  <bruno@clisp.org>
44526         usleep: Move AC_LIBOBJ invocations to module description.
44527         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
44528         here...
44529         * modules/usleep (configure.ac): ... to here.
44531 2011-05-22  Bruno Haible  <bruno@clisp.org>
44533         unlockpt: Move AC_LIBOBJ invocations to module description.
44534         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
44535         gl_PREREQ_UNLOCKPT invocations from here...
44536         * modules/unlockpt (configure.ac): ... to here.
44538 2011-05-22  Bruno Haible  <bruno@clisp.org>
44540         unlink: Respect rules for use of AC_LIBOBJ.
44541         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
44542         * modules/unlink (configure.ac): ... to here.
44544 2011-05-22  Bruno Haible  <bruno@clisp.org>
44546         uname: Move AC_LIBOBJ invocations to module description.
44547         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
44548         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
44549         here...
44550         * modules/uname (configure.ac): ... to here.
44552 2011-05-22  Bruno Haible  <bruno@clisp.org>
44554         ttyname_r: Move AC_LIBOBJ invocations to module description.
44555         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
44556         gl_PREREQ_TTYNAME_R invocations from here...
44557         * modules/ttyname_r (configure.ac): ... to here.
44559 2011-05-22  Bruno Haible  <bruno@clisp.org>
44561         tsearch: Move AC_LIBOBJ invocations to module description.
44562         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
44563         invocations from here...
44564         * modules/tsearch (configure.ac): ... to here.
44566 2011-05-22  Bruno Haible  <bruno@clisp.org>
44568         towctrans: Move AC_LIBOBJ invocations to module description.
44569         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
44570         AC_LIBOBJ invocation from here...
44571         * modules/towctrans (configure.ac): ... to here.
44573 2011-05-22  Bruno Haible  <bruno@clisp.org>
44575         tmpfile: Move AC_LIBOBJ invocations to module description.
44576         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
44577         invocations from here...
44578         * modules/tmpfile (configure.ac): ... to here.
44580 2011-05-22  Bruno Haible  <bruno@clisp.org>
44582         times: Move AC_LIBOBJ invocations to module description.
44583         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
44584         * modules/times (configure.ac): ... to here.
44586 2011-05-22  Bruno Haible  <bruno@clisp.org>
44588         time_r: Move AC_LIBOBJ invocations to module description.
44589         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
44590         invocations from here...
44591         * modules/time_r (configure.ac): ... to here.
44593 2011-05-22  Bruno Haible  <bruno@clisp.org>
44595         timegm: Move AC_LIBOBJ invocations to module description.
44596         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
44597         invocations from here...
44598         * modules/timegm (configure.ac): ... to here.
44600 2011-05-22  Bruno Haible  <bruno@clisp.org>
44602         tcgetsid: Move AC_LIBOBJ invocations to module description.
44603         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
44604         and gl_PREREQ_TCGETSID invocations from here...
44605         * modules/tcgetsid (configure.ac): ... to here.
44606         (Depends-on): Update conditions.
44608 2011-05-22  Bruno Haible  <bruno@clisp.org>
44610         symlinkat: Move AC_LIBOBJ invocations to module description.
44611         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
44612         here...
44613         * modules/symlinkat (configure.ac): ... to here.
44615 2011-05-22  Bruno Haible  <bruno@clisp.org>
44617         symlink: Move AC_LIBOBJ invocations to module description.
44618         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
44619         here...
44620         * modules/symlink (configure.ac): ... to here.
44622 2011-05-22  Bruno Haible  <bruno@clisp.org>
44624         strverscmp: Move AC_LIBOBJ invocations to module description.
44625         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
44626         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
44627         from here...
44628         * modules/strverscmp (configure.ac): ... to here.
44630 2011-05-22  Bruno Haible  <bruno@clisp.org>
44632         strtok_r: Move AC_LIBOBJ invocations to module description.
44633         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
44634         and gl_PREREQ_STRTOK_R invocations from here...
44635         * modules/strtok_r (configure.ac): ... to here.
44636         (Depends-on): Update conditions.
44638 2011-05-22  Bruno Haible  <bruno@clisp.org>
44640         strtoumax: Move AC_LIBOBJ invocations to module description.
44641         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
44642         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
44643         from here...
44644         * modules/strtoumax (configure.ac): ... to here.
44646 2011-05-22  Bruno Haible  <bruno@clisp.org>
44648         strtoimax: Move AC_LIBOBJ invocations to module description.
44649         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
44650         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
44651         from here...
44652         * modules/strtoimax (configure.ac): ... to here.
44654 2011-05-22  Bruno Haible  <bruno@clisp.org>
44656         strtoull: Move AC_LIBOBJ invocations to module description.
44657         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
44658         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
44659         from here...
44660         * modules/strtoull (configure.ac): ... to here.
44662 2011-05-22  Bruno Haible  <bruno@clisp.org>
44664         strtoll: Move AC_LIBOBJ invocations to module description.
44665         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
44666         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
44667         here...
44668         * modules/strtoll (configure.ac): ... to here.
44670 2011-05-22  Bruno Haible  <bruno@clisp.org>
44672         strtoul: Move AC_LIBOBJ invocations to module description.
44673         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
44674         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
44675         * modules/strtoul (configure.ac): ... to here.
44677 2011-05-22  Bruno Haible  <bruno@clisp.org>
44679         strtol: Move AC_LIBOBJ invocations to module description.
44680         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
44681         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
44682         * modules/strtol (configure.ac): ... to here.
44684 2011-05-22  Bruno Haible  <bruno@clisp.org>
44686         strtod: Move AC_LIBOBJ invocations to module description.
44687         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
44688         invocations from here...
44689         * modules/strtod (configure.ac): ... to here.
44691 2011-05-22  Bruno Haible  <bruno@clisp.org>
44693         strstr*: Move AC_LIBOBJ invocations to module description.
44694         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
44695         invocations from here...
44696         * modules/strstr-simple (configure.ac): ... to here.
44697         * modules/strstr (configure.ac): ... and here.
44699 2011-05-22  Bruno Haible  <bruno@clisp.org>
44701         strsignal: Move AC_LIBOBJ invocations to module description.
44702         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
44703         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
44704         * modules/strsignal (configure.ac): ... to here.
44705         (Depends-on): Update conditions.
44707 2011-05-22  Bruno Haible  <bruno@clisp.org>
44709         strsep: Move AC_LIBOBJ invocations to module description.
44710         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
44711         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
44712         here...
44713         * modules/strsep (configure.ac): ... to here.
44715 2011-05-22  Bruno Haible  <bruno@clisp.org>
44717         strptime: Move AC_LIBOBJ invocations to module description.
44718         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
44719         gl_PREREQ_STRPTIME invocations from here...
44720         * modules/strptime (configure.ac): ... to here.
44722 2011-05-22  Bruno Haible  <bruno@clisp.org>
44724         strpbrk: Move AC_LIBOBJ invocations to module description.
44725         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
44726         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
44727         here...
44728         * modules/strpbrk (configure.ac): ... to here.
44730 2011-05-22  Bruno Haible  <bruno@clisp.org>
44732         strnlen: Move AC_LIBOBJ invocations to module description.
44733         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
44734         invocations from here...
44735         * modules/strnlen (configure.ac): ... to here.
44737 2011-05-22  Bruno Haible  <bruno@clisp.org>
44739         strndup: Move AC_LIBOBJ invocations to module description.
44740         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
44741         invocations from here...
44742         * modules/strndup (configure.ac): ... to here.
44743         (Depends-on): Update conditions.
44745 2011-05-22  Bruno Haible  <bruno@clisp.org>
44747         strncat: Move AC_LIBOBJ invocations to module description.
44748         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
44749         invocations from here...
44750         * modules/strncat (configure.ac): ... to here.
44752 2011-05-22  Bruno Haible  <bruno@clisp.org>
44754         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
44755         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
44756         invocations from here...
44757         * modules/strdup (configure.ac): ... to here.
44758         * modules/strdup-posix (configure.ac): ... and here.
44760 2011-05-22  Bruno Haible  <bruno@clisp.org>
44762         strcspn: Move AC_LIBOBJ invocations to module description.
44763         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
44764         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
44765         here...
44766         * modules/strcspn (configure.ac): ... to here.
44768 2011-05-22  Bruno Haible  <bruno@clisp.org>
44770         strchrnul: Move AC_LIBOBJ invocations to module description.
44771         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
44772         gl_PREREQ_STRCHRNUL invocations from here...
44773         * modules/strchrnul (configure.ac): ... to here.
44775 2011-05-22  Bruno Haible  <bruno@clisp.org>
44777         strcasestr*: Move AC_LIBOBJ invocations to module description.
44778         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
44779         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
44780         * modules/strcasestr-simple (configure.ac): ... to here.
44781         * modules/strcasestr (configure.ac): ... and here.
44783 2011-05-22  Bruno Haible  <bruno@clisp.org>
44785         strcase: Move AC_LIBOBJ invocations to module description.
44786         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
44787         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
44788         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
44789         gl_PREREQ_STRNCASECMP invocations from here...
44790         * modules/strcase (configure.ac): ... to here.
44792 2011-05-22  Bruno Haible  <bruno@clisp.org>
44794         stpncpy: Move AC_LIBOBJ invocations to module description.
44795         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
44796         here...
44797         * modules/stpncpy (configure.ac): ... to here.
44799 2011-05-22  Bruno Haible  <bruno@clisp.org>
44801         stpcpy: Move AC_LIBOBJ invocations to module description.
44802         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
44803         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
44804         here...
44805         * modules/stpcpy (configure.ac): ... to here.
44807 2011-05-21  Bruno Haible  <bruno@clisp.org>
44809         stat: Move AC_LIBOBJ invocations to module description.
44810         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
44811         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
44812         here...
44813         * modules/stat (configure.ac): ... to here.
44815 2011-05-21  Bruno Haible  <bruno@clisp.org>
44817         sleep: Move AC_LIBOBJ invocations to module description.
44818         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
44819         * modules/sleep (configure.ac): ... to here.
44821 2011-05-21  Bruno Haible  <bruno@clisp.org>
44823         signbit: Move AC_LIBOBJ invocations to module description.
44824         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
44825         * modules/signbit (configure.ac): ... to here.
44827 2011-05-21  Bruno Haible  <bruno@clisp.org>
44829         sigprocmask: Move AC_LIBOBJ invocations to module description.
44830         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
44831         gl_PREREQ_SIGPROMASK invocations from here...
44832         * modules/sigprocmask (configure.ac): ... to here.
44834 2011-05-21  Bruno Haible  <bruno@clisp.org>
44836         sigaction: Move AC_LIBOBJ invocations to module description.
44837         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
44838         gl_PREREQ_SIGACTION invocations from here...
44839         * modules/sigaction (configure.ac): ... to here.
44841 2011-05-21  Bruno Haible  <bruno@clisp.org>
44843         sig2str: Move AC_LIBOBJ invocations to module description.
44844         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
44845         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
44846         here...
44847         * modules/sig2str (configure.ac): ... to here.
44849 2011-05-21  Bruno Haible  <bruno@clisp.org>
44851         setlocale: Move AC_LIBOBJ invocations to module description.
44852         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
44853         gl_PREREQ_SETLOCALE invocations from here...
44854         * modules/setlocale (configure.ac): ... to here.
44856 2011-05-21  Bruno Haible  <bruno@clisp.org>
44858         unsetenv: Move AC_LIBOBJ invocations to module description.
44859         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
44860         and gl_PREREQ_UNSETENV invocations from here...
44861         * modules/unsetenv (configure.ac): ... to here.
44862         (Depends-on): Update.
44864 2011-05-21  Bruno Haible  <bruno@clisp.org>
44866         setenv: Move AC_LIBOBJ invocations to module description.
44867         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
44868         here...
44869         * modules/setenv (configure.ac): ... to here.
44871 2011-05-21  Bruno Haible  <bruno@clisp.org>
44873         selinux-h: Move AC_LIBOBJ invocations to module description.
44874         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
44875         AC_LIBOBJ invocation from here...
44876         * modules/selinux-h (configure.ac): ... to here.
44878 2011-05-21  Bruno Haible  <bruno@clisp.org>
44880         select: Respect rules for use of AC_LIBOBJ.
44881         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
44882         here...
44883         * modules/select (configure.ac): ... to here.
44885 2011-05-21  Bruno Haible  <bruno@clisp.org>
44887         scandir: Move AC_LIBOBJ invocations to module description.
44888         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
44889         invocations from here...
44890         * modules/scandir (configure.ac): ... to here.
44892 2011-05-21  Bruno Haible  <bruno@clisp.org>
44894         rpmatch: Move AC_LIBOBJ invocations to module description.
44895         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
44896         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
44897         here...
44898         * modules/rpmatch (configure.ac): ... to here.
44900 2011-05-21  Bruno Haible  <bruno@clisp.org>
44902         rmdir: Respect rules for use of AC_LIBOBJ.
44903         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
44904         * modules/rmdir (configure.ac): ... to here.
44906 2011-05-21  Bruno Haible  <bruno@clisp.org>
44908         renameat: Move AC_LIBOBJ invocations to module description.
44909         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
44910         here...
44911         * modules/renameat (configure.ac): ... to here.
44913 2011-05-21  Bruno Haible  <bruno@clisp.org>
44915         rename: Respect rules for use of AC_LIBOBJ.
44916         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
44917         here...
44918         * modules/rename (configure.ac): ... to here.
44920 2011-05-21  Bruno Haible  <bruno@clisp.org>
44922         remove: Move AC_LIBOBJ invocations to module description.
44923         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
44924         here...
44925         * modules/remove (configure.ac): ... to here.
44927 2011-05-21  Bruno Haible  <bruno@clisp.org>
44929         relocatable-lib: Move AC_LIBOBJ invocations to module description.
44930         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
44931         macro.
44932         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
44933         * modules/relocatable-lib (configure.ac): ... to here.
44934         * modules/relocatable-prog-wrapper (configure.ac): Invoke
44935         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
44937 2011-05-21  Bruno Haible  <bruno@clisp.org>
44939         relocatable-prog: Move AC_LIBOBJ invocations to module description.
44940         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
44941         here...
44942         * modules/relocatable-prog (configure.ac): ... to here.
44944 2011-05-21  Bruno Haible  <bruno@clisp.org>
44946         regex: Move AC_LIBOBJ invocations to module description.
44947         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
44948         invocations from here...
44949         * modules/regex (configure.ac): ... to here.
44951 2011-05-21  Bruno Haible  <bruno@clisp.org>
44953         realloc-*: Move AC_LIBOBJ invocations to module description.
44954         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
44955         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
44956         AC_LIBOBJ invocations from here...
44957         * modules/realloc-gnu (configure.ac): ... to here.
44958         * modules/realloc-posix (configure.ac): ... and here.
44960 2011-05-21  Bruno Haible  <bruno@clisp.org>
44962         readutmp: Move AC_LIBOBJ invocations to module description.
44963         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
44964         * modules/readutmp (configure.ac): ... to here.
44966 2011-05-21  Bruno Haible  <bruno@clisp.org>
44968         readlinkat: Move AC_LIBOBJ invocations to module description.
44969         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
44970         here...
44971         * modules/readlinkat (configure.ac): ... to here.
44973 2011-05-21  Bruno Haible  <bruno@clisp.org>
44975         readlink: Move AC_LIBOBJ invocations to module description.
44976         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
44977         gl_PREREQ_READLINK invocations from here...
44978         * modules/readlink (configure.ac): ... to here.
44980 2011-05-21  Bruno Haible  <bruno@clisp.org>
44982         readline: Move AC_LIBOBJ invocations to module description.
44983         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
44984         gl_PREREQ_READLINE invocations from here...
44985         * modules/readline (configure.ac): ... to here.
44987 2011-05-21  Bruno Haible  <bruno@clisp.org>
44989         read: Move AC_LIBOBJ invocations to module description.
44990         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
44991         * modules/read (configure.ac): ... to here.
44993 2011-05-21  Bruno Haible  <bruno@clisp.org>
44995         rawmemchr: Move AC_LIBOBJ invocations to module description.
44996         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
44997         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
44998         from here...
44999         * modules/rawmemchr (configure.ac): ... to here.
45001 2011-05-21  Bruno Haible  <bruno@clisp.org>
45003         random_r: Move AC_LIBOBJ invocations to module description.
45004         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
45005         gl_PREREQ_RANDOM_R invocations from here...
45006         * modules/random_r (configure.ac): ... to here.
45008 2011-05-21  Bruno Haible  <bruno@clisp.org>
45010         pwrite: Move AC_LIBOBJ invocations to module description.
45011         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
45012         * modules/pwrite (configure.ac): ... to here.
45014 2011-05-21  Bruno Haible  <bruno@clisp.org>
45016         putenv: Move AC_LIBOBJ invocations to module description.
45017         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
45018         * modules/putenv (configure.ac): ... to here.
45020 2011-05-21  Bruno Haible  <bruno@clisp.org>
45022         login_tty: Move AC_LIBOBJ invocations to module description.
45023         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
45024         * modules/login_tty (configure.ac): ... to here.
45026 2011-05-21  Bruno Haible  <bruno@clisp.org>
45028         openpty: Move AC_LIBOBJ invocations to module description.
45029         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
45030         * modules/openpty (configure.ac): ... to here.
45032 2011-05-21  Bruno Haible  <bruno@clisp.org>
45034         forkpty: Move AC_LIBOBJ invocations to module description.
45035         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
45036         * modules/forkpty (configure.ac): ... to here.
45038 2011-05-21  Bruno Haible  <bruno@clisp.org>
45040         ptsname: Move AC_LIBOBJ invocations to module description.
45041         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
45042         invocations from here...
45043         * modules/ptsname (configure.ac): ... to here.
45045 2011-05-21  Bruno Haible  <bruno@clisp.org>
45047         pread: Move AC_LIBOBJ invocations to module description.
45048         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
45049         * modules/pread (configure.ac): ... to here.
45051 2011-05-21  Bruno Haible  <bruno@clisp.org>
45053         posix_spawn*: Move AC_LIBOBJ invocations to module description.
45054         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
45055         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
45056         * modules/posix_spawn (configure.ac): ... to here.
45057         * modules/posix_spawnp (configure.ac): ... and here.
45059 2011-05-21  Bruno Haible  <bruno@clisp.org>
45061         popen: Move AC_LIBOBJ invocations to module description.
45062         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
45063         invocations from here...
45064         * modules/popen (configure.ac): ... to here.
45066 2011-05-21  Bruno Haible  <bruno@clisp.org>
45068         poll: Move AC_LIBOBJ invocations to module description.
45069         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
45070         invocations from here...
45071         * modules/poll (configure.ac): ... to here.
45073 2011-05-21  Bruno Haible  <bruno@clisp.org>
45075         pipe-posix: Move AC_LIBOBJ invocations to module description.
45076         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
45077         * modules/pipe-posix (configure.ac): ... to here.
45079 2011-05-21  Bruno Haible  <bruno@clisp.org>
45081         openat: Respect rules for use of AC_LIBOBJ.
45082         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
45083         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
45084         * modules/openat (configure.ac): ... to here.
45086 2011-05-21  Bruno Haible  <bruno@clisp.org>
45088         obstack-printf*: Move AC_LIBOBJ invocations to module description.
45089         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
45090         invocation from here...
45091         * modules/obstack-printf (configure.ac): ... to here.
45092         * modules/obstack-printf-posix (configure.ac): ... and here.
45094 2011-05-21  Bruno Haible  <bruno@clisp.org>
45096         nl_langinfo: Move AC_LIBOBJ invocations to module description.
45097         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
45098         from here...
45099         * modules/nl_langinfo (configure.ac): ... to here.
45101 2011-05-21  Bruno Haible  <bruno@clisp.org>
45103         nanosleep: Move AC_LIBOBJ invocations to module description.
45104         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
45105         gl_PREREQ_NANOSLEEP invocations from here...
45106         * modules/nanosleep (configure.ac): ... to here.
45108 2011-05-21  Bruno Haible  <bruno@clisp.org>
45110         mountlist: Move AC_LIBOBJ invocations to module description.
45111         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
45112         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
45113         * modules/mountlist (configure.ac): ... to here.
45115 2011-05-21  Bruno Haible  <bruno@clisp.org>
45117         mktime: Respect rules for use of AC_LIBOBJ.
45118         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
45119         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
45120         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
45121         (gl_FUNC_MKTIME_INTERNAL): ... and here...
45122         * modules/mktime (configure.ac): ... to here.
45123         * modules/mktime-internal (configure.ac): ... and here.
45124         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
45126 2011-05-21  Bruno Haible  <bruno@clisp.org>
45128         mkstemps: Move AC_LIBOBJ invocations to module description.
45129         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
45130         here...
45131         * modules/mkstemps (configure.ac): ... to here.
45133 2011-05-21  Bruno Haible  <bruno@clisp.org>
45135         mkstemp: Move AC_LIBOBJ invocations to module description.
45136         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
45137         gl_PREREQ_MKSTEMP invocations from here...
45138         * modules/mkstemp (configure.ac): ... to here.
45140 2011-05-21  Bruno Haible  <bruno@clisp.org>
45142         mkostemps: Move AC_LIBOBJ invocations to module description.
45143         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
45144         here...
45145         * modules/mkostemps (configure.ac): ... to here.
45147 2011-05-21  Bruno Haible  <bruno@clisp.org>
45149         mkostemp: Move AC_LIBOBJ invocations to module description.
45150         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
45151         gl_PREREQ_MKOSTEMP invocations from here...
45152         * modules/mkostemp (configure.ac): ... to here.
45154 2011-05-21  Bruno Haible  <bruno@clisp.org>
45156         mknod: Move AC_LIBOBJ invocations to module description.
45157         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
45158         * modules/mknod (configure.ac): ... to here.
45160 2011-05-21  Bruno Haible  <bruno@clisp.org>
45162         mkfifoat: Move AC_LIBOBJ invocations to module description.
45163         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
45164         here...
45165         * modules/mkfifoat (configure.ac): ... to here.
45167 2011-05-21  Bruno Haible  <bruno@clisp.org>
45169         mkfifo: Respect rules for use of AC_LIBOBJ.
45170         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
45171         here...
45172         * modules/mkfifo (configure.ac): ... to here.
45174 2011-05-21  Bruno Haible  <bruno@clisp.org>
45176         mkdtemp: Move AC_LIBOBJ invocations to module description.
45177         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
45178         invocations from here...
45179         * modules/mkdtemp (configure.ac): ... to here.
45181 2011-05-21  Bruno Haible  <bruno@clisp.org>
45183         mkdir: Move AC_LIBOBJ invocations to module description.
45184         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
45185         * modules/mkdir (configure.ac): ... to here.
45187 2011-05-21  Bruno Haible  <bruno@clisp.org>
45189         memset: Move AC_LIBOBJ invocations to module description.
45190         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
45191         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
45192         here...
45193         * modules/memset (configure.ac): ... to here.
45195 2011-05-21  Bruno Haible  <bruno@clisp.org>
45197         memrchr: Move AC_LIBOBJ invocations to module description.
45198         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
45199         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
45200         here...
45201         * modules/memrchr (configure.ac): ... to here.
45203 2011-05-21  Bruno Haible  <bruno@clisp.org>
45205         mempcpy: Move AC_LIBOBJ invocations to module description.
45206         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
45207         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
45208         here...
45209         * modules/mempcpy (configure.ac): ... to here.
45211 2011-05-21  Bruno Haible  <bruno@clisp.org>
45213         memmove: Move AC_LIBOBJ invocations to module description.
45214         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
45215         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
45216         here...
45217         * modules/memmove (configure.ac): ... to here.
45219 2011-05-21  Bruno Haible  <bruno@clisp.org>
45221         memmem*: Move AC_LIBOBJ invocations to module description.
45222         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
45223         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
45224         here...
45225         (gl_FUNC_MEMMEM): ... and here...
45226         * modules/memmem-simple (configure.ac): ... to here.
45227         * modules/memmem (configure.ac): ... and here.
45229 2011-05-21  Bruno Haible  <bruno@clisp.org>
45231         memcpy: Move AC_LIBOBJ invocations to module description.
45232         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
45233         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
45234         here...
45235         * modules/memcpy (configure.ac): ... to here.
45237 2011-05-21  Bruno Haible  <bruno@clisp.org>
45239         memcmp: Simplify autoconf macro.
45240         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
45241         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
45242         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
45244 2011-05-21  Bruno Haible  <bruno@clisp.org>
45246         memcmp: Move AC_LIBOBJ invocations to module description.
45247         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
45248         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
45249         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
45250         * modules/memcmp (configure.ac): ... to here.
45251         (Depends-on): Update conditions.
45253 2011-05-21  Bruno Haible  <bruno@clisp.org>
45255         memchr: Respect rules for use of AC_LIBOBJ.
45256         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
45257         invocations from here...
45258         * modules/memchr (configure.ac): ... to here.
45260 2011-05-21  Bruno Haible  <bruno@clisp.org>
45262         mbtowc: Move AC_LIBOBJ invocations to module description.
45263         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
45264         invocations from here...
45265         * modules/mbtowc (configure.ac): ... to here.
45267 2011-05-21  Bruno Haible  <bruno@clisp.org>
45269         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
45270         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
45271         gl_PREREQ_MBSRTOWCS invocations from here...
45272         * modules/mbsrtowcs (configure.ac): ... to here.
45274 2011-05-21  Bruno Haible  <bruno@clisp.org>
45276         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
45277         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
45278         gl_PREREQ_MBSNRTOWCS invocations from here...
45279         * modules/mbsnrtowcs (configure.ac): ... to here.
45281 2011-05-21  Bruno Haible  <bruno@clisp.org>
45283         mbsinit: Move AC_LIBOBJ invocations to module description.
45284         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
45285         invocations from here...
45286         * modules/mbsinit (configure.ac): ... to here.
45288 2011-05-21  Bruno Haible  <bruno@clisp.org>
45290         mbrlen: Move AC_LIBOBJ invocations to module description.
45291         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
45292         invocations from here...
45293         * modules/mbrlen (configure.ac): ... to here.
45295 2011-05-21  Bruno Haible  <bruno@clisp.org>
45297         mbrtowc: Respect rules for use of AC_LIBOBJ.
45298         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
45299         invocations from here...
45300         * modules/mbrtowc (configure.ac): ... to here.
45302 2011-05-21  Bruno Haible  <bruno@clisp.org>
45304         malloc-*: Move AC_LIBOBJ invocations to module description.
45305         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
45306         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
45307         AC_LIBOBJ invocations from here...
45308         * modules/malloc-gnu (configure.ac): ... to here.
45309         * modules/malloc-posix (configure.ac): ... and here.
45311 2011-05-21  Bruno Haible  <bruno@clisp.org>
45313         lstat, openat: Respect rules for use of AC_LIBOBJ.
45314         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
45315         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
45316         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
45317         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
45318         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
45319         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
45320         here.
45321         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
45323 2011-05-21  Bruno Haible  <bruno@clisp.org>
45325         lseek: Move AC_LIBOBJ invocations to module description.
45326         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
45327         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
45328         * modules/lseek (configure.ac): ... to here.
45330 2011-05-21  Bruno Haible  <bruno@clisp.org>
45332         linkat: Move AC_LIBOBJ invocations to module description.
45333         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
45334         here...
45335         * modules/linkat (configure.ac): ... to here.
45337 2011-05-21  Bruno Haible  <bruno@clisp.org>
45339         link: Respect rules for use of AC_LIBOBJ.
45340         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
45341         * modules/link (configure.ac): ... to here.
45343 2011-05-21  Bruno Haible  <bruno@clisp.org>
45345         lchown: Move AC_LIBOBJ invocations to module description.
45346         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
45347         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
45348         * modules/lchown (configure.ac): ... to here.
45350 2011-05-21  Bruno Haible  <bruno@clisp.org>
45352         iswctype: Move AC_LIBOBJ invocations to module description.
45353         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
45354         here...
45355         * modules/iswctype (configure.ac): ... to here.
45357 2011-05-21  Bruno Haible  <bruno@clisp.org>
45359         iswblank: Move AC_LIBOBJ invocations to module description.
45360         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
45361         here...
45362         * modules/iswblank (configure.ac): ... to here.
45364 2011-05-21  Bruno Haible  <bruno@clisp.org>
45366         atanl: Move AC_LIBOBJ invocations to module description.
45367         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
45368         * modules/atanl (configure.ac): ... to here.
45370 2011-05-21  Bruno Haible  <bruno@clisp.org>
45372         acosl: Move AC_LIBOBJ invocations to module description.
45373         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
45374         * modules/acosl (configure.ac): ... to here.
45376 2011-05-21  Bruno Haible  <bruno@clisp.org>
45378         asinl: Respect rules for use of AC_LIBOBJ.
45379         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
45380         * modules/asinl (configure.ac): ... to here.
45382 2011-05-21  Bruno Haible  <bruno@clisp.org>
45384         tanl: Move AC_LIBOBJ invocations to module description.
45385         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
45386         * modules/tanl (configure.ac): ... to here.
45388 2011-05-21  Bruno Haible  <bruno@clisp.org>
45390         cosl: Move AC_LIBOBJ invocations to module description.
45391         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
45392         * modules/cosl (configure.ac): ... to here.
45394 2011-05-21  Bruno Haible  <bruno@clisp.org>
45396         sinl: Move AC_LIBOBJ invocations to module description.
45397         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
45398         * modules/sinl (configure.ac): ... to here.
45400 2011-05-21  Bruno Haible  <bruno@clisp.org>
45402         logl: Move AC_LIBOBJ invocations to module description.
45403         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
45404         * modules/logl (configure.ac): ... to here.
45406 2011-05-21  Bruno Haible  <bruno@clisp.org>
45408         expl: Move AC_LIBOBJ invocations to module description.
45409         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
45410         * modules/expl (configure.ac): ... to here.
45412 2011-05-21  Bruno Haible  <bruno@clisp.org>
45414         roundl: Move AC_LIBOBJ invocations to module description.
45415         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
45416         * modules/roundl (configure.ac): ... to here.
45418 2011-05-21  Bruno Haible  <bruno@clisp.org>
45420         round: Move AC_LIBOBJ invocations to module description.
45421         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
45422         * modules/round (configure.ac): ... to here.
45424 2011-05-21  Bruno Haible  <bruno@clisp.org>
45426         roundf: Move AC_LIBOBJ invocations to module description.
45427         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
45428         * modules/roundf (configure.ac): ... to here.
45430 2011-05-21  Bruno Haible  <bruno@clisp.org>
45432         truncl: Move AC_LIBOBJ invocations to module description.
45433         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
45434         * modules/truncl (configure.ac): ... to here.
45436 2011-05-21  Bruno Haible  <bruno@clisp.org>
45438         trunc: Move AC_LIBOBJ invocations to module description.
45439         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
45440         * modules/trunc (configure.ac): ... to here.
45442 2011-05-21  Bruno Haible  <bruno@clisp.org>
45444         truncf: Move AC_LIBOBJ invocations to module description.
45445         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
45446         * modules/truncf (configure.ac): ... to here.
45448 2011-05-21  Bruno Haible  <bruno@clisp.org>
45450         ceill: Move AC_LIBOBJ invocations to module description.
45451         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
45452         * modules/ceill (configure.ac): ... to here.
45454 2011-05-21  Bruno Haible  <bruno@clisp.org>
45456         ceil: Move AC_LIBOBJ invocations to module description.
45457         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
45458         * modules/ceil (configure.ac): ... to here.
45460 2011-05-21  Bruno Haible  <bruno@clisp.org>
45462         ceilf: Move AC_LIBOBJ invocations to module description.
45463         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
45464         * modules/ceilf (configure.ac): ... to here.
45466 2011-05-21  Bruno Haible  <bruno@clisp.org>
45468         floorl: Respect rules for use of AC_LIBOBJ.
45469         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
45470         * modules/floorl (configure.ac): ... to here.
45472 2011-05-21  Bruno Haible  <bruno@clisp.org>
45474         floor: Respect rules for use of AC_LIBOBJ.
45475         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
45476         * modules/floor (configure.ac): ... to here.
45478 2011-05-21  Bruno Haible  <bruno@clisp.org>
45480         floorf: Move AC_LIBOBJ invocations to module description.
45481         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
45482         * modules/floorf (configure.ac): ... to here.
45484 2011-05-20  Bruno Haible  <bruno@clisp.org>
45486         sqrtl: Respect rules for use of AC_LIBOBJ.
45487         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
45488         * modules/sqrtl (configure.ac): ... to here.
45490 2011-05-20  Bruno Haible  <bruno@clisp.org>
45492         ldexpl: Respect rules for use of AC_LIBOBJ.
45493         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
45494         * modules/ldexpl (configure.ac): ... to here.
45496 2011-05-20  Bruno Haible  <bruno@clisp.org>
45498         frexpl*: Respect rules for use of AC_LIBOBJ.
45499         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
45500         invocation from here...
45501         * modules/frexpl (configure.ac): ... to here.
45502         * modules/frexpl-nolibm (configure.ac): ... and here.
45504 2011-05-20  Bruno Haible  <bruno@clisp.org>
45506         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
45507         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
45508         invocation from here...
45509         * modules/frexp (configure.ac): ... to here.
45510         * modules/frexp-nolibm (configure.ac): ... and here.
45512 2011-05-20  Bruno Haible  <bruno@clisp.org>
45514         isnan: Respect rules for use of AC_LIBOBJ.
45515         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
45516         invocations here.
45517         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
45518         REPLACE_ISNAN.
45519         * modules/isnand (configure.ac): Likewise.
45520         * modules/isnanl (configure.ac): Likewise.
45522 2011-05-20  Bruno Haible  <bruno@clisp.org>
45524         isnanl*: Respect rules for use of AC_LIBOBJ.
45525         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
45526         invocation from here...
45527         * modules/isnanl (configure.ac): ... to here.
45528         * modules/isnanl-nolibm (configure.ac): ... and here.
45530 2011-05-20  Bruno Haible  <bruno@clisp.org>
45532         isnand*: Move AC_LIBOBJ invocations to module description.
45533         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
45534         invocation from here...
45535         * modules/isnand (configure.ac): ... to here.
45536         * modules/isnand-nolibm (configure.ac): ... and here.
45538 2011-05-20  Bruno Haible  <bruno@clisp.org>
45540         isnanf*: Move AC_LIBOBJ invocations to module description.
45541         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
45542         invocation from here...
45543         * modules/isnanf (configure.ac): ... to here.
45544         * modules/isnanf-nolibm (configure.ac): ... and here.
45546 2011-05-20  Bruno Haible  <bruno@clisp.org>
45548         isnan*: Separate the AC_LIBOBJ invocations.
45549         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
45550         AC_LIBOBJ invocation.
45551         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
45552         here.
45553         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
45554         AC_LIBOBJ invocation.
45555         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
45556         here.
45557         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
45558         AC_LIBOBJ invocation.
45559         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
45560         here.
45561         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
45563 2011-05-08  Bruno Haible  <bruno@clisp.org>
45565         isinf: Move AC_LIBOBJ invocations to module description.
45566         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
45567         * modules/isinf (configure.ac): ... to here.
45569 2011-05-08  Bruno Haible  <bruno@clisp.org>
45571         isfinite: Move AC_LIBOBJ invocations to module description.
45572         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
45573         * modules/isfinite (configure.ac): ... to here.
45575 2011-05-08  Bruno Haible  <bruno@clisp.org>
45577         isblank: Move AC_LIBOBJ invocations to module description.
45578         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
45579         here...
45580         * modules/isblank (configure.ac): ... to here.
45582 2011-05-08  Bruno Haible  <bruno@clisp.org>
45584         isapipe: Move AC_LIBOBJ invocations to module description.
45585         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
45586         gl_PREREQ_ISAPIPE invocations from here...
45587         * modules/isapipe (configure.ac): ... to here.
45588         (Depends-on): Update condition.
45590 2011-05-08  Bruno Haible  <bruno@clisp.org>
45592         ioctl: Move AC_LIBOBJ invocations to module description.
45593         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
45594         invocations from here...
45595         * modules/ioctl (configure.ac): ... to here.
45596         (Depends-on): Update condition.
45598 2011-05-08  Bruno Haible  <bruno@clisp.org>
45600         imaxdiv: Move AC_LIBOBJ invocations to module description.
45601         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
45602         invocations from here...
45603         * modules/imaxdiv (configure.ac): ... to here.
45605 2011-05-08  Bruno Haible  <bruno@clisp.org>
45607         imaxabs: Move AC_LIBOBJ invocations to module description.
45608         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
45609         invocations from here...
45610         * modules/imaxabs (configure.ac): ... to here.
45612 2011-05-08  Bruno Haible  <bruno@clisp.org>
45614         getaddrinfo: Move AC_LIBOBJ invocations to module description.
45615         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
45616         AC_LIBOBJ invocations from here...
45617         * modules/getaddrinfo (configure.ac): ... to here.
45618         (Depends-on): Add conditions.
45620 2011-05-08  Bruno Haible  <bruno@clisp.org>
45622         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
45623         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
45624         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
45625         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
45626         (gl_PREREQ_INET_PTON): ... from here.
45627         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
45628         gl_PREREQ_INET_PTON here.
45629         (Depends-on): Update condition.
45631 2011-05-08  Bruno Haible  <bruno@clisp.org>
45633         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
45634         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
45635         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
45636         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
45637         (gl_PREREQ_INET_NTOP): ... from here.
45638         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
45639         gl_PREREQ_INET_NTOP here.
45640         (Depends-on): Update condition.
45642 2011-05-08  Bruno Haible  <bruno@clisp.org>
45644         iconv_open: Move AC_LIBOBJ invocations to module description.
45645         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
45646         AC_LIBOBJ invocations from here...
45647         * modules/iconv_open (configure.ac): ... to here.
45649 2011-05-08  Bruno Haible  <bruno@clisp.org>
45651         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
45652         If module 'iconv_open' is among the main modules and module
45653         'iconv_open-utf' is among the tests dependencies, then
45654         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
45655         return the special iconv_t values. Therefore iconv() and iconv_close()
45656         must support these special iconv_t values, already in lib, not only in
45657         tests.
45658         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
45659         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
45660         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
45661         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
45662         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
45663         (Depends-on): Add the dependencies of iconv_open-utf.
45664         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
45665         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
45666         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
45668 2011-05-08  Bruno Haible  <bruno@clisp.org>
45670         group-member: Move AC_LIBOBJ invocations to module description.
45671         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
45672         gl_PREREQ_GROUP_MEMBER invocations from here...
45673         * modules/group-member (configure.ac): ... to here.
45675 2011-05-08  Bruno Haible  <bruno@clisp.org>
45677         grantpt: Move AC_LIBOBJ invocations to module description.
45678         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
45679         invocations from here...
45680         * modules/grantpt (configure.ac): ... to here.
45682 2011-05-08  Bruno Haible  <bruno@clisp.org>
45684         glob: Move AC_LIBOBJ invocations to module description.
45685         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
45686         from here...
45687         * modules/glob (configure.ac): ... to here.
45689 2011-05-08  Bruno Haible  <bruno@clisp.org>
45691         getusershell: Move AC_LIBOBJ invocations to module description.
45692         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
45693         Move AC_LIBOBJ invocation from here...
45694         * modules/getusershell (configure.ac): ... to here.
45695         (Depends-on): Update condition.
45697 2011-05-08  Bruno Haible  <bruno@clisp.org>
45699         gettimeofday: Move AC_LIBOBJ invocations to module description.
45700         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
45701         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
45702         gl_PREREQ_GETTIMEOFDAY invocations from here...
45703         * modules/gettimeofday (configure.ac): ... to here.
45705 2011-05-08  Bruno Haible  <bruno@clisp.org>
45707         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
45708         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
45709         just gl_FUNC_TZSET.
45710         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
45711         (gl_FUNC_TZSET_CLOBBER): Remove actions.
45712         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
45713         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
45715 2011-05-08  Bruno Haible  <bruno@clisp.org>
45717         getsubopt: Move AC_LIBOBJ invocations to module description.
45718         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
45719         gl_PREREQ_GETSUBOPT invocations from here...
45720         * modules/getsubopt (configure.ac): ... to here.
45722 2011-05-08  Bruno Haible  <bruno@clisp.org>
45724         getpass-gnu: Move AC_LIBOBJ invocations to module description.
45725         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
45726         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
45727         * modules/getpass-gnu (configure.ac): ... to here.
45729 2011-05-08  Bruno Haible  <bruno@clisp.org>
45731         getpass: Move AC_LIBOBJ invocations to module description.
45732         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
45733         gl_PREREQ_GETPASS invocations from here...
45734         * modules/getpass (configure.ac): ... to here.
45736 2011-05-08  Bruno Haible  <bruno@clisp.org>
45738         getpagesize: Move AC_LIBOBJ invocations to module description.
45739         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
45740         from here...
45741         * modules/getpagesize (configure.ac): ... to here.
45743 2011-05-08  Bruno Haible  <bruno@clisp.org>
45745         getopt: Move AC_LIBOBJ invocations to module description.
45746         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
45747         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
45748         invocations from here...
45749         * modules/getopt-gnu (configure.ac): ... to here.
45750         * modules/getopt-posix (configure.ac): ... and here.
45751         (Depends-on): Update condition.
45753 2011-05-08  Bruno Haible  <bruno@clisp.org>
45755         getopt, argp: Respect rules for use of AC_LIBOBJ.
45756         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
45757         (gl_REPLACE_GETOPT_ALWAYS): New macro.
45758         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
45759         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
45761 2011-05-08  Bruno Haible  <bruno@clisp.org>
45763         getlogin_r: Move AC_LIBOBJ invocations to module description.
45764         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
45765         gl_PREREQ_GETLOGIN_R invocations from here...
45766         * modules/getlogin_r (configure.ac): ... to here.
45768 2011-05-08  Bruno Haible  <bruno@clisp.org>
45770         getlogin: Move AC_LIBOBJ invocations to module description.
45771         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
45772         here...
45773         * modules/getlogin (configure.ac): ... to here.
45775 2011-05-08  Bruno Haible  <bruno@clisp.org>
45777         getloadavg: Move AC_LIBOBJ invocations to module description.
45778         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
45779         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
45780         * modules/getloadavg (configure.ac): ... to here.
45782 2011-05-08  Bruno Haible  <bruno@clisp.org>
45784         gethrxtime: Move AC_LIBOBJ invocations to module description.
45785         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
45786         LIB_GETHRXTIME from here...
45787         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
45788         invocations from here...
45789         * modules/gethrxtime (configure.ac): ... to here.
45791 2011-05-08  Bruno Haible  <bruno@clisp.org>
45793         gethostname: Move AC_LIBOBJ invocations to module description.
45794         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
45795         gl_PREREQ_GETHOSTNAME invocations from here...
45796         * modules/gethostname (configure.ac): ... to here.
45798 2011-05-08  Bruno Haible  <bruno@clisp.org>
45800         getgroups: Move AC_LIBOBJ invocations to module description.
45801         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
45802         here...
45803         * modules/getgroups (configure.ac): ... to here.
45805 2011-05-08  Bruno Haible  <bruno@clisp.org>
45807         getdtablesize: Move AC_LIBOBJ invocations to module description.
45808         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
45809         invocation from here...
45810         * modules/getdtablesize (configure.ac): ... to here.
45812 2011-05-08  Bruno Haible  <bruno@clisp.org>
45814         getdomainname: Move AC_LIBOBJ invocations to module description.
45815         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
45816         gl_PREREQ_GETDOMAINNAME invocations from here...
45817         * modules/getdomainname (configure.ac): ... to here.
45819 2011-05-08  Bruno Haible  <bruno@clisp.org>
45821         getline: Move AC_LIBOBJ invocations to module description.
45822         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
45823         invocations from here...
45824         * modules/getline (configure.ac): ... to here.
45826 2011-05-08  Bruno Haible  <bruno@clisp.org>
45828         getline: Simplify.
45829         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
45830         It's already handled through the module dependency.
45832 2011-05-08  Bruno Haible  <bruno@clisp.org>
45834         getdelim: Move AC_LIBOBJ invocations to module description.
45835         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
45836         and gl_PREREQ_GETDELIM invocations from here...
45837         * modules/getdelim (configure.ac): ... to here.
45838         (Depends-on): Fix condition.
45840 2011-05-08  Bruno Haible  <bruno@clisp.org>
45842         getcwd: Move AC_LIBOBJ invocations to module description.
45843         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
45844         invocations from here...
45845         * modules/getcwd (configure.ac): ... to here.
45847 2011-05-08  Bruno Haible  <bruno@clisp.org>
45849         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
45850         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
45851         here...
45852         * modules/getcwd-lgpl (configure.ac): ... to here.
45854 2011-05-07  Bruno Haible  <bruno@clisp.org>
45856         crypto/gc: Move AC_LIBOBJ invocations to module description.
45857         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
45858         * modules/crypto/gc (configure.ac): ... to here.
45860 2011-05-07  Bruno Haible  <bruno@clisp.org>
45862         fwriting: Move AC_LIBOBJ invocations to module description.
45863         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
45864         here...
45865         * modules/fwriting (configure.ac): ... to here.
45867 2011-05-07  Bruno Haible  <bruno@clisp.org>
45869         fwritable: Move AC_LIBOBJ invocations to module description.
45870         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
45871         here...
45872         * modules/fwritable (configure.ac): ... to here.
45874 2011-05-07  Bruno Haible  <bruno@clisp.org>
45876         futimens: Move AC_LIBOBJ invocations to module description.
45877         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
45878         here...
45879         * modules/futimens (configure.ac): ... to here.
45881 2011-05-07  Bruno Haible  <bruno@clisp.org>
45883         ftruncate: Move AC_LIBOBJ invocations to module description.
45884         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
45885         gl_PREREQ_FTRUNCATE invocations from here...
45886         * modules/ftruncate (configure.ac): ... to here.
45888 2011-05-07  Bruno Haible  <bruno@clisp.org>
45890         fsync: Move AC_LIBOBJ invocations to module description.
45891         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
45892         invocations from here...
45893         * modules/fsync (configure.ac): ... to here.
45895 2011-05-07  Bruno Haible  <bruno@clisp.org>
45897         fsusage: Move AC_LIBOBJ invocations to module description.
45898         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
45899         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
45900         * modules/fsusage (configure.ac): ... to here.
45902 2011-05-07  Bruno Haible  <bruno@clisp.org>
45904         freopen: Move AC_LIBOBJ invocations to module description.
45905         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
45906         invocations from here...
45907         * modules/freopen (configure.ac): ... to here.
45909 2011-05-07  Bruno Haible  <bruno@clisp.org>
45911         free: Move AC_LIBOBJ invocations to module description.
45912         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
45913         invocations from here...
45914         * modules/free (configure.ac): ... to here.
45916 2011-05-07  Bruno Haible  <bruno@clisp.org>
45918         freadable: Move AC_LIBOBJ invocations to module description.
45919         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
45920         here...
45921         * modules/freadable (configure.ac): ... to here.
45923 2011-05-07  Bruno Haible  <bruno@clisp.org>
45925         fpurge: Move AC_LIBOBJ invocations to module description.
45926         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
45927         invocations from here...
45928         * modules/fpurge (configure.ac): ... to here.
45930 2011-05-07  Bruno Haible  <bruno@clisp.org>
45932         fpending: Move AC_LIBOBJ invocations to module description.
45933         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
45934         gl_FUNC_FPENDING.
45935         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
45936         invocations from here...
45937         * modules/fpending (configure.ac): ... to here.
45939 2011-05-07  Bruno Haible  <bruno@clisp.org>
45941         fopen: Move AC_LIBOBJ invocations to module description.
45942         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
45943         invocations from here...
45944         * modules/fopen (configure.ac): ... to here.
45946 2011-05-07  Bruno Haible  <bruno@clisp.org>
45948         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
45949         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
45950         gl_FUNC_FNMATCH_POSIX.
45951         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
45952         invocations from here...
45953         * modules/fnmatch (configure.ac): ... to here.
45954         * modules/fnmatch-gnu (configure.ac): ... and here.
45956 2011-05-07  Bruno Haible  <bruno@clisp.org>
45958         flock: Move AC_LIBOBJ invocations to module description.
45959         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
45960         invocations from here...
45961         * modules/flock (configure.ac): ... to here.
45963 2011-05-07  Bruno Haible  <bruno@clisp.org>
45965         fileblocks: Move AC_LIBOBJ invocations to module description.
45966         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
45967         gl_PREREQ_FILEBLOCKS invocations from here...
45968         * modules/fileblocks (configure.ac): ... to here.
45970 2011-05-06  Bruno Haible  <bruno@clisp.org>
45972         fflush: Move AC_LIBOBJ invocations to module description.
45973         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
45974         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
45975         invocations from here...
45976         * modules/fflush (configure.ac): ... to here.
45978 2011-05-06  Bruno Haible  <bruno@clisp.org>
45980         fdopendir: Move AC_LIBOBJ invocations to module description.
45981         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
45982         here...
45983         * modules/fdopendir (configure.ac): ... to here.
45984         (Depends-on): Improve conditions.
45986 2011-05-06  Bruno Haible  <bruno@clisp.org>
45988         _Exit: Move AC_LIBOBJ invocations to module description.
45989         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
45990         invocations from here...
45991         * modules/_Exit (configure.ac): ... to here.
45993 2011-05-21  Bruno Haible  <bruno@clisp.org>
45995         euidaccess: Respect rules for use of AC_LIBOBJ.
45996         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
45997         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
45998         from here...
45999         * modules/euidaccess (configure.ac): ... to here.
46001 2011-05-06  Bruno Haible  <bruno@clisp.org>
46003         error: Move AC_LIBOBJ invocations to module description.
46004         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
46005         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
46006         invocations from here...
46007         * modules/error (configure.ac): ... to here.
46009 2011-05-06  Bruno Haible  <bruno@clisp.org>
46011         duplocale: Move AC_LIBOBJ invocations to module description.
46012         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
46013         gl_PREREQ_DUPLOCALE invocations from here...
46014         * modules/duplocale (configure.ac): ... to here.
46016 2011-05-05  Bruno Haible  <bruno@clisp.org>
46018         dirfd: Move AC_LIBOBJ invocations to module description.
46019         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
46020         gl_FUNC_DIRFD.
46021         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
46022         here...
46023         * modules/dirfd (configure.ac): ... to here.
46024         (Depends-on): Fix condition.
46026 2011-05-05  Bruno Haible  <bruno@clisp.org>
46028         chown: Respect rules for use of AC_LIBOBJ.
46029         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
46030         * modules/chown (configure.ac): ... to here.
46032 2011-05-05  Bruno Haible  <bruno@clisp.org>
46034         chdir-long: Move AC_LIBOBJ invocations to module description.
46035         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
46036         gl_PREREQ_CHDIR_LONG invocations from here...
46037         * modules/chdir-long (configure.ac): ... to here.
46039 2011-05-05  Bruno Haible  <bruno@clisp.org>
46041         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
46042         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
46043         from here...
46044         * modules/canonicalize-lgpl (configure.ac): ... to here.
46046 2011-05-05  Bruno Haible  <bruno@clisp.org>
46048         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
46049         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
46050         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
46051         REPLACE_CALLOC.
46052         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
46053         * modules/calloc-gnu (configure.ac): Likewise.
46055 2011-05-05  Bruno Haible  <bruno@clisp.org>
46057         btowc: Move AC_LIBOBJ invocations to module description.
46058         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
46059         invocations from here...
46060         * modules/btowc (configure.ac): ... to here.
46062 2011-05-21  Bruno Haible  <bruno@clisp.org>
46064         atexit: Move AC_LIBOBJ invocations to module description.
46065         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
46066         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
46067         here...
46068         * modules/atexit (configure.ac): ... to here.
46070 2011-05-05  Bruno Haible  <bruno@clisp.org>
46072         atoll: Move AC_LIBOBJ invocations to module description.
46073         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
46074         invocations from here...
46075         * modules/atoll (configure.ac): ... to here.
46077 2011-05-05  Bruno Haible  <bruno@clisp.org>
46079         argz: Move AC_LIBOBJ invocations to module description.
46080         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
46081         * modules/argz (configure.ac): ... to here.
46083 2011-05-05  Bruno Haible  <bruno@clisp.org>
46085         alphasort: Move AC_LIBOBJ invocations to module description.
46086         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
46087         gl_PREREQ_ALPHASORT invocations from here...
46088         * modules/alphasort (configure.ac): ... to here.
46090 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
46092         verify: new macro verify_expr; verify_true deprecated
46093         * NEWS: Mention this.
46094         * doc/verify.texi (Compile-time Assertions): Document this.
46095         * lib/verify.h (verify_true): Deprecate.
46096         (verify_expr): New macro.
46097         * tests/test-verify.c (function): Test verify_expr.
46099 2011-06-14  Jim Meyering  <meyering@redhat.com>
46101         init.sh: give more portable redirection-related advice in a comment
46102         * tests/init.sh (stderr_fileno_): Update the advice in comments.
46103         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
46104         for lots of discussion.  Stefano Lattarini suggested the solution
46105         of putting "9>&2" after the command.  Reported by Bruno Haible.
46107 2011-06-13  Bruno Haible  <bruno@clisp.org>
46109         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
46110         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
46111         'none'.
46113 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
46115         ftoastr: use strtof only if HAVE_STRTOF
46116         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
46117         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00154.html>.
46118         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
46119         * modules/ftoastr (configure.ac): Check for strtof.
46121 2011-06-13  Bruno Haible  <bruno@clisp.org>
46123         gnulib-tool: Addendum to 2011-06-08 commit.
46124         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
46125         and --witness-c-macro have been given, augment AM_CPPFLAGS.
46127 2011-06-13  Bruno Haible  <bruno@clisp.org>
46129         fseeko: Provide a non-inline replacement of fseek().
46130         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
46131         * modules/fseeko (Depends-on): Add fseek.
46132         * modules/fseek (License): Change to LGPLv2+.
46134 2011-06-13  Bruno Haible  <bruno@clisp.org>
46136         ftello: Provide a non-inline replacement of ftell().
46137         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
46138         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
46139         not have ftello() (such as on mingw).
46140         * modules/ftello (Depends-on): Add ftell.
46141         * modules/ftell (License): Change to LGPLv2+.
46143 2011-05-07  Bruno Haible  <bruno@clisp.org>
46145         ftell: Move AC_LIBOBJ invocations to module description.
46146         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
46147         * modules/ftell (configure.ac): ... to here.
46149 2011-05-07  Bruno Haible  <bruno@clisp.org>
46151         ftello: Respect rules for use of AC_LIBOBJ.
46152         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
46153         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
46154         here...
46155         * modules/ftello (configure.ac): ... to here.
46157 2011-05-07  Bruno Haible  <bruno@clisp.org>
46159         fseeko: Simplify.
46160         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
46161         (gl_FUNC_FSEEKO): Inline it here.
46163 2011-05-07  Bruno Haible  <bruno@clisp.org>
46165         fseek: Move AC_LIBOBJ invocations to module description.
46166         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
46167         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
46168         * modules/fseek (configure.ac): ... to here.
46170 2011-05-07  Bruno Haible  <bruno@clisp.org>
46172         fseek: Respect rules for use of AC_LIBOBJ.
46173         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
46174         here...
46175         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
46177 2011-05-07  Bruno Haible  <bruno@clisp.org>
46179         fseeko: Respect rules for use of AC_LIBOBJ.
46180         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
46181         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
46182         here...
46183         * modules/fseeko (configure.ac): ... to here.
46185 2011-06-13  Bruno Haible  <bruno@clisp.org>
46187         gnulib-tool: Allow comments in the 'Depends-on' section.
46188         * doc/gnulib.texi (Module description): Mention comment syntax in the
46189         Depends-on section.
46190         * gnulib-tool (func_get_dependencies): Filter out comment lines.
46192 2011-06-13  Bruno Haible  <bruno@clisp.org>
46194         file-set.h: guard __attibute__ use, now that it's not always defined
46195         * lib/file-set.h (record_file): Use __attribute__ only with compiler
46196         versions that support it.  This fixes a coreutils build failure with
46197         the vendor cc on HP-UX 11.31.
46199 2011-06-12  Bruno Haible  <bruno@clisp.org>
46201         acl: Add support for HP-UX >= 11.11 JFS ACLs.
46202         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
46203         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
46204         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
46205         (acl, aclsort): New declarations.
46206         (aclv_nontrivial): New declaration.
46207         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
46208         (file_has_acl): Read also the second kind of HP-UX ACLs.
46209         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
46210         kind of HP-UX ACLs if the first kind fails.
46211         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
46212         second kind of HP-UX ACLs.
46213         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
46214         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
46215         agree.
46216         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
46217         hpuxjfs.
46218         Handle hpuxjfs.
46219         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
46220         hpuxjfs.
46221         Handle hpuxjfs.
46222         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
46223         (func_test_same_acls): Use both lsacl and getacl.
46224         Handle hpuxjfs.
46225         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
46226         (func_test_same_acls): Use both lsacl and getacl.
46227         Handle hpuxjfs.
46229 2011-06-12  Bruno Haible  <bruno@clisp.org>
46231         acl: Complete the 2010-08-10 fix.
46232         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
46233         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
46234         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
46235         explicitly.
46236         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
46237         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
46239 2011-06-12  Bruno Haible  <bruno@clisp.org>
46241         spawn-pipe tests: Comments.
46242         * tests/test-spawn-pipe-child.c (main): Update comment.
46243         Reported by James Youngman <jay@gnu.org>.
46245 2011-06-11  James Youngman  <jay@gnu.org>
46247         New module 'stat-size'.
46248         * modules/stat-size: New module.  Provides macros for accessing
46249         file size information in instances of struct stat.  Depends on the
46250         fileblocks module because it calls st_blocks.
46251         * lib/stat-size.h: New file, adapted from coreutils' system.h.
46252         * doc/gnulib.texi: Include stat-size.texi.
46253         * doc/stat-size.texi: Documentation for this module.
46254         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
46255         * m4/fileblocks.m4: Mention that stat-size depends on the call to
46256         AC_STRUCT_ST_BLOCKS.
46258 2011-06-09  Bruno Haible  <bruno@clisp.org>
46260         thread: Support pthreads-win32.
46261         * lib/glthread/thread.h (gl_thread_self): Define differently on
46262         pthreads-win32.
46263         (gl_null_thread): New declaration.
46264         (gl_thread_self_pointer): New macro.
46265         * lib/glthread/thread.c (gl_null_thread): New constant.
46266         * tests/test-lock.c: Use gl_thread_self_pointer instead of
46267         gl_thread_self.
46268         * tests/test-tls.c: Likewise.
46269         Suggested by Paul Eggert. Reported by Eric Blake.
46271 2011-06-09  Bruno Haible  <bruno@clisp.org>
46273         thread: Fix confusion between NULL and 0.
46274         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
46275         Reported by Paul Eggert.
46277 2011-06-09  Bruno Haible  <bruno@clisp.org>
46279         spawn-pipe tests: Avoid test failure on HP-UX 11.
46280         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
46281         is closed.
46283 2011-06-09  Bruno Haible  <bruno@clisp.org>
46285         acl tests: Fix compilation error on HP-UX 11.
46286         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
46288 2011-06-09  Bruno Haible  <bruno@clisp.org>
46290         rmdir: Avoid test failure on HP-UX 10.20.
46291         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
46292         EEXIST.
46294 2011-06-08  Eric Blake  <eblake@redhat.com>
46296         perror: fix test on mingw
46297         * modules/perror-tests (Depends-on): Add dup2.
46299         strerror_r-posix: fix on MacOS
46300         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
46301         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
46302         logic bug.
46303         * lib/strerror_r.c (strerror_r): Fix the bug.
46304         * lib/strerror.c (strerror): Likewise.
46305         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
46306         problem.
46307         * doc/posix-functions/strerror.texi (strerror): Likewise.
46308         * doc/posix-functions/perror.texi (perror): Likewise.
46309         * tests/test-strerror.c (main): Enhance test.
46310         * tests/test-strerror_r.c (main): Likewise.
46312 2011-06-08  Bruno Haible  <bruno@clisp.org>
46314         gnulib-tool: Better isolation between different gnulib-tool invocations.
46315         * gnulib-tool: New option --witness-c-macro.
46316         (witness_c_macro): New variable.
46317         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
46318         AM_CPPFLAGS define it as a C macro.
46319         (func_emit_tests_Makefile_am): Likewise.
46320         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
46321         read it from there.
46322         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
46323         m4_define, not AC_DEFUN.
46324         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
46325         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
46326         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
46327         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
46328         s|...|...|, to substitute the values of the GNULIB_* module indicator
46329         variables.
46330         * modules/dirent (Makefile.am): Likewise.
46331         * modules/fcntl-h (Makefile.am): Likewise.
46332         * modules/iconv-h (Makefile.am): Likewise.
46333         * modules/langinfo (Makefile.am): Likewise.
46334         * modules/locale (Makefile.am): Likewise.
46335         * modules/math (Makefile.am): Likewise.
46336         * modules/netdb (Makefile.am): Likewise.
46337         * modules/poll-h (Makefile.am): Likewise.
46338         * modules/pty (Makefile.am): Likewise.
46339         * modules/search (Makefile.am): Likewise.
46340         * modules/signal (Makefile.am): Likewise.
46341         * modules/spawn (Makefile.am): Likewise.
46342         * modules/stdio (Makefile.am): Likewise.
46343         * modules/stdlib (Makefile.am): Likewise.
46344         * modules/string (Makefile.am): Likewise.
46345         * modules/sys_ioctl (Makefile.am): Likewise.
46346         * modules/sys_select (Makefile.am): Likewise.
46347         * modules/sys_socket (Makefile.am): Likewise.
46348         * modules/sys_stat (Makefile.am): Likewise.
46349         * modules/sys_times (Makefile.am): Likewise.
46350         * modules/sys_utsname (Makefile.am): Likewise.
46351         * modules/sys_wait (Makefile.am): Likewise.
46352         * modules/termios (Makefile.am): Likewise.
46353         * modules/time (Makefile.am): Likewise.
46354         * modules/unistd (Makefile.am): Likewise.
46355         * modules/wchar (Makefile.am): Likewise.
46357 2011-06-08  Eric Blake  <eblake@redhat.com>
46359         strerror: simplify replacement
46360         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
46361         * modules/strerror (configure.ac): No prereqs needed here...
46362         * modules/strerror-override (configure.ac): ...but this needs it.
46363         (Files): Add file for needed prereq macro.
46365 2011-06-08  Bruno Haible  <bruno@clisp.org>
46367         strerror_r-posix: Tweaks.
46368         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
46369         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
46370         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
46371         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
46372         (gl_FUNC_STRERROR_R): ... to here.
46373         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
46375 2011-06-07  Eric Blake  <eblake@redhat.com>
46377         perror: document fixed bugs
46378         * doc/posix-functions/perror.texi (perror): Document recent
46379         patches.
46381 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
46383         stat-time: get_stat_birthtime failure is better-defined
46384         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
46385         return a timestamp whose tv_sec and tv_nsec values are both -1.
46386         Previously, the spec said only that the tv_nsec value was negative.
46387         This upward-compatible change simplifies GNU tar a bit.
46389 2011-06-07  Eric Blake  <eblake@redhat.com>
46391         strerror_r-posix: work around cygwin 1.7.9
46392         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
46393         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
46394         bug without replacing strerror_r.
46395         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
46396         strerror_r is buggy, but without requiring strerror_r compilation.
46397         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
46399         test-perror: relax test to ignore cygwin bug
46400         * tests/test-perror2.c (main): Relax test on requiring detection
46401         of stream errors, and use unbuffered stream.
46402         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
46403         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
46404         * doc/posix-functions/fputc.texi (fputc): Likewise.
46405         * doc/posix-functions/fputs.texi (fputs): Likewise.
46406         * doc/posix-functions/fputws.texi (fputws): Likewise.
46407         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
46408         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
46409         * doc/posix-functions/getopt.texi (getopt): Likewise.
46410         * doc/posix-functions/perror.texi (perror): Likewise.
46411         * doc/posix-functions/printf.texi (printf): Likewise.
46412         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
46413         * doc/posix-functions/psignal.texi (psignal): Likewise.
46414         * doc/posix-functions/putc.texi (putc): Likewise.
46415         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
46416         Likewise.
46417         * doc/posix-functions/putchar.texi (putchar): Likewise.
46418         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
46419         Likewise.
46420         * doc/posix-functions/puts.texi (puts): Likewise.
46421         * doc/posix-functions/putwc.texi (putwc): Likewise.
46422         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
46423         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
46424         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
46425         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
46426         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
46427         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
46428         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
46429         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
46431 2011-05-22  Bruno Haible  <bruno@clisp.org>
46433         strerror: Move AC_LIBOBJ invocations to module description.
46434         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
46435         gl_PREREQ_STRERROR invocations from here...
46436         * modules/strerror (configure.ac): ... to here.
46438 2011-05-21  Bruno Haible  <bruno@clisp.org>
46440         perror: Use common idiom.
46441         * modules/perror (configure.ac): Reorder statements.
46443 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
46445         tests: fix usage message in 'mktempd_'
46446         * tests/init.sh (mktempd_): In the usage message, use literal
46447         'mktempd_', not '$ME' (which is even undefined), as the name of
46448         the subroutine.
46450 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
46452         tests init: new function 'fatal_', for hard errors
46453         Before this patch, the only way offered by tests/init.sh to
46454         properly signal a hard error was the `framework_failure_'
46455         function.  But the error message issued by that function,
46456         as its name would suggest, refers to a set-up failure in the
46457         testsuite, while hard errors can obviously also be due to
46458         other reasons.  The best way to fix this inconsistency is to
46459         introduce a new function with a more general error message.
46460         * tests/init.sh (fatal_): New function.
46462 2011-06-06  Eric Blake  <eblake@redhat.com>
46464         canonicalize-lgpl: use common idiom
46465         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
46466         over newer POSIX -Rf.
46467         Reported by Bruno Haible.
46469         canonicalize-lgpl: work around AIX realpath bug
46470         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
46471         * doc/posix-functions/realpath.texi (realpath): Document it.
46472         Reported by Bruno Haible.
46474         strerror: work around FreeBSD bug
46475         * lib/strerror.c (strerror): Special case 0.
46476         Reported by Bruno Haible.
46478         strerror-override: avoid bloating errno module
46479         * modules/errno (Files, configure.ac): Move replacement strings...
46480         * modules/strerror-override: ...to new module.
46481         * modules/strerror (Depends-on): Add strerror-override.
46482         * modules/strerror_r-posix (Depends-on): Likewise.
46483         * MODULES.html.sh: Document new module.
46484         Reported by Bruno Haible.
46486 2011-06-06  Bruno Haible  <bruno@clisp.org>
46488         spawn-pipe tests: Rename program.
46489         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
46490         * tests/test-spawn-pipe-child.c: Update comment.
46491         * tests/test-spawn-pipe.sh: Update.
46492         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
46494         spawn-pipe tests: Link the child program only against libc.
46495         * tests/test-spawn-pipe-child.c: New file, extracted from
46496         tests/test-spawn-pipe.c.
46497         (main): Expect only one argument.
46498         (is_open): New function, copied from tests/test-pipe.c.
46499         * tests/test-spawn-pipe.c: Don't include <errno.h>.
46500         (child_main): Remove function.
46501         (test_pipe): Pass only one argument to the child program.
46502         (main): Remove child process code. Expect the child program's name as
46503         first argument.
46504         * tests/test-spawn-pipe.sh: Pass the child program's name as first
46505         argument.
46506         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
46507         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
46508         test-spawn-pipe-child against no libraries.
46510 2011-06-06  Bruno Haible  <bruno@clisp.org>
46512         careadlinkat: Avoid mismatch between ssize_t and int.
46513         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
46514         * lib/careadlinkat.c (careadlinkatcwd): Define always.
46516 2011-06-06  Jim Meyering  <meyering@redhat.com>
46518         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
46519         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
46520         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
46522 2011-06-05  Bruno Haible  <bruno@clisp.org>
46524         ansi-c++-opt: Interoperability with libtool.
46525         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
46526         set the variable to "no", not to ":".
46527         * NEWS: Mention the change.
46529 2011-06-05  Bruno Haible  <bruno@clisp.org>
46531         acl: Fix test failure on AIX 7.
46532         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
46533         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
46535 2011-06-05  Bruno Haible  <bruno@clisp.org>
46537         pipe-filter-ii: Fix test failure on AIX and IRIX.
46538         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
46539         with EAGAIN, retry with a smaller buffer size.
46541 2011-06-05  Bruno Haible  <bruno@clisp.org>
46543         localename: Fix link dependencies.
46544         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
46545         * modules/localename-tests (Makefile.am): Link test-localename with
46546         $(LIBTHREAD).
46548 2011-06-05  Bruno Haible  <bruno@clisp.org>
46550         error: Avoid gcc warning.
46551         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
46553 2011-06-05  Bruno Haible  <bruno@clisp.org>
46555         unsetenv: Avoid gcc warning.
46556         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
46558 2011-06-05  Bruno Haible  <bruno@clisp.org>
46560         setenv: Avoid gcc warning.
46561         * lib/setenv.c (setenv): Provide declaration if system lacks it.
46563 2011-06-05  Bruno Haible  <bruno@clisp.org>
46565         sys_select: Ensure memset is declared also on AIX 7.
46566         * lib/sys_select.in.h: Include <string.h> also on AIX.
46567         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
46568         self-contained also on AIX 7.1.
46570 2011-06-04  Jim Meyering  <meyering@redhat.com>
46572         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
46573         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
46574         function name, "error".
46575         (_gl_translatable_diag_func_re): New configurable variable.
46577 2011-06-04  Bruno Haible  <bruno@clisp.org>
46579         getopt: Avoid gcc warning.
46580         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
46582 2011-06-04  Bruno Haible  <bruno@clisp.org>
46584         strerror_r: Fix comments.
46585         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
46586         commit.
46588 2011-06-04  Bruno Haible  <bruno@clisp.org>
46590         perror: Fix compilation error.
46591         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
46592         Undefine fprintf, not sprintf.
46593         * modules/perror (Depends-on): Remove intprops, verify.
46595 2011-06-04  Bruno Haible  <bruno@clisp.org>
46597         setlocale: Enable replacement on Cygwin 1.5.
46598         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
46599         Cygwin 1.5.x.
46600         * doc/posix-functions/setlocale.texi: Mention that the problem with the
46601         LC_CTYPE category also exists on Cygwin 1.5.x.
46603 2011-06-04  Bruno Haible  <bruno@clisp.org>
46605         strerror-override: Don't disable symbol renamings.
46606         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
46607         * lib/strerror-override.c: Include config.h.
46608         (strerror_override): Don't undefine.
46610 2011-06-03  Bruno Haible  <bruno@clisp.org>
46612         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
46613         * lib/localename.h: Update copyright header.
46614         * lib/localename.c: Likewise.
46615         * lib/relocatable.h: Likewise.
46616         * lib/relocatable.c: Likewise.
46618 2011-06-02  Bruno Haible  <bruno@clisp.org>
46620         doc: Fix a module name.
46621         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
46623 2011-06-02  Bruno Haible  <bruno@clisp.org>
46625         pipe2: Remove dependency on 'nonblocking' module.
46626         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
46627         O_NONBLOCK is defined by gnulib.
46628         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
46629         is zero.
46630         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
46631         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
46632         defined by gnulib.
46633         (get_nonblocking_flag): New function.
46634         (main): Test O_NONBLOCK flag only if it is nonzero.
46635         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
46637 2011-06-03  Jim Meyering  <meyering@redhat.com>
46639         maint: three new prohibit-header-without-use rules
46640         Prohibit use of cloexec.h, posixver.h, same.h without use.
46641         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
46642         (sc_prohibit_posixver_without_use): Likewise.
46643         (sc_prohibit_same_without_use): Likewise.
46645 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
46647         allocator: 'die' routine is now given requested size
46648         * lib/allocator.h (struct allocator.die): New size arg.
46649         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
46650         If the actual problem is an ssize_t limitation, not a size_t or
46651         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
46653 2011-06-01  Eric Blake  <eblake@redhat.com>
46655         strerror: drop strerror_r dependency
46656         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
46657         * lib/strerror-override.c (strerror_override): ...to new file.
46658         * lib/strerror-override.h: Add prototype.
46659         * lib/strerror-impl.h: Delete.
46660         * lib/strerror.c (strerror): New implementation.
46661         * modules/errno (Files): Add new files.
46662         (configure.ac): Compile new file as appropriate.
46663         * modules/strerror (Files): Drop unused file.
46664         (Depends-on): Drop strerror_r-posix.
46665         * MODULES.html.sh: Document strerror_r-posix.
46666         Requested by Sam Steingold.
46668         perror: call strerror_r directly
46669         * modules/perror (Files): Drop strerror-impl.h.
46670         * lib/perror.c (perror): Use our own stack buffer, rather than
46671         calling a wrapper that uses static storage.
46672         * doc/posix-functions/perror.texi (perror): Document a limitation
46673         of our replacement.
46675         strerror_r: fix includes for FreeBSD
46676         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
46677         since we use abort on some platforms.
46678         Reported by Matthias Bolte.
46680 2011-05-31  Bruno Haible  <bruno@clisp.org>
46682         Fix link errors in tests: openat-die uses gettext-h.
46683         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
46684         against $(LIBINTL).
46685         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
46686         against $(LIBINTL).
46687         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
46688         $(LIBINTL).
46689         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
46690         against $(LIBINTL).
46691         * modules/linkat-tests (Makefile.am): Link test-linkat against
46692         $(LIBINTL).
46693         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
46694         $(LIBINTL).
46695         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
46696         against $(LIBINTL).
46697         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
46698         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
46699         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
46700         $(LIBINTL).
46701         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
46702         $(LIBINTL).
46703         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
46704         $(LIBINTL).
46705         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46707 2011-05-31  Bruno Haible  <bruno@clisp.org>
46709         Fix link errors in tests: wait-process uses gettext-h.
46710         * modules/nonblocking-pipe-tests (Makefile.am): Set
46711         test_nonblocking_pipe_main_LDADD.
46712         * modules/nonblocking-socket-tests (Makefile.am): Link
46713         test-nonblocking-socket-main against $(LIBINTL).
46714         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46716 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
46718         assert-h: work around 'verify' incompatibility
46719         * lib/verify.h: Use @...@ directives, not ifdef.
46720         * modules/assert-h (assert.h): Implement the directives.
46721         (assert.h): Substitute the symbol-prefix more consistently.
46723 2011-05-29  Jim Meyering  <meyering@redhat.com>
46725         trim: remove three superfluous assignments
46726         * lib/trim.c (trim2): Remove three superfluous assignments
46727         and correct brace positioning.
46729 2011-05-29  Bruno Haible  <bruno@clisp.org>
46731         wctype-h: Avoid namespace pollution on Solaris 2.6.
46732         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
46733         identifiers.
46734         * doc/posix-headers/wctype.texi: Mention the problem.
46735         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46737 2011-05-28  Jim Meyering  <meyering@redhat.com>
46739         parse-datetime.y: accommodate -Wstrict-overflow
46740         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
46741         placate -Wstrict-overflow.
46743         trim: avoid a warning from -O2 -Wstrict-overflow
46744         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
46746 2011-05-29  Bruno Haible  <bruno@clisp.org>
46748         gnulib-tool: Fix bug in yesterday's commit.
46749         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
46750         twice.
46752 2011-05-29  Bruno Haible  <bruno@clisp.org>
46754         Allow multiple gnulib generated include files to be combined.
46755         * gnulib-tool (func_compute_include_guard_prefix): New function.
46756         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
46757         ${gl_include_guard_prefix} references.
46758         (func_import, func_create_testdir): Invoke
46759         func_compute_include_guard_prefix.
46760         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
46761         * lib/ctype.in.h: Likewise.
46762         * lib/dirent.in.h: Likewise.
46763         * lib/errno.in.h: Likewise.
46764         * lib/fcntl.in.h: Likewise.
46765         * lib/float.in.h: Likewise.
46766         * lib/getopt.in.h: Likewise.
46767         * lib/iconv.in.h: Likewise.
46768         * lib/langinfo.in.h: Likewise.
46769         * lib/locale.in.h: Likewise.
46770         * lib/math.in.h: Likewise.
46771         * lib/netdb.in.h: Likewise.
46772         * lib/netinet_in.in.h: Likewise.
46773         * lib/poll.in.h: Likewise.
46774         * lib/pthread.in.h: Likewise.
46775         * lib/pty.in.h: Likewise.
46776         * lib/sched.in.h: Likewise.
46777         * lib/se-selinux.in.h: Likewise.
46778         * lib/search.in.h: Likewise.
46779         * lib/signal.in.h: Likewise.
46780         * lib/spawn.in.h: Likewise.
46781         * lib/stdarg.in.h: Likewise.
46782         * lib/stddef.in.h: Likewise.
46783         * lib/stdint.in.h: Likewise.
46784         * lib/stdio.in.h: Likewise.
46785         * lib/stdlib.in.h: Likewise.
46786         * lib/string.in.h: Likewise.
46787         * lib/strings.in.h: Likewise.
46788         * lib/sys_file.in.h: Likewise.
46789         * lib/sys_ioctl.in.h: Likewise.
46790         * lib/sys_select.in.h: Likewise.
46791         * lib/sys_socket.in.h: Likewise.
46792         * lib/sys_stat.in.h: Likewise.
46793         * lib/sys_time.in.h: Likewise.
46794         * lib/sys_times.in.h: Likewise.
46795         * lib/sys_uio.in.h: Likewise.
46796         * lib/sys_utsname.in.h: Likewise.
46797         * lib/sys_wait.in.h: Likewise.
46798         * lib/sysexits.in.h: Likewise.
46799         * lib/termios.in.h: Likewise.
46800         * lib/time.in.h: Likewise.
46801         * lib/unistd.in.h: Likewise.
46802         * lib/wchar.in.h: Likewise.
46803         * lib/wctype.in.h: Likewise.
46804         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
46805         * modules/ctype (Makefile.am): Likewise.
46806         * modules/dirent (Makefile.am): Likewise.
46807         * modules/errno (Makefile.am): Likewise.
46808         * modules/fcntl-h (Makefile.am): Likewise.
46809         * modules/float (Makefile.am): Likewise.
46810         * modules/getopt-posix (Makefile.am): Likewise.
46811         * modules/iconv-h (Makefile.am): Likewise.
46812         * modules/langinfo (Makefile.am): Likewise.
46813         * modules/locale (Makefile.am): Likewise.
46814         * modules/math (Makefile.am): Likewise.
46815         * modules/netdb (Makefile.am): Likewise.
46816         * modules/netinet_in (Makefile.am): Likewise.
46817         * modules/poll-h (Makefile.am): Likewise.
46818         * modules/pthread (Makefile.am): Likewise.
46819         * modules/pty (Makefile.am): Likewise.
46820         * modules/sched (Makefile.am): Likewise.
46821         * modules/search (Makefile.am): Likewise.
46822         * modules/selinux-h (Makefile.am): Likewise.
46823         * modules/signal (Makefile.am): Likewise.
46824         * modules/spawn (Makefile.am): Likewise.
46825         * modules/stdarg (Makefile.am): Likewise.
46826         * modules/stddef (Makefile.am): Likewise.
46827         * modules/stdint (Makefile.am): Likewise.
46828         * modules/stdio (Makefile.am): Likewise.
46829         * modules/stdlib (Makefile.am): Likewise.
46830         * modules/string (Makefile.am): Likewise.
46831         * modules/strings (Makefile.am): Likewise.
46832         * modules/sys_file (Makefile.am): Likewise.
46833         * modules/sys_ioctl (Makefile.am): Likewise.
46834         * modules/sys_select (Makefile.am): Likewise.
46835         * modules/sys_socket (Makefile.am): Likewise.
46836         * modules/sys_stat (Makefile.am): Likewise.
46837         * modules/sys_time (Makefile.am): Likewise.
46838         * modules/sys_times (Makefile.am): Likewise.
46839         * modules/sys_uio (Makefile.am): Likewise.
46840         * modules/sys_utsname (Makefile.am): Likewise.
46841         * modules/sys_wait (Makefile.am): Likewise.
46842         * modules/sysexits (Makefile.am): Likewise.
46843         * modules/termios (Makefile.am): Likewise.
46844         * modules/time (Makefile.am): Likewise.
46845         * modules/unistd (Makefile.am): Likewise.
46846         * modules/wchar (Makefile.am): Likewise.
46847         * modules/wctype-h (Makefile.am): Likewise.
46848         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
46850 2011-05-29  Bruno Haible  <bruno@clisp.org>
46852         assert-h: Allow multiple gnulib generated replacements to coexist.
46853         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
46855 2011-05-29  Bruno Haible  <bruno@clisp.org>
46857         argp: Allow coexistence with strerror_r-posix module.
46858         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
46859         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
46860         by gnulib's <string.h> replacement), assume it has the POSIX signature,
46861         not the glibc signature.
46863 2011-05-28  Bruno Haible  <bruno@clisp.org>
46865         gnulib-tool: Alternative structure of testdirs, similar to --import.
46866         * gnulib-tool: New option --single-configure.
46867         (func_usage): Document it.
46868         (single_configure): New variable.
46869         (func_modules_transitive_closure_separately,
46870         func_modules_transitive_closure_separately,
46871         func_determine_use_libtests, func_modules_add_dummy_separately,
46872         func_modules_to_filelist_separately): New functions, extracted from
46873         func_import.
46874         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
46875         (func_import): Use the new functions.
46876         (func_create_testdir): Set final_modules. Handle $single_configure =
46877         true case.
46879 2011-05-28  Bruno Haible  <bruno@clisp.org>
46881         getloadavg: Remove an unreliable safety check.
46882         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
46883         getloadavg.c is in place.
46884         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
46885         Reported by Sam Steingold <sds@gnu.org>.
46887 2011-05-28  Bruno Haible  <bruno@clisp.org>
46889         doc: Cleanup yet another file produced by texinfo.tex.
46890         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
46892 2011-05-28  Bruno Haible  <bruno@clisp.org>
46894         Finish the conditional dependencies mechanism.
46895         * gnulib-tool: New option --no-conditional-dependencies.
46896         (func_usage): Document it. Don't mark --conditional-dependencies as
46897         experimental.
46898         (cond_dependencies): The possible values can now be true, false, empty.
46899         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
46900         (func_import): Store setting in gnulib-cache.m4 and read it from there.
46901         * doc/gnulib-tool.texi (Conditional dependencies): New section.
46903 2011-05-28  Bruno Haible  <bruno@clisp.org>
46905         doc: Use a recent texinfo.tex.
46906         * doc/Makefile (tex_opts): New variable.
46907         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
46909 2011-05-28  Jim Meyering  <meyering@redhat.com>
46911         intprops.h: adjust comment to match code change
46912         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
46913         only once, it *may* have side effects.  Also fix an unrelated typo.
46914         (_GL_INT_SIGNED): Likewise.
46916 2011-05-26  Simon Josefsson  <simon@josefsson.org>
46918         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
46920 2011-05-26  Bruno Haible  <bruno@clisp.org>
46922         mbsrchr: Avoid collision with system function on Interix.
46923         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
46924         Reported by Markus Duft <mduft@gentoo.org>.
46926 2011-05-15  James Youngman  <jay@gnu.org>
46928         getopt: for ambiguous options, enumerate the possibilities.
46929         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
46930         the ambiguous options when an ambiguous prefix is given. This was
46931         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
46932         glibc change was
46933         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
46935 2011-05-25  Eric Blake  <eblake@redhat.com>
46937         getcwd: work around mingw bug
46938         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
46939         * doc/posix-functions/getcwd.texi (getcwd): Document it.
46940         Reported by Matthias Bolte.
46942 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
46944         test-intprops: disable -Wtype-limits diagnostics
46945         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
46946         diagnostics.  Otherwise, the integer overflow macros generate many
46947         diagnostics.  Reported by Jim Meyering in
46948         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
46950         intprops: shorten, to pacify gcc -Woverlength-strings
46951         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
46952         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
46953         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
46954         likely to run afoul of C compiler limits for string constant lengths.
46955         See <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
46957 2011-05-24  Eric Blake  <eblake@redhat.com>
46959         docs: document recently fixed glibc printf bug
46960         * doc/posix-functions/fprintf.texi (fprintf): Document it.
46961         * doc/posix-functions/printf.texi (printf): Likewise.
46962         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
46963         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
46965         closein-tests: convert to init.sh
46966         * modules/closein-tests (Files): Add init.sh
46967         * tests/test-closein.sh Use it.
46969         yesno-tests: convert to init.sh
46970         * modules/yesno-tests (Files): Add init.sh.
46971         * tests/test-yesno.sh: Use it.
46973         atexit-tests: ensure reliable exit status
46974         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
46975         Reported by Bruno Haible.
46977 2011-05-24  Bruno Haible  <bruno@clisp.org>
46979         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
46980         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
46981         gl_PREREQ_STRERROR_R invocations from here...
46982         * modules/strerror_r-posix (configure.ac): ... to here.
46984 2011-05-24  Eric Blake  <eblake@redhat.com>
46986         strerror_r: fix missing header
46987         * lib/strerror_r.c: Avoid compiler warning about snprintf.
46989         strerror_r: fix AIX test failures
46990         * lib/strerror_r.c (strerror_r): Convert silent truncation to
46991         ERANGE failure.
46993         strerror_r: fix Solaris test failures
46994         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
46995         failures.
46996         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
46998         strerror_r: enforce POSIX recommendations
46999         * lib/strerror_r.c (safe_copy): New helper method.
47000         (strerror_r): Guarantee a non-empty string.
47001         * tests/test-strerror_r.c (main): Enhance tests to incorporate
47002         recent POSIX rulings and to match our strerror guarantees.
47003         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
47005 2011-05-24  Jim Meyering  <meyering@redhat.com>
47007         test-perror2.c: avoid warning about unused variable
47008         * tests/test-perror2.c (main): Remove declaration of unused "fp".
47010 2011-05-24  Eric Blake  <eblake@redhat.com>
47012         perror: avoid spurious test failure on HP-UX
47013         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
47015         tests: fix logic bug in init.sh
47016         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
47017         shell.
47019 2011-05-24  Jim Meyering  <meyering@redhat.com>
47021         utimensat: do not reference an out-of-scope buffer
47022         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
47023         declared in an inner scope, yet "times" would be dereferenced outside
47024         the scope in which "ts" was valid.
47025         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
47026         of ts[2] "out/up", so that the use of aliased "times" (via
47027         "times = ts;") does not end up referencing an out-of-scope "ts"
47029         opendir-safer.c: don't clobber errno; don't close negative FD
47030         * lib/opendir-safer.c (opendir_safer):
47031         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
47032         file descriptor, and more importantly, don't clobber the
47033         offending errno value with EINVAL.  Before, upon failure
47034         of dup_safer, we would pass the negative file descriptor to
47035         fdopendir, which would clobber errno.
47037 2011-05-23  Bruno Haible  <bruno@clisp.org>
47039         idcache: Fix module description.
47040         * modules/idcache (Include): Set to "idcache.h".
47042 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
47044         gnulib-tool: fix portability problem with MacOS sed
47045         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
47046         before the "}".  Problem reported by Leo in
47047         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00717.html>.
47048         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
47049         sed_extract_condition1, sed_extract_condition2.
47051 2011-05-23  Bruno Haible  <bruno@clisp.org>
47053         hash: Simplify autoconf macro.
47054         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
47056 2011-05-23  Bruno Haible  <bruno@clisp.org>
47058         getugroups: Fix module description.
47059         * modules/getugroups (Include): Set to "getugroups.h".
47061 2011-05-23  Bruno Haible  <bruno@clisp.org>
47063         linkat: Simplify autoconf macro.
47064         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
47066 2011-05-23  Bruno Haible  <bruno@clisp.org>
47067             Eric Blake  <eblake@redhat.com>
47069         linkat, renameat: Update dependencies.
47070         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
47071         * modules/linkat (Depends-on): Likewise. Remove also readlink,
47072         symlinkat.
47074 2011-05-23  Jim Meyering  <meyering@redhat.com>
47076         maint.mk: more tight_scope improvements
47077         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
47078         (_gl_TS_headers): Define only in if-0'd block.
47079         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
47080         sometimes we must *not* use it.  Adjust uses accordingly.
47081         (sc_tight_scope): Use much simpler grep-based test to determine
47082         whether we skip this rule.
47084         maint.mk: generalize/improve the tight-scope rule
47085         * top/maint.mk: Emit a warning when the test is skipped.
47086         (_gl_TS_dir): Add $(srcdir)/ prefix.
47087         (_gl_TS_function_match): Simplify, rather than trying
47088         to enumerate common types.  Otherwise, it would fail to match an
47089         "extern unsigned char const *" declaration in idutils.
47090         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
47091         a way to support use of that type of macro.
47092         (_gl_TS_var_match): Simplify regexp.
47093         (_gl_TS_obj_files): New configurable variable.
47094         (_gl_TS_headers): Likewise.
47096 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
47098         verify: fix bug when gnulib <assert.h> is also included
47099         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
47100         is defined, not if _GL_STATIC_ASSERT_H is not defined.
47101         Perhaps there's a better way, but this fixes the immediate problem.
47102         Problem reported by Bruno Haible in
47103         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00478.html>.
47105 2011-05-22  Bruno Haible  <bruno@clisp.org>
47107         xgetcwd: Simplify autoconf macro.
47108         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
47110 2011-05-22  Bruno Haible  <bruno@clisp.org>
47112         New module 'mktime-internal'.
47113         * modules/mktime-internal: New file.
47114         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
47115         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
47116         mktime_internal as a C macro if libc has __mktime_internal.
47117         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
47118         conditions.
47119         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
47121 2011-05-22  Bruno Haible  <bruno@clisp.org>
47123         timegm: Correct mktime replacement statements.
47124         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
47125         defining mktime as a C macro. This completes a 2009-07-28 commit.
47127 2011-05-22  Bruno Haible  <bruno@clisp.org>
47129         timegm: Simplify autoconf macro.
47130         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
47132 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
47134         clock-time: change to LGPLv2+.
47135         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
47136         BSD-like but we have no mark for that; this is good enough for now.
47138 2011-05-21  Bruno Haible  <bruno@clisp.org>
47140         strerror_r: Fix comments.
47141         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
47143 2011-05-21  Bruno Haible  <bruno@clisp.org>
47145         relocatable-prog-wrapper: Fix possible link error.
47146         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
47147         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
47148         (gl_FUNC_SETENV): ... to here.
47149         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
47150         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
47152 2011-05-21  Bruno Haible  <bruno@clisp.org>
47154         relocatable-prog-wrapper: Assume strerror() exists.
47155         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
47156         m4/strerror.m4.
47157         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
47158         * lib/relocwrapper.c: Remove mention of strerror module.
47159         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
47160         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
47161         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
47162         C macro.
47164 2011-05-21  Bruno Haible  <bruno@clisp.org>
47166         select: Simplify replacement idiom.
47167         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
47168         Win32 platforms.
47169         * lib/sys_select.in.h (select): Simplify accordingly.
47170         * modules/select (Depends-on): Likewise.
47172 2011-05-21  Bruno Haible  <bruno@clisp.org>
47174         mkdir-p: Simplify autoconf macro.
47175         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
47176         gl_FUNC_LCHOWN.
47178 2011-05-21  Eric Blake  <eblake@redhat.com>
47180         strerror_r: avoid clobbering strerror on cygwin
47181         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
47182         fall back instead to sys_errlist.
47183         * modules/strerror (configure.ac): Add witness.
47184         * tests/test-strerror_r.c (main): Enhance test.
47185         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
47186         * tests/test-perror2.c (main): Free memory before exit.
47188 2011-05-21  Bruno Haible  <bruno@clisp.org>
47190         mkdtemp: Use gnulib naming conventions.
47191         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
47192         * modules/mkdtemp (configure.ac): Update.
47194 2011-05-20  Eric Blake  <eblake@redhat.com>
47196         strerror_r: avoid corrupting errno on Solaris
47197         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
47198         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
47200         strerror_r: avoid compiler warning
47201         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
47203         strerror_r: simplify AIX code
47204         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
47206         test-perror: avoid spurious failure on FreeBSD
47207         * modules/perror-tests (Depends-on): Add strerror, now that
47208         strerror_r no longer pulls it in.
47210 2011-05-20  Bruno Haible  <bruno@clisp.org>
47212         strerror_r-posix: Remove unused dependencies.
47213         * modules/strerror_r-posix (Depends-on): Remove strerror.
47214         Reported by Eric Blake.
47216 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
47218         intprops: remove assumption about A|B representation
47219         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
47220         is a valid integer if both A and B are.  Although this is true for
47221         all known practical hosts, the C standard doesn't guarantee it,
47222         and the code need not assume it.  Also, this change may work around
47223         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
47224         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00426.html>.
47226 2011-05-20  Eric Blake  <eblake@redhat.com>
47228         perror: work around FreeBSD bug
47229         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
47230         is broken.  Move AC_LIBOBJ...
47231         * modules/perror (configure.ac): Here.
47232         * doc/posix-functions/perror.texi (perror): Document this.
47233         * tests/test-perror2.c (main): Enhance test.
47235         test-perror: check for strerror interactions
47236         * tests/macros.h (STREQ): Add macro.
47237         * modules/perror-tests (Files): Add second test.
47238         * tests/test-perror2.c (main): New file.
47239         * doc/posix-functions/perror.texi (perror): Document glibc bug.
47241         test-perror: rewrite to use init script
47242         * modules/perror-tests (Files): Add init.sh.
47243         * tests/test-perror.sh: Use temporary directory.
47245 2011-05-20  Jim Meyering  <meyering@redhat.com>
47247         maint: replace misused "a" with "an"
47248         * doc/intprops.texi: "a integer"
47249         * doc/regex.texi: "a explanation"
47250         * lib/alignof.h: "a object"
47251         * lib/argmatch.h: "a explanation"
47252         * lib/argp-help.c: "a option" and "a OPTION_DOC"
47253         * lib/stdint.in.h: "a integer"
47254         * lib/userspec.c: "a owner"
47255         * doc/gnulib.texi: Fix "a idea", and reword.
47257 2011-05-19  Jim Meyering  <meyering@redhat.com>
47259         maint: correct misuse of "a" and "an"
47260         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
47261         * lib/argp-help.c: "an docum...": s/an/a/
47262         * lib/argp-parse.c: "An vector": s/An/A/
47263         * lib/execute.c: "an native": s/an/a/
47264         * lib/spawn-pipe.c: Likewise.
47265         * lib/gc.h: "an Gc_rc": s/an/a/
47266         * lib/unigbrk.in.h: "an grapheme": s/an/a/
47267         * lib/fts.c: "an stat.st_dev": s/an/a/
47269 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
47271         intprops-tests: work around HP-UX 11.23 cc bug with constants
47272         * tests/test-intprops.c (VERIFY): New macro.
47273         (main): Use it, instead of verify, to work around the compiler bug; see
47274         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
47276         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
47277         See http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html
47278         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
47279         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
47280         (_GL_REMAINDER_OVERFLOW): Use it.
47282         intprops-tests: revert unsigned part of previous change
47283         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
47284         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
47285         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
47286         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html>.
47288 2011-05-19  Bruno Haible  <bruno@clisp.org>
47290         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
47291         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
47292         strerror_r() returned without filling the buffer.
47293         Reported by Eric Blake.
47295 2011-05-19  Eric Blake  <eblake@redhat.com>
47297         strerror_r: guarantee unchanged errno
47298         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
47299         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
47300         failure.
47301         * tests/test-strerror_r.c (main): Enhance test.
47303 2011-05-19  Bruno Haible  <bruno@clisp.org>
47305         strerror_r: Reorder #if blocks.
47306         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
47307         for consistency with the previous commit.
47309 2011-05-19  Bruno Haible  <bruno@clisp.org>
47311         perror: Avoid clobbering the strerror buffer when possible.
47312         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
47313         * lib/strerror.c: Include it.
47314         * modules/strerror (Files): Add lib/strerror-impl.h.
47315         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
47316         (my_strerror): New function, defined through lib/strerror-impl.h.
47317         (perror): Use it instead of strerror.
47318         * modules/perror (Files): Add lib/strerror-impl.h.
47319         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
47321 2011-05-19  Eric Blake  <eblake@redhat.com>
47323         strerror_r: fix on newer cygwin
47324         * lib/strerror_r.c (strerror_r): Cygwin now has
47325         __xpg_strerror_r, use it.
47327 2011-05-19  Bruno Haible  <bruno@clisp.org>
47329         strerror_r: Avoid clobbering the strerror buffer when possible.
47330         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
47331         (sys_nerr, sys_errlist): New declarations.
47332         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
47333         HP-UX, native Win32, IRIX, and 32-bit Solaris.
47334         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
47336 2011-05-19  Bruno Haible  <bruno@clisp.org>
47338         strerror_r: Fix test failure on mingw.
47339         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
47340         EXTEND_STRERROR_R.
47341         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
47342         macros from errno.in.h instead.
47344 2011-05-19  Eric Blake  <eblake@redhat.com>
47346         strerror: relax test for Solaris
47347         * tests/test-strerror.c (main): Permit Solaris behavior.
47348         * tests/test-strerror_r.c (main): Likewise.
47350         strerror: enforce POSIX ruling on strerror(0)
47351         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
47352         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
47353         * lib/strerror_r.c (rpl_strerror_r): Work around it.
47354         * doc/posix-functions/strerror.texi (strerror): Document it.
47355         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
47356         * tests/test-strerror.c (main): Strengthen test.
47357         * tests/test-strerror_r.c (main): Likewise.
47359 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
47361         intprop-tests: port to older and more-pedantic compilers
47362         * modules/intprops-tests (Files): Add tests/macros.h.
47363         * tests/test-intprops.c: Include macros.h.
47364         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
47365         it's no longer documented to expand to an integer constant expression.
47366         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
47367         argument is floating point, as it's no longer documented to expand
47368         to an integer constant expression in that case.
47369         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
47370         compiler bugs reported by Bruno Haible.  See
47371         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
47372         (U0, U1): New constants, to work around the same bugs.  Also,
47373         in tests, use e.g., "(unsigned int) 39" rather than "39u".
47375         intprops: work around C compiler bugs
47376         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
47377         bug in Sun C 5.11 2010/08/13 and other compilers; see
47378         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
47380         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
47381         * doc/intprops.texi (Integer Type Determination): Fix
47382         documentation for TYPE_IS_INTEGER: it returns an constant
47383         expression, not an integer constant expression.  Fix doc for
47384         TYPE_SIGNED: it returns an integer constant expression only if its
47385         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
47386         hardly worth documented that way....)
47388 2011-05-18  Bruno Haible  <bruno@clisp.org>
47390         strerror_r: Avoid clobbering the strerror buffer when possible.
47391         * lib/strerror_r.c (strerror_r): Merge the three implementations.
47392         Handle gnulib defined errno values here. When strerror() returns NULL
47393         or an empty string, return EINVAL.
47394         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
47395         gnulib defined errno values here.
47396         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
47398 2011-05-18  Eric Blake  <eblake@redhat.com>
47400         fnmatch: avoid compiler warning
47401         * lib/fnmatch_loop.c (FCT): Use correct type.
47402         Reported by Matthias Bolte.
47404 2011-05-13  Jim Meyering  <meyering@redhat.com>
47406         maint.mk: three new prohibit_<HDR>_without_use rules
47407         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
47408         (sc_prohibit_stdio-safer_without_use): Likewise.
47409         (sc_prohibit_xfreopen_without_use): Likewise.
47411 2011-05-17  Jim Meyering  <meyering@redhat.com>
47413         announce-gen: fail if the NEWS delta is empty
47414         If there's nothing noteworthy in NEWS, then either you forgot
47415         or you shouldn't be releasing.
47416         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
47418 2011-05-17  Pádraig Brady  <P@draigBrady.com>
47420         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
47421         reserved symbols starting with double underscore from the check.
47423 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
47425         intprops: add doc
47426         * doc/intprops.texi: New file, documenting intprops.
47427         * doc/gnulib.texi (Particular Modules): Include it.
47429         verify: add doc to gnulib manual and fix example
47430         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
47431         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
47432         (Compile-time Assertions): Fix example so it can't overflow.
47434 2011-05-17  Jim Meyering  <meyering@redhat.com>
47436         warnings.m4: don't usurp save_CPPFLAGS variable name
47437         * m4/warnings.m4: Prefix local temporary variable name with gl_.
47439         doc: fix typo
47440         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
47442 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
47443             Bruno Haible  <bruno@clisp.org>
47445         doc: Tweak recent change.
47446         * README (Portability guidelines): Tweak new text.
47447         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
47448         Interix 6.1.
47450 2011-05-16  Eric Blake  <eblake@redhat.com>
47452         inttypes: avoid autoconf warning
47453         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
47454         * m4/stdint.m4 (gl_STDINT_H): Likewise.
47456 2011-05-16  Sam Steingold  <sds@gnu.org>
47457         and Eric Blake  <eblake@redhat.com>
47459         vc-list-files: accept multiple directory operands
47460         * build-aux/vc-list-files: Iterate over all remaining operands.
47462 2011-05-16  Bruno Haible  <bruno@clisp.org>
47464         Fix confusion regarding deprecated modules.
47465         * modules/calloc (Status, Notice): Mark module as deprecated, not
47466         obsolete.
47467         * modules/fnmatch-posix (Status, Notice): Likewise.
47468         * modules/getdate (Status, Notice): Likewise.
47469         * modules/getopt (Status, Notice): Likewise.
47470         * modules/malloc (Status, Notice): Likewise.
47471         * modules/pipe (Status, Notice): Likewise.
47472         * modules/realloc (Status, Notice): Likewise.
47473         * modules/rename-dest-slash (Status, Notice): Likewise.
47474         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
47475         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
47476         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
47477         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
47478         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
47480 2011-05-16  Bruno Haible  <bruno@clisp.org>
47482         doc: List the target platforms.
47483         * doc/gnulib-intro.texi (Target Platforms): New section.
47484         * doc/gnulib.texi (Introduction): Update menu.
47485         * README (Portability guidelines): Refer to the new section. Update
47486         statement about oldest supported environment. Remove rationale why
47487         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
47488         unportable C89 function.
47489         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
47490         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
47492 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
47494         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
47496 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
47498         intprops-tests: new module
47499         * modules/intprops-tests, tests/test-intprops.c: New files.
47501         intprops: add safe, portable integer overflow checking
47502         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
47503         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
47504         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
47505         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
47506         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
47507         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
47508         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
47509         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
47510         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
47511         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
47512         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
47514 2011-05-12  James Youngman  <jay@gnu.org>
47516         Add a test for glibc's Bugzilla bug #12378.
47517         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
47518         doesn't allow the literal matching of a lone "[" (which is
47519         required by POSIX).
47520         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
47522 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
47524         Sync glibc change fixing Bugzilla bug #12378.
47525         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
47526         beginning and fall back to matching as normal character if the
47527         string ends before the matching ']' is found.  This is what POSIX
47528         requires.
47530 2011-05-13  Eric Blake  <eblake@redhat.com>
47532         getcwd-lgpl: relax test for FreeBSD
47533         * doc/posix-functions/getcwd.texi (getcwd): Document portability
47534         issue.
47535         * tests/test-getcwd-lgpl.c (main): Relax test.
47536         Reported by Matthias Bolte.
47538 2011-05-11  Eric Blake  <eblake@redhat.com>
47540         test-fflush: silence compiler warning
47541         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
47543 2011-05-11  Bruno Haible  <bruno@clisp.org>
47545         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
47546         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
47547         * modules/canonicalize (Depends-on): Add 'nocrash'.
47548         * modules/canonicalize-lgpl (Depends-on): Likewise.
47549         * doc/posix-functions/realpath.texi: Update platforms list.
47550         Reported by Ryan Schmidt <ryandesign@macports.org>.
47552 2011-05-11  Bruno Haible  <bruno@clisp.org>
47554         group-member: Declare function in <unistd.h>.
47555         * lib/unistd.in.h (group_member): New declaration.
47556         * lib/group-member.h: Remove file.
47557         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
47558         * tests/test-unistd-c++.cc: Check signature of group_member.
47559         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
47560         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
47561         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
47562         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
47563         HAVE_GROUP_MEMBER.
47564         * modules/group-member (Files): Remove lib/group-member.h.
47565         (Depends-on): Add unistd. Specify conditions.
47566         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47567         (Include): Change to <unistd.h>.
47568         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
47569         HAVE_GROUP_MEMBER.
47570         * NEWS: Mention the change.
47571         * lib/euidaccess.c: Don't include group-member.h.
47573 2011-05-11  Bruno Haible  <bruno@clisp.org>
47575         group-member: Document module.
47576         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
47577         module.
47579 2011-05-11  Bruno Haible  <bruno@clisp.org>
47581         fclose: Fix mistake earlier today.
47582         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
47584 2011-05-11  Eric Blake  <eblake@redhat.com>
47586         fclose: preserve fflush errors
47587         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
47588         Reported by Jim Meyering.
47590         bootstrap: support a prereq of 'rpcgen -' on RHEL5
47591         * build-aux/bootstrap (check_versions): When no specific version
47592         is required, merely check that the app produces an exit status
47593         that indicates its existence.
47595         maint.mk: drop redundant check
47596         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
47597         the same but better.
47599 2011-05-11  Bruno Haible  <bruno@clisp.org>
47601         fclose: Fix possible link error.
47602         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
47603         unregister_shadow_fd. Improve comments.
47604         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
47605         Eric Blake.
47607 2011-05-11  Jim Meyering  <meyering@redhat.com>
47609         maint.mk: improve "can not" detection and generalize rule name
47610         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
47611         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
47612         Use the same technique as in sc_prohibit_doubled_word, so that
47613         we recognize "can not" also when the words are separated by a newline.
47614         Suggested by Eric Blake.
47615         (perl_filename_lineno_text_): Define.  Factored out of...
47616         (prohibit_doubled_word_): ...here.  Use the new definition.
47617         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
47618         (prohibit_undesirable_word_seq_RE_): New overridable variable.
47619         (ignore_undesirable_word_sequence_RE_): New overridable variable.
47621 2011-05-10  Eric Blake  <eblake@redhat.com>
47623         fclose: avoid double close race when possible
47624         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
47625         all but WINDOWS_SOCKETS.
47627 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
47629         openat: correct new comment
47630         * lib/openat-proc.c (openat_proc_name): Correct the comment.
47632 2011-05-10  Jim Meyering  <meyering@redhat.com>
47634         openat: add comments
47635         * lib/openat-proc.c (openat_proc_name): Add comments,
47636         mostly from Eric Blake.
47638 2011-05-09  Eric Blake  <eblake@redhat.com>
47640         openat: reduce syscalls in first probe of /proc
47641         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
47642         be a directory.  Simplify the probe for .. bugs.
47643         * modules/openat (Depends-on): Drop same-inode.
47644         Reported by Bastien ROUCARIES.
47646 2011-05-09  Jim Meyering  <meyering@redhat.com>
47648         maint.mk: change semantics/name of tight_scope variables
47649         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
47650         Rename variables to align with semantics that make them more useful.
47652         maint.mk: tweak new rule's name not to impinge
47653         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
47654         (sc_tight_scope): Use new rule name rather than $@-0.
47656         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
47657         * top/maint.mk (sc_tight_scope): New rule.
47658         (sc_tight_scope-0): New rule, ifdef'd out.
47659         (_gl_TS_dir): Default.
47660         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
47661         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
47663 2011-05-09  Simon Josefsson  <simon@josefsson.org>
47665         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
47666         Haible <bruno@clisp.org>.
47668 2011-05-08  Bruno Haible  <bruno@clisp.org>
47670         Comments.
47671         * m4/isnanf.m4: Add comment.
47672         * m4/isnanl.m4: Likewise.
47674 2011-05-08  Bruno Haible  <bruno@clisp.org>
47676         glob: Remove obsolete macro.
47677         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
47679 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
47681         intprops: Sun C 5.11 supports __typeof__
47682         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
47683         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
47684         which is new.
47685         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
47687         intprops: switch to usual gnulib indenting and naming
47688         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
47689         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
47691         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
47693 2011-05-08  Jim Meyering  <meyering@redhat.com>
47695         maint.mk: suppress "Entering/Leaving directory" diag in announcement
47696         * top/maint.mk (release-prep): Use make's --no-print-directory
47697         option when generating the announcement.  This eliminates the
47698         pesky "make[2]: Entering/Leaving directory" diagnostics in the
47699         generated announcement template.
47701 2011-05-08  Bruno Haible  <bruno@clisp.org>
47703         tzset: Fix gettimeofday wrapper on Solaris 2.6.
47704         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
47705         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
47707 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
47709         ignore-value, verify: Omit include files from lib_SOURCES.
47710         * modules/ignore-value, modules/verify (Makefile.am):
47711         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
47712         that leads Automake to duplicate use of am__objects_... variables
47713         in Makefile.in.  See
47714         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00257.html>.
47716 2011-05-07  Bruno Haible  <bruno@clisp.org>
47718         fclose: Simplify autoconf macro.
47719         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
47720         defined.
47722 2011-05-07  Bruno Haible  <bruno@clisp.org>
47724         canonicalize-lgpl: Fix autoconf macro ordering bug.
47725         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
47726         gl_STDLIB_H_DEFAULTS.
47728 2011-05-06  Eric Blake  <eblake@redhat.com>
47730         maintainer-makefile: make sc_po_check easier to tune
47731         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
47732         to probe for strings, such as an alternate location for gnulib.
47734         fclose: guarantee behavior on seekable stdin
47735         * modules/fclose (Depends-on): Add fflush.
47736         * doc/posix-functions/fclose.texi (fclose): Document this.
47737         * tests/test-fclose.c (main): Make test for this unconditional.
47739 2011-05-06  Bruno Haible  <bruno@clisp.org>
47741         fflush, fpurge: Relicense under LGPLv2+.
47742         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
47743         * modules/fpurge (License): Likewise.
47744         With permission from Eric Blake and Jim Meyering.
47745         Suggested by Eric Blake.
47747 2011-05-06  Karl Berry  <karl@gnu.org>
47749         * MODULES.html.sh (func_all_modules): remove exit.
47751 2011-05-06  Jim Meyering  <meyering@redhat.com>
47753         maint.mk: use info-gnu@ as the default only for a stable release
47754         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
47755         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
47756         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
47757         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
47759 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
47761         assert-h: new module, which supports C1X-style static_assert
47762         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
47763         * lib/verify.h: Revamp so that this can be copied into assert.h,
47764         while retaining the ability to use it standalone as before.
47765         Rename private identifiers so as not to encroach on the
47766         standard C namespace, since this is now used by assert.h.
47767         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
47768         the old verify_true.
47769         (_GL_VERIFY_TRUE): New macro, with much of the contents of
47770         the old verify_true.  Use _GL_VERIFY_TYPE.
47771         (_GL_VERIFY): New macro, with much of the contents of the old verify.
47772         (static_assert): New macro, if _GL_STATIC_ASSERT_H
47773         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
47774         defined when this file is copied into the replacement assert.h.
47775         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
47776         and _Static_assert is not built in.
47777         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
47778         defined, and use the new macros mentioned above.
47779         * doc/posix-headers/assert.texi: Document this.
47781 2011-05-05  Bruno Haible  <bruno@clisp.org>
47783         fclose, fflush: Respect rules for use of AC_LIBOBJ.
47784         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
47785         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
47786         gl_REPLACE_FCLOSE here.
47787         * modules/fflush (Depends-on): Remove fclose.
47788         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
47789         combination with module 'fclose'.
47791 2011-05-05  Bruno Haible  <bruno@clisp.org>
47793         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
47794         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
47795         gl_FUNC_FFLUSH.
47796         (gl_FUNC_FFLUSH): Use it.
47797         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
47798         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
47799         gl_REPLACE_FSEEKO here.
47801 2011-05-05  Bruno Haible  <bruno@clisp.org>
47803         tzset: Relicense under LGPL.
47804         * modules/tzset (License): Change to LGPL.
47805         No agreement needed; it's a no-op.
47807         strtoimax, strtoumax: Relicense under LGPL.
47808         * modules/strtoimax (License): Change to LGPL.
47809         * modules/strtoumax (License): Likewise.
47810         With permission from Jim Meyering, Paul Eggert:
47811         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00124.html>
47812         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00109.html>
47814         getgroups: Relicense under LGPL.
47815         * modules/getgroups (License): Change to LGPL.
47816         With permission from Jim Meyering, Paul Eggert, Eric Blake:
47817         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
47818         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
47819         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
47821         nanosleep: Relicense under LGPL.
47822         * modules/nanosleep (License): Change to LGPL.
47823         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
47824         Haible:
47825         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
47826         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
47827         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
47828         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
47830         futimens: Relicense under LGPL.
47831         * modules/futimens (License): Change to LGPL.
47832         With permission from Eric Blake:
47833         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
47835         fflush: Relicense under LGPL.
47836         * modules/fflush (License): Change to LGPL.
47837         With permission from Eric Blake, Bruno Haible, Jim Meyering:
47838         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
47839         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
47840         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00133.html>
47842         tmpfile: Relicense under LGPL.
47843         * modules/tmpfile (License): Change to LGPL.
47844         With permission from Ben Pfaff:
47845         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
47847         isfinite: Relicense under LGPL.
47848         * modules/isfinite (License): Change to LGPL.
47849         With permission from Ben Pfaff, Bruno Haible:
47850         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
47851         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00130.html>
47853         acosl..tanl: Relicense under LGPL.
47854         * modules/acosl (License): Change to LGPL.
47855         * modules/asinl (License): Likewise.
47856         * modules/atanl (License): Likewise.
47857         * modules/cosl (License): Likewise.
47858         * modules/expl (License): Likewise.
47859         * modules/logl (License): Likewise.
47860         * modules/sinl (License): Likewise.
47861         * modules/sqrtl (License): Likewise.
47862         * modules/tanl (License): Likewise.
47863         Source code originally from glibc and Paolo Bonzini. Agreements:
47864         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00137.html>
47865         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00128.html>
47867 2011-05-05  Bruno Haible  <bruno@clisp.org>
47869         signal: Define sighandler_t.
47870         * lib/signal.in.h (sighandler_t): New type.
47871         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
47872         whether sighandler_t is defined.
47873         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
47874         * modules/signal (Depends-on): Add extensions.
47875         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
47876         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
47877         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
47879 2011-05-05  Eric Blake  <eblake@redhat.com>
47881         maint: remove useless REPLACE_*_H macros
47882         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
47883         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
47884         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
47885         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
47886         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
47887         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
47888         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
47889         * m4/btowc.m4: Update callers.
47890         * m4/dirfd.m4: Likewise.
47891         * m4/duplocale.m4: Likewise.
47892         * m4/fchdir.m4: Likewise.
47893         * m4/fdopendir.m4: Likewise.
47894         * m4/inet_ntop.m4: Likewise.
47895         * m4/inet_pton.m4: Likewise.
47896         * m4/ioctl.m4: Likewise.
47897         * m4/mbrlen.m4: Likewise.
47898         * m4/mbrtowc.m4: Likewise.
47899         * m4/mbsinit.m4: Likewise.
47900         * m4/mbsnrtowcs.m4: Likewise.
47901         * m4/mbsrtowcs.m4: Likewise.
47902         * m4/poll.m4: Likewise.
47903         * m4/setlocale.m4: Likewise.
47904         * m4/wcrtomb.m4: Likewise.
47905         * m4/wcsnrtombs.m4: Likewise.
47906         * m4/wcsrtombs.m4: Likewise.
47907         * m4/wctob.m4: Likewise.
47908         * m4/wcwidth.m4: Likewise.
47909         * modules/posix_spawn: Likewise.
47910         * modules/posix_spawn_file_actions_addclose: Likewise.
47911         * modules/posix_spawn_file_actions_adddup2: Likewise.
47912         * modules/posix_spawn_file_actions_addopen: Likewise.
47913         * modules/posix_spawn_file_actions_destroy: Likewise.
47914         * modules/posix_spawn_file_actions_init: Likewise.
47915         * modules/posix_spawnattr_destroy: Likewise.
47916         * modules/posix_spawnattr_getflags: Likewise.
47917         * modules/posix_spawnattr_getpgroup: Likewise.
47918         * modules/posix_spawnattr_getschedparam: Likewise.
47919         * modules/posix_spawnattr_getschedpolicy: Likewise.
47920         * modules/posix_spawnattr_getsigdefault: Likewise.
47921         * modules/posix_spawnattr_getsigmask: Likewise.
47922         * modules/posix_spawnattr_init: Likewise.
47923         * modules/posix_spawnattr_setflags: Likewise.
47924         * modules/posix_spawnattr_setpgroup: Likewise.
47925         * modules/posix_spawnattr_setschedparam: Likewise.
47926         * modules/posix_spawnattr_setschedpolicy: Likewise.
47927         * modules/posix_spawnattr_setsigdefault: Likewise.
47928         * modules/posix_spawnattr_setsigmask: Likewise.
47929         * modules/posix_spawnp: Likewise.
47931 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
47933         Add option to do-release-commit-and-tag to specify branch.
47934         * build-aux/do-release-commit-and-tag: Add --branch.
47936 2011-05-03  Bruno Haible  <bruno@clisp.org>
47938         Avoid unnecessary compilation units, through conditional dependencies.
47939         * modules/accept (Depends-on): Add conditions to the dependencies.
47940         * modules/acosl (Depends-on): Likewise.
47941         * modules/argz (Depends-on): Likewise.
47942         * modules/asinl (Depends-on): Likewise.
47943         * modules/atanl (Depends-on): Likewise.
47944         * modules/atoll (Depends-on): Likewise.
47945         * modules/bind (Depends-on): Likewise.
47946         * modules/btowc (Depends-on): Likewise.
47947         * modules/canonicalize-lgpl (Depends-on): Likewise.
47948         * modules/ceil (Depends-on): Likewise.
47949         * modules/ceilf (Depends-on): Likewise.
47950         * modules/ceill (Depends-on): Likewise.
47951         * modules/chdir-long (Depends-on): Likewise.
47952         * modules/chown (Depends-on): Likewise.
47953         * modules/close (Depends-on): Likewise.
47954         * modules/connect (Depends-on): Likewise.
47955         * modules/cosl (Depends-on): Likewise.
47956         * modules/dirfd (Depends-on): Likewise.
47957         * modules/dprintf (Depends-on): Likewise.
47958         * modules/dprintf-posix (Depends-on): Likewise.
47959         * modules/error (Depends-on): Likewise.
47960         * modules/euidaccess (Depends-on): Likewise.
47961         * modules/expl (Depends-on): Likewise.
47962         * modules/faccessat (Depends-on): Likewise.
47963         * modules/fchdir (Depends-on): Likewise.
47964         * modules/fclose (Depends-on): Likewise.
47965         * modules/fcntl (Depends-on): Likewise.
47966         * modules/fdopendir (Depends-on): Likewise.
47967         * modules/fflush (Depends-on): Likewise.
47968         * modules/floor (Depends-on): Likewise.
47969         * modules/floorf (Depends-on): Likewise.
47970         * modules/floorl (Depends-on): Likewise.
47971         * modules/fnmatch (Depends-on): Likewise.
47972         * modules/fopen (Depends-on): Likewise.
47973         * modules/fprintf-posix (Depends-on): Likewise.
47974         * modules/frexp (Depends-on): Likewise.
47975         * modules/frexp-nolibm (Depends-on): Likewise.
47976         * modules/frexpl (Depends-on): Likewise.
47977         * modules/frexpl-nolibm (Depends-on): Likewise.
47978         * modules/fseek (Depends-on): Likewise.
47979         * modules/fsusage (Depends-on): Likewise.
47980         * modules/ftell (Depends-on): Likewise.
47981         * modules/ftello (Depends-on): Likewise.
47982         * modules/futimens (Depends-on): Likewise.
47983         * modules/getcwd (Depends-on): Likewise.
47984         * modules/getcwd-lgpl (Depends-on): Likewise.
47985         * modules/getdelim (Depends-on): Likewise.
47986         * modules/getdomainname (Depends-on): Likewise.
47987         * modules/getgroups (Depends-on): Likewise.
47988         * modules/gethostname (Depends-on): Likewise.
47989         * modules/getline (Depends-on): Likewise.
47990         * modules/getlogin_r (Depends-on): Likewise.
47991         * modules/getopt-posix (Depends-on): Likewise.
47992         * modules/getpeername (Depends-on): Likewise.
47993         * modules/getsockname (Depends-on): Likewise.
47994         * modules/getsockopt (Depends-on): Likewise.
47995         * modules/getsubopt (Depends-on): Likewise.
47996         * modules/getusershell (Depends-on): Likewise.
47997         * modules/glob (Depends-on): Likewise.
47998         * modules/grantpt (Depends-on): Likewise.
47999         * modules/iconv_open (Depends-on): Likewise.
48000         * modules/iconv_open-utf (Depends-on): Likewise.
48001         * modules/inet_ntop (Depends-on): Likewise.
48002         * modules/inet_pton (Depends-on): Likewise.
48003         * modules/ioctl (Depends-on): Likewise.
48004         * modules/isapipe (Depends-on): Likewise.
48005         * modules/isfinite (Depends-on): Likewise.
48006         * modules/isinf (Depends-on): Likewise.
48007         * modules/lchown (Depends-on): Likewise.
48008         * modules/ldexpl (Depends-on): Likewise.
48009         * modules/link (Depends-on): Likewise.
48010         * modules/linkat (Depends-on): Likewise.
48011         * modules/listen (Depends-on): Likewise.
48012         * modules/logl (Depends-on): Likewise.
48013         * modules/lstat (Depends-on): Likewise.
48014         * modules/mbrlen (Depends-on): Likewise.
48015         * modules/mbrtowc (Depends-on): Likewise.
48016         * modules/mbsinit (Depends-on): Likewise.
48017         * modules/mbsnrtowcs (Depends-on): Likewise.
48018         * modules/mbsrtowcs (Depends-on): Likewise.
48019         * modules/mbtowc (Depends-on): Likewise.
48020         * modules/memcmp (Depends-on): Likewise.
48021         * modules/mkdir (Depends-on): Likewise.
48022         * modules/mkdtemp (Depends-on): Likewise.
48023         * modules/mkfifo (Depends-on): Likewise.
48024         * modules/mkfifoat (Depends-on): Likewise.
48025         * modules/mknod (Depends-on): Likewise.
48026         * modules/mkostemp (Depends-on): Likewise.
48027         * modules/mkostemps (Depends-on): Likewise.
48028         * modules/mkstemp (Depends-on): Likewise.
48029         * modules/mkstemps (Depends-on): Likewise.
48030         * modules/mktime (Depends-on): Likewise.
48031         * modules/nanosleep (Depends-on): Likewise.
48032         * modules/open (Depends-on): Likewise.
48033         * modules/openat (Depends-on): Likewise.
48034         * modules/perror (Depends-on): Likewise.
48035         * modules/poll (Depends-on): Likewise.
48036         * modules/popen (Depends-on): Likewise.
48037         * modules/posix_spawn (Depends-on): Likewise.
48038         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
48039         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
48040         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
48041         * modules/posix_spawnp (Depends-on): Likewise.
48042         * modules/pread (Depends-on): Likewise.
48043         * modules/printf-posix (Depends-on): Likewise.
48044         * modules/ptsname (Depends-on): Likewise.
48045         * modules/putenv (Depends-on): Likewise.
48046         * modules/pwrite (Depends-on): Likewise.
48047         * modules/readline (Depends-on): Likewise.
48048         * modules/readlink (Depends-on): Likewise.
48049         * modules/readlinkat (Depends-on): Likewise.
48050         * modules/recv (Depends-on): Likewise.
48051         * modules/recvfrom (Depends-on): Likewise.
48052         * modules/regex (Depends-on): Likewise.
48053         * modules/remove (Depends-on): Likewise.
48054         * modules/rename (Depends-on): Likewise.
48055         * modules/renameat (Depends-on): Likewise.
48056         * modules/rmdir (Depends-on): Likewise.
48057         * modules/round (Depends-on): Likewise.
48058         * modules/roundf (Depends-on): Likewise.
48059         * modules/roundl (Depends-on): Likewise.
48060         * modules/rpmatch (Depends-on): Likewise.
48061         * modules/select (Depends-on): Likewise.
48062         * modules/send (Depends-on): Likewise.
48063         * modules/sendto (Depends-on): Likewise.
48064         * modules/setenv (Depends-on): Likewise.
48065         * modules/setlocale (Depends-on): Likewise.
48066         * modules/setsockopt (Depends-on): Likewise.
48067         * modules/shutdown (Depends-on): Likewise.
48068         * modules/sigaction (Depends-on): Likewise.
48069         * modules/signbit (Depends-on): Likewise.
48070         * modules/sigprocmask (Depends-on): Likewise.
48071         * modules/sinl (Depends-on): Likewise.
48072         * modules/sleep (Depends-on): Likewise.
48073         * modules/snprintf (Depends-on): Likewise.
48074         * modules/snprintf-posix (Depends-on): Likewise.
48075         * modules/socket (Depends-on): Likewise.
48076         * modules/sprintf-posix (Depends-on): Likewise.
48077         * modules/sqrtl (Depends-on): Likewise.
48078         * modules/stat (Depends-on): Likewise.
48079         * modules/strchrnul (Depends-on): Likewise.
48080         * modules/strdup-posix (Depends-on): Likewise.
48081         * modules/strerror (Depends-on): Likewise.
48082         * modules/strerror_r-posix (Depends-on): Likewise.
48083         * modules/strndup (Depends-on): Likewise.
48084         * modules/strnlen (Depends-on): Likewise.
48085         * modules/strptime (Depends-on): Likewise.
48086         * modules/strsep (Depends-on): Likewise.
48087         * modules/strsignal (Depends-on): Likewise.
48088         * modules/strstr-simple (Depends-on): Likewise.
48089         * modules/strtod (Depends-on): Likewise.
48090         * modules/strtoimax (Depends-on): Likewise.
48091         * modules/strtok_r (Depends-on): Likewise.
48092         * modules/strtoumax (Depends-on): Likewise.
48093         * modules/symlink (Depends-on): Likewise.
48094         * modules/symlinkat (Depends-on): Likewise.
48095         * modules/tanl (Depends-on): Likewise.
48096         * modules/tcgetsid (Depends-on): Likewise.
48097         * modules/tmpfile (Depends-on): Likewise.
48098         * modules/trunc (Depends-on): Likewise.
48099         * modules/truncf (Depends-on): Likewise.
48100         * modules/truncl (Depends-on): Likewise.
48101         * modules/uname (Depends-on): Likewise.
48102         * modules/unlink (Depends-on): Likewise.
48103         * modules/unlockpt (Depends-on): Likewise.
48104         * modules/unsetenv (Depends-on): Likewise.
48105         * modules/usleep (Depends-on): Likewise.
48106         * modules/utimensat (Depends-on): Likewise.
48107         * modules/vasprintf (Depends-on): Likewise.
48108         * modules/vdprintf (Depends-on): Likewise.
48109         * modules/vdprintf-posix (Depends-on): Likewise.
48110         * modules/vfprintf-posix (Depends-on): Likewise.
48111         * modules/vprintf-posix (Depends-on): Likewise.
48112         * modules/vsnprintf (Depends-on): Likewise.
48113         * modules/vsnprintf-posix (Depends-on): Likewise.
48114         * modules/vsprintf-posix (Depends-on): Likewise.
48115         * modules/wcrtomb (Depends-on): Likewise.
48116         * modules/wcscasecmp (Depends-on): Likewise.
48117         * modules/wcscspn (Depends-on): Likewise.
48118         * modules/wcsdup (Depends-on): Likewise.
48119         * modules/wcsncasecmp (Depends-on): Likewise.
48120         * modules/wcsnrtombs (Depends-on): Likewise.
48121         * modules/wcspbrk (Depends-on): Likewise.
48122         * modules/wcsrtombs (Depends-on): Likewise.
48123         * modules/wcsspn (Depends-on): Likewise.
48124         * modules/wcsstr (Depends-on): Likewise.
48125         * modules/wcstok (Depends-on): Likewise.
48126         * modules/wcswidth (Depends-on): Likewise.
48127         * modules/wctob (Depends-on): Likewise.
48128         * modules/wctomb (Depends-on): Likewise.
48129         * modules/wctype (Depends-on): Likewise.
48130         * modules/wcwidth (Depends-on): Likewise.
48131         * modules/write (Depends-on): Likewise.
48133 2011-05-03  Bruno Haible  <bruno@clisp.org>
48135         Support for conditional dependencies.
48136         * doc/gnulib.texi (Module description): Document the syntax of
48137         conditional dependencies.
48138         * gnulib-tool: New option --conditional-dependencies.
48139         (func_usage): Document it.
48140         (cond_dependencies): New variable.
48141         (func_get_automake_snippet_conditional,
48142         func_get_automake_snippet_unconditional): New functions, extracted from
48143         func_get_automake_snippet.
48144         (func_get_automake_snippet): Use them.
48145         (sed_first_32_chars): New variable.
48146         (func_module_shellfunc_name): New function.
48147         (func_module_shellvar_name): New function.
48148         (func_module_conditional_name): New function.
48149         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
48150         func_cond_module_condition): New functions.
48151         (func_modules_transitive_closure): Add support for conditional
48152         dependencies.
48153         (func_emit_lib_Makefile_am): For a conditional module, enclose the
48154         conditional automake snippet in an automake conditional.
48155         (func_emit_autoconf_snippets): Emit shell functions that contain the
48156         code for conditional modules.
48157         (func_import, func_create_testdir): Update specification.
48159 2011-05-03  Eric Blake  <eblake@redhat.com>
48161         test-getaddrinfo: report error information
48162         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
48164 2011-05-03  Jim Meyering  <meyering@redhat.com>
48166         bootstrap: avoid build failure when $GZIP is set
48167         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
48168         program name.  If defined at all, it is supposed to list gzip options.
48169         Reported by Alan Curry in http://debbugs.gnu.org/8609
48171 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
48173         readme-release: new module with release instructions
48174         * modules/readme-release: New module.
48175         * top/README-release: New file, from coreutils, grep, diffutils.
48176         * MODULES.html.sh (Support for maintaining and releasing): Add it.
48178 2011-05-02  Eric Blake  <eblake@redhat.com>
48180         fflush: also replace fclose when fixing fflush
48181         * modules/fflush (Depends-on): Add fclose.
48182         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
48183         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
48184         memstreams with no backing fd.
48185         * doc/posix-functions/fclose.texi (fclose): Document the use of
48186         fflush module to fix the bug.
48187         * tests/test-fclose.c (main): Relax test when fclose is used in
48188         isolation.
48190         fclose: add some tests
48191         * modules/fclose-tests: New test module.
48192         * tests/test-fclose.c: New file.
48193         * doc/posix-functions/fclose.texi (fclose): Document the bug.
48195         fclose: reduced dependencies
48196         * modules/fclose (Depends-on): Switch from fflush/fseeko to
48197         simpler lseek.
48198         * lib/fclose.c (rpl_fclose): Likewise.
48199         Reported by Simon Josefsson.
48201         exit: drop remaining clients
48202         * modules/argmatch (Depends-on): Replace exit with stdlib.
48203         * modules/copy-file (Depends-on): Likewise.
48204         * modules/execute (Depends-on): Likewise.
48205         * modules/exitfail (Depends-on): Likewise.
48206         * modules/obstack (Depends-on): Likewise.
48207         * modules/pagealign_alloc (Depends-on): Likewise.
48208         * modules/pipe-filter-gi (Depends-on): Likewise.
48209         * modules/pipe-filter-ii (Depends-on): Likewise.
48210         * modules/savewd (Depends-on): Likewise.
48211         * modules/spawn-pipe (Depends-on): Likewise.
48212         * modules/wait-process (Depends-on): Likewise.
48213         * modules/xsetenv (Depends-on): Likewise.
48214         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
48215         * modules/git-merge-changelog (Depends-on): Likewise.
48216         * modules/long-options (Depends-on): Likewise.
48217         * modules/pt_chown (Depends-on): Likewise.
48218         * modules/sysexits (Depends-on): Likewise.
48220         freading: relax license from LGPLv3+ to LGPLv2+
48221         * modules/freading (License): Relax LGPL version.
48223 2011-05-02  Bruno Haible  <bruno@clisp.org>
48225         fchdir: Remove unused dependencies.
48226         * modules/fchdir (Depends-on): Remove include_next.
48228 2011-05-02  Bruno Haible  <bruno@clisp.org>
48230         gnulib-tool: Refactor.
48231         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
48232         from func_emit_autoconf_snippets.
48233         (func_emit_autoconf_snippets): Use it.
48235 2011-05-02  Simon Josefsson  <simon@josefsson.org>
48237         * NEWS: Document removal of 'exit'.
48238         * modules/exit: Remove file.
48240 2011-05-01  Bruno Haible  <bruno@clisp.org>
48242         Update DEPENDENCIES.
48243         * DEPENDENCIES (gettext): Recommend the newest release.
48244         Reported by Simon Josefsson.
48246 2011-05-01  Bruno Haible  <bruno@clisp.org>
48248         gnulib-tool: Reduce code duplication.
48249         * gnulib-tool (func_emit_autoconf_snippets): New function.
48250         (func_import, func_create_testdir): Use it.
48252 2011-04-30  Eric Blake  <eblake@redhat.com>
48254         fclose: don't fail on non-seekable input stream
48255         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
48256         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
48257         since fflush is allowed to fail in that case.
48259 2011-04-30  Bruno Haible  <bruno@clisp.org>
48261         dup3: cleanup
48262         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
48264 2011-04-30  Bruno Haible  <bruno@clisp.org>
48266         netdb: Make it work in C++ mode.
48267         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
48268         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
48269         module.
48270         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
48271         gl_MODULE_INDICATOR_FOR_TESTS.
48272         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
48273         * modules/netdb-c++-tests: New file.
48274         * tests/test-netdb-c++.cc: New file.
48276 2011-04-30  Bruno Haible  <bruno@clisp.org>
48278         New modules 'vfscanf', 'vscanf'.
48279         * modules/vfscanf: New file.
48280         * modules/vscanf: New file.
48281         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
48282         here.
48283         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
48284         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
48286 2011-04-30  Bruno Haible  <bruno@clisp.org>
48288         passfd: Add comments.
48289         * lib/passfd.c: Add comments about platforms.
48291 2011-04-30  Bruno Haible  <bruno@clisp.org>
48293         sys_uio: Make <sys/uio.h> self-contained.
48294         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
48295         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
48297 2011-04-30  Bruno Haible  <bruno@clisp.org>
48299         sys_socket: Ensure 'struct iovec' definition.
48300         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
48301         <sys/socket.h>.
48302         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
48304 2011-04-30  Bruno Haible  <bruno@clisp.org>
48306         sys_uio: Protect definition of 'struct iovec'.
48307         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
48308         it as a C struct.
48310 2011-04-30  Bruno Haible  <bruno@clisp.org>
48312         manywarnings: fix indentation
48313         * m4/manywarnings.m4: Indent by 2 spaces consistently.
48315 2011-04-30  Pádraig Brady  <P@draigBrady.com>
48317         manywarnings: add -Wno-missing-field-initializers if needed.
48318         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
48319         option if it's needed to allow initialization with { 0, }
48321 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
48323         announce-gen: cosmetic improvement
48324         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
48326 2011-04-29  Jim Meyering  <meyering@redhat.com>
48328         vc-list-files: indent with spaces, not TABs
48329         * build-aux/vc-list-files: Convert leading TABs to spaces,
48330         to match the style of most other files in gnulib.
48332         announce-gen: indent with spaces, not TABs
48333         * build-aux/announce-gen: Convert all TABs to spaces, to match
48334         the style of most other files in gnulib.
48336 2011-04-29  Eric Blake  <eblake@redhat.com>
48338         quotearg: avoid uninitialized variable use
48339         * lib/quotearg.c (quoting_options_from_style): Initialize
48340         remaining fields, and ensure that custom styles are only used via
48341         quoting_options rather than quoting_style.
48343 2011-04-29  Jim Meyering  <meyering@redhat.com>
48345         maint.mk: remove unused VC-tag variable
48346         * top/maint.mk (VC-tag): Remove unused variable.
48348 2011-04-29  Bruno Haible  <bruno@clisp.org>
48350         netdb: fix gai_strerror replacements
48351         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
48352         * modules/netdb: Substitute it.
48354 2011-04-29  Jim Meyering  <meyering@redhat.com>
48356         test-getcwd.c: avoid new set-but-not-used warning
48357         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
48358         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
48359         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
48360         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
48362         test-hash.c: avoid a new shadowing warning
48363         * tests/test-hash.c (main): Don't shadow "dup".
48365 2011-04-28  Eric Blake  <eblake@redhat.com>
48367         getaddrinfo: fix gai_strerror signature
48368         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
48369         and work around mingw with UNICODE defined.
48370         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
48371         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
48372         * modules/netdb (Makefile.am): Substitute it.
48373         * lib/netdb.in.h (gai_strerror): Declare replacement.
48374         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
48375         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
48376         the fix.
48378         getsockopt: avoid compiler warning
48379         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
48380         Reported by Matthias Bolte.
48382         tests: drop unused link dependency
48383         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
48384         * modules/dirent-safer-tests (Makefile.am): Likewise.
48385         * modules/fdopendir-tests (Makefile.am): Likewise.
48386         * modules/mkfifoat-tests (Makefile.am): Likewise.
48387         * modules/openat-safer-tests (Makefile.am): Likewise.
48388         * modules/openat-tests (Makefile.am): Likewise.
48389         * modules/readlinkat-tests (Makefile.am): Likewise.
48390         * modules/symlinkat-tests (Makefile.am): Likewise.
48391         * modules/linkat-tests (Makefile.am): Likewise.
48392         (Depends-on): Switch to filenamecat-lgpl.
48393         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
48394         LIBINTL.
48395         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
48396         * tests/test-linkat.c (main): Don't require xalloc.
48398         hash, mgetgroups: drop xalloc dependency
48399         * lib/hash.c (includes): Adjust includes.
48400         * lib/mgetgroups.c (includes): Likewise.
48401         (xgetgroups): Move...
48402         * lib/xgetgroups.c: ...to new file.
48403         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
48404         * modules/xgetgroups: New file, split from...
48405         * modules/mgetgroups: ...here.
48406         (Depends-on): Add xalloc-oversized.
48407         * modules/hash (Depends-on): Likewise.
48408         * modules/hash-tests (Depends-on): Drop xalloc.
48409         (test_hash_LDADD): Drop unused library.
48410         * tests/test-hash.c (main): Break xalloc dependency.
48411         (includes): Drop unused include.
48413         xalloc-oversized: new module
48414         * modules/xalloc-oversized: New module.
48415         * modules/xalloc (Depends-on): Add it.
48416         * lib/xalloc.h (xalloc_oversized): Move...
48417         * lib/xalloc-oversized.h: ...into new file.
48419         utimecmp: drop dependency on xmalloc
48420         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
48421         due to memory pressure.
48422         * modules/utimecmp (Depends-on): Drop xalloc.
48424 2011-04-27  Eric Blake  <eblake@redhat.com>
48426         getcwd: fix mingw bugs
48427         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
48428         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
48429         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
48431 2011-04-27  Bruno Haible  <bruno@clisp.org>
48433         mkstemps: Ensure declaration on MacOS X 10.5.
48434         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
48435         * doc/glibc-functions/mkstemps.texi: Document header file problem on
48436         MacOS X.
48438 2011-04-27  Bruno Haible  <bruno@clisp.org>
48440         mkstemp: More documentation.
48441         * doc/posix-functions/mkstemp.texi: Document header file problem on
48442         MacOS X.
48444 2011-04-27  Bruno Haible  <bruno@clisp.org>
48446         mkstemp: Tweak configure message when cross-compiling.
48447         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
48448         result as a guess.
48450 2011-04-27  Bruno Haible  <bruno@clisp.org>
48452         clean-temp: Clarify what it does.
48453         * lib/clean-temp.h: Add more comments.
48454         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
48455         module.
48456         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
48457         * doc/glibc-functions/mkstemps.texi: Likewise.
48458         * doc/glibc-functions/mkostemps.texi: Likewise.
48460 2011-04-27  Eric Blake  <eblake@redhat.com>
48462         fchdir: avoid extra chdir and fix test
48463         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
48464         getcwd-lgpl.
48465         * lib/fchdir.c (get_name): Any absolute name will do; it does not
48466         have to be canonical.
48467         (canonicalize_file_name): Drop unused macro.
48468         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
48470         filenamecat-lgpl: fix licence
48471         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
48472         when it was first created.
48474         linkat, renameat: add missing dependency
48475         * modules/linkat (Depends-on): Require getcwd-lgpl.
48476         * modules/renameat (Depends-on): Likewise.
48478         tests: reduce dependencies
48479         * tests/test-linkat.c (main): Use lighter-weight getcwd.
48480         * tests/test-renameat.c (main): Likewise.
48481         * modules/linkat-tests (Depends-on): Relax dependency.
48482         * modules/renameat-tests (Depends-on): Likewise.
48483         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
48484         dependency explicit.
48486         save-cwd: reduce default dependency
48487         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
48488         * lib/save-cwd.c: Update comments.
48489         * NEWS: Document the semantic change.
48491         getcwd: enhance tests
48492         * tests/test-getcwd-lgpl.c: New file, taken from...
48493         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
48494         repeat long path stress tests from m4 probe.
48495         * modules/getcwd-lgpl-tests: New module.
48496         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
48497         * m4/getcwd-abort-bug.m4: Update comment.
48498         * m4/getcwd-path-max.m4: Likewise.
48500         getcwd-lgpl: new module
48501         * modules/getcwd-lgpl: New module.
48502         * lib/getcwd-lgpl.c: New file.
48503         * doc/posix-functions/getcwd.texi (getcwd): Document it.
48504         * MODULES.html.sh (lacking POSIX:2008): Likewise.
48505         * modules/getcwd (configure.ac): Set C witness.
48506         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
48508         getcwd: tweak comments
48509         * m4/getcwd-abort-bug.m4: Fix comments.
48510         * m4/getcwd-path-max.m4: Likewise.
48511         * m4/getcwd.m4: Likewise.
48513 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
48514         and Eric Blake  <eblake@redhat.com>
48516         mkstemp: replace if system version uses wrong permissions
48517         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
48518         read/write mode bits set in file created by mkstemp.
48519         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
48521 2011-04-27  Eric Blake  <eblake@redhat.com>
48523         passfd: avoid compiler warning
48524         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
48525         Reported by Laine Stump.
48527 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
48529         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
48530         required by the NetBSD (and perhaps other 4.4BSD derived) join.
48532 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
48533         and Eric Blake  <eblake@redhat.com>
48535         mkstemp: mention clean-temp module
48536         * lib/mkstemp.c: Add comment.
48537         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
48539 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
48541         inttypes: also provide default values for 32-bit tests
48542         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
48543         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
48545 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
48547         strtoumax: remove dependency on strtoimax
48548         This is like the strtoull change of yesterday.
48549         * modules/strtoumax (Files): Add lib/strtoimax.c.
48550         (Depends-on): Remove strtoimax and add verify.
48552         inttypes-incomplete: new module
48553         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
48554         all but the PRI* and SCN* parts of gl_INTTYPES_H.
48555         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
48556         of gl_INTTYPES_H.
48557         (gl_INTTYPES_H): Rewrite in terms of these new macros.
48558         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
48559         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
48560         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
48561         * modules/strtoumax, modules/xstrtol (Depends-on):
48562         Depend on inttypes-incomplete, not inttypes.
48563         * modules/inttypes-incomplete: New module, containing the contents
48564         of the old modules/inttypes module, except that the Files: section
48565         omits m4/inttypes-pri.m4, and the configure.ac section invokes
48566         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
48567         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
48568         (Depends-on): Depend only on inttypes-incomplete.
48569         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
48571         inttypes: omit now-redundant strtoimax and strtoumax work
48572         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
48573         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
48575         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
48576         This supports apps that need pointers to strtoimax and strtoumax,
48577         and ports to HP-UX 11.00 64.bit, which has macros that expand to
48578         nonexistent functions.  See
48579         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00241.html>
48580         et seq.
48581         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
48582         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
48583         a macro.
48584         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
48586 2011-04-25  Simon Josefsson  <simon@josefsson.org>
48588         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
48590 2011-04-25  Bruno Haible  <bruno@clisp.org>
48592         strtol, strtoul: Mark modules as obsolete.
48593         * modules/strtol (Status, Notice): New sections.
48594         * modules/strtoul (Status, Notice): New sections.
48596 2011-04-25  Bruno Haible  <bruno@clisp.org>
48598         strtod: Remove check for strtod, unless supporting old platforms.
48599         * modules/strtod-obsolete: New file.
48600         * m4/strtod-obsolete.m4: New file.
48601         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
48602         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
48603         * modules/strtod (Depends-on): Add strtod-obsolete.
48604         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
48606 2011-04-25  Bruno Haible  <bruno@clisp.org>
48608         strcase: Make module obsolete.
48609         * modules/strcase (Status, Notice): New sections.
48611 2011-04-25  Bruno Haible  <bruno@clisp.org>
48613         dup2: Remove check for dup2, unless supporting old obsolete platforms.
48614         * modules/dup2-obsolete: New file.
48615         * m4/dup2-obsolete.m4: New file.
48616         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
48617         gl_FUNC_DUP2_OBSOLETE is not also defined.
48618         * modules/dup2 (Depends-on): Add dup2-obsolete.
48619         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
48621 2011-04-25  Bruno Haible  <bruno@clisp.org>
48623         strnlen: Avoid memchr related link error on old obsolete platforms.
48624         * modules/memchr-obsolete: New file.
48625         * m4/memchr-obsolete.m4: New file.
48626         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
48627         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
48628         * modules/memchr (Depends-on): Add memchr-obsolete.
48629         * modules/strnlen (Depends-on): Likewise.
48630         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
48632 2011-04-25  Jim Meyering  <meyering@redhat.com>
48634         maint.mk: makefile_at_at_check extend and clean up
48635         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
48636         in addition to */Makefile.am.
48637         Exempt legitimate uses of @VAR@ notation, e.g.,
48638         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
48639         Remove obsolete coreutils-specific comment.
48640         Prompted by discussion here:
48641         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
48643 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
48645         strtoul: remove dependency on strtol
48646         This is so that 'configure' need not check for strtol merely because
48647         the application needs strtoul.
48648         * modules/strtoul (Files): Add lib/strtol.c.
48649         (Depends-on): Remove strtol.
48651         strtoull: remove dependency on strtoul
48652         This is like the strtoll change.
48653         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
48654         (Depends-on): Remove strtoul.
48656         strtoll: remove dependency on strtol
48657         This is so that 'configure' need not check for strtol merely because
48658         the application needs strtoll.
48659         * modules/strtoll (Files): Add lib/strtol.c.
48660         (Depends-on): Remove strtol.
48662 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
48664         inttypes: Move some configure check to module 'imaxdiv'.
48665         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
48666         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
48667         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
48669 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
48671         inttypes: Move some configure check to module 'imaxabs'.
48672         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
48673         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
48674         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
48676 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
48678         inttypes: Remove configure tests that are not needed since 2009-12-31.
48679         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
48680         gl_cv_header_working_inttypes_h.
48682 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
48684         * modules/strnlen (Depends-on): Remove memchr.
48685         The strnlen implementation doesn't need the memchr module's fixes; see
48686         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00237.html>.
48688         strtol: remove dependency on wchar
48689         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
48690         * modules/strtol (Depends-on): Remove wchar.
48692 2011-04-21  Eric Blake  <eblake@redhat.com>
48694         passfd: fix test regression on Linux
48695         * modules/passfd-tests (configure.ac): Correct socketpair check.
48697         passfd: speed up configure and drop unused code
48698         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
48699         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
48700         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
48701         Instead of probing at configure for unix_scm_rights_bsd44_way,
48702         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
48703         check to a struct member probe.
48704         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
48705         (sendfd, recvfd): Update preprocessor checks.
48706         * modules/passfd (Files): Reflect rename, and drop unused file.
48707         (Depends-on): Drop unused dependency.
48709         passfd: allow compilation on mingw
48710         * modules/sys_socket (Depends-on): Add sys_uio.
48711         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
48712         iovec and a minimal struct msghdr.
48713         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
48714         * tests/test-sys_socket.c (main): Enhance test.
48715         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
48716         guaranteed to provide what we need.
48717         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
48718         * modules/passfd-tests (Depends-on): Add sys_wait.
48719         * tests/test-passfd.c (main): Skip test on mingw, for now.
48720         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
48721         partial 'struct msghdr' implementation.
48723         sys_uio: new module
48724         * modules/sys_uio: New module.
48725         * modules/sys_uio-tests: Likewise.
48726         * lib/sys_uio.in.h: New file.
48727         * m4/sys_uio_h.m4: Likewise.
48728         * tests/test-sys_uio.c: Likewise.
48729         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
48730         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
48732 2011-04-20  Jim Meyering  <meyering@redhat.com>
48734         useless-if-before-free: avoid false-positive
48735         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
48736         disjunct so that it too requires a terminating ";".  Without that,
48737         this script would identify as useless one statement from gcc that
48738         was not:
48739           if (aligned_ptr)
48740             free (((void **) aligned_ptr) [-1]);
48742 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
48744         doc: update users.txt.
48745         * users.txt: Add barcode.
48747 2011-04-19  Bruno Haible  <bruno@clisp.org>
48749         ioctl: Remove link dependency on native Windows.
48750         * lib/fd-hook.h: Renamed from lib/close-hook.h.
48751         (gl_close_fn, gl_ioctl_fn): New types.
48752         (struct fd_hook): Renamed from struct close_hook. Change type of
48753         private_close_fn field. Add private_ioctl_fn field.
48754         (close_hook_fn): Add parameter for primary close method.
48755         (execute_close_hooks, execute_all_close_hooks): Likewise.
48756         (ioctl_hook_fn): New type.
48757         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
48758         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
48759         argument.
48760         (unregister_fd_hook): Renamed from unregister_close_hook.
48761         * lib/fd-hook.c: Renamed from lib/close-hook.c.
48762         Don't include <unistd.h>.
48763         (close): Remove undef.
48764         (anchor): Update.
48765         (execute_close_hooks): Add argument for primary close method.
48766         (execute_all_close_hooks): Likewise.
48767         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
48768         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
48769         argument. Allow each argument to be NULL.
48770         (unregister_fd_hook): Renamed from unregister_close_hook.
48771         * lib/close.c (rpl_close): Pass 'close' function pointer to
48772         execute_all_close_hooks.
48773         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
48774         (primary_ioctl): New function.
48775         (ioctl): Don't call ioctlsocket here. Instead, call
48776         execute_all_ioctl_hooks.
48777         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
48778         close method.
48779         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
48780         (fd_sockets_hook): Renamed from close_sockets_hook.
48781         (gl_sockets_startup, gl_sockets_cleanup): Update.
48782         * modules/fd-hook: Renamed from modules/close-hook. Update.
48783         * modules/close (Depends-on): Add fd-hook, remove close-hook.
48784         * modules/sockets (Depends-on): Likewise.
48785         * modules/ioctl (Depends-on): Add fd-hook.
48786         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
48787         GNULIB_SOCKET.
48789 2011-04-19  Bruno Haible  <bruno@clisp.org>
48791         Move the support of O_NONBLOCK in open() to the 'open' module.
48792         * modules/nonblocking (Depends-on): Remove 'open'.
48793         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
48794         gl_cv_have_open_O_NONBLOCK.
48795         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
48796         O_NONBLOCK support.
48797         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
48799 2011-04-17  Bruno Haible  <bruno@clisp.org>
48801         pipe2: Simplify code.
48802         * lib/pipe2.c (pipe2): Reduce code duplication.
48804 2011-04-17  Bruno Haible  <bruno@clisp.org>
48806         nonblocking: Add comment.
48807         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
48809 2011-04-17  Bruno Haible  <bruno@clisp.org>
48811         nonblocking: Add tests for sockets.
48812         * tests/test-nonblocking-socket.sh: New file.
48813         * tests/test-nonblocking-socket-main.c: New file.
48814         * tests/test-nonblocking-socket-child.c: New file.
48815         * tests/test-nonblocking-socket.h: New file.
48816         * tests/socket-server.h: New file.
48817         * tests/socket-client.h: New file.
48818         * modules/nonblocking-socket-tests: New file.
48819         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
48821 2011-04-17  Bruno Haible  <bruno@clisp.org>
48823         nonblocking: Add tests for pipes.
48824         * tests/test-nonblocking-pipe.sh: New file.
48825         * tests/test-nonblocking-pipe-main.c: New file.
48826         * tests/test-nonblocking-pipe-child.c: New file.
48827         * tests/test-nonblocking-pipe.h: New file.
48828         * tests/test-nonblocking-writer.h: New file.
48829         * tests/test-nonblocking-reader.h: New file.
48830         * tests/test-nonblocking-misc.h: New file.
48831         * modules/nonblocking-pipe-tests: New file.
48832         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
48834 2011-04-16  Bruno Haible  <bruno@clisp.org>
48836         gettext: Clarify the needed programmer actions.
48837         * modules/gettext (Notice): New field.
48838         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
48840 2011-04-16  Bruno Haible  <bruno@clisp.org>
48842         strchrnul: Tweak last commit.
48843         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
48844         bug.
48845         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
48846         as in _GL_FUNCDECL_SYS.
48847         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
48848         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
48850 2011-04-15  Eric Blake  <eblake@redhat.com>
48852         strchrnul: work around cygwin bug
48853         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
48854         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
48855         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
48856         * modules/string (Makefile.am): Substitute it.
48857         * lib/string.in.h (strchrnul): Use it.
48859 2011-04-15  Bruno Haible  <bruno@clisp.org>
48861         Don't require lib/stdio-write.c when only module 'stdio' is used.
48862         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
48863         invocation.
48864         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
48866 2011-04-14  Bruno Haible  <bruno@clisp.org>
48868         Support non-blocking pipe I/O in read() on native Windows.
48869         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
48870         (read): New declaration.
48871         * lib/read.c: New file.
48872         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
48873         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
48874         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
48875         vscanf): New declarations.
48876         * lib/stdio-read.c: New file.
48877         * m4/read.m4: New file.
48878         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
48879         REPLACE_READ.
48880         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
48881         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
48882         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
48883         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
48884         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
48885         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
48886         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
48887         * modules/read: New file.
48888         * modules/nonblocking (Files): Add lib/stdio-read.c.
48889         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
48890         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
48891         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
48892         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
48893         * modules/pread (Depends-on): Add read.
48894         * modules/safe-read (Depends-on): Likewise.
48895         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
48896         gets, scanf, vfscanf, vscanf): Verify signatures.
48897         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
48898         problem with non-blocking pipes.
48899         * doc/posix-functions/fgetc.texi: Likewise.
48900         * doc/posix-functions/fgets.texi: Likewise.
48901         * doc/posix-functions/fread.texi: Likewise.
48902         * doc/posix-functions/fscanf.texi: Likewise.
48903         * doc/posix-functions/getc.texi: Likewise.
48904         * doc/posix-functions/getchar.texi: Likewise.
48905         * doc/posix-functions/gets.texi: Likewise.
48906         * doc/posix-functions/scanf.texi: Likewise.
48907         * doc/posix-functions/vfscanf.texi: Likewise.
48908         * doc/posix-functions/vscanf.texi: Likewise.
48910 2011-04-14  Bruno Haible  <bruno@clisp.org>
48912         Support non-blocking pipe I/O in write() on native Windows.
48913         * lib/write.c (rpl_write): Split a write request that failed merely
48914         because the byte count was larger than the pipe buffer's size.
48915         * doc/posix-functions/write.texi: Mention the problem with large byte
48916         counts.
48918 2011-04-14  Bruno Haible  <bruno@clisp.org>
48920         wchar: Ensure that wchar_t gets defined on uClibc.
48921         * lib/wchar.in.h: On uClibc, include <stddef.h>.
48922         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
48924 2011-04-13  Bruno Haible  <bruno@clisp.org>
48926         safe-write, full-read: Avoid unnecessary compilation units.
48927         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
48928         (Depends-on): Remove safe-read. Add ssize_t.
48929         * modules/full-read (Files): Add lib/full-write.c.
48930         (Depends-on): Add full-write.
48932 2011-04-13  Bruno Haible  <bruno@clisp.org>
48934         Support non-blocking pipe I/O and SIGPIPE in pwrite().
48935         * modules/pwrite (Depends-on): Add 'write'.
48937 2011-04-13  Bruno Haible  <bruno@clisp.org>
48939         Support non-blocking pipe I/O in write() on native Windows.
48940         * lib/unistd.in.h (write): Enable replacement also if
48941         GNULIB_UNISTD_H_NONBLOCKING is 1.
48942         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
48943         (rpl_write): When failing to write on a non-blocking pipe, change
48944         errno from ENOSPC to EAGAIN.
48945         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
48946         putchar, puts, vfprintf, vprintf): Enable replacement also if
48947         GNULIB_STDIO_H_NONBLOCKING is 1.
48948         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
48949         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
48950         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
48951         CALL_WITH_SIGPIPE_EMULATION.
48952         (CALL_WITH_SIGPIPE_EMULATION): Use them.
48953         * m4/nonblocking.m4: New file.
48954         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
48955         for non-blocking I/O support.
48956         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
48957         GNULIB_UNISTD_H_NONBLOCKING.
48958         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
48959         required for non-blocking I/O support.
48960         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
48961         * modules/nonblocking (Files): Add m4/nonblocking.m4,
48962         lib/stdio-write.c, m4/asm-underscore.m4.
48963         (Depends-on): Add stdio, unistd.
48964         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
48965         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
48966         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
48967         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
48968         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
48969         problem with non-blocking pipes.
48970         * doc/posix-functions/fputc.texi: Likewise.
48971         * doc/posix-functions/fputs.texi: Likewise.
48972         * doc/posix-functions/fwrite.texi: Likewise.
48973         * doc/posix-functions/printf.texi: Likewise.
48974         * doc/posix-functions/putc.texi: Likewise.
48975         * doc/posix-functions/putchar.texi: Likewise.
48976         * doc/posix-functions/puts.texi: Likewise.
48977         * doc/posix-functions/vfprintf.texi: Likewise.
48978         * doc/posix-functions/vprintf.texi: Likewise.
48979         * doc/posix-functions/write.texi: Likewise.
48981 2011-04-10  Jim Meyering  <meyering@redhat.com>
48983         maint.mk: prohibit doubled words
48984         Detect them also when they're separated by a newline.
48985         There are 3 ways to customize it:
48986           - disable the test on a per file basis, as usual with rules using
48987             $(VC_LIST_EXCEPT)
48988           - replace the default doubled-word-selecting regexp (affects all files)
48989           - ignore a particular file-vs-doubled-word match
48990         I nearly used that last one to ignore the "is is" match in
48991         coreutils' NEWS file, since the text was "ls -is is ..."
48992         To do that, I would have added this line to cfg.mk:
48993           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
48994         but it would have ignored any "is is" match in NEWS.
48995         Low probability, but still...
48996         Instead, I changed the text, slightly:
48997           -  ls -is is now consistent with ls -lis in ignoring values returned
48998           +  "ls -is" is now consistent with ls -lis in ignoring values returned
48999         * top/maint.mk (prohibit_double_word_RE_): Provide default.
49000         (prohibit_doubled_word_): Define.
49001         (sc_prohibit_doubled_word): New rule.
49002         (sc_prohibit_the_the): Remove.  Subsumed by the above.
49004 2011-04-10  Jim Meyering  <meyering@redhat.com>
49006         maint: fix doubled-word typo in comment
49007         * m4/gethostname.m4: s/is is/it is/
49008         * m4/getdomainname.m4: Likewise.
49010 2011-04-10  Jim Meyering  <meyering@redhat.com>
49012         maint: remove doubled word: s/it it/it/
49013         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
49015 2011-04-10  Jim Meyering  <meyering@redhat.com>
49017         maint.mk: remove useless semicolon and backslash
49018         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
49019         semicolon and backslash.
49021 2011-04-10  Bruno Haible  <bruno@clisp.org>
49023         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
49024         * modules/stdint-tests (Depends-on): Add wchar.
49026 2011-04-10  Jim Meyering  <meyering@redhat.com>
49028         maint: remove doubled words in comments, e.g., s/a a/a/
49029         * lib/strptime.c (day_of_the_week): s/the the/the/
49030         * tests/test-chown.h (test_chown): s/a a/a/
49032         test-chown.h: correct a cast
49033         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
49034         when the destination is a stat.st_gid.
49036 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
49038         getaddrinfo: Fix test for sa_len member.
49039         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
49040         include <sys/types.h> before <sys/socket.h>.
49042 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
49044         maint: change "can not" to "cannot"
49045         * doc/posix-functions/iconv.texi (iconv): This one crossed line
49046         boundaries.
49048 2011-04-09  Jim Meyering  <meyering@redhat.com>
49050         maint: change "a a" to "a"
49051         * tests/test-lchown.h (test_lchown): s/a a/a/
49053         maint.mk: prohibit \<the the\>
49054         * top/maint.mk (sc_prohibit_the_the): New rule.
49056         maint: fix "the the" in comment
49057         * lib/count-one-bits.h: s/the the/the/
49059         maint: change "can not" to "cannot"
49060         But do not change the occurrences in maintain.texi or in
49061         build-aux/po/Makefile.in.in, which I presume comes from gettext.
49062         * doc/gnulib-tool.texi: s/can not/cannot/
49063         * doc/posix-functions/accept.texi (accept): Likewise.
49064         * doc/posix-functions/socket.texi (socket): Likewise.
49065         * lib/mbrtowc.c: Likewise.
49067         maint.mk: prohibit use of "can not"
49068         * top/maint.mk (sc_prohibit_can_not): New rule.
49069         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
49071 2011-04-09  Bruno Haible  <bruno@clisp.org>
49073         careadlinkat: Guard against misuse of careadlinkatcwd.
49074         * lib/careadlinkat.c: Include <stdlib.h>.
49075         (careadlinkatcwd): Check that the fd argument is as expected.
49077 2011-04-09  Bruno Haible  <bruno@clisp.org>
49079         careadlinkat: Use common coding style.
49080         * lib/careadlinkat.c: Move gnulib includes after system includes.
49082 2011-04-09  Bruno Haible  <bruno@clisp.org>
49084         careadlinkat: Clarify specification.
49085         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
49086         (careadlinkatcwd): Add comment.
49087         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
49089 2011-04-09  Bruno Haible  <bruno@clisp.org>
49091         areadlinkat: Avoid link error on many platforms.
49092         * modules/areadlinkat (Depends-on): Add areadlink.
49094 2011-04-09  Bruno Haible  <bruno@clisp.org>
49096         allocator, careadlinkat: Fix double-inclusion guard.
49097         * lib/allocator.h: Fix double-inclusion guard.
49098         * lib/careadlinkat.h: Likewise.
49100 2011-04-09  Bruno Haible  <bruno@clisp.org>
49102         relocatable-prog-wrapper: Update after module 'areadlink' changed.
49103         * lib/relocwrapper.c: Update dependencies hierarchy.
49104         * build-aux/install-reloc: Update list of files to be compiled.
49105         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
49106         lib/allocator.[hc].
49108 2011-04-08  Eric Blake  <eblake@redhat.com>
49110         strftime: silence gnulib-tool warning
49111         * modules/strftime-tests (Depends-on): Drop automatic dependency.
49113 2011-04-08  Bruno Haible  <bruno@clisp.org>
49115         verify: Fix syntax error with GCC 4.6 in C++ mode.
49116         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
49117         (HAVE_STATIC_ASSERT): New macro.
49118         (verify_true, verify): Use 'static_assert' if it is supported and
49119         '_Static_assert' is not supported.
49121 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
49123         allocator: New module.
49124         * modules/allocator, lib/allocator.c: New files.
49125         * lib/allocator.h (stdlib_allocator): New decl.
49126         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
49127         Remove.  Do not include <stdlib.h>.
49128         (careadlinkat): Use stdlib_allocator instead of rolling our own.
49129         * modules/careadlinkat (Files): Remove lib/allocator.h.
49130         (Depends-on): Add allocator.
49132         stdlib: let modules use system malloc, realloc
49133         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
49134         if !_GL_USE_STDLIB_ALLOC.
49135         (malloc, realloc): Limit this change to a smaller scope.
49137         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
49138         (malloc, realloc): Don't #undef; no longer needed.
49139         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
49140         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
49141         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
49142         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
49143         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
49144         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
49145         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
49146         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
49148         careadlinkat: rename members to avoid problem
49149         * lib/allocator.h (struct allocator): Rename members from
49150         malloc/realloc to allocate/reallocate, to avoid problems if malloc
49151         and realloc are #define'd.  Reported by Eric Blake in
49152         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00091.html>.
49153         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
49155 2011-04-08  Eric Blake  <eblake@redhat.com>
49157         nonblocking: reduce dependency
49158         * tests/test-nonblocking.c: Only test sockets when in use.
49159         * modules/nonblocking-tests (Depends-on): Drop socket.
49160         (Makefile.am): Link even if sockets are not present.
49161         * modules/pipe2-tests (Makefile.am): Likewise.
49162         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
49164         pipe2: fix O_NONBLOCK support on mingw
49165         * modules/pipe2 (Depends-on): Add nonblocking.
49166         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
49167         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
49168         * tests/test-nonblocking.c (main): Likewise.
49169         * modules/pipe2-tests (Makefile.am): Avoid link failure.
49171         fcntl-h: fix O_ACCMODE on cygwin
49172         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
49173         * lib/fcntl.in.h (O_ACCMODE): Fix it.
49175         pipe-filter: drop O_NONBLOCK workarounds
49176         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
49177         * modules/pipe-filter-ii (Depends-on): Likewise.
49178         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
49180         nonblocking: provide O_NONBLOCK for mingw
49181         * modules/nonblocking (Depends-on): Add open.
49182         (configure.ac): Set new witness macro.
49183         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
49184         * modules/fcntl-h (Makefile.am): Substitute it.
49185         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
49186         nonblocking module is in use.
49187         * lib/nonblocking.c: Adjust portability test.
49188         * lib/open.c (open): Don't let native open see gnulib flag.
49189         * tests/test-fcntl-h.c (main): Enhance test.
49190         * tests/test-open.h (test_open): Likewise.
49191         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
49193         careadlinkat: fix compilation error on mingw
49194         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
49195         within struct allocator.
49197 2011-04-06  Eric Blake  <eblake@redhat.com>
49199         binary-io: relicense under LGPLv2+
49200         * modules/binary-io (License): Relax to LGPLv2+.
49201         Requested for libvirt, and required by pipe2.
49203 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
49205         verify: use _Static_assert if available
49206         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
49207         (verify_true, verify): Use it if available.  This generates better
49208         diagnostics with GCC 4.6.0 and later.
49210 2011-04-05  Bruno Haible  <bruno@clisp.org>
49212         Remove leftover generated .h files after config.status changed.
49214         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
49215         GL_GENERATE_ALLOCA_H.
49216         * modules/alloca-opt (Makefile.am): Remove alloca.h if
49217         GL_GENERATE_ALLOCA_H evaluates to false.
49219         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
49220         GL_GENERATE_ARGZ_H.
49221         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
49222         evaluates to false.
49224         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
49225         GL_GENERATE_BYTESWAP_H.
49226         * modules/byteswap (Makefile.am): Remove byteswap.h if
49227         GL_GENERATE_BYTESWAP_H evaluates to false.
49229         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
49230         GL_GENERATE_ERRNO_H.
49231         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
49232         evaluates to false.
49234         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
49235         GL_GENERATE_FLOAT_H.
49236         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
49237         evaluates to false.
49239         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
49240         GL_GENERATE_FNMATCH_H.
49241         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
49242         GL_GENERATE_FNMATCH_H evaluates to false.
49244         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
49245         GL_GENERATE_GLOB_H.
49246         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
49247         evaluates to false.
49249         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
49250         automake conditional GL_GENERATE_ICONV_H.
49251         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
49252         evaluates to false.
49254         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
49255         GL_GENERATE_NETINET_IN_H.
49256         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
49257         GL_GENERATE_NETINET_IN_H evaluates to false.
49259         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
49260         conditional GL_GENERATE_PTHREAD_H.
49261         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
49262         * modules/pthread (Makefile.am): Remove pthread.h if
49263         GL_GENERATE_PTHREAD_H evaluates to false.
49265         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
49266         GL_GENERATE_SCHED_H.
49267         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
49268         evaluates to false.
49270         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
49271         conditional GL_GENERATE_SELINUX_CONTEXT_H.
49272         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
49273         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
49275         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
49276         GL_GENERATE_STDARG_H.
49277         * modules/stdarg (Makefile.am): Remove stdarg.h if
49278         GL_GENERATE_STDARG_H evaluates to false.
49280         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
49281         GL_GENERATE_STDBOOL_H.
49282         * modules/stdbool (Makefile.am): Remove stdbool.h if
49283         GL_GENERATE_STDBOOL_H evaluates to false.
49285         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
49286         conditional GL_GENERATE_STDDEF_H.
49287         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
49288         * modules/stddef (Makefile.am): Remove stddef.h if
49289         GL_GENERATE_STDDEF_H evaluates to false.
49291         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
49292         GL_GENERATE_STDINT_H.
49293         * modules/stdint (Makefile.am): Remove stdint.h if
49294         GL_GENERATE_STDINT_H evaluates to false.
49296         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
49297         GL_GENERATE_SYSEXITS_H.
49298         * modules/sysexits (Makefile.am): Remove sysexits.h if
49299         GL_GENERATE_SYSEXITS_H evaluates to false.
49301         Reported by Karl Berry and Ralf Wildenhues.
49303 2011-04-05  Bruno Haible  <bruno@clisp.org>
49305         Ensure to rebuild generated .h files when config.status has changed.
49306         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
49307         config.status.
49308         * modules/ctype (Makefile.am): Likewise.
49309         * modules/dirent (Makefile.am): Likewise.
49310         * modules/errno (Makefile.am): Likewise.
49311         * modules/fcntl-h (Makefile.am): Likewise.
49312         * modules/float (Makefile.am): Likewise.
49313         * modules/getopt-posix (Makefile.am): Likewise.
49314         * modules/glob (Makefile.am): Likewise.
49315         * modules/iconv-h (Makefile.am): Likewise.
49316         * modules/inttypes (Makefile.am): Likewise.
49317         * modules/langinfo (Makefile.am): Likewise.
49318         * modules/locale (Makefile.am): Likewise.
49319         * modules/math (Makefile.am): Likewise.
49320         * modules/netdb (Makefile.am): Likewise.
49321         * modules/netinet_in (Makefile.am): Likewise.
49322         * modules/poll-h (Makefile.am): Likewise.
49323         * modules/pthread (Makefile.am): Likewise.
49324         * modules/pty (Makefile.am): Likewise.
49325         * modules/sched (Makefile.am): Likewise.
49326         * modules/search (Makefile.am): Likewise.
49327         * modules/selinux-h (Makefile.am): Likewise.
49328         * modules/signal (Makefile.am): Likewise.
49329         * modules/spawn (Makefile.am): Likewise.
49330         * modules/stdarg (Makefile.am): Likewise.
49331         * modules/stdbool (Makefile.am): Likewise.
49332         * modules/stddef (Makefile.am): Likewise.
49333         * modules/stdint (Makefile.am): Likewise.
49334         * modules/stdio (Makefile.am): Likewise.
49335         * modules/stdlib (Makefile.am): Likewise.
49336         * modules/string (Makefile.am): Likewise.
49337         * modules/strings (Makefile.am): Likewise.
49338         * modules/sys_file (Makefile.am): Likewise.
49339         * modules/sys_ioctl (Makefile.am): Likewise.
49340         * modules/sys_select (Makefile.am): Likewise.
49341         * modules/sys_socket (Makefile.am): Likewise.
49342         * modules/sys_stat (Makefile.am): Likewise.
49343         * modules/sys_time (Makefile.am): Likewise.
49344         * modules/sys_times (Makefile.am): Likewise.
49345         * modules/sys_utsname (Makefile.am): Likewise.
49346         * modules/sys_wait (Makefile.am): Likewise.
49347         * modules/sysexits (Makefile.am): Likewise.
49348         * modules/termios (Makefile.am): Likewise.
49349         * modules/time (Makefile.am): Likewise.
49350         * modules/unistd (Makefile.am): Likewise.
49351         * modules/wchar (Makefile.am): Likewise.
49352         * modules/wctype-h (Makefile.am): Likewise.
49353         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
49355 2011-04-05  Bruno Haible  <bruno@clisp.org>
49357         pipe2: Relicense under LGPLv2+.
49358         * modules/pipe2 (License): Change to LGPLv2+.
49359         Requested by Eric Blake, for libvirt.
49361 2011-04-05  Bruce Korb  <bkorb@gnu.org>
49363         bootstrap: compute gnulib_extra_files after updating build_aux
49364         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
49365         change build_aux or also supply gnulib_extra_files.  Handle correctly.
49367 2011-04-05  Eric Blake  <eblake@redhat.com>
49369         bootstrap: preserve git whitelist item sorting
49370         * build-aux/bootstrap (sort_patterns): New function.
49371         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
49373 2011-04-05  Simon Josefsson  <simon@josefsson.org>
49375         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
49376         sc_space_tab check.
49378 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
49380         areadlink, areadlinkat: rewrite in terms of careadlinkat
49381         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
49382         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
49383         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
49384         (malloc, realloc): Remove #undefs.
49385         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
49386         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
49387         readlink, ssize_t, stdint, unistd.
49388         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
49389         areadlink, stdint.
49391         careadlinkat: new module
49392         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
49393         * modules/careadlinkat: New files, written by me with
49394         a review and feedback from Ben Pfaff in
49395         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00008.html>.
49397 2011-04-01  Bruno Haible  <bruno@clisp.org>
49399         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
49400         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
49401         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
49402         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
49403         Reported by Bruce Korb <bruce.korb@gmail.com>.
49405 2011-04-01  Bruno Haible  <bruno@clisp.org>
49407         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
49408         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
49409         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
49410         * modules/wcpcpy (Depends-on): Add extensions.
49411         * modules/wcpncpy (Depends-on): Likewise.
49412         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
49413         systems.
49414         * doc/posix-functions/wcpncpy.texi: Likewise.
49415         * doc/posix-functions/wcwidth.texi: Likewise.
49417 2011-03-31  Eric Blake  <eblake@redhat.com>
49419         nonblocking: fix mingw test failures
49420         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
49421         non-blocking flag on regular file.
49422         (get_nonblocking_flag): Set errno on invalid fd.
49423         * tests/test-nonblocking.c (main): Avoid test failure on
49424         directories if fchdir is not active.
49425         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
49427 2011-03-31  Bruno Haible  <bruno@clisp.org>
49429         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
49430         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
49431         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
49432         Reported by Simon Josefsson <simon@josefsson.org>.
49434 2011-03-31  Bruno Haible  <bruno@clisp.org>
49435         and Eric Blake  <eblake@redhat.com>
49437         nonblocking: new module
49438         * modules/nonblocking: New module.
49439         * modules/nonblocking-tests: Likewise.
49440         * lib/nonblocking.h: New file.
49441         * lib/nonblocking.c: Likewise.
49442         * tests/test-nonblocking.c: New test.
49443         * lib/ioctl.c (ioctl) [mingw]: Update comment.
49445 2011-03-30  Bruno Haible  <bruno@clisp.org>
49447         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
49448         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
49449         instead of 'printf' format for GCC >= 4.4.
49450         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
49451         (fprintf, printf, vfprintf, vprintf): Declare with
49452         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
49453         the system's vfprintf() function.
49454         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
49456 2011-03-30  Eric Blake  <eblake@redhat.com>
49458         passfd: fix scoping bug
49459         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
49460         before sendmsg/recvmsg.
49462         passfd: standardize coding conventions
49463         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
49464         can be learned at compile time.
49465         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
49466         ifdefs.
49467         (sendfd, recvfd): Follow gnulib code conventions.
49469         passfd: fix incorrect sendmsg arguments
49470         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
49471         incorrect msg_controllen value.
49472         * modules/passfd-tests (Depends-on): Check for alarm.
49473         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
49474         Reported by Bastien ROUCARIES.
49476 2011-03-30  Bruno Haible  <bruno@clisp.org>
49478         c-strcasestr: Relicense under LGPLv2+.
49479         * modules/c-strcasestr (License): Change to LGPLv2+.
49480         Requested by Eric Blake, for libvirt.
49482 2011-03-30  Simon Josefsson  <simon@josefsson.org>
49484         * users.txt: Add libidn2.  Fix libtasn1 link.
49486 2011-03-30  Jim Meyering  <meyering@redhat.com>
49488         tests: readlink* ("",... fails with EINVAL on newer kernels
49489         readlink and readlinkat have typically failed with ENOENT for
49490         the invalid, empty file name,  "".  However, with the advent
49491         of linux-2.6.39, they fail with EINVAL.
49492         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
49493         when operating on the empty file name.
49494         * tests/test-readlink.h (test_readlink): Likewise.
49496 2011-03-29  Bruno Haible  <bruno@clisp.org>
49498         Relicense some modules under LGPLv2+, for libidn2.
49499         * modules/array-mergesort (License): Change to LGPLv2+.
49500         * modules/c-strcaseeq (License): Likewise.
49501         * modules/striconveh (License): Likewise.
49502         * modules/striconveha (License): Likewise.
49503         * modules/uniconv/base (License): Likewise.
49504         * modules/uniconv/u8-conv-from-enc (License): Likewise.
49505         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
49506         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
49507         * modules/unictype/base (License): Likewise.
49508         * modules/unictype/bidiclass-of (License): Likewise.
49509         * modules/unictype/category-M (License): Likewise.
49510         * modules/unictype/category-none (License): Likewise.
49511         * modules/unictype/category-of (License): Likewise.
49512         * modules/unictype/category-test (License): Likewise.
49513         * modules/unictype/category-test-withtable (License): Likewise.
49514         * modules/unictype/combining-class (License): Likewise.
49515         * modules/unictype/joiningtype-of (License): Likewise.
49516         * modules/unictype/scripts (License): Likewise.
49517         * modules/uninorm/base (License): Likewise.
49518         * modules/uninorm/canonical-decomposition (License): Likewise.
49519         * modules/uninorm/composition (License): Likewise.
49520         * modules/uninorm/decompose-internal (License): Likewise.
49521         * modules/uninorm/decomposition-table (License): Likewise.
49522         * modules/uninorm/nfc (License): Likewise.
49523         * modules/uninorm/nfd (License): Likewise.
49524         * modules/uninorm/u32-normalize (License): Likewise.
49525         * modules/unistr/base (License): Likewise.
49526         * modules/unistr/u32-cpy (License): Likewise.
49527         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
49528         * modules/unistr/u32-to-u8 (License): Likewise.
49529         * modules/unistr/u32-uctomb (License): Likewise.
49530         * modules/unistr/u8-check (License): Likewise.
49531         * modules/unistr/u8-mblen (License): Likewise.
49532         * modules/unistr/u8-mbtouc (License): Likewise.
49533         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
49534         * modules/unistr/u8-mbtoucr (License): Likewise.
49535         * modules/unistr/u8-prev (License): Likewise.
49536         * modules/unistr/u8-strlen (License): Likewise.
49537         * modules/unistr/u8-to-u32 (License): Likewise.
49538         * modules/unistr/u8-uctomb (License): Likewise.
49539         * modules/unitypes (License): Likewise.
49540         Requested by Simon Josefsson.
49542 2011-03-29  Simon Josefsson  <simon@josefsson.org>
49544         lib-symbol-visibility: Add a notice.
49545         * modules/lib-symbol-visibility (Notice): New field.
49547 2011-03-29  Bruno Haible  <bruno@clisp.org>
49549         getaddrinfo: Doc fix.
49550         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
49551         section "fixed in Gnulib".
49553 2011-03-28  Simon Josefsson  <simon@josefsson.org>
49555         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
49556         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
49558 2011-03-26  Bruno Haible  <bruno@clisp.org>
49560         unictype/property-byname: Reduce the number of load-time relocations.
49561         * lib/unictype/pr_byname.c: Include <stdlib.h>.
49562         (UC_PROPERTY_INDEX_*): New enumeration values.
49563         (uc_property_byname): Convert an index from the lookup table to an
49564         uc_property_t.
49565         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
49566         values.
49568 2011-03-26  Bruno Haible  <bruno@clisp.org>
49570         unictype/property-byname: Allow omitted word separators and aliases.
49571         * lib/unictype/pr_byname.gperf: Add property names without word
49572         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
49573         for 'space'.
49575 2011-03-26  Bruno Haible  <bruno@clisp.org>
49577         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
49578         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
49579         also hyphens to space.
49580         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
49581         without spaces.
49582         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
49584 2011-03-26  Bruno Haible  <bruno@clisp.org>
49586         unictype/joiningtype-byname: Recognize long names as well.
49587         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
49588         a long name.
49589         * lib/unictype/joiningtype_byname.c: Include <string.h>,
49590         unictype/joiningtype_byname.h.
49591         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
49592         * lib/unictype/joiningtype_byname.gperf: New file.
49593         * modules/unictype/joiningtype-byname (Files): Add
49594         lib/unictype/joiningtype_byname.gperf.
49595         (Depends-on): Add gperf.
49596         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
49597         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
49598         long names.
49600         Tests for module 'unictype/joiningtype-longname'.
49601         * modules/unictype/joiningtype-longname-tests: New file.
49602         * tests/unictype/test-joiningtype_longname.c: New file.
49604         New module 'unictype/joiningtype-longname'.
49605         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
49606         * lib/unictype/joiningtype_longname.c: New file.
49607         * modules/unictype/joiningtype-longname: New file.
49608         * modules/unictype/joiningtype-all (Depends-on): Add
49609         unictype/joiningtype-longname.
49611 2011-03-26  Bruno Haible  <bruno@clisp.org>
49613         unictype/bidiclass-byname: Recognize long names as well.
49614         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
49615         name.
49616         * lib/unictype/bidi_byname.c: Include <string.h>,
49617         unictype/bidi_byname.h.
49618         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
49619         * lib/unictype/bidi_byname.gperf: New file.
49620         * modules/unictype/bidiclass-byname (Files): Add
49621         lib/unictype/bidi_byname.gperf.
49622         (Depends-on): Add gperf.
49623         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
49624         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
49625         long names.
49627         Tests for module 'unictype/bidiclass-longname'.
49628         * modules/unictype/bidiclass-longname-tests: New file.
49629         * tests/unictype/test-bidi_longname.c: New file.
49631         New module 'unictype/bidiclass-longname'.
49632         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
49633         * lib/unictype/bidi_longname.c: New file.
49634         * modules/unictype/bidiclass-longname: New file.
49635         * modules/unictype/bidiclass-all (Depends-on): Add
49636         unictype/bidiclass-longname.
49638 2011-03-26  Bruno Haible  <bruno@clisp.org>
49640         unictype/bidi*: Rename modules.
49641         * modules/unictype/bidiclass-all: Renamed from
49642         modules/unictype/bidicategory-all.
49643         * modules/unictype/bidiclass-name: Renamed from
49644         modules/unictype/bidiclass-name.
49645         (Description): Update.
49646         * modules/unictype/bidiclass-name-tests: Renamed from
49647         modules/unictype/bidicategory-name-tests.
49648         * modules/unictype/bidiclass-byname: Renamed from
49649         modules/unictype/bidicategory-byname.
49650         (Description): Update.
49651         * modules/unictype/bidiclass-byname-tests: Renamed from
49652         modules/unictype/bidicategory-byname-tests.
49653         * modules/unictype/bidiclass-of: Renamed from
49654         modules/unictype/bidicategory-of.
49655         (Description): Update.
49656         * modules/unictype/bidiclass-of-tests: Renamed from
49657         modules/unictype/bidicategory-of-tests.
49658         * modules/unictype/bidiclass-test: Renamed from
49659         modules/unictype/bidicategory-test.
49660         (Description): Update.
49661         * modules/unictype/bidiclass-test-tests: Renamed from
49662         modules/unictype/bidicategory-test-tests.
49663         * modules/unictype/bidicategory-all: New file, a simple redirection.
49664         * modules/unictype/bidicategory-name: Likewise.
49665         * modules/unictype/bidicategory-byname: Likewise.
49666         * modules/unictype/bidicategory-of: Likewise.
49667         * modules/unictype/bidicategory-test: Likewise.
49668         * modules/unictype/property-bidi-* (Dependencies): Update.
49669         * lib/unictype/bidi_*.c: Update comment.
49671 2011-03-26  Bruno Haible  <bruno@clisp.org>
49673         unictype/bidi*: Rename functions, part 2.
49674         * modules/unictype/bidicategory-name (configure.ac): Update required
49675         libunistring version.
49676         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
49678 2011-03-25  Bruno Haible  <bruno@clisp.org>
49680         New module 'unictype/combining-class-all'.
49681         * modules/unictype/combining-class-all: New file.
49683         Tests for module 'unictype/combining-class-byname'.
49684         * modules/unictype/combining-class-byname-tests: New file.
49685         * tests/unictype/test-combiningclass_byname.c: New file.
49687         New module 'unictype/combining-class-byname'.
49688         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
49689         * lib/unictype/combiningclass_byname.c: New file.
49690         * lib/unictype/combiningclass_byname.gperf: New file.
49691         * modules/unictype/combining-class-byname: New file.
49693         Tests for module 'unictype/combining-class-longname'.
49694         * modules/unictype/combining-class-longname-tests: New file.
49695         * tests/unictype/test-combiningclass_longname.c: New file.
49697         New module 'unictype/combining-class-longname'.
49698         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
49699         * lib/unictype/combiningclass_longname.c: New file.
49700         * modules/unictype/combining-class-longname: New file.
49702         Tests for module 'unictype/combining-class-name'.
49703         * modules/unictype/combining-class-name-tests: New file.
49704         * tests/unictype/test-combiningclass_name.c: New file.
49706         New module 'unictype/combining-class-name'.
49707         * lib/unictype.in.h (uc_combining_class_name): New declaration.
49708         * lib/unictype/combiningclass_name.c: New file.
49709         * modules/unictype/combining-class-name: New file.
49711 2011-03-25  Bruno Haible  <bruno@clisp.org>
49713         unictype/combining-class: Rename source files.
49714         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
49715         of unictype/combining.h.
49716         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
49717         Update.
49718         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
49719         * modules/unictype/combining-class (Description): Fix.
49720         (Files, Makefile.am): Update.
49721         * tests/unictype/test-combiningclass.c: Renamed from
49722         tests/unictype/test-combining.c.
49723         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
49725 2011-03-25  Bruno Haible  <bruno@clisp.org>
49727         unictype: Update list of canonical combining classes.
49728         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
49730 2011-03-25  Bruno Haible  <bruno@clisp.org>
49732         unictype/category-byname: Recognize long names as well.
49733         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
49734         a long name.
49735         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
49736         unictype/categ_byname.h.
49737         (UC_CATEGORY_INDEX_*): New enumeration values.
49738         (uc_general_category_byname): Use uc_general_category_lookup and
49739         convert from index to value.
49740         * lib/unictype/categ_byname.gperf: New file.
49741         * modules/unictype/category-byname (Files): Add
49742         lib/unictype/categ_byname.gperf.
49743         (Depends-on): Add gperf.
49744         (Makefile.am): Add rule for generating unictype/categ_byname.h.
49745         * tests/unictype/test-categ_byname.c (main): Test the recognition of
49746         long names.
49748         Tests for module 'unictype/category-longname'.
49749         * modules/unictype/category-longname-tests: New file.
49750         * tests/unictype/test-categ_longname.c: New file.
49752         New module 'unictype/category-longname'.
49753         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
49754         * lib/unictype/categ_longname.c: New file.
49755         * modules/unictype/category-longname: New file.
49756         * modules/unictype/category-all (Depends-on): Add it.
49758 2011-03-25  Bruno Haible  <bruno@clisp.org>
49760         Tests for module 'unictype/category-LC'.
49761         * modules/unictype/category-LC-tests: New file.
49762         * tests/unictype/test-categ_LC.c: New file, automatically generated.
49764         New module 'unictype/category-LC'.
49765         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
49766         (UC_CATEGORY_LC): New declaration.
49767         (UC_CASED_LETTER): New macro.
49768         * lib/gen-uni-tables.c (is_category_LC): New function.
49769         (output_categories): Also handle category LC.
49770         (UC_CATEGORY_MASK_LC): New enumeration value.
49771         (general_category_byname): Also handle category LC.
49772         * lib/unictype/categ_LC.c: New file.
49773         * lib/unictype/categ_LC.h: New file, automatically generated.
49774         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
49775         category LC.
49776         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
49777         * modules/unictype/category-LC: New file.
49778         * modules/unictype/category-byname (Depends-on): Add
49779         unictype/category-LC.
49780         * modules/unictype/category-all (Depends-on): Likewise.
49782 2011-03-25  Eric Blake  <eblake@redhat.com>
49784         xmalloc: revert yesterday's regression
49785         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
49786         realloc's underlying behavior (allowing allocation of zero-size
49787         objects, especially if malloc-gnu is also in use).
49789 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
49791         maint.mk: add missing version to VC-tag
49792         * top/maint.mk: git tag was missing actual tag name; add it.
49794         valgrind: do leak checking, and exit with code 1 on error (not 0)
49795         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
49796         to VALGRIND.
49798 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
49800         posix-modules: say what it does.
49801         * posix-modules: Add a line to the --help output saying what it does.
49803 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
49805         xmalloc: Do not leak if underlying realloc is C99 compatible.
49806         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
49807         This avoids a leak on C99-based systems.  See
49808         <http://lists.gnu.org/r/bug-gnulib/2011-03/msg00243.html>.
49810 2011-03-24  Eric Blake  <eblake@redhat.com>
49812         realloc: document portability problem
49813         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
49814         passing 0 size to realloc.
49816 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
49818         doc: update users.txt
49819         * users.txt: Add cvsps, tmpwatch
49821 2011-03-23  Matt Rice  <ratmice@gmail.com>
49823         doc: update users.txt
49824         * users.txt: Add gdb.
49826 2011-03-23  Jim Meyering  <meyering@redhat.com>
49828         doc: update users.txt
49829         Looking through matches up to the following URL (there are still
49830         several more pages), I found several projects that use gnulib:
49831         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
49832         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
49833         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
49835 2011-03-22  Bruno Haible  <bruno@clisp.org>
49837         unictype/bidi*: Rename functions.
49838         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
49839         uc_bidi_class, uc_is_bidi_class): New declarations.
49840         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
49841         uc_bidi_category_byname.
49842         (uc_bidi_category_byname): New function.
49843         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
49844         u_bidi_category_name.
49845         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
49846         (uc_bidi_category_name): New function.
49847         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
49848         uc_bidi_category.
49849         (uc_bidi_category): New function.
49850         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
49851         uc_is_bidi_category. Invoke uc_bidi_class.
49852         (uc_is_bidi_category): New function.
49853         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
49854         instead of uc_bidi_category_byname.
49855         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
49856         instead of uc_bidi_category_name.
49857         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
49858         uc_bidi_category.
49859         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
49860         instead of uc_is_bidi_category.
49862 2011-03-21  Bruno Haible  <bruno@clisp.org>
49864         New module 'unictype/joininggroup-all'.
49865         * modules/unictype/joininggroup-all: New file.
49867         Tests for module 'unictype/joininggroup-of'.
49868         * modules/unictype/joininggroup-of-tests: New file.
49869         * tests/unictype/test-joininggroup_of.c: New file.
49870         * tests/unictype/test-joininggroup_of.h: New file, automatically
49871         generated by gen-uni-tables.
49873         New module 'unictype/joininggroup-of'.
49874         * modules/unictype/joininggroup-of: New file.
49875         * lib/unictype/joininggroup_of.c: New file.
49876         * lib/unictype/joininggroup_of.h: New file, automatically generated by
49877         gen-uni-tables.
49879         Tests for module 'unictype/joininggroup-byname'.
49880         * modules/unictype/joininggroup-byname-tests: New file.
49881         * tests/unictype/test-joininggroup_byname.c: New file.
49883         New module 'unictype/joininggroup-byname'.
49884         * modules/unictype/joininggroup-byname: New file.
49885         * lib/unictype/joininggroup_byname.c: New file.
49886         * lib/unictype/joininggroup_byname.gperf: New file.
49888         Tests for module 'unictype/joininggroup-name'.
49889         * modules/unictype/joininggroup-name-tests: New file.
49890         * tests/unictype/test-joininggroup_name.c: New file.
49892         New module 'unictype/joininggroup-name'.
49893         * modules/unictype/joininggroup-name: New file.
49894         * lib/unictype/joininggroup_name.c: New file.
49895         * lib/unictype/joininggroup_name.h: New file.
49897         New module 'unictype/joiningtype-all'.
49898         * modules/unictype/joiningtype-all: New file.
49900         Tests for module 'unictype/joiningtype-of'.
49901         * modules/unictype/joiningtype-of-tests: New file.
49902         * tests/unictype/test-joiningtype_of.c: New file.
49903         * tests/unictype/test-joiningtype_of.h: New file, automatically
49904         generated by gen-uni-tables.
49906         New module 'unictype/joiningtype-of'.
49907         * modules/unictype/joiningtype-of: New file.
49908         * lib/unictype/joiningtype_of.c: New file.
49909         * lib/unictype/joiningtype_of.h: New file, automatically generated by
49910         gen-uni-tables.
49912         Tests for module 'unictype/joiningtype-byname'.
49913         * modules/unictype/joiningtype-byname-tests: New file.
49914         * tests/unictype/test-joiningtype_byname.c: New file.
49916         New module 'unictype/joiningtype-byname'.
49917         * modules/unictype/joiningtype-byname: New file.
49918         * lib/unictype/joiningtype_byname.c: New file.
49920         Tests for module 'unictype/joiningtype-name'.
49921         * modules/unictype/joiningtype-name-tests: New file.
49922         * tests/unictype/test-joiningtype_name.c: New file.
49924         New module 'unictype/joiningtype-name'.
49925         * modules/unictype/joiningtype-name: New file.
49926         * lib/unictype/joiningtype_name.c: New file.
49928         unictype: Add support for Arabic shaping properties.
49929         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
49930         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
49931         declarations.
49932         (UC_JOINING_GROUP_*): New enumeration values.
49933         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
49934         declarations.
49935         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
49936         (unicode_joining_type): New variable.
49937         (UC_JOINING_GROUP_*): New enumeration values.
49938         (unicode_joining_group): New variable.
49939         (fill_arabicshaping, joining_type_as_c_identifier,
49940         output_joining_type_test, output_joining_type,
49941         joining_group_as_c_identifier, output_joining_group_test,
49942         output_joining_group): New functions.
49943         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
49944         fill_arabicshaping and output_joining_type_test, output_joining_type,
49945         output_joining_group_test, output_joining_group.
49946         Reported by Simon Josefsson.
49948 2011-03-21  Jim Meyering  <meyering@redhat.com>
49950         strftime: fix a bug in yesterday's change
49951         * lib/strftime.c (add): Accommodate width's initial value of -1.
49952         Otherwise, nstrftime would copy uninitialized data into
49953         the result buffer.
49955 2011-03-21  Jim Meyering  <meyering@redhat.com>
49957         tests: add strftime-tests module
49958         * tests/test-strftime.c: New file.
49959         * modules/strftime-tests: New module.
49961 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
49963         strftime: don't assume a byte count fits in 'int'
49964         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
49965         found this problem by static analysis, using gcc -Wstrict-overflow
49966         (GCC 4.5.2, x86-64).  This reported an optimization that depended
49967         on an integer overflow having undefined behavior, but it turns out
49968         that the argument is a size, which might not fit in 'int' anyway,
49970 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
49972         stdio: don't require ignore_value around fwrite
49974         This patch works around libc bug 11959
49975         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
49976         Without this patch, applications must often write
49977         ignore_value (fwrite (...)) even though the ignore_value is
49978         not helpful here.  It's common to write many objects, using
49979         fwrite/printf/etc., and then use ferror to detect output error.
49981         I considered making this patch optional, but decided against it,
49982         because libc is obviously being inconsistent here: there is no
49983         reason libc should insist that user code must inspect fwrite
49984         return's value without also insisting that it inspect printf's,
49985         putchar's, etc.  If user code wants to have a strict style where
49986         all these functions' values are checked (so that ferror need not
49987         be checked), we could add support for that style in a new gnulib
49988         module, but in the meantime it's better to be consistent and to
49989         support common usage.
49991         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
49992         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
49993         that we are compiling in checking mode, and if not C++, and
49994         if not already wrapping fwrite for some other reason.
49995         (fwrite): #define to rpl_fwrite if the latter is defined.
49997 2011-03-20  Bruno Haible  <bruno@clisp.org>
49999         verror: Fix compilation error introduced on 2011-02-13.
50000         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
50001         instead of __attribute__.
50002         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50004 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
50005             Bruno Haible  <bruno@clisp.org>
50007         socklen: do not depend on sys_socket
50008         While trying to modify Emacs to use gnulib's socklen module,
50009         I discovered a circular dependency: socklen depends on sys_socket
50010         and vice versa.  Emacs can use socklen, but it does not need
50011         sys_socket because it has its own substitute for sys/socket.h.
50012         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
50013         gl_TYPE_SOCKLEN_T.
50014         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
50015         gl_PREREQ_SYS_H_SOCKET.
50016         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
50017         gl_PREREQ_SYS_H_SOCKET.
50018         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
50019         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
50020         * modules/socklen (Depends-on): Do not depend on sys_socket.
50021         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
50023 2011-03-20  Jim Meyering  <meyering@redhat.com>
50025         maint.mk: sort file names *after* new transformation
50026         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
50027         prefix would have led to an unwarranted failure in GNU parted.
50028         Sort after that transformation.
50030 2011-03-19  Jim Meyering  <meyering@redhat.com>
50032         maint.mk: fix po-file syntax-check rule
50033         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
50034         Patch by Bruno Haible.
50036 2011-03-19  Bruno Haible  <bruno@clisp.org>
50038         socklen: Update comment.
50039         * m4/socklen.m4: Update comment about platforms.
50041 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
50042             Bruno Haible  <bruno@clisp.org>
50044         inet_ntop, inet_pton: Simplify.
50045         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
50046         documented to provide socklen_t and we already depend on sys_socket.
50047         * modules/inet_pton (Depends-on): Likewise.
50048         * lib/arpa_inet.in.h: Adjust comment.
50050 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
50051             Bruno Haible  <bruno@clisp.org>
50053         netdb: Simplify.
50054         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
50055         documented to provide socklen_t and we already depend on sys_socket.
50056         * lib/netdb.in.h: Adjust comment.
50058 2011-03-19  Bruno Haible  <bruno@clisp.org>
50060         sys_socket, netdb: Document problem with socklen_t.
50061         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
50062         platforms.
50063         * doc/posix-headers/netdb.texi: Likewise.
50065 2011-03-18  Eric Blake  <eblake@redhat.com>
50067         maint.mk: let po check work in VPATH build
50068         * top/maint.mk (po_file): Allow cfg.mk override.
50069         (sc_po_check): Allow VPATH use.
50070         Reported by Jiri Denemark.
50072 2011-03-16  Jim Meyering  <meyering@redhat.com>
50074         maint.mk: allow fine-grained syntax-check exclusion via Make variables
50075         Before, you would have had to create one .x-sc_ file per rule in order
50076         to exempt offending files.  Now, you may instead use a Make variable --
50077         usually defined in cfg.mk -- whose name identifies the affected rule.
50078         * top/maint.mk (_sc_excl): Define.
50079         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
50080         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
50082 2011-03-13  Bruno Haible  <bruno@clisp.org>
50084         ignore-value tests: Avoid warnings.
50085         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
50086         empty for gcc < 3.4.
50088 2011-03-13  Bruno Haible  <bruno@clisp.org>
50090         passfd: Fix link error on Solaris.
50091         * modules/passfd (Description): Correct.
50092         (Depends-on): Add socketlib.
50093         (Link): New section.
50094         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
50096 2011-03-13  Bruno Haible  <bruno@clisp.org>
50098         passfd: Fix link error on AIX 5.2.
50099         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
50101 2011-03-13  Bruno Haible  <bruno@clisp.org>
50103         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
50104         * lib/sys_socket.in.h: Include <stddef.h>.
50105         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
50106         CMSG_FIRSTHDR. Remove unused variable.
50108 2011-03-13  Bruno Haible  <bruno@clisp.org>
50110         passfd: Fix compilation error on OpenBSD.
50111         * lib/passfd.c: Include <sys/uio.h>.
50113 2011-03-13  Bruno Haible  <bruno@clisp.org>
50115         passfd test: Fix warnings.
50116         * tests/test-passfd.c: Include <sys/wait.h>.
50117         (main): Fix typo.
50119 2011-03-13  Bruno Haible  <bruno@clisp.org>
50121         passfd module, part 4, tweaks.
50122         * tests/test-passfd.c: Reorder includes.
50123         (main): Fix perror and printf calls.
50125 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
50127         passfd module, part 4.
50128         * modules/passfd-tests: New file.
50129         * tests/test-passfd.c: New file.
50131 2011-03-13  Jim Meyering  <meyering@redhat.com>
50133         Makefile: rely on GNU make; derive syntax-check rule names
50134         Rather than requiring that each sc_ rule be listed as a dependent
50135         of "check", use features of GNU make to derive the list.
50136         * Makefile (syntax-check-rules): Define.
50137         (check): Depend on the new variable, not the hard-coded list.
50139 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
50140             Bruno Haible  <bruno@clisp.org>
50142         passfd module, part 3.
50143         * lib/passfd.h (recvfd): Add a flags argument.
50144         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
50145         (recvfd): Add a flags argument.
50146         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
50147         exists.
50148         * modules/passfd (Depends-on): Add cloexec.
50149         Suggested by Eric Blake.
50151 2011-03-13  Bruno Haible  <bruno@clisp.org>
50153         passfd module, part 2, tweaks.
50154         * modules/passfd (Files): Reorder.
50155         (Depends-on): Remove errno.
50156         (Include): Remove <sys/socket.h>, <sys/un.h>.
50157         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
50158         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
50159         specification header. Include <sys/socket.h> always. Don't include
50160         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
50161         (sendfd): Clarify that it sets errno when it fails.
50162         (recvfd): Fix specification.
50164 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
50166         passfd module, part 2.
50167         * modules/passfd: New file.
50168         * lib/passfd.h: New file.
50169         * lib/passfd.c: New file.
50171 2011-03-12  Bruno Haible  <bruno@clisp.org>
50173         wcswidth, mbswidth: Avoid integer overflow.
50174         * lib/wcswidth.c: Include <limits.h>.
50175         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
50176         * lib/mbswidth.c: Include <limits.h>.
50177         (mbsnwidth): Avoid 'int' overflow.
50178         Reported by Jim Meyering.
50180 2011-03-12  Bruno Haible  <bruno@clisp.org>
50182         futimens, utimensat: Avoid endless recursion on Solaris 10.
50183         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
50184         Solaris.
50185         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
50186         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
50188 2011-03-11  Jim Meyering  <meyering@redhat.com>
50190         maint.mk: relax a regexp to accommodate other formatting styles
50191         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
50192         between "ngettext" and the following "(".
50194 2011-03-11  Pádraig Brady  <P@draigBrady.com>
50196         maint.mk: suppress a false positive warning
50197         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
50198         diagnostics are marked with ngettext.
50200 2011-03-10  Eric Blake  <eblake@redhat.com>
50202         wchar: add explicit dependencies, for Tru64
50203         * modules/mbmemcasecoll (Depends-on): Add wchar.
50204         * modules/mbtowc (Depends-on): Likewise.
50205         * modules/vasnprintf (Depends-on): Likewise.
50206         * modules/unistdio/u-printf-args (Depends-on): Likewise.
50207         * modules/wctomb (Depends-on): Likewise.
50208         Reported by Peter O'Gorman.
50210 2011-03-08  Bruno Haible  <bruno@clisp.org>
50212         passfd module, part 1, tweaks.
50213         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
50214         Improve indentation. Improve AC_MSG_CHECKING messages.
50215         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
50216         gl_SOCKET_FAMILIES.
50218 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
50220         passfd module, part 1.
50221         * m4/afunix.m4: New file.
50222         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
50223         sockets.
50225 2011-03-08  Bruno Haible  <bruno@clisp.org>
50227         regex-quote: New API.
50228         * lib/regex-quote.h: Include <stdbool.h>.
50229         (struct regex_quote_spec): New type.
50230         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
50231         New declarations.
50232         (regex_quote_length, regex_quote_copy, regex_quote): Take a
50233         'const struct regex_quote_spec *' argument.
50234         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
50235         (pcre_special): New constant.
50236         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
50237         New functions.
50238         (regex_quote_length, regex_quote_copy, regex_quote): Take a
50239         'const struct regex_quote_spec *' argument.
50240         * modules/regex-quote (Depends-on): Add stdbool.
50241         * tests/test-regex-quote.c (check): Update for new API. Add test for
50242         anchored results.
50243         * NEWS: Mention the API change.
50244         Reported by Reuben Thomas and Eric Blake.
50246 2011-03-06  Bruno Haible  <bruno@clisp.org>
50248         regex-quote: Fix creation of POSIX extended regular expressions.
50249         * lib/regex-quote.c (ere_special): Add grouping and alternation
50250         operators.
50252 2011-03-05  Bruno Haible  <bruno@clisp.org>
50254         doc: Improve doc regarding autopoint vs. gnulib.
50255         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
50256         disable autopoint while running autoreconf.
50257         Suggested by Ralf Wildenhues.
50259 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50261         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
50262         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
50264 2011-03-03  Bruce Korb  <bkorb@gnu.org>
50266         parse-duration: remove xalloc.h dependency
50267         * lib/parse-duration.c (parse_period): handle NULL return from
50268         strdup instead of calling xstrdup().
50269         * modules/parse-duration: remove "xalloc" dependency
50271 2011-03-03  Matthew Booth  <mbooth@redhat.com>
50273         bootstrap: honor m4_base when running aclocal
50274         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
50276 2011-03-02  Jim Meyering  <meyering@redhat.com>
50278         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
50279         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
50280         on request from Matt Booth.
50282 2011-03-01  Eric Blake  <eblake@redhat.com>
50284         test-link: work on Hurd
50285         * tests/test-link.h (test_link): Hurd rejects linking directories
50286         with EISDIR instead of the POSIX-mandated EPERM.
50288 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
50290         stdio: simplify by moving files to printf-posix, sigpipe
50291         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
50292         since this symbol is needed only if printf is replaced.
50293         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
50294         Require gl_ASM_SYMBOL_PREFIX.
50295         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
50296         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
50297         (Depends-on): Add 'raise'.
50298         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
50299         * modules/stdio (Files): Remove lib/stdio-write.c,
50300         m4/asm-underscore.m4.
50301         (Depends-on): Remove 'raise'.
50303         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
50304         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
50305         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
50306         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
50308 2011-02-28  Bruno Haible  <bruno@clisp.org>
50310         localcharset: Assume ANSI C behaviour of free().
50311         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
50312         calling free().
50313         Suggested by Simon Josefsson <simon@josefsson.org>.
50315 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
50316             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
50317             Bruno Haible  <bruno@clisp.org>  (tiny change)
50319         On Cygwin, use /proc file system instead of win32 API.
50320         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
50321         Win32 file names.
50322         (DllMain): Simplify by removing Cygwin specific code.
50323         (find_shared_library_fullname): Use Linux specific implementation also
50324         for Cygwin.
50325         (get_shared_library_fullname): Update accordingly.
50326         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
50327         Win32 file names.
50328         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
50329         Cygwin specific code.
50331 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
50332             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
50334         Fix OpenMP flag detection for various Fortran compilers.
50335         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
50336         OpenMP-conditional compilation construct, to force compile
50337         failure with missing OpenMP flag.
50338         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
50340 2011-02-25  Eric Blake  <eblake@redhat.com>
50342         strstr: expand test coverage
50343         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
50344         compilation.
50345         * tests/test-memmem.c (main): Duplicate tests.
50346         * tests/test-strcasestr.c (main): Likewise.
50347         * tests/test-c-strcasestr.c (main): Likewise.
50349 2011-02-25  Jim Meyering  <meyering@redhat.com>
50351         maint.mk: detect missing-NL-at-EOF, too
50352         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
50353         it also detects when a file lacks a newline at EOF.
50354         (require_exactly_one_NL_at_EOF_): Renamed from
50355         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
50356         since people may well have .x-sc_... file names tied to the
50357         existing name.  Suggested by Eric Blake.
50359 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
50361         dirname: move m4/dos.m4 functionality into lib/dosname.h
50363         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
50364         extracts symbols from it, puts them into config.h; but it's much
50365         easier to use the symbols directly.  filename.h already does this,
50366         but it disagrees with dos.m4 in some respects.  This patch
50367         introduces a different include file dosname.h that packages up
50368         dos.m4, and then later we can work on merging filename.h and
50369         dosname.h.  Applications that need only the easy-to-configure
50370         symbols should consider including dosname.h rather than dirname.h.
50371         * NEWS: Mention incompatible changes.
50372         * m4/dos.m4: Remove.
50373         * lib/dosname.h, modules/dosname: New files.
50374         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
50375         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
50376         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
50377         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
50378         Include dosname.h, not dirname.h.
50379         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
50380         Include dosname.h, for definitions of symbols like ISSLASH
50381         that used to be in config.h.
50382         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
50383         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
50384         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
50385         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
50386         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
50387         * modules/rmdir (Files): Likewise.
50388         * modules/stat (Files): Likewise.
50389         * modules/unlink (Files): Likewise.
50390         * modules/dirname-lgpl (Depends-on): Add dosname.
50391         * modules/lstat (Depends-on): Likewise.
50392         * modules/openat (Depends-on): Likewise.
50393         * modules/rmdir (Depends-on): Likewise.
50394         * modules/savewd (Depends-on): Likewise.
50395         * modules/stat (Depends-on): Likewise.
50396         * modules/unlink (Depends-on): Likewise.
50397         * modules/openat (Depends-on): Remove dirname-lgpl.
50398         * modules/savewd (Depends-on): Likewise.
50399         * tests/test-dirname.c: Do not use removed symbols like
50400         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
50401         the remaining symbols, e.g., ISSLASH ('\\').
50403 2011-02-25  Eric Blake  <eblake@redhat.com>
50405         strstr: revert patches that introduced bug and pessimization
50406         * lib/str-two-way.h: Add another reference.
50407         (two_way_short_needle, two_way_long_needle): Revert changes from
50408         2011-02-24; they pessimize search speed.
50409         (critical_factorization): Partially revert changes from
50410         2010-06-22; they violate the requirement that the left half of the
50411         needle be smaller than the period of the needle.
50413 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
50415         filenamecat: remove unnecessary dependency on dirname-lgpl
50416         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
50417         is no direct dependency, just an indirect one via filenamecat-lgpl.
50419         remove: remove unnecessary use of m4/dos.m4
50420         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
50421         * modules/remove (FILES): Remove m4/dos.m4.
50423         * lib/openat-proc.c: Don't include dirname.h; not needed.
50425         backupfile: remove unnecessary use of m4/dos.m4
50426         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
50427         of its symbols are used by the backupfile code.  backupfile.c does
50428         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
50429         for the rare case of programs that want all their backup file
50430         names to live within 8+3 limits, and dos.m4 doesn't address that.
50431         * modules/backupfile (Files): Remove m4/dos.m4.
50433 2011-02-24  Jim Meyering  <meyering@redhat.com>
50435         strstr: fix a bug whereby strstr would mistakenly return NULL
50436         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
50437         in period calculation.
50438         (two_way_long_needle): Likewise.
50439         The original problem was reported by Mike Stump in
50440         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
50441         Ralf Wildenhues provided the short needle and haystack.
50442         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
50443         Add a more involved test to trigger the bug in two_way_long_needle.
50445 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
50447         gnulib-tool: remove use of bold display in help screen
50448         * gnulib-tool (func_usage): Do not use bold display anymore in the
50449         help screen.  That was just meant to be a temporary emphasis for a
50450         backward-incompatible change.
50452 2011-02-23  Bruno Haible  <bruno@clisp.org>
50454         Fix misindentation of preprocessor directives.
50455         * lib/argp-namefrob.h: Reindent preprocessor directives.
50456         * lib/getopt_int.h (struct _getopt_data): Likewise.
50457         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
50458         * lib/vasnprintf.c (decode_long_double): Likewise.
50459         * tests/test-argmatch.c: Insert blank lines, for clarity.
50460         * tests/test-exclude.c: Likewise.
50462 2011-02-22  Bruno Haible  <bruno@clisp.org>
50464         ioctl: Fix for MacOS X in 64-bit mode.
50465         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
50466         value.
50467         Suggested by Eric Blake.
50468         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
50470 2011-02-22  Jim Meyering  <meyering@redhat.com>
50472         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
50473         * Makefile (sc_cpp_indent_check): Don't limit the check to files
50474         in lib/.
50476 2011-02-22  Eric Blake  <eblake@redhat.com>
50478         maint: avoid any CDPATH issue
50479         * Makefile (sc_cpp_indent_check): Anchor cd argument.
50481         maint: adjust cpp indentation for my modules, as well
50482         * Makefile (sc_cpp_indent_check): Add my name.
50483         * lib/fbufmode.c: Filter through cppi.
50484         * lib/fpurge.c: Likewise.
50485         * lib/freadable.c: Likewise.
50486         * lib/freading.c: Likewise.
50487         * lib/fwritable.c: Likewise.
50488         * lib/fwriting.c: Likewise.
50489         * lib/sigaction.c: Likewise.
50491 2011-02-22  Jim Meyering  <meyering@redhat.com>
50493         maint: adjust cpp indentation to reflect nesting depth
50494         I.e., in a block of code that begins with an unnested "#if",
50495         put one space between the "#" in column 1 and following token.
50496         For example,
50497         -#include <sys/vfs.h>
50498         +# include <sys/vfs.h>
50499         Do this only in .c files that are part of a module I maintain.
50500         * lib/linkat.c: Filter through cppi.
50501         * lib/nanosleep.c: Likewise.
50502         * lib/openat.c: Likewise.
50503         * lib/openat-die.c: Likewise.
50504         * lib/dup3.c: Likewise.
50505         * lib/fchownat.c: Likewise.
50506         * lib/flock.c: Likewise.
50507         * lib/fsync.c: Likewise.
50508         * lib/fts.c: Likewise.
50509         * lib/getpass.c: Likewise.
50510         * lib/gettimeofday.c: Likewise.
50511         * lib/userspec.c: Likewise.
50512         * Makefile (sc_cpp_indent_check): New rule, to check this.
50514 2011-02-22  Bruno Haible  <bruno@clisp.org>
50516         New module 'wctomb'.
50517         * lib/stdlib.in.h (wctomb): New declaration.
50518         * lib/wctomb.c: New file.
50519         * lib/wctomb-impl.h: New file.
50520         * m4/wctomb.m4: New file.
50521         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
50522         REPLACE_WCTOMB.
50523         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
50524         REPLACE_WCTOMB.
50525         * modules/wctomb: New file.
50526         * tests/test-stdlib-c++.cc: Test signature of wctomb.
50527         * doc/posix-functions/wctomb.texi: Mention the new module.
50528         * modules/wctob (Depends-on): Add wctomb.
50530 2011-02-22  Bruno Haible  <bruno@clisp.org>
50532         New module 'mbtowc'.
50533         * lib/stdlib.in.h (mbtowc): New declaration.
50534         * lib/mbtowc.c: New file.
50535         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
50536         * m4/mbtowc.m4: New file.
50537         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
50538         REPLACE_MBTOWC.
50539         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
50540         REPLACE_MBTOWC.
50541         * modules/mbtowc: New file.
50542         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
50543         * doc/posix-functions/mbtowc.texi: Mention the new module.
50544         * modules/btowc (Depends-on): Add mbtowc.
50546 2011-02-22  Bruno Haible  <bruno@clisp.org>
50548         wcrtomb: Add more tests for native Windows platforms.
50549         * tests/test-wcrtomb-w32-1.sh: New file.
50550         * tests/test-wcrtomb-w32-2.sh: New file.
50551         * tests/test-wcrtomb-w32-3.sh: New file.
50552         * tests/test-wcrtomb-w32-4.sh: New file.
50553         * tests/test-wcrtomb-w32-5.sh: New file.
50554         * tests/test-wcrtomb-w32.c: New file.
50555         * modules/wcrtomb-tests (Files): Add them.
50556         (Makefile.am): Arrange to run these tests.
50557         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
50558         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
50560 2011-02-20  Bruno Haible  <bruno@clisp.org>
50562         wcrtomb: Enhance test.
50563         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
50565 2011-02-20  Bruno Haible  <bruno@clisp.org>
50567         mbrtowc: Tiny optimization.
50568         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
50570 2011-02-20  Jim Meyering  <meyering@redhat.com>
50572         test-exclude.c: remove unmatched #endif
50573         * tests/test-exclude.c: Remove stray #endif, left over from
50574         the change of a week ago.
50576 2011-02-19  Jim Meyering  <meyering@redhat.com>
50578         git-version-gen: skip "-dirty" check when appropriate
50579         * build-aux/git-version-gen: Don't run any git commands when the
50580         version string comes from .tarball-version.  Prior to this, we
50581         would run git update-index --refresh even from a just-unpacked
50582         tarball directory, and that could affect a .git/ directory in a
50583         parent of the build directory.  Reported by Mike Frysinger.
50585 2011-02-19  Bruno Haible  <bruno@clisp.org>
50587         unictype/property-byname: Reduce the size of the 'data' segment.
50588         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
50590 2011-02-19  Bruno Haible  <bruno@clisp.org>
50592         unictype/scripts: Reduce the size of the 'data' segment.
50593         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
50594         '%pic'.
50595         * lib/unictype/scripts_byname.gperf: Regenerated.
50597 2011-02-19  Bruno Haible  <bruno@clisp.org>
50599         stdint: Update documentation.
50600         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
50602 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
50604         stdint: omit redundant check for wchar.h
50605         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
50606         always tests whether wchar.h exists, so remove the now-redundant test.
50608 2011-02-18  Bruno Haible  <bruno@clisp.org>
50610         stdint: Cut dependency to module 'wchar'.
50611         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
50612         include the necessary prerequisites.
50613         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
50614         * modules/stdint (Depends-on): Remove wchar.
50615         (Makefile.am): Substitute HAVE_WCHAR_H.
50616         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
50618 2011-02-18  Eric Blake  <eblake@redhat.com>
50620         longlong: skip, rather than fail, on cross-compilation
50621         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
50622         when cross-compiling; regression from 2011-02-16.
50624 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
50626         * NEWS: Mention 2011-02-08 change to stdlib.
50628 2011-02-17  Bruno Haible  <bruno@clisp.org>
50630         getloadavg: Add comments about platforms.
50631         * m4/getloadavg.m4: Add comment.
50632         * lib/getloadavg.c: Likewise.
50634 2011-02-17  Bruno Haible  <bruno@clisp.org>
50636         getloadavg: Fix link error on Solaris 2.6.
50637         * modules/getloadavg (Link): New section.
50638         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
50639         linking test-getloadavg.
50640         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
50641         getloadavg.
50643 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
50645         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
50646         It was 'int', but this doesn't match the IRIX 6.5 manual.
50647         Suggested by Bruno Haible in
50648         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00207.html>.
50650 2011-02-17  Bruno Haible  <bruno@clisp.org>
50652         havelib: Fix comments.
50653         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
50654         change.
50656 2011-02-17  Bruno Haible  <bruno@clisp.org>
50658         havelib: Update config.rpath.
50659         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
50661 2011-02-17  Bruno Haible  <bruno@clisp.org>
50663         getloadavg test: Add some plausibility checks.
50664         * tests/test-getloadavg.c (check_avg): Print a warning when the value
50665         is improbable.
50667 2011-02-16  Eric Blake  <eblake@redhat.com>
50669         maintainer-makefile: make syntax-check a no-op from tarballs
50670         * top/maint.mk (no-vc-detected): New rule.
50671         (local-checks-available): Use it to avoid hanging if someone tries
50672         'make syntax-check' from a tarball.  Also append to any non-syntax
50673         checks already defined in cfg.mk.
50675 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
50677         longlong: tune, particularly for common case of c99
50679         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
50680         or running anything if c99, or if unsigned long long int does not
50681         work.  In either case, we know the answer without further tests.
50682         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
50683         it at most once, and use its results for both long long int and
50684         unsigned long long int.  This is more likely to be efficient in
50685         the common case where the program wants to check for both long
50686         long int and unsigned long long int.
50687         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
50688         since the answer is already known.
50690 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
50692         getloadavg: set errno
50693         * lib/getloadavg.c: Set errno when returning -1.  If no other
50694         error number looks appropriate, set it to ENOSYS if the getloadavg
50695         looks like it can't possibly ever work, ENOTSUP otherwise.
50696         Suggested by Bruno Haible in
50697         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00187.html>.
50699         getloadavg: trim unused parts and speed up 'configure'
50700         * NEWS: Document this.
50701         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
50702         always compiled if getloadavg is absent.
50703         Move test code to ...
50704         * tests/test-getloadavg.c: New file, containing previous
50705         contents of test from lib/getloadavg.c.  It also contains
50706         suggestions by Bruno Haible in
50707         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00186.html>.
50708         * modules/getloadavg-tests: New file.
50709         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
50710         Do tests in the same order as they're needed for getloadavg.c.
50711         Omit setgid-related tests that generate symbols KMEM_GROUP,
50712         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
50713         Do only the tests that are needed to see whether the system has
50714         getloadavg, moving the other tests into ...
50715         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
50716         NLIST_NAME_UNION; nobody should be using it.  Do not define
50717         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
50718         relevant, as the user of this module shouldn't care how getloadavg
50719         is implemented.
50721         getloadavg: omit unused var
50722         * lib/getloadavg.c (getloadavg): Omit unused local variable.
50724 2011-02-15  Jim Meyering  <meyering@redhat.com>
50726         doc: update users.txt
50727         * users.txt: Update iwhd's URL.
50729 2011-02-13  Bruno Haible  <bruno@clisp.org>
50731         Consistent macro naming for macros that use GCC __attribute__.
50732         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
50733         _ATTRIBUTE_NONNULL_.
50734         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
50735         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
50736         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
50737         ATTRIBUTE_DEPRECATED.
50738         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
50739         ATTRIBUTE_NORETURN.
50740         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
50741         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
50742         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
50743         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
50744         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
50745         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
50746         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
50747         ATTRIBUTE_SENTINEL.
50748         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
50749         ATTRIBUTE_RETURN_CHECK.
50750         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
50751         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
50752         ATTRIBUTE_NORETURN.
50753         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
50754         Reported by Paul Eggert.
50756 2011-02-13  Bruno Haible  <bruno@clisp.org>
50758         Don't interfere with a program's definition of __attribute__.
50759         * lib/argp.h (__attribute__): Remove definition.
50760         (_GL_ATTRIBUTE_FORMAT): New macro.
50761         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
50762         * lib/argp-fmtstream.h (__attribute__): Remove definition.
50763         (_GL_ATTRIBUTE_FORMAT): New macro.
50764         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
50765         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
50766         GCC 3 or newer.
50767         * lib/error.h (__attribute__): Remove definition.
50768         (_GL_ATTRIBUTE_FORMAT): New macro.
50769         (error, error_at_line): Use it.
50770         * lib/hash.h (__attribute__): Remove definition.
50771         (ATTRIBUTE_WUR): Update definition. Define always.
50772         * lib/openat.h (__attribute__): Remove definition.
50773         (ATTRIBUTE_NORETURN): Update definition. Define always.
50774         * lib/sigpipe-die.h (__attribute__): Remove definition.
50775         (ATTRIBUTE_NORETURN): Update definition. Define always.
50776         * lib/vasnprintf.h (__attribute__): Remove definition.
50777         (_GL_ATTRIBUTE_FORMAT): New macro.
50778         (asnprintf, vasnprintf): Use it.
50779         * lib/xalloc.h (__attribute__): Remove definition.
50780         (ATTRIBUTE_NORETURN): Update definition. Define always.
50781         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
50782         * lib/xmemdup0.h (__attribute__): Remove definition.
50783         (ATTRIBUTE_NORETURN): Update definition. Define always.
50784         * lib/xprintf.h (__attribute__): Remove definition.
50785         (_GL_ATTRIBUTE_FORMAT): New macro.
50786         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
50787         * lib/xstrtol.h (__attribute__): Remove definition.
50788         (ATTRIBUTE_NORETURN): Update definition. Define always.
50789         * lib/xvasprintf.h (__attribute__): Remove definition.
50790         (_GL_ATTRIBUTE_FORMAT): New macro.
50791         (xasprintf, xvasprintf): Use it.
50792         * tests/test-argmatch.c (__attribute__): Remove definition.
50793         (ATTRIBUTE_NORETURN): Update definition. Define always.
50794         * tests/test-exclude.c (__attribute__): Remove definition.
50795         (ATTRIBUTE_NORETURN): Update definition. Define always.
50796         Reported by Paul Eggert.
50798 2011-02-13  Bruno Haible  <bruno@clisp.org>
50800         mbrtowc: Add more tests for native Windows platforms.
50801         * tests/test-mbrtowc-w32-1.sh: New file.
50802         * tests/test-mbrtowc-w32-2.sh: New file.
50803         * tests/test-mbrtowc-w32-3.sh: New file.
50804         * tests/test-mbrtowc-w32-4.sh: New file.
50805         * tests/test-mbrtowc-w32-5.sh: New file.
50806         * tests/test-mbrtowc-w32.c: New file.
50807         * modules/mbrtowc-tests (Files): Add them.
50808         (Makefile.am): Arrange to run these tests.
50809         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
50810         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
50812 2011-02-13  Bruno Haible  <bruno@clisp.org>
50814         mbrtowc: Work around native Windows bug.
50815         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
50816         guess when no suitable locale for testing was found.
50817         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
50819 2011-02-13  Bruno Haible  <bruno@clisp.org>
50821         mbsinit: Work around mingw bug.
50822         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
50823         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
50824         Windows.
50825         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
50827 2011-02-13  Bruno Haible  <bruno@clisp.org>
50829         mbsinit: Don't crash for a NULL argument.
50830         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
50831         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
50833 2011-02-13  Bruno Haible  <bruno@clisp.org>
50835         Don't interfere with a program's definition of __attribute__.
50836         * lib/stdio.in.h (__attribute__): Remove definition.
50837         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
50838         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
50839         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
50840         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
50841         * lib/string.in.h (__attribute__): Remove definition.
50842         Reported by Paul Eggert.
50844 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
50846         stdlib: don't get in the way of non-GCC __attribute__
50847         See thread starting at
50848         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00161.html>.
50849         Revert previous stdlib change, installing the following instead:
50850         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
50851         to get in the way of a non-GCC compiler that supports __attribute__.
50852         (_GL_ATTRIBUTE_RETURN): New macro.
50853         (_Exit): Use it instead of __attribute__.
50855 2011-02-12  Bruno Haible  <bruno@clisp.org>
50857         quotearg test: Avoid test failure on mingw.
50858         * tests/test-quotearg.sh: Convert the locale identifier from native
50859         Windows syntax to Unix syntax.
50861 2011-02-12  Bruno Haible  <bruno@clisp.org>
50863         setlocale: Prefer gnulib's override over libintl's override.
50864         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
50865         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
50866         GNULIB_defined_setlocale is set.
50868 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
50870         stdlib: support non-GCC __attribute__
50872         Fix a serious and tricky problem encountered when attempting to
50873         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
50874         5.5, but it crashed due to memory corruption on Solaris 10 with
50875         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
50876         bits that are otherwise zero.  This tagging is optional inside
50877         Emacs but is preferred and is used when __attribute__ ((__aligned
50878         (8))) works, as it does with both recent-enough GCC and with Sun C
50879         5.11.  However, Sun C 5.11 is not GCC and does not #define
50880         __GNUC__ and __GNUC_MINOR__.
50882         When I added the getloadavg module to Emacs, it brought in
50883         stdlib.in.h, which contained this fragment:
50885            #ifndef __attribute__
50886            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
50887            #  define __attribute__(Spec)   /* empty */
50888            # endif
50889            #endif
50891         When files that include <stdlib.h> were compiled with Sun C 5.11,
50892         the above code disabled __attribute__ ((__aligned (8))), which
50893         caused variables to not be properly aligned, which eventually led
50894         to the pointer corruption mentioned above.  (This was a bit hard
50895         to diagnose, unfortunately.)
50897         Several "#define __attribute__(X) /* empty */" code snippets need
50898         to be eradicated from Gnulib to work with non-GCC compilers that
50899         support __attribute__.  The Autoconf way to do this is to test for
50900         each kind of attribute that we want support for, and selectively
50901         enable that in source code.
50903         Fix this problem just for stdlib.h, by adding a test for the
50904         __noreturn__ attribute, and change stdlib.in.h to use that test
50905         when needed.  This technique can be easily generalized to the
50906         other *.in.h files and attributes, and a similar technique can be
50907         used for *.h and *.c files.  This patch is enough to solve the
50908         problem for Emacs + getloadavg, and I thought I'd publish it for
50909         feedback before undertaking further, similar fixes in other
50910         modules.
50912         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
50913         because it's not needed for stdlib.h.  It merely substitutes the
50914         value directly into stdlib.h.  We may well need to #define it, or
50915         similar symbols, for other modules, but it's nice to also have an
50916         option to not #define it for applications like Emacs that do not
50917         need it.
50919         * lib/stdlib.in.h (__attribute__): Do not #define.
50920         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
50921         be defined only if the _Exit module is also used.
50922         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
50923         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
50924         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
50925         platforms.
50926         * modules/_Exit (Files): Add m4/attribute.m4.
50927         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
50928         * m4/attribute.m4: New file.
50930 2011-02-12  Bruno Haible  <bruno@clisp.org>
50932         wcsrtombs: Work around bug on native Windows.
50933         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
50934         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
50935         instead of len.
50936         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
50938 2011-02-12  Bruno Haible  <bruno@clisp.org>
50940         mbsrtowcs: Work around bug on native Windows.
50941         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
50942         against mingw bug.
50943         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
50945 2011-02-12  Bruno Haible  <bruno@clisp.org>
50947         Avoid setlocale bugs in tests.
50948         * modules/btowc (Dependencies): Add setlocale.
50949         * modules/c-strcase (Dependencies): Likewise.
50950         * modules/mbmemcasecmp (Dependencies): Likewise.
50951         * modules/mbmemcasecoll (Dependencies): Likewise.
50952         * modules/mbrtowc (Dependencies): Likewise.
50953         * modules/mbscasecmp (Dependencies): Likewise.
50954         * modules/mbscasestr (Dependencies): Likewise.
50955         * modules/mbschr (Dependencies): Likewise.
50956         * modules/mbscspn (Dependencies): Likewise.
50957         * modules/mbsinit (Dependencies): Likewise.
50958         * modules/mbsncasecmp (Dependencies): Likewise.
50959         * modules/mbsnrtowcs (Dependencies): Likewise.
50960         * modules/mbspbrk (Dependencies): Likewise.
50961         * modules/mbspcasecmp (Dependencies): Likewise.
50962         * modules/mbsrchr (Dependencies): Likewise.
50963         * modules/mbsrtowcs (Dependencies): Likewise.
50964         * modules/mbsspn (Dependencies): Likewise.
50965         * modules/mbsstr (Dependencies): Likewise.
50966         * modules/nl_langinfo (Dependencies): Likewise.
50967         * modules/quotearg (Dependencies): Likewise.
50968         * modules/unicase/locale-language (Dependencies): Likewise.
50969         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
50970         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
50971         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
50972         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
50973         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
50974         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
50975         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
50976         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
50977         * modules/vasnprintf-posix (Dependencies): Likewise.
50978         * modules/wcrtomb (Dependencies): Likewise.
50979         * modules/wcsnrtombs (Dependencies): Likewise.
50980         * modules/wcsrtombs (Dependencies): Likewise.
50982 2011-02-12  Bruno Haible  <bruno@clisp.org>
50984         setlocale: Workaround native Windows bug.
50985         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
50986         succeeds but sets LC_CTYPE to "C", report a failure.
50987         * tests/test-setlocale2.sh: New file.
50988         * tests/test-setlocale2.c: New file.
50989         * modules/setlocale-tests (Files): Add the new files.
50990         (Makefile.am): Enable test-setlocale2.sh test.
50991         * doc/posix-functions/setlocale.texi: Mention workaround.
50993 2011-02-11  Bruno Haible  <bruno@clisp.org>
50995         Tests for module 'setlocale'.
50996         * modules/setlocale-tests: New file.
50997         * tests/test-setlocale1.sh: New file.
50998         * tests/test-setlocale1.c: New file.
51000         New module 'setlocale'.
51001         * lib/locale.in.h (setlocale): New declaration.
51002         * lib/setlocale.c: New file, based on
51003         gettext/gettext-runtime/intl/setlocale.c.
51004         * m4/setlocale.m4: New file.
51005         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
51006         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
51007         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
51008         REPLACE_SETLOCALE.
51009         * modules/setlocale: New file.
51010         * tests/test-locale-c++.cc: Test the declaration of setlocale.
51011         * doc/posix-functions/setlocale.texi: Mention the new module.
51013 2011-02-11  Bruno Haible  <bruno@clisp.org>
51015         Prepare for locale dependent tests on mingw.
51016         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
51017         because it has the wrong locale encoding.
51018         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
51019         French_France.1252 instead of "fr".
51020         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
51021         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
51022         because it has the wrong locale encoding.
51023         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
51024         native Windows, try Turkish_Turkey.65001.
51025         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
51026         Chinese_China.54936.
51028         Prepare for locale dependent tests on mingw.
51029         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
51030         differently.
51031         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
51032         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
51033         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
51034         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
51036 2011-02-11  Eric Blake  <eblake@redhat.com>
51038         strptime: avoid compiler warnings
51039         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
51040         compiler warnings about dead code.
51041         Reported by Daniel P. Berrange.
51043 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
51045         doc: update users.txt
51046         * users.txt: Add rcs.
51048 2011-02-10  John W. Eaton  <jwe@gnu.org>
51050         doc: update users.txt
51051         * users.txt: Add octave.
51053 2011-02-10  Jim Meyering  <meyering@redhat.com>
51055         doc: update users.txt
51056         * users.txt: Add iwhd.
51058 2011-02-09  Bruno Haible  <bruno@clisp.org>
51060         gnulib-tool: Make copyright notice adjustment more robust.
51061         * gnulib-tool (func_import): In sed_transform_main_lib_file,
51062         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
51063         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
51064         License".
51065         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
51067 2011-02-06  Bruno Haible  <bruno@clisp.org>
51069         New module 'towctrans'.
51070         * modules/towctrans: New file.
51071         * lib/wctype.in.h (towctrans): New declaration.
51072         * lib/towctrans.c: New file.
51073         * lib/towctrans-impl.h: New file.
51074         * m4/towctrans.m4: New file.
51075         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
51076         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
51077         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
51078         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
51079         * doc/posix-functions/towctrans.texi: Mention the new module.
51081 2011-02-06  Bruno Haible  <bruno@clisp.org>
51083         New module 'wctrans'.
51084         * modules/wctrans: New file.
51085         * lib/wctype.in.h (wctrans): New declaration.
51086         * lib/wctrans.c: New file.
51087         * lib/wctrans-impl.h: New file.
51088         * m4/wctrans.m4: New file.
51089         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
51090         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
51091         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
51092         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
51093         * doc/posix-functions/wctrans.texi: Mention the new module.
51095 2011-02-06  Bruno Haible  <bruno@clisp.org>
51097         New module 'iswctype'.
51098         * modules/iswctype: New file.
51099         * lib/wctype.in.h (iswctype): New declaration.
51100         * lib/iswctype.c: New file.
51101         * lib/iswctype-impl.h: New file.
51102         * m4/iswctype.m4: New file.
51103         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
51104         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
51105         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
51106         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
51107         * doc/posix-functions/iswctype.texi: Mention the new module and the
51108         HP-UX 11.00 problem.
51110 2011-02-06  Bruno Haible  <bruno@clisp.org>
51112         New module 'wctype'.
51113         * modules/wctype: Change to represent the wctype() substitute.
51114         * lib/wctype.in.h (wctype): New declaration.
51115         * lib/wctype.c: New file.
51116         * lib/wctype-impl.h: New file.
51117         * m4/wctype.m4: New file.
51118         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
51119         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
51120         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
51121         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
51122         * doc/posix-functions/wctype.texi: Mention the new module and the
51123         HP-UX 11.00 problem.
51125 2011-02-06  Bruno Haible  <bruno@clisp.org>
51127         wctype-h: Ensure wctype_t and wctrans_t are defined.
51128         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
51129         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
51130         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
51131         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
51132         HAVE_WCTRANS_T.
51133         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
51135 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
51137         flock: fix license typo
51139         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
51140         omitted.
51142 2011-02-08  Bruno Haible  <bruno@clisp.org>
51144         Split large sed scripts, for HP-UX sed.
51145         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
51146         to avoid HP-UX limit of 99 commands, in the near future.
51147         * modules/stdlib (Makefile.am): Likewise.
51148         * modules/unistd (Makefile.am): Likewise.
51149         * modules/wchar (Makefile.am): Likewise.
51150         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
51151         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
51152         <http://lists.gnu.org/r/bug-gnulib/2010-01/msg00216.html>.
51154 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
51155             Bruno Haible  <bruno@clisp.org>
51157         stdlib: improve random_r modularization
51158         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
51159         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
51160         you also need the random_r module to get this material right.
51161         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
51162         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
51163         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
51165 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
51167         stdlib: don't depend on stdint
51168         * lib/stdlib.in.h: Don't include <stdint.h> merely because
51169         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
51170         be independent of whether stdint.h is needed.
51171         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
51172         here, instead of ...
51173         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
51174         struct random_data should be using the random_r module, not just
51175         the stdlib module (which wouldn't make sense: what package needs
51176         just struct random_data without also needing random_r?).
51177         * modules/stdlib (Depends-on): Remove stdint.
51179         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
51180         See the thread rooted at
51181         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00090.html>.
51182         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
51183         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
51184         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
51185         __VMS)); previously it was always included (via fcntl--.h).
51186         (getloadavg): Do not use c_strtod.  Instead, approximate it by
51187         hand; this is good enough for load averages.  Also, do not use
51188         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
51189         flags directly if available and don't bother otherwise.  (Packages
51190         that need the extra reliability should use the modules that define
51191         these flags on older platforms that lack them.)
51192         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
51193         fcntl-safer.
51195 2011-02-08  Jim Meyering  <meyering@redhat.com>
51197         di-set.h, ino-map.h: add multiple-inclusion guard
51198         Technically, the guard is required only for ino-map.h, due to its
51199         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
51200         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
51201         * lib/ino-map.h: Likewise.
51203 2011-02-06  Bruno Haible  <bruno@clisp.org>
51205         iswblank: Ensure declaration on glibc systems.
51206         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
51207         * modules/iswblank (Dependencies): Add 'extensions'.
51208         * doc/posix-functions/iswblank.texi: Document the glibc problem.
51210 2011-02-06  Bruno Haible  <bruno@clisp.org>
51212         New module 'iswblank'.
51213         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
51214         * modules/iswblank: New file.
51215         * modules/wctype-h (Files): Remove lib/iswblank.c.
51216         (Makefile.am): Substitute GNULIB_ISWBLANK.
51217         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
51218         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
51219         (gl_WCTYPE_H_DEFAULTS): New macro.
51220         (gl_WCTYPE_H): Require it. Remove iswblank related code.
51221         * modules/iswblank-tests: New file.
51222         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
51223         * tests/test-wctype-h.c (main): Remove iswblank tests.
51224         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
51225         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
51226         of 'wctype-h'.
51227         * NEWS: Mention the change.
51228         * modules/mbchar (Depends-on): Add iswblank.
51230 2011-02-08  Bruno Haible  <bruno@clisp.org>
51232         di-set tests: Refactor.
51233         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
51234         unnecessary includes.
51235         (ASSERT): Remove macro.
51236         (main): Make C90 compliant by avoiding variable declaration after
51237         statement.
51238         * modules/di-set-tests (Files): Add tests/macros.h.
51240 2011-02-08  Bruno Haible  <bruno@clisp.org>
51242         ino-map tests: Refactor.
51243         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
51244         unnecessary includes.
51245         (ASSERT): Remove macro.
51246         (main): Make C90 compliant by avoiding variable declaration after
51247         statement.
51248         * modules/ino-map-tests (Files): Add tests/macros.h.
51250 2011-02-08  Jim Meyering  <meyering@redhat.com>
51252         di-set: add "const" to a cast
51253         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
51254         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
51256 2011-02-06  Bruno Haible  <bruno@clisp.org>
51258         Rename module 'wctype' to 'wctype-h'.
51259         * modules/wctype-h: Renamed from modules/wctype.
51260         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
51261         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
51262         (Files, Depends-on, Makefile.am): Update.
51263         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
51264         (Files, Makefile.am): Update.
51265         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
51266         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
51267         * doc/posix-headers/wctype.texi: Update.
51268         * doc/posix-functions/iswalnum.texi: Update.
51269         * doc/posix-functions/iswalpha.texi: Update.
51270         * doc/posix-functions/iswblank.texi: Update.
51271         * doc/posix-functions/iswcntrl.texi: Update.
51272         * doc/posix-functions/iswdigit.texi: Update.
51273         * doc/posix-functions/iswgraph.texi: Update.
51274         * doc/posix-functions/iswlower.texi: Update.
51275         * doc/posix-functions/iswprint.texi: Update.
51276         * doc/posix-functions/iswpunct.texi: Update.
51277         * doc/posix-functions/iswspace.texi: Update.
51278         * doc/posix-functions/iswupper.texi: Update.
51279         * doc/posix-functions/iswxdigit.texi: Update.
51280         * doc/posix-functions/towlower.texi: Update.
51281         * doc/posix-functions/towupper.texi: Update.
51282         * NEWS: Mention the change.
51283         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
51284         * modules/mbchar (Dependencies): Likewise.
51285         * modules/mbswidth (Dependencies): Likewise.
51286         * modules/quotearg (Dependencies): Likewise.
51287         * modules/regex (Dependencies): Likewise.
51288         * modules/wcscasecmp (Dependencies): Likewise.
51289         * modules/wcsncasecmp (Dependencies): Likewise.
51290         * modules/wcwidth (Dependencies): Likewise.
51292 2011-02-06  Bruno Haible  <bruno@clisp.org>
51294         New module 'wcswidth'.
51295         * modules/wcswidth: New file.
51296         * lib/wchar.in.h (wcswidth): New declaration.
51297         * lib/wcswidth.c: New file.
51298         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
51299         * m4/wcswidth.m4: New file.
51300         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
51301         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
51302         REPLACE_WCSWIDTH.
51303         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
51304         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
51305         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
51306         * doc/posix-functions/wcswidth.texi: Mention the new module.
51308 2011-02-06  Bruno Haible  <bruno@clisp.org>
51310         New module 'wcstok'.
51311         * modules/wcstok: New file.
51312         * lib/wchar.in.h (wcstok): New declaration.
51313         * lib/wcstok.c: New file.
51314         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
51315         * m4/wcstok.m4: New file.
51316         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
51317         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
51318         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
51319         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
51320         * doc/posix-functions/wcstok.texi: Mention the new module.
51322 2011-02-06  Bruno Haible  <bruno@clisp.org>
51324         New module 'wcsstr'.
51325         * modules/wcsstr: New file.
51326         * lib/wchar.in.h (wcsstr): New declaration.
51327         * lib/wcsstr.c: New file.
51328         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
51329         * m4/wcsstr.m4: New file.
51330         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
51331         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
51332         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
51333         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
51334         * doc/posix-functions/wcsstr.texi: Mention the new module.
51336 2011-02-06  Bruno Haible  <bruno@clisp.org>
51338         New module 'wcspbrk'.
51339         * modules/wcspbrk: New file.
51340         * lib/wchar.in.h (wcspbrk): New declaration.
51341         * lib/wcspbrk.c: New file.
51342         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
51343         * m4/wcspbrk.m4: New file.
51344         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
51345         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
51346         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
51347         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
51348         * doc/posix-functions/wcspbrk.texi: Mention the new module.
51350 2011-02-06  Bruno Haible  <bruno@clisp.org>
51352         New module 'wcsspn'.
51353         * modules/wcsspn: New file.
51354         * lib/wchar.in.h (wcsspn): New declaration.
51355         * lib/wcsspn.c: New file.
51356         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
51357         * m4/wcsspn.m4: New file.
51358         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
51359         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
51360         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
51361         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
51362         * doc/posix-functions/wcsspn.texi: Mention the new module.
51364 2011-02-06  Bruno Haible  <bruno@clisp.org>
51366         New module 'wcscspn'.
51367         * modules/wcscspn: New file.
51368         * lib/wchar.in.h (wcscspn): New declaration.
51369         * lib/wcscspn.c: New file.
51370         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
51371         * m4/wcscspn.m4: New file.
51372         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
51373         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
51374         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
51375         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
51376         * doc/posix-functions/wcscspn.texi: Mention the new module.
51378 2011-02-06  Bruno Haible  <bruno@clisp.org>
51380         New module 'wcsrchr'.
51381         * modules/wcsrchr: New file.
51382         * lib/wchar.in.h (wcsrchr): New declaration.
51383         * lib/wcsrchr.c: New file.
51384         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
51385         * m4/wcsrchr.m4: New file.
51386         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
51387         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
51388         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
51389         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
51390         * doc/posix-functions/wcsrchr.texi: Mention the new module.
51392 2011-02-06  Bruno Haible  <bruno@clisp.org>
51394         New module 'wcschr'.
51395         * modules/wcschr: New file.
51396         * lib/wchar.in.h (wcschr): New declaration.
51397         * lib/wcschr.c: New file.
51398         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
51399         * m4/wcschr.m4: New file.
51400         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
51401         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
51402         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
51403         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
51404         * doc/posix-functions/wcschr.texi: Mention the new module.
51406 2011-02-06  Bruno Haible  <bruno@clisp.org>
51408         New module 'wcsdup'.
51409         * modules/wcsdup: New file.
51410         * lib/wchar.in.h (wcsdup): New declaration.
51411         * lib/wcsdup.c: New file.
51412         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
51413         * m4/wcsdup.m4: New file.
51414         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
51415         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
51416         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
51417         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
51418         * doc/posix-functions/wcsdup.texi: Mention the new module.
51420 2011-02-06  Bruno Haible  <bruno@clisp.org>
51422         New module 'wcsxfrm'.
51423         * modules/wcsxfrm: New file.
51424         * lib/wchar.in.h (wcsxfrm): New declaration.
51425         * lib/wcsxfrm.c: New file.
51426         * lib/wcsxfrm-impl.h: New file.
51427         * m4/wcsxfrm.m4: New file.
51428         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
51429         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
51430         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
51431         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
51432         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
51434 2011-02-06  Bruno Haible  <bruno@clisp.org>
51436         New module 'wcscoll'.
51437         * modules/wcscoll: New file.
51438         * lib/wchar.in.h (wcscoll): New declaration.
51439         * lib/wcscoll.c: New file.
51440         * lib/wcscoll-impl.h: New file.
51441         * m4/wcscoll.m4: New file.
51442         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
51443         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
51444         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
51445         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
51446         * doc/posix-functions/wcscoll.texi: Mention the new module.
51448 2011-02-06  Bruno Haible  <bruno@clisp.org>
51450         New module 'wcsncasecmp'.
51451         * modules/wcsncasecmp: New file.
51452         * lib/wchar.in.h (wcsncasecmp): New declaration.
51453         * lib/wcsncasecmp.c: New file.
51454         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
51455         * m4/wcsncasecmp.m4: New file.
51456         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
51457         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
51458         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
51459         HAVE_WCSNCASECMP.
51460         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
51461         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
51463 2011-02-06  Bruno Haible  <bruno@clisp.org>
51465         New module 'wcscasecmp'.
51466         * modules/wcscasecmp: New file.
51467         * lib/wchar.in.h (wcscasecmp): New declaration.
51468         * lib/wcscasecmp.c: New file.
51469         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
51470         * m4/wcscasecmp.m4: New file.
51471         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
51472         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
51473         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
51474         HAVE_WCSCASECMP.
51475         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
51476         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
51478 2011-02-05  Bruno Haible  <bruno@clisp.org>
51480         New module 'wcsncmp'.
51481         * modules/wcsncmp: New file.
51482         * lib/wchar.in.h (wcsncmp): New declaration.
51483         * lib/wcsncmp.c: New file.
51484         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
51485         * m4/wcsncmp.m4: New file.
51486         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
51487         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
51488         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
51489         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
51490         * doc/posix-functions/wcsncmp.texi: Mention the new module.
51492 2011-02-05  Bruno Haible  <bruno@clisp.org>
51494         New module 'wcscmp'.
51495         * modules/wcscmp: New file.
51496         * lib/wchar.in.h (wcscmp): New declaration.
51497         * lib/wcscmp.c: New file.
51498         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
51499         * m4/wcscmp.m4: New file.
51500         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
51501         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
51502         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
51503         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
51504         * doc/posix-functions/wcscmp.texi: Mention the new module.
51506 2011-02-05  Bruno Haible  <bruno@clisp.org>
51508         New module 'wcsncat'.
51509         * modules/wcsncat: New file.
51510         * lib/wchar.in.h (wcsncat): New declaration.
51511         * lib/wcsncat.c: New file.
51512         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
51513         * m4/wcsncat.m4: New file.
51514         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
51515         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
51516         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
51517         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
51518         * doc/posix-functions/wcsncat.texi: Mention the new module.
51520 2011-02-05  Bruno Haible  <bruno@clisp.org>
51522         New module 'wcscat'.
51523         * modules/wcscat: New file.
51524         * lib/wchar.in.h (wcscat): New declaration.
51525         * lib/wcscat.c: New file.
51526         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
51527         * m4/wcscat.m4: New file.
51528         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
51529         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
51530         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
51531         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
51532         * doc/posix-functions/wcscat.texi: Mention the new module.
51534 2011-02-05  Bruno Haible  <bruno@clisp.org>
51536         New module 'wcpncpy'.
51537         * modules/wcpncpy: New file.
51538         * lib/wchar.in.h (wcpncpy): New declaration.
51539         * lib/wcpncpy.c: New file.
51540         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
51541         * m4/wcpncpy.m4: New file.
51542         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
51543         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
51544         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
51545         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
51546         * doc/posix-functions/wcpncpy.texi: Mention the new module.
51548 2011-02-05  Bruno Haible  <bruno@clisp.org>
51550         New module 'wcsncpy'.
51551         * modules/wcsncpy: New file.
51552         * lib/wchar.in.h (wcsncpy): New declaration.
51553         * lib/wcsncpy.c: New file.
51554         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
51555         * m4/wcsncpy.m4: New file.
51556         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
51557         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
51558         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
51559         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
51560         * doc/posix-functions/wcsncpy.texi: Mention the new module.
51562 2011-02-05  Bruno Haible  <bruno@clisp.org>
51564         New module 'wcpcpy'.
51565         * modules/wcpcpy: New file.
51566         * lib/wchar.in.h (wcpcpy): New declaration.
51567         * lib/wcpcpy.c: New file.
51568         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
51569         * m4/wcpcpy.m4: New file.
51570         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
51571         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
51572         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
51573         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
51574         * doc/posix-functions/wcpcpy.texi: Mention the new module.
51576 2011-02-05  Bruno Haible  <bruno@clisp.org>
51578         New module 'wcscpy'.
51579         * modules/wcscpy: New file.
51580         * lib/wchar.in.h (wcscpy): New declaration.
51581         * lib/wcscpy.c: New file.
51582         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
51583         * m4/wcscpy.m4: New file.
51584         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
51585         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
51586         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
51587         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
51588         * doc/posix-functions/wcscpy.texi: Mention the new module.
51590 2011-02-05  Bruno Haible  <bruno@clisp.org>
51592         New module 'wcsnlen'.
51593         * modules/wcsnlen: New file.
51594         * lib/wchar.in.h (wcsnlen): New declaration.
51595         * lib/wcsnlen.c: New file.
51596         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
51597         * m4/wcsnlen.m4: New file.
51598         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
51599         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
51600         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
51601         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
51602         * doc/posix-functions/wcsnlen.texi: Mention the new module.
51604 2011-02-05  Bruno Haible  <bruno@clisp.org>
51606         New module 'wcslen'.
51607         * modules/wcslen: New file.
51608         * lib/wchar.in.h (wcslen): New declaration.
51609         * lib/wcslen.c: New file.
51610         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
51611         * m4/wcslen.m4: New file.
51612         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
51613         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
51614         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
51615         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
51616         * doc/posix-functions/wcslen.texi: Mention the new module.
51618 2011-02-05  Bruno Haible  <bruno@clisp.org>
51620         New module 'wmemset'.
51621         * modules/wmemset: New file.
51622         * lib/wchar.in.h (wmemset): New declaration.
51623         * lib/wmemset.c: New file.
51624         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
51625         * m4/wmemset.m4: New file.
51626         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
51627         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
51628         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
51629         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
51630         * doc/posix-functions/wmemset.texi: Mention the new module.
51632 2011-02-05  Bruno Haible  <bruno@clisp.org>
51634         New module 'wmemmove'.
51635         * modules/wmemmove: New file.
51636         * lib/wchar.in.h (wmemmove): New declaration.
51637         * lib/wmemmove.c: New file.
51638         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
51639         * m4/wmemmove.m4: New file.
51640         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
51641         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
51642         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
51643         HAVE_WMEMMOVE.
51644         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
51645         * doc/posix-functions/wmemmove.texi: Mention the new module.
51647 2011-02-05  Bruno Haible  <bruno@clisp.org>
51649         New module 'wmemcpy'.
51650         * modules/wmemcpy: New file.
51651         * lib/wchar.in.h (wmemcpy): New declaration.
51652         * lib/wmemcpy.c: New file.
51653         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
51654         * m4/wmemcpy.m4: New file.
51655         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
51656         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
51657         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
51658         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
51659         * doc/posix-functions/wmemcpy.texi: Mention the new module.
51661 2011-02-05  Bruno Haible  <bruno@clisp.org>
51663         New module 'wmemcmp'.
51664         * modules/wmemcmp: New file.
51665         * lib/wchar.in.h (wmemcmp): New declaration.
51666         * lib/wmemcmp.c: New file.
51667         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
51668         * m4/wmemcmp.m4: New file.
51669         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
51670         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
51671         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
51672         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
51673         * doc/posix-functions/wmemcmp.texi: Mention the new module.
51675 2011-02-07  Jim Meyering  <meyering@redhat.com>
51677         di-set, ino-map: new modules, from coreutils
51678         * lib/di-set.c: New file.
51679         * lib/di-set.h: Likewise.
51680         * lib/ino-map.c: Likewise.
51681         * lib/ino-map.h: Likewise.
51682         * modules/di-set: Likewise.
51683         * modules/di-set-tests: Likewise.
51684         * modules/ino-map: Likewise.
51685         * modules/ino-map-tests: Likewise.
51686         * tests/test-di-set.c: Likewise.
51687         * tests/test-ino-map.c: Likewise.
51689 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
51691         getloadavg: merge minor changes from Emacs
51693         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
51694         (getloadavg): Use memset, not bzero.
51696         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
51697         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
51698         clash (bug#86).
51700 2010-11-14  Bruno Haible  <bruno@clisp.org>
51702         Allow multiple gnulib generated replacements to coexist.
51703         * lib/getopt.in.h (struct option): Avoid identical redefinition.
51704         * lib/inttypes.in.h (imaxdiv_t): Likewise.
51705         * lib/langinfo.in.h (nl_item): Likewise.
51706         * lib/math.in.h (_NaN, NAN): Likewise.
51707         * lib/netdb.in.h (struct addrinfo): Likewise.
51708         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
51709         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
51710         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
51711         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
51712         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
51713         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
51714         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
51715         pthread_mutexattr_init, pthread_mutexattr_settype,
51716         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
51717         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
51718         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
51719         pthread_spin_trylock, pthread_spin_unlock): Likewise.
51720         * lib/sched.in.h (struct sched_param): Likewise.
51721         * lib/se-selinux.in.h (security_class_t, security_context_t,
51722         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
51723         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
51724         lsetfilecon, fsetfilecon, security_check_context,
51725         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
51726         Likewise.
51727         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
51728         Likewise.
51729         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
51730         _gl_function_taking_int_returning_void_t, union sigval,
51731         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
51732         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
51733         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
51734         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
51735         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
51736         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
51737         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
51738         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
51739         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
51740         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
51741         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
51742         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
51743         socklen_t, rpl_fd_isset): Likewise.
51744         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
51745         * lib/sys_time.in.h (struct timeval): Likewise.
51746         * lib/sys_times.in.h (struct tms): Likewise.
51747         * lib/sys_utsname.in.h (struct utsname):
51748         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
51749         * lib/unistd.in.h (getpagesize): Likewise.
51750         * lib/wchar.in.h (mbstate_t): Likewise.
51751         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
51752         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
51753         towlower, towupper): Likewise.
51754         Reported by Sam Steingold <sds@gnu.org>.
51756 2011-02-05  Eric Blake  <eblake@redhat.com>
51758         unsetenv: work around Haiku issues
51759         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
51760         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
51762 2010-12-30  Bruce Korb  <bkorb@gnu.org>
51764         libposix: avoid calling error() within libposix
51765         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
51766         is defined.
51768 2011-02-05  Eric Blake  <eblake@redhat.com>
51770         strerror_r-posix: port to cygwin
51771         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
51772         implementation.
51773         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
51774         * tests/test-strerror_r.c (main): Fix test.
51775         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
51776         issue.
51778 2011-02-05  Bruno Haible  <bruno@clisp.org>
51780         New module 'wmemchr'.
51781         * modules/wmemchr: New file.
51782         * lib/wchar.in.h (wmemchr): New declaration.
51783         * lib/wmemchr.c: New file.
51784         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
51785         * m4/wmemchr.m4: New file.
51786         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
51787         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
51788         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
51789         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
51790         * doc/posix-functions/wmemchr.texi: Mention the new module.
51792 2011-02-04  Eric Blake  <eblake@redhat.com>
51794         fdopendir: detect FreeBSD bug
51795         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
51796         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
51798 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
51800         stdbool: do not define HAVE_STDBOOL_H
51801         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
51802         AC_HEADER_STDBOOL.  All uses changed.  Do not define
51803         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
51804         imported from the latest Autoconf git.  It was motivated by Emacs,
51805         which uses gnulib but does not need HAVE_STDBOOL_H.
51807 2011-02-04  Bruno Haible  <bruno@clisp.org>
51809         wcsnrtombs: Prepare for new module wwcsnrtombs.
51810         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
51811         * lib/wcsnrtombs.c: Include it.
51812         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
51814         wcsrtombs: Prepare for new module wwcsrtombs.
51815         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
51816         * lib/wcsrtombs.c: Include it.
51817         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
51819         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
51820         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
51821         * lib/mbsnrtowcs.c: Include it.
51822         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
51824         mbsrtowcs: Prepare for new module mbsrtowwcs.
51825         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
51826         * lib/mbsrtowcs.c: Include it.
51827         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
51829 2011-02-04  Bruno Haible  <bruno@clisp.org>
51831         vasnprintf: Reduce use of malloc for small format strings.
51832         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
51833         (arguments): Add room for the first 7 arguments.
51834         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
51835         (char_directives, u8_directives, u16_directives, u32_directives): Add
51836         room for the first 7 directives.
51837         * lib/printf-parse.c: Include <string.h>.
51838         (PRINTF_PARSE): Change memory handling code so that it uses the first
51839         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
51840         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
51841         Reported by Pádraig Brady <P@draigbrady.com>.
51843 2011-01-31  Eric Blake  <eblake@redhat.com>
51845         dup2: work around Haiku bug
51846         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
51847         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
51848         * doc/posix-functions/dup2.texi (dup2): Document the bug.
51849         * tests/test-dup2.c (main): Enhance test.
51851 2011-01-31  Simon Josefsson  <simon@josefsson.org>
51853         doc: off_t is not available in eglibc 2.11.2 stdio.h.
51854         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
51855         declared by eglibc 2.11.2.
51856         * lib/stdio.in.h: Likewise.
51858 2011-01-31  Eric Blake  <eblake@redhat.com>
51860         ignore-value: add missing test dependency
51861         * tests/test-ignore-value.c: Revert previous change; stdio.h
51862         provides off_t.
51863         * modules/ignore-value-tests (Depends-on): Add missing dependency.
51865 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
51867         mktime: clarify long_int width checking
51868         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
51869         the top level, to make it clearer that the assumption about
51870         long_int width is being checked.  See
51871         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00554.html>.
51873 2011-01-30  Simon Josefsson  <simon@josefsson.org>
51875         ignore-value: Fix self-test.
51876         * tests/test-ignore-value.c: Include sys/types.h for off_t.
51878 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
51880         TYPE_MAXIMUM: avoid theoretically undefined behavior
51881         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
51882         negative number, which the C Standard says has undefined behavior.
51883         In practice this is not a problem, but might as well do it by the book.
51884         Reported by Rich Felker and Eric Blake; see
51885         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00493.html>.
51886         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
51887         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
51888         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
51889         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
51890         * m4/stdint.m4 (gl_STDINT_H): Likewise.
51891         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
51893         mktime: #undef mktime before #defining it
51894         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
51896         mktime: systematically normalize tm_isdst comparisons
51897         * lib/mktime.c (isdst_differ): New function.
51898         (__mktime_internal): Use it systematically for all isdst comparisons.
51899         This completes the fix for libc BZ #6723, and removes the need for
51900         normalizing tm_isdst.  See
51901         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
51902         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
51904         mktime: fix some integer overflow issues and sidestep the rest
51906         This was prompted by a bug report by Benjamin Lindner for MinGW
51907         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00472.html>.
51908         His bug is due to signed integer overflow (0 - INT_MIN), and I
51909         I scanned through mktime.c looking for other integer overflow
51910         problems, fixing all the bugs I found.
51912         Although the C Standard says the resulting code is still not safe
51913         in the presence of integer overflow, in practice it should be good
51914         enough for all real-world two's-complement implementations, except
51915         for debugging environments that deliberately trap on integer
51916         overflow (e.g., gcc -ftrapv).
51918         * lib/mktime.c (WRAPV): New macro.
51919         (SHR): Also check that long_int and time_t shift right in the
51920         usual way, before using the fast-but-unportable method.
51921         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
51922         used.  The code already assumed two's complement, so there's
51923         no need to test for alternatives.  All uses removed.
51924         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
51925         the C standard.  Problem reported by Rich Felker in
51926         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00488.html>.
51927         (twos_complement_arithmetic): Also check long_int and time_t.
51928         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
51929         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
51930         (__mktime_internal): Avoid integer overflow with unary subtraction
51931         in two instances where -1 - X is an adequate replacement for -X,
51932         since the calculations are approximate.
51934 2011-01-29  Eric Blake  <eblake@redhat.com>
51936         mktime: avoid infinite loop
51937         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
51938         type; behavior is still undefined but portable to all known targets.
51939         Reported by Rich Felker.
51941 2011-01-29  Simon Josefsson  <simon@josefsson.org>
51943         rename, unlink, same-inode: Relicense.
51944         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
51945         * modules/unlink (License): Likewise.
51946         * modules/same-inode (License): Likewise.
51948 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
51950         mktime: avoid problems on NetBSD 5 / i386
51951         * lib/mktime.c (long_int): New type.  This works around a problem
51952         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
51953         but time_t is 64 bits, and where I expect the existing code is
51954         wrong in some cases.
51955         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
51956         (ydhms_diff): Bring back the compile-time check for wide-enough
51957         year and yday.
51959         mktime: fix misspelling in comment
51960         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
51961         This merges all recent glibc changes of importance.
51963 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51965         move-if-change: cope with concurrent mv of identical file.
51966         * build-aux/move-if-change (CMPPROG): Accept environment
51967         variable as an override for `cmp'.
51968         (usage): Document CMPPROG.
51969         Adjust comparison to drop stdout.  Cope with failure of mv if
51970         the target file exists and is identical to the source, for
51971         parallel builds.
51972         Report from H.J. Lu against binutils in PR binutils/12283.
51974 2011-01-28  Bruce Korb  <bkorb@gnu.org>
51976         * users.txt: Mention sharutils.
51978 2011-01-28  Simon Josefsson  <simon@josefsson.org>
51980         * users.txt: Mention OATH Toolkit.
51982 2011-01-27  Bruno Haible  <bruno@clisp.org>
51984         Prepare for supporting FreeBSD 10.
51985         * build-aux/config.libpath: Remove handling of freebsd1*.
51987 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
51989         Prepare for supporting FreeBSD 10.
51990         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
51991         match FreeBSD 10.0.
51993 2011-01-27  Bruno Haible  <bruno@clisp.org>
51995         vma-iter, get-rusage-as: Add OpenBSD support.
51996         * modules/vma-iter (configure.ac): Test for mquery.
51997         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
51998         * lib/vma-iter.c: Include <sys/mman.h>.
51999         (vma_iterate): Add an implementation based on mquery().
52000         * lib/resource-ext.h (get_rusage_as): Update comments.
52001         * lib/get-rusage-as.c: Likewise.
52002         * lib/get-rusage-data.c: Likewise.
52004 2011-01-26  Karl Berry  <karl@gnu.org>
52006         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
52007         variables to make it easier to override the makeinfo program used.
52009 2011-01-26  Eric Blake  <eblake@redhat.com>
52011         fcntl: work around Haiku F_DUPFD bugs
52012         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
52013         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
52014         cloexec bit on duplication.
52015         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
52017 2011-01-26  Bruno Haible  <bruno@clisp.org>
52019         Enable memory leak tests on AIX.
52020         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
52021         * tests/test-fprintf-posix3.c (main): Likewise.
52023 2011-01-26  Bruno Haible  <bruno@clisp.org>
52025         Tests for module 'get-rusage-data'.
52026         * modules/get-rusage-data-tests: New file.
52027         * tests/test-get-rusage-data.c: New file.
52029         New module 'get-rusage-data'.
52030         * lib/resource-ext.h (get_rusage_data): New declaration.
52031         * lib/get-rusage-data.c: New file.
52032         * modules/get-rusage-data: New file.
52034 2011-01-25  Bruno Haible  <bruno@clisp.org>
52036         get-rusage-as: Allow for easier testing.
52037         * lib/resource-ext.h (get_rusage_as): Add comment.
52038         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
52039         (main): New function for interactive testing.
52041 2011-01-25  Bruno Haible  <bruno@clisp.org>
52043         vma-iter: Treat Haiku like BeOS.
52044         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
52045         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
52047 2011-01-25  Eric Blake  <eblake@redhat.com>
52049         c-stack: fix regression on cygwin when libsigsegv is present
52050         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
52052 2011-01-24  Bruno Haible  <bruno@clisp.org>
52054         vma-iter: Avoid empty intervals.
52055         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
52056         on an empty interval.
52058 2011-01-24  Jim Meyering  <meyering@redhat.com>
52060         u64: remove unnecessary #include
52061         * lib/u64.h: Don't include <stddef.h>.  It was not used.
52063 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
52065         Allow the user to avoid the HAVE_RAW_DECL_* macros.
52066         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
52068 2011-01-23  Bruno Haible  <bruno@clisp.org>
52070         New module 'vma-iter'.
52071         * lib/vma-iter.h: New file.
52072         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
52073         * modules/vma-iter: New file.
52074         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
52075         for get_rusage_as_via_iterator.
52076         (vma_iterate_callback): New function.
52077         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
52078         * modules/get-rusage-as (Depends-on): Add vma-iter.
52080 2011-01-23  Bruno Haible  <bruno@clisp.org>
52082         uninorm: Tweak includes.
52083         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
52084         Reported by Jim Meyering.
52086 2011-01-23  Bruno Haible  <bruno@clisp.org>
52088         get-rusage-as: Improve on NetBSD.
52089         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
52090         /proc, like on FreeBSD.
52092 2011-01-23  Jim Meyering  <meyering@redhat.com>
52094         xreadlink.h: remove unnecessary #include
52095         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
52097         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
52098         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
52100 2011-01-23  Bruno Haible  <bruno@clisp.org>
52102         get-rusage-as: Fix bug.
52103         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
52104         original limit when aborting the first loop.
52106 2011-01-23  Bruno Haible  <bruno@clisp.org>
52108         wctype: Ensure valid C syntax.
52109         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
52110         unconditionally, instead of gl_NEXT_HEADERS conditionally.
52112 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
52114         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
52115         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
52116         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
52117         as they are needed only for configure's test case.
52118         This removes two unnecessary symbols from config.h.
52120         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
52121         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
52122         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
52123         AC_CHECK_HEADERS_ONCE on a header that we also invoke
52124         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
52125         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
52126         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
52127         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
52128         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
52129         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
52130         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
52131         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
52132         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
52133         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
52134         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
52135         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
52136         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
52137         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
52139 2011-01-21  Eric Blake  <eblake@redhat.com>
52141         maintainer-makefile: work with older git for submodule check
52142         * top/maint.mk (public-submodule-commit): Rewrite to avoid
52143         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
52144         Reported by Matthias Bolte.
52146         bootstrap: minor portability fixes
52147         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
52148         (usage): Omit leading capital and trailing . on help phrases, per
52149         GNU Coding Standards.
52150         (check_versions, top level): Prefix messages with script name.
52152 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
52154         bootstrap: support --no-git option
52155         * build-aux/bootstrap: Add --no-git option, to be used when
52156         --gnulib-srcdir points to the exact desired checkout.
52158 2011-01-21  Eric Blake  <eblake@redhat.com>
52160         strerror_r-posix: work with glibc 2.13
52161         * lib/strerror_r.c (strerror_r): Fix return type.
52163 2011-01-21  Pádraig Brady  <P@draigBrady.com>
52164             Bruno Haible  <bruno@clisp.org>
52166         uN_strstr: New unit tests.
52167         * modules/unistr/u8-strstr-tests: New file.
52168         * modules/unistr/u16-strstr-tests: New file.
52169         * modules/unistr/u32-strstr-tests: New file.
52170         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
52171         * tests/unistr/test-u8-strstr.c: New file.
52172         * tests/unistr/test-u16-strstr.c: New file.
52173         * tests/unistr/test-u32-strstr.c: New file.
52175 2011-01-21  Pádraig Brady  <P@draigBrady.com>
52176             Bruno Haible  <bruno@clisp.org>
52178         Make uN_strstr functions O(n) worst-case.
52179         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
52180         16-bit and 32-bit unit cases, use the unibyte algorithm from
52181         lib/mbsstr.c.
52182         * lib/unistr/u8-strstr.c: Include <string.h>.
52183         (UNIT_IS_UINT8_T): New macro.
52184         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
52185         (U_STRLEN, U_STRNLEN): New macros.
52186         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
52187         (U_STRLEN, U_STRNLEN): New macros.
52188         * modules/unistr/u8-strstr (Depends-on): Add strstr.
52189         (configure.ac): Update required libunistring version.
52190         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
52191         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
52192         malloca.
52193         (configure.ac): Update required libunistring version.
52194         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
52195         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
52196         malloca.
52197         (configure.ac): Update required libunistring version.
52199 2011-01-21  Pádraig Brady  <P@draigBrady.com>
52200             Bruno Haible  <bruno@clisp.org>
52202         Prepare for faster uN_strstr functions.
52203         * lib/str-kmp.h: Support definable UNITs.
52204         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
52205         needle_len argument.
52206         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
52207         * lib/mbscasestr.c (mbscasestr): Likewise.
52209 2011-01-21  Pádraig Brady  <P@draigBrady.com>
52211         malloca-tests: make faster by unsetting MALLOC_PERTURB_
52212         * tests/test-malloca.c (main): Unset the environment variable
52213         to greatly speed up the test.
52214         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
52215         * modules/malloca-tests: Depend on unsetenv.
52217 2011-01-21  Pádraig Brady  <P@draigBrady.com>
52219         ignore-value: remove stdint dependency
52220         * lib/ignore-value.h: Remove <stdint.h>
52221         * modules/ignore-value: Remove stdint dependency.
52223 2011-01-21  Jim Meyering  <meyering@redhat.com>
52225         maint.mk: adjust variable name to be consistent with other gl_ vars
52226         * top/maint.mk (gl_public_submodule_commit): Rename the variable
52227         to be lower case.
52229 2011-01-20  Jim Meyering  <meyering@redhat.com>
52231         maint.mk: make "check" depend on public-submodule-commit by default
52232         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
52234 2011-01-20  Bruno Haible  <bruno@clisp.org>
52236         mbfile, mbiter: Complete change from 2008-12-21.
52237         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
52238         * m4/mbiter.m4 (gl_MBITER): Likewise.
52240 2011-01-20  Jim Meyering  <meyering@redhat.com>
52242         init.sh: insert space between each function name and "()"
52243         * tests/init.sh: Make it a little easier to see that a function's
52244         name is "warn_", and not "warn" when looking at the first part of
52245         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
52247 2011-01-20  Jim Meyering  <meyering@redhat.com>
52249         mountlist: clean up code formatting
52250         * lib/mountlist.c (read_file_system_list): Split a long line,
52251         correct bracing style, use NULL in place of "(struct statfs *)0",
52252         don't parenthesize return value, add spaces around "=" and after
52253         ";-in-for-stmt".
52255 2011-01-14  Markus Duft  <mduft@gentoo.org>
52257         mountlist: add support for Interix
52258         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
52259         Apply statvfs to all entries of /dev/fs.
52260         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
52261         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
52263 2011-01-20  Jim Meyering  <meyering@redhat.com>
52265         maint.mk: improve the public-submodule-commit rule
52266         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
52267         to suppress printing of its commands... unless V=1.
52268         Add git submodule's --quiet option to suppress printing of e.g.,
52269         "Entering gnulib" output.
52270         "cd" into $(srcdir) before running git submodule.
52272 2011-01-20  Bruno Haible  <bruno@clisp.org>
52274         include_next: Fix bug introduced on 2011-01-18.
52275         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
52276         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
52277         ac_cv_header_... variable if the second argument is not 'check'.
52278         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
52279         gl_NEXT_HEADERS_INTERNAL.
52281 2011-01-20  Bruno Haible  <bruno@clisp.org>
52283         Allow the user to avoid the GNULIB_TEST_* macros.
52284         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
52285         Suggested by Paul Eggert.
52287 2011-01-14  Jim Meyering  <meyering@redhat.com>
52289         bootstrap: avoid failure when there is no .gitmodules file
52290         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
52291         has been assigned to, even when its value is the empty string.
52292         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
52293         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
52294         Reported by John W. Eaton <jwe@gnu.org>.
52296 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
52298         assume <ctype.h>, ..., <time.h> exist
52299         For years gnulib has been assuming the existence of the headers
52300         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
52301         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
52302         them, since they don't appear to be needed.
52303         * README (Portability guidelines): Document this.
52304         * lib/flock.c: Assume <fcntl.h> exists.
52305         * lib/regex_internal.h: Assume <locale.h> exists.
52306         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
52307         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
52308         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
52309         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
52310         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
52311         * m4/regex.m4 (gl_REGEX): Likewise.
52312         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
52313         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
52314         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
52315         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
52316         * tests/test-argp.c: Likewise.
52317         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
52319         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
52320         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
52321         AA_APPLE_UNIVERSAL_BUILD.  See
52322         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00247.html>.
52323         * NEWS: Document this.
52325 2011-01-19  Eric Blake  <eblake@redhat.com>
52327         c-stack: assume stack overflow if SA_SIGINFO unsupported
52328         * lib/c-stack.c (SIGACTION_WORKS): Rename...
52329         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
52330         sigaction will work.
52331         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
52332         behavior match Linux.
52333         * tests/test-c-stack.c (main): Prefer NULL for pointers.
52335         stdbool-tests: accommodate Haiku
52336         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
52338         binary-io: fix O_TEXT on Haiku
52339         * modules/binary-io (Depends-on): Add fcntl-h.
52340         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
52341         than blindly undefining O_TEXT.
52342         Reported by Scott McCreary.
52344 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
52346         include_next: do not check for standard headers like stddef.h
52348         I found this problem when modifying Emacs to use gnulib.
52349         I noticed that it added HAVE_STDDEF_H to config.h, even though
52350         gnulib always assumes <stddef.h> exists as per README and this
52351         symbol is unnecessary.
52352         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
52353         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
52354         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
52355         faster for headers like stddef.h that are known to exist.
52356         (gl_CHECK_NEXT_HEADERS): Use it.
52357         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
52358         rather than gl_CHECK_NEXT_HEADERS.
52359         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
52360         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
52362 2011-01-18  Eric Blake  <eblake@redhat.com>
52364         ansi-c++-opt: skip C++ dependency style if C++ is unused
52365         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
52366         tests when we know C++ compilation is not desired.
52367         Reported by Scott McCreary.
52369 2011-01-18  Bruno Haible  <bruno@clisp.org>
52371         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
52372         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
52373         (main): Perform test also when getrlimit and setrlimit don't exist or
52374         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
52375         limiting the address space size using setrlimit, compare the address
52376         space size before and after the test.
52377         * tests/test-dprintf-posix2.c: Likewise.
52378         * tests/test-fprintf-posix3.sh: Update skip messages.
52379         * tests/test-dprintf-posix2.sh: Likewise.
52380         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
52381         * modules/dprintf-posix-tests (Depends-on): Likewise.
52382         Reported by Bruce Korb <bkorb@gnu.org> and
52383         Gary V. Vaughan <gary@gnu.org>.
52385 2011-01-18  Bruno Haible  <bruno@clisp.org>
52387         get-rusage-as: Improvement for Cygwin.
52388         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
52389         areas that are merely reserved.
52391 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
52393         strftime: remove dependencies on multibyte modules
52395         strftime depended on mbrlen, mbsinit, and wchar, but these modules
52396         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
52397         only if __osf__ is defined, and I suspect OSF doesn't need these
52398         other modules.  If my guess is wrong, we'll need to come up with a
52399         variant of strftime that doesn't need the multibyte modules.
52401         I discovered this problem when attempting modify Emacs to use the
52402         strftime module.  With the previous gnulib, this caused Emacs to
52403         need 31 new files, ranging from lib/config.charset to
52404         m4/wint_t.m4.  This was overkill and I expect would be offputting
52405         to the Emacs maintainers.  After this change, only 6 new files are
52406         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
52407         stdbool.m4, and tm_gmtoff.m4.
52409         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
52410         Suggested by Bruno Haible in
52411         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00238.html>.
52412         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
52413         and do not check for wchar.h.
52414         * modules/strftime (Files): Remove m4/mbstate_t.m4.
52415         (Depends-on): Remove mbrlen, mbsinit, wchar.
52417 2011-01-18  Bruno Haible  <bruno@clisp.org>
52419         Tests for module 'get-rusage-as'.
52420         * modules/get-rusage-as-tests: New file.
52421         * tests/test-get-rusage-as.c: New file.
52423         New module 'get-rusage-as'.
52424         * modules/get-rusage-as: New file.
52425         * lib/resource-ext.h: New file.
52426         * lib/get-rusage-as.c: New file.
52428 2011-01-17  Eric Blake  <eblake@redhat.com>
52430         sigaction: relax license from LGPLv3+ to LGPLv2+
52431         * modules/sigaction (License): Relax to LGPLv2+.
52433 2011-01-14  Bruno Haible  <bruno@clisp.org>
52435         filemode: Make function declarations usable in C++ mode.
52436         * lib/filemode.h: Enclose function declarations in extern "C" block.
52437         Reported by John W. Eaton <jwe@gnu.org>.
52439 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
52441         save-cwd: no longer include "xgetcwd.h"
52442         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
52443         This avoids a compilation failure in projects that use save-cwd
52444         without also using the xgetcwd module.
52446 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
52448         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
52449         This is so that a program like Emacs, which needs only dtoastr,
52450         does not have to bother with distributing and compiling ftoastr
52451         and ldtoastr.
52452         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
52453         * modules/dtoastr, modules/ldtoastr: New files.
52454         * modules/ftoastr: Now works just for 'float'.
52455         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
52456         (Makefile.am): Remove ftoastr.h (not needed and no effect),
52457         dtoastr.c, ldtoastr.c.
52459 2011-01-11  Jim Meyering  <meyering@redhat.com>
52461         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
52462         There is no need to work around the lack of the fchdir function,
52463         since gnulib can now provide a replacement when required.
52464         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
52465         * modules/save-cwd (Depends-on): Add fchdir.
52467 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
52469         openat, save-cwd: avoid xmalloc
52471         This removes a direct (but undocumented) dependency of openat on
52472         xalloc, along with an indirect dependency via save-cwd.  It also
52473         removes a dependency of save-cwd on xgetcwd, and thereby
52474         indirectly on xalloc.  This change causes the openat substitute
52475         to fall back on save_cwd when memory is tight, and for save_cwd to
52476         fail instead of dying when memory is tight, but that's good enough.
52477         Problem and initial idea for fix reported by Bastien Roucaries in
52478         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00170.html>.
52480         * lib/openat-proc.c: Include stdlib.h (for malloc), not
52481         xalloc.h (for xmalloc).
52482         (openat_proc_name): Use malloc, not xmalloc.
52483         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
52484         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
52486         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
52487         This avoids heap allocation for file names whose lengths are in
52488         the range 512..1023, with the upper bound increasing to at most
52489         4031 depending on the platform's PATH_MAX.  (We do not want
52490         pathmax.h here as it might supply a non-constant PATH_MAX.)
52491         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
52492         Perhaps they should be moved to malloca.h?
52493         (OPENAT_BUFFER_SIZE): Use them.
52495 2011-01-10  Bruno Haible  <bruno@clisp.org>
52497         doc: Update users.txt.
52498         * users.txt: Add recutils.
52500 2011-01-09  Karl Berry  <karl@gnu.org>
52502         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
52504         * doc/configmake.texi: New file.
52505         * doc/gnulib.texi: Include it.
52506         * modules/configmake: Move documentation from here.
52508 2011-01-09  Bruno Haible  <bruno@clisp.org>
52510         Update to Unicode 6.0.0.
52511         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
52512         (get_lbp): Update for Unicode 6.0.0.
52513         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
52514         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
52515         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
52516         U+11001, U+11038..U+11046. Remove U+06DE.
52517         (uc_width): Fix bounds of planes.
52518         * tests/uniwidth/test-uc_width2.sh: Same updates as in
52519         lib/uniwidth/width.c.
52520         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
52521         trailing whitespace removed.
52522         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
52523         without comments, but with the original copyright notice.
52524         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
52525         * lib/unicase/ignorable.h: Likewise.
52526         * lib/unicase/tocasefold.h: Likewise.
52527         * lib/unicase/tolower.h: Likewise.
52528         * lib/unicase/totitle.h: Likewise.
52529         * lib/unicase/toupper.h: Likewise.
52530         * lib/unictype/bidi_of.h: Likewise.
52531         * lib/unictype/blocks.h: Likewise.
52532         * lib/unictype/categ_C.h: Likewise.
52533         * lib/unictype/categ_Cn.h: Likewise.
52534         * lib/unictype/categ_L.h: Likewise.
52535         * lib/unictype/categ_Ll.h: Likewise.
52536         * lib/unictype/categ_Lm.h: Likewise.
52537         * lib/unictype/categ_Lo.h: Likewise.
52538         * lib/unictype/categ_Lu.h: Likewise.
52539         * lib/unictype/categ_M.h: Likewise.
52540         * lib/unictype/categ_Mc.h: Likewise.
52541         * lib/unictype/categ_Me.h: Likewise.
52542         * lib/unictype/categ_Mn.h: Likewise.
52543         * lib/unictype/categ_N.h: Likewise.
52544         * lib/unictype/categ_Nd.h: Likewise.
52545         * lib/unictype/categ_No.h: Likewise.
52546         * lib/unictype/categ_P.h: Likewise.
52547         * lib/unictype/categ_Po.h: Likewise.
52548         * lib/unictype/categ_S.h: Likewise.
52549         * lib/unictype/categ_Sc.h: Likewise.
52550         * lib/unictype/categ_Sk.h: Likewise.
52551         * lib/unictype/categ_Sm.h: Likewise.
52552         * lib/unictype/categ_So.h: Likewise.
52553         * lib/unictype/categ_of.h: Likewise.
52554         * lib/unictype/combining.h: Likewise.
52555         * lib/unictype/ctype_alnum.h: Likewise.
52556         * lib/unictype/ctype_alpha.h: Likewise.
52557         * lib/unictype/ctype_graph.h: Likewise.
52558         * lib/unictype/ctype_lower.h: Likewise.
52559         * lib/unictype/ctype_print.h: Likewise.
52560         * lib/unictype/ctype_punct.h: Likewise.
52561         * lib/unictype/ctype_upper.h: Likewise.
52562         * lib/unictype/decdigit.h: Likewise.
52563         * lib/unictype/digit.h: Likewise.
52564         * lib/unictype/numeric.h: Likewise.
52565         * lib/unictype/pr_alphabetic.h: Likewise.
52566         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
52567         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
52568         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
52569         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
52570         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
52571         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
52572         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
52573         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
52574         * lib/unictype/pr_case_ignorable.h: Likewise.
52575         * lib/unictype/pr_cased.h: Likewise.
52576         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
52577         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
52578         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
52579         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
52580         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
52581         * lib/unictype/pr_combining.h: Likewise.
52582         * lib/unictype/pr_composite.h: Likewise.
52583         * lib/unictype/pr_currency_symbol.h: Likewise.
52584         * lib/unictype/pr_decimal_digit.h: Likewise.
52585         * lib/unictype/pr_deprecated.h: Likewise.
52586         * lib/unictype/pr_format_control.h: Likewise.
52587         * lib/unictype/pr_grapheme_base.h: Likewise.
52588         * lib/unictype/pr_grapheme_extend.h: Likewise.
52589         * lib/unictype/pr_grapheme_link.h: Likewise.
52590         * lib/unictype/pr_id_continue.h: Likewise.
52591         * lib/unictype/pr_id_start.h: Likewise.
52592         * lib/unictype/pr_ideographic.h: Likewise.
52593         * lib/unictype/pr_lowercase.h: Likewise.
52594         * lib/unictype/pr_math.h: Likewise.
52595         * lib/unictype/pr_numeric.h: Likewise.
52596         * lib/unictype/pr_other_alphabetic.h: Likewise.
52597         * lib/unictype/pr_other_id_continue.h: Likewise.
52598         * lib/unictype/pr_other_math.h: Likewise.
52599         * lib/unictype/pr_punctuation.h: Likewise.
52600         * lib/unictype/pr_sentence_terminal.h: Likewise.
52601         * lib/unictype/pr_terminal_punctuation.h: Likewise.
52602         * lib/unictype/pr_unassigned_code_value.h: Likewise.
52603         * lib/unictype/pr_unified_ideograph.h: Likewise.
52604         * lib/unictype/pr_uppercase.h: Likewise.
52605         * lib/unictype/pr_xid_continue.h: Likewise.
52606         * lib/unictype/pr_xid_start.h: Likewise.
52607         * lib/unictype/scripts.h: Likewise.
52608         * lib/unictype/scripts_byname.gperf: Likewise.
52609         * lib/unictype/sy_java_ident.h: Likewise.
52610         * lib/unigbrk/gbrkprop.h: Likewise.
52611         * lib/unilbrk/lbrkprop1.h: Likewise.
52612         * lib/unilbrk/lbrkprop2.h: Likewise.
52613         * lib/uninorm/decomposition-table2.h: Likewise.
52614         * lib/uniwbrk/wbrkprop.h: Likewise.
52615         * tests/unicase/test-cased.c: Likewise.
52616         * tests/unicase/test-ignorable.c: Likewise.
52617         * tests/unicase/test-uc_tolower.c: Likewise.
52618         * tests/unicase/test-uc_totitle.c: Likewise.
52619         * tests/unicase/test-uc_toupper.c: Likewise.
52620         * tests/unictype/test-categ_C.c: Likewise.
52621         * tests/unictype/test-categ_Cn.c: Likewise.
52622         * tests/unictype/test-categ_L.c: Likewise.
52623         * tests/unictype/test-categ_Ll.c: Likewise.
52624         * tests/unictype/test-categ_Lm.c: Likewise.
52625         * tests/unictype/test-categ_Lo.c: Likewise.
52626         * tests/unictype/test-categ_Lu.c: Likewise.
52627         * tests/unictype/test-categ_M.c: Likewise.
52628         * tests/unictype/test-categ_Mc.c: Likewise.
52629         * tests/unictype/test-categ_Me.c: Likewise.
52630         * tests/unictype/test-categ_Mn.c: Likewise.
52631         * tests/unictype/test-categ_N.c: Likewise.
52632         * tests/unictype/test-categ_Nd.c: Likewise.
52633         * tests/unictype/test-categ_No.c: Likewise.
52634         * tests/unictype/test-categ_P.c: Likewise.
52635         * tests/unictype/test-categ_Po.c: Likewise.
52636         * tests/unictype/test-categ_S.c: Likewise.
52637         * tests/unictype/test-categ_Sc.c: Likewise.
52638         * tests/unictype/test-categ_Sk.c: Likewise.
52639         * tests/unictype/test-categ_Sm.c: Likewise.
52640         * tests/unictype/test-categ_So.c: Likewise.
52641         * tests/unictype/test-ctype_alnum.c: Likewise.
52642         * tests/unictype/test-ctype_alpha.c: Likewise.
52643         * tests/unictype/test-ctype_graph.c: Likewise.
52644         * tests/unictype/test-ctype_lower.c: Likewise.
52645         * tests/unictype/test-ctype_print.c: Likewise.
52646         * tests/unictype/test-ctype_punct.c: Likewise.
52647         * tests/unictype/test-ctype_upper.c: Likewise.
52648         * tests/unictype/test-decdigit.h: Likewise.
52649         * tests/unictype/test-digit.h: Likewise.
52650         * tests/unictype/test-numeric.h: Likewise.
52651         * tests/unictype/test-pr_alphabetic.c: Likewise.
52652         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
52653         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
52654         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
52655         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
52656         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
52657         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
52658         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
52659         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
52660         * tests/unictype/test-pr_case_ignorable.c: Likewise.
52661         * tests/unictype/test-pr_cased.c: Likewise.
52662         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
52663         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
52664         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
52665         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
52666         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
52667         * tests/unictype/test-pr_combining.c: Likewise.
52668         * tests/unictype/test-pr_composite.c: Likewise.
52669         * tests/unictype/test-pr_currency_symbol.c: Likewise.
52670         * tests/unictype/test-pr_decimal_digit.c: Likewise.
52671         * tests/unictype/test-pr_deprecated.c: Likewise.
52672         * tests/unictype/test-pr_format_control.c: Likewise.
52673         * tests/unictype/test-pr_grapheme_base.c: Likewise.
52674         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
52675         * tests/unictype/test-pr_grapheme_link.c: Likewise.
52676         * tests/unictype/test-pr_id_continue.c: Likewise.
52677         * tests/unictype/test-pr_id_start.c: Likewise.
52678         * tests/unictype/test-pr_ideographic.c: Likewise.
52679         * tests/unictype/test-pr_lowercase.c: Likewise.
52680         * tests/unictype/test-pr_math.c: Likewise.
52681         * tests/unictype/test-pr_numeric.c: Likewise.
52682         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
52683         * tests/unictype/test-pr_other_id_continue.c: Likewise.
52684         * tests/unictype/test-pr_other_math.c: Likewise.
52685         * tests/unictype/test-pr_punctuation.c: Likewise.
52686         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
52687         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
52688         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
52689         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
52690         * tests/unictype/test-pr_uppercase.c: Likewise.
52691         * tests/unictype/test-pr_xid_continue.c: Likewise.
52692         * tests/unictype/test-pr_xid_start.c: Likewise.
52693         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
52694         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
52695         changes.
52696         * lib/unictype/categ_Cc.h: Likewise.
52697         * lib/unictype/categ_Cf.h: Likewise.
52698         * lib/unictype/categ_Co.h: Likewise.
52699         * lib/unictype/categ_Cs.h: Likewise.
52700         * lib/unictype/categ_Lt.h: Likewise.
52701         * lib/unictype/categ_Nl.h: Likewise.
52702         * lib/unictype/categ_Pc.h: Likewise.
52703         * lib/unictype/categ_Pd.h: Likewise.
52704         * lib/unictype/categ_Pe.h: Likewise.
52705         * lib/unictype/categ_Pf.h: Likewise.
52706         * lib/unictype/categ_Pi.h: Likewise.
52707         * lib/unictype/categ_Ps.h: Likewise.
52708         * lib/unictype/categ_Z.h: Likewise.
52709         * lib/unictype/categ_Zl.h: Likewise.
52710         * lib/unictype/categ_Zp.h: Likewise.
52711         * lib/unictype/categ_Zs.h: Likewise.
52712         * lib/unictype/ctype_blank.h: Likewise.
52713         * lib/unictype/ctype_cntrl.h: Likewise.
52714         * lib/unictype/ctype_digit.h: Likewise.
52715         * lib/unictype/ctype_space.h: Likewise.
52716         * lib/unictype/ctype_xdigit.h: Likewise.
52717         * lib/unictype/mirror.h: Likewise.
52718         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
52719         * lib/unictype/pr_bidi_block_separator.h: Likewise.
52720         * lib/unictype/pr_bidi_common_separator.h: Likewise.
52721         * lib/unictype/pr_bidi_control.h: Likewise.
52722         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
52723         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
52724         * lib/unictype/pr_bidi_european_digit.h: Likewise.
52725         * lib/unictype/pr_bidi_pdf.h: Likewise.
52726         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
52727         * lib/unictype/pr_bidi_whitespace.h: Likewise.
52728         * lib/unictype/pr_dash.h: Likewise.
52729         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
52730         * lib/unictype/pr_diacritic.h: Likewise.
52731         * lib/unictype/pr_extender.h: Likewise.
52732         * lib/unictype/pr_hex_digit.h: Likewise.
52733         * lib/unictype/pr_hyphen.h: Likewise.
52734         * lib/unictype/pr_ids_binary_operator.h: Likewise.
52735         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
52736         * lib/unictype/pr_ignorable_control.h: Likewise.
52737         * lib/unictype/pr_iso_control.h: Likewise.
52738         * lib/unictype/pr_join_control.h: Likewise.
52739         * lib/unictype/pr_left_of_pair.h: Likewise.
52740         * lib/unictype/pr_line_separator.h: Likewise.
52741         * lib/unictype/pr_logical_order_exception.h: Likewise.
52742         * lib/unictype/pr_non_break.h: Likewise.
52743         * lib/unictype/pr_not_a_character.h: Likewise.
52744         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
52745         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
52746         * lib/unictype/pr_other_id_start.h: Likewise.
52747         * lib/unictype/pr_other_lowercase.h: Likewise.
52748         * lib/unictype/pr_other_uppercase.h: Likewise.
52749         * lib/unictype/pr_paired_punctuation.h: Likewise.
52750         * lib/unictype/pr_paragraph_separator.h: Likewise.
52751         * lib/unictype/pr_pattern_syntax.h: Likewise.
52752         * lib/unictype/pr_pattern_white_space.h: Likewise.
52753         * lib/unictype/pr_private_use.h: Likewise.
52754         * lib/unictype/pr_quotation_mark.h: Likewise.
52755         * lib/unictype/pr_radical.h: Likewise.
52756         * lib/unictype/pr_soft_dotted.h: Likewise.
52757         * lib/unictype/pr_space.h: Likewise.
52758         * lib/unictype/pr_titlecase.h: Likewise.
52759         * lib/unictype/pr_variation_selector.h: Likewise.
52760         * lib/unictype/pr_white_space.h: Likewise.
52761         * lib/unictype/pr_zero_width.h: Likewise.
52762         * lib/unictype/sy_c_ident.h: Likewise.
52763         * lib/unictype/sy_c_whitespace.h: Likewise.
52764         * lib/unictype/sy_java_whitespace.h: Likewise.
52765         * lib/uninorm/composition-table.gperf: Likewise.
52766         * lib/uninorm/decomposition-table1.h: Likewise.
52767         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
52768         LB8.
52769         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
52770         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
52771         * modules/unictype/*: Bump version number of expected libunistring
52772         version.
52774 2011-01-09  Bruno Haible  <bruno@clisp.org>
52776         Update to Unicode 5.2.0.
52777         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
52778         trailing whitespace removed.
52780 2011-01-09  Bruno Haible  <bruno@clisp.org>
52782         New Unicode character properties, from Unicode 5.2.0.
52783         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
52784         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
52785         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
52786         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
52787         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
52788         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
52789         uc_is_property_cased, uc_is_property_case_ignorable,
52790         uc_is_property_changes_when_lowercased,
52791         uc_is_property_changes_when_uppercased,
52792         uc_is_property_changes_when_titlecased,
52793         uc_is_property_changes_when_casefolded,
52794         uc_is_property_changes_when_casemapped): New declarations.
52795         * lib/unictype/pr_byname.gperf: Add the new properties.
52796         * modules/unictype/property-byname (Depends-on): Depend on the new
52797         properties modules.
52798         * modules/unictype/property-all (Depends-on): Likewise.
52799         * MODULES.html.sh (Unicode string functions): Add
52800         unictype/property-case-ignorable, unictype/property-cased,
52801         unictype/property-changes-when-casefolded,
52802         unictype/property-changes-when-casemapped,
52803         unictype/property-changes-when-lowercased,
52804         unictype/property-changes-when-titlecased,
52805         unictype/property-changes-when-uppercased.
52807         New module 'unictype/property-changes-when-casemapped'.
52808         * modules/unictype/property-changes-when-casemapped: New file.
52809         * lib/unictype/pr_changes_when_casemapped.c: New file.
52810         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
52811         generated by gen-uni-tables.
52812         * modules/unictype/property-changes-when-casemapped-tests: New file.
52813         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
52814         automatically generated by gen-uni-tables.
52816         New module 'unictype/property-changes-when-casefolded'.
52817         * modules/unictype/property-changes-when-casefolded: New file.
52818         * lib/unictype/pr_changes_when_casefolded.c: New file.
52819         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
52820         generated by gen-uni-tables.
52821         * modules/unictype/property-changes-when-casefolded-tests: New file.
52822         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
52823         automatically generated by gen-uni-tables.
52825         New module 'unictype/property-changes-when-titlecased'.
52826         * modules/unictype/property-changes-when-titlecased: New file.
52827         * lib/unictype/pr_changes_when_titlecased.c: New file.
52828         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
52829         generated by gen-uni-tables.
52830         * modules/unictype/property-changes-when-titlecased-tests: New file.
52831         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
52832         automatically generated by gen-uni-tables.
52834         New module 'unictype/property-changes-when-uppercased'.
52835         * modules/unictype/property-changes-when-uppercased: New file.
52836         * lib/unictype/pr_changes_when_uppercased.c: New file.
52837         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
52838         generated by gen-uni-tables.
52839         * modules/unictype/property-changes-when-uppercased-tests: New file.
52840         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
52841         automatically generated by gen-uni-tables.
52843         New module 'unictype/property-changes-when-lowercased'.
52844         * modules/unictype/property-changes-when-lowercased: New file.
52845         * lib/unictype/pr_changes_when_lowercased.c: New file.
52846         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
52847         generated by gen-uni-tables.
52848         * modules/unictype/property-changes-when-lowercased-tests: New file.
52849         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
52850         automatically generated by gen-uni-tables.
52852         New module 'unictype/property-case-ignorable'.
52853         * modules/unictype/property-case-ignorable: New file.
52854         * lib/unictype/pr_case_ignorable.c: New file.
52855         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
52856         by gen-uni-tables.
52857         * modules/unictype/property-case-ignorable-tests: New file.
52858         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
52859         generated by gen-uni-tables.
52861         New module 'unictype/property-cased'.
52862         * modules/unictype/property-cased: New file.
52863         * lib/unictype/pr_cased.c: New file.
52864         * lib/unictype/pr_cased.h: New file, automatically generated by
52865         gen-uni-tables.
52866         * modules/unictype/property-cased-tests: New file.
52867         * tests/unictype/test-pr_cased.c: New file, automatically generated by
52868         gen-uni-tables.
52870 2011-01-09  Bruno Haible  <bruno@clisp.org>
52872         Update to Unicode 5.2.0.
52873         * lib/gen-uni-tables.c (output_predicate, output_category,
52874         output_combclass, output_bidi_category, output_decimal_digit_test,
52875         output_decimal_digit, output_digit_test, output_digit,
52876         output_numeric_test, output_numeric, output_mirror, output_scripts,
52877         output_scripts_byname, output_blocks, output_ident_category): Fix
52878         comment header.
52879         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
52880         get_wbp.
52881         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
52882         items.
52883         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
52884         Changes_When_Lowercased, Changes_When_Uppercased,
52885         Changes_When_Titlecased, Changes_When_Casefolded,
52886         Changes_When_Casemapped.
52887         (is_property_alphabetic, is_property_default_ignorable_code_point):
52888         Update for Unicode 5.2.0.
52889         (is_property_cased, is_property_case_ignorable,
52890         is_property_changes_when_lowercased,
52891         is_property_changes_when_uppercased,
52892         is_property_changes_when_titlecased,
52893         is_property_changes_when_casefolded,
52894         is_property_changes_when_casemapped): New functions.
52895         (output_properties): Output also the properties cased, case_ignorable,
52896         changes_when_lowercased, changes_when_uppercased,
52897         changes_when_titlecased, changes_when_casefolded,
52898         changes_when_casemapped.
52899         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
52900         Unicode TR#11 revision 17 -> 19.
52901         (LBP_CP): New enumeration value.
52902         (LBP_*): Adjust values accordingly.
52903         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
52904         TR#14 revision 22 -> 24.
52905         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
52906         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
52907         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
52908         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
52909         is_WBP_MIDLETTER.
52910         (output_composition_tables): Allow for 24 bits instead of 16 bits in
52911         the code1 and code2 of each composition rule.
52912         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
52913         * lib/unicase/ignorable.h: Likewise.
52914         * lib/unicase/tocasefold.h: Likewise.
52915         * lib/unicase/tolower.h: Likewise.
52916         * lib/unicase/totitle.h: Likewise.
52917         * lib/unicase/toupper.h: Likewise.
52918         * lib/unictype/bidi_of.h: Likewise.
52919         * lib/unictype/blocks.h: Likewise.
52920         * lib/unictype/categ_C.h: Likewise.
52921         * lib/unictype/categ_Cf.h: Likewise.
52922         * lib/unictype/categ_Cn.h: Likewise.
52923         * lib/unictype/categ_L.h: Likewise.
52924         * lib/unictype/categ_Ll.h: Likewise.
52925         * lib/unictype/categ_Lm.h: Likewise.
52926         * lib/unictype/categ_Lo.h: Likewise.
52927         * lib/unictype/categ_Lu.h: Likewise.
52928         * lib/unictype/categ_M.h: Likewise.
52929         * lib/unictype/categ_Mc.h: Likewise.
52930         * lib/unictype/categ_Mn.h: Likewise.
52931         * lib/unictype/categ_N.h: Likewise.
52932         * lib/unictype/categ_Nd.h: Likewise.
52933         * lib/unictype/categ_Nl.h: Likewise.
52934         * lib/unictype/categ_No.h: Likewise.
52935         * lib/unictype/categ_P.h: Likewise.
52936         * lib/unictype/categ_Pd.h: Likewise.
52937         * lib/unictype/categ_Po.h: Likewise.
52938         * lib/unictype/categ_S.h: Likewise.
52939         * lib/unictype/categ_Sc.h: Likewise.
52940         * lib/unictype/categ_So.h: Likewise.
52941         * lib/unictype/categ_of.h: Likewise.
52942         * lib/unictype/combining.h: Likewise.
52943         * lib/unictype/ctype_alnum.h: Likewise.
52944         * lib/unictype/ctype_alpha.h: Likewise.
52945         * lib/unictype/ctype_graph.h: Likewise.
52946         * lib/unictype/ctype_lower.h: Likewise.
52947         * lib/unictype/ctype_print.h: Likewise.
52948         * lib/unictype/ctype_punct.h: Likewise.
52949         * lib/unictype/ctype_upper.h: Likewise.
52950         * lib/unictype/decdigit.h: Likewise.
52951         * lib/unictype/digit.h: Likewise.
52952         * lib/unictype/numeric.h: Likewise.
52953         * lib/unictype/pr_alphabetic.h: Likewise.
52954         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
52955         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
52956         * lib/unictype/pr_bidi_european_digit.h: Likewise.
52957         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
52958         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
52959         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
52960         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
52961         * lib/unictype/pr_combining.h: Likewise.
52962         * lib/unictype/pr_composite.h: Likewise.
52963         * lib/unictype/pr_currency_symbol.h: Likewise.
52964         * lib/unictype/pr_dash.h: Likewise.
52965         * lib/unictype/pr_decimal_digit.h: Likewise.
52966         * lib/unictype/pr_deprecated.h: Likewise.
52967         * lib/unictype/pr_diacritic.h: Likewise.
52968         * lib/unictype/pr_extender.h: Likewise.
52969         * lib/unictype/pr_grapheme_base.h: Likewise.
52970         * lib/unictype/pr_grapheme_extend.h: Likewise.
52971         * lib/unictype/pr_grapheme_link.h: Likewise.
52972         * lib/unictype/pr_id_continue.h: Likewise.
52973         * lib/unictype/pr_id_start.h: Likewise.
52974         * lib/unictype/pr_ideographic.h: Likewise.
52975         * lib/unictype/pr_ignorable_control.h: Likewise.
52976         * lib/unictype/pr_logical_order_exception.h: Likewise.
52977         * lib/unictype/pr_lowercase.h: Likewise.
52978         * lib/unictype/pr_numeric.h: Likewise.
52979         * lib/unictype/pr_other_alphabetic.h: Likewise.
52980         * lib/unictype/pr_punctuation.h: Likewise.
52981         * lib/unictype/pr_sentence_terminal.h: Likewise.
52982         * lib/unictype/pr_terminal_punctuation.h: Likewise.
52983         * lib/unictype/pr_unassigned_code_value.h: Likewise.
52984         * lib/unictype/pr_unified_ideograph.h: Likewise.
52985         * lib/unictype/pr_uppercase.h: Likewise.
52986         * lib/unictype/pr_xid_continue.h: Likewise.
52987         * lib/unictype/pr_xid_start.h: Likewise.
52988         * lib/unictype/pr_zero_width.h: Likewise.
52989         * lib/unictype/scripts.h: Likewise.
52990         * lib/unictype/scripts_byname.gperf: Likewise.
52991         * lib/unictype/sy_java_ident.h: Likewise.
52992         * lib/unigbrk/gbrkprop.h: Likewise.
52993         * lib/unilbrk/lbrkprop1.h: Likewise.
52994         * lib/unilbrk/lbrkprop2.h: Likewise.
52995         * lib/unilbrk/lbrktables.h: Likewise.
52996         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
52997         LBP_CP. Implement rule LB30.
52998         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
52999         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
53000         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
53001         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
53002         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
53003         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
53004         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
53005         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
53006         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
53007         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
53008         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
53009         bits instead of 16 bits in the code1 and code2 of each composition
53010         rule.
53011         (uc_composition): Update for Unicode 5.2.0.
53012         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
53013         * lib/uninorm/decomposition-table2.h: Likewise.
53014         * lib/uniwbrk/wbrkprop.h: Likewise.
53015         * tests/unicase/test-cased.c: Likewise.
53016         * tests/unicase/test-ignorable.c: Likewise.
53017         * tests/unicase/test-uc_tolower.c: Likewise.
53018         * tests/unicase/test-uc_totitle.c: Likewise.
53019         * tests/unicase/test-uc_toupper.c: Likewise.
53020         * tests/unictype/test-categ_C.c: Likewise.
53021         * tests/unictype/test-categ_Cf.c: Likewise.
53022         * tests/unictype/test-categ_Cn.c: Likewise.
53023         * tests/unictype/test-categ_L.c: Likewise.
53024         * tests/unictype/test-categ_Ll.c: Likewise.
53025         * tests/unictype/test-categ_Lm.c: Likewise.
53026         * tests/unictype/test-categ_Lo.c: Likewise.
53027         * tests/unictype/test-categ_Lu.c: Likewise.
53028         * tests/unictype/test-categ_M.c: Likewise.
53029         * tests/unictype/test-categ_Mc.c: Likewise.
53030         * tests/unictype/test-categ_Mn.c: Likewise.
53031         * tests/unictype/test-categ_N.c: Likewise.
53032         * tests/unictype/test-categ_Nd.c: Likewise.
53033         * tests/unictype/test-categ_Nl.c: Likewise.
53034         * tests/unictype/test-categ_No.c: Likewise.
53035         * tests/unictype/test-categ_P.c: Likewise.
53036         * tests/unictype/test-categ_Pd.c: Likewise.
53037         * tests/unictype/test-categ_Po.c: Likewise.
53038         * tests/unictype/test-categ_S.c: Likewise.
53039         * tests/unictype/test-categ_Sc.c: Likewise.
53040         * tests/unictype/test-categ_So.c: Likewise.
53041         * tests/unictype/test-ctype_alnum.c: Likewise.
53042         * tests/unictype/test-ctype_alpha.c: Likewise.
53043         * tests/unictype/test-ctype_graph.c: Likewise.
53044         * tests/unictype/test-ctype_lower.c: Likewise.
53045         * tests/unictype/test-ctype_print.c: Likewise.
53046         * tests/unictype/test-ctype_punct.c: Likewise.
53047         * tests/unictype/test-ctype_upper.c: Likewise.
53048         * tests/unictype/test-decdigit.h: Likewise.
53049         * tests/unictype/test-digit.h: Likewise.
53050         * tests/unictype/test-numeric.h: Likewise.
53051         * tests/unictype/test-pr_alphabetic.c: Likewise.
53052         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
53053         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
53054         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
53055         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
53056         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
53057         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
53058         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
53059         * tests/unictype/test-pr_combining.c: Likewise.
53060         * tests/unictype/test-pr_composite.c: Likewise.
53061         * tests/unictype/test-pr_currency_symbol.c: Likewise.
53062         * tests/unictype/test-pr_dash.c: Likewise.
53063         * tests/unictype/test-pr_decimal_digit.c: Likewise.
53064         * tests/unictype/test-pr_deprecated.c: Likewise.
53065         * tests/unictype/test-pr_diacritic.c: Likewise.
53066         * tests/unictype/test-pr_extender.c: Likewise.
53067         * tests/unictype/test-pr_grapheme_base.c: Likewise.
53068         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
53069         * tests/unictype/test-pr_grapheme_link.c: Likewise.
53070         * tests/unictype/test-pr_id_continue.c: Likewise.
53071         * tests/unictype/test-pr_id_start.c: Likewise.
53072         * tests/unictype/test-pr_ideographic.c: Likewise.
53073         * tests/unictype/test-pr_ignorable_control.c: Likewise.
53074         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
53075         * tests/unictype/test-pr_lowercase.c: Likewise.
53076         * tests/unictype/test-pr_numeric.c: Likewise.
53077         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
53078         * tests/unictype/test-pr_punctuation.c: Likewise.
53079         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
53080         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
53081         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
53082         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
53083         * tests/unictype/test-pr_uppercase.c: Likewise.
53084         * tests/unictype/test-pr_xid_continue.c: Likewise.
53085         * tests/unictype/test-pr_xid_start.c: Likewise.
53086         * tests/unictype/test-pr_zero_width.c: Likewise.
53087         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
53088         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
53089         changed behaviour: line breaking is now disallowed between a letter
53090         or '=' and '('.
53091         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
53092         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
53093         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
53094         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
53095         * tests/uniwidth/test-uc_width2.sh: Same updates as in
53096         lib/uniwidth/width.c.
53097         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
53098         without comments, but with the original copyright notice.
53099         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
53100         changes.
53101         * lib/unictype/categ_Cc.h: Likewise.
53102         * lib/unictype/categ_Co.h: Likewise.
53103         * lib/unictype/categ_Cs.h: Likewise.
53104         * lib/unictype/categ_Lt.h: Likewise.
53105         * lib/unictype/categ_Me.h: Likewise.
53106         * lib/unictype/categ_Pc.h: Likewise.
53107         * lib/unictype/categ_Pe.h: Likewise.
53108         * lib/unictype/categ_Pf.h: Likewise.
53109         * lib/unictype/categ_Pi.h: Likewise.
53110         * lib/unictype/categ_Ps.h: Likewise.
53111         * lib/unictype/categ_Sk.h: Likewise.
53112         * lib/unictype/categ_Sm.h: Likewise.
53113         * lib/unictype/categ_Z.h: Likewise.
53114         * lib/unictype/categ_Zl.h: Likewise.
53115         * lib/unictype/categ_Zp.h: Likewise.
53116         * lib/unictype/categ_Zs.h: Likewise.
53117         * lib/unictype/ctype_blank.h: Likewise.
53118         * lib/unictype/ctype_cntrl.h: Likewise.
53119         * lib/unictype/ctype_digit.h: Likewise.
53120         * lib/unictype/ctype_space.h: Likewise.
53121         * lib/unictype/ctype_xdigit.h: Likewise.
53122         * lib/unictype/mirror.h: Likewise.
53123         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
53124         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
53125         * lib/unictype/pr_bidi_block_separator.h: Likewise.
53126         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
53127         * lib/unictype/pr_bidi_common_separator.h: Likewise.
53128         * lib/unictype/pr_bidi_control.h: Likewise.
53129         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
53130         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
53131         * lib/unictype/pr_bidi_pdf.h: Likewise.
53132         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
53133         * lib/unictype/pr_bidi_whitespace.h: Likewise.
53134         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
53135         * lib/unictype/pr_format_control.h: Likewise.
53136         * lib/unictype/pr_hex_digit.h: Likewise.
53137         * lib/unictype/pr_hyphen.h: Likewise.
53138         * lib/unictype/pr_ids_binary_operator.h: Likewise.
53139         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
53140         * lib/unictype/pr_iso_control.h: Likewise.
53141         * lib/unictype/pr_join_control.h: Likewise.
53142         * lib/unictype/pr_left_of_pair.h: Likewise.
53143         * lib/unictype/pr_line_separator.h: Likewise.
53144         * lib/unictype/pr_math.h: Likewise.
53145         * lib/unictype/pr_non_break.h: Likewise.
53146         * lib/unictype/pr_not_a_character.h: Likewise.
53147         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
53148         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
53149         * lib/unictype/pr_other_id_continue.h: Likewise.
53150         * lib/unictype/pr_other_id_start.h: Likewise.
53151         * lib/unictype/pr_other_lowercase.h: Likewise.
53152         * lib/unictype/pr_other_math.h: Likewise.
53153         * lib/unictype/pr_other_uppercase.h: Likewise.
53154         * lib/unictype/pr_paired_punctuation.h: Likewise.
53155         * lib/unictype/pr_paragraph_separator.h: Likewise.
53156         * lib/unictype/pr_pattern_syntax.h: Likewise.
53157         * lib/unictype/pr_pattern_white_space.h: Likewise.
53158         * lib/unictype/pr_private_use.h: Likewise.
53159         * lib/unictype/pr_quotation_mark.h: Likewise.
53160         * lib/unictype/pr_radical.h: Likewise.
53161         * lib/unictype/pr_soft_dotted.h: Likewise.
53162         * lib/unictype/pr_space.h: Likewise.
53163         * lib/unictype/pr_titlecase.h: Likewise.
53164         * lib/unictype/pr_variation_selector.h: Likewise.
53165         * lib/unictype/pr_white_space.h: Likewise.
53166         * lib/unictype/sy_c_ident.h: Likewise.
53167         * lib/unictype/sy_c_whitespace.h: Likewise.
53168         * lib/unictype/sy_java_whitespace.h: Likewise.
53169         * modules/uni*/*: Bump version number of expected libunistring version.
53170         Reported by Simon Josefsson.
53172 2011-01-09  Karl Heuer  <kwzh@gnu.org>
53174         useless-if-before-free: fix typo in --help and make the internal,
53175         automatic version date update process work once again.
53176         --help output contained a NUL character instead of the
53177         backslash-zero that was intended.  Also, the "must lie within
53178         the first 8 lines" line is on line 9, and hence not getting
53179         automatically updated.
53180         * build-aux/useless-if-before-free: Fix the former by adding a
53181         backslash, and the latter by condensing the three lines of what-it-does
53182         to a single line, leaving one line of slack for the future.
53184 2011-01-09  Bruno Haible  <bruno@clisp.org>
53186         uniwidth/width: Fix width of U+1D173..U+1D17A.
53187         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
53188         symbolic_width, output_width_property_test): New functions.
53189         (main): Invoke output_nonspacing_property, output_width_property_test.
53190         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
53191         U+1D173..U+1D17A.
53192         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
53193         1.
53194         * modules/uniwidth/*: Bump version number of expected libunistring
53195         version.
53196         * modules/unilbrk/*: Likewise.
53198 2011-01-08  Bruno Haible  <bruno@clisp.org>
53200         uninorm tests: Preserve copyright of Unicode data file.
53201         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
53202         Mention modifications.
53204 2011-01-08  Bruno Haible  <bruno@clisp.org>
53206         gen-uni-tables: Prepare for Unicode 5.2.0.
53207         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
53208         (debug_output_lbp, output_lbp): Update.
53210 2011-01-08  Bruno Haible  <bruno@clisp.org>
53212         unilbrk: Clarify gen-uni-tables.c code.
53213         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
53214         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
53215         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
53217 2011-01-07  Bruno Haible  <bruno@clisp.org>
53219         strtod: Restore errno when successfully parsing Infinity or NaN.
53220         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
53221         restore the original errno.
53223 2011-01-07  Bruno Haible  <bruno@clisp.org>
53225         remove test: Avoid failure on HP-UX 11.
53226         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
53228 2011-01-07  Bruno Haible  <bruno@clisp.org>
53230         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
53231         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
53232         error code.
53234 2011-01-07  Pádraig Brady  <P@draigBrady.com>
53236         ignore-value: fixup comments, and add Eric Blake
53237         as an author since he rewrote the macros.
53238         * lib/ignore-value.h (ignore_value):  State that
53239         we now support aggregates.  Also specify exactly
53240         when the GCC warn_unused_result feature was added.
53242 2011-01-06  Eric Blake  <eblake@redhat.com>
53244         ignore-value: support aggregate types
53245         * lib/ignore-value.h (ignore_value): Provide separate gcc
53246         definition.
53247         * modules/ignore-value-tests: New test module.
53248         * tests/test-ignore-value.c: New test.
53250         maint.mk: improve sc_prohibit_strcmp regex
53251         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
53252         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
53253         definition of STRNEQ.
53255         signal: work around Haiku issue with SIGBUS
53256         * lib/siglist.h: Add comment.
53257         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
53258         strsignal's favoring of SIGSEGV.
53259         * tests/test-signal.c (main): Avoid test failure.
53260         * doc/posix-headers/signal.texi (signal.h): Document the issue.
53261         Reported by Scott McCreary.
53263         maint.mk: add pre-release check to ensure submodule commits are public
53264         * top/maint.mk (public-submodule-commit): New rule.
53265         (submodule-checks): New variable.
53266         (alpha beta stable): Depend on the variable.
53268 2011-01-05  Pádraig Brady  <P@draigBrady.com>
53269         and Jim Meyering  <meyering@redhat.com>
53271         ignore-value: make ignore_value more generic; deprecate ignore_ptr
53272         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
53273         (ATTRIBUTE_DEPRECATED): Define.
53274         (_ignore_case): New function.
53275         (ignore_value): New macro, to replace the old function.
53276         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
53277         * modules/ignore-value (Depends-on): Add stdint.
53279 2011-01-04  Eric Blake  <eblake@redhat.com>
53281         doc: regenerate INSTALL
53282         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
53283         @firstparagraphindent support, now that autoconf dropped it.
53284         (INSTALL_PRELUDE): Reinstate old macro.
53285         * doc/install.texi: Resync from autoconf.
53286         * doc/INSTALL: Reflect recent autoconf update.
53287         * doc/INSTALL.ISO: Likewise.
53288         * doc/INSTALL.UTF-8: Likewise.
53289         Reported by Karl Berry.
53291 2011-01-04  Bruce Korb  <address@hidden>
53293         git-version-gen: avoid a sub-shell
53294         * build-aux/git-version-gen: Redirect stderr in `...` via
53295         "exec 2>...", rather than via an added sub-shell.
53297 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
53299         git-version-gen: use (...) rather than sh -c '...'
53300         * build-aux/git-version-gen: Rather than hard-coding a shell's name
53301         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
53303 2011-01-03  Jim Meyering  <meyering@redhat.com>
53305         git-version-gen: convert leading TABs to spaces
53306         * build-aux/git-version-gen: Expand leading TABs.
53308         git-version-gen: handle failed "git rev-list"
53309         * build-aux/git-version-gen: Rather than leaking a "fatal" error
53310         from git and proceeding as if it had succeeded but printed no SHA1
53311         checksums, suppress the diagnostic and handle the failure.
53312         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
53314         git-version-gen: include command name in one more diagnostic
53315         * build-aux/git-version-gen: When the required .tarball-version file
53316         was missing or unreadable, you might see the diagnostic from "cat",
53317         but no trace of the name of the invoking script.  Now, you still see
53318         the diagnostic from cat, but also get one from "git-version-gen: ".
53319         Inspired by a patch from Bruce Korb.
53321         update-copyright: adjust test to match changed code
53322         * tests/test-update-copyright.sh: Change test's expected output
53323         to match new actual output.
53325 2011-01-02  Bruno Haible  <bruno@clisp.org>
53327         getlogin_r: Avoid test failure on HP-UX 11.
53328         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
53329         ERANGE when the second argument is zero.
53330         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
53331         portability problem.
53333 2011-01-02  Bruce Korb  <bkorb@gnu.org>
53335         * build-aux/update-copyright: doc Simon's changes
53337 2011-01-02  Simon Josefsson  <simon@josefsson.org>
53339         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
53340         environment variable.
53342 2011-01-02  Bruno Haible  <bruno@clisp.org>
53344         unigbrk: Avoid gcc warnings.
53345         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
53346         unused variable.
53347         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
53348         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
53349         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
53350         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
53351         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
53352         Change type of first argument to 'const char *'.
53353         (main): Remove unused variable.
53354         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
53355         type of first argument to 'const char *'.
53356         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
53357         Likewise.
53358         (main): Change type of variable 's'.
53359         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
53360         to 'int'.
53362 2011-01-02  Bruno Haible  <bruno@clisp.org>
53364         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
53365         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
53366         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
53367         bug.
53368         * lib/pwrite.c: Undo 2010-12-31 patch.
53369         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
53371 2011-01-02  Bruno Haible  <bruno@clisp.org>
53373         pread: Fix test whether it works.
53374         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
53376 2011-01-02  Bruno Haible  <bruno@clisp.org>
53378         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
53379         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
53380         ends in "6". Don't require a specific month name. Try also the locale
53381         names found on HP-UX 11 and Solaris 7.
53383 2011-01-02  Bruno Haible  <bruno@clisp.org>
53385         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
53386         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
53387         C linkage.
53388         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
53390 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
53392         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
53393         for consistency, since the "cluster" term is not used elsewhere.
53394         * lib/unigbrk.in.h: Update name.
53395         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
53396         * lib/unigbrk/u16-grapheme-next.c: Update name.
53397         * lib/unigbrk/u16-grapheme-prev.c: Update name.
53398         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
53399         * lib/unigbrk/u32-grapheme-next.c: Update name.
53400         * lib/unigbrk/u32-grapheme-prev.c: Update name.
53401         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
53402         * lib/unigbrk/u8-grapheme-next.c: Update name.
53403         * lib/unigbrk/u8-grapheme-prev.c: Update name.
53404         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
53405         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
53406         Suggested by Bruno Haible.
53408 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
53410         Remove module 'u8-grapheme-len' as too redundant with
53411         'u8-grapheme-next'.
53412         * modules/unigbrk/u8-grapheme-len: Delete file.
53413         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
53414         * lib/unigbrk.in.h: Remove prototype for deleted function.
53415         * lib/unigbrk/u8-grapheme-len.c: Delete file.
53416         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
53418         Remove module 'u16-grapheme-len' as too redundant with
53419         'u16-grapheme-next'.
53420         * modules/unigbrk/u16-grapheme-len: Delete file.
53421         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
53422         * lib/unigbrk.in.h: Remove prototype for deleted function.
53423         * lib/unigbrk/u16-grapheme-len.c: Delete file.
53424         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
53426         Remove module 'u32-grapheme-len' as too redundant with
53427         'u32-grapheme-next'.
53428         * modules/unigbrk/u32-grapheme-len: Delete file.
53429         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
53430         * lib/unigbrk.in.h: Remove prototype for deleted function.
53431         * lib/unigbrk/u32-grapheme-len.c: Delete file.
53432         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
53434         Suggested by Bruno Haible.
53436 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
53438         * unigbrk.in.h: Fix typo: "ben" => "been".
53439         Reported by Bruno Haible.
53441 2011-01-01  Jim Meyering  <meyering@redhat.com>
53443         maint: update almost all copyright ranges to include 2011
53444         Run the new "make update-copyright" rule.
53446 2011-01-01  Jim Meyering  <meyering@redhat.com>
53448         maint: update-copyright: exempt doc/INSTALL*
53449         * Makefile (update-copyright): Also exclude doc/INSTALL*,
53450         since they are generated.  Suggested by Bruno Haible.
53452 2011-01-01  Jim Meyering  <meyering@redhat.com>
53454         maint: refine the update-copyright rule
53455         * Makefile (update-copyright): Also exclude any file that includes
53456         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
53457         code that merely generates the comment.
53459 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
53461         New module 'u8-grapheme-len'.
53462         * modules/unigbrk/u8-grapheme-len: New file.
53463         * modules/unigbrk/u8-grapheme-len-tests: New file.
53464         * lib/unigbrk.in.h: Add prototype for new function.
53465         * lib/unigbrk/u8-grapheme-len.c: New file.
53466         * tests/unigbrk/test-u8-grapheme-len.c: New file.
53468         New module 'u16-grapheme-len'.
53469         * modules/unigbrk/u16-grapheme-len: New file.
53470         * modules/unigbrk/u16-grapheme-len-tests: New file.
53471         * lib/unigbrk.in.h: Add prototype for new function.
53472         * lib/unigbrk/u16-grapheme-len.c: New file.
53473         * tests/unigbrk/test-u16-grapheme-len.c: New file.
53475         New module 'u32-grapheme-len'.
53476         * modules/unigbrk/u32-grapheme-len: New file.
53477         * modules/unigbrk/u32-grapheme-len-tests: New file.
53478         * lib/unigbrk.in.h: Add prototype for new function.
53479         * lib/unigbrk/u32-grapheme-len.c: New file.
53480         * tests/unigbrk/test-u32-grapheme-len.c: New file.
53482         New module 'u8-grapheme-next'.
53483         * modules/unigbrk/u8-grapheme-next: New file.
53484         * modules/unigbrk/u8-grapheme-next-tests: New file.
53485         * lib/unigbrk.in.h: Add prototype for new function.
53486         * lib/unigbrk/u8-grapheme-next.c: New file.
53487         * tests/unigbrk/test-u8-grapheme-next.c: New file.
53489         New module 'u16-grapheme-next'.
53490         * modules/unigbrk/u16-grapheme-next: New file.
53491         * modules/unigbrk/u16-grapheme-next-tests: New file.
53492         * lib/unigbrk.in.h: Add prototype for new function.
53493         * lib/unigbrk/u16-grapheme-next.c: New file.
53494         * tests/unigbrk/test-u16-grapheme-next.c: New file.
53496         New module 'u32-grapheme-next'.
53497         * modules/unigbrk/u32-grapheme-next: New file.
53498         * modules/unigbrk/u32-grapheme-next-tests: New file.
53499         * lib/unigbrk.in.h: Add prototype for new function.
53500         * lib/unigbrk/u32-grapheme-next.c: New file.
53501         * tests/unigbrk/test-u32-grapheme-next.c: New file.
53503         New module 'u8-grapheme-prev'.
53504         * modules/unigbrk/u8-grapheme-prev: New file.
53505         * modules/unigbrk/u8-grapheme-prev-tests: New file.
53506         * lib/unigbrk.in.h: Add prototype for new function.
53507         * lib/unigbrk/u8-grapheme-prev.c: New file.
53508         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
53510         New module 'u16-grapheme-prev'.
53511         * modules/unigbrk/u16-grapheme-prev: New file.
53512         * modules/unigbrk/u16-grapheme-prev-tests: New file.
53513         * lib/unigbrk.in.h: Add prototype for new function.
53514         * lib/unigbrk/u16-grapheme-prev.c: New file.
53515         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
53517         New module 'u32-grapheme-prev'.
53518         * modules/unigbrk/u32-grapheme-prev: New file.
53519         * modules/unigbrk/u32-grapheme-prev-tests: New file.
53520         * lib/unigbrk.in.h: Add prototype for new function.
53521         * lib/unigbrk/u32-grapheme-prev.c: New file.
53522         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
53524         New module 'u8-grapheme-breaks'.
53525         * modules/unigbrk/u8-grapheme-breaks: New file.
53526         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
53527         * lib/unigbrk.in.h: Add prototype for new function.
53528         * lib/unigbrk/u8-grapheme-breaks.c: New file.
53529         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
53531         New module 'u16-grapheme-breaks'.
53532         * modules/unigbrk/u16-grapheme-breaks: New file.
53533         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
53534         * lib/unigbrk.in.h: Add prototype for new function.
53535         * lib/unigbrk/u16-grapheme-breaks.c: New file.
53536         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
53538         New module 'u32-grapheme-breaks'.
53539         * modules/unigbrk/u32-grapheme-breaks: New file.
53540         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
53541         * lib/unigbrk.in.h: Add prototype for new function.
53542         * lib/unigbrk/u32-grapheme-breaks.c: New file.
53543         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
53545         New module 'ulc-grapheme-breaks'.
53546         * modules/unigbrk/ulc-grapheme-breaks: New file.
53547         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
53548         * m4/locale-ar.m4: New file.
53549         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
53550         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
53551         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
53553 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
53555         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
53556         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
53557         modified how this file was generated before I initially submitted
53558         the module, but failed to regenerate it.  This meant that several
53559         of the level2 entries were wrong.
53560         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
53561         Remove the division-by-2 that is folded into the table now that
53562         gbrkprop.h has been regenerated properly.  Now -1 entries are
53563         handled correctly.
53565         New module 'unigbrk/uc-gbrk-prop-tests'.
53566         * modules/unigbrk/uc-gbrk-prop-tests: New file.
53567         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
53568         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
53569         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
53571 2011-01-01  Bruno Haible  <bruno@clisp.org>
53573         Avoid use of hexadecimal escapes.
53574         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
53575         instead of hexadecimal escapes.
53577 2011-01-01  Jim Meyering  <meyering@redhat.com>
53579         maint: new rule to update copyright year ranges
53580         * Makefile (update-copyright): New rule.
53582         maint: indent with TABs in Makefile
53583         * Makefile: Expand leading sequences of spaces to TABs
53585         version-etc: update the copyright year it reports
53586         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
53588 2010-12-31  Bruno Haible  <bruno@clisp.org>
53590         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
53591         * lib/isfinite.c (zerof, zerod, zerol): New variables.
53592         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
53593         zero.
53595 2010-12-31  Bruno Haible  <bruno@clisp.org>
53597         pwrite: Work around HP-UX 11.11 bug.
53598         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
53599         works and set REPLACE_PWRITE if not.
53600         * lib/pwrite.c (pwrite): Add an implementation that uses the system
53601         function.
53602         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
53604 2010-12-31  Bruno Haible  <bruno@clisp.org>
53606         pread: Work around HP-UX 11 bugs.
53607         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
53608         and set REPLACE_PREAD if not.
53609         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
53611 2010-12-31  Eric Blake  <eblake@redhat.com>
53613         nl_langinfo: fix YESEXPR on Irix 6.5
53614         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
53615         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
53616         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
53617         it.
53619 2010-12-31  Bruno Haible  <bruno@clisp.org>
53621         iconv: Document HP-UX 11 bug.
53622         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
53624 2010-12-31  Bruno Haible  <bruno@clisp.org>
53626         ldexpl: Fix link error on HP-UX 11.
53627         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
53628         LDEXPL_LIBM, using $ISNANL_LIBM.
53630 2010-12-31  Eric Blake  <eblake@redhat.com>
53632         ftello: avoid compilation failure with SunStudio c89
53633         * lib/ftello.c (ftello): Use lseek, not llseek.
53635         tests: avoid failing coreutils tests on cygwin
53636         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
53637         (create_exe_shims_): Return 0 when skipping.
53639 2010-12-31  Bruno Haible  <bruno@clisp.org>
53641         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
53642         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
53644 2010-12-31  Bruno Haible  <bruno@clisp.org>
53646         waitpid: Fix link error in C++ mode.
53647         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
53649 2010-12-31  Bruno Haible  <bruno@clisp.org>
53651         isnan: Use GCC built-ins when possible.
53652         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
53653         __builtin_isnan.
53654         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
53655         (isnan): Define using GCC built-ins for GCC >= 4.0.
53657 2010-12-31  Bruno Haible  <bruno@clisp.org>
53659         isnand: Fix mistake.
53660         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
53661         __builtin_isnand.
53663 2010-12-31  Bruno Haible  <bruno@clisp.org>
53665         open: Avoid C++ error on HP-UX 11.
53666         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
53668 2010-12-31  Bruno Haible  <bruno@clisp.org>
53670         time_r: Add missing declarations on HP-UX 11.
53671         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
53672         instead of HAVE_LOCALTIME_R.
53673         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
53674         HAVE_LOCALTIME_R always.
53675         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
53676         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
53677         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
53678         HAVE_LOCALTIME_R.
53679         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
53680         * doc/posix-functions/localtime_r.texi: Likewise.
53682 2010-12-29  Eric Blake  <eblake@redhat.com>
53684         mountlist: tweak previous commit
53685         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
53686         Reported by Paul Eggert.
53688         mountlist: fix local drive detection on cygwin
53689         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
53690         that works for cygwin.
53692 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
53694         ftoastr, snprintf: ftoastr + snprintf module
53695         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
53696         since the snprintf module now should be good enough here.
53697         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
53698         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
53699         and gl_MODULE_INDICATOR([snprintf]), but the former enables
53700         GNULIB_SNPRINTF only for the test directory, and the latter
53701         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
53702         seems to suffice by itself.
53704 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
53706         alloca: one step towards thread-safety
53707         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
53708         need for a static variable.  All callers changed.  This does not
53709         make the alloca replacement thread-safe, but it's one step.
53711         tests: minor indenting change
53712         * tests/init.sh: Sync from coreutils housekeeping patch
53713         <http://lists.gnu.org/r/coreutils/2010-12/msg00116.html>
53714         to keep lines within 80 columns.
53716 2010-12-28  Jim Meyering  <meyering@redhat.com>
53718         regex: don't infloop on persistent failing calloc
53719         * lib/regexec.c (build_trtable): Return failure indication upon
53720         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
53721         In glibc, this was fixed for version 2.13:
53722         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
53724 2010-12-28  Bruno Haible  <bruno@clisp.org>
53725             Paul Eggert <eggert@cs.ucla.edu>
53727         linkat: Make implementation robust against system behaviour variations.
53728         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
53729         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
53730         way, and to -2 if it needs a generic runtime test.
53731         * lib/linkat.c (solaris_optimized_link_immediate,
53732         solaris_optimized_link_follow): New functions.
53733         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
53734         (check_same_link): Use it.
53736 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
53738         New module 'unigbrk/base'.
53739         * modules/unigbrk/base: New file.
53740         * lib/unigbrk.in.h: New file.
53742         New module 'unigbrk/uc-gbrk-prop'.
53743         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
53744         * modules/unigbrk/uc-gbrk-prop: New file.
53745         * lib/unigbrk/gbrkprop.h: New file.
53746         * lib/unigbrk/uc-gbrk-prop.c: New file.
53748         New module 'unigbrk/uc-is-grapheme-break'.
53749         * modules/unigbrk/uc-is-grapheme-break: New file.
53750         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
53751         * lib/unigbrk/uc-is-grapheme-break.c: New file.
53752         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
53753         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
53754         * tests/unigbrk/GraphemeBreakTest.txt: New file.
53756         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
53758 2010-12-27  Bruno Haible  <bruno@clisp.org>
53760         linkat test: Avoid failure on Solaris 11 2010-11.
53761         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
53763 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
53765         utimens: work around glibc rounding bug on more platforms
53766         * lib/utimens.c (fdutimens): Work around rounding bug even if
53767         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
53768         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00298.html>.
53770 2010-12-27  Bruno Haible  <bruno@clisp.org>
53772         select tests: Improve comments.
53773         * tests/test-select.c (do_select): Add comments.
53775 2010-12-27  Bruno Haible  <bruno@clisp.org>
53777         select tests: Safer way of handling timeout.
53778         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
53779         at every invocation.
53781 2010-12-27  Bruno Haible  <bruno@clisp.org>
53783         select tests: Use 'bool' where appropriate.
53784         * tests/test-select.c (connect_to_socket): Change argument type to
53785         'bool'.
53787 2010-12-27  Bruno Haible  <bruno@clisp.org>
53789         select tests: Use existing modules.
53790         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
53791         (configure.ac): Don't test for unistd.h.
53792         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
53793         declared in <unistd.h>.
53795 2010-12-27  Bruno Haible  <bruno@clisp.org>
53797         mbrtowc: Work around a Solaris 7 bug.
53798         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
53799         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
53800         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
53801         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
53802         MBRTOWC_NULL_ARG1_BUG.
53803         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
53804         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
53805         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
53806         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
53808 2010-12-27  Jim Meyering  <meyering@redhat.com>
53810         read-file.c: tweak syntax
53811         * lib/read-file.c (fread_file): Remove space after "*" in function
53812         definitions.
53814 2010-12-27  Bruno Haible  <bruno@clisp.org>
53816         times test: Avoid gcc warnings on OSF/1.
53817         * tests/test-times.c (main): Cast printf arguments from clock_t to
53818         'long int'.
53820 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
53822         utimens: work around glibc rounding bug on older Linux kernels
53823         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
53824         on Linux with a glibc whose utimes might not work, then work
53825         around a longstanding glibc bug involving rounding rather than
53826         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
53827         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
53829 2010-12-26  Bruno Haible  <bruno@clisp.org>
53831         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
53832         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
53833         _GL_CXXALIAS_SYS.
53834         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
53836 2010-12-26  Bruno Haible  <bruno@clisp.org>
53838         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
53839         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
53840         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
53841         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
53842         looking for the declaration.
53843         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
53844         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
53845         problem.
53846         * doc/posix-functions/inet_pton.texi: Likewise.
53848 2010-12-26  Bruno Haible  <bruno@clisp.org>
53850         arpa_inet: Use the common idioms with C++ support.
53851         * lib/arpa_inet.in.h: Include c++defs.h.
53852         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
53853         support.
53854         * modules/arpa_inet (Depends-on): Add c++defs.
53855         (Makefile.am): Substitute the contents of c++defs.h.
53856         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
53857         * modules/arpa_inet-c++-tests: New file.
53858         * tests/test-arpa_inet-c++.cc: New file.
53860 2010-12-25  Bruno Haible  <bruno@clisp.org>
53862         Fix more C++ link errors on Solaris 8.
53863         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
53864         $(LIB_EACCESS).
53865         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
53866         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
53867         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
53868         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
53869         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
53871 2010-12-25  Bruno Haible  <bruno@clisp.org>
53873         printf-posix: Fix link error when a non-GCC compiler is used.
53874         * lib/stdio.in.h (printf): When not using GCC, override printf
53875         correctly.
53876         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
53878 2010-12-25  Bruno Haible  <bruno@clisp.org>
53880         strerror_r-posix: Update doc.
53881         * doc/posix-functions/strerror_r.texi: Update doc about the return
53882         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
53884 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
53886         utimens: simplify the logic of the previous change
53887         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
53888         This should not affect whether the test succeeds or fails.
53890         utimens: configure better on hosts with NFS clock skew
53891         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
53892         uses the clock of the local host.  It might use the clock of the
53893         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
53894         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
53896 2010-12-25  Bruno Haible  <bruno@clisp.org>
53898         ptsname test: Avoid failure on Solaris.
53899         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
53900         open a pseudo-terminal; don't use BSD-style ptys.
53901         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
53903 2010-12-25  Bruno Haible  <bruno@clisp.org>
53905         ptsname: Avoid ERANGE failure on some systems.
53906         * lib/ptsname.c (buffer): Increase size.
53908 2010-12-25  Bruno Haible  <bruno@clisp.org>
53910         rename, renameat: Avoid test failures at NFS mounted locations.
53911         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
53912         so that subsequent mkdir calls succeed.
53914 2010-12-25  Bruno Haible  <bruno@clisp.org>
53916         iswblank: Fix C++ link error on Solaris 8.
53917         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
53918         _GL_FUNCDECL_SYS.
53920 2010-12-25  Bruno Haible  <bruno@clisp.org>
53922         unistd: Fix C++ link error on Solaris 8.
53923         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
53925 2010-12-25  Bruno Haible  <bruno@clisp.org>
53927         readlink doc: Mention an old glibc bug.
53928         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
53930 2010-12-25  Bruno Haible  <bruno@clisp.org>
53932         fcntl-h: Fix for use of C++ on glibc systems.
53933         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
53934         also on glibc systems in C++ mode.
53935         Reported by Gary V. Vaughan <gary@gnu.org>.
53937 2010-12-25  Bruno Haible  <bruno@clisp.org>
53939         roundl-ieee: Make it work on OSF/1 5.1 with cc.
53940         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
53942 2010-12-25  Bruno Haible  <bruno@clisp.org>
53944         truncl-ieee: Make it work on OSF/1 5.1 with cc.
53945         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
53946         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
53947         test whether truncl works according to ISO C 99 with IEC 60559.
53948         * m4/truncl-ieee.m4: New file.
53949         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
53950         m4/signbit.m4.
53951         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
53953 2010-12-25  Bruno Haible  <bruno@clisp.org>
53955         ceill-ieee: Make it work on OSF/1 5.1 with cc.
53956         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
53957         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
53958         test whether ceill works according to ISO C 99 with IEC 60559.
53959         * m4/ceill-ieee.m4: New file.
53960         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
53961         m4/signbit.m4.
53962         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
53964 2010-12-25  Bruno Haible  <bruno@clisp.org>
53966         Ensure all prerequisites of <wchar.h> are included.
53967         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
53968         before <wchar.h>.
53969         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
53970         gl_MBRLEN_NUL_RETVAL): Likewise.
53971         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
53972         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
53973         AC_FUNC_MBRTOWC): Likewise.
53974         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
53975         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
53976         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
53977         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
53978         Likewise.
53979         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
53980         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
53981         (gl_WCHAR_H): Improve comments.
53982         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
53984 2010-12-25  Bruno Haible  <bruno@clisp.org>
53986         strtok_r: Fix C syntax error in autoconf macro.
53987         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
53988         characters in test program.
53990 2010-12-24  Bruno Haible  <bruno@clisp.org>
53992         ceil, trunc, round: Fix gcc warnings.
53993         * lib/ceil.c (MIN): Undefine before redefining.
53994         * lib/trunc.c (MIN): Likewise.
53995         * lib/round.c (MIN): Likewise.
53996         Include <math.h> first.
53998 2010-12-24  Bruno Haible  <bruno@clisp.org>
54000         select tests: Avoid failures on OSF/1 5.1.
54001         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
54002         failure of closing the last socket; it may fail with ECONNRESET.
54004 2010-12-24  Eric Blake  <eblake@redhat.com>
54006         stdint: avoid HP-UX 10.20 preprocessor bug
54007         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
54008         than #if.
54009         * tests/test-floor2.c (main): Likewise.
54010         Reported by Peter O'Gorman.
54012         pipe: make obsoletion transition easier
54013         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
54014         * modules/pipe (Files): Include revived file.
54015         (Include): Drop reference, to mirror getdate's behavior.
54017 2010-12-24  Bruno Haible  <bruno@clisp.org>
54019         sys_socket: Hide mismatch of declarations on NonStop Kernel.
54020         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
54021         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
54022         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
54024 2010-12-24  Bruno Haible  <bruno@clisp.org>
54026         gethostname: Ensure declaration on NonStop Kernel.
54027         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
54028         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
54030 2010-12-24  Bruno Haible  <bruno@clisp.org>
54032         sys_select: Ensure all necessary types on NonStop Kernel.
54033         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
54034         include <sys/time.h>.
54035         * doc/posix-headers/sys_select.texi: Mention that it's missing on
54036         NonStop Kernel.
54037         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
54039 2010-12-24  Bruno Haible  <bruno@clisp.org>
54041         sys_select: Remove unneeded include.
54042         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
54043         have <sys/select.h>.
54045 2010-12-24  Bruno Haible  <bruno@clisp.org>
54047         gethostname: Provide a fallback for HOST_NAME_MAX.
54048         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
54049         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
54050         instead.
54051         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
54053 2010-12-24  Bruno Haible  <bruno@clisp.org>
54055         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
54056         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
54057         (SA_RESTART): Likewise.
54058         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
54060 2010-12-24  Bruno Haible  <bruno@clisp.org>
54062         signal: Define NSIG.
54063         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
54064         * tests/test-signal.c (nsig): New variable.
54065         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
54067 2010-12-24  Bruno Haible  <bruno@clisp.org>
54069         rename, renameat: Avoid test failures on OSF/1 5.1.
54070         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
54071         alternative error codes.
54072         * tests/test-renameat.c (main): Likewise.
54074 2010-12-24  Bruno Haible  <bruno@clisp.org>
54076         *printf: Detect large precisions bug on Solaris 10/SPARC.
54077         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
54078         by Paul Eggert.
54079         * tests/test-snprintf-posix.h (test_function): Add this test code here
54080         too.
54081         * tests/test-sprintf-posix.h (test_function): Likewise.
54082         * tests/test-vasnprintf-posix.c (test_function): Likewise.
54083         * tests/test-vasprintf-posix.c (test_function): Likewise.
54084         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
54085         around by gnulib.
54086         * doc/posix-functions/printf.texi: Likewise.
54087         * doc/posix-functions/snprintf.texi: Likewise.
54088         * doc/posix-functions/sprintf.texi: Likewise.
54089         * doc/posix-functions/vfprintf.texi: Likewise.
54090         * doc/posix-functions/vprintf.texi: Likewise.
54091         * doc/posix-functions/vsnprintf.texi: Likewise.
54092         * doc/posix-functions/vsprintf.texi: Likewise.
54093         * doc/posix-functions/dprintf.texi: Undo last commit.
54094         * doc/posix-functions/vdprintf.texi: Likewise.
54096 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
54098         tests: port test-fdutimensat.c to Solaris 8
54099         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
54100         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
54101         On Solaris 8, it fails with errno == ENOSYS, because there is no
54102         futimens (so it can't use the fd), and there is no lutimens (so it
54103         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
54105         vsnprintf: make more consistent with snprintf; doc fixes
54107         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
54108         the byte count return problem was promoted from the snprintf-posix
54109         to the snprintf module.
54110         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
54111         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
54112         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
54113         * tests/test-snprintf.c (main): Check the byte count returned.
54114         * tests/test-vsnprintf.c (main): Likewise.
54116 2010-12-23  Eric Blake  <eblake@redhat.com>
54118         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
54119         * modules/sigpipe (License): Relax license.
54121 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
54123         doc: document Solaris printf bug with large float precisions
54124         * doc/posix-functions/dprintf.texi (dprintf):
54125         * doc/posix-functions/fprintf.texi (fprintf):
54126         * doc/posix-functions/printf.texi (printf):
54127         * doc/posix-functions/snprintf.texi (snprintf):
54128         * doc/posix-functions/sprintf.texi (sprintf):
54129         * doc/posix-functions/vdprintf.texi (vdprintf):
54130         * doc/posix-functions/vfprintf.texi (vfprintf):
54131         * doc/posix-functions/vprintf.texi (vprintf):
54132         * doc/posix-functions/vsnprintf.texi (vsnprintf):
54133         * doc/posix-functions/vsprintf.texi (vsprintf):
54134         Mention that these functions mishandle large floating point
54135         precisions on Solaris 10.  The same bug is also present in Solaris
54136         8, and I assume earlier.  This causes "cd gnulib-tests; make
54137         check" to fail on Solaris 8 (and I assume, later) when building
54138         the latest coreutils, in test-vasprintf-posix's call to
54139         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
54140         the wide flavors (e.g., wprintf) so this patch just updates the
54141         documentation for the narrow ones.
54143         test-posixtm.c: add two tests
54144         * tests/test-posixtm.c: Add two tests, to highlight the
54145         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
54146         around this bug; this is merely to document it.
54148 2010-12-22  Bruno Haible  <bruno@clisp.org>
54150         getlogin_r: Work around portability problem on OSF/1.
54151         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
54152         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
54153         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
54154         test for a truncated result.
54155         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
54156         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
54157         * modules/getlogin_r (Depends-on): Add memchr.
54158         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
54160 2010-12-22  Bruno Haible  <bruno@clisp.org>
54162         ptsname: Avoid test failure on OSF/1 5.1.
54163         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
54164         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
54165         (same_slave): New function.
54166         (main): Use it to compare ptsname's result with the expected file name.
54168 2010-12-22  Bruno Haible  <bruno@clisp.org>
54170         Port extended stdio modules to HP NonStop Kernel.
54171         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
54172         macros.
54173         * lib/fbufmode.c: Update comments.
54174         * lib/fflush.c: Likewise.
54175         * lib/fpurge.c: Likewise.
54176         * lib/freadable.c: Likewise.
54177         * lib/freadahead.c: Likewise.
54178         * lib/freading.c: Likewise.
54179         * lib/freadptr.c: Likewise.
54180         * lib/freadseek.c: Likewise.
54181         * lib/fseeko.c: Likewise.
54182         * lib/fseterr.c: Likewise.
54183         * lib/fwritable.c: Likewise.
54184         * lib/fwriting.c: Likewise.
54185         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
54187 2010-12-22  Bruno Haible  <bruno@clisp.org>
54189         ttyname_r: Work around bug on OSF/1 5.1.
54190         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
54191         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
54192         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
54193         present.
54194         * lib/ttyname_r.c (ttyname_r): Update comments.
54196 2010-12-22  Bruno Haible  <bruno@clisp.org>
54198         round: Implement result sign according to IEEE 754.
54199         * lib/round.c (MIN, MINUS_ZERO): New macros.
54200         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
54201         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
54202         * tests/test-round-ieee.c (main): Likewise.
54203         * tests/test-roundl-ieee.c (main): Likewise.
54205         trunc: Implement result sign according to IEEE 754.
54206         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
54207         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
54208         * tests/test-trunc2.c: Include minus-zero.h.
54209         (MINUS_ZERO): New macro.
54210         (trunc_reference): Keep in sync with lib/trunc.c.
54211         * tests/test-truncf2.c: Include minus-zero.h.
54212         (MINUS_ZERO): New macro.
54213         (truncf_reference): Keep in sync with lib/trunc.c.
54214         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
54215         * tests/test-trunc-ieee.c (main): Likewise.
54216         * tests/test-truncl-ieee.c (main): Likewise.
54218         ceil: Implement result sign according to IEEE 754.
54219         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
54220         (FUNC): Return -0.0 for -1 < x < 0.
54221         * tests/test-ceil2.c: Include minus-zero.h.
54222         (MINUS_ZERO): New macro.
54223         (ceil_reference): Keep in sync with lib/ceil.c.
54224         * tests/test-ceilf2.c: Include minus-zero.h.
54225         (MINUS_ZERO): New macro.
54226         (ceilf_reference): Keep in sync with lib/ceil.c.
54227         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
54228         * tests/test-ceil-ieee.c (main): Likewise.
54229         * tests/test-ceill-ieee.c (main): Likewise.
54231         floor: Implement result sign according to IEEE 754.
54232         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
54233         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
54234         * tests/test-floorf2.c (floorf_reference): Likewise.
54235         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
54236         * tests/test-floor-ieee.c (main): Likewise.
54237         * tests/test-floorl-ieee.c (main): Likewise.
54239 2010-12-22  Bruno Haible  <bruno@clisp.org>
54241         getaddrinfo: Update doc.
54242         * doc/posix-functions/gai_strerror.texi: Return type is also different
54243         on AIX and HP-UX.
54245 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
54247         getaddrinfo, inet_ntop: Update doc for Solaris.
54248         * doc/posix-functions/gai_strerror.texi: Return type is also an
54249         issue on Solaris 9 and earlier.
54250         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
54251         on Solaris 10 and earlier.
54253 2010-12-21  Bruno Haible  <bruno@clisp.org>
54255         New module 'roundl-ieee'.
54256         * modules/roundl-ieee: New file.
54257         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
54258         test whether roundl works according to ISO C 99 with IEC 60559.
54259         * m4/roundl-ieee.m4: New file.
54260         * modules/roundl-ieee-tests: New file.
54261         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
54262         * tests/test-roundl.c (main): Remove signbit tests.
54263         * modules/roundl-tests (Depends-on): Remove signbit.
54264         * doc/posix-functions/roundl.texi: Mention the new module.
54266 2010-12-21  Bruno Haible  <bruno@clisp.org>
54268         New module 'truncl-ieee'.
54269         * modules/truncl-ieee: New file.
54270         * modules/truncl-ieee-tests: New file.
54271         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
54272         * tests/test-truncl.c (main): Remove signbit tests.
54273         * modules/truncl-tests (Depends-on): Remove signbit.
54274         * doc/posix-functions/truncl.texi: Mention the new module.
54276 2010-12-21  Bruno Haible  <bruno@clisp.org>
54278         New module 'ceill-ieee'.
54279         * modules/ceill-ieee: New file.
54280         * modules/ceill-ieee-tests: New file.
54281         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
54282         * tests/test-ceill.c (main): Remove signbit tests.
54283         * modules/ceill-tests (Depends-on): Remove signbit.
54284         * doc/posix-functions/ceill.texi: Mention the new module.
54286 2010-12-21  Bruno Haible  <bruno@clisp.org>
54288         New module 'floorl-ieee'.
54289         * modules/floorl-ieee: New file.
54290         * modules/floorl-ieee-tests: New file.
54291         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
54292         * tests/test-floorl.c (main): Remove signbit tests.
54293         * modules/floorl-tests (Depends-on): Remove signbit.
54294         * doc/posix-functions/floorl.texi: Mention the new module.
54296 2010-12-21  Bruno Haible  <bruno@clisp.org>
54298         New module 'round-ieee'.
54299         * modules/round-ieee: New file.
54300         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
54301         whether round works according to ISO C 99 with IEC 60559.
54302         * m4/round-ieee.m4: New file.
54303         * modules/round-ieee-tests: New file.
54304         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
54305         * tests/test-round1.c (main): Remove signbit tests.
54306         * modules/round-tests (Depends-on): Remove 'signbit'.
54307         * doc/posix-functions/round.texi: Mention the new module.
54309 2010-12-21  Bruno Haible  <bruno@clisp.org>
54311         New module 'trunc-ieee'.
54312         * modules/trunc-ieee: New file.
54313         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
54314         whether trunc works according to ISO C 99 with IEC 60559.
54315         * m4/trunc-ieee.m4: New file.
54316         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
54317         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
54318         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
54319         * modules/trunc-ieee-tests: New file.
54320         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
54321         * tests/test-trunc1.c (main): Remove signbit tests.
54322         * modules/trunc-tests (Depends-on): Remove 'signbit'.
54323         * doc/posix-functions/trunc.texi: Mention the new module.
54325 2010-12-21  Bruno Haible  <bruno@clisp.org>
54327         New module 'ceil-ieee'.
54328         * modules/ceil-ieee: New file.
54329         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
54330         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
54331         ISO C 99 with IEC 60559.
54332         * m4/ceil-ieee.m4: New file.
54333         * modules/ceil (Files): Add lib/ceil.c.
54334         (Depends-on): Add 'float'.
54335         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
54336         * lib/math.in.h (ceil): New declaration.
54337         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
54338         REPLACE_CEIL.
54339         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
54340         * modules/ceil-ieee-tests: New file.
54341         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
54342         * tests/test-math-c++.cc: Check the signature of 'ceil'.
54343         * doc/posix-functions/ceil.texi: Mention the new module.
54345 2010-12-21  Bruno Haible  <bruno@clisp.org>
54347         New module 'floor-ieee'.
54348         * modules/floor-ieee: New file.
54349         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
54350         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
54351         ISO C 99 with IEC 60559.
54352         * m4/floor-ieee.m4: New file.
54353         * modules/floor (Files): Add lib/floor.c.
54354         (Depends-on): Add 'float'.
54355         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
54356         * lib/math.in.h (floor): New declaration.
54357         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
54358         REPLACE_FLOOR.
54359         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
54360         * modules/floor-ieee-tests: New file.
54361         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
54362         * tests/test-math-c++.cc: Check the signature of 'floor'.
54363         * doc/posix-functions/floor.texi: Mention the new module.
54365 2010-12-21  Bruno Haible  <bruno@clisp.org>
54367         New module 'roundf-ieee'.
54368         * modules/roundf-ieee: New file.
54369         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
54370         test whether roundf works according to ISO C 99 with IEC 60559.
54371         * m4/roundf-ieee.m4: New file.
54372         * modules/roundf-ieee-tests: New file.
54373         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
54374         * tests/test-roundf1.c (main): Remove signbit tests.
54375         * modules/roundf-tests (Depends-on): Remove 'signbit'.
54376         * doc/posix-functions/roundf.texi: Mention the new module.
54378 2010-12-21  Bruno Haible  <bruno@clisp.org>
54380         New module 'truncf-ieee'.
54381         * modules/truncf-ieee: New file.
54382         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
54383         test whether truncf works according to ISO C 99 with IEC 60559.
54384         * m4/truncf-ieee.m4: New file.
54385         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
54386         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
54387         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
54388         * modules/truncf-ieee-tests: New file.
54389         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
54390         * tests/test-truncf1.c (main): Remove signbit tests.
54391         * modules/truncf-tests (Depends-on): Remove 'signbit'.
54392         * doc/posix-functions/truncf.texi: Mention the new module.
54394 2010-12-21  Bruno Haible  <bruno@clisp.org>
54396         New module 'ceilf-ieee'.
54397         * modules/ceilf-ieee: New file.
54398         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
54399         test whether ceilf works according to ISO C 99 with IEC 60559.
54400         * m4/ceilf-ieee.m4: New file.
54401         * modules/ceilf-ieee-tests: New file.
54402         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
54403         * tests/test-ceilf1.c (main): Remove signbit tests.
54404         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
54405         * doc/posix-functions/ceilf.texi: Mention the new module.
54407 2010-12-21  Bruno Haible  <bruno@clisp.org>
54409         New module 'floorf-ieee'.
54410         * modules/floorf-ieee: New file.
54411         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
54412         test whether floorf works according to ISO C 99 with IEC 60559.
54413         * m4/floorf-ieee.m4: New file.
54414         * modules/floorf-ieee-tests: New file.
54415         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
54416         * tests/test-floorf1.c (main): Remove signbit tests.
54417         * modules/floorf-tests (Depends-on): Remove 'signbit'.
54418         * doc/posix-functions/floorf.texi: Mention the new module.
54420 2010-12-21  Bruno Haible  <bruno@clisp.org>
54422         Support for minus zero in autoconf macros.
54423         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
54424         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
54425         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
54426         * tests/minus-zero.h: Update comments.
54428 2010-12-21  Bruno Haible  <bruno@clisp.org>
54430         Tests for module 'ceil'.
54431         * modules/ceil-tests: New file.
54432         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
54433         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
54435 2010-12-21  Bruno Haible  <bruno@clisp.org>
54437         Tests for module 'floor'.
54438         * modules/floor-tests: New file.
54439         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
54440         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
54442 2010-12-21  Bruno Haible  <bruno@clisp.org>
54444         math: Fix indentation.
54445         * lib/math.in.h (floorf): Fix indentation.
54447 2010-12-21  Bruno Haible  <bruno@clisp.org>
54449         Fix cross-compilation guesses on Solaris.
54450         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
54451         not match "solaris2.10".
54452         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
54453         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
54454         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
54456 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
54458         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
54459         This fixes a problem observed with the latest coreutils snapshot
54460         that caused a test to fail on Solaris 8.  src/csplit.c's call
54461         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
54462         earlier, instead of returning the number of bytes that would have
54463         been generated; this causes csplit to incorrectly report memory
54464         exhaustion.
54465         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
54466         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
54467         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
54468         comments to match.
54469         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
54470         Fix typo in matching older versions of Solaris: "solaris2.10"
54471         is matched by the shell pattern "solaris2.[0-9]*".  This matters
54472         only for guessing while cross-compiling.
54473         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
54475 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
54477         ftoastr: fix comment again
54478         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
54479         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00149.html>.
54480         Also, simplify example a bit by using flags = 0.
54482 2010-12-20  Bruno Haible  <bruno@clisp.org>
54484         round*, trunc*: Update documentation regarding glibc.
54485         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
54486         * doc/posix-functions/round.texi: Likewise.
54487         * doc/posix-functions/roundl.texi: Likewise.
54488         * doc/posix-functions/truncf.texi: Likewise.
54489         * doc/posix-functions/trunc.texi: Likewise.
54490         * doc/posix-functions/truncl.texi: Likewise.
54492 2010-12-20  Bruno Haible  <bruno@clisp.org>
54494         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
54495         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
54496         * doc/posix-functions/round.texi: Likewise.
54497         * doc/posix-functions/roundl.texi: Likewise.
54499 2010-12-20  Bruno Haible  <bruno@clisp.org>
54501         ttyname_r: Add missing declaration on HP-UX 11.
54502         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
54503         HAVE_TTYNAME_R.
54504         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
54505         declared. Set HAVE_TTYNAME_R always.
54506         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
54507         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
54508         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
54509         HAVE_TTYNAME_R.
54510         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
54512 2010-12-20  Bruno Haible  <bruno@clisp.org>
54514         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
54515         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
54516         * doc/posix-functions/getlogin_r.texi: Likewise.
54517         * tests/test-getlogin.c: Include <errno.h>.
54518         (main): Avoid test failure on HP-UX 11.11.
54519         * tests/test-getlogin_r.c (main): Likewise.
54521 2010-12-20  Bruno Haible  <bruno@clisp.org>
54523         getlogin_r: Add missing declaration on HP-UX 11.
54524         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
54525         declared also when it exists as a function.
54526         * doc/posix-functions/getlogin_r.texi: Document this workaround.
54528 2010-12-20  Bruno Haible  <bruno@clisp.org>
54530         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
54531         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
54532         through wcrtomb.
54534 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
54536         ftoastr: fix comment
54537         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
54538         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00130.html>.
54540 2010-12-19  Bruno Haible  <bruno@clisp.org>
54542         isnan: Ensure it is a macro.
54543         * lib/math.in.h (isnan): Define as a macro if not already a macro.
54544         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
54545         Solaris.
54547 2010-12-19  Bruno Haible  <bruno@clisp.org>
54549         ldexpl test: Fix link error on OSF/1 5.1.
54550         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
54552 2010-12-19  Bruno Haible  <bruno@clisp.org>
54554         wctype: Make it work in C++ mode on OSF/1 5.1.
54555         * lib/wctype.in.h (iswblank): Declare but not define here.
54556         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
54557         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
54558         * modules/wctype (Files): Add lib/iswblank.c.
54560 2010-12-19  Bruno Haible  <bruno@clisp.org>
54562         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
54563         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
54564         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
54566 2010-12-19  Bruno Haible  <bruno@clisp.org>
54568         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
54569         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
54570         _POSIX_PII_SOCKET.
54571         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
54572         * doc/posix-functions/recvfrom.texi: Likewise.
54573         * doc/posix-functions/send.texi: Likewise.
54574         * doc/posix-functions/sendto.texi: Likewise.
54576 2010-12-19  Bruno Haible  <bruno@clisp.org>
54578         tcgetsid: Add missing declaration on OSF/1 5.1.
54579         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
54580         HAVE_TCGETSID.
54581         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
54582         Don't set HAVE_TCGETSID.
54583         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
54584         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
54585         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
54586         HAVE_TCGETSID.
54587         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
54589 2010-12-19  Bruno Haible  <bruno@clisp.org>
54591         stdio: Fix problem with popen() declaration on OSF/1 5.1.
54592         * lib/stdio.in.h: During the include_next statement, let recursive
54593         includes of this file include only the system header file.
54595 2010-12-19  Bruno Haible  <bruno@clisp.org>
54597         iconv_open: Fix regression from 2010-12-04.
54598         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
54599         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
54601 2010-12-19  Bruno Haible  <bruno@clisp.org>
54603         stdbool test: Avoid a gcc warning.
54604         * tests/test-stdbool.c (main): Fail if e1 is false.
54605         Reported by Jim Meyering.
54607 2010-12-19  Jim Meyering  <meyering@redhat.com>
54609         setenv: restore to working order
54610         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
54611         mistakenly removed.
54612         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
54613         HAVE_SETENV.
54614         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
54615         HAVE_SETENV.
54617 2010-12-19  Bruno Haible  <bruno@clisp.org>
54619         Document some different function declarations on OSF/1 5.1.
54620         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
54621         * doc/posix-functions/inet_ntop.texi: Likewise.
54622         * doc/posix-functions/gethostname.texi: Likewise.
54623         * lib/unistd.in.h (gethostname): Update comment.
54625 2010-12-19  Bruno Haible  <bruno@clisp.org>
54627         doc: Mention vasprintf-posix module.
54628         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
54629         the 'vasprintf-posix' module.
54630         * doc/glibc-functions/vasprintf.texi: Likewise.
54632 2010-12-19  Bruno Haible  <bruno@clisp.org>
54634         unsetenv: Add missing declaration on OSF/1 5.1.
54635         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
54636         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
54637         Don't set HAVE_UNSETENV. In the test program, set _BSD.
54638         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
54639         not HAVE_UNSETENV.
54640         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
54641         HAVE_UNSETENV.
54642         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
54644 2010-12-19  Bruno Haible  <bruno@clisp.org>
54646         setenv: Add missing declaration on OSF/1 5.1.
54647         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
54648         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
54649         declared. Don't set HAVE_SETENV.
54650         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
54651         not HAVE_SETENV.
54652         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
54653         HAVE_SETENV.
54654         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
54656 2010-12-19  Bruno Haible  <bruno@clisp.org>
54658         nl_langinfo tests: Avoid gcc warning.
54659         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
54661 2010-12-19  Bruno Haible  <bruno@clisp.org>
54663         mknod: Avoid error in C++ mode on OSF/1 with GCC.
54664         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
54665         _GL_CXXALIAS_SYS.
54667 2010-12-19  Bruno Haible  <bruno@clisp.org>
54669         stdbool: Relax test.
54670         * tests/test-stdbool.c (e): Don't require that casts from a variable's
54671         address to 'bool' work in static initializer, for compilers other than
54672         GCC.
54674 2010-12-19  Bruno Haible  <bruno@clisp.org>
54676         ftello: Add missing declaration on OSF/1 5.1.
54677         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
54678         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
54679         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
54680         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
54681         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
54683 2010-12-19  Bruno Haible  <bruno@clisp.org>
54685         fseeko: Add missing declaration on OSF/1 5.1.
54686         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
54687         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
54688         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
54689         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
54690         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
54692 2010-12-19  Bruno Haible  <bruno@clisp.org>
54694         fchdir: Add missing declaration on OSF/1 5.1.
54695         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
54696         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
54697         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
54698         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
54699         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
54701 2010-12-19  Bruno Haible  <bruno@clisp.org>
54703         relocatable-prog-wrapper: Separate from relocatable-prog.
54704         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
54705         uninstall-relocwrapper rule here.
54706         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
54707         Reported by Ian Beckwith <ianb@erislabs.net>.
54709 2010-12-19  Bruno Haible  <bruno@clisp.org>
54711         unistr/u8-mbsnlen: Add missing dependency.
54712         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
54713         Reported by Ian Beckwith <ianb@erislabs.net>.
54715 2010-12-19  Bruno Haible  <bruno@clisp.org>
54717         iconv: Make it possible again to use this module without 'iconv-h'.
54718         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
54719         if it is not defined.
54720         Reported by Ian Beckwith <ianb@erislabs.net>.
54722 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
54724         acl: port to Solaris 8 when copying from tmpfs to ufs
54725         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
54726         error number.  Problem observed on Solaris 8 with latest
54727         coreutils, with "mv A B", where A is on a tmpfs file system and B
54728         is on a ufs file system.  This caused coreutils' mv/part-symlink
54729         test to fail.
54731         tests: set fail=0 at start
54732         * tests/init.sh (setup_): Move fail=0 initialization here ...
54733         (mktempd_): ... from here, so that tests can rely on fail being
54734         set to 0 initially.  This fixes a problem in coreutils; see:
54735         http://lists.gnu.org/r/coreutils/2010-12/msg00083.html
54737 2010-12-18  Bruno Haible  <bruno@clisp.org>
54739         memmem-simple: Stylistic changes.
54740         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
54741         Fix preprocessor directive indentation.
54743 2010-12-15  Pádraig Brady  <P@draigBrady.com>
54745         memmem, memmem-simple: reorganize and expand empty needle check
54746         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
54747         functional checks to memmem-simple so that one has a fully functional
54748         memmem by using just this module.
54749         Restrict the performance only check to the memmem module.
54750         Also expand the empty needle check to ensure the correct
54751         pointer is returned, not just a non NULL pointer.
54752         * doc/glibc-functions/memmem.texi: Rearrange the portability
54753         documentation to correlate with the rearranged checks.
54754         Clarify exactly how the memmem and memmem-simple modules
54755         relate to each other.
54757 2010-12-15  Pádraig Brady  <P@draigBrady.com>
54758             Bruno Haible  <bruno@clisp.org>
54760         Improve cross-compilation guesses for uClibc.
54761         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
54762         that uClibc does not have the glibc bug.
54763         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
54764         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
54766 2010-12-14  Eric Blake  <eblake@redhat.com>
54768         configmake: provide fallbacks for oldest supported autotools
54769         * m4/configmake.m4: New file.
54770         * modules/configmake (Files): Ship it.
54771         (configure.ac): Use it to guarantee fallbacks.
54773 2010-12-13  Pádraig Brady  <P@draigBrady.com>
54775         read-file: Improve handling of large files
54776         * lib/read-file.c (fread_file): Minimize realloc()s
54777         for regular files, and better manage sizes around SIZE_MAX.
54779 2010-12-13  Eric Blake  <eblake@redhat.com>
54781         cloexec, fcntl: relax license
54782         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
54783         consent from all contributors.
54784         * modules/fcntl (License): Likewise.
54786 2010-12-10  Bruno Haible  <bruno@clisp.org>
54788         Tests for module 'pipe-posix'.
54789         * modules/pipe-posix-tests: New file.
54790         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
54792 2010-12-10  Bruno Haible  <bruno@clisp.org>
54794         pipe-posix: Make it work in C++ mode.
54795         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
54796         (pipe): Use common idiom, not a macro definition.
54797         * lib/pipe.c: New file.
54798         * m4/pipe.m4: New file.
54799         * modules/pipe-posix (Description): Enhance.
54800         (Files): Add lib/pipe.c, m4/pipe.m4.
54801         (configure.ac): Invoke gl_FUNC_PIPE.
54802         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
54803         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
54804         * tests/test-unistd-c++.cc: Check the signature of pipe.
54806 2010-12-10  Bruno Haible  <bruno@clisp.org>
54808         Rename module 'pipe' to 'spawn-pipe'.
54809         * modules/spawn-pipe: New file, renamed from modules/pipe.
54810         (Files, configure.ac, Makefile.am): Update.
54811         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
54812         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
54813         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
54814         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
54815         "spawn-pipe.h" instead of "pipe.h".
54816         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
54817         to gl_SPAWN_PIPE.
54818         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
54819         (Files, Makefile.am): Update.
54820         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
54821         Update.
54822         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
54823         Include "spawn-pipe.h" instead of "pipe.h".
54824         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
54825         * lib/javacomp.c: Likewise.
54826         * lib/javaversion.c: Likewise.
54827         * lib/pipe-filter-gi.c: Likewise.
54828         * lib/pipe-filter-ii.c: Likewise.
54829         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
54830         * modules/javacomp (Depends-on): Likewise.
54831         * modules/javaversion (Depends-on): Likewise.
54832         * modules/pipe-filter-gi (Depends-on): Likewise.
54833         * modules/pipe-filter-ii (Depends-on): Likewise.
54834         * MODULES.html.sh (Executing programs): Update.
54835         * NEWS: Mention the change.
54837 2010-12-10  Eric Blake  <eblake@redhat.com>
54839         pipe-posix: new module
54840         * modules/pipe-posix: New file.
54841         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
54842         (gl_UNISTD_H): Check for declaration.
54843         * modules/unistd (Makefile.am): Substitute it.
54844         * lib/unistd.in.h (pipe): Provide it for mingw.
54845         * doc/posix-functions/pipe.texi (pipe): Update documentation.
54846         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
54848 2010-12-07  Bruno Haible  <bruno@clisp.org>
54850         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
54851         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
54852         u8_strcmp_gnu.
54853         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
54855 2010-12-06  Bruno Haible  <bruno@clisp.org>
54857         Update internal documentation.
54858         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
54860 2010-12-04  Bruno Haible  <bruno@clisp.org>
54862         Put more information about failed tests into the test return codes.
54863         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
54864         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
54865         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
54866         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
54867         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
54868         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
54869         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
54870         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
54871         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
54872         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
54873         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
54874         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
54875         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
54876         * m4/stdint.m4 (gl_STDINT_H): Likewise.
54877         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
54878         returns a bit mask.
54879         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
54880         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
54881         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
54882         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
54883         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
54884         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
54885         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
54886         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
54887         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
54888         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
54889         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
54890         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
54891         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
54892         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
54893         * m4/link.m4 (gl_FUNC_LINK): Likewise.
54894         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
54895         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
54896         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
54897         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
54898         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
54899         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
54900         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
54901         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
54902         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
54903         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
54904         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
54905         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
54906         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
54907         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
54908         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
54909         gl_PRINTF_PRECISION): Likewise.
54910         * m4/regex.m4 (gl_REGEX): Likewise.
54911         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
54912         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
54913         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
54914         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
54915         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
54916         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
54917         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
54918         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
54919         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
54920         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
54921         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
54922         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
54923         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
54924         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
54925         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
54926         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
54927         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
54928         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
54929         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
54930         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
54931         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
54932         enumerated value.
54933         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
54935 2010-12-04  Bruno Haible  <bruno@clisp.org>
54937         Update for Solaris 11 2010-11.
54938         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
54939         Express, released in November 2010.
54941 2010-12-04  Bruno Haible  <bruno@clisp.org>
54943         nproc: Relax license.
54944         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
54945         and Paul Eggert.
54946         Requested by Ludovic Courtès <ludo@gnu.org>.
54948 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
54950         utimecmp: fine-grained src to nearby coarse-grained dest
54952         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
54953         and the source is on a file system with higher-resolution time
54954         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
54955         not work, and the time stamps are close together, the algorithm to
54956         determine the exact resolution from the read-back mtime was buggy:
54957         it had a "!=" where it should have had an "==".  This bug has been
54958         in the code ever since it was introduced to gnulib.
54959         Problem reported by Dan Jacobson in
54960         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
54962 2010-11-30  Bruno Haible  <bruno@clisp.org>
54964         strerror_r-posix: Fix autoconf test.
54965         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
54967 2010-11-28  Bruno Haible  <bruno@clisp.org>
54968             Paul Eggert  <eggert@cs.ucla.edu>
54970         Tests for module 'getdomainname'.
54971         * modules/getdomainname-tests: New file.
54972         * tests/test-getdomainname.c: New file, based on
54973         tests/test-gethostname.c.
54975 2010-11-28  Bruno Haible  <bruno@clisp.org>
54976             Paul Eggert  <eggert@cs.ucla.edu>
54978         getdomainname: Use the system function when possible.
54979         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
54980         (getdomainname): Replace if needed. Provide the declaration if it is
54981         missing. Don't use _GL_CXXALIAS_SYS_CAST.
54982         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
54983         (getdomainname): When the system has getdomainname, call the system
54984         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
54985         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
54986         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
54987         found in libnsl. Look for the declaration also in <netdb.h>. Replace
54988         the function if its second argument is of type 'int' or if it is found
54989         in libnsl.
54990         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
54991         <sys/systeminfo.h> and sysinfo().
54992         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
54993         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
54994         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
54995         HAVE_GETDOMAINNAME.
54996         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
54997         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
54998         * doc/glibc-functions/getdomainname.texi: Document the problems with
54999         the getdomainname declaration.
55001 2010-11-28  Bruno Haible  <bruno@clisp.org>
55003         sys_socket: Ensure ss_family field on AIX.
55004         * lib/sys_socket.in.h (ss_family): New macro definition.
55005         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
55006         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
55007         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
55008         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
55009         * modules/sys_socket (Makefile.am): Substitute
55010         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
55011         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
55013 2010-11-27  Bruno Haible  <bruno@clisp.org>
55015         readline: Improve configure output.
55016         * m4/readline.m4 (gl_FUNC_READLINE): Make the
55017         "checking for readline..." result understandable.
55019 2010-11-27  Bruno Haible  <bruno@clisp.org>
55021         *printf-posix: Detect a bug on Solaris 10/x86.
55022         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
55023         for floating-point output.
55024         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
55025         directive.
55026         * tests/test-snprintf-posix.h (test_function): Likewise.
55027         * tests/test-sprintf-posix.h (test_function): Likewise.
55028         * tests/test-vasprintf-posix.c (test_function): Likewise.
55029         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
55030         * doc/posix-functions/printf.texi: Likewise.
55031         * doc/posix-functions/snprintf.texi: Likewise.
55032         * doc/posix-functions/sprintf.texi: Likewise.
55033         * doc/posix-functions/vfprintf.texi: Likewise.
55034         * doc/posix-functions/vprintf.texi: Likewise.
55035         * doc/posix-functions/vsnprintf.texi: Likewise.
55036         * doc/posix-functions/vsprintf.texi: Likewise.
55037         * doc/glibc-functions/obstack_printf.texi: Likewise.
55038         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
55040 2010-11-27  Bruno Haible  <bruno@clisp.org>
55042         Fix link error when module libunistring-optional is in use.
55043         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
55044         * modules/striconveha-tests (Makefile.am): Likewise.
55046 2010-11-27  Bruno Haible  <bruno@clisp.org>
55048         regex: Mention link dependencies.
55049         * modules/regex (Link): New section.
55050         * modules/rpmatch (Link): Likewise.
55051         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
55053 2010-11-27  Bruno Haible  <bruno@clisp.org>
55055         ftoastr: Fix compilation error on Solaris.
55056         * lib/ftoastr.c: Include <config.h>.
55058 2010-11-27  Bruno Haible  <bruno@clisp.org>
55060         getloadavg: Update documentation.
55061         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
55063 2010-11-27  Bruno Haible  <bruno@clisp.org>
55065         sys_socket: Fix test whether the functions are declared.
55066         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
55067         not <sys/select.h>.
55069 2010-11-27  Bruno Haible  <bruno@clisp.org>
55071         getpass: Make sure to get system declaration on some platforms.
55072         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
55073         gl_USE_SYSTEM_EXTENSIONS.
55074         * modules/getpass (Depends-on): Add extensions.
55076 2010-11-26  Bruno Haible  <bruno@clisp.org>
55078         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
55079         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
55080         'iconv' module is present.
55081         (ICONV_CONST): New macro.
55082         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
55083         ICONV_CONST.
55084         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
55085         set ICONV_CONST.
55086         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
55087         here.
55088         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
55089         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
55090         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
55091         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
55092         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
55093         present.
55095 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
55097         ftoastr: comment fix
55098         * lib/ftoastr.c: "little" -> "little or no" in comment
55100 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
55102         stdint: port to GCC 4.3 + OSX + Octave
55103         On this platform, stdint.h is buggy and defines int64_t to long
55104         long int.  The replacement defined it to long int, causing
55105         problems with C++ style name mangling.  Instead, trust the system
55106         definition if INT64_MAX is defined, and likewise for the unsigned
55107         variant.   Problem reported by Jarno Rajahalme in
55108         <http://lists.gnu.org/r/bug-gnulib/2010-04/msg00143.html>.
55109         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
55110         and don't mess with int64_t and INT64_MAX in this case.
55111         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
55113 2010-11-24  Bruno Haible  <bruno@clisp.org>
55115         doc: Corrections regarding MacOS X 10.4 and 10.5.
55116         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
55117         MacOS X.
55118         Reported by Simon Josefsson.
55120 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
55122         Uninstall ".bin" files installed by relocwrapper.
55123         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
55124         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
55125         unless it is already there.
55127 2010-11-21  Bruno Haible  <bruno@clisp.org>
55129         Update for NetBSD 5.0.
55130         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
55131         NetBSD; the test fails on NetBSD 5.0.
55132         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
55133         about NetBSD.
55135 2010-11-21  Bruno Haible  <bruno@clisp.org>
55137         Update for HP-UX 11.23 and HP-UX 11.31.
55138         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
55139         HP-UX.
55141 2010-11-21  Bruno Haible  <bruno@clisp.org>
55143         Update for MacOS X 10.5.
55144         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
55145         MacOS X; the test fails on MacOS X 10.5.8.
55146         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
55147         about MacOS X.
55149 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
55151         bootstrap: add bootstrap_sync option.
55152         See discussion at
55153         <http://lists.gnu.org/r/bug-gnulib/2010-10/msg00369.html>,
55154         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00200.html>.
55155         * build-aux/bootstrap: Accept --bootstrap-sync to update
55156         bootstrap if it is not identical to the local gnulib's
55157         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
55158         enable this by default.  Accept --no-bootstrap-sync to disable
55159         it.
55161 2010-11-20  Bruno Haible  <bruno@clisp.org>
55163         Ensure that <features.h> is included before __GLIBC__ is tested.
55164         * lib/printf-parse.h: Include <features.h>.
55165         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
55166         Reported by Mike Frysinger <vapier@gentoo.org>.
55168         Ensure that <features.h> is included before __GLIBC__ is tested.
55169         * lib/wchar.in.h: Include <features.h>.
55170         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
55171         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
55172         Reported by Mike Frysinger <vapier@gentoo.org>.
55174         Ensure that <features.h> is included before __GLIBC__ is tested.
55175         * lib/arpa_inet.in.h: Include <features.h>.
55176         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
55177         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
55178         Reported by Mike Frysinger <vapier@gentoo.org>.
55180         Ensure that <features.h> is included before __GLIBC__ is tested.
55181         * build-aux/link-warning.h: Include <features.h>.
55182         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
55183         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
55184         Reported by Mike Frysinger <vapier@gentoo.org>.
55186         Ensure that <features.h> is included before __GLIBC__ is tested.
55187         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
55188         Reported by Mike Frysinger <vapier@gentoo.org>.
55190 2010-11-20  Bruno Haible  <bruno@clisp.org>
55192         memmem: Fix autoconf test.
55193         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
55195 2010-11-20  Bruno Haible  <bruno@clisp.org>
55197         Port to uClibc.
55198         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
55199         * lib/fcntl.in.h: Likewise.
55200         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
55201         * lib/mbrtowc.c (mbrtowc): Likewise.
55202         * lib/relocatable.c (find_shared_library_fullname): Likewise.
55203         * lib/strerror_r.c: Likewise.
55204         * lib/unistr/u8-strnlen.c: Likewise.
55205         * lib/vasnprintf.c (decimal_point_char): Likewise.
55206         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
55207         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
55208         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
55209         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
55210         * tests/test-sigaction.c (handler, main): Likewise.
55211         * lib/freading.h: Treat uClibc like a non-glibc platform.
55212         * lib/freading.c: Likewise.
55213         * lib/gettext.h: Likewise.
55214         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
55215         Likewise.
55216         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
55217         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
55218         * lib/propername.c (proper_name_utf8): Likewise.
55219         * lib/spawn.in.h: Likewise.
55220         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
55221         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
55222         mem_cd_iconveh_internal): Likewise.
55223         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
55224         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
55225         strstr, strcasestr): Likewise.
55226         * lib/unicodeio.c (unicode_to_mb): Likewise.
55227         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
55228         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
55229         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
55230         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
55231         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
55232         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
55233         * lib/unistr/u8-stpncpy.c: Likewise.
55234         * lib/vasnprintf.c (VASNPRINTF): Likewise.
55235         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
55236         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
55237         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
55238         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
55239         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
55240         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
55241         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
55242         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
55243         Likewise.
55244         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
55245         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
55246         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
55247         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
55248         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
55249         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
55250         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
55251         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
55252         * tests/test-getopt.h (OPTIND_MIN): Likewise.
55253         * tests/test-striconveha.c (main): Likewise.
55254         * tests/test-vasnprintf-posix.c (test_function): Likewise.
55255         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
55256         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
55257         * doc/posix-functions/getline.texi: Likewise.
55258         Reported by Mike Frysinger <vapier@gentoo.org>.
55260 2010-11-20  Bruno Haible  <bruno@clisp.org>
55262         nproc: Fix condition.
55263         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
55264         HAVE_PTHREAD_AFFINITY_NP.
55266 2010-11-20  Bruno Haible  <bruno@clisp.org>
55268         Fix a comment.
55269         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
55271 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
55273         ftoastr: don't assume snprintf
55274         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
55275         Implement a subset of snprintf here, by using sprintf safely.
55276         * modules/ftoastr (Depends-on): Remove snprintf.
55278 2010-11-19  Jim Meyering  <meyering@redhat.com>
55280         test-rename.h: fix compilation failure
55281         * tests/test-rename.h (test_rename): Add omitted "}".
55283 2010-11-17  Jim Meyering  <meyering@redhat.com>
55285         maint.mk: add a URL discussing the no-@acronym policy
55286         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
55288 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
55290         ftoastr: depend on snprintf, improve comments
55291         * lib/ftoastr.c: Also mention Loitsch's draft.
55292         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
55293         needed in the current implementation, but it might simplify
55294         speeding up the code later.
55295         * modules/ftoastr: Depend on snprintf; this improves portability.
55296         Suggested by Bruno Haible in the same email.
55298         ftoastr: port to hosts lacking strtof and strtold
55299         Problem reported by Bruno Haible in
55300         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00242.html>.
55301         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
55302         environment and strtold (and presumably strtof) are not available.
55303         * modules/ftoastr (Files): Add m4/c-strtod.m4.
55304         (configure.ac): Require gl_C99_STRTOLD.
55306 2010-11-18  Bruno Haible  <bruno@clisp.org>
55308         c-strtold: Avoid link error on AIX 7.
55309         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
55310         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
55311         (gl_C_STRTOLD): Test whether strtold_l exists.
55312         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
55314 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
55316         intprops: new macro INT_BITS_STRLEN_BOUND
55317         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
55318         ftoastr.h.  This exposes an internal of intprops.h that was formerly
55319         not exposed.  Also, it uses a slightly tighter bound than before;
55320         though this makes no practical difference, we might as well be as
55321         tight as we easily can.
55323         ftoastr: new module, for lossless conversion of floats to short strings
55324         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
55325         * modules/ftoastr: New files.
55327 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
55329         bootstrap: port to Solaris sed
55330         * build-aux/bootstrap (get_version): Port to Solaris sed.
55331         See Ralf Wildenhues's note in
55332         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00156.html>.
55334 2010-11-14  Jim Meyering  <meyering@redhat.com>
55336         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
55337         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
55338         and move definition closer to sole use.
55340 2010-11-13  Jim Meyering  <meyering@redhat.com>
55342         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
55343         Now we require at least autoconf-2.59, which means the work-around
55344         is no longer needed.
55345         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
55346         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
55347         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
55348         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
55349         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
55351 2010-11-13  Bruno Haible  <bruno@clisp.org>
55353         rename, renameat: Avoid test failures at NFS mounted locations.
55354         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
55355         functions.
55356         (test_rename): Use assert_nonexistent.
55357         * tests/test-rename.c: Include <dirent.h>.
55358         * tests/test-renameat.c: Likewise.
55359         Reported by Gary V. Vaughan <gary@gnu.org>.
55361         rename, renameat: Document Linux bug with NFS
55362         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00154.html>.
55363         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
55364         * doc/posix-functions/renameat.texi: Likewise.
55365         Suggested by Eric Blake.
55367 2010-11-13  Bruno Haible  <bruno@clisp.org>
55369         rename test: Add comments.
55370         * tests/test-rename.h (test_rename): Add structure and comments.
55372 2010-11-13  Eric Blake  <eblake@redhat.com>
55374         maintainer-makefile: cover a few more files
55375         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
55376         scripts generated within C files, for libvirt.
55378 2010-11-13  Bruno Haible  <bruno@clisp.org>
55380         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
55381         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
55382         character, return the number of bytes that belong together, not always
55383         1.
55384         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
55385         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
55386         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
55387         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
55388         number of bytes of an invalid character.
55389         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
55390         (main): Invoke it.
55391         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
55392         results.
55393         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
55394         malformed byte sequences.
55395         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
55396         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
55397         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
55398         Reported by Ben Pfaff and Paolo Bonzini.
55400 2010-11-13  Bruno Haible  <bruno@clisp.org>
55402         openat: Work around glibc bug with fchownat() and empty file names.
55403         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
55404         (gl_FUNC_FCHOWNAT): Invoke it.
55405         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
55406         * doc/posix-functions/fchownat.texi: Document the glibc bug.
55407         Reported by Gary V. Vaughan <gary@gnu.org>.
55409 2010-11-13  Bruno Haible  <bruno@clisp.org>
55411         openat: Ensure autoconf macro ordering.
55412         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
55413         gl_USE_SYSTEM_EXTENSIONS.
55414         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
55416 2010-11-13  Bruno Haible  <bruno@clisp.org>
55418         Update comments.
55419         * lib/unistr/u8-check.c: Update file name in comments.
55420         * lib/unistr/u8-mblen.c: Likewise.
55421         * lib/unistr/u8-prev.c: Likewise.
55422         * lib/unistr/u8-strmblen.c: Likewise.
55423         * lib/unistr/u8-strmbtouc.c: Likewise.
55425 2010-11-13  Jim Meyering  <meyering@redhat.com>
55427         tests: avoid test failure on Solaris 10 due to lack of PATH export
55428         * tests/test-update-copyright.sh: Don't forget to export PATH.
55430         init.sh: ensure that IFS is defined, just in case...
55431         * tests/init.sh (setup_): Ensure that IFS is defined,
55432         so that saving and restoring it works as expected.  This
55433         appears to be useful at least for an old version of dash
55434         from a long time ago (RH 6).  See here for details:
55435         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
55437         maint.mk: tighten "test a == b" check
55438         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
55439         test to files that contain something like #!/bin/sh.
55440         Without this, coreutils would get two false positives in
55441         the comments of C source files.
55443 2010-11-12  Eric Blake  <eblake@redhat.com>
55445         bootstrap: fix typo in previous attempt
55446         * build-aux/bootstrap (buildreq): Correct the grouping.
55447         Reported by Paul Eggert.
55449         maintainer-makefile: prohibit test x == x
55450         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
55451         Based on a report by Matthias Bolte.
55453         bootstrap: allow FreeBSD gzip
55454         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
55455         which has no '.' and goes to stderr.
55456         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
55457         Reported by Matthias Bolte.
55459         maintainer-makefile: check for i18n setup
55460         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
55461         will likely work.
55463 2010-11-12  Bruno Haible  <bruno@clisp.org>
55465         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
55466         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
55467         * lib/nanosleep.c (nanosleep): Likewise.
55469 2010-11-11  Bruno Haible  <bruno@clisp.org>
55471         fcntl-h: Fix for use of C++ on glibc systems.
55472         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
55473         also on glibc systems in C++ mode.
55474         Reported by Gary V. Vaughan <gary@gnu.org>.
55476 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
55478         mknod: avoid false failure with dash
55479         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
55481 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
55483         unlink: Fix "is it should" typo in diagnostic.
55484         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
55485         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00106.html>.
55487 2010-11-11  Bruno Haible  <bruno@clisp.org>
55489         Tests for module 'strerror_r-posix'.
55490         * modules/strerror_r-posix-tests: New file.
55491         * tests/test-strerror_r.c: New file.
55492         * tests/test-string-c++.cc: Check the signature of strerror_r.
55494         New module 'strerror_r-posix'.
55495         * lib/string.in.h (strerror_r): New declaration.
55496         * lib/strerror_r.c: New file.
55497         * m4/strerror_r.m4: New file.
55498         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
55499         of strerror_r.
55500         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
55501         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
55502         * modules/strerror_r-posix: New file.
55503         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
55504         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
55505         * doc/posix-functions/strerror_r.texi: Mention the new module and the
55506         portability problems.
55508 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
55510         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
55511         line is also considered for output. Quoted function name in shell
55512         command, so temporary files for functions like MyClass::operator()
55513         are removed correctly without errors.
55515 2010-11-09  Bruno Haible  <bruno@clisp.org>
55517         * doc/posix-functions/strerror.texi: List more failing platforms.
55519         * doc/posix-functions/strerror.texi: Add a comment.
55521 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
55523         fdopendir: fix bug on MacOS X when low on file descriptors
55525         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
55526         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
55527         All callers changed.
55528         (fdopendir): Invoke save_cwd at the top level, not after using
55529         multiple dup() calls to use up file descriptors.  Then retry
55530         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
55531         less than the maximum number of open file descriptors, because
55532         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
55533         on Mac OS X 10.6.4 for tar 1.24
55534         <http://lists.gnu.org/r/bug-tar/2010-10/msg00084.html>
55535         <http://lists.gnu.org/r/bug-tar/2010-11/msg00000.html>
55536         and for tar 1.25
55537         <http://lists.gnu.org/r/bug-tar/2010-11/msg00038.html>.
55539 2010-11-07  Bruno Haible  <bruno@clisp.org>
55541         vasnprintf: Support I flag on glibc systems.
55542         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
55543         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
55544         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
55545         snprintf function.
55546         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
55547         glibc systems.
55548         * tests/test-vasnprintf-posix3.c: New file.
55549         * modules/vasnprintf-posix-tests (Files): Add it.
55550         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
55552 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
55554         [html] Fix copy/paste bug: Use unique name for compiler warnings.
55555         * MODULES.html.sh: For compiler warnings, use name
55556         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
55558 2010-11-05  Eric Blake  <eblake@redhat.com>
55560         ceil, floor: avoid spurious failure with icc
55561         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
55562         [denormals-as-zero] when optimizing without -mieee-fp option.
55563         * tests/test-floorf2.c (floorf_reference): Likewise.
55564         * tests/test-ceilf1.c (dummy): New function.
55565         (main): Use it to outsmart icc's optimization.
55566         * tests/test-floorf1.c (dummy, main): Likewise.
55568         tests: require working signbit
55569         * modules/ceilf-tests (Depends-on): Add signbit.
55570         * modules/ceill-tests (Depends-on): Likewise.
55571         * modules/floorf-tests (Depends-on): Likewise.
55572         * modules/floorl-tests (Depends-on): Likewise.
55573         * modules/round-tests (Depends-on): Likewise.
55574         * modules/roundf-tests (Depends-on): Likewise.
55575         * modules/roundl-tests (Depends-on): Likewise.
55576         * modules/trunc-tests (Depends-on): Likewise.
55577         * modules/truncf-tests (Depends-on): Likewise.
55578         * modules/truncl-tests (Depends-on): Likewise.
55580         strtod: work around icc bug
55581         * lib/strtod.c (minus_zero): Define to working value.
55582         (strtod): Use it to avoid icc bug.
55584         copysign: enhance tests
55585         * modules/copysign-tests (Files): Add minus-zero.h.
55586         * tests/test-copysign.c (main): Also test zeros.
55588 2010-11-04  Eric Blake  <eblake@redhat.com>
55590         ceil, floor, round, trunc: enhance tests of -0
55591         * tests/test-ceilf1.c (main): Ensure correct sign of result.
55592         * tests/test-ceill.c (main): Likewise.
55593         * tests/test-floorf1.c (main): Likewise.
55594         * tests/test-floorl.c (main): Likewise.
55595         * tests/test-round1.c (main): Likewise.
55596         * tests/test-roundf1.c (main): Likewise.
55597         * tests/test-roundl.c (main): Likewise.
55598         * tests/test-trunc1.c (main): Likewise.
55599         * tests/test-truncf1.c (main): Likewise.
55600         * tests/test-truncl.c (main): Likewise.
55602 2010-11-04  Eric Blake  <eblake@redhat.com>
55604         frexp, tests: work around ICC bug with -zero
55605         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
55606         works with more compilers.
55607         * tests/minus-zero.h: New file.
55608         * modules/ceilf-tests (Files): Include it.
55609         * modules/ceill-tests (Files): Likewise.
55610         * modules/floorf-tests (Files): Likewise.
55611         * modules/floorl-tests (Files): Likewise.
55612         * modules/frexp-nolibm-tests (Files): Likewise.
55613         * modules/frexp-tests (Files): Likewise.
55614         * modules/frexpl-nolibm-tests (Files): Likewise.
55615         * modules/frexpl-tests (Files): Likewise.
55616         * modules/isnan-tests (Files): Likewise.
55617         * modules/isnand-nolibm-tests (Files): Likewise.
55618         * modules/isnand-tests (Files): Likewise.
55619         * modules/isnanf-nolibm-tests (Files): Likewise.
55620         * modules/isnanf-tests (Files): Likewise.
55621         * modules/isnanl-nolibm-tests (Files): Likewise.
55622         * modules/isnanl-tests (Files): Likewise.
55623         * modules/round-tests (Files): Likewise.
55624         * modules/roundf-tests (Files): Likewise.
55625         * modules/roundl-tests (Files): Likewise.
55626         * modules/ldexpl-tests (Files): Likewise.
55627         * modules/signbit-tests (Files): Likewise.
55628         * modules/snprintf-posix-tests (Files): Likewise.
55629         * modules/sprintf-posix-tests (Files): Likewise.
55630         * modules/strtod-tests (Files): Likewise.
55631         * modules/trunc-tests (Files): Likewise.
55632         * modules/truncf-tests (Files): Likewise.
55633         * modules/truncl-tests (Files): Likewise.
55634         * modules/vsnprintf-posix-tests (Files): Likewise.
55635         * modules/vsprintf-posix-tests (Files): Likewise.
55636         * modules/vasnprintf-posix-tests (Files): Likewise.
55637         * modules/vasprintf-posix-tests (Files): Likewise.
55638         * tests/test-ceilf1.c (main): Use it.
55639         * tests/test-ceill.c (main): Likewise.
55640         * tests/test-floorf1.c (main): Likewise.
55641         * tests/test-floorl.c (main): Likewise.
55642         * tests/test-frexp.c (main): Likewise.
55643         * tests/test-frexpl.c (main): Likewise.
55644         * tests/test-isnan.c (main): Likewise.
55645         * tests/test-isnand.h (main): Likewise.
55646         * tests/test-isnanf.h (main): Likewise.
55647         * tests/test-isnanl.h (main): Likewise.
55648         * tests/test-ldexpl.c (main): Likewise.
55649         * tests/test-round.c (main): Likewise.
55650         * tests/test-roundf.c (main): Likewise.
55651         * tests/test-roundl.c (main): Likewise.
55652         * tests/test-signbit.c (test_signbitf, test_signbitd)
55653         (test_signbitl): Likewise.
55654         * tests/test-snprintf-posix.h (test_function): Likewise.
55655         * tests/test-sprintf-posix.h (test_function): Likewise.
55656         * tests/test-strtod.c (main): Likewise.
55657         * tests/test-trunc1.c (main): Likewise.
55658         * tests/test-truncf1.c (main): Likewise.
55659         * tests/test-truncl.c (main): Likewise.
55661         isnanl: work around icc bug
55662         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
55664 2010-11-03  Eric Blake  <eblake@redhat.com>
55666         tests: fix compiler warnings
55667         * tests/test-getopt.h (test_getopt): Fix condition.
55668         * tests/test-getopt_long.h (test_getopt_long): Likewise.
55669         * tests/test-pipe2.c (main): Likewise.
55670         * tests/test-quotearg-simple.c (main): Avoid icc warning.
55672         utimens: fix broken m4 test
55673         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
55675 2010-10-28  Bruno Haible  <bruno@clisp.org>
55677         posix_spawn*, getdtablesize: Relax license.
55678         * modules/posix_spawn (License): Change to LGPLv2+.
55679         * modules/posix_spawnp (License): Likewise.
55680         * modules/posix_spawn-internal (License): Likewise.
55681         * modules/posix_spawnattr_init (License): Likewise.
55682         * modules/posix_spawnattr_getflags (License): Likewise.
55683         * modules/posix_spawnattr_setflags (License): Likewise.
55684         * modules/posix_spawnattr_getpgroup (License): Likewise.
55685         * modules/posix_spawnattr_setpgroup (License): Likewise.
55686         * modules/posix_spawnattr_getschedparam (License): Likewise.
55687         * modules/posix_spawnattr_setschedparam (License): Likewise.
55688         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
55689         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
55690         * modules/posix_spawnattr_getsigdefault (License): Likewise.
55691         * modules/posix_spawnattr_setsigdefault (License): Likewise.
55692         * modules/posix_spawnattr_getsigmask (License): Likewise.
55693         * modules/posix_spawnattr_setsigmask (License): Likewise.
55694         * modules/posix_spawnattr_destroy (License): Likewise.
55695         * modules/posix_spawn_file_actions_init (License): Likewise.
55696         * modules/posix_spawn_file_actions_addclose (License): Likewise.
55697         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
55698         * modules/posix_spawn_file_actions_addopen (License): Likewise.
55699         * modules/posix_spawn_file_actions_destroy (License): Likewise.
55700         * modules/getdtablesize (License): Likewise.
55701         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
55703 2010-10-26  Bruno Haible  <bruno@clisp.org>
55705         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
55706         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
55707         Cygwin and mingw.
55708         Suggested by Eric Blake.
55710 2010-10-26  Bruno Haible  <bruno@clisp.org>
55712         stdio: Work around compilation error due to renameat() on Solaris 10.
55713         * lib/stdio.in.h: Include <unistd.h> on Solaris.
55714         * lib/renameat.c: Don't include <unistd.h> here.
55715         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
55716         Reported by Paul Eggert and Eric Blake.
55718 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
55720         renameat: port to Solaris 10, which declares renameat in unistd.h
55722         * lib/renameat.c: Include unistd.h before stdio.h, because
55723         Solaris 10 declares renameat in unistd.h.  Problem encountered
55724         when building GNU tar 1.24 on Solaris 10.
55726 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
55728         fdopendir: fix C89 compilation
55729         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
55730         compilers.
55732 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
55734         inttostr: simplify by removing unnecessary redundancy
55735         * lib/anytostr.c: Don't include verify.h.
55736         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
55737         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
55738         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
55739         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
55740         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
55741         Likewise.
55742         * modules/inttostr (Depends-on): Remove 'verify'.
55744 2010-10-23  Bruno Haible  <bruno@clisp.org>
55746         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
55747         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
55748         Reported by Eric Blake.
55750 2010-10-23  Bruno Haible  <bruno@clisp.org>
55752         Tests: Fix LOCALE_JA on MirBSD 10.
55753         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
55754         to an UTF-8 locale.
55755         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
55756         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
55757         Reported by Eric Blake.
55759 2010-10-21  Bruno Haible  <bruno@clisp.org>
55761         nl_langinfo test: Avoid test failure on NetBSD 5.
55762         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
55763         Reported by Eric Blake.
55765 2010-10-21  Eric Blake  <eblake@redhat.com>
55767         c-stack: work around libsigsegv 2.8 bug
55768         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
55769         overflow on at least PowerPC64.
55771 2010-10-17  Bruno Haible  <bruno@clisp.org>
55773         userspec: Drop redundant file.
55774         * modules/userspec (Files): Remove lib/inttostr.h.
55776 2010-10-17  Bruno Haible  <bruno@clisp.org>
55778         nl_langinfo tests: Silence some warnings.
55779         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
55780         Reported by Jim Meyering.
55782 2010-10-17  Bruno Haible  <bruno@clisp.org>
55784         Make use of GCC's attribute __alloc_size__.
55785         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
55786         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
55787         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
55788         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
55789         __alloc_size__.
55790         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
55791         Suggested by Jim Meyering.
55793 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
55795         bootstrap: anchor .gitignore entries.
55796         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
55797         with...
55798         (insert_vc_ignore): ... this new function, which prepends `/' to
55799         all .gitignore entries before passing them to
55800         insert_sorted_if_absent.
55802 2010-10-16  Bruno Haible  <bruno@clisp.org>
55804         nextafter: Fix configure check.
55805         * modules/nextafter (configure.ac): Correct expected prototype.
55807 2010-10-16  Bruno Haible  <bruno@clisp.org>
55809         termios: Update documentation.
55810         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
55812 2010-10-16  Bruno Haible  <bruno@clisp.org>
55814         tests: Make them compile with TinyCC.
55815         * tests/test-strstr.c (main): Remove parentheses around array
55816         initializer.
55818 2010-10-15  Eric Blake  <eblake@redhat.com>
55820         ignore-value: make header idempotent
55821         * lib/ignore-value.h: Add double-inclusion guards.
55822         Reported by Stefan Berger.
55824 2010-10-15  Jim Meyering  <meyering@redhat.com>
55826         GNUmakefile: handle "stable" target, not "major"
55827         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
55828         lists in maint.mk and announce-gen.  Without this, "make stable"
55829         would fail to ensure that $(VERSION) is up to date.
55831 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
55833         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
55834         & co.
55836 2010-10-14  Bruno Haible  <bruno@clisp.org>
55838         vasnprintf: Don't set errno to 0.
55839         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
55840         block that sets it to 0.
55841         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
55843 2010-10-14  Bruno Haible  <bruno@clisp.org>
55845         socketlib: Fix.
55846         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
55847         gl_PREREQ_SYS_H_WINSOCK2.
55848         Reported by Ian Beckwith <ianb@erislabs.net>.
55850 2010-10-13  Jim Meyering  <meyering@redhat.com>
55852         test-select-stdin.c: avoid warn_unused_result warnings
55853         * tests/test-select-stdin.c: Include "macros.h".
55854         ASSERT that read and fflush succeed.
55856 2010-10-13  Jim Meyering  <meyering@redhat.com>
55858         git-version-gen: do require git-VC'd files in cwd
55859         * build-aux/git-version-gen: Reject a git version string
55860         if there are no commits associated with the current directory.
55861         This avoids an unlikely false-positive (unrelated dir whose parent
55862         repository also contains a tag matching v*), as pointed out
55863         by Giuseppe Scrivano in
55864         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
55866 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
55868         argv-iter: omit nonconforming declaration
55869         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
55870         enum arg_iter_err declaration, which doesn't conform to C99.
55871         Solaris 10 cc warns about this.
55873 2010-10-13  Eric Blake  <eblake@redhat.com>
55875         termios: fix compilation on mingw
55876         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
55877         (gl_TERMIOS_H): Adjust it on mingw.
55878         * modules/termios (Makefile.am): Substitute new key.
55879         * lib/termios.in.h (includes): Make include_next conditional.
55880         * doc/posix-headers/termios.texi (termios.h): Update
55881         documentation.
55882         Reported by Daniel P. Berrange.
55884 2010-10-13  Jim Meyering  <meyering@redhat.com>
55886         git-version-gen: don't require that .git/ be in the current dir
55887         * build-aux/git-version-gen: Adjust this script so that it works
55888         when run from any working directory beneath the top-level .git/-
55889         containing directory.  Inspired by a patch from Giuseppe Scrivano,
55890         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
55892         test-select: avoid warn_unused_result warnings
55893         * tests/test-select.c: Include "macros.h".
55894         ASSERT that each call to read, write, and pipe succeeds.
55895         While not technically required, also check each "close".
55896         * modules/select-tests (Files): Add tests/macros.h.
55898         test-symlinkat: remove declaration of unused local
55899         * tests/test-symlinkat.c (main): Remove unused local, "buf".
55901         test-inttostr: avoid shadowing warnings
55902         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
55903         and use malloc rather than the stack for the same reason as
55904         mentioned in the comment justifying the other allocation.
55906 2010-10-11  Bruno Haible  <bruno@clisp.org>
55908         stdlib: Allow multiple gnulib generated replacements to coexist.
55909         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
55910         Reported by Sam Steingold <sds@gnu.org>.
55912 2010-10-11  Jim Meyering  <meyering@redhat.com>
55914         fix a documentation typo
55915         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
55917 2010-10-11  Eric Blake  <eblake@redhat.com>
55919         futimens: work around Solaris 11 bug
55920         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
55921         * tests/test-futimens.h (test_futimens): Enhance, rather than
55922         weaken test.
55923         * doc/posix-functions/futimens.texi (futimens): Document the bug.
55925 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
55927         Indentation.
55928         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
55929         higher-level operators more to the left.
55931 2010-10-11  Jim Meyering  <meyering@redhat.com>
55933         test-futimens: avoid unwarranted test failure on Solaris 5.11
55934         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
55935         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
55936         because it tries to dereference the NULL name argument.
55938 2010-10-11  Bruno Haible  <bruno@clisp.org>
55940         Indentation.
55941         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
55942         indentation.
55944 2010-10-11  Jim Meyering  <meyering@redhat.com>
55946         spawn.in.h: make indentation consistent with parentheses
55947         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
55948         Make indentation consistent with parentheses.
55950 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
55952         Fix mismatched parens in previous commit
55953         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
55954         parens.
55956 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
55958         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
55960         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
55961         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
55962         * lib/malloca.c: Include "verify.h".
55963         (verify1): Remove, replacing with a verify call.
55964         * lib/relocwrapper.c (verify1): Likewise.
55965         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
55966         Likewise.
55967         * modules/malloca (Depends-on): Add 'verify'.
55968         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
55969         * modules/vasnprintf (Depends-on): Add 'verify'.
55970         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
55971         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
55972         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
55973         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
55974         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
55975         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
55976         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
55978         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
55980         Formerly the style was sometimes 2*X - 1, because the C standard
55981         was wrongly thought to disallow ?: in integral constant expressions.
55982         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
55983         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
55984         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
55985         * lib/stdint.in.h (_verify_intmax_size): Likewise.
55986         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
55987         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
55988         verify that time_t cannot be floating.
55990 2010-10-08  Eric Blake  <eblake@redhat.com>
55992         time: enforce recent POSIX ruling that time_t is integral
55993         * lib/time.in.h (__time_t_must_be_integral): Detect any
55994         problematic systems, allowing the rest of gnulib to assume POSIX.
55996 2010-10-08  Jim Meyering  <meyering@redhat.com>
55998         fdopendir: fix a bug on systems lacking openat and /proc support
55999         OpenBSD 4.7 is one such system.  The most noticeable effect was
56000         failure of any application making nontrivial use of fts: rm, du,
56001         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
56002           ./rm: traversal failed: `a': Bad file descriptor
56003         Debugging that, you see that even though FD 6 was closed just
56004         prior to the opendir call in fd_clone_opendir, its resulting
56005         dir->dd_fd was 8, rather than the expected value of 6:
56007         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
56008         93                close (fd);
56009         (gdb) n
56010         94                dir = fd_clone_opendir (dupfd);
56011         (gdb) n
56012         95                saved_errno = errno;
56013         (gdb) p dir->dd_fd
56014         $11 = 8
56016         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
56017         The problem is that on OpenBSD, fd_clone_opendir has to resort
56018         to using the old-style save/restore CWD mechanism, due to its
56019         lack of openat/proc support, and *that* would steal the FD (6)
56020         that opendir was supposed to use.
56022         The fix is to squirrel away the desired FD so that save_cwd uses a
56023         different one, and then free the dest FD right before calling opendir.
56024         That guarantees opendir will use the required file descriptor.
56026         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
56028 2010-10-08  Bruno Haible  <bruno@clisp.org>
56030         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
56031         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
56033 2010-10-08  Bruno Haible  <bruno@clisp.org>
56035         nanosleep: Make replacement POSIX compliant.
56036         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
56037         is out of range.
56038         Reported by Jim Meyering.
56040 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
56042         bootstrap: add hook for altering gnulib.mk, for Bison
56043         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
56044         the Bison bootstrapping process can rewrite file names and variables
56045         in this file before later parts of 'bootstrap' use the file.
56046         Bison wants to include lib/gnulib.mk from the top-level makefile,
56047         so it needs the file names in this file to be relative to the top
56048         level, not relative to lib; plus it needs variable names to be
56049         rewritten.
56050         (slurp): Use the new function.
56052         bootstrap: reformat for readability
56053         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
56055 2010-10-08  Eric Blake  <eblake@redhat.com>
56057         docs: update cygwin progress
56058         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
56059         1.7.7.
56060         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
56061         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
56062         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
56063         * doc/posix-functions/carg.texi (carg): Likewise.
56064         * doc/posix-functions/cargf.texi (cargf): Likewise.
56065         * doc/posix-functions/casin.texi (casin): Likewise.
56066         * doc/posix-functions/casinf.texi (casinf): Likewise.
56067         * doc/posix-functions/casinh.texi (casinh): Likewise.
56068         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
56069         * doc/posix-functions/catan.texi (catan): Likewise.
56070         * doc/posix-functions/catanf.texi (catanf): Likewise.
56071         * doc/posix-functions/catanh.texi (catanh): Likewise.
56072         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
56073         * doc/posix-functions/ccos.texi (ccos): Likewise.
56074         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
56075         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
56076         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
56077         * doc/posix-functions/cexp.texi (cexp): Likewise.
56078         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
56079         * doc/posix-functions/cimag.texi (cimag): Likewise.
56080         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
56081         * doc/posix-functions/clog.texi (clog): Likewise.
56082         * doc/posix-functions/clogf.texi (clogf): Likewise.
56083         * doc/posix-functions/conj.texi (conj): Likewise.
56084         * doc/posix-functions/conjf.texi (conjf): Likewise.
56085         * doc/posix-functions/cpow.texi (cpow): Likewise.
56086         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
56087         * doc/posix-functions/cproj.texi (cproj): Likewise.
56088         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
56089         * doc/posix-functions/creal.texi (creal): Likewise.
56090         * doc/posix-functions/crealf.texi (crealf): Likewise.
56091         * doc/posix-functions/csin.texi (csin): Likewise.
56092         * doc/posix-functions/csinf.texi (csinf): Likewise.
56093         * doc/posix-functions/csinh.texi (csinh): Likewise.
56094         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
56095         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
56096         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
56097         * doc/posix-functions/ctan.texi (ctan): Likewise.
56098         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
56099         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
56100         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
56101         * doc/posix-headers/complex.texi (complex.h): Likewise.
56103 2010-10-07  Jim Meyering  <meyering@redhat.com>
56105         parse-datetime: avoid compilation failure on OpenBSD 4.7
56106         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
56107         This works around a compilation failure on OpenBSD 4.7:
56108         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
56110 2010-10-07  Eric Blake  <eblake@redhat.com>
56112         docs: update cygwin progress
56113         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
56114         1.7.6.
56115         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
56116         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
56117         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
56118         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
56119         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
56120         Likewise.
56121         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
56122         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
56123         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
56124         Likewise.
56125         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
56126         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
56127         Likewise.
56128         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
56129         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
56130         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
56131         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
56132         Likewise.
56133         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
56134         Likewise.
56135         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
56137         docs: update parse-datetime history
56138         * doc/parse-datetime.texi (Authors of parse_datetime): Better
56139         documentation of this function's history and alternatives.
56141         cygwin: use more robust version check
56142         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
56143         exclude an eventual cygwin 1.9.1.
56144         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
56145         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
56146         (gl_FUNC_STRCASESTR): Likewise.
56147         Reported by Bruno Haible.
56149 2010-10-06  Bruno Haible  <bruno@clisp.org>
56151         string, sys_select: Avoid #including large headers unless necessary.
56152         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
56153         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
56154         OSF/1, BeOS, Haiku.
56155         Reported by Jim Meyering.
56157 2010-10-05  Eric Blake  <eblake@redhat.com>
56159         memmem, strstr, strcasestr: fix bug with long periodic needle
56160         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
56161         periodic needle having false positive.
56162         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
56163         and cygwin 1.7.7.
56164         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
56165         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
56166         (gl_FUNC_STRCASESTR): Likewise.
56167         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
56168         * tests/test-memmem.c (main): Expose the bug.
56169         * tests/test-strcasestr.c (main): Likewise.
56170         * tests/test-strstr.c (main): Likewise.
56171         * tests/test-c-strcasestr.c (main): Likewise.
56172         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
56173         * doc/posix-functions/strstr.texi (strstr): Likewise.
56174         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
56175         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
56177 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
56179         parse-datetime: do some more renaming
56180         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
56181         parse_datetime, not get_date.  Mention the renaming.
56182         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
56183         in comments.
56184         * m4/bison.m4: Likewise.
56186 2010-10-05  Eric Blake  <eblake@redhat.com>
56188         parse-datetime: better name than get_date
56189         * NEWS: Reword the deprecation notice.
56190         * modules/get_date: Rename to modules/parse-datetime.
56191         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
56192         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
56193         * lib/get_date.y: Rename to lib/parse-datetime.y.
56194         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
56195         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
56196         * doc/getdate.texi: Provide fallback wrapper.
56197         * lib/getdate.h: Move guts, and wrap...
56198         * lib/parse-datetime.h: ...new file.
56199         * lib/parse-datetime.y (get_date): Rename...
56200         (parse_datetime): ...to this.
56201         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
56202         (gl_PARSE_DATETIME): ...to this.
56203         * doc/posix-functions/getdate.texi (get_date): Provide fallback
56204         documentation.
56205         * modules/getdate (Files): Provide fallback docs and header.
56206         (Notice, Depends-on): Update references.
56207         * tests/test-parse-datetime.c: Likewise.
56208         * DEPENDENCIES: Likewise.
56209         * MODULES.html.sh (Date and time <time.h>): Likewise.
56210         * doc/parse-datetime.texi (Date input formats)
56211         (Authors of parse_datetime): Likewise.
56212         * modules/parse-datetime (Files, configure.ac, Makefile.am)
56213         (Include): Likewise.
56214         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
56215         * gnulib-tool: Likewise.
56216         * m4/bison.m4 (gl_BISON): Likewise.
56217         Suggested by Bruno Haible.
56219 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
56221         more ports to Solaris tr, which needs [] around ranges
56222         * gnulib-tool: Solaris tr needs [] around ranges.
56223         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
56224         * tests/test-pipe-filter-gi1.c (main): Likewise.
56225         * tests/test-pipe-filter-ii1.c (main): Likewise.
56227 2010-10-05  Eric Blake  <eblake@redhat.com>
56229         bootstrap: fix Solaris regression
56230         * build-aux/bootstrap (check_versions): Solaris tr still needs []
56231         around ranges.
56232         Reported by Pádraig Brady.
56234         bootstrap: work with pkg-config
56235         * build-aux/bootstrap (check_versions): Also transliterate - in
56236         prerequisite name.
56237         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
56238         prerequisites that were already found, to avoid confusion.
56239         Reported by Justin Clift.
56241         faccessat: remove unused wrappers
56242         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
56243         presence of these wrappers dragged in -lgen on Solaris.
56244         Reported by Clemens Brogi; fix suggested by Paul Eggert.
56246 2010-10-05  Jim Meyering  <meyering@redhat.com>
56248         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
56249         * Makefile (sc_pragma_columns): New syntax-check rule.
56251 2010-10-04  Bruno Haible  <bruno@clisp.org>
56253         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
56254         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
56255         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
56256         Reported by Bruce Korb and Eric Blake.
56258 2010-10-04  Bruno Haible  <bruno@clisp.org>
56260         threadlib: Make option --with-libpth-prefix work.
56261         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
56262         use $LIBPTH, not just -lpth.
56264 2010-10-04  Bruno Haible  <bruno@clisp.org>
56266         Avoid line length limitation from HP NonStop system header files.
56267         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
56268         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
56269         * lib/ctype.in.h: Likewise.
56270         * lib/dirent.in.h: Likewise.
56271         * lib/errno.in.h: Likewise.
56272         * lib/fcntl.in.h: Likewise.
56273         * lib/float.in.h: Likewise.
56274         * lib/getopt.in.h: Likewise.
56275         * lib/iconv.in.h: Likewise.
56276         * lib/inttypes.in.h: Likewise.
56277         * lib/langinfo.in.h: Likewise.
56278         * lib/locale.in.h: Likewise.
56279         * lib/math.in.h: Likewise.
56280         * lib/netdb.in.h: Likewise.
56281         * lib/netinet_in.in.h: Likewise.
56282         * lib/poll.in.h: Likewise.
56283         * lib/pthread.in.h: Likewise.
56284         * lib/pty.in.h: Likewise.
56285         * lib/sched.in.h: Likewise.
56286         * lib/se-selinux.in.h: Likewise.
56287         * lib/search.in.h: Likewise.
56288         * lib/signal.in.h: Likewise.
56289         * lib/spawn.in.h: Likewise.
56290         * lib/stdarg.in.h: Likewise.
56291         * lib/stddef.in.h: Likewise.
56292         * lib/stdint.in.h: Likewise.
56293         * lib/stdio.in.h: Likewise.
56294         * lib/stdlib.in.h: Likewise.
56295         * lib/string.in.h: Likewise.
56296         * lib/strings.in.h: Likewise.
56297         * lib/sys_file.in.h: Likewise.
56298         * lib/sys_ioctl.in.h: Likewise.
56299         * lib/sys_select.in.h: Likewise.
56300         * lib/sys_socket.in.h: Likewise.
56301         * lib/sys_stat.in.h: Likewise.
56302         * lib/sys_time.in.h: Likewise.
56303         * lib/sys_times.in.h: Likewise.
56304         * lib/sys_utsname.in.h: Likewise.
56305         * lib/sys_wait.in.h: Likewise.
56306         * lib/sysexits.in.h: Likewise.
56307         * lib/termios.in.h: Likewise.
56308         * lib/time.in.h: Likewise.
56309         * lib/unistd.in.h: Likewise.
56310         * lib/wchar.in.h: Likewise.
56311         * lib/wctype.in.h: Likewise.
56312         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
56313         * modules/ctype (Makefile.am): Likewise.
56314         * modules/dirent (Makefile.am): Likewise.
56315         * modules/errno (Makefile.am): Likewise.
56316         * modules/fcntl-h (Makefile.am): Likewise.
56317         * modules/float (Makefile.am): Likewise.
56318         * modules/getopt-posix (Makefile.am): Likewise.
56319         * modules/iconv-h (Makefile.am): Likewise.
56320         * modules/inttypes (Makefile.am): Likewise.
56321         * modules/langinfo (Makefile.am): Likewise.
56322         * modules/locale (Makefile.am): Likewise.
56323         * modules/math (Makefile.am): Likewise.
56324         * modules/netdb (Makefile.am): Likewise.
56325         * modules/netinet_in (Makefile.am): Likewise.
56326         * modules/poll-h (Makefile.am): Likewise.
56327         * modules/pthread (Makefile.am): Likewise.
56328         * modules/pty (Makefile.am): Likewise.
56329         * modules/sched (Makefile.am): Likewise.
56330         * modules/search (Makefile.am): Likewise.
56331         * modules/selinux-h (Makefile.am): Likewise.
56332         * modules/signal (Makefile.am): Likewise.
56333         * modules/spawn (Makefile.am): Likewise.
56334         * modules/stdarg (Makefile.am): Likewise.
56335         * modules/stddef (Makefile.am): Likewise.
56336         * modules/stdint (Makefile.am): Likewise.
56337         * modules/stdio (Makefile.am): Likewise.
56338         * modules/stdlib (Makefile.am): Likewise.
56339         * modules/string (Makefile.am): Likewise.
56340         * modules/strings (Makefile.am): Likewise.
56341         * modules/sys_file (Makefile.am): Likewise.
56342         * modules/sys_ioctl (Makefile.am): Likewise.
56343         * modules/sys_select (Makefile.am): Likewise.
56344         * modules/sys_socket (Makefile.am): Likewise.
56345         * modules/sys_stat (Makefile.am): Likewise.
56346         * modules/sys_time (Makefile.am): Likewise.
56347         * modules/sys_times (Makefile.am): Likewise.
56348         * modules/sys_utsname (Makefile.am): Likewise.
56349         * modules/sys_wait (Makefile.am): Likewise.
56350         * modules/sysexits (Makefile.am): Likewise.
56351         * modules/termios (Makefile.am): Likewise.
56352         * modules/time (Makefile.am): Likewise.
56353         * modules/unistd (Makefile.am): Likewise.
56354         * modules/wchar (Makefile.am): Likewise.
56355         * modules/wctype (Makefile.am): Likewise.
56357 2010-10-04  Bruno Haible  <bruno@clisp.org>
56359         read-file tests: Avoid a test failure on NonStop Kernel.
56360         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
56361         a regular file.
56362         Reported by Joachim Schmitz <schmitz@hp.com>.
56364 2010-10-03  Bruno Haible  <bruno@clisp.org>
56366         gnulib-tool: Fixes for --create-testdir with --libtool.
56367         * gnulib-tool (func_get_automake_snippet): Don't augment
56368         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
56369         an executable.
56370         (func_create_testdir): Handle module 'alloca' like func_import.
56371         Reported by Bruce Korb <bruce.korb@gmail.com>.
56373 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
56375         Avoid some lines longer than 80 characters.
56376         * lib/stdint.in.h: Break long comment lines.
56377         * lib/math.in.h: Likewise.
56378         (_GL_NUM_UINT_WORDS): New macro, for readability.
56379         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
56380         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
56381         * lib/stdlib.in.h: Likewise.
56382         * lib/spawn.in.h: Likewise.
56383         * lib/sys_socket.in.h: Update an URL.
56384         * lib/sys_stat.in.h: Break long line.
56386 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
56388         Improve pmccabe2html.
56389         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
56390         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
56391         when the sources change. Remove the line in the HTML about "Used
56392         ranges" (which implied that there might be other unused ranges),
56393         rename "Resume" to "Summary" (easier to understand for more users).
56394         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
56395         styles, and some unnecessary blank lines.
56397 2010-10-03  Bruno Haible  <bruno@clisp.org>
56398             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
56400         acl: Add support for ACLs on NonStop Kernel.
56401         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
56402         Check whether the function aclsort() exists.
56403         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
56404         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
56405         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
56406         (acl_nontrivial [HAVE_ACLSORT]: New function.
56407         (file_has_acl): Implement for NonStop Kernel.
56408         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
56409         (qset_acl): Implement for NonStop Kernel.
56410         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
56411         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
56412         (main): Implement for NonStop Kernel.
56413         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
56414         Kernel. Handle this flavor.
56415         * tests/test-set-mode-acl.sh: Likewise.
56416         * tests/test-copy-acl.sh: Likewise.
56417         * tests/test-copy-file.sh: Likewise.
56419 2010-10-03  Bruno Haible  <bruno@clisp.org>
56421         Info about ACLs on NonStop Kernel.
56422         * doc/acl-resources.txt: Add info about NonStop Kernel.
56423         References by Joachim Schmitz <schmitz@hp.com>.
56425 2010-10-02  Bruno Haible  <bruno@clisp.org>
56427         Define missing EDQUOT on NonStop Kernel.
56428         * lib/errno.in.h (EDQUOT): Assign a value if missing.
56429         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
56430         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
56431         missing.
56432         * doc/posix-headers/errno.texi: Mention the NSK bug.
56433         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
56434         Reported by Joachim Schmitz <schmitz@hp.com>.
56436 2010-10-02  Bruno Haible  <bruno@clisp.org>
56438         Update doc for POSIX:2008.
56439         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
56440         Update URL of POSIX specification.
56442 2010-10-02  Bruno Haible  <bruno@clisp.org>
56444         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
56445         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
56446         from gnulib, not from Automake.
56448 2010-10-02  Bruno Haible  <bruno@clisp.org>
56450         New module 'system-posix'.
56451         * modules/system-posix: New file.
56452         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
56453         module is present.
56454         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
56455         GNULIB_SYSTEM_POSIX.
56456         * modules/stdlib (Depends-on): Remove sys_wait.
56457         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
56458         * doc/posix-functions/system.texi: Mention the new module.
56459         * doc/posix-headers/stdlib.texi: Likewise.
56460         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
56461         define test_sys_wait_macros to a no-op.
56462         Reported by Sam Steingold <sds@gnu.org>.
56464 2010-09-30  Bruno Haible  <bruno@clisp.org>
56466         More renaming from 'getdate' to 'get_date'.
56467         * doc/get_date.texi: Renamed from doc/getdate.texi.
56468         * modules/get_date (Files): Update.
56469         * MODULES.html.sh (Date and time <time.h>): Update.
56470         * DEPENDENCIES: Update.
56471         * gnulib-tool: Update comment.
56472         * m4/bison.m4 (gl_BISON): Likewise.
56473         * m4/get_date.m4 (gl_GET_DATE): Likewise.
56475 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
56477         bootstrap: support ACLOCAL_FLAGS during aclocal
56478         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
56479         can add additional -I dir for third-party .m4 files.
56481 2010-09-30  Eric Blake  <eblake@redhat.com>
56483         bootstrap: use glibtoolize on MacOS
56484         * build-aux/bootstrap (check_versions): Convert libtool into
56485         libtoolize.
56486         (tool search): Move libtool check earlier, and look for
56487         glibtoolize for MacOS.
56488         (gnulib_tool_options): Auto-add --libtool when appropriate.
56489         Reported by Justin Clift.
56491         poll: fix typo that broke test on MacOS
56492         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
56493         Reported by Justin Clift.
56495         getdate: rename to get_date
56496         Note: getdate.h is not renamed, to minimize client impact.
56497         * modules/getdate: Mark obsolete.  Move old contents...
56498         * modules/get_date: ...to new module name.
56499         * modules/getdate-tests: Move...
56500         * modules/get_date-tests: ...here.
56501         * m4/getdate.m4: Move...
56502         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
56503         * lib/getdate.y: Move...
56504         * lib/get_date.y: ...here.
56505         * tests/test-getdate.c: Move...
56506         * tests/test-get_date.c: ...here.
56507         * doc/posix-functions/getdate.texi (getdate): Update name.
56508         * NEWS: Mention the change.
56510 2010-09-29  Bruno Haible  <bruno@clisp.org>
56512         Separate the module 'waitpid' from the module 'sys_wait'.
56513         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
56514         present.
56515         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
56516         gl_MODULE_INDICATOR_FOR_TESTS.
56517         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
56518         * modules/sys_wait (Depends-on): Remove waitpid.
56519         (Makefile.am): Substitute GNULIB_WAITPID.
56520         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
56521         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
56522         signature only if the 'waitpid' module is present.
56523         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
56524         * NEWS: Mention the change.
56525         * modules/grantpt (Depends-on): Add waitpid.
56526         * modules/wait-process (Depends-on): Likewise.
56528 2010-09-29  Bruno Haible  <bruno@clisp.org>
56530         More tests for module 'sys_wait'.
56531         * modules/sys_wait-c++-tests: New file.
56532         * tests/test-sys_wait-c++.cc: New file.
56533         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
56534         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
56536 2010-09-29  Bruno Haible  <bruno@clisp.org>
56538         New module 'waitpid'.
56539         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
56540         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
56541         Don't include <process.h>.
56542         (waitpid): Declare only, using modern idiom.
56543         * m4/waitpid.m4: New file.
56544         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
56545         * modules/waitpid: New file.
56546         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
56547         (Makefile.am): Update.
56548         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
56550 2010-09-28  Bruno Haible  <bruno@clisp.org>
56552         poll: Assume ANSI C.
56553         * lib/poll.c (poll): Use an ANSI C declaration.
56555 2010-09-28  Bruno Haible  <bruno@clisp.org>
56557         poll-h: Create poll.h on all platforms.
56558         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
56559         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
56560         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
56561         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
56562         (gl_REPLACE_POLL_H): Don't set POLL_H.
56563         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
56564         * modules/poll-h (Depends-on): Add include_next.
56565         (Makefile.am): Create poll.h unconditionally. Substitute also
56566         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
56568 2010-09-28  Bruno Haible  <bruno@clisp.org>
56570         Tests for module 'poll-h'.
56571         * modules/poll-h-c++-tests: New file.
56572         * tests/test-poll-h-c++.cc: New file.
56574         Tests for module 'poll-h'.
56575         * modules/poll-h-tests: New file.
56576         * tests/test-poll-h.c: New file.
56578 2010-09-28  Bruno Haible  <bruno@clisp.org>
56580         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
56581         * modules/poll-h (Depends-on): Add 'extensions'.
56583 2010-09-28  Bruno Haible  <bruno@clisp.org>
56585         New module 'poll-h'.
56586         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
56587         (poll): Use modern idiom.
56588         * modules/poll-h: New file.
56589         * modules/poll (Files): Remove lib/poll.in.h.
56590         (Depends-on): Add poll-h.
56591         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
56592         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
56593         * m4/poll_h.m4: New file.
56594         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
56595         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
56596         and invoke gl_REPLACE_POLL_H.
56597         * lib/poll.c: Use common idiom.
56598         * tests/test-poll.c: Likewise.
56599         * doc/posix-headers/poll.texi: Mention the poll-h module.
56600         Suggested by Eric Blake.
56602 2010-09-26  Bruno Haible  <bruno@clisp.org>
56604         sys_wait: Implement WSTOPSIG.
56605         * lib/sys_wait.in.h (WSTOPSIG): New macro.
56606         Reported by Simon Josefsson.
56608 2010-09-26  Simon Josefsson  <simon@josefsson.org>
56610         stdlib, sys_wait: Avoid compilation error on mingw.
56611         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
56613 2010-09-26  Bruno Haible  <bruno@clisp.org>
56615         stdlib tests: Avoid code duplication.
56616         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
56617         * modules/sys_wait-tests (Files): Likewise.
56618         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
56619         * tests/test-stdlib.c: Include test-sys_wait.h.
56620         (main): Invoke test_sys_wait_macros.
56621         * tests/test-sys_wait.c: Include test-sys_wait.h.
56622         (main): Invoke test_sys_wait_macros.
56624 2010-09-25  Simon Josefsson  <simon@josefsson.org>
56626         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
56627         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
56628         sure Windows sockets are working before calling getaddrinfo.
56629         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
56630         * doc/gnulib.texi (Windows sockets): Fix typo.
56632 2010-09-25  Bruno Haible  <bruno@clisp.org>
56634         Tests for module 'regex-quote'.
56635         * modules/regex-quote-tests: New file.
56636         * tests/test-regex-quote.c: New file.
56638         New module 'regex-quote'.
56639         * lib/regex-quote.h: New file.
56640         * lib/regex-quote.c: New file.
56641         * modules/regex-quote: New file.
56642         Suggested by Reuben Thomas <rrt@sc3d.org>.
56644 2010-09-24  Bruno Haible  <bruno@clisp.org>
56646         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
56647         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
56649 2010-09-23  Bruno Haible  <bruno@clisp.org>
56651         setenv: Relax license.
56652         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
56653         Blake.
56654         Requested by Eric Blake.
56656 2010-09-22  Bruno Haible  <bruno@clisp.org>
56658         termios: Relax license.
56659         * modules/termios (License): Change to LGPLv2+.
56660         Requested by Eric Blake.
56662 2010-09-22  Bruno Haible  <bruno@clisp.org>
56664         threadlib: Allow the package to change the default to 'no'.
56665         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
56666         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
56667         Reported by Paul Eggert.
56669 2010-09-22  Pádraig Brady  <P@draigbrady.com>
56670             Bruno Haible  <bruno@clisp.org>
56672         Fix endless loop in mbmemcasecoll.
56673         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
56674         byte.
56675         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
56677 2010-09-22  Bruno Haible  <bruno@clisp.org>
56679         Tests for module 'memcoll'.
56680         * modules/memcoll-tests: New file.
56681         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
56683         memcoll, xmemcoll: Clarify size vs. length.
56684         * modules/memcoll.c (memcoll0): Clarify specification.
56685         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
56686         passed to collate_error.
56688 2010-09-22  Bruno Haible  <bruno@clisp.org>
56690         Tests for module 'memcasecmp'.
56691         * modules/memcasecmp-tests: New file.
56692         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
56694 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
56696         * lib/pthread.in.h: Add split double-inclusion guard, and include
56697         system <pthread.h> if there is one.  Use @@-style as in other
56698         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
56699         pthread.h doesn't.
56700         (pthread_mutexattr_destroy, pthread_mutexattr_init):
56701         (pthread_mutexattr_settype, pthread_mutex_trylock):
56702         New static inline functions, if there's no system <pthread.h>.
56703         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
56704         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
56705         Approximate with mutexes if the system lacks spinlocks, as in
56706         MacOS.
56707         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
56708         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
56709         @@-style.  Check for spinlocks separately.
56710         (gl_PTHREAD_DEFAULTS): New macro.
56711         * modules/pthread: Redo to use a more typical style for in.h files.
56713 2010-09-21  Eric Blake  <eblake@redhat.com>
56715         net_if: enhance tests
56716         * tests/test-net_if.c (main): Move signature checks earlier.
56717         Print failures to stderr.
56718         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
56719         Document the bug that we do not yet fix.
56721 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
56723         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
56724         about gnulib, not GSS.
56726 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
56728         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
56729         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
56730         for Emacs.
56731         * build-aux/pmccabe2html: Make Makefile.am example code more
56732         cut-and-paste friendly.
56734 2010-09-21  Simon Josefsson  <simon@josefsson.org>
56736         * tests/test-net_if.c: New file.
56737         * modules/net_if-tests: New file.
56739 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
56741         pthread: add pthread_spin_destroy
56742         * lib/pthread.in.h (pthread_spin_destroy): New function.
56744 2010-09-19  Bruno Haible  <bruno@clisp.org>
56746         gnulib-tool: Fix --help output.
56747         * gnulib-tool (func_usage): Fix help message.
56748         Reported by Reuben Thomas <rrt@sc3d.org>.
56750 2010-09-18  Jim Meyering  <meyering@redhat.com>
56752         maint.mk: avoid unexpanded \n in two diagnostics
56753         * top/maint.mk (sc_prohibit_always_true_header_tests):
56754         Don't use a literal \n in a halt=... assignment.  It would not be
56755         expanded, and the two \n bytes would appear in the diagnostic output
56756         rather than the desired newline.  Use halt=$$(printf ... instead.
56757         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
56759 2010-09-18  Bruno Haible  <bruno@clisp.org>
56761         netinet_in: Doc tweak.
56762         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
56763         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
56765 2010-09-18  Jim Meyering  <meyering@redhat.com>
56767         init.sh: correct an outdated comment
56768         * tests/init.sh (create_exe_shims_):  s/function/alias/
56770         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
56771         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
56772         a file named "*.exe" is removed between the glob expansion and the
56773         processing of that oddly named file.
56775 2010-09-17  Eric Blake  <eblake@redhat.com>
56777         mirbsd: add some more support
56778         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
56779         in BSD family.
56780         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
56781         devices as OpenBSD.
56782         * m4/host-os.m4 (mirbsd): Add MirBSD.
56784         tests: fix unportable assumption on sys/wait.h
56785         * tests/test-sys_wait.c (main): Relax test.
56786         * tests/test-stdlib.c (main): Likewise.
56788         init.sh: accommodate directory with no .exes
56789         * tests/init.sh: Accomodate directory containing only scripts.
56791         tests: avoid compiler warning
56792         * tests/test-stdlib.c (main): Use the variable.
56794         fdutimens, fdutimensat: update signature, again
56795         * lib/utimens.h (gl_futimens): Delete, and move signature...
56796         (fdutimens): ...here.
56797         (fdutimensat): Rearrange signature.
56798         (lutimensat): Rename variable for clarity.
56799         * lib/fdutimensat.c (fdutimensat): Update signature.
56800         * lib/utimens.c (fdutimens): Likewise.
56801         (gl_futimens): Delete.
56802         (utimens, lutimens): Update callers.
56803         * lib/futimens.c (futimens): Likewise.
56804         * tests/test-fdutimensat.c: Likewise.
56805         * tests/test-utimens.c: Likewise.
56806         * tests/test-futimens.h: Update comment.
56807         * NEWS: Mention this.
56808         Suggested by Paul Eggert.
56810 2010-09-17  Bruno Haible  <bruno@clisp.org>
56812         Take over the maintenance of some older macros from Autoconf.
56813         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
56814         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
56815         GNU Autoconf.
56816         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
56817         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
56819 2010-09-17  Eric Blake  <eblake@redhat.com>
56821         fdutimensat: drop atflag validation
56822         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
56823         with valid fd, to close a race scenario where futimens is
56824         unsupported and FILE was replaced by a symlink.
56825         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
56826         accordingly.
56827         Suggested by Paul Eggert.
56829 2010-09-16  Bruno Haible  <bruno@clisp.org>
56831         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
56832         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
56834 2010-09-16  Bruno Haible  <bruno@clisp.org>
56836         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
56837         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
56838         login_tty exists.
56839         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
56841 2010-09-16  Bruno Haible  <bruno@clisp.org>
56843         login_tty: Make the replacement code work on BSD systems.
56844         * lib/login_tty.c: Include <sys/ioctl.h>.
56845         (login_tty): Use ioctl TIOCSCTTY when available.
56846         * modules/login_tty (Depends-on): Add sys_ioctl.
56847         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
56849 2010-09-16  Bruno Haible  <bruno@clisp.org>
56851         login_tty: Stricter unit test.
56852         * modules/login_tty-tests (Depends-on): Add tcgetsid.
56853         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
56854         and tcgetsid() after login_tty.
56855         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
56857 2010-09-16  Bruno Haible  <bruno@clisp.org>
56859         New module 'tcgetsid'.
56860         * lib/tcgetsid.c: New file.
56861         * m4/tcgetsid.m4: New file.
56862         * modules/tcgetsid: New file.
56863         * modules/termios (Depends-on): Add c++defs, warn-on-use.
56864         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
56865         GNULIB_TCGETSID, HAVE_TCGETSID.
56866         * lib/termios.in.h: Include <sys/types.h>.
56867         (tcgetsid): New declaration.
56868         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
56869         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
56870         * doc/posix-functions/tcgetsid.texi: Mention the new module.
56871         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
56873 2010-09-16  Bruno Haible  <bruno@clisp.org>
56875         Tests for module 'termios'.
56876         * modules/termios-c++-tests: New file.
56877         * modules/termios-tests: New file.
56878         * tests/test-termios-c++.cc: New file.
56879         * tests/test-termios.c: New file.
56881         New module 'termios'.
56882         * modules/termios: New file.
56883         * lib/termios.in.h: New file.
56884         * m4/termios_h.m4: New file.
56885         * doc/posix-headers/termios.texi: Mention the new module.
56887 2010-09-16  Eric Blake  <eblake@redhat.com>
56889         fdutimensat: add an atflag parameter
56890         * lib/fdutimensat.c (fdutimensat): Add new parameter.
56891         * lib/utimens.h (fdutimensat): Update prototype.
56892         * tests/test-fdutimensat.c: Adjust test to match.
56893         * NEWS: Document the change.
56894         Suggested by Paul Eggert.
56896 2010-09-16  Bruno Haible  <bruno@clisp.org>
56898         Fix typos in comments.
56899         * lib/striconveh.h: Fix typo in comment.
56900         * lib/login_tty.c (login_tty): Likewise.
56902 2010-09-15  Bruno Haible  <bruno@clisp.org>
56904         stdlib: clarify MirBSD WEXITSTATUS bug
56905         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
56906         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
56908 2010-09-15  Eric Blake  <eblake@redhat.com>
56910         stdlib: work around MirBSD WEXITSTATUS bug
56911         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
56912         * modules/stdlib (Depends-on): Add sys_wait.
56913         * tests/test-sys_wait.c (main): Enhance test.
56914         * tests/test-stdlib.c (main): Likewise.
56915         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
56917         docs: mention MacOS issue with WEXITSTATUS(constant)
56918         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
56919         issue.
56920         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
56922         strnlen: add tests
56923         * modules/strnlen-tests: New file.
56924         * tests/test-strnlen.c: Likewise.
56926 2010-09-14  Bruno Haible  <bruno@clisp.org>
56928         unistr/base: Avoid link errors when module 'libunistring' is also used.
56929         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
56930         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
56931         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
56932         Declare also when HAVE_LIBUNISTRING is set.
56933         Reported by Pádraig Brady <P@draigbrady.com>.
56935 2010-09-14  Eric Blake  <eblake@redhat.com>
56937         test-rawmemchr: make more robust
56938         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
56939         (Depends-on, configure.ac): Add needed prerequisites to use it.
56940         * modules/memchr-tests (Files, Depends-on, configure.ac):
56941         Likewise, to avoid implicit reliance on memchr module prereqs.
56942         * tests/test-memchr.c (main): Ensure proper masking.
56943         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
56944         reads.
56946         memchr: detect glibc Alpha bug
56947         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
56948         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
56949         Alpha.
56950         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
56951         * tests/test-memchr.c (main): Enhance test.
56952         Reported by Nelson H. F. Beebe.
56954 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
56956         fts, getcwd, glob: audit for dirfd returning -1
56957         * lib/fts.c (opendir): Remove #define; no longer used.
56958         (opendirat): New arg PDIR_FD.  All callers changed.
56959         (fts_build, _opendir2): Use new opendirat to avoid the need for
56960         dirfd, or for checking whether dirfd returns a negative value.
56961         Don't use opendir; always use openat followed by fdopendir.
56962         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
56963         it.
56964         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
56965         returns -1 here.
56966         * modules/fts (Depends-on): Remove dirfd.
56967         * modules/getcwd (Depends-on): Likewise.
56969 2010-09-13  Eric Blake  <eblake@redhat.com>
56971         float: fix broken MirBSD header
56972         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
56973         * doc/posix-headers/float.texi (float.h): Document it.
56975 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
56977         fts: use O_NOFOLLOW to avoid race condition when opening a directory
56978         * lib/fts.c (opendirat): New arg extra_flags.
56979         (__opendir2): Use it to avoid following symlinks when opening
56980         a directory, if symlinks are not supposed to be followed.  See
56981         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00213.html>.
56983         fdopendir: preserve argument fd before returning
56984         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
56985         (fdopendir_with_dup, fd_clone_opendir): New static functions.
56986         (fdopendir): Use them, arranging for FD to be open to the same
56987         directory that it was when it started.  (It might be temporarily
56988         closed while fdopendir is running, so this not thread- or
56989         signal-safe.)  Be careful to do the right thing even when file
56990         descriptors are scarce and dup fails with errno == EMFILE.  See
56991         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00208.html>.
56993 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
56995         regex: Pass the system regex if its only problem is 32-bit regoff_t.
56996         * NEWS: Document change.
56997         * m4/regex.m4: Disable test for regoff_t size.
56999 2010-09-13  Jim Meyering  <meyering@redhat.com>
57001         fts: don't operate on an invalid file descriptor after failed dup
57002         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
57003         negative file descriptor.
57005 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
57007         savedir: add streamsavedir, deprecate fdsavedir
57008         * NEWS: Mention deprecation of fdsavedir.
57009         * lib/savedir.c (streamsavedir): New extern function, whose name
57010         ends in "savedir" to be consistent with the others.  This differs
57011         from savedirstream in that it doesn't close its argument.  The
57012         next version of GNU tar will use this instead of fdsavedir, to
57013         avoid some race conditions and conserve file descriptors.
57014         (savedirstream): Reimplement as a wrapper around streamsavedir.
57015         (fdsavedir): Add a comment deprecating this function.  As far as
57016         I know, only GNU tar used it, and GNU tar doesn't need it any more.
57017         * lib/savedir.h (streamsavedir): New decl.
57018         (fdsavedir): Add a comment deprecating this.
57020 2010-09-10  Bruno Haible  <bruno@clisp.org>
57022         langinfo: Fix last commit.
57023         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
57024         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
57025         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
57027 2010-09-10  Bruno Haible  <bruno@clisp.org>
57029         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
57030         * lib/progreloc.c (O_EXEC): Define fallback.
57032 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
57034         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
57035         * NEWS: Document recent changes to fcntl-h.
57036         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
57037         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
57038         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
57039         Similarly for O_SEARCH; this last was already true, but not documented.
57040         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
57041         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
57042         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
57043         Likewise.
57044         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
57045         is zero, not whether it is defined.
57046         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
57047         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
57048         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
57050 2010-09-10  Bruno Haible  <bruno@clisp.org>
57052         langinfo, nl_langinfo: Fix for IRIX 5.3.
57053         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
57054         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
57055         HAVE_LANGINFO_YESEXPR.
57056         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
57057         HAVE_LANGINFO_YESEXPR.
57058         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
57059         HAVE_LANGINFO_T_FMT_AMPM is 0.
57060         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
57061         HAVE_LANGINFO_YESEXPR is 0.
57062         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
57063         NOEXPR.
57064         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
57065         * doc/posix-functions/nl_langinfo.texi: Likewise.
57066         Reported by Eric Blake.
57068 2010-09-10  Bruno Haible  <bruno@clisp.org>
57070         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
57071         * doc/glibc-functions/login_tty.texi: Mention the include file problem
57072         on FreeBSD 8.0 and OpenBSD 4.6.
57073         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
57074         * m4/pty_h.m4 (gl_PTY_H): Likewise.
57075         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
57076         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
57077         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
57078         ac_includes_default.
57079         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
57081 2010-09-09  Eric Blake  <eblake@redhat.com>
57083         strsignal: work around NetBSD bug
57084         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
57085         * lib/string.in.h (includes): Likewise.
57086         * doc/posix-functions/strsignal.texi (strsignal): Document the
57087         bug.
57088         Reported by Nelson H. F. Beebe.
57090         gnulib-tool: work with NetBSD /bin/sh
57091         * gnulib-tool (func_cache_var, func_cache_lookup_module)
57092         (func_get_description, func_get_comment, func_get_status)
57093         (func_get_notice, func_get_applicability, func_get_filelist)
57094         (func_get_dependencies, func_get_autoconf_early_snippet)
57095         (func_get_autoconf_snippet, func_get_automake_snippet)
57096         (func_get_include_directive, func_get_link_directive)
57097         (func_get_license, func_get_maintainer, func_import): Avoid
57098         shell syntax errors from parsing syntax extensions.
57100 2010-09-09  Bruno Haible  <bruno@clisp.org>
57102         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
57103         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
57104         a reliable way to determine whether the 'alias' command works.
57106 2010-09-08  Jim Meyering  <meyering@redhat.com>
57108         init.sh: penalize a set-x-impaired shell; don't disqualify it
57109         * tests/init.sh: Too many shells corrupt application stderr when
57110         you set -x, so we can't afford to disqualify them, since at least
57111         on Irix-6.5, that would disqualify all bourne shells.
57112         Instead, use a two-pass approach.
57113         On the first pass, try to find a shell that meets the stricter
57114         condition that set -x does not corrupt stderr.
57115         If no shell meets the stricter condition, retest each candidate
57116         shell, but without that extra condition.  Finally, when
57117         VERBOSE=yes is requested and set -x might cause trouble, simply
57118         issue a warning and refrain from enabling debug output.
57120 2010-09-08  Eric Blake  <eblake@redhat.com>
57122         unsetenv: fix OpenBSD bug
57123         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
57124         * doc/posix-functions/unsetenv.texi (unsetenv): Update
57125         documentation.
57126         Reported by Jim Meyering.
57128         strtod: work around IRIX 6.5 bug
57129         * lib/strtod.c (strtod): Reparse number on shorter string if
57130         exponent parse was invalid.
57131         * tests/test-strtod.c (main): Add check for "0x1p 2".
57132         Reported by Tom G. Christensen.
57134         getopt: optimize previous patch
57135         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
57136         empty variable.  Speed up awk script.
57137         Reported by Paolo Bonzini.
57139 2010-09-08  Jim Meyering  <meyering@redhat.com>
57141         test.sh: disqualify shells for which set -x corrupts stderr
57142         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
57143         and OpenBSD 4.7.  They make it so with "set -x", environment settings
57144         appear in stderr output.  For example, this command:
57145             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
57146         prints "P=1" on those two systems:
57148 2010-09-08  Bruno Haible  <bruno@clisp.org>
57150         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
57151         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
57152         commands, because some shells ignore redirections when there is an
57153         error in the command lookup.
57154         Reported by Eric Blake.
57156 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
57158         * lib/regex.h: Fix a mention of `regex_compile' (should be
57159         `re_compile_pattern').
57160         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
57161         (re_set_registers): Correct name of parameter in comment.
57163         * doc/regex.texi: Add documentation for missing syntax flags.
57164         Remove commented-out documentation of defunct syntax option
57165         RE_NO_EMPTY_ALTS.
57166         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
57167         Add documentation of re_set_registers.
57168         Document trick to re-use a pattern buffer by setting fastmap manually.
57169         Update documentation of struct re_pattern_buffer per public members.
57170         Uncomment documentation of equivalence class operators and
57171         collating symbol operators, since they are now implemented,
57172         Explain leftmost-longest matching in relation to alternatives.
57173         Tidy documentation of substring matching.
57174         Remove POSIX documentation, which is done better in
57175         glibc, and refer the reader there. Keep BSD API documentation, as
57176         that is not readily available elsewhere.
57178 2010-09-07  Eric Blake  <eblake@redhat.com>
57180         getopt: handle POSIXLY_CORRECT set but not exported
57181         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
57182         export state of POSIXLY_CORRECT, due to bash set -o posix.
57183         Reported by Dustin J. Mitchell.
57185 2010-09-05  Bruno Haible  <bruno@clisp.org>
57187         gnulib-tool: Highlight the changed options.
57188         * gnulib-tool (func_usage): Display the --import, --add-import,
57189         --remove-import explanations in bold font.
57191 2010-09-06  Karl Berry  <karl@gnu.org>
57193         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
57195 2010-09-05  Bruno Haible  <bruno@clisp.org>
57197         uniwidth/width: Update comment.
57198         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
57199         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
57201 2010-09-05  Bruno Haible  <bruno@clisp.org>
57203         isinf, isnan: Relax license.
57204         * modules/isinf (License): Change from GPL to LGPL, with consent from
57205         Ben Pfaff.
57206         * modules/isnan (License): Likewise.
57207         Requested by Ludovic Courtès.
57209 2010-09-04  Bruno Haible  <bruno@clisp.org>
57211         gnulib-tool: Help migration from --import to --add-import or --update.
57212         * gnulib-tool: Emit a verbose error message when --import is used
57213         without any module name.
57215 2010-09-04  Bruno Haible  <bruno@clisp.org>
57217         Update doc about gnulib-tool.
57218         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
57219         'gnulib-tool --update' in more detail.
57220         Reported by Eric Blake.
57222 2010-09-04  Bruno Haible  <bruno@clisp.org>
57224         gnulib-tool: Change --import. New options --add/remove-import.
57225         * gnulib-tool: New options --add-import, --remove-import.
57226         (func_usage): Document them.
57227         (have_associative): Define always.
57228         (func_import): In import mode, don't merge the specified settings with
57229         the cached settings. Implement remove-import mode.
57230         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
57231         Explain when to use them versus --import.
57232         (Simple update): Use --add-import instead of --import.
57233         * NEWS: Mention the change.
57235 2010-09-04  Bruno Haible  <bruno@clisp.org>
57237         * doc/gnulib-tool.texi (Initial import): Update paragraph about
57238         separate gnulib.mk.
57240 2010-09-04  Bruno Haible  <bruno@clisp.org>
57242         gnulib-tool: Don't talk about CVS any more.
57243         * gnulib-tool (func_usage, func_import): Write "version control"
57244         instead of CVS.
57246 2010-09-04  Jim Meyering  <meyering@redhat.com>
57248         maint.mk: avoid obscure sc_copyright_check failure in coreutils
57249         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
57250         false positives (whose names may be ill-chosen) when searching
57251         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
57252         would cause a false-positive.
57254         avoid coreutils "make distcheck" failure
57255         Coreutils tests with an absolute build directory name that contains
57256         a space.  Not quoting this directory name caused a failure.
57257         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
57258         * tests/test-vc-list-files-cvs.sh: Likewise.
57260 2010-09-04  Bruno Haible  <bruno@clisp.org>
57262         gnulib-tool: Avoid error when run in a package without Makefile.am.
57263         * gnulib-tool: When collecting the m4dirs in a package that does not
57264         have a Makefile.am, eliminate those directories that contain no
57265         gnulib-cache.m4. Fix expression that counts these directories.
57267 2010-09-04  Bruno Haible  <bruno@clisp.org>
57269         update-copyright test: Improve output when perl is missing or too old.
57270         * tests/test-update-copyright.sh: Move test of Perl version down after
57271         the test whether Perl exists. Provide an explanation relating Perl's
57272         error message to Automake's SKIP: message.
57274 2010-09-04  Bruno Haible  <bruno@clisp.org>
57276         Don't augment PATH in TESTS_ENVIRONMENT.
57277         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
57278         set abs_aux_dir instead of augmenting PATH.
57279         * modules/vc-list-files-tests (Makefile.am): Likewise.
57280         * tests/test-update-copyright.sh: Augment PATH here.
57281         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
57282         path_prepend_.
57283         * tests/test-vc-list-files-git.sh: Likewise.
57285 2010-09-04  Jim Meyering  <meyering@redhat.com>
57287         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
57288         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
57290 2010-09-04  Bruno Haible  <bruno@clisp.org>
57292         strdup: Fix compilation error in C++ mode.
57293         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
57294         the macro.
57296 2010-09-04  Bruno Haible  <bruno@clisp.org>
57298         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
57299         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
57300         macro into a function.
57301         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
57303 2010-09-04  Bruno Haible  <bruno@clisp.org>
57305         Set PATH_SEPARATOR the same way autoconf does.
57306         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
57307         the value of PATH_SEPARATOR the same way autoconf-generated configure
57308         scripts do.
57309         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
57310         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
57312 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
57314         Set PATH_SEPARATOR the same way autoconf does.
57315         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
57316         the same way autoconf-generated configure scripts do.
57317         * posix-modules: Likewise.
57319 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
57321         hash: fix safe_hasher const typo
57322         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
57323         const; otherwise, there is a type error later.
57325 2010-09-02  Jim Meyering  <meyering@redhat.com>
57327         test-update-copyright.sh: require perl 5.8.0
57328         * tests/test-update-copyright.sh: Require 5.8.0,
57329         which Tom G. Christensen has confirmed is adequate,
57330         while 5.6.1 is not.
57332 2010-09-02  Eric Blake  <eblake@redhat.com>
57334         tests: init.sh improvements for re-exec'ing with zsh
57335         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
57336         -vx through shell re-exec.
57337         Reported by Tom G. Christensen.
57339         wctype: fix typo in previous commit
57340         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
57341         Reported by Ludovic Courtès.
57343 2010-09-02  Jim Meyering  <meyering@redhat.com>
57345         test-update-copyright.sh: skip test if Perl is too old
57346         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
57347         Reported by Tom G. Christensen.
57349 2010-09-02  Bruno Haible  <bruno@clisp.org>
57351         wctype: Avoid compilation error on IRIX 6.5.30.
57352         * lib/wctype.in.h (iswblank): Declare with a replacement if
57353         REPLACE_ISWBLANK is set.
57354         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
57355         declared. Set REPLACE_ISWBLANK.
57356         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
57357         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
57358         * doc/posix-headers/wctype.texi: Likewise.
57359         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
57361 2010-09-01  Bruno Haible  <bruno@clisp.org>
57363         New module 'socketlib'.
57364         * modules/socketlib: New file.
57365         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
57366         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
57367         * modules/sockets (Depends-on): Add socketlib.
57368         Suggested by Sam Steingold <sds@gnu.org>.
57370 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
57372         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
57374         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
57375         when one needs search access to a directory but not read access.
57376         On systems where it is available, it works in some cases where
57377         O_RDONLY does not, namely on directories that are searchable but
57378         not readable, and which need only to be searchable.  If O_SEARCH
57379         is not available, fall back to the traditional method of using
57380         O_RDONLY.
57382         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
57383         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
57384         when opening a directory that needs only to be searchable.
57385         * lib/chdir-safer.c (chdir_no_follow): Likewise.
57386         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
57387         * lib/openat-proc.c (openat_proc_name): Likewise.
57388         * lib/openat.c (openat_needs_fchdir): Likewise.
57389         * lib/save-cwd.c (save_cwd): Likewise.
57390         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
57392 2010-08-28  Bruno Haible  <bruno@clisp.org>
57394         New module 'host-cpu-c-abi'.
57395         * modules/host-cpu-c-abi: New file.
57396         * m4/host-cpu-c-abi.m4: New file, based on part of
57397         clisp/src/m4/general.m4.
57398         Requested by Sam Steingold <sds@gnu.org>.
57400 2010-08-31  Eric Blake  <eblake@redhat.com>
57401         and Jim Meyering  <meyering@redhat.com>
57403         hash: factor, and guard against misbehaving hasher function
57404         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
57405         of table->hasher's return value.  Also protect against a hash value
57406         so large that adding it to table->bucket results in a NULL pointer.
57407         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
57408         Use it in place of open-coded check-and-abort.
57410 2010-08-30  Bruno Haible  <bruno@clisp.org>
57412         hash: silence spurious clang warning
57413         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
57414         Reported by Eric Blake.
57416 2010-08-30  Eric Blake  <eblake@redhat.com>
57418         strstr, memmem, strcasestr: avoid leaked shell message
57419         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
57420         FreeBSD.
57421         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
57422         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
57424         tests: silence clang warning
57425         * tests/test-malloca.c (do_allocation): Avoid dead store.
57427 2010-08-29  Bruno Haible  <bruno@clisp.org>
57429         gettext: Fix recent mistake.
57430         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
57432 2010-08-29  Bruno Haible  <bruno@clisp.org>
57434         selinux-h: Offer a --without-selinux option.
57435         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
57436         --without-selinux was specified, skip all tests and define
57437         HAVE_SELINUX_SELINUX_H to 0.
57438         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
57439         set LIB_SELINUX to empty.
57440         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
57441         gl_LIBSELINUX. If --without-selinux was specified, replace
57442         selinux/context.h.
57443         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
57445 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57446             Bruno Haible  <bruno@clisp.org>
57448         Make the module 'realloc-gnu' work again on AIX and OSF/1.
57449         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
57450         of HAVE_REALLOC.
57451         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
57452         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
57453         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
57454         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
57456 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57457             Bruno Haible  <bruno@clisp.org>
57459         Make the module 'calloc-gnu' work again on AIX and OSF/1.
57460         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
57461         HAVE_CALLOC.
57462         * lib/xmalloc.c: Update accordingly.
57463         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
57464         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
57465         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
57467 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57468             Bruno Haible  <bruno@clisp.org>
57470         Make the module 'malloc-gnu' work again on AIX and OSF/1.
57471         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
57472         HAVE_MALLOC.
57473         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
57474         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
57475         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
57477 2010-08-29  Bruno Haible  <bruno@clisp.org>
57479         Update modules list.
57480         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
57481         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
57482         (String handling <string.h>): Add astrxfrm.
57483         (File system functions): Add readlinkat.
57485 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57487         Tests for module 'realloc-gnu'.
57488         * modules/realloc-gnu-tests: New file.
57489         * tests/test-realloc-gnu.c: New file.
57491         Tests for module 'calloc-gnu'.
57492         * modules/calloc-gnu-tests: New file.
57493         * tests/test-calloc-gnu.c: New file.
57495         Tests for module 'malloc-gnu'.
57496         * modules/malloc-gnu-tests: New file.
57497         * tests/test-malloc-gnu.c: New file.
57499 2010-08-28  Bruno Haible  <bruno@clisp.org>
57501         Rename module 'realloc' -> 'realloc-gnu'.
57502         * modules/realloc-gnu: New file, copied from modules/realloc.
57503         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
57504         obsolete.
57505         * modules/mgetgroups (Depends-on): Update.
57506         * doc/posix-functions/realloc.texi: Update.
57507         * NEWS: Mention the change.
57509         Rename module 'calloc' -> 'calloc-gnu'.
57510         * modules/calloc-gnu: New file, copied from modules/calloc.
57511         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
57512         obsolete.
57513         * doc/posix-functions/calloc.texi: Update.
57514         * NEWS: Mention the change.
57516         Rename module 'malloc' -> 'malloc-gnu'.
57517         * modules/malloc-gnu: New file, copied from modules/malloc.
57518         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
57519         obsolete.
57520         * modules/argp (Depends-on): Update.
57521         * modules/regex (Depends-on): Update.
57522         * doc/posix-functions/malloc.texi: Update.
57523         * NEWS: Mention the change.
57525 2010-08-28  Eric Blake  <eblake@redhat.com>
57527         pread, pwrite: add missing dependency
57528         * modules/pread (Depends-on): Add extensions.
57529         * modules/pwrite (Depends-on): Likewise.
57531 2010-08-28  Bruno Haible  <bruno@clisp.org>
57533         unistr/u*-strchr: Fix tests dependencies.
57534         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
57535         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
57536         Reported by Ian Beckwith <ianb@erislabs.net>.
57538 2010-08-28  Bruno Haible  <bruno@clisp.org>
57540         read-file: Don't occupy too much unused memory.
57541         * lib/read-file.c (fread_file): Shrink the buffer at the end.
57543 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
57544             Eric Blake  <eblake@redhat.com>
57545             Bruno Haible  <bruno@clisp.org>
57547         read-file: Avoid memory reallocations with regular files.
57548         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
57549         (fread_file): With regular files, use the remaining length as the
57550         initial buffer size.  Check against overflow.
57551         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
57552         sys_stat.
57554 2010-08-28  Bruno Haible  <bruno@clisp.org>
57556         ftello: Relax license.
57557         * modules/ftello (License): Relax to LGPLv2+.
57558         Reported by Eric Blake.
57560 2010-08-28  Bruno Haible  <bruno@clisp.org>
57562         Avoid relocwrapper link errors due to gnulib replacement functions.
57563         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
57564         function.
57565         Reported by Ben Pfaff <blp@cs.stanford.edu>.
57567 2010-08-28  Bruno Haible  <bruno@clisp.org>
57569         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
57570         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
57571         defined.
57572         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
57573         Suggested by Eric Blake.
57575 2010-08-28  Bruno Haible  <bruno@clisp.org>
57577         sys_socket, netdb: Ensure socklen_t gets defined.
57578         * modules/sys_socket (Depends-on): Add socklen.
57579         * modules/netdb (Depends-on): Likewise.
57580         * modules/getaddrinfo (Depends-on): Remove socklen.
57581         * modules/getsockopt (Depends-on): Likewise.
57582         * modules/setsockopt (Depends-on): Likewise.
57583         * tests/test-sys_socket.c: Check that socklen_t is defined.
57584         * tests/test-netdb.c: Likewise.
57585         * m4/socklen.m4: Update comments.
57586         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57588 2010-08-27  Eric Blake  <eblake@redhat.com>
57590         login_tty: add missing dependency
57591         * modules/login_tty (Depends-on): Add pty.
57593 2010-08-26  Eric Blake  <eblake@redhat.com>
57595         lib-symbol-versions: fix m4 quoting
57596         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
57597         format for AC_LINK_IFELSE.
57599         glob: fix compile test
57600         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
57602         btowc: fix missing file
57603         * modules/btowc (Files): Also ship locale-fr.m4.
57605         lseek: fix link test
57606         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
57607         AC_LINK_IFELSE.
57609         include_next: silence autoconf 2.68 warning
57610         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
57611         AC_COMPILE_IFELSE as special.
57612         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
57613         autoconf < 2.68.
57615         acl: fix compilation test
57616         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
57617         AC_COMPILE_IFELSE.
57619 2010-08-26  Bruno Haible  <bruno@clisp.org>
57621         Modernize AC_TRY_RUN invocations.
57622         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
57623         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
57624         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
57625         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
57626         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
57627         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
57628         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
57629         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
57630         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
57631         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
57632         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
57633         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
57634         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
57635         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
57636         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
57637         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
57638         gl_MBRLEN_NUL_RETVAL): Likewise.
57639         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
57640         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
57641         Likewise.
57642         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
57643         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
57644         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
57645         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
57646         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
57647         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
57648         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
57649         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
57650         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
57651         Likewise.
57652         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
57653         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
57654         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
57655         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
57656         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
57657         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
57658         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
57659         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
57660         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
57661         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
57663 2010-08-26  Bruno Haible  <bruno@clisp.org>
57665         Modernize AC_TRY_LINK invocations.
57666         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
57667         AC_TRY_LINK.
57668         * m4/argp.m4 (gl_ARGP): Likewise.
57669         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
57670         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
57671         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
57672         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
57673         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
57674         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
57675         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
57676         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
57677         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
57678         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
57679         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
57680         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
57681         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
57682         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
57683         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
57684         * m4/hostent.m4 (gl_HOSTENT): Likewise.
57685         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
57686         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
57687         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
57688         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
57689         Likewise.
57690         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
57691         Likewise.
57692         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
57693         Likewise.
57694         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
57695         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
57696         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
57697         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
57698         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
57699         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
57700         * m4/servent.m4 (gl_SERVENT): Likewise.
57701         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
57702         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
57703         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
57704         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
57705         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
57706         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
57707         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
57708         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
57709         * modules/tsearch-tests (configure.ac): Likewise.
57711 2010-08-26  Bruno Haible  <bruno@clisp.org>
57713         Modernize AC_TRY_COMPILE invocations.
57714         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
57715         AC_TRY_COMPILE.
57716         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
57717         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
57718         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
57719         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
57720         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
57721         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
57722         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
57723         * m4/lock.m4 (gl_LOCK): Likewise.
57724         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
57725         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
57726         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
57727         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
57728         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
57729         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
57730         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
57731         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
57732         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
57733         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
57734         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
57735         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
57736         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
57737         extraneous semicolon.
57739 2010-08-26  Jim Meyering  <meyering@redhat.com>
57741         stat-time: relax license LGPL
57742         * modules/stat-time (License): Change from GPL to LGPL,
57743         with consent from all contributors, for use in libguile.
57744         Requested by Ludovic Courtès.
57746 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
57748         poll: return immediately on POLLHUP.
57749         * lib/poll.c (poll): Always set timeout before wait_timeout is
57750         computed.
57752 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57754         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
57755         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
57756         rmdir ("dir/.//"), unlinkat.
57758 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
57760         stdbool: avoid spurious failure with modern xlc
57761         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
57763 2010-08-24  Bruno Haible  <bruno@clisp.org>
57765         getloadavg: simplify code
57766         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
57767         gl_have_func. Update comments.
57769 2010-08-24  Eric Blake  <eblake@redhat.com>
57771         getloadavg: don't define SVR4 on cygwin
57772         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
57773         only define SVR4 when -lkvm is required.
57774         Reported by Yaakov Selkowitz.
57776 2010-08-24  Bruno Haible  <bruno@clisp.org>
57778         priv-set: fix comment
57779         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
57781 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
57783         priv-set: fix comments
57784         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
57785         to match code, as suggested by David Bartley in:
57786         http://lists.gnu.org/r/bug-tar/2010-08/msg00018.html
57788 2010-08-23  Eric Blake  <eblake@redhat.com>
57790         stdbool: avoid rejecting clang
57791         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
57792         * tests/test-stdbool.c: Enable more tests if using the system
57793         <stdbool.h> instead of the gnulib replacement.
57794         (main): Move xlc bug test to a runtime test for all compilers.
57795         Reported by Anders Kaseorg.
57797         argz: fix shell quoting issue
57798         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
57799         Reported by Charles Wilson.
57801 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
57802             Erik Faye-Lund <kusmabite@gmail.com>
57804         poll, select: handle ERROR_BROKEN_PIPE.
57805         * lib/poll.c (win32_compute_revents): Return POLLHUP when
57806         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
57807         * lib/select.c (win32_compute_revents): Do not mark a pipe
57808         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
57810 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
57812         fts: allow compilation with C++
57813         * lib/fts_.h: Specify extern "C" linkage with C++.
57815 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57817         Fix gnulib-tool sed script de-commentation for AIX sed.
57818         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
57819         sed.
57821 2010-08-17  Eric Blake  <eblake@redhat.com>
57823         test-stddef: test for (some) offsetof bugs
57824         * tests/test-stddef.c: Enhance test to ensure correct type of
57825         offsetof.
57826         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
57827         that we are not fixing at this time.
57829 2010-08-15  Bruno Haible  <bruno@clisp.org>
57831         stpncpy: Allow stpncpy to be defined as a macro.
57832         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
57833         if it's already correctly declared.
57834         * lib/string.in.h (stpncpy): Undefine before redefining.
57835         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
57837 2010-08-14  Bruno Haible  <bruno@clisp.org>
57839         Rename module 'memxfrm' to 'amemxfrm'.
57840         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
57841         (amemxfrm): Renamed from memxfrm.
57842         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
57843         (amemxfrm): Renamed from memxfrm.
57844         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
57845         * NEWS: Mention the change.
57846         * MODULES.html.sh (String handling <string.h>): Update.
57847         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
57848         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
57849         * lib/unicase/u16-casexfrm.c: Likewise.
57850         * lib/unicase/u32-casexfrm.c: Likewise.
57851         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
57852         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
57853         * lib/uninorm/u16-normxfrm.c: Likewise.
57854         * lib/uninorm/u32-normxfrm.c: Likewise.
57855         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
57856         memxfrm.
57857         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
57858         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
57859         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
57860         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
57861         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
57862         Suggested by Paul Eggert.
57864 2010-08-14  Bruno Haible  <bruno@clisp.org>
57866         Tests for module 'astrxfrm'.
57867         * modules/astrxfrm-tests: New file.
57868         * tests/test-astrxfrm.c: New file.
57870         New module 'astrxfrm'.
57871         * lib/astrxfrm.h: New file.
57872         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
57873         * modules/astrxfrm: New file.
57875 2010-08-14  Reuben Thomas  <rrt@sc3d.org>
57877         regex: Tweak doc.
57878         * doc/regex.texi (Overview): Don't mention regex.c.
57879         (GNU Regular Expression Compiling): Likewise.
57880         (Match-end-of-line Operator): Mention 'not_eol'.
57882 2010-08-14  Brian Gough  <bjg@gnu.org>
57883             Bruno Haible  <bruno@clisp.org>
57885         git-merge-changelog: add doc relating to use with bzr and hg.
57886         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
57888 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
57890         pthread: fix pthread.h creation for srcdir != builddir
57891         * modules/pthread (Makefile.am): Fix the rule to work also in a
57892         non-srcdir build.
57894 2010-08-13  Karl Berry  <karl@gnu.org>
57896         * doc/regex.texi (Predefined Syntaxes): @smallexample.
57897         * doc/posix-*/*: force line break before @url of POSIX
57898         specifications.
57899         Suggested by Werner Lemberg.
57901 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
57903         strtod: fix const diagnostic
57904         * lib/strtod.c (strtod): Don't assign const char * to char *,
57905         as this elicits a warning from GCC when warnings are enabled.
57907 2010-08-10  Pádraig Brady  <P@draigbrady.com>
57908         and Eric Blake  <eblake@redhat.com>
57910         copy-acl: ignore ENOTSUP on HP-UX
57911         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
57912         so that it is available for HP-UX.
57913         * lib/copy-acl.c (qcopy_acl): Use it.
57914         Reported by Patrick M. Callahan.
57916 2010-08-10  Eric Blake  <eblake@redhat.com>
57918         open, chown: relax license
57919         * modules/open (License): Change to LGPLv2+, with consent by all
57920         authors, for use in augeas.
57921         * modules/chown (License): Likewise.
57922         * modules/lchown (Likewise): Likewise.
57923         Requested by Adam Stokes.
57925 2010-08-09  Karl Berry  <karl@gnu.org>
57927         * build-aux/ar-lib: new file, import from Automake.
57928         * config/srclist.txt: autocheck for updates.
57930 2010-08-09  Eric Blake  <eblake@redhat.com>
57932         readlinkat: adjust client modules
57933         * modules/areadlinkat (Depends-on): Use readlinkat, not
57934         symlinkat.
57935         * modules/areadlinkat-with-size (Depends-on): Likewise.
57937         mknod: be more vocal about danger of running tests as root
57938         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
57939         root, since that is just asking for problems.
57940         Suggested by Bruno Haible, based on a report by Rainer Tammer.
57942         readlinkat: split into its own module
57943         * modules/symlinkat: Split readlinkat...
57944         * modules/readlinkat: ...into separate module.
57945         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
57946         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
57947         * lib/symlinkat.c (readlinkat): Move...
57948         * lib/readlinkat.c: ...into new file.
57949         * modules/symlinkat-tests: Split readlinkat test...
57950         * modules/readlinkat-tests: ...into separate module.
57951         * tests/test-symlinkat.c: Split...
57952         * tests/test-readlinkat.c: ...into new file.
57953         * NEWS: Document the split.
57954         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
57955         * lib/unistd.in.h (readlinkat): Likewise.
57956         Suggested by Bruno Haible.
57958 2010-08-08  Bruno Haible  <bruno@clisp.org>
57960         memxfrm: Speed up.
57961         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
57962         that usually only one call to strxfrm is necessary for each string
57963         part.
57964         Reported by Paul Eggert <eggert@cs.ucla.edu>.
57966 2010-08-07  Karl Berry  <karl@gnu.org>
57968         * doc/posix-headers/limits.texi,
57969         * doc/posix-functions/malloc.texi,
57970         * doc/posix-functions/strsignal.texi: missing @item.
57971         * doc/ld-version-script.texi: spurious leading i.
57972         * doc/regex.texi (Interval Operators): no commas inside @var.
57974 2010-08-01  Bruno Haible  <bruno@clisp.org>
57976         Integrate the regex documentation.
57977         * doc/gnulib.texi: Define 'cn' index.
57978         (Regular expressions): New a chapter that includes regex.texi and
57979         regexprops-generic.texi.
57980         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
57981         syntax.
57983         Whitespace cleanup.
57984         * doc/regex.texi: Remove trailing spaces.
57986         Add regex documentation.
57987         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
57988         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
57989         Written by Kathy A. Hargreaves and Karl Berry.
57991 2010-08-01  Bruno Haible  <bruno@clisp.org>
57993         link: Update documentation.
57994         * doc/posix-functions/link.texi: Update regarding Solaris.
57996 2010-07-31  Bruno Haible  <bruno@clisp.org>
57998         Update modules list.
57999         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
58000         (String handling <string.h>): Add memcmp2, memxfrm.
58001         (Container data structures): Add xlist, xsublist, xoset.
58002         (Core language properties): Add alignof, unused-parameter.
58003         (Process control, Numeric conversion functions <stdlib.h>): Renamed
58004         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
58005         (Unibyte characters <ctype.h>): New section.
58006         (String handling <string.h>): New section.
58007         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
58008         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
58009         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
58010         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
58011         tan, tanh, tanl, y0, y1, yn.
58012         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
58013         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
58014         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
58015         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
58016         unlockpt, vdprintf, vdprintf-posix.
58017         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
58018         (File system functions): Add concat-filename, sys_file, sys_ioctl,
58019         xconcat-filename.
58020         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
58021         getdtablesize, pipe2, pipe2-safer.
58022         (Security): New section.
58023         (Networking functions): Add accept4.
58024         (Signal handling): Add sigpipe.
58025         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
58026         mbmemcasecoll.
58027         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
58028         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
58029         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
58030         pipe-filter-ii.
58031         (Misc): Add argp-version-etc, login_tty, parse-duration.
58033 2010-07-31  Bruno Haible  <bruno@clisp.org>
58035         Improve doc in MODULES.html.
58036         * modules/linkat (Description): Add the word "function".
58037         * modules/mkfifo (Description): Likewise.
58038         * modules/mknod (Description): Likewise.
58039         * modules/remove (Description): Likewise.
58040         * modules/renameat (Description): Likewise.
58041         * modules/stat (Description): Likewise.
58042         * modules/symlink (Description): Likewise.
58043         * modules/unlink (Description): Likewise.
58045 2010-07-31  Bruno Haible  <bruno@clisp.org>
58047         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
58048         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
58049         option --enable/disable-c++ instead of --enable/disable-cxx.
58050         * NEWS: Mention the change.
58052 2010-07-31  Bruno Haible  <bruno@clisp.org>
58054         readlink, areadlink: Relax test a bit.
58055         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
58056         alternative to ENOTDIR.
58057         * tests/test-areadlink.h (test_areadlink): Likewise.
58058         Reported by Rainer Tammer.
58060 2010-07-31  Bruno Haible  <bruno@clisp.org>
58062         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
58063         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
58064         character, perform the search using U_STRCHR.
58065         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
58066         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
58067         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
58068         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
58069         Suggested by Paolo Bonzini.
58071 2010-07-31  Bruno Haible  <bruno@clisp.org>
58073         unistr/u*-strstr: Fix dependencies.
58074         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
58075         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
58076         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
58078 2010-07-31  Bruno Haible  <bruno@clisp.org>
58080         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
58081         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
58082         the beginning of the loop.
58083         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
58084         cases in 'switch' statement.
58086         unistr/u8-strchr: Fix several bugs.
58087         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
58088         the string. When not found, return NULL, not a pointer near the end.
58090         More tests for unistr/u8-strchr.
58091         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
58092         that the function does not read past the first occurrence of the byte
58093         being searched.
58094         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
58095         * tests/unistr/test-u16-strchr.c (main): New function.
58096         * tests/unistr/test-u32-strchr.c (main): New function.
58098 2010-07-31  Bruno Haible  <bruno@clisp.org>
58100         posix-modules: Ignore backup files of documentation files.
58101         * posix-modules: grep only through files named *.texi.
58103 2010-07-31  Bruno Haible  <bruno@clisp.org>
58105         symlinkat: Fix documentation.
58106         * doc/posix-functions/readlinkat.texi: Fix module name.
58108 2010-07-31  Bruno Haible  <bruno@clisp.org>
58110         fchownat: Replace also when chown has the trailing slash bug.
58111         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
58112         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
58113         introduced on 2010-04-10.
58114         Reported by Rainer Tammer.
58116 2010-07-31  Bruno Haible  <bruno@clisp.org>
58118         linkat: Work around AIX 7.1 bug.
58119         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
58120         whether linkat handles trailing slash correctly. If not, replace linkat
58121         and define LINKAT_TRAILING_SLASH_BUG.
58122         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
58123         check whether (fd1,file1) points to a directory if file1 or file2 ends
58124         in a slash. Code taken from lib/link.c.
58125         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
58126         Reported by Rainer Tammer.
58128 2010-07-31  Bruno Haible  <bruno@clisp.org>
58130         Correctly determine whether pow is available in libc on AIX 7 with xlc.
58131         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
58132         This disables an xlc optimization that was causing wrong test results.
58133         Reported by Rainer Tammer.
58135 2010-07-31  Bruno Haible  <bruno@clisp.org>
58137         iconv: Work around AIX 6.1..7.1 bug.
58138         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
58139         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
58140         cross-compiling, guess no on all versions of AIX.
58141         Reported by Rainer Tammer.
58143 2010-07-31  Bruno Haible  <bruno@clisp.org>
58145         readlink: Relax test a bit.
58146         * tests/test-readlink.h (test_readlink): Allow different errno value
58147         when readlink is called with a file name that ends in / and refers to
58148         a file.
58149         Suggested by Eric Blake.
58150         Reported by Rainer Tammer.
58152 2010-07-31  Bruno Haible  <bruno@clisp.org>
58154         copysign: Does not require -lm on glibc systems.
58155         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
58156         gl_COMMON_DOUBLE_MATHFUNC.
58157         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
58159 2010-07-31  Bruno Haible  <bruno@clisp.org>
58161         duplocale: Work around AIX 7.1 bug.
58162         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
58163         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
58164         * lib/duplocale.c (rpl_duplocale): Update comment.
58165         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
58166         Reported by Rainer Tammer.
58168 2010-07-30  Bruno Haible  <bruno@clisp.org>
58170         dirfd: Avoid link error on AIX 7.1.
58171         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
58172         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
58173         exist, set REPLACE_DIRFD.
58174         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
58175         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
58176         * doc/posix-functions/dirfd.texi: Update.
58177         Reported by Rainer Tammer.
58179 2010-07-30  Eric Blake  <eblake@redhat.com>
58181         strtod: next round of AIX fixes
58182         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
58183         exponent.
58184         * tests/test-strtod.c (main): Enhance tests.
58185         * doc/posix-functions/strtod.texi (strtod): Document next bug.
58186         Reported by Rainer Tammer.
58188         futimens: fix configure check
58189         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
58190         Reported by Bruno Haible.
58192 2010-07-30  Bruno Haible  <bruno@clisp.org>
58194         getline: Update regarding AIX.
58195         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
58196         Reported by Rainer Tammer.
58198 2010-07-30  Bruno Haible  <bruno@clisp.org>
58200         wcwidth: Drop replacement on AIX 7.
58201         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
58202         AIX 7.
58203         Reported by Rainer Tammer.
58205 2010-07-30  Bruno Haible  <bruno@clisp.org>
58207         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
58208         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
58209         a 'char *'.
58210         Reported by Rainer Tammer.
58212 2010-07-30  Bruno Haible  <bruno@clisp.org>
58214         unlink: Update regarding AIX.
58215         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
58216         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
58217         Reported by Rainer Tammer.
58219 2010-07-30  Bruno Haible  <bruno@clisp.org>
58221         symlink: Update regarding AIX.
58222         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
58223         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
58224         Reported by Rainer Tammer.
58226 2010-07-30  Bruno Haible  <bruno@clisp.org>
58228         strndup: Update regarding AIX.
58229         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
58230         AIX 7.
58231         Reported by Rainer Tammer.
58233 2010-07-30  Bruno Haible  <bruno@clisp.org>
58235         stat: Update regarding AIX.
58236         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
58237         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
58238         Reported by Rainer Tammer.
58240 2010-07-30  Bruno Haible  <bruno@clisp.org>
58242         truncl: Fix autoconf test.
58243         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
58244         whether truncl works.
58245         Reported by Rainer Tammer.
58247 2010-07-30  Bruno Haible  <bruno@clisp.org>
58249         round: Update regarding AIX.
58250         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
58251         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
58252         Reported by Rainer Tammer.
58254 2010-07-30  Bruno Haible  <bruno@clisp.org>
58256         rename: Update regarding AIX.
58257         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
58258         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
58259         Reported by Rainer Tammer.
58261 2010-07-30  Bruno Haible  <bruno@clisp.org>
58263         printf.m4: Update regarding AIX.
58264         * m4/printf.m4: Update comments regarding AIX.
58265         Reported by Rainer Tammer.
58267 2010-07-30  Bruno Haible  <bruno@clisp.org>
58269         iconv: Update regarding AIX.
58270         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
58271         AIX 7.
58272         Reported by Rainer Tammer.
58274 2010-07-30  Bruno Haible  <bruno@clisp.org>
58276         getopt: Update regarding AIX.
58277         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
58278         no on AIX.
58279         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
58280         Reported by Rainer Tammer.
58282 2010-07-30  Bruno Haible  <bruno@clisp.org>
58284         ldexpl; Update regarding AIX.
58285         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
58286         on AIX 7.
58287         Reported by Rainer Tammer.
58289 2010-07-30  Bruno Haible  <bruno@clisp.org>
58291         frexpl: Update regarding AIX.
58292         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
58293         on AIX 7.
58294         Reported by Rainer Tammer.
58296 2010-07-30  Bruno Haible  <bruno@clisp.org>
58298         open, fopen: Update regarding AIX.
58299         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
58300         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
58301         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
58302         * doc/posix-functions/fopen.texi: Likewise.
58303         Reported by Rainer Tammer.
58305 2010-07-30  Bruno Haible  <bruno@clisp.org>
58307         chown: Update doc regarding AIX.
58308         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
58309         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
58310         Reported by Rainer Tammer.
58312 2010-07-30  Eric Blake  <eblake@redhat.com>
58314         strtod: fix bug in replacement function on AIX
58315         * lib/strtod.c (strtod): Special case broken "0x" parse in
58316         underlying strtod.
58317         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
58318         * doc/posix-functions/strtod.texi (strtod): Likewise.
58319         Reported by Rainer Tammer.
58321 2010-07-30  Bruno Haible  <bruno@clisp.org>
58323         mbrlen: Fix cross-compilation guess for AIX.
58324         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
58325         guess. Leftover from 2008-12-22.
58327 2010-07-30  Bruno Haible  <bruno@clisp.org>
58329         mbrtowc: Fix cross-compilation guess for AIX.
58330         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
58331         guess. Leftover from 2008-12-21.
58333 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
58335         init.sh: work around trap limitation of some shells
58336         * tests/init.sh (setup_): Move exit trap outside of shell function.
58338 2010-07-29  Eric Blake  <eblake@redhat.com>
58340         strtod: aid debugging
58341         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
58342         understanding why strtod is rejected.
58344 2010-07-28  Bruno Haible  <bruno@clisp.org>
58346         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
58347         * lib/unistr/u8-chr.c: Include <string.h>.
58348         * tests/unistr/test-u8-chr.c: Likewise.
58349         * tests/unistr/test-u16-chr.c: Likewise.
58350         * tests/unistr/test-u32-chr.c: Likewise.
58351         * tests/unistr/test-u8-strchr.c: Likewise.
58352         * tests/unistr/test-u16-strchr.c: Likewise.
58353         * tests/unistr/test-u32-strchr.c: Likewise.
58354         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
58355         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
58356         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
58357         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
58359 2010-07-28  Bruno Haible  <bruno@clisp.org>
58361         Use spaces for indentation, not tabs.
58362         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
58364 2010-07-27  Bruno Haible  <bruno@clisp.org>
58366         mbspcasecmp: Fix function specification.
58367         * lib/string.in.h (mbspcasecmp): Fix specification comment.
58368         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
58369         Reported by Eric Blake <eblake@redhat.com>.
58371 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
58373         timespec: use cast and not conditional, as truncation isn't possible
58374         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
58375         instead of a conditional.  Comment about the situation in more detail.
58376         This undoes most of the 2009-10-29 patch.
58378 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
58380         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
58381         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
58382         * lib/unistr/u8-strchr.c: Likewise.
58383         * modules/unistr/u8-chr: Depend on memchr.
58385         unistr/u*-strchr: add tests
58386         * modules/unistr/u8-strchr-tests: New file.
58387         * modules/unistr/u16-strchr-tests: New file.
58388         * modules/unistr/u32-strchr-tests: New file.
58389         * tests/unistr/test-strchr.h: New file.
58390         * tests/unistr/test-u8-strchr.c: New file.
58391         * tests/unistr/test-u16-strchr.c: New file.
58392         * tests/unistr/test-u32-strchr.c: New file.
58394         unistr/u*-chr: test multibyte sequences more
58395         * tests/unistr/test-chr.h: Do complete testing of the characters in the
58396         test vector.
58397         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
58398         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
58399         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
58401         unistr/u*-chr: test multibyte sequences
58402         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
58404         unistr/u*-chr: prepare for multibyte tests
58405         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
58406         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
58407         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
58408         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
58409         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
58410         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
58412 2010-07-18  Bruno Haible  <bruno@clisp.org>
58414         unistr/u8-strchr: Optimize non-ASCII argument case.
58415         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
58416         because the first byte often matches anyway.
58417         Reported by Pádraig Brady <P@draigbrady.com>.
58419 2010-07-15  Karl Berry  <karl@gnu.org>
58421         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
58423 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
58425         getcwd: on Solaris, work better if ancestors are inaccessible
58426         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
58427         buffer and size, try again with a large buffer.  This works better
58428         on Solaris, since its getcwd succeeds even if the path to the root
58429         is inaccessible, and this is helpful in common cases such as .zfs
58430         hidden directories.  Problem reported by J Chapman Flack in
58431         http://lists.gnu.org/r/bug-tar/2010-06/msg00000.html
58432         Use system getcwd if it's declared, not merely if it's partly
58433         working; use the partly-working test only to avoid needless effort
58434         if the system getcwd fails.
58435         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
58436         comment that was already obsolete and is now even more obsolete.
58437         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
58438         now might call strdup.
58440 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
58442         pthread: Add enough so that coreutils/src/sort.c compiles.
58443         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
58444         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
58445         gnulib. Include <sched.h> and <time.h>, as per POSIX.
58446         Include <sys/types.h>, in case it defines pthread_t.
58447         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
58448         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
58449         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
58450         (pthread_rwlockattr_t, pthread_spinlock_t):
58451         New typedefs, if HAVE_PTHREAD_T is not defined.
58452         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
58453         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
58454         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
58455         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
58456         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
58457         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
58458         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
58459         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
58460         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
58461         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
58462         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
58463         New macros.
58464         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
58465         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
58466         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
58467         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
58468         (pthread_spin_unlock): New dummy functions.
58469         (pthread_create): Return EAGAIN; don't set errno.
58470         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
58471         require AC_C_INLINE.
58472         * modules/pthread (Depends-on): Add sched, time.
58473         (pthread.h): Use AM_V_GEN.
58475 2010-07-13  Bruno Haible  <bruno@clisp.org>
58477         striconveh: Don't malloc memory if the result buffer is sufficient.
58478         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
58479         buffer if its size is sufficient.
58480         Reported by Ludovic Courtès <ludo@gnu.org>.
58482 2010-07-13  Bruno Haible  <bruno@clisp.org>
58484         strtod: Add safety check.
58485         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
58487 2010-07-12  Bruno Haible  <bruno@clisp.org>
58489         Unify tests that set gl_cv_func_ldexpl_no_libm.
58490         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
58491         gl_FUNC_LDEXPL.
58492         (gl_FUNC_LDEXPL): Invoke it.
58493         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
58495 2010-07-12  Bruno Haible  <bruno@clisp.org>
58497         Unify tests that set gl_cv_func_ldexp_no_libm.
58498         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
58499         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
58500         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
58501         (configure.ac): Simply invoke gl_FUNC_LDEXP.
58502         * modules/strtod (Files): Add m4/ldexp.m4.
58504 2010-07-12  Bruno Haible  <bruno@clisp.org>
58506         Unify tests that set gl_cv_func_frexpl_no_libm.
58507         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
58508         gl_FUNC_FREXPL_NO_LIBM.
58509         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
58510         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
58512 2010-07-12  Bruno Haible  <bruno@clisp.org>
58514         Unify tests that set gl_cv_func_frexp_no_libm.
58515         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
58516         gl_FUNC_FREXP_NO_LIBM.
58517         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
58518         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
58520 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
58522         memcoll: clarify sizes versus lengths, document better, and tweak perf
58523         * lib/memcoll.c (strcoll_loop, memcoll0):
58524         Improve quality of descriptive comments.  Name variables
58525         consistently as to whether they are lengths (which do not include
58526         terminating null) versus sizes (which do).
58527         * lib/xmemcoll.c (xmemcoll0): Likewise.
58528         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
58529         returned when s1size == 0; this is easier to compile and saves
58530         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
58532 2010-07-12  Bruno Haible  <bruno@clisp.org>
58534         Tests for module '_Exit'.
58535         * modules/_Exit-tests: New file.
58536         * tests/test-_Exit.sh: New file.
58537         * tests/test-_Exit.c: New file.
58539         New module '_Exit'.
58540         * lib/stdlib.in.h (__attribute__): New macro.
58541         (_Exit): New declaration.
58542         * lib/_Exit.c: New file.
58543         * m4/_Exit.m4: New file.
58544         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
58545         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
58546         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
58547         * modules/_Exit: New file.
58548         * tests/test-stdlib-c++.cc (_Exit): Check signature.
58549         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
58551 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
58553         strtod: make it more-accurate typically, and don't require libm
58554         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
58555         Include limits.h.  Don't include string.h.
58556         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
58557         (locale_isspace): New function, so that no casts are needed to
58558         check whether *s is a space.
58559         (ldexp): Provide an unused dummy if not available.
58560         (scale_radix_exp, parse_number, underlying_strtod): New functions.
58561         (strtod): Use them.  This implementation prefers to use the
58562         underlying strtod if available, falling back on our own code
58563         only to fix known bugs.  This is more likely to produce an
58564         accurate result.  Also, it avoids the use of libm functions.
58565         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
58566         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
58567         was absent, but it caused a test failure with coreutils.
58568         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
58569         with libm.
58570         * modules/strtod (Makefile.am, Link): libm is no longer needed.
58571         * modules/strtod-tests (Makefile.am): Likewise.
58573 2010-07-11  Pádraig Brady  <P@draigBrady.com>
58574             Bruno Haible  <bruno@clisp.org>
58576         unistr/u8-strchr: Optimize ASCII argument case.
58577         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
58579 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
58581         (x)memcoll: minor tweaks
58582         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
58583         is after the type that it qualifies.
58584         (memcoll0): Likewise.
58585         * lib/memcoll.h (memcoll0): Likewise.
58586         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
58587         * lib/xmemcoll.h (xmemcoll0): Likewise.
58588         * lib/memcoll.c (memcoll0): Correct the comment.  This function
58589         differs from memcoll in that the NUL byte is part of the argument.
58590         Omit the abort-checks, as performance is a real issue here.  Plus,
58591         the checks were wrong anyway (an off-by-one error).  Omit local
58592         variable 'diff', as it's a bit clearer that way.
58593         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
58594         no longer needed.
58596 2010-07-08  Chen Guo  <chenguo4@yahoo.com>
58598         (x)memcoll: speedup when input is known to be NUL delimited
58599         * lib/memcoll.c: Include stdlib.
58600         (memcoll0): New function.
58601         (strcoll_loop): New function, refactored for use in both memcoll
58602         and memcoll0.
58603         * lib/memcoll.h (memcoll0): Add prototype.
58604         * lib/xmemcoll.c (xmemcoll0): New function.
58605         (collate_error): New function, refactored for use in both xmemcoll
58606         and xmemcoll0.
58607         * lib/xmemcoll.h (xmemcoll0): Add prototype.
58608         * m4/memcoll.m4: add inline invocation.
58610 2010-07-06  Pádraig Brady  <P@draigBrady.com>
58612         * build-aux/bootstrap: Remove any local translations
58613         from the translation project synchronization directory,
58614         so that local only translations are not distributed.
58616 2010-07-04  Bruno Haible  <bruno@clisp.org>
58618         fsusage: Clarify which code applies to which platforms.
58619         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
58620         platform.
58621         * lib/fsusage.c (get_fs_usage): Likewise.
58623 2010-07-04  Bruno Haible  <bruno@clisp.org>
58625         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
58626         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
58627         Reported by Martin Lambers <marlam@marlam.de>.
58629 2010-07-04  Jim Meyering  <meyering@redhat.com>
58631         hash: once again explicitly disallow insertion of NULL
58632         * lib/hash.c (hash_insert0): Reinstate just-removed test:
58633         inserting a NULL pointer cannot work with these functions.
58634         Add a comment with details.
58635         This reverts part of the 2010-07-01 commit, 5bef1a35
58636         "hash: extend module to deal with non-pointer keys".
58638 2010-07-01  Bruno Haible  <bruno@clisp.org>
58640         stdbool: Update doc.
58641         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
58642         Info from Christian Weisgerber <naddy@mips.inka.de>.
58644 2010-07-01  Jim Meyering  <meyering@redhat.com>
58646         hash: extend module to deal with non-pointer keys
58647         * lib/hash.c (hash_insert0): New interface, much like hash_insert
58648         but that allows insertion of non-pointer entries.
58649         Do not disallow an ENTRY value of NULL.
58650         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
58651         * lib/hash.h (hash_insert0): Declare.
58653 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
58655         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
58656         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
58657         not present (i.e. with autoconf 2.59 and when using gettextize, not
58658         gnulib), require AC_GNU_SOURCE instead.
58660 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
58662         idpriv-drop: Fix tests.
58663         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
58664         not to the test-idpriv-droptemp program.
58666 2010-06-29  Bruno Haible  <bruno@clisp.org>
58668         string: Fix syntax error with g++ 2.96.
58669         * lib/string.in.h (__pure__): Remove definition.
58670         (_GL_ATTRIBUTE_PURE): New macro.
58671         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
58672         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
58673         Reported by Christian Weisgerber <naddy@mips.inka.de>.
58675 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
58677         unitypes: Fix bug introduced on 2010-05-18.
58678         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
58680 2010-06-22  Eric Blake  <eblake@redhat.com>
58682         memmem: slight optimization
58683         * lib/str-two-way.h (critical_factorization): Update comments.
58684         Reduce work during factorization phase.
58685         Reported by Carlos Bueno <carlos@bueno.org>.
58687 2010-06-21  Bruno Haible  <bruno@clisp.org>
58689         Fix HAVE_CALLOC_POSIX misnomer.
58690         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
58691         !HAVE_CALLOC_POSIX.
58692         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
58693         HAVE_CALLOC_POSIX.
58694         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
58695         instead of HAVE_CALLOC_POSIX.
58696         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
58697         HAVE_CALLOC_POSIX.
58699         Use modern idiom for calloc() replacement.
58700         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
58701         AC_FUNC_CALLOC.
58702         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
58703         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
58704         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
58705         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
58706         (gl_REPLACE_CALLOC): New macro.
58708 2010-06-21  Bruno Haible  <bruno@clisp.org>
58710         Fix HAVE_REALLOC_POSIX misnomer.
58711         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
58712         !HAVE_REALLOC_POSIX.
58713         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
58714         HAVE_REALLOC_POSIX.
58715         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
58716         instead of HAVE_REALLOC_POSIX.
58717         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
58718         HAVE_REALLOC_POSIX.
58720         Use modern idiom for realloc() replacement.
58721         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
58722         AC_FUNC_REALLOC.
58723         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
58724         Autoconf's AC_FUNC_REALLOC.
58725         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
58726         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
58727         (gl_REPLACE_REALLOC): New macro.
58728         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
58730 2010-06-21  Bruno Haible  <bruno@clisp.org>
58732         Fix HAVE_MALLOC_POSIX misnomer.
58733         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
58734         !HAVE_MALLOC_POSIX.
58735         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
58736         HAVE_MALLOC_POSIX.
58737         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
58738         instead of HAVE_MALLOC_POSIX.
58739         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
58740         HAVE_MALLOC_POSIX.
58742         Use modern idiom for malloc() replacement.
58743         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
58744         AC_FUNC_MALLOC.
58745         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
58746         Autoconf's AC_FUNC_MALLOC.
58747         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
58748         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
58749         (gl_REPLACE_MALLOC): New macro.
58750         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
58752 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
58754         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
58755         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
58756         This macro takes 3 arguments, not 4.
58758 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
58760         ipv6: fix detection under mingw
58761         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
58762         in6_addr.
58764 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
58766         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
58767         that strtod() works when cross-compiling to a glibc version known
58768         to work.
58770 2010-06-15  Bruno Haible  <bruno@clisp.org>
58772         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
58774 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
58776         select: Correct timeout.
58777         * lib/select.c (rpl_select): Compute wait_timeout correctly.
58779 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
58781         git-version-gen: init shell var to avoid env var influence
58782         * build-aux/git-version-gen (v): Init shell var to empty.
58784 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
58786         priv-set: Don't assume that priv.h exists merely because getppriv does.
58787         See Jan Andersen's bug report about AIX 5L in
58788         http://lists.gnu.org/r/bug-tar/2010-06/msg00019.html
58789         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
58790         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
58791         * lib/priv-set.h: Likewise.
58792         * tests/test-priv-set.c: Likewise.
58794 2010-06-13  Bruno Haible  <bruno@clisp.org>
58796         relocatable: Make it easier to test whether to install wrappers.
58797         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
58798         RELOCATABLE_VIA_WRAPPER.
58800 2010-06-13  Bruno Haible  <bruno@clisp.org>
58802         gnulib-tool: Display specified modules and dependencies differently.
58803         * gnulib-tool (func_show_module_list): New function.
58804         (func_import, func_create_testdir): Invoke it.
58805         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
58807 2010-06-13  Bruno Haible  <bruno@clisp.org>
58809         gnulib-tool: Align code of func_import and func_create_testdir.
58810         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
58811         specified_modules.
58813 2010-06-12  Jim Meyering  <meyering@redhat.com>
58815         test-inttostr: avoid spurious failure on Solaris 9
58816         * tests/test-inttostr.c (main): Skip the test when snprintf fails
58817         to accept "%ju".  Reported by Bruno Haible.
58819 2010-06-11  Jim Meyering  <meyering@redhat.com>
58821         test-sys_socket: mark variables as used more readably
58822         * tests/test-sys_socket.c (main): Mark otherwise unused variables
58823         as "used" explicitly via (void) statement casts.  This is more
58824         readable than using them in an artificial return expression.
58825         Suggestion from Bruno Haible.
58827 2010-06-11  Bruno Haible  <bruno@clisp.org>
58829         Avoid some more warnings from "gcc -Wwrite-strings".
58830         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
58831         to 'const char *'.
58832         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
58833         * tests/test-c-strcasestr.c (main): Likewise.
58834         * tests/test-mbscasestr1.c (main): Likewise.
58835         * tests/test-mbscasestr2.c (main): Likewise.
58836         * tests/test-memmem.c (main): Likewise.
58837         * tests/test-strstr.c (main): Likewise.
58838         * tests/test-strcasestr.c (main): Likewise.
58840 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58842         init.sh: change framework_failure_ to fail with status 99, not 1
58843         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
58844         automake's parallel-tests rule that this is an unexpected failure,
58845         even if the test is listed in XFAIL_TESTS.
58847 2010-06-11  Jim Meyering  <meyering@redhat.com>
58849         test-inttostr: avoid warnings about 4-6KB literal strings
58850         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
58851         Include "macros.h", for its definition of ASSERT.
58852         (CK): s/assert/ASSERT/
58853         * modules/inttostr-tests (Files): Add macros.h.
58855         init.sh: don't use $ME_ or skip_ before they are defined
58856         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
58857         their first uses.  Also hoist their companions: warn_, fail_,
58858         framework_failure_, $stderr_fileno.  Prompted by a patch from
58859         Stefano Lattarini.
58861         test-sys_socket: avoid set-but-not-used warnings from gcc
58862         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
58863         avoid warning about set-but-not-used variables.
58865         test-xvasprintf: avoid 'const' discard warnings
58866         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
58867         "const" when assigning from literal strings.
58868         (test_xasprintf): Add "void" in function argument list to placate
58869         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
58871         tests: avoid compilation warnings in argmatch and exclude tests...
58872         in packages that define ARGMATCH_DIE_DECL, like coreutils.
58873         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
58874         Since it always exits, declare with the "noreturn" attribute.
58875         * tests/test-argmatch.c: Likewise.
58877         tests: avoid 'const' discard warnings in mbsstr tests
58878         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
58879         * tests/test-mbsstr2.c (main): Likewise.
58881         test-verify: avoid warning from gcc's -Wmissing-declarations
58882         * tests/test-verify.c (function): Declare to be static.
58884         test-inttostr.c: include <string.h> for use of strcmp
58885         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
58887         test-linkat: avoid failed assertion on "other" architectures
58888         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
58889         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
58890         sparc: https://bugs.launchpad.net/bugs/591968
58892 2010-06-11  Jim Meyering  <meyering@redhat.com>
58894         printf.m4: avoid autoconf's "Expanded Before Required" warning
58895         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
58896         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
58897         autoconf warning.
58899 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
58901         Replacement header templates are now named with ".in", not "_".
58902         * doc/gnulib-intro.texi: Correct.
58904 2010-06-10  Jim Meyering  <meyering@redhat.com>
58906         inttostr-tests: depend on snprintf, not snprintf-posix
58907         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
58908         snprintf-posix, to avoid this aclocal failure:
58909           missing file gnulib-tests/vasnprintf.c
58910           configure.ac:45: error: expected source file, required through \
58911           AC_LIBSOURCES, not found
58913 2010-06-10  Jim Meyering  <meyering@redhat.com>
58915         inttostr: add a new function, inttostr, and tests
58916         The namesake function was not available.  The existence of the
58917         template file, inttostr.c makes its addition nontrivial.
58918         * lib/anytostr.c: Rename from inttostr.c.
58919         (anytostr): Rename from inttostr.
58920         * lib/inttostr.c: New file.
58921         * modules/inttostr (Files): Add anytostr.c.
58922         (Makefile.am): Set lib_SOURCES instead of ...
58923         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
58924         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
58925         * lib/offtostr.c: Likewise.
58926         * lib/uinttostr.c: Likewise.
58927         * lib/umaxtostr.c: Likewise.
58928         * modules/inttostr-tests: New file.
58929         * tests/test-inttostr.c: New file.  Test these functions.
58931 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
58932             Bruno Haible  <bruno@clisp.org>
58934         Add "Extending Gnulib" chapter to manual.
58935         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
58936         chapter.
58937         (Extending Gnulib): New chapter.
58938         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
58939         chapter.
58941 2010-06-09  Bruno Haible  <bruno@clisp.org>
58943         Avoid relocwrapper link errors due to gnulib replacement functions.
58944         * lib/areadlink.c: Use the system's malloc, realloc functions.
58945         (areadlink): Set errno to ENOMEM explicitly.
58946         * modules/areadlink (Depends-on): Remove malloc-posix.
58947         Reported by Ben Pfaff <blp@cs.stanford.edu>.
58949 2010-06-09  Bruno Haible  <bruno@clisp.org>
58951         Avoid relocwrapper link errors due to gnulib replacement functions.
58952         * lib/canonicalize-lgpl.c: Use the system's malloc function.
58953         * lib/malloca.c: Likewise.
58954         * lib/relocatable.c: Likewise.
58955         * lib/progreloc.c: Use the system's malloc, sprintf functions.
58956         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
58957         * lib/setenv.c: Use the system's malloc, realloc functions.
58958         * lib/strerror.c: Use the system's sprintf function.
58959         Reported by Ben Pfaff <blp@cs.stanford.edu>.
58961 2010-06-04  Bruno Haible  <bruno@clisp.org>
58963         Prefer documented low-level autoconf macro names.
58964         * m4/lib-link.m4: Use m4_translit instead of translit.
58965         * m4/environ.m4: Likewise.
58966         * m4/mathfunc.m4: Likewise.
58967         * m4/onceonly.m4: Likewise.
58968         * m4/stdint.m4: Likewise.
58969         Suggested by Eric Blake.
58971 2010-06-04  Martin Lambers  <marlam@marlam.de>
58972             Bruno Haible  <bruno@clisp.org>
58974         havelib: Allow library names with '+' characters.
58975         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
58976         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
58978 2010-06-09  Bruno Haible  <bruno@clisp.org>
58980         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
58981         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
58982         realloc failed.
58984 2010-06-08  Peter Simons  <simons@cryp.to>
58986         maint.mk: make the news-check rule more configurable
58987         * top/maint.mk (news-check-lines-spec): New variable.
58988         (news-check): Use "sed -n 1,10p" in place of "head".
58990 2010-06-07  Jim Meyering  <meyering@redhat.com>
58992         do-release-commit-and-tag: fix typo in --help
58993         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
58995         regex: avoid new dead-code warning with gcc-4.6.0
58996         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
58997         if-block containing a while-loop.  It's been unused for at least
58998         5 years.
59000 2010-06-05  Bruno Haible  <bruno@clisp.org>
59002         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
59003         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
59005 2010-06-04  Bruno Haible  <bruno@clisp.org>
59007         Update to GNU gettext 0.18.1.
59008         * modules/gettext (configure.ac): Require gettext infrastructure from
59009         version 0.18.1.
59011 2010-06-03  Bruno Haible  <bruno@clisp.org>
59013         Don't use AC_LIBOBJ with file names in subdirectories.
59014         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
59015         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
59016         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
59017         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
59018         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
59019         gl_LIBUNISTRING_LIBSOURCE.
59020         (Makefile.am): Augment lib_SOURCES here, conditionally.
59021         * NEWS: Drop requirement for Automake option 'subdir-objects'.
59023 2010-06-03  Bruno Haible  <bruno@clisp.org>
59025         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
59026         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
59027         expansion does not end with a newline.
59028         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
59029         unnecessary newline.
59031 2010-06-03  Bruno Haible  <bruno@clisp.org>
59033         Reduce dependencies.
59034         * tests/test-quotearg.h: New file, extracted from
59035         tests/test-quotearg.c.
59036         * tests/test-quotearg-simple.c: New file, extracted from
59037         tests/test-quotearg.c.
59038         * tests/test-quotearg.c: Don't include <ctype.h>.
59039         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
59040         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
59041         use_quote_double_quotes, use_quotearg_colon): Moved to
59042         tests/test-quotearg.h.
59043         (results_g, flag_results, custom_quotes, custom_results): Moved
59044         to tests/test-quotearg-simple.c.
59045         (main): Moved the part that does not depend on gettext to
59046         tests/test-quotearg-simple.c. Return 77 if the test cannot be
59047         performed.
59048         * modules/quotearg-simple: New file.
59049         * modules/quotearg-simple-tests: New file.
59050         * modules/quotearg (Depends-on): Add quotearg-simple.
59051         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
59052         (Files): Add tests/test-quotearg.h.
59053         Reported by Paolo Bonzini.
59055 2010-06-03  Bruno Haible  <bruno@clisp.org>
59057         Reduce dependencies.
59058         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
59060 2010-06-03  Bruno Haible  <bruno@clisp.org>
59062         time: Undefine more broken macros.
59063         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
59064         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
59065         Reported by Eric Blake.
59067 2010-06-03  Bruno Haible  <bruno@clisp.org>
59069         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
59070         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
59071         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
59072         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
59073         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
59074         Reported by Ludovic Courtès <ludo@gnu.org>.
59076 2010-06-02  Eric Blake  <eblake@redhat.com>
59078         time: work with mingw + pthreads-win32 library
59079         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
59080         if timespec is defined only in pthread.h.
59081         * modules/time (Makefile.am): Substitute it.
59082         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
59083         <pthread.h>, when needed.
59084         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
59085         from the library.
59087 2010-05-31  Bruno Haible  <bruno@clisp.org>
59089         Avoid expanding two macros in the wrong order.
59090         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
59091         gl_LIBUNISTRING if it is defined.
59092         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
59093         autoconf >= 2.64.
59094         Reported by Ludovic Courtès <ludo@gnu.org>.
59096 2010-05-27  Jim Meyering  <meyering@redhat.com>
59098         maint.mk: also prohibit "#undef" of always-defined symbols
59099         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
59100         Allow more than one space before the symbol name.
59101         (sc_prohibit_always-defined_macros): Use grep's -E, now that
59102         the regexp uses alternation.
59104 2010-05-26  Eric Blake  <eblake@redhat.com>
59106         maint.mk: avoid echo -e
59107         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
59108         Convert all uses of echo -* to printf.
59109         Reported by Matthias Bolte.
59111 2010-05-25  Bruno Haible  <bruno@clisp.org>
59113         Update to GNU gettext 0.18, part 2.
59114         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
59115         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
59117 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59119         Add missing include in test-pwrite.c.
59120         * tests/test-pwrite.c: Include string.h, for strcmp.
59122 2010-05-24  Bruno Haible  <bruno@clisp.org>
59124         * NEWS: Mention requirement for Automake option 'subdir-objects'.
59126 2010-05-24  Bruno Haible  <bruno@clisp.org>
59128         Don't use conversion with transliteration in u{8,16,32}_strcoll.
59129         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
59130         iconveh_error argument.
59131         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
59132         U_STRCONV_TO_LOCALE.
59133         * lib/unistr/u16-strcoll.c: Likewise.
59134         * lib/unistr/u32-strcoll.c: Likewise.
59135         * modules/unistr/u8-strcoll (Depends-on): Add
59136         uniconv/u8-strconv-to-enc, localcharset. Remove
59137         uniconv/u8-strconv-to-locale.
59138         (configure.ac): Bump version number.
59139         * modules/unistr/u16-strcoll (Depends-on): Add
59140         uniconv/u16-strconv-to-enc, localcharset. Remove
59141         uniconv/u16-strconv-to-locale.
59142         (configure.ac): Bump version number.
59143         * modules/unistr/u32-strcoll (Depends-on): Add
59144         uniconv/u32-strconv-to-enc, localcharset. Remove
59145         uniconv/u32-strconv-to-locale.
59146         (configure.ac): Bump version number.
59148 2010-05-24  Bruno Haible  <bruno@clisp.org>
59150         Avoid a test failure on NetBSD 5.0.
59151         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
59152         an iconv() bug.
59154 2010-05-24  Bruno Haible  <bruno@clisp.org>
59156         Adjust #include directive style.
59157         * modules/regex (Includes): Recommend to write <regex.h>.
59159 2010-05-24  Bruno Haible  <bruno@clisp.org>
59161         regex: Don't require alloca.
59162         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
59163         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
59164         only inside if (0).
59166 2010-05-23  Jim Meyering  <meyering@redhat.com>
59168         test-renameat.c: include <sys/stat.h>
59169         * tests/test-renameat.c: Include <sys/stat.h>; required for
59170         definition of S_IS* macros.
59172 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
59174         Update maintainer documentation for 'relocatable-prog' module.
59175         * doc/relocatable-maint.texi: Update.
59176         Comments by Bruno Haible.
59178 2010-05-23  Bruno Haible  <bruno@clisp.org>
59180         git-merge-changelog: Enable --split-merged-entry by default.
59181         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
59182         (usage): Don't mention this option any more.
59183         Reported by Ralf Wildenhues.
59185 2010-05-23  Jim Meyering  <meyering@redhat.com>
59187         test-pwrite: do not leave behind a test file named "out"
59188         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
59189         The trivial-looking use of init.sh is really necessary.
59190         It ensures that the temporary file, "out", is created in
59191         a temporary directory, and removed upon termination.
59192         * tests/test-pwrite.sh: Re-add file.
59193         * modules/pwrite-tests: Reference it.
59195 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59197         Fix output redirection buglet in init.sh.
59198         * tests/init.sh: Fix redirection of stderr.
59200 2010-05-20  Simon Josefsson  <simon@josefsson.org>
59202         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
59204 2010-05-17  Simon Josefsson  <simon@josefsson.org>
59206         * modules/valgrind-tests: New file.
59207         * m4/valgrind-tests.m4: New file.
59208         * doc/valgrind-tests.texi: New file.
59209         * doc/gnulib.texi (Running self-tests under valgrind): New
59210         section.
59212 2010-05-19  Bruno Haible  <bruno@clisp.org>
59214         Clean up dead code in recent commit.
59215         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
59216         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
59217         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
59218         Suggested by Paolo Bonzini.
59220 2010-05-19  Bruno Haible  <bruno@clisp.org>
59222         Avoid valgrind error reports from libunistring.
59223         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
59224         * modules/libunistring (Files): Add it.
59225         * modules/libunistring-optional (Files): Likewise.
59227 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
59228             Bruno Haible  <bruno@clisp.org>
59230         New module 'libunistring-optional'.
59231         * modules/libunistring-optional: New file.
59232         * m4/libunistring-base.m4: New file.
59233         * m4/libunistring-optional.m4: New file.
59234         * lib/unicase.in.h: Renamed from lib/unicase.h.
59235         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
59236         * lib/unictype.in.h: Renamed from lib/unictype.h.
59237         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
59238         * lib/uniname.in.h: Renamed from lib/uniname.h.
59239         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
59240         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
59241         * lib/unistr.in.h: Renamed from lib/unistr.h.
59242         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
59243         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
59244         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
59245         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
59246         gl_LIBUNISTRING. If the library was found, determine the installed
59247         version and set LIBUNISTRING_VERSION.
59248         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
59249         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
59250         handle a configuration option --with-included-libunistring.
59251         * modules/libunistring (Files): Add m4/absolute-header.m4.
59252         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
59253         Add m4/libunistring-base.m4.
59254         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
59255         (Makefile.am): Build unicase.h from unicase.in.h.
59256         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
59257         Add m4/libunistring-base.m4.
59258         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
59259         (Makefile.am): Build uniconv.h from uniconv.in.h.
59260         * modules/unictype/base (Files): Use unictype.in.h instead of
59261         unictype.h. Add m4/libunistring-base.m4.
59262         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
59263         (Makefile.am): Build unictype.h from unictype.in.h.
59264         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
59265         Add m4/libunistring-base.m4.
59266         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
59267         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
59268         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
59269         Add m4/libunistring-base.m4.
59270         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
59271         (Makefile.am): Build uniname.h from uniname.in.h.
59272         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
59273         Add m4/libunistring-base.m4.
59274         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
59275         (Makefile.am): Build uninorm.h from uninorm.in.h.
59276         * modules/unistdio/base (Files): Use unistdio.in.h instead of
59277         unistdio.h. Add m4/libunistring-base.m4.
59278         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
59279         (Makefile.am): Build unistdio.h from unistdio.in.h.
59280         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
59281         Add m4/libunistring-base.m4.
59282         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
59283         (Makefile.am): Build unistr.h from unistr.in.h.
59284         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
59285         Add m4/libunistring-base.m4.
59286         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
59287         (Makefile.am): Build unitypes.h from unitypes.in.h.
59288         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
59289         Add m4/libunistring-base.m4.
59290         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
59291         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
59292         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
59293         uniwidth.h. Add m4/libunistring-base.m4.
59294         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
59295         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
59296         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
59297         instead of augmenting lib_SOURCES.
59298         * modules/unicase/empty-suffix-context: Likewise.
59299         * modules/unicase/locale-language: Likewise.
59300         * modules/unicase/tolower: Likewise.
59301         * modules/unicase/totitle: Likewise.
59302         * modules/unicase/toupper: Likewise.
59303         * modules/unicase/u8-casecmp: Likewise.
59304         * modules/unicase/u8-casecoll: Likewise.
59305         * modules/unicase/u8-casefold: Likewise.
59306         * modules/unicase/u8-casexfrm: Likewise.
59307         * modules/unicase/u8-ct-casefold: Likewise.
59308         * modules/unicase/u8-ct-tolower: Likewise.
59309         * modules/unicase/u8-ct-totitle: Likewise.
59310         * modules/unicase/u8-ct-toupper: Likewise.
59311         * modules/unicase/u8-is-cased: Likewise.
59312         * modules/unicase/u8-is-casefolded: Likewise.
59313         * modules/unicase/u8-is-lowercase: Likewise.
59314         * modules/unicase/u8-is-titlecase: Likewise.
59315         * modules/unicase/u8-is-uppercase: Likewise.
59316         * modules/unicase/u8-prefix-context: Likewise.
59317         * modules/unicase/u8-suffix-context: Likewise.
59318         * modules/unicase/u8-tolower: Likewise.
59319         * modules/unicase/u8-totitle: Likewise.
59320         * modules/unicase/u8-toupper: Likewise.
59321         * modules/unicase/u16-casecmp: Likewise.
59322         * modules/unicase/u16-casecoll: Likewise.
59323         * modules/unicase/u16-casefold: Likewise.
59324         * modules/unicase/u16-casexfrm: Likewise.
59325         * modules/unicase/u16-ct-casefold: Likewise.
59326         * modules/unicase/u16-ct-tolower: Likewise.
59327         * modules/unicase/u16-ct-totitle: Likewise.
59328         * modules/unicase/u16-ct-toupper: Likewise.
59329         * modules/unicase/u16-is-cased: Likewise.
59330         * modules/unicase/u16-is-casefolded: Likewise.
59331         * modules/unicase/u16-is-lowercase: Likewise.
59332         * modules/unicase/u16-is-titlecase: Likewise.
59333         * modules/unicase/u16-is-uppercase: Likewise.
59334         * modules/unicase/u16-prefix-context: Likewise.
59335         * modules/unicase/u16-suffix-context: Likewise.
59336         * modules/unicase/u16-tolower: Likewise.
59337         * modules/unicase/u16-totitle: Likewise.
59338         * modules/unicase/u16-toupper: Likewise.
59339         * modules/unicase/u32-casecmp: Likewise.
59340         * modules/unicase/u32-casecoll: Likewise.
59341         * modules/unicase/u32-casefold: Likewise.
59342         * modules/unicase/u32-casexfrm: Likewise.
59343         * modules/unicase/u32-ct-casefold: Likewise.
59344         * modules/unicase/u32-ct-tolower: Likewise.
59345         * modules/unicase/u32-ct-totitle: Likewise.
59346         * modules/unicase/u32-ct-toupper: Likewise.
59347         * modules/unicase/u32-is-cased: Likewise.
59348         * modules/unicase/u32-is-casefolded: Likewise.
59349         * modules/unicase/u32-is-lowercase: Likewise.
59350         * modules/unicase/u32-is-titlecase: Likewise.
59351         * modules/unicase/u32-is-uppercase: Likewise.
59352         * modules/unicase/u32-prefix-context: Likewise.
59353         * modules/unicase/u32-suffix-context: Likewise.
59354         * modules/unicase/u32-tolower: Likewise.
59355         * modules/unicase/u32-totitle: Likewise.
59356         * modules/unicase/u32-toupper: Likewise.
59357         * modules/unicase/ulc-casecmp: Likewise.
59358         * modules/unicase/ulc-casecoll: Likewise.
59359         * modules/unicase/ulc-casexfrm: Likewise.
59360         * modules/uniconv/u8-conv-from-enc: Likewise.
59361         * modules/uniconv/u8-conv-to-enc: Likewise.
59362         * modules/uniconv/u8-strconv-from-enc: Likewise.
59363         * modules/uniconv/u8-strconv-from-locale: Likewise.
59364         * modules/uniconv/u8-strconv-to-enc: Likewise.
59365         * modules/uniconv/u8-strconv-to-locale: Likewise.
59366         * modules/uniconv/u16-conv-from-enc: Likewise.
59367         * modules/uniconv/u16-conv-to-enc: Likewise.
59368         * modules/uniconv/u16-strconv-from-enc: Likewise.
59369         * modules/uniconv/u16-strconv-from-locale: Likewise.
59370         * modules/uniconv/u16-strconv-to-enc: Likewise.
59371         * modules/uniconv/u16-strconv-to-locale: Likewise.
59372         * modules/uniconv/u32-conv-from-enc: Likewise.
59373         * modules/uniconv/u32-conv-to-enc: Likewise.
59374         * modules/uniconv/u32-strconv-from-enc: Likewise.
59375         * modules/uniconv/u32-strconv-from-locale: Likewise.
59376         * modules/uniconv/u32-strconv-to-enc: Likewise.
59377         * modules/uniconv/u32-strconv-to-locale: Likewise.
59378         * modules/unictype/bidicategory-byname: Likewise.
59379         * modules/unictype/bidicategory-name: Likewise.
59380         * modules/unictype/bidicategory-of: Likewise.
59381         * modules/unictype/bidicategory-test: Likewise.
59382         * modules/unictype/block-list: Likewise.
59383         * modules/unictype/block-test: Likewise.
59384         * modules/unictype/category-C: Likewise.
59385         * modules/unictype/category-Cc: Likewise.
59386         * modules/unictype/category-Cf: Likewise.
59387         * modules/unictype/category-Cn: Likewise.
59388         * modules/unictype/category-Co: Likewise.
59389         * modules/unictype/category-Cs: Likewise.
59390         * modules/unictype/category-L: Likewise.
59391         * modules/unictype/category-Ll: Likewise.
59392         * modules/unictype/category-Lm: Likewise.
59393         * modules/unictype/category-Lo: Likewise.
59394         * modules/unictype/category-Lt: Likewise.
59395         * modules/unictype/category-Lu: Likewise.
59396         * modules/unictype/category-M: Likewise.
59397         * modules/unictype/category-Mc: Likewise.
59398         * modules/unictype/category-Me: Likewise.
59399         * modules/unictype/category-Mn: Likewise.
59400         * modules/unictype/category-N: Likewise.
59401         * modules/unictype/category-Nd: Likewise.
59402         * modules/unictype/category-Nl: Likewise.
59403         * modules/unictype/category-No: Likewise.
59404         * modules/unictype/category-P: Likewise.
59405         * modules/unictype/category-Pc: Likewise.
59406         * modules/unictype/category-Pd: Likewise.
59407         * modules/unictype/category-Pe: Likewise.
59408         * modules/unictype/category-Pf: Likewise.
59409         * modules/unictype/category-Pi: Likewise.
59410         * modules/unictype/category-Po: Likewise.
59411         * modules/unictype/category-Ps: Likewise.
59412         * modules/unictype/category-S: Likewise.
59413         * modules/unictype/category-Sc: Likewise.
59414         * modules/unictype/category-Sk: Likewise.
59415         * modules/unictype/category-Sm: Likewise.
59416         * modules/unictype/category-So: Likewise.
59417         * modules/unictype/category-Z: Likewise.
59418         * modules/unictype/category-Zl: Likewise.
59419         * modules/unictype/category-Zp: Likewise.
59420         * modules/unictype/category-Zs: Likewise.
59421         * modules/unictype/category-and: Likewise.
59422         * modules/unictype/category-and-not: Likewise.
59423         * modules/unictype/category-byname: Likewise.
59424         * modules/unictype/category-name: Likewise.
59425         * modules/unictype/category-none: Likewise.
59426         * modules/unictype/category-of: Likewise.
59427         * modules/unictype/category-or: Likewise.
59428         * modules/unictype/category-test: Likewise.
59429         * modules/unictype/combining-class: Likewise.
59430         * modules/unictype/ctype-alnum: Likewise.
59431         * modules/unictype/ctype-alpha: Likewise.
59432         * modules/unictype/ctype-blank: Likewise.
59433         * modules/unictype/ctype-cntrl: Likewise.
59434         * modules/unictype/ctype-digit: Likewise.
59435         * modules/unictype/ctype-graph: Likewise.
59436         * modules/unictype/ctype-lower: Likewise.
59437         * modules/unictype/ctype-print: Likewise.
59438         * modules/unictype/ctype-punct: Likewise.
59439         * modules/unictype/ctype-space: Likewise.
59440         * modules/unictype/ctype-upper: Likewise.
59441         * modules/unictype/ctype-xdigit: Likewise.
59442         * modules/unictype/decimal-digit: Likewise.
59443         * modules/unictype/digit: Likewise.
59444         * modules/unictype/mirror: Likewise.
59445         * modules/unictype/numeric: Likewise.
59446         * modules/unictype/property-alphabetic: Likewise.
59447         * modules/unictype/property-ascii-hex-digit: Likewise.
59448         * modules/unictype/property-bidi-arabic-digit: Likewise.
59449         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
59450         * modules/unictype/property-bidi-block-separator: Likewise.
59451         * modules/unictype/property-bidi-boundary-neutral: Likewise.
59452         * modules/unictype/property-bidi-common-separator: Likewise.
59453         * modules/unictype/property-bidi-control: Likewise.
59454         * modules/unictype/property-bidi-embedding-or-override: Likewise.
59455         * modules/unictype/property-bidi-eur-num-separator: Likewise.
59456         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
59457         * modules/unictype/property-bidi-european-digit: Likewise.
59458         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
59459         * modules/unictype/property-bidi-left-to-right: Likewise.
59460         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
59461         * modules/unictype/property-bidi-other-neutral: Likewise.
59462         * modules/unictype/property-bidi-pdf: Likewise.
59463         * modules/unictype/property-bidi-segment-separator: Likewise.
59464         * modules/unictype/property-bidi-whitespace: Likewise.
59465         * modules/unictype/property-byname: Likewise.
59466         * modules/unictype/property-combining: Likewise.
59467         * modules/unictype/property-composite: Likewise.
59468         * modules/unictype/property-currency-symbol: Likewise.
59469         * modules/unictype/property-dash: Likewise.
59470         * modules/unictype/property-decimal-digit: Likewise.
59471         * modules/unictype/property-default-ignorable-code-point: Likewise.
59472         * modules/unictype/property-deprecated: Likewise.
59473         * modules/unictype/property-diacritic: Likewise.
59474         * modules/unictype/property-extender: Likewise.
59475         * modules/unictype/property-format-control: Likewise.
59476         * modules/unictype/property-grapheme-base: Likewise.
59477         * modules/unictype/property-grapheme-extend: Likewise.
59478         * modules/unictype/property-grapheme-link: Likewise.
59479         * modules/unictype/property-hex-digit: Likewise.
59480         * modules/unictype/property-hyphen: Likewise.
59481         * modules/unictype/property-id-continue: Likewise.
59482         * modules/unictype/property-id-start: Likewise.
59483         * modules/unictype/property-ideographic: Likewise.
59484         * modules/unictype/property-ids-binary-operator: Likewise.
59485         * modules/unictype/property-ids-trinary-operator: Likewise.
59486         * modules/unictype/property-ignorable-control: Likewise.
59487         * modules/unictype/property-iso-control: Likewise.
59488         * modules/unictype/property-join-control: Likewise.
59489         * modules/unictype/property-left-of-pair: Likewise.
59490         * modules/unictype/property-line-separator: Likewise.
59491         * modules/unictype/property-logical-order-exception: Likewise.
59492         * modules/unictype/property-lowercase: Likewise.
59493         * modules/unictype/property-math: Likewise.
59494         * modules/unictype/property-non-break: Likewise.
59495         * modules/unictype/property-not-a-character: Likewise.
59496         * modules/unictype/property-numeric: Likewise.
59497         * modules/unictype/property-other-alphabetic: Likewise.
59498         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
59499         * modules/unictype/property-other-grapheme-extend: Likewise.
59500         * modules/unictype/property-other-id-continue: Likewise.
59501         * modules/unictype/property-other-id-start: Likewise.
59502         * modules/unictype/property-other-lowercase: Likewise.
59503         * modules/unictype/property-other-math: Likewise.
59504         * modules/unictype/property-other-uppercase: Likewise.
59505         * modules/unictype/property-paired-punctuation: Likewise.
59506         * modules/unictype/property-paragraph-separator: Likewise.
59507         * modules/unictype/property-pattern-syntax: Likewise.
59508         * modules/unictype/property-pattern-white-space: Likewise.
59509         * modules/unictype/property-private-use: Likewise.
59510         * modules/unictype/property-punctuation: Likewise.
59511         * modules/unictype/property-quotation-mark: Likewise.
59512         * modules/unictype/property-radical: Likewise.
59513         * modules/unictype/property-sentence-terminal: Likewise.
59514         * modules/unictype/property-soft-dotted: Likewise.
59515         * modules/unictype/property-space: Likewise.
59516         * modules/unictype/property-terminal-punctuation: Likewise.
59517         * modules/unictype/property-test: Likewise.
59518         * modules/unictype/property-titlecase: Likewise.
59519         * modules/unictype/property-unassigned-code-value: Likewise.
59520         * modules/unictype/property-unified-ideograph: Likewise.
59521         * modules/unictype/property-uppercase: Likewise.
59522         * modules/unictype/property-variation-selector: Likewise.
59523         * modules/unictype/property-white-space: Likewise.
59524         * modules/unictype/property-xid-continue: Likewise.
59525         * modules/unictype/property-xid-start: Likewise.
59526         * modules/unictype/property-zero-width: Likewise.
59527         * modules/unictype/scripts: Likewise.
59528         * modules/unictype/syntax-c-ident: Likewise.
59529         * modules/unictype/syntax-c-whitespace: Likewise.
59530         * modules/unictype/syntax-java-ident: Likewise.
59531         * modules/unictype/syntax-java-whitespace: Likewise.
59532         * modules/unilbrk/u8-possible-linebreaks: Likewise.
59533         * modules/unilbrk/u8-width-linebreaks: Likewise.
59534         * modules/unilbrk/u16-possible-linebreaks: Likewise.
59535         * modules/unilbrk/u16-width-linebreaks: Likewise.
59536         * modules/unilbrk/u32-possible-linebreaks: Likewise.
59537         * modules/unilbrk/u32-width-linebreaks: Likewise.
59538         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
59539         * modules/unilbrk/ulc-width-linebreaks: Likewise.
59540         * modules/uniname/uniname: Likewise.
59541         * modules/uninorm/canonical-decomposition: Likewise.
59542         * modules/uninorm/composition: Likewise.
59543         * modules/uninorm/decomposing-form: Likewise.
59544         * modules/uninorm/decomposition: Likewise.
59545         * modules/uninorm/filter: Likewise.
59546         * modules/uninorm/nfc: Likewise.
59547         * modules/uninorm/nfd: Likewise.
59548         * modules/uninorm/nfkc: Likewise.
59549         * modules/uninorm/nfkd: Likewise.
59550         * modules/uninorm/u8-normalize: Likewise.
59551         * modules/uninorm/u8-normcmp: Likewise.
59552         * modules/uninorm/u8-normcoll: Likewise.
59553         * modules/uninorm/u8-normxfrm: Likewise.
59554         * modules/uninorm/u16-normalize: Likewise.
59555         * modules/uninorm/u16-normcmp: Likewise.
59556         * modules/uninorm/u16-normcoll: Likewise.
59557         * modules/uninorm/u16-normxfrm: Likewise.
59558         * modules/uninorm/u32-normalize: Likewise.
59559         * modules/uninorm/u32-normcmp: Likewise.
59560         * modules/uninorm/u32-normcoll: Likewise.
59561         * modules/uninorm/u32-normxfrm: Likewise.
59562         * modules/unistdio/u8-asnprintf: Likewise.
59563         * modules/unistdio/u8-asprintf: Likewise.
59564         * modules/unistdio/u8-snprintf: Likewise.
59565         * modules/unistdio/u8-sprintf: Likewise.
59566         * modules/unistdio/u8-u8-asnprintf: Likewise.
59567         * modules/unistdio/u8-u8-asprintf: Likewise.
59568         * modules/unistdio/u8-u8-snprintf: Likewise.
59569         * modules/unistdio/u8-u8-sprintf: Likewise.
59570         * modules/unistdio/u8-u8-vasnprintf: Likewise.
59571         * modules/unistdio/u8-u8-vasprintf: Likewise.
59572         * modules/unistdio/u8-u8-vsnprintf: Likewise.
59573         * modules/unistdio/u8-u8-vsprintf: Likewise.
59574         * modules/unistdio/u8-vasnprintf: Likewise.
59575         * modules/unistdio/u8-vasprintf: Likewise.
59576         * modules/unistdio/u8-vsnprintf: Likewise.
59577         * modules/unistdio/u8-vsprintf: Likewise.
59578         * modules/unistdio/u16-asnprintf: Likewise.
59579         * modules/unistdio/u16-asprintf: Likewise.
59580         * modules/unistdio/u16-snprintf: Likewise.
59581         * modules/unistdio/u16-sprintf: Likewise.
59582         * modules/unistdio/u16-u16-asnprintf: Likewise.
59583         * modules/unistdio/u16-u16-asprintf: Likewise.
59584         * modules/unistdio/u16-u16-snprintf: Likewise.
59585         * modules/unistdio/u16-u16-sprintf: Likewise.
59586         * modules/unistdio/u16-u16-vasnprintf: Likewise.
59587         * modules/unistdio/u16-u16-vasprintf: Likewise.
59588         * modules/unistdio/u16-u16-vsnprintf: Likewise.
59589         * modules/unistdio/u16-u16-vsprintf: Likewise.
59590         * modules/unistdio/u16-vasnprintf: Likewise.
59591         * modules/unistdio/u16-vasprintf: Likewise.
59592         * modules/unistdio/u16-vsnprintf: Likewise.
59593         * modules/unistdio/u16-vsprintf: Likewise.
59594         * modules/unistdio/u32-asnprintf: Likewise.
59595         * modules/unistdio/u32-asprintf: Likewise.
59596         * modules/unistdio/u32-snprintf: Likewise.
59597         * modules/unistdio/u32-sprintf: Likewise.
59598         * modules/unistdio/u32-u32-asnprintf: Likewise.
59599         * modules/unistdio/u32-u32-asprintf: Likewise.
59600         * modules/unistdio/u32-u32-snprintf: Likewise.
59601         * modules/unistdio/u32-u32-sprintf: Likewise.
59602         * modules/unistdio/u32-u32-vasnprintf: Likewise.
59603         * modules/unistdio/u32-u32-vasprintf: Likewise.
59604         * modules/unistdio/u32-u32-vsnprintf: Likewise.
59605         * modules/unistdio/u32-u32-vsprintf: Likewise.
59606         * modules/unistdio/u32-vasnprintf: Likewise.
59607         * modules/unistdio/u32-vasprintf: Likewise.
59608         * modules/unistdio/u32-vsnprintf: Likewise.
59609         * modules/unistdio/u32-vsprintf: Likewise.
59610         * modules/unistdio/ulc-asnprintf: Likewise.
59611         * modules/unistdio/ulc-asprintf: Likewise.
59612         * modules/unistdio/ulc-fprintf: Likewise.
59613         * modules/unistdio/ulc-snprintf: Likewise.
59614         * modules/unistdio/ulc-sprintf: Likewise.
59615         * modules/unistdio/ulc-vasnprintf: Likewise.
59616         * modules/unistdio/ulc-vasprintf: Likewise.
59617         * modules/unistdio/ulc-vfprintf: Likewise.
59618         * modules/unistdio/ulc-vsnprintf: Likewise.
59619         * modules/unistdio/ulc-vsprintf: Likewise.
59620         * modules/unistr/u8-check: Likewise.
59621         * modules/unistr/u8-chr: Likewise.
59622         * modules/unistr/u8-cmp: Likewise.
59623         * modules/unistr/u8-cmp2: Likewise.
59624         * modules/unistr/u8-cpy: Likewise.
59625         * modules/unistr/u8-cpy-alloc: Likewise.
59626         * modules/unistr/u8-endswith: Likewise.
59627         * modules/unistr/u8-mblen: Likewise.
59628         * modules/unistr/u8-mbsnlen: Likewise.
59629         * modules/unistr/u8-mbtouc: Likewise.
59630         * modules/unistr/u8-mbtouc-unsafe: Likewise.
59631         * modules/unistr/u8-mbtoucr: Likewise.
59632         * modules/unistr/u8-move: Likewise.
59633         * modules/unistr/u8-next: Likewise.
59634         * modules/unistr/u8-prev: Likewise.
59635         * modules/unistr/u8-set: Likewise.
59636         * modules/unistr/u8-startswith: Likewise.
59637         * modules/unistr/u8-stpcpy: Likewise.
59638         * modules/unistr/u8-stpncpy: Likewise.
59639         * modules/unistr/u8-strcat: Likewise.
59640         * modules/unistr/u8-strchr: Likewise.
59641         * modules/unistr/u8-strcmp: Likewise.
59642         * modules/unistr/u8-strcoll: Likewise.
59643         * modules/unistr/u8-strcpy: Likewise.
59644         * modules/unistr/u8-strcspn: Likewise.
59645         * modules/unistr/u8-strdup: Likewise.
59646         * modules/unistr/u8-strlen: Likewise.
59647         * modules/unistr/u8-strmblen: Likewise.
59648         * modules/unistr/u8-strmbtouc: Likewise.
59649         * modules/unistr/u8-strncat: Likewise.
59650         * modules/unistr/u8-strncmp: Likewise.
59651         * modules/unistr/u8-strncpy: Likewise.
59652         * modules/unistr/u8-strnlen: Likewise.
59653         * modules/unistr/u8-strpbrk: Likewise.
59654         * modules/unistr/u8-strrchr: Likewise.
59655         * modules/unistr/u8-strspn: Likewise.
59656         * modules/unistr/u8-strstr: Likewise.
59657         * modules/unistr/u8-strtok: Likewise.
59658         * modules/unistr/u8-to-u16: Likewise.
59659         * modules/unistr/u8-to-u32: Likewise.
59660         * modules/unistr/u8-uctomb: Likewise.
59661         * modules/unistr/u16-check: Likewise.
59662         * modules/unistr/u16-chr: Likewise.
59663         * modules/unistr/u16-cmp: Likewise.
59664         * modules/unistr/u16-cmp2: Likewise.
59665         * modules/unistr/u16-cpy: Likewise.
59666         * modules/unistr/u16-cpy-alloc: Likewise.
59667         * modules/unistr/u16-endswith: Likewise.
59668         * modules/unistr/u16-mblen: Likewise.
59669         * modules/unistr/u16-mbsnlen: Likewise.
59670         * modules/unistr/u16-mbtouc: Likewise.
59671         * modules/unistr/u16-mbtouc-unsafe: Likewise.
59672         * modules/unistr/u16-mbtoucr: Likewise.
59673         * modules/unistr/u16-move: Likewise.
59674         * modules/unistr/u16-next: Likewise.
59675         * modules/unistr/u16-prev: Likewise.
59676         * modules/unistr/u16-set: Likewise.
59677         * modules/unistr/u16-startswith: Likewise.
59678         * modules/unistr/u16-stpcpy: Likewise.
59679         * modules/unistr/u16-stpncpy: Likewise.
59680         * modules/unistr/u16-strcat: Likewise.
59681         * modules/unistr/u16-strchr: Likewise.
59682         * modules/unistr/u16-strcmp: Likewise.
59683         * modules/unistr/u16-strcoll: Likewise.
59684         * modules/unistr/u16-strcpy: Likewise.
59685         * modules/unistr/u16-strcspn: Likewise.
59686         * modules/unistr/u16-strdup: Likewise.
59687         * modules/unistr/u16-strlen: Likewise.
59688         * modules/unistr/u16-strmblen: Likewise.
59689         * modules/unistr/u16-strmbtouc: Likewise.
59690         * modules/unistr/u16-strncat: Likewise.
59691         * modules/unistr/u16-strncmp: Likewise.
59692         * modules/unistr/u16-strncpy: Likewise.
59693         * modules/unistr/u16-strnlen: Likewise.
59694         * modules/unistr/u16-strpbrk: Likewise.
59695         * modules/unistr/u16-strrchr: Likewise.
59696         * modules/unistr/u16-strspn: Likewise.
59697         * modules/unistr/u16-strstr: Likewise.
59698         * modules/unistr/u16-strtok: Likewise.
59699         * modules/unistr/u16-to-u32: Likewise.
59700         * modules/unistr/u16-to-u8: Likewise.
59701         * modules/unistr/u16-uctomb: Likewise.
59702         * modules/unistr/u32-check: Likewise.
59703         * modules/unistr/u32-chr: Likewise.
59704         * modules/unistr/u32-cmp: Likewise.
59705         * modules/unistr/u32-cmp2: Likewise.
59706         * modules/unistr/u32-cpy: Likewise.
59707         * modules/unistr/u32-cpy-alloc: Likewise.
59708         * modules/unistr/u32-endswith: Likewise.
59709         * modules/unistr/u32-mblen: Likewise.
59710         * modules/unistr/u32-mbsnlen: Likewise.
59711         * modules/unistr/u32-mbtouc: Likewise.
59712         * modules/unistr/u32-mbtouc-unsafe: Likewise.
59713         * modules/unistr/u32-mbtoucr: Likewise.
59714         * modules/unistr/u32-move: Likewise.
59715         * modules/unistr/u32-next: Likewise.
59716         * modules/unistr/u32-prev: Likewise.
59717         * modules/unistr/u32-set: Likewise.
59718         * modules/unistr/u32-startswith: Likewise.
59719         * modules/unistr/u32-stpcpy: Likewise.
59720         * modules/unistr/u32-stpncpy: Likewise.
59721         * modules/unistr/u32-strcat: Likewise.
59722         * modules/unistr/u32-strchr: Likewise.
59723         * modules/unistr/u32-strcmp: Likewise.
59724         * modules/unistr/u32-strcoll: Likewise.
59725         * modules/unistr/u32-strcpy: Likewise.
59726         * modules/unistr/u32-strcspn: Likewise.
59727         * modules/unistr/u32-strdup: Likewise.
59728         * modules/unistr/u32-strlen: Likewise.
59729         * modules/unistr/u32-strmblen: Likewise.
59730         * modules/unistr/u32-strmbtouc: Likewise.
59731         * modules/unistr/u32-strncat: Likewise.
59732         * modules/unistr/u32-strncmp: Likewise.
59733         * modules/unistr/u32-strncpy: Likewise.
59734         * modules/unistr/u32-strnlen: Likewise.
59735         * modules/unistr/u32-strpbrk: Likewise.
59736         * modules/unistr/u32-strrchr: Likewise.
59737         * modules/unistr/u32-strspn: Likewise.
59738         * modules/unistr/u32-strstr: Likewise.
59739         * modules/unistr/u32-strtok: Likewise.
59740         * modules/unistr/u32-to-u16: Likewise.
59741         * modules/unistr/u32-to-u8: Likewise.
59742         * modules/unistr/u32-uctomb: Likewise.
59743         * modules/uniwbrk/u8-wordbreaks: Likewise.
59744         * modules/uniwbrk/u16-wordbreaks: Likewise.
59745         * modules/uniwbrk/u32-wordbreaks: Likewise.
59746         * modules/uniwbrk/ulc-wordbreaks: Likewise.
59747         * modules/uniwbrk/wordbreak-property: Likewise.
59748         * modules/uniwidth/u8-strwidth: Likewise.
59749         * modules/uniwidth/u8-width: Likewise.
59750         * modules/uniwidth/u16-strwidth: Likewise.
59751         * modules/uniwidth/u16-width: Likewise.
59752         * modules/uniwidth/u32-strwidth: Likewise.
59753         * modules/uniwidth/u32-width: Likewise.
59754         * modules/uniwidth/width: Likewise.
59755         * modules/unicase/cased-tests (Makefile.am): Link all test programs
59756         with $(LIBUNISTRING).
59757         * modules/unicase/ignorable-tests: Likewise.
59758         * modules/unicase/locale-language-tests: Likewise.
59759         * modules/unicase/tolower-tests: Likewise.
59760         * modules/unicase/totitle-tests: Likewise.
59761         * modules/unicase/toupper-tests: Likewise.
59762         * modules/unicase/u8-casecmp-tests: Likewise.
59763         * modules/unicase/u8-casecoll-tests: Likewise.
59764         * modules/unicase/u8-casefold-tests: Likewise.
59765         * modules/unicase/u8-is-cased-tests: Likewise.
59766         * modules/unicase/u8-is-casefolded-tests: Likewise.
59767         * modules/unicase/u8-is-lowercase-tests: Likewise.
59768         * modules/unicase/u8-is-titlecase-tests: Likewise.
59769         * modules/unicase/u8-is-uppercase-tests: Likewise.
59770         * modules/unicase/u8-tolower-tests: Likewise.
59771         * modules/unicase/u8-totitle-tests: Likewise.
59772         * modules/unicase/u8-toupper-tests: Likewise.
59773         * modules/unicase/u16-casecmp-tests: Likewise.
59774         * modules/unicase/u16-casecoll-tests: Likewise.
59775         * modules/unicase/u16-casefold-tests: Likewise.
59776         * modules/unicase/u16-is-cased-tests: Likewise.
59777         * modules/unicase/u16-is-casefolded-tests: Likewise.
59778         * modules/unicase/u16-is-lowercase-tests: Likewise.
59779         * modules/unicase/u16-is-titlecase-tests: Likewise.
59780         * modules/unicase/u16-is-uppercase-tests: Likewise.
59781         * modules/unicase/u16-tolower-tests: Likewise.
59782         * modules/unicase/u16-totitle-tests: Likewise.
59783         * modules/unicase/u16-toupper-tests: Likewise.
59784         * modules/unicase/u32-casecmp-tests: Likewise.
59785         * modules/unicase/u32-casecoll-tests: Likewise.
59786         * modules/unicase/u32-casefold-tests: Likewise.
59787         * modules/unicase/u32-is-cased-tests: Likewise.
59788         * modules/unicase/u32-is-casefolded-tests: Likewise.
59789         * modules/unicase/u32-is-lowercase-tests: Likewise.
59790         * modules/unicase/u32-is-titlecase-tests: Likewise.
59791         * modules/unicase/u32-is-uppercase-tests: Likewise.
59792         * modules/unicase/u32-tolower-tests: Likewise.
59793         * modules/unicase/u32-totitle-tests: Likewise.
59794         * modules/unicase/u32-toupper-tests: Likewise.
59795         * modules/unicase/ulc-casecmp-tests: Likewise.
59796         * modules/unicase/ulc-casecoll-tests: Likewise.
59797         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
59798         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
59799         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
59800         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
59801         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
59802         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
59803         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
59804         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
59805         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
59806         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
59807         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
59808         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
59809         * modules/unictype/bidicategory-byname-tests: Likewise.
59810         * modules/unictype/bidicategory-name-tests: Likewise.
59811         * modules/unictype/bidicategory-of-tests: Likewise.
59812         * modules/unictype/bidicategory-test-tests: Likewise.
59813         * modules/unictype/block-list-tests: Likewise.
59814         * modules/unictype/block-of-tests: Likewise.
59815         * modules/unictype/block-test-tests: Likewise.
59816         * modules/unictype/category-C-tests: Likewise.
59817         * modules/unictype/category-Cc-tests: Likewise.
59818         * modules/unictype/category-Cf-tests: Likewise.
59819         * modules/unictype/category-Cn-tests: Likewise.
59820         * modules/unictype/category-Co-tests: Likewise.
59821         * modules/unictype/category-Cs-tests: Likewise.
59822         * modules/unictype/category-L-tests: Likewise.
59823         * modules/unictype/category-Ll-tests: Likewise.
59824         * modules/unictype/category-Lm-tests: Likewise.
59825         * modules/unictype/category-Lo-tests: Likewise.
59826         * modules/unictype/category-Lt-tests: Likewise.
59827         * modules/unictype/category-Lu-tests: Likewise.
59828         * modules/unictype/category-M-tests: Likewise.
59829         * modules/unictype/category-Mc-tests: Likewise.
59830         * modules/unictype/category-Me-tests: Likewise.
59831         * modules/unictype/category-Mn-tests: Likewise.
59832         * modules/unictype/category-N-tests: Likewise.
59833         * modules/unictype/category-Nd-tests: Likewise.
59834         * modules/unictype/category-Nl-tests: Likewise.
59835         * modules/unictype/category-No-tests: Likewise.
59836         * modules/unictype/category-P-tests: Likewise.
59837         * modules/unictype/category-Pc-tests: Likewise.
59838         * modules/unictype/category-Pd-tests: Likewise.
59839         * modules/unictype/category-Pe-tests: Likewise.
59840         * modules/unictype/category-Pf-tests: Likewise.
59841         * modules/unictype/category-Pi-tests: Likewise.
59842         * modules/unictype/category-Po-tests: Likewise.
59843         * modules/unictype/category-Ps-tests: Likewise.
59844         * modules/unictype/category-S-tests: Likewise.
59845         * modules/unictype/category-Sc-tests: Likewise.
59846         * modules/unictype/category-Sk-tests: Likewise.
59847         * modules/unictype/category-Sm-tests: Likewise.
59848         * modules/unictype/category-So-tests: Likewise.
59849         * modules/unictype/category-Z-tests: Likewise.
59850         * modules/unictype/category-Zl-tests: Likewise.
59851         * modules/unictype/category-Zp-tests: Likewise.
59852         * modules/unictype/category-Zs-tests: Likewise.
59853         * modules/unictype/category-and-not-tests: Likewise.
59854         * modules/unictype/category-and-tests: Likewise.
59855         * modules/unictype/category-byname-tests: Likewise.
59856         * modules/unictype/category-name-tests: Likewise.
59857         * modules/unictype/category-none-tests: Likewise.
59858         * modules/unictype/category-of-tests: Likewise.
59859         * modules/unictype/category-or-tests: Likewise.
59860         * modules/unictype/category-test-withtable-tests: Likewise.
59861         * modules/unictype/combining-class-tests: Likewise.
59862         * modules/unictype/ctype-alnum-tests: Likewise.
59863         * modules/unictype/ctype-alpha-tests: Likewise.
59864         * modules/unictype/ctype-blank-tests: Likewise.
59865         * modules/unictype/ctype-cntrl-tests: Likewise.
59866         * modules/unictype/ctype-digit-tests: Likewise.
59867         * modules/unictype/ctype-graph-tests: Likewise.
59868         * modules/unictype/ctype-lower-tests: Likewise.
59869         * modules/unictype/ctype-print-tests: Likewise.
59870         * modules/unictype/ctype-punct-tests: Likewise.
59871         * modules/unictype/ctype-space-tests: Likewise.
59872         * modules/unictype/ctype-upper-tests: Likewise.
59873         * modules/unictype/ctype-xdigit-tests: Likewise.
59874         * modules/unictype/decimal-digit-tests: Likewise.
59875         * modules/unictype/digit-tests: Likewise.
59876         * modules/unictype/mirror-tests: Likewise.
59877         * modules/unictype/numeric-tests: Likewise.
59878         * modules/unictype/property-alphabetic-tests: Likewise.
59879         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
59880         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
59881         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
59882         * modules/unictype/property-bidi-block-separator-tests: Likewise.
59883         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
59884         * modules/unictype/property-bidi-common-separator-tests: Likewise.
59885         * modules/unictype/property-bidi-control-tests: Likewise.
59886         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
59887         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
59888         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
59889         * modules/unictype/property-bidi-european-digit-tests: Likewise.
59890         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
59891         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
59892         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
59893         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
59894         * modules/unictype/property-bidi-pdf-tests: Likewise.
59895         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
59896         * modules/unictype/property-bidi-whitespace-tests: Likewise.
59897         * modules/unictype/property-byname-tests: Likewise.
59898         * modules/unictype/property-combining-tests: Likewise.
59899         * modules/unictype/property-composite-tests: Likewise.
59900         * modules/unictype/property-currency-symbol-tests: Likewise.
59901         * modules/unictype/property-dash-tests: Likewise.
59902         * modules/unictype/property-decimal-digit-tests: Likewise.
59903         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
59904         * modules/unictype/property-deprecated-tests: Likewise.
59905         * modules/unictype/property-diacritic-tests: Likewise.
59906         * modules/unictype/property-extender-tests: Likewise.
59907         * modules/unictype/property-format-control-tests: Likewise.
59908         * modules/unictype/property-grapheme-base-tests: Likewise.
59909         * modules/unictype/property-grapheme-extend-tests: Likewise.
59910         * modules/unictype/property-grapheme-link-tests: Likewise.
59911         * modules/unictype/property-hex-digit-tests: Likewise.
59912         * modules/unictype/property-hyphen-tests: Likewise.
59913         * modules/unictype/property-id-continue-tests: Likewise.
59914         * modules/unictype/property-id-start-tests: Likewise.
59915         * modules/unictype/property-ideographic-tests: Likewise.
59916         * modules/unictype/property-ids-binary-operator-tests: Likewise.
59917         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
59918         * modules/unictype/property-ignorable-control-tests: Likewise.
59919         * modules/unictype/property-iso-control-tests: Likewise.
59920         * modules/unictype/property-join-control-tests: Likewise.
59921         * modules/unictype/property-left-of-pair-tests: Likewise.
59922         * modules/unictype/property-line-separator-tests: Likewise.
59923         * modules/unictype/property-logical-order-exception-tests: Likewise.
59924         * modules/unictype/property-lowercase-tests: Likewise.
59925         * modules/unictype/property-math-tests: Likewise.
59926         * modules/unictype/property-non-break-tests: Likewise.
59927         * modules/unictype/property-not-a-character-tests: Likewise.
59928         * modules/unictype/property-numeric-tests: Likewise.
59929         * modules/unictype/property-other-alphabetic-tests: Likewise.
59930         * modules/unictype/property-other-default-ignorable-code-point-tests:
59931         Likewise.
59932         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
59933         * modules/unictype/property-other-id-continue-tests: Likewise.
59934         * modules/unictype/property-other-id-start-tests: Likewise.
59935         * modules/unictype/property-other-lowercase-tests: Likewise.
59936         * modules/unictype/property-other-math-tests: Likewise.
59937         * modules/unictype/property-other-uppercase-tests: Likewise.
59938         * modules/unictype/property-paired-punctuation-tests: Likewise.
59939         * modules/unictype/property-paragraph-separator-tests: Likewise.
59940         * modules/unictype/property-pattern-syntax-tests: Likewise.
59941         * modules/unictype/property-pattern-white-space-tests: Likewise.
59942         * modules/unictype/property-private-use-tests: Likewise.
59943         * modules/unictype/property-punctuation-tests: Likewise.
59944         * modules/unictype/property-quotation-mark-tests: Likewise.
59945         * modules/unictype/property-radical-tests: Likewise.
59946         * modules/unictype/property-sentence-terminal-tests: Likewise.
59947         * modules/unictype/property-soft-dotted-tests: Likewise.
59948         * modules/unictype/property-space-tests: Likewise.
59949         * modules/unictype/property-terminal-punctuation-tests: Likewise.
59950         * modules/unictype/property-test-tests: Likewise.
59951         * modules/unictype/property-titlecase-tests: Likewise.
59952         * modules/unictype/property-unassigned-code-value-tests: Likewise.
59953         * modules/unictype/property-unified-ideograph-tests: Likewise.
59954         * modules/unictype/property-uppercase-tests: Likewise.
59955         * modules/unictype/property-variation-selector-tests: Likewise.
59956         * modules/unictype/property-white-space-tests: Likewise.
59957         * modules/unictype/property-xid-continue-tests: Likewise.
59958         * modules/unictype/property-xid-start-tests: Likewise.
59959         * modules/unictype/property-zero-width-tests: Likewise.
59960         * modules/unictype/scripts-tests: Likewise.
59961         * modules/unictype/syntax-c-ident-tests: Likewise.
59962         * modules/unictype/syntax-c-whitespace-tests: Likewise.
59963         * modules/unictype/syntax-java-ident-tests: Likewise.
59964         * modules/unictype/syntax-java-whitespace-tests: Likewise.
59965         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
59966         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
59967         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
59968         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
59969         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
59970         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
59971         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
59972         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
59973         * modules/uniname/uniname-tests: Likewise.
59974         * modules/uninorm/canonical-decomposition-tests: Likewise.
59975         * modules/uninorm/compat-decomposition-tests: Likewise.
59976         * modules/uninorm/composition-tests: Likewise.
59977         * modules/uninorm/decomposing-form-tests: Likewise.
59978         * modules/uninorm/decomposition-tests: Likewise.
59979         * modules/uninorm/filter-tests: Likewise.
59980         * modules/uninorm/nfc-tests: Likewise.
59981         * modules/uninorm/nfd-tests: Likewise.
59982         * modules/uninorm/nfkc-tests: Likewise.
59983         * modules/uninorm/nfkd-tests: Likewise.
59984         * modules/uninorm/u8-normcmp-tests: Likewise.
59985         * modules/uninorm/u8-normcoll-tests: Likewise.
59986         * modules/uninorm/u16-normcmp-tests: Likewise.
59987         * modules/uninorm/u16-normcoll-tests: Likewise.
59988         * modules/uninorm/u32-normcmp-tests: Likewise.
59989         * modules/uninorm/u32-normcoll-tests: Likewise.
59990         * modules/unistdio/u8-asnprintf-tests: Likewise.
59991         * modules/unistdio/u8-vasnprintf-tests: Likewise.
59992         * modules/unistdio/u8-vasprintf-tests: Likewise.
59993         * modules/unistdio/u8-vsnprintf-tests: Likewise.
59994         * modules/unistdio/u8-vsprintf-tests: Likewise.
59995         * modules/unistdio/u16-asnprintf-tests: Likewise.
59996         * modules/unistdio/u16-vasnprintf-tests: Likewise.
59997         * modules/unistdio/u16-vasprintf-tests: Likewise.
59998         * modules/unistdio/u16-vsnprintf-tests: Likewise.
59999         * modules/unistdio/u16-vsprintf-tests: Likewise.
60000         * modules/unistdio/u32-asnprintf-tests: Likewise.
60001         * modules/unistdio/u32-vasnprintf-tests: Likewise.
60002         * modules/unistdio/u32-vasprintf-tests: Likewise.
60003         * modules/unistdio/u32-vsnprintf-tests: Likewise.
60004         * modules/unistdio/u32-vsprintf-tests: Likewise.
60005         * modules/unistdio/ulc-asnprintf-tests: Likewise.
60006         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
60007         * modules/unistdio/ulc-vasprintf-tests: Likewise.
60008         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
60009         * modules/unistdio/ulc-vsprintf-tests: Likewise.
60010         * modules/unistr/u8-check-tests: Likewise.
60011         * modules/unistr/u8-chr-tests: Likewise.
60012         * modules/unistr/u8-cmp-tests: Likewise.
60013         * modules/unistr/u8-cmp2-tests: Likewise.
60014         * modules/unistr/u8-cpy-alloc-tests: Likewise.
60015         * modules/unistr/u8-cpy-tests: Likewise.
60016         * modules/unistr/u8-mblen-tests: Likewise.
60017         * modules/unistr/u8-mbsnlen-tests: Likewise.
60018         * modules/unistr/u8-mbtouc-tests: Likewise.
60019         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
60020         * modules/unistr/u8-mbtoucr-tests: Likewise.
60021         * modules/unistr/u8-move-tests: Likewise.
60022         * modules/unistr/u8-next-tests: Likewise.
60023         * modules/unistr/u8-prev-tests: Likewise.
60024         * modules/unistr/u8-set-tests: Likewise.
60025         * modules/unistr/u8-stpcpy-tests: Likewise.
60026         * modules/unistr/u8-stpncpy-tests: Likewise.
60027         * modules/unistr/u8-strcat-tests: Likewise.
60028         * modules/unistr/u8-strcmp-tests: Likewise.
60029         * modules/unistr/u8-strcoll-tests: Likewise.
60030         * modules/unistr/u8-strcpy-tests: Likewise.
60031         * modules/unistr/u8-strdup-tests: Likewise.
60032         * modules/unistr/u8-strlen-tests: Likewise.
60033         * modules/unistr/u8-strmblen-tests: Likewise.
60034         * modules/unistr/u8-strmbtouc-tests: Likewise.
60035         * modules/unistr/u8-strncat-tests: Likewise.
60036         * modules/unistr/u8-strncmp-tests: Likewise.
60037         * modules/unistr/u8-strncpy-tests: Likewise.
60038         * modules/unistr/u8-strnlen-tests: Likewise.
60039         * modules/unistr/u8-to-u16-tests: Likewise.
60040         * modules/unistr/u8-to-u32-tests: Likewise.
60041         * modules/unistr/u8-uctomb-tests: Likewise.
60042         * modules/unistr/u16-check-tests: Likewise.
60043         * modules/unistr/u16-chr-tests: Likewise.
60044         * modules/unistr/u16-cmp-tests: Likewise.
60045         * modules/unistr/u16-cmp2-tests: Likewise.
60046         * modules/unistr/u16-cpy-alloc-tests: Likewise.
60047         * modules/unistr/u16-cpy-tests: Likewise.
60048         * modules/unistr/u16-mblen-tests: Likewise.
60049         * modules/unistr/u16-mbsnlen-tests: Likewise.
60050         * modules/unistr/u16-mbtouc-tests: Likewise.
60051         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
60052         * modules/unistr/u16-mbtoucr-tests: Likewise.
60053         * modules/unistr/u16-move-tests: Likewise.
60054         * modules/unistr/u16-next-tests: Likewise.
60055         * modules/unistr/u16-prev-tests: Likewise.
60056         * modules/unistr/u16-set-tests: Likewise.
60057         * modules/unistr/u16-stpcpy-tests: Likewise.
60058         * modules/unistr/u16-stpncpy-tests: Likewise.
60059         * modules/unistr/u16-strcat-tests: Likewise.
60060         * modules/unistr/u16-strcmp-tests: Likewise.
60061         * modules/unistr/u16-strcoll-tests: Likewise.
60062         * modules/unistr/u16-strcpy-tests: Likewise.
60063         * modules/unistr/u16-strdup-tests: Likewise.
60064         * modules/unistr/u16-strlen-tests: Likewise.
60065         * modules/unistr/u16-strmblen-tests: Likewise.
60066         * modules/unistr/u16-strmbtouc-tests: Likewise.
60067         * modules/unistr/u16-strncat-tests: Likewise.
60068         * modules/unistr/u16-strncmp-tests: Likewise.
60069         * modules/unistr/u16-strncpy-tests: Likewise.
60070         * modules/unistr/u16-strnlen-tests: Likewise.
60071         * modules/unistr/u16-to-u32-tests: Likewise.
60072         * modules/unistr/u16-to-u8-tests: Likewise.
60073         * modules/unistr/u16-uctomb-tests: Likewise.
60074         * modules/unistr/u32-check-tests: Likewise.
60075         * modules/unistr/u32-chr-tests: Likewise.
60076         * modules/unistr/u32-cmp-tests: Likewise.
60077         * modules/unistr/u32-cmp2-tests: Likewise.
60078         * modules/unistr/u32-cpy-alloc-tests: Likewise.
60079         * modules/unistr/u32-cpy-tests: Likewise.
60080         * modules/unistr/u32-mblen-tests: Likewise.
60081         * modules/unistr/u32-mbsnlen-tests: Likewise.
60082         * modules/unistr/u32-mbtouc-tests: Likewise.
60083         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
60084         * modules/unistr/u32-mbtoucr-tests: Likewise.
60085         * modules/unistr/u32-move-tests: Likewise.
60086         * modules/unistr/u32-next-tests: Likewise.
60087         * modules/unistr/u32-prev-tests: Likewise.
60088         * modules/unistr/u32-set-tests: Likewise.
60089         * modules/unistr/u32-stpcpy-tests: Likewise.
60090         * modules/unistr/u32-stpncpy-tests: Likewise.
60091         * modules/unistr/u32-strcat-tests: Likewise.
60092         * modules/unistr/u32-strcmp-tests: Likewise.
60093         * modules/unistr/u32-strcoll-tests: Likewise.
60094         * modules/unistr/u32-strcpy-tests: Likewise.
60095         * modules/unistr/u32-strdup-tests: Likewise.
60096         * modules/unistr/u32-strlen-tests: Likewise.
60097         * modules/unistr/u32-strmblen-tests: Likewise.
60098         * modules/unistr/u32-strmbtouc-tests: Likewise.
60099         * modules/unistr/u32-strncat-tests: Likewise.
60100         * modules/unistr/u32-strncmp-tests: Likewise.
60101         * modules/unistr/u32-strncpy-tests: Likewise.
60102         * modules/unistr/u32-strnlen-tests: Likewise.
60103         * modules/unistr/u32-to-u16-tests: Likewise.
60104         * modules/unistr/u32-to-u8-tests: Likewise.
60105         * modules/unistr/u32-uctomb-tests: Likewise.
60106         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
60107         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
60108         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
60109         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
60110         * modules/uniwidth/u8-strwidth-tests: Likewise.
60111         * modules/uniwidth/u8-width-tests: Likewise.
60112         * modules/uniwidth/u16-strwidth-tests: Likewise.
60113         * modules/uniwidth/u16-width-tests: Likewise.
60114         * modules/uniwidth/u32-strwidth-tests: Likewise.
60115         * modules/uniwidth/u32-width-tests: Likewise.
60116         * modules/uniwidth/width-tests: Likewise.
60118 2010-05-18  Richard Jones  <rjones@redhat.com>
60120         doc: users.txt: list hivex
60121         * users.txt: Add hivex.
60123 2010-05-18  Richard Jones  <rjones@redhat.com>
60125         doc: users.txt: list febootstrap
60126         * users.txt: Add febootstrap.
60128 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
60130         bootstrap: fix an error when gnulib is not used as a git submodule
60131         * build-aux/bootstrap (gnulib_path): If its length is zero then
60132         assign "gnulib" to it.
60133         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
60135 2010-05-16  Bruno Haible  <bruno@clisp.org>
60137         Avoid autoconf warnings about AM_ICONV.
60138         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
60139         2.64.
60141 2010-05-16  Bruno Haible  <bruno@clisp.org>
60143         absolute-header: Make the macro usable in more situations.
60144         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
60145         from gl_ABSOLUTE_HEADER.
60146         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
60148 2010-05-16  James Youngman  <jay@gnu.org>
60150         doc: update users.txt
60151         * users.txt: Add CSSC.
60153 2010-05-16  Jim Meyering  <meyering@redhat.com>
60155         init.sh: fix an error in the previous change; add more comments
60156         * tests/init.sh: Compare exit code in loop against 9, not 2.
60157         Patch by Bruno Haible.
60158         Make the two tests more similar by adding an empty "then" clause.
60159         Add comments.
60161         init.sh: avoid unnecessary shell re-exec
60162         * tests/init.sh: Improve the re-exec-required check to first test the
60163         current shell.  If it passes the test, do not search for a shell that
60164         does pass, and do not re-exec.  This test is particularly contorted to
60165         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
60166         of $(...) evokes a syntax error and causes immediate shell exit with
60167         status 2.  Bruno Haible reported that the re-exec made it impossible
60168         to single-step through any init.sh-using script.
60170 2010-05-16  Bruno Haible  <bruno@clisp.org>
60172         Fix collision between gnulib's and libintl's printf replacements.
60173         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
60174         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
60175         (printf): When using GNU C, map the __printf__ function to rpl_printf
60176         via __asm__. When not using GNU C, define rpl_printf instead of
60177         __printf__.
60178         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
60179         commit.
60180         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
60181         commit.
60182         * m4/asm-underscore.m4: New file.
60183         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
60184         * modules/stdio (Files): Add m4/asm-underscore.m4.
60185         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
60186         Reported by Ben Pfaff.
60188 2010-05-16  Bruno Haible  <bruno@clisp.org>
60190         verify: Avoid skipping the test on openSUSE 11.0.
60191         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
60193 2010-05-13  Bruno Haible  <bruno@clisp.org>
60195         Avoid useless warnings from G++.
60196         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
60197         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
60198         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
60200 2010-05-11  Jim Meyering  <meyering@redhat.com>
60202         maint.mk: tweak preceding change
60203         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
60204         regexps tighter by anchoring at EOL, and make the new group "shy"
60205         for slightly decreased overhead.
60207 2010-05-11  Eric Blake  <eblake@redhat.com>
60209         maint.mk: gnulib doesn't guarantee NSIG
60210         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
60212 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
60214         test-pwrite.c: Remove unused variable declaration.
60215         * tests/test-pwrite.c (main): Remove read_buf declaration.
60217         Remove useless test-pwrite.sh file.
60218         * tests/test-pwrite.sh: Delete file.
60219         * modules/pwrite-tests: Remove references.
60220         Reported by Bruno Haible.
60222 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
60224         init.sh: fix a typo
60225         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
60227 2010-05-10  Jim Meyering  <meyering@redhat.com>
60229         maint.mk: avoid using a temporary file in the always-defined-macros check
60230         * top/maint.mk (.re-defmac): Remove rule.
60231         (gl_trap_): Remove definition.
60232         (sc_prohibit_always-defined_macros): Rewrite not to create and
60233         depend on a temporary file.  Instead, depend on GNU grep's ability
60234         to read a list of regular expressions from stdin when given "-f -".
60236 2010-05-09  Bruno Haible  <bruno@clisp.org>
60238         Update to GNU gettext 0.18, part 1.
60239         * m4/gettext.m4: Update to GNU gettext 0.18.
60240         * m4/intl.m4: Likewise.
60241         * m4/po.m4: Likewise.
60242         * modules/gettext (Files): Add m4/fcntl-o.m4.
60243         (configure.ac): Require gettext infrastructure from version 0.18.
60245 2010-05-09  Jim Meyering  <meyering@redhat.com>
60247         init.sh: enable MALLOC_PERTURB_
60248         * tests/init.sh: Enable glibc's malloc-perturbing option.
60250         maint.mk: improve sc_cross_check_PATH_usage_in_tests
60251         With my recent change in init.sh from the two-line form:
60252             -#   : ${srcdir=.}
60253             -#   . "$srcdir/init.sh"; path_prepend_ .
60254             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
60255         I noticed that using the one-line form would cause this test
60256         to fail with a false-positive, or to stop working altogether,
60257         depending on whether help-version changed or all the tests did.
60258         * top/maint.mk (_hv_regex): Remove this definition.
60259         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
60260         (_hv_regex_strong): Use a stronger regex to check for conformance.
60261         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
60262         Give a separate diagnostic for lack of conforming use.
60264         maint.mk: prohibit definition of symbols defined by gnulib
60265         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
60266         definition of symbols defined by gnulib.
60268 2010-05-09  Bruno Haible  <bruno@clisp.org>
60270         acl: Avoid test failure on Cygwin-hosted mingw.
60271         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
60273 2010-05-09  Bruno Haible  <bruno@clisp.org>
60275         error: Use system's fcntl function.
60276         * lib/error.c (fcntl): Undefine.
60278 2010-05-09  Jim Meyering  <meyering@redhat.com>
60280         verify: adjust formatting to be more consistent
60281         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
60282         argument-list '('s, and after one comma.
60284 2010-05-09  Bruno Haible  <bruno@clisp.org>
60286         error: More reliable output on mingw.
60287         * lib/error.c: Include <windows.h>.
60288         (is_open): New function.
60289         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
60290         defined.
60292 2010-05-09  Bruno Haible  <bruno@clisp.org>
60294         vasnprintf: Fix syntax errors in libintl build on mingw.
60295         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
60296         pad_ourselves and prec_ourselves after use.
60298 2010-05-08  Bruno Haible  <bruno@clisp.org>
60300         * lib/config.charset: Update comments for Cygwin 1.7.
60301         * lib/localcharset.c: Likewise.
60303 2010-05-07  Jim Meyering  <meyering@redhat.com>
60305         init.sh: improve comments
60306         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
60307         . "${srcdir=.}/init.sh"; path_prepend_ .
60308         Add a note about path_prepend_ and the alternative of using
60309         TESTS_ENVIRONMENT.
60311 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
60313         exclude: Unescape hashed patterns in wildcard mode.
60314         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
60315         to the hash list.
60316         * tests/test-exclude8.sh: New test case.
60317         * modules/exclude-tests: Add new test.
60319 2010-05-05  Eric Blake  <eblake@redhat.com>
60321         verify: automate tests
60322         * modules/verify-tests: New module.
60323         * tests/test-verify.sh: New file.
60324         * tests/test-verify.c: Guard each negative test with a unique id.
60325         Also avoid warning about unused left hand of comma expressions.
60327 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
60329         Further improvements to verify.h, suggested by Eric Blake.
60330         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
60331         the GL_* versions, to avoid collision with OpenGL.
60332         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
60333         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
60334         than testing merely whether it's defined.
60336         Modify verify.h to pacify gcc -Wredundant_decls.
60337         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
60338         These use the prefix "GL_" since they're likely to be useful elsewhere.
60339         We may need to break them out into a different .h file.
60340         (__COUNTER__): Define to 0 if the compiler doesn't support it.
60341         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
60342         of verify_function__.
60344 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
60346         Tests for module pwrite.
60347         * modules/pwrite-tests: New file.
60348         * tests/test-pwrite.sh: New file.
60349         * tests/test-pwrite.c: New file.
60351         New module pwrite.
60352         * lib/unistd.in.h (pwrite): New declaration.
60353         * lib/pwrite.c: New file, from glibc with modifications.
60354         * m4/pwrite.m4: New file.
60355         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
60356         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
60357         REPLACE_PWRITE.
60358         * modules/pwrite: New file.
60359         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
60360         REPLACE_PWRITE.
60361         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
60362         * doc/posix-functions/pwrite.texi: Mention the new module.
60364 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
60366         pread: Update documentation.
60367         * doc/posix-functions/pread.texi: Mention the 'pread' module.
60369 2010-05-04  Eric Blake  <eblake@redhat.com>
60371         docs: update cygwin progress
60372         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
60373         this bug.
60374         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
60375         Added in cygwin 1.7.2.
60376         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
60377         Likewise.
60378         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
60379         Likewise.
60380         * doc/glibc-functions/dup3.texi (dup3): Likewise.
60381         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
60382         * doc/glibc-functions/accept4.texi (accept4): Likewise.
60383         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
60384         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
60385         Mention nproc module.
60386         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
60387         bug in cygwin 1.7.5 addition.
60388         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
60389         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
60390         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
60391         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
60392         1.7.5.
60393         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
60394         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
60395         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
60396         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
60397         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
60398         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
60399         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
60400         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
60401         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
60402         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
60403         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
60404         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
60405         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
60406         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
60407         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
60408         Likewise.
60409         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
60410         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
60411         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
60412         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
60413         Likewise.
60414         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
60415         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
60416         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
60417         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
60418         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
60419         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
60420         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
60421         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
60422         Likewise.
60423         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
60424         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
60425         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
60426         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
60427         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
60428         Likewise.
60429         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
60430         Likewise.
60431         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
60432         Likewise.
60433         * doc/glibc-functions/xdrrec_endofrecord.texi
60434         (xdrrec_endofrecord): Likewise.
60435         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
60436         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
60437         Likewise.
60438         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
60439         Likewise.
60441 2010-05-04  Jim Meyering  <meyering@redhat.com>
60443         gendocs.sh: make its "-s FILE" option more useful
60444         * build-aux/gendocs.sh: When honoring the -s FILE option, update
60445         $PACKAGE to reflect the probably-different basename of "FILE".
60447 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
60449         bootstrap: don't ignore download_po_files failure
60450         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
60451         failure.
60453 2010-05-03  Jim Meyering  <meyering@redhat.com>
60455         maint.mk: allow to pass options to gendocs.sh
60456         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
60457         (gendocs_options_): New overridable variable.
60459         gnu-web-doc-update: don't ignore configure or build failure
60460         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
60462         announce-gen: backslash-escape '@'s in --help output
60463         * build-aux/announce-gen: Fix syntax errors.
60465         maint.mk, announce-gen: allow project-specific announcement mail headers
60466         * top/maint.mk (translation_project_): Define default.
60467         (announcement_Cc_, announcement_mail_headers_): Likewise.
60468         (announcement): Invoke announce-gen with new --mail-headers option.
60469         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
60471         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
60472         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
60473         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
60474         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
60475         line in the "err2" output file when running "make check" in verbose
60476         mode (i.e., with set -x enabled).
60478 2010-05-03  Bruno Haible  <bruno@clisp.org>
60480         wctob: Fix for weird platforms.
60481         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
60482         argument value.
60484 2010-05-03  Jim Meyering  <meyering@redhat.com>
60486         maint.mk: prohibit unwarranted use of <strings.h>
60487         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
60488         strings.h in a file that does not also use strcasecmp, strncasecmp,
60489         ffs or ffsll.
60491         maint.mk: remove obsolete comments
60492         * top/maint.mk: Remove stale, commented-out rules.
60494 2010-05-02  Bruno Haible  <bruno@clisp.org>
60496         wcwidth: Declare also when it's aliased.
60497         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
60498         macro.
60500 2010-05-02  Bruno Haible  <bruno@clisp.org>
60502         Fix regression from 2010-04-25.
60503         * gnulib-tool (func_modules_transitive_closure): Check the status of
60504         all modules, not only of the tests that are of the form foo-tests where
60505         foo is a module.
60507 2010-05-02  Bruno Haible  <bruno@clisp.org>
60509         wctob: Work around nasty Cygwin 1.7.2 bug.
60510         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
60511         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
60513 2010-05-01  Bruno Haible  <bruno@clisp.org>
60515         fpurge: Sharper test.
60516         * tests/test-fpurge.c (main): Add one more ftell check.
60517         * modules/fpurge-tests (Depends-on): Add ftell.
60518         Suggested by Eric Blake.
60520 2010-05-01  Bruno Haible  <bruno@clisp.org>
60522         ftello: Another test.
60523         * tests/test-ftello3.c: New file.
60524         * modules/ftello-tests (Files): Add it.
60525         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
60526         MOSTLYCLEANFILES.
60528         ftell: Another test.
60529         * tests/test-ftell3.c: New file.
60530         * modules/ftell-tests (Files): Add it.
60531         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
60532         MOSTLYCLEANFILES.
60534 2010-05-01  Bruno Haible  <bruno@clisp.org>
60536         ftell, ftello: Work around Solaris bug.
60537         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
60538         * lib/ftello.c: Include stdio-impl.h.
60539         (ftello): On Solaris, when _IOWRT is set, compute the result without
60540         looking at _IOREAD.
60541         * modules/ftello (Files): Add lib/stdio-impl.h.
60542         * doc/posix-functions/ftell.texi: Mention Solaris bug.
60543         * doc/posix-functions/ftello.texi: Likewise.
60544         Reported by Eric Blake.
60546 2010-05-01  Bruno Haible  <bruno@clisp.org>
60548         freading: Adapt to special meaning of _IOREAD flag on Solaris.
60549         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
60550         the _IOWRT flag is also set.
60552 2010-05-01  Bruno Haible  <bruno@clisp.org>
60554         Fix doc about a HP-UX stdio bug.
60555         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
60556         * doc/posix-functions/ftello.texi: Likewise.
60558 2010-05-01  Bruno Haible  <bruno@clisp.org>
60560         lseek test: Fix failure on Solaris.
60561         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
60562         output.
60564 2010-04-30  Jim Meyering  <meyering@redhat.com>
60566         bootstrap: don't ignore failure to generate po*/Makevars
60567         * build-aux/bootstrap (with_gettext): Don't ignore failure
60568         to create po/Makevars or runtime-po/Makevars.
60570 2010-04-29  Eric Blake  <eblake@redhat.com>
60572         headers: relax license to LGPLv2+
60573         * modules/fcntl-h (License): Relax license.
60574         * modules/getopt-posix (License): Likewise.
60575         * modules/locale (License): Likewise.
60576         * modules/math (License): Likewise.
60577         * modules/pty (License): Likewise.
60578         * modules/sched (License): Likewise.
60579         * modules/search (License): Likewise.
60580         * modules/spawn (License): Likewise.
60581         * modules/stdarg (License): Likewise.
60582         * modules/sysexits (License): Likewise.
60584 2010-04-29  Jim Meyering  <meyering@redhat.com>
60586         inttypes: relax license to LGPLv2+
60587         * modules/inttypes (License): Relax license.
60589 2010-04-29  Simon Josefsson  <simon@josefsson.org>
60591         * top/maint.mk (indent): Run twice to produce idempotent results.
60593 2010-04-28  Bruno Haible  <bruno@clisp.org>
60595         getdate: Generate getdate.c in the source directory.
60596         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
60597         MOSTLYCLEANFILES.
60598         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
60600 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
60602         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
60603         is not declared as a const *; avoid warnings in that case.
60605 2010-04-28  Eric Blake  <eblake@redhat.com>
60607         canonicalize-lgpl: avoid compiler warning
60608         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
60609         declaration' / 'extraneous semicolon' warning with some compilers.
60610         Reported by Andreas Gruenbacher.
60612 2010-04-28  Jim Meyering  <meyering@redhat.com>
60614         init.sh: ensure a more reliable exit status when exiting via trap
60615         * tests/init.sh (setup_): Don't rely on $? in signal handler.
60616         Inspired by patches from Dmitry V. Levin.
60617         Also trap on signal 3 (SIGQUIT).
60619 2010-04-27  Bruno Haible  <bruno@clisp.org>
60621         Update doc about utimes().
60622         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
60623         'utimens' module.
60624         Reported by Andreas Gruenbacher <agruen@suse.de>.
60626 2010-04-27  Eric Blake  <eblake@redhat.com>
60628         full-read, full-write: relax license
60629         * modules/full-read (License): Drop to LGPLv2+.
60630         * modules/full-write (License): Likewise.
60631         * modules/safe-read (License): Likewise.
60632         * modules/safe-write (License): Likewise.
60634         pthread: mention library for linking
60635         * modules/pthread (Link): Mention $(LIB_PTHREAD).
60637 2010-04-27  Jim Meyering  <meyering@redhat.com>
60639         maint.mk: fix a bug introduced in last change
60640         * top/maint.mk (gl_assured_headers_): Now that all names are on
60641         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
60642         is not anchored to end of word, it should be adequate.
60644         maint.mk: avoid side-effect in latest syntax-check
60645         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
60646         to run commands via $(shell...), and hence to incur cost only when
60647         the new rule is actually run.
60649         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
60650         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
60651         and use that to create a regexp used to detect all #if HAVE_..._H uses.
60652         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
60653         (gl_assured_headers_, az_, AZ_): Define.
60654         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
60656 2010-04-26  Jim Meyering  <jim@meyering.net>
60657             Bruno Haible  <bruno@clisp.org>
60659         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
60660         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
60661         Prompted by an exchange with Gilles Espinasse.
60663 2010-04-26  Jim Meyering  <meyering@redhat.com>
60665         git-version-gen: aesthetic tweak
60666         * build-aux/git-version-gen: Use "$nl" rather than a literal,
60667         so that the command remains on a single line.
60669 2010-04-26  Eric Blake  <eblake@redhat.com>
60671         git-version-gen: allow use on EBCDIC hosts
60672         * build-aux/git-version-gen (dirty): Use literal rather than tying
60673         ourselves to ascii.
60674         Reported by Steve Goetze.
60676 2010-04-25  Bruno Haible  <bruno@clisp.org>
60678         netdb: Add support for GNULIB_POSIXCHECK.
60679         * lib/netdb.in.h: Include warn-on-use.h.
60680         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
60681         functions are used when GNULIB_POSIXCHECK is defined and the
60682         getaddrinfo module is not in use.
60683         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
60684         freeaddrinfo, gai_strerror, getnameinfo are declared.
60685         * modules/netdb (Depends-on): Add warn-on-use.
60686         (Makefile.am): Include warn-on-use.h in netdb.h.
60688 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
60690         build: avoid "make check" failure without .git/ directory
60691         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
60692         there is no .git/ directory.
60694 2010-04-25  Bruno Haible  <bruno@clisp.org>
60696         ptsname: Fix misuse of ttyname_r.
60697         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
60698         of errno.
60700 2010-04-25  Bruno Haible  <bruno@clisp.org>
60702         ttyname_r: Make it work on Solaris 10.
60703         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
60704         if the system function has the POSIX declaration. Test whether the
60705         function fails if the buffer is less than 128 bytes large.
60706         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
60707         system's ttyname_r function. Provide a reasonably large buffer.
60708         * modules/ttyname_r (Depends-on): Add extensions.
60709         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
60711 2010-04-25  Bruno Haible  <bruno@clisp.org>
60713         Use the 'extensions' module for some more functions on Solaris.
60714         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
60715         module.
60716         * doc/posix-functions/ctime_r.texi: Likewise.
60717         * doc/posix-functions/getgrgid_r.texi: Likewise.
60718         * doc/posix-functions/getgrnam_r.texi: Likewise.
60719         * doc/posix-functions/getpwnam_r.texi: Likewise.
60720         * doc/posix-functions/getpwuid_r.texi: Likewise.
60721         * doc/posix-functions/readdir_r.texi: Likewise.
60722         * doc/posix-functions/sigwait.texi: Likewise.
60723         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
60724         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
60726 2010-04-25  Bruno Haible  <bruno@clisp.org>
60728         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
60729         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
60730         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
60731         * lib/ttyname_r.c: Include <limits.h>.
60732         (ttyname_r): Define using the system's ttyname_r function, if it exists
60733         and not on Solaris.
60734         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
60735         set.
60736         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
60737         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
60738         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
60739         Reported by Simon Josefsson.
60741 2010-04-25  Bruno Haible  <bruno@clisp.org>
60743         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
60744         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
60745         * doc/posix-functions/ctime_r.texi: Likewise.
60746         * doc/posix-functions/getgrgid_r.texi: Likewise.
60747         * doc/posix-functions/getgrnam_r.texi: Likewise.
60748         * doc/posix-functions/getlogin_r.texi: Likewise.
60749         * doc/posix-functions/getpwnam_r.texi: Likewise.
60750         * doc/posix-functions/getpwuid_r.texi: Likewise.
60751         * doc/posix-functions/readdir_r.texi: Likewise.
60752         * doc/posix-functions/sigwait.texi: Likewise.
60753         * doc/posix-functions/ttyname_r.texi: Likewise.
60754         Reported by Simon Josefsson.
60756 2010-04-25  Bruno Haible  <bruno@clisp.org>
60758         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
60759         * gnulib-tool (func_usage): Document that --with-*-tests options apply
60760         also to --create-testdir.
60761         (func_acceptable): Don't consider the status of *-tests modules here.
60762         (func_modules_transitive_closure): Consider it here, before including a
60763         test module.
60764         (func_import, func_create_testdir): Set inc_all_direct_tests,
60765         inc_all_indirect_tests.
60766         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
60767         --create-testdir and --create-megatestdir.
60769 2010-04-25  Bruno Haible  <bruno@clisp.org>
60771         gnulib-tool: Add --without-*-tests options.
60772         * gnulib-tool (func_usage): Document the --without-*-tests options.
60773         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
60774         excl_unportable_tests): New variables.
60775         Fail if they are specified with --import or --update.
60776         (func_acceptable): Respect the excl_*_tests variables.
60777         (func_import): Set the excl_*_tests variables to empty.
60779 2010-04-25  Simon Josefsson  <simon@josefsson.org>
60780             Bruno Haible  <bruno@clisp.org>
60782         Work around a MacOS X 10.4 bug with openpty.
60783         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
60784         * tests/test-openpty.c (main): Close the master side explicitly.
60786 2010-04-25  Bruno Haible  <bruno@clisp.org>
60788         strnlen: Fix a C++ test error on MacOS X and Solaris.
60789         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
60790         the function is not declared.
60791         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
60792         Simon Josefsson.
60794 2010-04-24  Bruno Haible  <bruno@clisp.org>
60796         Avoid a gcc warning.
60797         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
60798         of correct type for %08lx directive.
60799         Reported by Eric Blake.
60801 2010-04-24  Bruno Haible  <bruno@clisp.org>
60803         vasnprintf: Correct errno value in case of out-of-memory.
60804         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
60805         or sprintf. Use the errno value from SNPRINTF or sprintf.
60806         Reported by Ian Beckwith <ianb@erislabs.net>.
60808 2010-04-24  Bruno Haible  <bruno@clisp.org>
60810         ansi-c++-opt: Find correct compiler when cross-compiling.
60811         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
60812         AC_CHECK_PROGS.
60813         Reported by Simon Josefsson.
60815 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
60817         vc-list-files: Add support for subversion
60818         * build-aux/vc-list-files: Use "svn list" to generate the list of
60819         files controlled by subversion.
60821 2010-04-23  Jim Meyering  <meyering@redhat.com>
60823         vc-list-files tests: convert to use init.sh
60824         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
60825         path_prepend_.
60826         Use Exit, not exit.
60827         Use skip_ rather than open coding it.
60828         Remove trap set-up and compare definitions.
60829         * tests/test-vc-list-files-git.sh: Likewise.
60830         * modules/vc-list-files-tests (Files): Add tests/init.sh.
60832 2010-04-22  Simon Josefsson  <simon@josefsson.org>
60834         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
60835         backup files.
60837 2010-04-21  Simon Josefsson  <simon@josefsson.org>
60839         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
60841 2010-04-20  Eric Blake  <eblake@redhat.com>
60843         tests: be robust to ignored SIGPIPE
60844         * tests/test-select-in.sh: Consume all output.
60845         * tests/test-lseek.sh: Check correct exit status, while avoiding
60846         EPIPE.
60848 2010-04-20  Simon Josefsson  <simon@josefsson.org>
60849             Bruno Haible  <bruno@clisp.org>
60851         visibility: Don't use -fvisibility if it leads to a warning.
60852         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
60853         yes, don't pretend that visibility works if it leads to a warning.
60854         Reported by Mike Gran <spk121@yahoo.com>.
60856 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
60858         * build-aux/bootstrap: Use "git -h" for testing for supported options
60859         instead of "git --help".  The short-form option only shows a summary,
60860         and doesn't layout the full man page.  Grep for the full option name
60861         in the summary, too.
60863 2010-04-19  Bruno Haible  <bruno@clisp.org>
60865         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
60866         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
60867         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
60868         mention of RELOCATABLE_STRIP.
60869         Reported by Sylvain Beucler <beuc@beuc.net>.
60871 2010-04-19  Bruno Haible  <bruno@clisp.org>
60873         * lib/diffseq.h: Fix typo in comment.
60874         Reported by Eric Blake.
60876 2010-04-19  Bruno Haible  <bruno@clisp.org>
60878         ioctl: Move autoconf macro to a .m4 file.
60879         * m4/ioctl.m4: New file, extracted from modules/ioctl.
60880         * modules/ioctl (Files): Add it.
60881         (configure.ac): Simply invoke gl_FUNC_IOCTL.
60882         Reported by Ian Beckwith <ianb@erislabs.net>.
60884 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
60885             Bruno Haible  <bruno@clisp.org>
60887         diffseq: Accommodate use-case with abstract arrays.
60888         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
60889         is not defined.
60890         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
60891         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
60893 2010-04-18  Bruno Haible  <bruno@clisp.org>
60895         * doc/posix-headers/stdbool.texi: More precise wording.
60897 2010-04-17  Jim Meyering  <meyering@redhat.com>
60899         maint.mk: use gnu-style indentation in an embedded perl script
60900         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
60901         Rename variable: s/two/last_two_bytes/
60903 2010-04-16  Eric Blake  <eblake@redhat.com>
60905         test-stdbool: skip test that fails with Solaris CC
60906         * tests/test-stdbool.c (f): Skip test that causes compilation
60907         error under buggy C++ compiler.
60908         * lib/stdbool.in.h: Document the limitation.
60909         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
60911         setenv: allow compilation with C++
60912         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
60913         register keyword.
60915         stdint: allow test to pass with C++
60916         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
60918         getopt: allow compilation with C++
60919         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
60920         struct.
60921         * lib/getopt.c (_getopt_internal_r): Use correct type.
60922         Reported by Dagobert Michelson, via Joel E. Denny.
60924 2010-04-16  Bruno Haible  <bruno@clisp.org>
60926         Override netdb.h always.
60927         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
60928         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
60929         Reported by Ludovic Courtès <ludo@gnu.org>.
60931 2010-04-15  Bruno Haible  <bruno@clisp.org>
60933         openpty: Fix mistake from 2010-03-21.
60934         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
60935         Reported by Simon Josefsson.
60937 2010-04-15  Eric Blake  <eblake@redhat.com>
60939         test-forkpty: fix expected signature
60940         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
60941         Reported by Simon Josefsson.
60943 2010-04-15  Jim Meyering  <meyering@redhat.com>
60945         maint.mk: texinfo_suffix_re_: correct the default regexp
60946         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
60948         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
60949         make it configurable via texinfo_suffix_re_.
60951 2010-04-14  Eric Blake  <eblake@redhat.com>
60953         strtok_r: relax license to LGPLv2+
60954         * modules/strtok_r (License): Relax license.
60955         Reported by Matthias Bolte.
60957 2010-04-14  Simon Josefsson  <simon@josefsson.org>
60959         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
60960         version 1.4.4 by default instead of requiring the libgcrypt
60961         version used during build.  This makes it possible to use the
60962         application with older but still binary compatible libgcrypt
60963         versions.
60965 2010-04-13  Eric Blake  <eblake@redhat.com>
60967         getopt-gnu: match recent glibc fixes and posix ruling
60968         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
60969         '+' handling, when requesting extensions.
60970         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
60971         'W;' handling.
60972         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
60973         * doc/posix-functions/getopt.texi (getopt): Document this.
60974         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
60975         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
60976         Likewise.
60978         getopt: merge bug fixes from glibc
60979         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
60980         diagnostics.  Honor '+:' correctly.  Reject ';'.
60982         getopt-posix: detect MacOS bug
60983         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
60984         optind when missing a required argument.
60985         * doc/posix-functions/getopt.texi (getopt): Document the bug.
60986         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
60987         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
60988         Likewise.
60990         getopt-posix: avoid spurious failure on Solaris
60991         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
60992         an indicator that setting optind=1 is sufficient for reset.
60994         getopt-posix: avoid spurious failure on FreeBSD
60995         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
60996         in POSIX mode, since the m4 test uses it.
60998         gnulib-tool: silence warning on BSD sh
60999         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
61001 2010-04-13  Jim Meyering  <meyering@redhat.com>
61003         doc: users.txt: GNU patch now uses gnulib
61004         * users.txt: Add patch.
61006 2010-04-12  Jim Meyering  <meyering@redhat.com>
61008         maint.mk: generate more concise timing data for syntax-check rules
61009         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
61010         " done" from each line that reports a syntax-check test duration.
61012 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
61014         git-version-gen: use "git update-index..." rather than "git status"
61015         * build-aux/git-version-gen: Use git update-index --refresh, not
61016         "git status".  With some versions of git, "git status" would fail
61017         to update the index and result in an unwarranted "-dirty" suffix.
61019 2010-04-11  Jim Meyering  <meyering@redhat.com>
61021         openat: correct formatting (no semantic change)
61022         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
61023         Suggested by Bruno Haible.
61025 2010-04-11  Bruno Haible  <bruno@clisp.org>
61027         Stricter declaration checking in testdirs.
61028         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
61029         If for_tests is true, augment AM_CPPFLAGS to define
61030         GNULIB_STRICT_CHECKING.
61031         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
61032         GNULIB_STRICT_CHECKING is defined, verify that the function is
61033         declared.
61035 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
61036             Bruno Haible  <bruno@clisp.org>
61038         libunistring: Improve configure output.
61039         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
61040         Don't say "consider installing GNU libunistring" when checking again
61041         with libiconv.
61043 2010-04-11  Bruno Haible  <bruno@clisp.org>
61045         libunistring: Correct value of $LTLIBUNISTRING.
61046         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
61047         correct the value of $LTLIBUNISTRING.
61049 2010-04-11  Bruno Haible  <bruno@clisp.org>
61051         havelib: Add static libraries to LIBS in the right order.
61052         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
61053         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
61055 2010-04-11  Bruno Haible  <bruno@clisp.org>
61057         libunistring: Detect libunistring also when it depends on libiconv.
61058         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
61059         the second AC_LIB_HAVE_LINKFLAGS invocation.
61061 2010-04-11  James Youngman  <jay@gnu.org>
61063         close-stream: declare local scalars to be "const"
61064         * lib/close-stream.c (close_stream): Make boolean variables const
61065         to document the fact that we set but do not change them.
61067 2010-04-11  Bruno Haible  <bruno@clisp.org>
61069         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
61071 2010-04-11  Jim Meyering  <meyering@redhat.com>
61073         maint.mk: don't include dist-check.mk
61074         * top/maint.mk: Remove bogus include directive.
61076         maint.mk: improve empty-line-at-EOF check
61077         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
61078         solution, rather than tail+Perl-based one.  The latter would read
61079         a few kilobytes from the end of each file, and did not handle empty
61080         files properly.
61082         maint.mk: print the elapsed time for each syntax-check rule
61083         * top/maint.mk (sc_m_rules_): Save start time in a file.
61084         (sc_z_rules_): New rules: remove temp file and print elapsed time.
61085         (local-check): Interpose the .z rules
61087 2010-04-11  Jim Meyering  <meyering@redhat.com>
61089         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
61090         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
61091         empty file with one that ends in an empty line.
61093 2010-04-10  Bruno Haible  <bruno@clisp.org>
61095         mkdir: Make it work on mingw64.
61096         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
61097         * lib/mkdir.c: Update comment.
61098         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
61100 2010-04-10  Bruno Haible  <bruno@clisp.org>
61102         Don't override improved macro from newer autoconf.
61103         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
61104         autoconf >= 2.62.
61105         Reported by Joel E. Denny <jdenny@clemson.edu>.
61107 2010-04-10  Jim Meyering  <meyering@redhat.com>
61109         maint.mk: new syntax-check rule: prohibit empty lines at end of file
61110         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
61112         maint.mk: correct a diagnostic
61113         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
61114         in diagnostic; now use $prohibit.
61116 2010-04-10  Bruno Haible  <address@hidden>
61118         fchownat: Fix a C++ test error on Solaris 8.
61119         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
61120         the function does not exist.
61122 2010-04-10  Bruno Haible  <bruno@clisp.org>
61124         vasnprintf: Add more tests.
61125         * tests/test-vasnprintf-posix.c: Include <errno.h>.
61126         (test_function): Test converting an invalid wide string.
61128         vasnprintf: Correct handling of unconvertible wide string arguments.
61129         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
61130         VASNPRINTF.
61131         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
61132         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
61133         smaller than the expected maximum need for the directive. Set errno to
61134         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
61135         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
61136         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
61137         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
61138         * modules/vasnprintf (Files): Add m4/printf.m4.
61139         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
61141 2010-04-10  Bruno Haible  <bruno@clisp.org>
61143         vasnprintf: Fix crash in %ls directive.
61144         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
61145         string is passed as argument to %ls, with no precision and no width.
61146         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
61148 2010-04-10  Bruno Haible  <bruno@clisp.org>
61150         vasnprintf: Fix multiple test failures on mingw.
61151         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
61152         _snprintf, or snwprintf, not _snwprintf.
61154 2010-04-10  Bruno Haible  <bruno@clisp.org>
61156         write: Fix a C++ test error on mingw.
61157         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
61159 2010-04-10  Bruno Haible  <bruno@clisp.org>
61161         vasnprintf test: Reduce code duplication.
61162         * tests/test-vasnprintf.c (test_function): New function, extracted from
61163         test_vasnprintf.
61164         (test_vasnprintf, test_asnprintf): Invoke it.
61166 2010-04-10  Bruno Haible  <bruno@clisp.org>
61168         strnlen: Fix warning in C++ mode on MacOS X.
61169         * lib/string.in.h (strnlen): Use the modern idiom.
61170         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
61171         defining strnlen as a macro already in <config.h>.
61172         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
61173         REPLACE_STRNLEN.
61174         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
61175         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
61177 2010-04-08  James Youngman  <jay@gnu.org>
61179         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
61180         the example.
61182 2010-04-09  Jim Meyering  <meyering@redhat.com>
61184         maint.mk: print better diagnostic when there is no $(_hv_file)
61185         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
61186         announce that when $(_hv_file) (aka help-version) does not exist.
61188         init.sh: run tr in the "C" locale to avoid multibyte interpretation
61189         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
61190         not try to interpret its random input bytes.  Jarno Rajahalme reported
61191         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
61192         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
61193         (mktempd_): Likewise, just in case.
61195         ftruncate: add two years to projected module removal date: 2012
61196         * m4/ftruncate.m4: Adjust comments.
61198         ftruncate: mark module as obsolete; even MinGW provides it, now
61199         * modules/ftruncate (Status): Obsolete.
61200         (Notice): Say that.
61201         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
61202         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
61204 2010-04-08  Bruno Haible  <bruno@clisp.org>
61206         Fix side effects from tests-related modules.
61207         * modules/dprintf-posix (Comment): New section.
61208         * modules/fprintf-posix (Comment): Likewise.
61209         * modules/obstack-printf-posix (Comment): Likewise.
61210         * modules/printf-posix (Comment): Likewise.
61211         * modules/snprintf-posix (Comment): Likewise.
61212         * modules/sprintf-posix (Comment): Likewise.
61213         * modules/vasnprintf-posix (Comment): Likewise.
61214         * modules/vasprintf-posix (Comment): Likewise.
61215         * modules/vdprintf-posix (Comment): Likewise.
61216         * modules/vfprintf-posix (Comment): Likewise.
61217         * modules/vprintf-posix (Comment): Likewise.
61218         * modules/vsnprintf-posix (Comment): Likewise.
61219         * modules/vsprintf-posix (Comment): Likewise.
61220         * modules/xprintf-posix (Comment): Likewise.
61221         * modules/xvasprintf-posix (Comment): Likewise.
61222         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
61223         * modules/floorf-tests (Depends-on): Likewise.
61224         * modules/round-tests (Depends-on): Likewise.
61225         * modules/roundf-tests (Depends-on): Likewise.
61226         * modules/trunc-tests (Depends-on): Likewise.
61227         * modules/truncf-tests (Depends-on): Likewise.
61228         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
61229         'fprintf-posix' module is not present.
61230         * tests/test-floorf2.c (check): Likewise.
61231         * tests/test-trunc2.c (check): Likewise.
61232         * tests/test-truncf2.c (check): Likewise.
61233         * tests/test-round2.c (equal): Likewise.
61234         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
61236 2010-04-07  Karl Berry  <karl@gnu.org>
61238         * config/srclist.txt,
61239         * config/srclistvars.sh,
61240         * config/srclist-update: doc fixes.
61242 2010-04-07  Jim Meyering  <meyering@redhat.com>
61244         maint.mk: add a PATH crosschecking syntax-check rule
61245         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
61246         Useful if you use a test like the one in help-version (coreutils,
61247         diffutils, grep, gzip) that ensures $(VERSION) matches what is
61248         printed by prog --version.
61250 2010-04-06  Bruno Haible  <bruno@clisp.org>
61252         Fix link error on mingw.
61253         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
61254         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
61256 2010-04-06  Bruno Haible  <bruno@clisp.org>
61258         Assume rmdir exists.
61259         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
61261 2010-04-06  Giuseppe Scrivano  <gscrivano@gnu.org>
61263         doc: update users.txt
61264         * users.txt: Add gcal.
61266 2010-04-06  Jim Meyering  <meyering@redhat.com>
61268         init.sh: simply unset TMPDIR rather than risking env -i
61269         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
61270         although it probably works fine on all Unix-based systems, some
61271         systems (Cygwin?) cannot tolerate a totally cleared environment.
61272         Suggestion from Eric Blake.
61274 2010-04-06  Jim Meyering  <meyering@redhat.com>
61276         init.sh: portability fix: use env's POSIX-specified -i option not -u
61277         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
61278         than unportable env -u.  Solaris 5.11's env lacks support for -u.
61280 2010-04-05  Bruno Haible  <bruno@clisp.org>
61282         btowc: Work around Cygwin 1.7.2 bug.
61283         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
61284         does not map NUL to 0.
61285         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
61287 2010-04-05  Bruno Haible  <bruno@clisp.org>
61289         Make the multithread modules work on Cygwin 1.7.2.
61290         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
61291         imported symbols can be declared weak, so that it returns "no" on
61292         Cygwin 1.7.2.
61294 2010-04-05  Bruno Haible  <bruno@clisp.org>
61296         Use the module 'strncat'.
61297         * modules/unistr/u8-strncat (Depends-on): Add strncat.
61299         Tests for module 'strncat'.
61300         * modules/strncat-tests: New file.
61301         * tests/test-strncat.c: New file.
61303         New module 'strncat'.
61304         * lib/string.in.h (strncat): New declaration.
61305         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
61306         * m4/strncat.m4: New file, based on m4/memchr.m4.
61307         * modules/strncat: New file.
61308         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
61309         is declared.
61310         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
61311         REPLACE_STRNCAT.
61312         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
61313         REPLACE_STRNCAT.
61314         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
61315         module.
61316         * tests/test-string-c++.cc: Check signature of strncat.
61318 2010-04-05  Jim Meyering  <meyering@redhat.com>
61320         xstrtoumax-tests: convert to use init.sh
61321         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
61322         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
61323         Use Exit, not exit.
61324         Remove uses of $EXEEXT and "./" to run a program in the current dir.
61326         xstrtoimax-tests: convert to use init.sh
61327         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
61328         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
61329         Use Exit, not exit.
61330         Remove uses of $EXEEXT and "./" to run a program in the current dir.
61332 2010-04-05  Bruno Haible  <bruno@clisp.org>
61334         sys_socket: Avoid #define replacements in C++ mode.
61335         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
61336         warning to the function if possible, rather than #defining the symbol
61337         to a dysfunctional alias.
61339 2010-04-05  Bruno Haible  <bruno@clisp.org>
61341         fseeko: Fix C++ test error on mingw.
61342         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
61343         gl_FUNC_FSEEKO.
61344         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
61345         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
61346         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
61347         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
61349 2010-04-05  Bruno Haible  <bruno@clisp.org>
61351         duplocale: Improve test output.
61352         * tests/test-duplocale.c (main): Print reason for skipped test.
61354 2010-04-05  Bruno Haible  <bruno@clisp.org>
61356         Assume rmdir exists.
61357         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
61358         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
61360 2010-04-05  Bruno Haible  <bruno@clisp.org>
61362         Fix link error on Solaris 8 with cc.
61363         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
61365 2010-04-05  Bruno Haible  <bruno@clisp.org>
61367         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
61368         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
61370 2010-04-05  Bruno Haible  <bruno@clisp.org>
61372         vasprintf: Update documentation.
61373         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
61375 2010-04-05  Bruno Haible  <bruno@clisp.org>
61377         ptsname: Improve test.
61378         * tests/test-ptsname.c (main): Also try the various master names of BSD
61379         systems.
61381 2010-04-05  Bruno Haible  <bruno@clisp.org>
61383         memchr: Avoid a possible C++ test error.
61384         * lib/string.in.h (memchr): Provide declaration if function is missing.
61385         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
61386         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
61387         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
61388         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
61390 2010-04-05  Bruno Haible  <bruno@clisp.org>
61392         strtok_r: Improve idiom.
61393         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
61394         AC_LIBOBJ is used.
61396 2010-04-05  Bruno Haible  <bruno@clisp.org>
61398         strdup: Improve idiom.
61399         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
61400         AC_LIBOBJ is used.
61401         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
61402         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
61403         when AC_LIBOBJ is used.
61405 2010-04-05  Bruno Haible  <bruno@clisp.org>
61407         mbsinit, mbrtowc, wcrtomb: Improve idioms.
61408         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
61409         don't set REPLACE_MBSINIT to 1.
61410         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
61411         don't set REPLACE_MBRTOWC to 1.
61412         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
61413         exist, don't set REPLACE_MBSRTOWCS to 1.
61414         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
61415         exist, don't set REPLACE_MBSNRTOWCS to 1.
61416         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
61417         don't set REPLACE_WCRTOMB to 1.
61418         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
61419         exist, don't set REPLACE_WCSRTOMBS to 1.
61420         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
61421         exist, don't set REPLACE_WCSNRTOMBS to 1.
61423 2010-04-05  Bruno Haible  <bruno@clisp.org>
61425         ldexpl: Improve idiom.
61426         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
61427         make sure to set HAVE_DECL_LDEXPL to 0.
61429 2010-04-05  Jim Meyering  <meyering@redhat.com>
61431         xstrtol-tests: convert to use init.sh
61432         * modules/xstrtol-tests (Files): Add tests/init.sh.
61433         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
61434         Use Exit, not exit.
61435         Remove uses of $EXEEXT and "./" to run a program in the current dir.
61437         atexit-tests: convert to use init.sh
61438         * modules/atexit-tests (Files): Add tests/init.sh.
61439         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
61440         Use Exit, not exit.
61441         Remove uses of $EXEEXT and "./" to run a program in the current dir.
61443         init.sh: fix typo
61444         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
61446         init.sh: make it easier for a test script to write to the tty, ...
61447         when using automake's parallel-tests mode.
61448         * tests/init.sh (stderr_fileno_): Define overridable variable.
61449         (warn_): New function, to use it.
61450         (fail_, skip_, framework_failure_): Use warn_.
61452 2010-04-04  Bruno Haible  <bruno@clisp.org>
61454         btowc: Avoid warning.
61455         * lib/btowc.c: Include <stdlib.h>.
61456         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
61458 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
61459             Bruno Haible  <bruno@clisp.org>
61461         wchar: Port to NetBSD 1.5.
61462         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
61463         * lib/wctype.in.h (WEOF): Likewise.
61465 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
61466             Bruno Haible  <bruno@clisp.org>
61468         Port extended stdio to NetBSD 1.5.
61469         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
61470         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
61471         older.
61473 2010-04-04  Bruno Haible  <bruno@clisp.org>
61475         string: Remove unused substitution.
61476         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
61477         HAVE_DECL_STRERROR.
61478         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
61480 2010-04-04  Bruno Haible  <bruno@clisp.org>
61482         strtod: Avoid a possible C++ test error.
61483         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
61484         set REPLACE_STRTOD.
61486 2010-04-04  Bruno Haible  <bruno@clisp.org>
61488         strerror: Update documentation.
61489         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
61491 2010-04-04  Bruno Haible  <bruno@clisp.org>
61493         stdio: Fix some C++ test errors on Solaris 8 with GCC.
61494         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
61495         _GL_CXXALIAS_SYS_CAST.
61497 2010-04-04  Bruno Haible  <bruno@clisp.org>
61499         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
61500         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
61501         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
61502         REPLACE_FREXPL to 1.
61503         * doc/posix-functions/frexpl.texi: Update documentation.
61505 2010-04-04  Bruno Haible  <bruno@clisp.org>
61507         math: Fix some C++ test errors on Solaris 8 and Cygwin.
61508         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
61510 2010-04-04  Bruno Haible  <bruno@clisp.org>
61512         Implement nanosleep for native Windows.
61513         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
61515 2010-04-04  Bruno Haible  <bruno@clisp.org>
61517         math: Fix some C++ test errors on Solaris 8.
61518         * lib/math.in.h (truncf, trunc): Use simpler idiom.
61520 2010-04-04  Bruno Haible  <bruno@clisp.org>
61522         math: Fix some C++ test errors on Cygwin.
61523         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
61524         truncl): Provide declaration if the system does not have it.
61525         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
61526         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
61527         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
61528         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
61529         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
61530         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
61531         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
61532         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
61533         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
61534         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
61535         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
61536         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
61537         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
61538         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
61539         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
61540         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
61541         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
61542         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
61543         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
61544         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
61545         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
61546         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
61548 2010-04-04  Bruno Haible  <bruno@clisp.org>
61550         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
61551         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
61552         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
61553         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
61554         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
61555         * m4/isinf.m4 (gl_ISINF): Likewise.
61556         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
61558 2010-04-04  Bruno Haible  <bruno@clisp.org>
61560         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
61561         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
61563 2010-04-04  Bruno Haible  <bruno@clisp.org>
61565         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
61566         * modules/tmpfile (configure.ac): Update.
61568         tmpfile: Fix C++ test error on mingw.
61569         * lib/stdio.in.h (tmpfile): New declaration.
61570         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
61571         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
61572         * modules/tmpfile (Depends-on): Add stdio.
61573         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
61574         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
61575         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
61576         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
61577         REPLACE_TMPFILE.
61578         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
61580 2010-04-04  Bruno Haible  <bruno@clisp.org>
61582         ioctl: Fix C++ test error on mingw.
61583         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
61584         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
61585         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
61587 2010-04-03  Bruno Haible  <bruno@clisp.org>
61589         wcwidth: Fix C++ test error on mingw.
61590         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
61591         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
61592         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
61594 2010-04-03  Bruno Haible  <bruno@clisp.org>
61596         nanosleep: Fix C++ test error on mingw.
61597         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
61598         * lib/time.in.h (nanosleep): Use modern idiom.
61599         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
61600         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
61601         REPLACE_NANOSLEEP to 1.
61602         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
61603         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
61605 2010-04-03  Bruno Haible  <bruno@clisp.org>
61607         strptime: Fix C++ test error on mingw.
61608         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
61609         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
61610         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
61611         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
61612         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
61613         not REPLACE_STRPTIME.
61614         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
61615         REPLACE_STRPTIME.
61617 2010-04-03  Bruno Haible  <bruno@clisp.org>
61619         timegm: Fix C++ test error on mingw.
61620         * lib/time.in.h (timegm): Use modern idiom.
61621         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
61622         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
61623         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
61624         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
61626 2010-04-03  Bruno Haible  <bruno@clisp.org>
61628         timegm: Assume declaration if function exists.
61629         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
61630         if it exists. Don't clobber ac_cv_func_timegm.
61632 2010-04-03  Bruno Haible  <bruno@clisp.org>
61634         time_r: Fix C++ test error on mingw.
61635         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
61636         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
61637         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
61638         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
61639         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
61641 2010-04-03  Bruno Haible  <bruno@clisp.org>
61643         time_r: Minor updates.
61644         * modules/time_r (Description): Mention the provided functions.
61645         * lib/time_r.c: Don't include <string.h>.
61646         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
61647         * doc/posix-functions/localtime_r.texi: Likewise.
61649 2010-04-03  Bruno Haible  <bruno@clisp.org>
61651         time: Fix regression introduced on 2010-03-08.
61652         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
61653         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
61655 2010-04-03  Jim Meyering  <meyering@redhat.com>
61657         maint.mk: don't silently disable project-specific syntax-check rules
61658         * top/maint.mk (_prohibit_regexp): Define, to help people realize
61659         that they need to convert their project-specific syntax-check rules
61660         to use the new _sc_search_regexp.
61662 2010-04-03  Bruno Haible  <bruno@clisp.org>
61664         fchdir: Fix regression introduced on 2010-03-08.
61665         * lib/unistd.in.h (fchdir): Fix declaration.
61666         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
61667         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
61668         REPLACE_FCHDIR.
61669         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
61670         REPLACE_FCHDIR.
61672 2010-04-03  Bruno Haible  <bruno@clisp.org>
61674         getpagesize: Fix C++ test error on mingw.
61675         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
61676         system does not declare the function.
61677         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
61678         declared.
61679         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
61680         HAVE_DECL_GETPAGESIZE.
61681         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
61683 2010-04-03  Bruno Haible  <bruno@clisp.org>
61685         stdio: Make C++ tests work on mingw.
61686         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
61687         does not declare the function.
61689 2010-04-03  Bruno Haible  <bruno@clisp.org>
61691         ftello: Fix C++ test error on mingw.
61692         * lib/stdio.in.h (ftello): Use modern idiom.
61693         * lib/ftello.c (ftello): Renamed from rpl_ftello.
61694         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
61695         is missing and that it needs to be replaced.
61696         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
61697         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
61698         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
61700 2010-04-03  Bruno Haible  <bruno@clisp.org>
61702         fseeko: Fix C++ test error on mingw.
61703         * lib/stdio.in.h (fseeko): Use modern idiom.
61704         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
61705         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
61706         is missing and that it needs to be replaced.
61707         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
61708         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
61709         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
61711 2010-04-03  Bruno Haible  <bruno@clisp.org>
61713         mkstemp: Fix C++ test error on mingw.
61714         * lib/stdlib.in.h (mkstemp): Use modern idiom.
61715         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
61716         function is missing and that it needs to be replaced.
61717         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
61718         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
61720 2010-04-03  Bruno Haible  <bruno@clisp.org>
61722         stpncpy: Fix C++ test error on mingw.
61723         * lib/string.in.h (stpncpy): Use modern idiom.
61724         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
61725         function is missing and that it needs to be replaced.
61726         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
61727         REPLACE_STPNCPY.
61728         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
61730 2010-04-03  Bruno Haible  <bruno@clisp.org>
61732         sys_stat: Fix C++ test error on mingw.
61733         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
61734         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
61736 2010-04-03  Bruno Haible  <bruno@clisp.org>
61738         pty: Update doc.
61739         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
61741 2010-04-03  Bruno Haible  <bruno@clisp.org>
61743         unistd: Fix C++ test error on mingw.
61744         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
61746 2010-04-03  Bruno Haible  <bruno@clisp.org>
61748         Update doc regarding mingw.
61749         * doc/glibc-functions/openpty.texi: Update regarding mingw.
61750         * doc/glibc-functions/login_tty.texi: Likewise.
61751         * doc/glibc-functions/forkpty.texi: Likewise.
61753 2010-04-03  Bruno Haible  <bruno@clisp.org>
61755         stdlib: Avoid compilation failure of c-strtold on mingw.
61756         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
61758 2010-04-03  Bruno Haible  <bruno@clisp.org>
61760         locale: Make C++ tests work on Cygwin and mingw.
61761         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
61762         cannot provide the function.
61763         Reported by Simon Josefsson.
61765 2010-04-03  Bruno Haible  <bruno@clisp.org>
61767         localename: Port to MacOS X 10.6.
61768         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
61769         memory layout of the locales in MacOS X 10.6 as well.
61770         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
61772 2010-04-02  Bruno Haible  <bruno@clisp.org>
61774         gnulib-tool: Ensure that long-running tests are executed last.
61775         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
61776         running tests after the one for the other tests.
61778 2010-04-02  Bruno Haible  <bruno@clisp.org>
61780         gnulib-tool: Ensure the tests in the main directory are executed first.
61781         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
61782         start with the current directory.
61784 2010-04-02  Bruno Haible  <bruno@clisp.org>
61786         Tests for module 'havelib', moved here from GNU gettext.
61787         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
61788         modifications.
61789         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
61790         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
61791         with modifications.
61792         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
61793         modifications.
61794         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
61795         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
61796         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
61797         with modifications.
61798         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
61799         with modifications.
61800         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
61801         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
61802         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
61803         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
61804         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
61805         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
61806         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
61807         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
61808         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
61809         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
61810         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
61811         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
61812         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
61813         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
61814         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
61815         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
61816         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
61817         with modifications.
61818         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
61819         with modifications.
61820         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
61821         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
61822         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
61823         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
61824         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
61825         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
61826         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
61827         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
61828         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
61829         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
61830         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
61831         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
61832         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
61833         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
61834         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
61835         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
61836         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
61837         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
61838         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
61839         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
61840         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
61841         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
61842         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
61843         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
61844         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
61845         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
61846         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
61847         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
61848         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
61849         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
61850         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
61851         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
61852         * tests/havelib/rpathx/rpathx.c: New file, from
61853         gettext/autoconf-lib-link.
61854         * tests/havelib/rpathx/Makefile.am: New file, from
61855         gettext/autoconf-lib-link.
61856         * tests/havelib/rpathx/configure.ac: New file, from
61857         gettext/autoconf-lib-link with modifications.
61858         * tests/havelib/rpathy/rpathy.c: New file, from
61859         gettext/autoconf-lib-link.
61860         * tests/havelib/rpathy/Makefile.am: New file, from
61861         gettext/autoconf-lib-link.
61862         * tests/havelib/rpathy/configure.ac: New file, from
61863         gettext/autoconf-lib-link with modifications.
61864         * tests/havelib/rpathz/rpathz.c: New file, from
61865         gettext/autoconf-lib-link.
61866         * tests/havelib/rpathz/Makefile.am: New file, from
61867         gettext/autoconf-lib-link.
61868         * tests/havelib/rpathz/configure.ac: New file, from
61869         gettext/autoconf-lib-link with modifications.
61870         * tests/havelib/rpathlx/usex.c: New file, from
61871         gettext/autoconf-lib-link.
61872         * tests/havelib/rpathlx/Makefile.am: New file, from
61873         gettext/autoconf-lib-link.
61874         * tests/havelib/rpathlx/configure.ac: New file, from
61875         gettext/autoconf-lib-link with modifications.
61876         * tests/havelib/rpathly/usey.c: New file, from
61877         gettext/autoconf-lib-link.
61878         * tests/havelib/rpathly/Makefile.am: New file, from
61879         gettext/autoconf-lib-link.
61880         * tests/havelib/rpathly/configure.ac: New file, from
61881         gettext/autoconf-lib-link with modifications.
61882         * tests/havelib/rpathlz/usez.c: New file, from
61883         gettext/autoconf-lib-link.
61884         * tests/havelib/rpathlz/Makefile.am: New file, from
61885         gettext/autoconf-lib-link.
61886         * tests/havelib/rpathlz/configure.ac: New file, from
61887         gettext/autoconf-lib-link with modifications.
61888         * tests/havelib/rpathlyx/usey.c: New file, from
61889         gettext/autoconf-lib-link.
61890         * tests/havelib/rpathlyx/Makefile.am: New file, from
61891         gettext/autoconf-lib-link.
61892         * tests/havelib/rpathlyx/configure.ac: New file, from
61893         gettext/autoconf-lib-link with modifications.
61894         * tests/havelib/rpathlzyx/usez.c: New file, from
61895         gettext/autoconf-lib-link.
61896         * tests/havelib/rpathlzyx/Makefile.am: New file, from
61897         gettext/autoconf-lib-link.
61898         * tests/havelib/rpathlzyx/configure.ac: New file, from
61899         gettext/autoconf-lib-link with modifications.
61900         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
61901         with modifications.
61903 2010-04-02  Bruno Haible  <bruno@clisp.org>
61905         gnulib-tool: Create distributed built sources also for the tests.
61906         * gnulib-tool (func_create_testdir): Also generate distributed built
61907         sources in the tests directory.
61909 2010-04-02  Bruno Haible  <bruno@clisp.org>
61911         gnulib-tool: Obey user's environment variables.
61912         * gnulib-tool (func_create_testdir): When creating built sources,
61913         respect the environment variables for autoconf, automake, etc. given by
61914         the user.
61916 2010-04-02  Bruno Haible  <bruno@clisp.org>
61918         gnulib-tool: Provide the value of --m4-base to modules.
61919         * gnulib-tool (func_import, func_create_testdir): Emit a definition
61920         of gl_m4_base.
61922 2010-04-02  Eric Blake  <eblake@redhat.com>
61924         maint.mk: fix some fallout
61925         * NEWS: Document the incompatible change, and its effect on cfg.mk.
61926         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
61928 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
61930         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
61931         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
61932         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
61933         (sc_cast_of_x_alloc_return_value): Likewise.
61934         (sc_cast_of_alloca_return_value): Likewise.
61935         (sc_space_tab): Likewise.
61936         (sc_prohibit_atoi_atof): Likewise.
61937         (sc_prohibit_magic_number_exit): Likewise.
61938         (sc_error_exit_success): Likewise.
61939         (sc_file_system): Likewise.
61940         (sc_prohibit_have_config_h): Likewise.
61941         (sc_require_config_h): Likewise.
61942         (sc_prohibit_HAVE_MBRTOWC): Likewise.
61943         (sc_obsolete_symbols): Likewise.
61944         (sc_changelog): Likewise.
61945         (sc_program_name): Likewise.
61946         (sc_the_the): Likewise.
61947         (sc_trailing_blank): Likewise.
61948         (sc_two_space_separator_in_usage): Likewise.
61949         (sc_useless_cpp_parens): Likewise.
61950         (sc_GPL_version): Likewise.
61951         (sc_GFDL_version): Likewise.
61952         (sc_texinfo_acronym): Likewise.
61953         (sc_prohibit_cvs_keyword): Likewise.
61954         (sc_prohibit_stat_st_blocks): Likewise.
61955         (sc_prohibit_S_IS_definition): Likewise.
61956         (sc_redundant_const): Likewise.
61957         (sc_makefile_TAB_only_indentation): Likewise.
61958         (sc_m4_quote_check): Likewise.
61959         (sc_makefile_path_separator_check): Likewise.
61960         (sc_copyright_check): Likewise.
61961         (sc_Wundef_boolean): Likewise.
61962         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
61964         maint.mk: match 0 or more whitespace-before-function-call '('
61965         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
61966         that have zero or two-and-more spaces between the function name
61967         and the open parenthesis.
61968         (sc_error_message_warn_fatal): Likewise.
61969         (sc_error_message_uppercase): Likewise.
61970         (sc_error_message_period): Likewise.
61972 2010-03-31  Eric Blake  <eblake@redhat.com>
61974         maint.mk: check for [ as well as test
61975         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
61976         Based on a libvirt report by Matthias Bolte.
61978         gnumakefile: don't squelch _version output
61979         * top/GNUmakefile (_version): Create one-shot dependency rather
61980         than using $(shell) when version must be regenerated.
61981         (_autoreconf): Run verbosely, by default.
61983         sys_time: avoid compiler warnings
61984         * lib/sys_time.in.h (includes): Ensure gcc pragma is
61985         unconditional, fixing regression from 2010-03-29.
61986         Reported by Simon Josefsson.
61988 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
61990         maint.mk: s/_header_without_use/_sc_header_without_use/
61991         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
61992         (sc_prohibit_assert_without_use): Use the new name.
61993         (sc_prohibit_close_stream_without_use): Likewise.
61994         (sc_prohibit_getopt_without_use): Likewise.
61995         (sc_prohibit_quotearg_without_use): Likewise.
61996         (sc_prohibit_quote_without_use): Likewise.
61997         (sc_prohibit_long_options_without_use): Likewise.
61998         (sc_prohibit_inttostr_without_use): Likewise.
61999         (sc_prohibit_ignore_value_without_use): Likewise.
62000         (sc_prohibit_error_without_use): Likewise.
62001         (sc_prohibit_xalloc_without_use): Likewise.
62002         (sc_prohibit_hash_without_use): Likewise.
62003         (sc_prohibit_hash_pjw_without_use): Likewise.
62004         (sc_prohibit_safe_read_without_use): Likewise.
62005         (sc_prohibit_argmatch_without_use): Likewise.
62006         (sc_prohibit_canonicalize_without_use): Likewise.
62007         (sc_prohibit_root_dev_ino_without_use): Likewise.
62008         (sc_prohibit_openat_without_use): Likewise.
62009         (sc_prohibit_c_ctype_without_use): Likewise.
62010         (sc_prohibit_signal_without_use): Likewise.
62011         (sc_prohibit_intprops_without_use): Likewise.
62013 2010-03-30  Eric Blake  <eblake@redhat.com>
62015         maint: improve module indicators
62016         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
62017         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
62018         columns, and avoid extra macro expansion.
62020         fdopendir: work around FreeBSD bug
62021         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
62022         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
62023         * modules/dirent (Makefile.am): Substitute it.
62024         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
62025         declaration.
62026         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
62027         fix.
62028         Reported by Christian Weisgerber <naddy@mips.inka.de>.
62030 2010-03-29  Bruno Haible  <bruno@clisp.org>
62032         Emit #pragma system_header after the inclusion guard, not before.
62033         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
62034         guard that spans the entire file, not before. This enables an
62035         optimization in GCC's preprocessor.
62036         * lib/ctype.in.h: Likewise.
62037         * lib/dirent.in.h: Likewise.
62038         * lib/errno.in.h: Likewise.
62039         * lib/float.in.h: Likewise.
62040         * lib/getopt.in.h: Likewise.
62041         * lib/iconv.in.h: Likewise.
62042         * lib/langinfo.in.h: Likewise.
62043         * lib/locale.in.h: Likewise.
62044         * lib/math.in.h: Likewise.
62045         * lib/netdb.in.h: Likewise.
62046         * lib/netinet_in.in.h: Likewise.
62047         * lib/pty.in.h: Likewise.
62048         * lib/sched.in.h: Likewise.
62049         * lib/se-selinux.in.h: Likewise.
62050         * lib/search.in.h: Likewise.
62051         * lib/spawn.in.h: Likewise.
62052         * lib/stdarg.in.h: Likewise.
62053         * lib/stdint.in.h: Likewise.
62054         * lib/string.in.h: Likewise.
62055         * lib/strings.in.h: Likewise.
62056         * lib/sys_file.in.h: Likewise.
62057         * lib/sys_ioctl.in.h: Likewise.
62058         * lib/sys_time.in.h: Likewise.
62059         * lib/sys_times.in.h: Likewise.
62060         * lib/sys_utsname.in.h: Likewise.
62061         * lib/sys_wait.in.h: Likewise.
62062         * lib/sysexits.in.h: Likewise.
62063         * lib/wctype.in.h: Likewise.
62065 2010-03-28  James Youngman  <jay@gnu.org>
62067         save-cwd: don't leak a file descriptor when the caller execs.
62068         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
62069         saved file descriptor.
62070         * modules/save-cwd (Depends-on): Depend on cloexec.
62072 2010-03-29  Bruno Haible  <bruno@clisp.org>
62074         Remove vestiges of fts-lgpl module.
62075         * lib/fts_.h: Assume GNULIB_FTS is 1.
62076         * lib/fts.c: Likewise.
62077         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
62079 2010-03-28  Bruno Haible  <bruno@clisp.org>
62081         Fix definition of tests witness macro.
62082         * gnulib-tool (func_import): Fix definition of witness macro.
62084 2010-03-28  Bruno Haible  <bruno@clisp.org>
62086         Fix ioctl's protoype on glibc systems.
62087         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
62088         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
62089         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
62090         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
62091         signature. If not, arrange to replace the ioctl function.
62092         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
62093         REPLACE_IOCTL.
62094         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
62095         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
62096         Reported by Ludovic Courtès <ludo@gnu.org>.
62098 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
62100         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
62101         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
62102         made it so grep -r --include=GLOB* ... did not work.
62104 2010-03-26  Jim Meyering  <meyering@redhat.com>
62105             Eric Blake  <eblake@redhat.com>
62107         maint.mk: prohibit use of test's -o and -a operators
62108         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
62110 2010-03-28  Bruno Haible  <bruno@clisp.org>
62112         Remove unused GNULIB_XYZ macro definitions.
62113         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
62114         invocation.
62116 2010-03-28  Bruno Haible  <bruno@clisp.org>
62118         Mark privileged tests modules.
62119         * modules/idpriv-drop-tests (Status): New section.
62120         * modules/idpriv-droptemp-tests (Status): New section.
62122 2010-03-28  Bruno Haible  <bruno@clisp.org>
62124         Split C++ tests into separate tests modules.
62125         * modules/dirent-c++-tests: New file, extracted from
62126         modules/dirent-tests.
62127         * modules/dirent-tests: Depend on it.
62128         * modules/fcntl-h-c++-tests: New file, extracted from
62129         modules/fcntl-h-tests.
62130         * modules/fcntl-h-tests: Depend on it.
62131         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
62132         * modules/glob-tests: Depend on it.
62133         * modules/iconv-h-c++-tests: New file, extracted from
62134         modules/iconv-h-tests.
62135         * modules/iconv-h-tests: Depend on it.
62136         * modules/langinfo-c++-tests: New file, extracted from
62137         modules/langinfo-tests.
62138         * modules/langinfo-tests: Depend on it.
62139         * modules/locale-c++-tests: New file, extracted from
62140         modules/locale-tests.
62141         * modules/locale-tests: Depend on it.
62142         * modules/math-c++-tests: New file, extracted from modules/math-tests.
62143         * modules/math-tests: Depend on it.
62144         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
62145         * modules/pty-tests: Depend on it.
62146         * modules/search-c++-tests: New file, extracted from
62147         modules/search-tests.
62148         * modules/search-tests: Depend on it.
62149         * modules/signal-c++-tests: New file, extracted from
62150         modules/signal-tests.
62151         * modules/signal-tests: Depend on it.
62152         * modules/spawn-c++-tests: New file, extracted from
62153         modules/spawn-tests.
62154         * modules/spawn-tests: Depend on it.
62155         * modules/stdio-c++-tests: New file, extracted from
62156         modules/stdio-tests.
62157         * modules/stdio-tests: Depend on it.
62158         * modules/stdlib-c++-tests: New file, extracted from
62159         modules/stdlib-tests.
62160         * modules/stdlib-tests: Depend on it.
62161         * modules/string-c++-tests: New file, extracted from
62162         modules/string-tests.
62163         * modules/string-tests: Depend on it.
62164         * modules/sys_ioctl-c++-tests: New file, extracted from
62165         modules/sys_ioctl-tests.
62166         * modules/sys_ioctl-tests: Depend on it.
62167         * modules/sys_select-c++-tests: New file, extracted from
62168         modules/sys_select-tests.
62169         * modules/sys_select-tests: Depend on it.
62170         * modules/sys_socket-c++-tests: New file, extracted from
62171         modules/sys_socket-tests.
62172         * modules/sys_socket-tests: Depend on it.
62173         * modules/sys_stat-c++-tests: New file, extracted from
62174         modules/sys_stat-tests.
62175         * modules/sys_stat-tests: Depend on it.
62176         * modules/sys_time-c++-tests: New file, extracted from
62177         modules/sys_time-tests.
62178         * modules/sys_time-tests: Depend on it.
62179         * modules/time-c++-tests: New file, extracted from modules/time-tests.
62180         * modules/time-tests: Depend on it.
62181         * modules/unistd-c++-tests: New file, extracted from
62182         modules/unistd-tests.
62183         * modules/unistd-tests: Depend on it.
62184         * modules/wchar-c++-tests: New file, extracted from
62185         modules/wchar-tests.
62186         * modules/wchar-tests: Depend on it.
62187         * modules/wctype-c++-tests: New file, extracted from
62188         modules/wctype-tests.
62189         * modules/wctype-tests: Depend on it.
62190         Reported by Simon Josefsson.
62192 2010-03-28  Bruno Haible  <bruno@clisp.org>
62194         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
62195         * gnulib-tool (func_exists_module): New function, extracted from
62196         func_verify_module.
62197         (func_verify_module): Use it.
62198         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
62199         'foo' only if 'foo' exists.
62200         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
62201         module.
62203 2010-03-28  Bruno Haible  <bruno@clisp.org>
62205         gnulib-tool: Add support for special categories of tests.
62206         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
62207         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
62208         (func_usage): Document them.
62209         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
62210         inc_unportable_tests, inc_all_tests): New variables.
62211         (func_acceptable): Consider these variables.
62212         (func_modules_transitive_closure): Make it work when the 'Status' field
62213         consists of multiple words.
62214         (func_import): Store and restore the values of inc_cxx_tests,
62215         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
62216         inc_all_tests in gnulib-comp.m4.
62217         (func_create_testdir): Set inc_all_tests to true.
62218         * doc/gnulib.texi (Extra tests modules): New section.
62219         Suggested by Jim Meyering.
62221 2010-03-28  Bruno Haible  <bruno@clisp.org>
62223         ansi-c++-opt: Allow turning off the C++ build by default.
62224         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
62225         gl_CXX_CHOICE_DEFAULT_NO is defined.
62226         Requested by Eric Blake.
62228 2010-03-28  Bruno Haible  <bruno@clisp.org>
62230         unistd: Avoid #define replacements in C++ mode.
62231         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
62232         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
62233         setsockopt, shutdown, select): In C++, attach a warning to the function
62234         if possible, rather than #defining the symbol to a dysfunctional alias.
62235         Reported by John W. Eaton <jwe@gnu.org>.
62237 2010-03-28  Bruno Haible  <bruno@clisp.org>
62239         Fix link errors on mingw.
62240         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
62241         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
62242         $(LIBSOCKET).
62243         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
62244         $(LIBSOCKET).
62246 2010-03-28  Bruno Haible  <bruno@clisp.org>
62247             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62249         lib-ignore: Determine different options for different compilers.
62250         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
62251         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
62252         Add comments.
62253         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
62254         * NEWS: Mention the change.
62256 2010-03-27  Bruno Haible  <bruno@clisp.org>
62258         Remove unused GNULIB_XYZ macro definitions.
62259         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
62260         * modules/fseek (configure.ac): Likewise.
62261         * modules/ioctl (configure.ac): Likewise.
62262         * modules/open (configure.ac): Likewise.
62263         * modules/stdlib-safer (configure.ac): Likewise.
62265 2010-03-27  Bruno Haible  <bruno@clisp.org>
62267         Add a remark about certain modules.
62268         * modules/malloc (Comment): New section.
62269         * modules/realloc (Comment): Likewise.
62270         * modules/sigpipe (Comment): Likewise.
62272 2010-03-27  Bruno Haible  <bruno@clisp.org>
62274         Resolve conflict between the two kinds of module indicators.
62275         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
62276         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
62277         * modules/canonicalize (configure.ac): Invoke
62278         gl_MODULE_INDICATOR_FOR_TESTS.
62279         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
62280         GNULIB_XYZ.
62281         * tests/test-dirent-c++.cc: Likewise.
62282         * tests/test-dirent-safer.c: Likewise.
62283         * tests/test-dup2.c: Likewise.
62284         * tests/test-fchdir.c: Likewise.
62285         * tests/test-fcntl-h-c++.cc: Likewise.
62286         * tests/test-getopt.c: Likewise.
62287         * tests/test-getopt.h: Likewise.
62288         * tests/test-langinfo-c++.cc: Likewise.
62289         * tests/test-locale-c++.cc: Likewise.
62290         * tests/test-math-c++.cc: Likewise.
62291         * tests/test-pty-c++.cc: Likewise.
62292         * tests/test-search-c++.cc: Likewise.
62293         * tests/test-signal-c++.cc: Likewise.
62294         * tests/test-spawn-c++.cc: Likewise.
62295         * tests/test-stdio-c++.cc: Likewise.
62296         * tests/test-stdlib-c++.cc: Likewise.
62297         * tests/test-string-c++.cc: Likewise.
62298         * tests/test-sys_ioctl-c++.cc: Likewise.
62299         * tests/test-sys_select-c++.cc: Likewise.
62300         * tests/test-sys_socket-c++.cc: Likewise.
62301         * tests/test-sys_stat-c++.cc: Likewise.
62302         * tests/test-sys_time-c++.cc: Likewise.
62303         * tests/test-time-c++.cc: Likewise.
62304         * tests/test-unistd-c++.cc: Likewise.
62305         * tests/test-wchar-c++.cc: Likewise.
62306         * tests/uninorm/test-u8-nfc.c: Likewise.
62307         * tests/uninorm/test-u8-nfd.c: Likewise.
62308         * tests/uninorm/test-u8-nfkc.c: Likewise.
62309         * tests/uninorm/test-u8-nfkd.c: Likewise.
62310         * tests/uninorm/test-u16-nfc.c: Likewise.
62311         * tests/uninorm/test-u16-nfd.c: Likewise.
62312         * tests/uninorm/test-u16-nfkc.c: Likewise.
62313         * tests/uninorm/test-u16-nfkd.c: Likewise.
62314         * tests/uninorm/test-u32-nfc.c: Likewise.
62315         * tests/uninorm/test-u32-nfc-big.c: Likewise.
62316         * tests/uninorm/test-u32-nfd.c: Likewise.
62317         * tests/uninorm/test-u32-nfd-big.c: Likewise.
62318         * tests/uninorm/test-u32-nfkc.c: Likewise.
62319         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
62320         * tests/uninorm/test-u32-nfkd.c: Likewise.
62321         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
62322         * tests/uninorm/test-u32-normalize-big.c: Likewise.
62324 2010-03-27  Bruno Haible  <bruno@clisp.org>
62326         Distinguish two kinds of module indicators.
62327         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
62328         gl_MODULE_INDICATOR.
62329         (gl_MODULE_INDICATOR): New macro.
62330         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
62331         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
62332         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
62333         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
62334         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
62335         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
62336         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
62337         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
62338         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
62339         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
62340         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
62341         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
62342         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
62343         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
62344         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
62345         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
62346         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
62347         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
62348         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
62349         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
62350         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
62351         * modules/cloexec (configure.ac): Likewise.
62352         * modules/getopt-gnu (configure.ac): Likewise.
62353         * modules/uninorm/u8-normalize (configure.ac): Likewise.
62354         * modules/uninorm/u16-normalize (configure.ac): Likewise.
62355         * modules/uninorm/u32-normalize (configure.ac): Likewise.
62356         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
62358 2010-03-27  Bruno Haible  <bruno@clisp.org>
62360         New module description field 'Comment'.
62361         * gnulib-tool: New option --extract-comment.
62362         (func_usage): Document it.
62363         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
62364         (func_get_comment): New function.
62365         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
62367 2010-03-27  Bruno Haible  <bruno@clisp.org>
62369         Addendum to 2010-02-07 commit.
62370         * gnulib-tool (func_usage): Document --extract-applicability option.
62372 2010-03-27  Bruno Haible  <bruno@clisp.org>
62374         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
62375         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
62376         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
62377         rather than link errors.
62379 2010-03-27  Bruno Haible  <bruno@clisp.org>
62381         Avoid side effects from tests-related modules on the compilation of lib.
62382         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
62383         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
62384         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
62385         parameter. Emit into AM_CPPFLAGS a definition of the designated C
62386         macro.
62387         (func_import): Define a witness macro. Assign it a value that depends
62388         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
62389         tests-related modules.
62390         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
62391         Reported by Jim Meyering.
62393 2010-03-27  Bruno Haible  <bruno@clisp.org>
62395         Factorize common .m4 code.
62396         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
62397         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
62398         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
62399         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
62400         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
62401         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
62402         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
62403         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
62404         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
62405         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
62406         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
62407         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
62408         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
62409         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
62410         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
62411         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
62412         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
62413         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
62414         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
62415         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
62416         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
62417         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
62418         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
62419         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
62420         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
62421         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
62422         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
62423         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
62424         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
62425         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
62426         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
62427         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
62429 2010-03-27  Bruno Haible  <bruno@clisp.org>
62431         Fix a compilation error on Cygwin with g++ >= 4.3.
62432         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
62433         if it is undefined or if we alias it to chmod.
62434         (lstat): Don't warn about the use of this function if it is undefined
62435         or if we alias it to stat.
62436         Reported by Simon Josefsson.
62438 2010-03-27  Bruno Haible  <bruno@clisp.org>
62440         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
62441         * modules/getlogin (configure.ac): Update.
62443         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
62444         * modules/getlogin_r (configure.ac): Update.
62446         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
62447         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
62448         * modules/inet_ntop (configure.ac): Update.
62450         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
62451         * modules/inet_pton (configure.ac): Update.
62453         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
62454         * modules/mbslen (configure.ac): Update.
62456         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
62457         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
62458         * modules/forkpty (configure.ac): Update.
62459         * modules/openpty (configure.ac): Update.
62461 2010-03-26  Simon Josefsson  <simon@josefsson.org>
62463         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
62464         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
62466 2010-03-25  Eric Blake  <eblake@redhat.com>
62468         maint: use pragma consistently across replacement headers
62469         * lib/ctype.in.h (system_header): Hoist for consistent placement.
62470         * lib/dirent.in.h (system_header): Likewise.
62471         * lib/errno.in.h (system_header): Likewise.
62472         * lib/float.in.h (system_header): Likewise.
62473         * lib/getopt.in.h (system_header): Likewise.
62474         * lib/iconv.in.h (system_header): Likewise.
62475         * lib/inttypes.in.h (system_header): Likewise.
62476         * lib/langinfo.in.h (system_header): Likewise.
62477         * lib/locale.in.h (system_header): Likewise.
62478         * lib/math.in.h (system_header): Likewise.
62479         * lib/netdb.in.h (system_header): Likewise.
62480         * lib/netinet_in.in.h (system_header): Likewise.
62481         * lib/pty.in.h (system_header): Likewise.
62482         * lib/sched.in.h (system_header): Likewise.
62483         * lib/se-selinux.in.h (system_header): Likewise.
62484         * lib/search.in.h (system_header): Likewise.
62485         * lib/spawn.in.h (system_header): Likewise.
62486         * lib/stdarg.in.h (system_header): Likewise.
62487         * lib/stdint.in.h (system_header): Likewise.
62488         * lib/string.in.h (system_header): Likewise.
62489         * lib/strings.in.h (system_header): Likewise.
62490         * lib/sys_file.in.h (system_header): Likewise.
62491         * lib/sys_ioctl.in.h (system_header): Likewise.
62492         * lib/sys_socket.in.h (system_header): Likewise.
62493         * lib/sys_times.in.h (system_header): Likewise.
62494         * lib/sys_utsname.in.h (system_header): Likewise.
62495         * lib/sys_wait.in.h (system_header): Likewise.
62496         * lib/sysexits.in.h (system_header): Likewise.
62497         * lib/unistd.in.h (system_header): Likewise.
62498         * lib/wctype.in.h (system_header): Likewise.
62500         arpa/inet: fix mingw compilation warning
62501         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
62502         Reported by Matthew Bolte.
62504 2010-03-25  Bruno Haible  <bruno@clisp.org>
62506         Avoid collision between gnulib wrapper and libintl wrapper.
62507         * lib/printf.c (printf): Don't define if a printf wrapper is already
62508         defined in intl/printf.c.
62509         Reported by Michel Boaventura <michel@michelboaventura.com>.
62511 2010-03-25  Bruno Haible  <bruno@clisp.org>
62513         Use ANSI C.
62514         * lib/readutmp.h (getutent): Provide ANSI C prototype.
62516 2010-03-25  Bruno Haible  <bruno@clisp.org>
62518         Minor formatting changes.
62519         * lib/acosl.c: Insert space before function argument list.
62520         * lib/argz.c: Likewise.
62521         * lib/asinl.c: Likewise.
62522         * lib/expl.c: Likewise.
62523         * lib/gen-uni-tables.c: Likewise.
62524         * lib/gettext.h: Likewise.
62525         * lib/glthread/lock.h: Likewise.
62526         * lib/tanl.c: Likewise.
62527         * lib/uniname/uniname.c: Likewise.
62528         * tests/test-idpriv-drop.c: Likewise.
62529         * tests/test-idpriv-droptemp.c: Likewise.
62530         * tests/test-lock.c: Likewise.
62531         * tests/test-tls.c: Likewise.
62532         * lib/argp-help.c: Insert space before function-like macro argument
62533         list.
62534         * lib/memcmp.c: Likewise.
62535         * tests/test-base64.c: Likewise.
62536         * lib/localename.c: Insert space before sizeof's argument list.
62537         * lib/safe-alloc.h: Likewise.
62538         * lib/file-set.h: Insert space before macro argument list.
62539         * tests/test-argp.c: Likewise.
62540         * lib/argp-namefrob.h: Insert space before function parameter list.
62541         * lib/getaddrinfo.c: Likewise.
62542         * lib/netdb.in.h: Likewise.
62543         * lib/parse-duration.h: Likewise.
62544         * lib/parse-duration.c: Likewise.
62545         * lib/poll.c: Likewise.
62546         * lib/select.c: Likewise.
62547         * lib/trim.h: Likewise.
62548         * tests/test-usleep.c: Likewise.
62549         * lib/ldexpl.c: Insert space before function parameter list and before
62550         function argument list.
62551         * lib/logl.c: Likewise.
62552         * lib/sqrtl.c: Likewise.
62553         * lib/trim.c: Likewise.
62554         * lib/cosl.c: Use GNU style indentation. Insert space before function
62555         argument list.
62556         * lib/sinl.c: Likewise.
62557         * lib/tsearch.c: Insert space after 'for'.
62558         Reported by Jim Meyering.
62560 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
62562         * maint.mk (sc_Wundef_boolean): Check for the presence of the
62563         config header before grepping, as it's not present before
62564         autoreconf/configure are run.  Reported by Simon Josefsson.
62566 2010-03-23  Bruno Haible  <bruno@clisp.org>
62568         pt_chown: Make it work with automake < 1.11.
62569         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
62570         Reported by Simon Josefsson.
62572 2010-03-23  Bruno Haible  <bruno@clisp.org>
62574         pt_chown: Don't depend on GPLed modules.
62575         * lib/pt_chown.c: Don't include idpriv.h.
62576         (main): Don't drop privileges.
62577         * modules/pt_chown (Depends-on): Remove idpriv-drop.
62578         Reported by Simon Josefsson.
62580 2010-03-24  Simon Josefsson  <simon@josefsson.org>
62582         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
62583         suggestions from karl@freefriends.org (Karl Berry).
62585 2010-03-22  Eric Blake  <eblake@redhat.com>
62587         gethostname: further tweaks
62588         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
62589         are overriding gethostname.
62590         Suggested by Bruno Haible.
62592 2010-03-21  Bruno Haible  <bruno@clisp.org>
62594         Fix comments.
62595         * lib/forkpty.c (rpl_forkpty): Fix comment.
62596         * lib/openpty.c (rpl_openpty): Likewise.
62597         Reported by Eric Blake.
62599 2010-03-22  Eric Blake  <eblake@redhat.com>
62601         gethostname: fix build on mingw
62602         * lib/unistd.in.h (includes): Work around fact that mingw
62603         <winsock2.h> re-includes <unistd.h>, by avoiding any
62604         redeclarations if we are being included by <winsock2.h>.
62605         Reported by Matthias Bolte.
62607 2010-03-21  Bruno Haible  <bruno@clisp.org>
62609         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
62610         * lib/forkpty.c (forkpty): New replacement function, from glibc with
62611         modifications.
62612         * lib/pty.in.h (forkpty): Update declaration. Add comments.
62613         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
62614         provide the replacement.
62615         * modules/forkpty (Depends-on): Add openpty, login_tty.
62616         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
62617         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
62618         * doc/glibc-functions/forkpty.texi: More supported platforms.
62619         * config/srclist.txt: Add forkpty.c (commented).
62621 2010-03-21  Bruno Haible  <bruno@clisp.org>
62623         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
62624         (Makefile.am): Verify that PTY_LIB is defined.
62626         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
62628 2010-03-21  Bruno Haible  <bruno@clisp.org>
62630         Tests for module 'login_tty'.
62631         * modules/login_tty-tests: New file.
62632         * tests/test-login_tty.c: New file.
62634         New module 'login_tty'.
62635         * lib/login_tty.c: New file.
62636         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
62637         * modules/login_tty: New file.
62638         * doc/glibc-functions/login_tty.texi: Mention the new module.
62640 2010-03-21  Bruno Haible  <bruno@clisp.org>
62642         login_tty: Documentation.
62643         * doc/glibc-functions/login_tty.texi: New file.
62644         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
62646 2010-03-21  Bruno Haible  <bruno@clisp.org>
62648         pty: Consistent macro naming.
62649         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
62650         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
62651         * modules/pty (configure.ac): Update.
62653 2010-03-21  Bruno Haible  <bruno@clisp.org>
62655         Tests for openpty: Make stricter.
62656         * tests/test-openpty.c (main): Add test of canonical processing and
62657         erase.
62658         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
62660         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
62661         * lib/openpty.c (openpty): New replacement function.
62662         * lib/pty.in.h: Include <termios.h>.
62663         (openpty): Update declaration. Add comments.
62664         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
62665         is not declared, arrange to provide the replacement. Check for _getpty
62666         and posix_openpt.
62667         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
62668         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
62669         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
62670         * modules/pty-tests (test_pty_c___LDADD): New variable.
62671         * doc/glibc-functions/openpty.texi: More supported platforms.
62673 2010-03-21  Bruno Haible  <bruno@clisp.org>
62675         setenv: Tweaks.
62676         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
62677         the test program.
62678         * doc/posix-functions/setenv.texi: Update platforms list.
62680 2010-03-21  Bruno Haible  <bruno@clisp.org>
62682         New module 'unlockpt'.
62683         * lib/unlockpt.c: New file, from glibc with modifications.
62684         * m4/unlockpt.m4: New file.
62685         * modules/unlockpt: New file.
62686         * lib/stdlib.in.h (unlockpt): New declaration.
62687         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
62688         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
62689         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
62690         HAVE_UNLOCKPT.
62691         * doc/posix-functions/unlockpt.texi: Mention the new module.
62692         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
62693         * config/srclist.txt: Add unlockpt.c (commented).
62695 2010-03-21  Jim Meyering  <meyering@redhat.com>
62697         maint.mk: prohibit inclusion of "intprops.h" without use
62698         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
62700 2010-03-21  Bruno Haible  <bruno@clisp.org>
62702         New module 'grantpt'.
62703         * lib/grantpt.c: New file, from glibc with modifications.
62704         * m4/grantpt.m4: New file.
62705         * modules/grantpt: New file.
62706         * lib/stdlib.in.h (grantpt): New declaration.
62707         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
62708         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
62709         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
62710         HAVE_GRANTPT.
62711         * doc/posix-functions/grantpt.texi: Mention the new module.
62712         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
62713         * config/srclist.txt: Add grantpt.c (commented).
62715 2010-03-21  Bruno Haible  <bruno@clisp.org>
62717         New module 'pt_chown'.
62718         * lib/pt_chown.c: New file, from glibc with modifications.
62719         * lib/pty-private.h: New file, from glibc with modifications.
62720         * modules/pt_chown: New file.
62721         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
62723 2010-03-21  Bruno Haible  <bruno@clisp.org>
62725         Tests for module 'ptsname'.
62726         * modules/ptsname-tests: New file.
62727         * tests/test-ptsname.c: New file.
62729         New module 'ptsname'.
62730         * lib/ptsname.c: New file, from glibc with modifications.
62731         * m4/ptsname.m4: New file.
62732         * modules/ptsname: New file.
62733         * lib/stdlib.in.h (ptsname): New declaration.
62734         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
62735         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
62736         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
62737         HAVE_PTSNAME.
62738         * doc/posix-functions/ptsname.texi: Mention the new module.
62739         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
62740         * config/srclist.txt: Add ptsname.c (commented).
62742 2010-03-21  Bruno Haible  <bruno@clisp.org>
62744         Tests for module 'ttyname_r'.
62745         * modules/ttyname_r-tests: New file.
62746         * tests/test-ttyname_r.c: New file.
62748         New module 'ttyname_r'.
62749         * lib/ttyname_r.c: New file.
62750         * m4/ttyname_r.m4: New file.
62751         * modules/ttyname_r: New file.
62752         * lib/unistd.in.h (ttyname_r): New declaration.
62753         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
62754         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
62755         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
62756         HAVE_TTYNAME_R.
62757         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
62758         * doc/posix-functions/ttyname_r.texi: Mention the new module.
62760 2010-03-20  Bruno Haible  <bruno@clisp.org>
62762         signal: Undefine macro definitions in C++ mode.
62763         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
62764         sigfillset): Undefine macro definitions from the system header in C++
62765         mode.
62766         Reported by John W. Eaton <jwe@gnu.org>.
62768 2010-03-20  Bruno Haible  <bruno@clisp.org>
62770         Ensure no #include statements inside extern "C" { ... }.
62771         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
62772         contain #include statements.
62773         * lib/time.in.h: Likewise.
62775 2010-03-20  Bruno Haible  <bruno@clisp.org>
62777         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
62778         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
62779         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
62780         Reported by John W. Eaton <jwe@gnu.org>.
62782 2010-03-20  Bruno Haible  <bruno@clisp.org>
62784         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
62785         Reported by Jim Meyering.
62787 2010-03-20  Bruno Haible  <bruno@clisp.org>
62789         pipe: Set errno upon failure.
62790         * lib/pipe.h: Specify that when -1 is returned, errno is set.
62791         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
62792         errno value in error message.
62794 2010-03-20  Bruno Haible  <bruno@clisp.org>
62795             Jim Meyering  <meyering@redhat.com>
62797         lchown: Avoid "unused variable" warning.
62798         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
62800 2010-03-20  Bruno Haible  <bruno@clisp.org>
62802         Work around unlink() bug on MacOS X 10.5.6.
62803         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
62804         attempting to unlink a parent directory.
62805         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
62806         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
62807         activate for the replacement function.
62808         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
62810 2010-03-20  Bruno Haible  <bruno@clisp.org>
62812         Fix link errors on Solaris 8.
62813         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
62814         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
62816 2010-03-19  Jim Meyering  <meyering@redhat.com>
62818         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
62819         The _LIBC implementation of build_range_exp correctly honors the
62820         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
62821         However, the non-_LIBC implementation would ignore that syntax-bit
62822         flag and return REG_ERANGE unconditionally.
62823         This change makes it honor that flag.
62824         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
62825         Make two pointer parameters "const".
62826         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
62827         (parse_bracket_exp): Update caller.
62829         regex.m4: correct the reversed range endpoint ([b-a]) test
62830         * m4/regex.m4: When requiring that [b-a] evoke failure,
62831         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
62832         test pass once again for x86-based systems.
62834 2010-03-19  Bruno Haible  <bruno@clisp.org>
62836         scandir: Fix link error on Solaris 8.
62837         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
62838         macros.
62840 2010-03-19  Bruno Haible  <bruno@clisp.org>
62842         getusershell: Fix documentation.
62843         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
62844         module.
62845         * doc/glibc-functions/setusershell.texi: Likewise.
62847         getusershell: Provide declaration, missing on Solaris 9.
62848         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
62849         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
62850         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
62851         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
62852         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
62853         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
62854         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
62855         HAVE_GETUSERSHELL.
62856         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
62858 2010-03-19  Bruno Haible  <bruno@clisp.org>
62860         wctype: Provide iswblank function.
62861         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
62862         exists and is fine.
62863         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
62864         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
62865         * tests/test-wctype.c (main): Re-enable the iswblank tests.
62866         * doc/posix-functions/iswblank.texi: Update.
62868 2010-03-19  Bruno Haible  <bruno@clisp.org>
62870         Tests of module 'pty' in C++ mode.
62871         * modules/pty-tests: New file.
62872         * tests/test-pty-c++.cc: New file.
62873         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
62875 2010-03-19  Eric Blake  <eblake@redhat.com>
62877         logb: fix documentation
62878         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
62879         1.5 declaration bug.
62881         forkpty, openpty: prefer glibc's const-safe prototype
62882         * lib/forkpty.c (rpl_forkpty): New file.
62883         * lib/openpty.c (rpl_openpty): Likewise.
62884         * modules/forkpty (Files): Distribute it.
62885         * modules/openpty (Files): Likewise.
62886         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
62887         check...
62888         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
62889         replacement for non-const BSD signature.
62890         * modules/pty (Makefile.am): Substitute witnesses.
62891         * lib/pty.in.h (forkpty, openpty): Declare replacements.
62892         * tests/test-forkpty.c: Update signature check.
62893         * tests/test-openpty.c: Likewise.
62894         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
62895         * doc/glibc-functions/openpty.texi (openpty): Likewise.
62897         forkpty, openpty: split functions into new modules
62898         * modules/pty (Makefile.am): Substitute new witnesses.
62899         (Libraries): Move library detection...
62900         * modules/forkpty: ...into new module.
62901         * modules/openpty: Another new module.
62902         * modules/pty-tests: Rename and split...
62903         * modules/forkpty-tests: ...to this...
62904         * modules/openpty-tests: ...and this.
62905         * tests/test-pty.c: Rename and split...
62906         * tests/test-forkpty.c: ...to this...
62907         * tests/test-openpty.c: ...and this.
62908         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
62909         (gl_PTY): Split library searching...
62910         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
62911         (gl_FORKPTY, gl_OPENPTY): New macros.
62912         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
62913         * NEWS: Mention the split.
62914         * MODULES.html.sh (Misc): Document the modules.
62915         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
62916         * doc/glibc-functions/openpty.texi (openpty): Likewise.
62918         pty: improve replacement header
62919         * lib/pty.in.h: New file.
62920         * modules/pty (Files): Ship it.
62921         (Makefile.am): Always build replacement.
62922         * m4/pty.m4: Rename...
62923         * m4/pty_h.m4: ...to this.
62924         (gl_PTY): Modernize setting of witness macros; update check of
62925         forkpty to take proper advantage of cache.
62926         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
62928         getopt: avoid compiler warning
62929         * lib/getopt.c (attribute_hidden): Remove unused macro.
62931 2010-03-18  Bruno Haible  <bruno@clisp.org>
62933         Fix link errors on Solaris 8.
62934         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
62935         * modules/search-tests (test_search_c___LDADD): Likewise.
62936         * modules/signal-tests (test_signal_c___LDADD): Likewise.
62937         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
62938         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
62939         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
62940         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
62941         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
62942         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
62944 2010-03-18  Bruno Haible  <bruno@clisp.org>
62946         Fix bug introduced on 2010-03-14.
62947         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
62948         (gl_SPAWN_H): Require it.
62949         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
62950         Reported by Simon Josefsson.
62952 2010-03-18  Bruno Haible  <bruno@clisp.org>
62954         Fix typo introduced on 2009-12-31.
62955         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
62956         posix_spawn_file_actions_adddup2.
62958 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
62959         and Eric Blake  <eblake@redhat.com>
62961         test-vc-list-files-git: make more robust
62962         * tests/test-vc-list-files-git.sh: Unset problematic environment
62963         variables.  Chain commands together.
62965 2010-03-17  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
62967         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
62968         `AC_CHECK_DECL' invocation.
62970 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
62972         * lib/inttostr.c (inttostr): Make sure the invocation of verify
62973         appears before executable statements. Suggested by Petr Sumbera
62974         <Petr.Sumbera@Sun.COM>.
62976 2010-03-14  Bruno Haible  <bruno@clisp.org>
62978         * tests/test-flock.c (test_exclusive): Comment out a test that causes
62979         portability problems. Instead use a simpler test.
62980         (main): Check that invalid arguments are rejected only on Linux.
62982 2010-03-14  Bruno Haible  <bruno@clisp.org>
62984         Fix bug introduced on 2009-12-31.
62985         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
62986         gl_PREREQ_SYS_H_WINSOCK2 always.
62987         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
62988         SYS_SOCKET_H variable.
62989         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
62990         Update comments.
62991         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
62992         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
62993         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
62994         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
62995         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
62997 2010-03-14  Bruno Haible  <bruno@clisp.org>
62999         Fix values returned by sinl, cosl.
63000         * lib/trigl.h: Add specification comments.
63001         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
63002         that combines the values from the precomputed table with the values of
63003         the Chebyshev polynomials.
63005 2010-03-14  Bruno Haible  <bruno@clisp.org>
63007         Fix compilation error when modules 'posix_spawn[p]' are not used.
63008         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
63009         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
63011 2010-03-14  Bruno Haible  <bruno@clisp.org>
63013         Fix compilation error on mingw when module 'time_r' is not used.
63014         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
63015         is 1.
63016         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
63017         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
63018         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
63019         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
63021 2010-03-14  Bruno Haible  <bruno@clisp.org>
63023         Fix compilation error with Sun C.
63024         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
63025         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
63026         instead of GCC specific ULONG_LONG_MAX.
63027         * lib/xstrtoll.c: Likewise.
63028         * lib/xstrtoull.c: Likewise.
63030 2010-03-13  Bruno Haible  <bruno@clisp.org>
63032         Allow the user to disable C++ code and tests.
63033         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
63034         (gl_PROG_ANSI_CXX): Require it.
63036 2010-03-13  Bruno Haible  <bruno@clisp.org>
63038         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
63039         cases.
63041 2010-03-13  Bruno Haible  <bruno@clisp.org>
63043         Test that gnulib does not break the standard C++ headers.
63044         * tests/test-locale-c++2.cc: New file.
63045         * modules/locale-tests (Files): Add it.
63046         (Makefile.am): Compile it for test-locale-c++.
63047         * tests/test-math-c++2.cc: New file.
63048         * modules/math-tests (Files): Add it.
63049         (Makefile.am): Compile it for test-math-c++.
63050         * tests/test-signal-c++2.cc: New file.
63051         * modules/signal-tests (Files): Add it.
63052         (Makefile.am): Compile it for test-signal-c++.
63053         * tests/test-stdio-c++2.cc: New file.
63054         * modules/stdio-tests (Files): Add it.
63055         (Makefile.am): Compile it for test-stdio-c++.
63056         * tests/test-stdlib-c++2.cc: New file.
63057         * modules/stdlib-tests (Files): Add it.
63058         (Makefile.am): Compile it for test-stdlib-c++.
63059         * tests/test-string-c++2.cc: New file.
63060         * modules/string-tests (Files): Add it.
63061         (Makefile.am): Compile it for test-string-c++.
63062         * tests/test-time-c++2.cc: New file.
63063         * modules/time-tests (Files): Add it.
63064         (Makefile.am): Compile it for test-time-c++.
63065         Reported by John W. Eaton <jwe@gnu.org>.
63067 2010-03-13  Bruno Haible  <bruno@clisp.org>
63069         * gnulib-tool (func_usage): Clarify which options are available for
63070         --create-testdir and --create-megatestdir.
63072 2010-03-13  Bruno Haible  <bruno@clisp.org>
63074         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
63075         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
63076         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
63077         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
63078         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
63079         when appropriate.
63080         Reported by Jim Meyering.
63082 2010-03-12  Simon Josefsson  <simon@josefsson.org>
63084         * gnulib-tool (func_import): Explain origin of code.
63086 2010-03-12  Bruno Haible  <bruno@clisp.org>
63088         Fix problem with automake's definition of CXXLINK.
63089         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
63090         Reported by Simon Josefsson and Ludovic Courtès.
63092 2010-03-12  Bruno Haible  <bruno@clisp.org>
63094         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
63095         stable releases.
63097 2010-03-11  Bruno Haible  <bruno@clisp.org>
63099         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
63100         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
63101         whether the system provides one variant or multiple variants of the
63102         function.
63103         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
63104         C++ compilers.
63105         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
63106         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
63107         Reported by Jim Meyering.
63109 2010-03-09  Simon Josefsson  <simon@josefsson.org>
63111         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
63113 2010-03-08  Bruno Haible  <bruno@clisp.org>
63115         gnulib-tool: Add support for --libtool in --create-testdir.
63116         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
63117         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
63119 2010-03-08  Eric Blake  <eblake@redhat.com>
63121         gnulib-tool.texi: mention possibility of git submodule
63122         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
63123         submodules.
63124         * doc/.gitignore: Ignore another generated file.
63126 2010-03-08  Karl Berry  <karl@gnu.org>
63128         * doc/gnulib-tool.texi (VCS Issues): Mention third option
63129         of committing gnulib files while skipping others.
63131 2010-03-07  Bruno Haible  <bruno@clisp.org>
63133         Tests of module 'wctype' in C++ mode.
63134         * tests/test-wctype-c++.cc: New file.
63135         * modules/wctype-tests (Files): Add it and tests/signature.h.
63136         (Depends-on): Add ansi-c++-opt.
63137         (Makefile.am): Arrange to compile and run test-wctype-c++.
63139         Tests of module 'wchar' in C++ mode.
63140         * tests/test-wchar-c++.cc: New file.
63141         * modules/wchar-tests (Files): Add it and tests/signature.h.
63142         (Depends-on): Add ansi-c++-opt.
63143         (Makefile.am): Arrange to compile and run test-wchar-c++.
63144         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
63145         gl_MODULE_INDICATOR.
63147         Tests of module 'unistd' in C++ mode.
63148         * tests/test-unistd-c++.cc: New file.
63149         * modules/unistd-tests (Files): Add it and tests/signature.h.
63150         (Depends-on): Add ansi-c++-opt.
63151         (Makefile.am): Arrange to compile and run test-unistd-c++.
63152         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
63153         gl_MODULE_INDICATOR.
63155         Tests of module 'time' in C++ mode.
63156         * tests/test-time-c++.cc: New file.
63157         * modules/time-tests (Files): Add it and tests/signature.h.
63158         (Depends-on): Add ansi-c++-opt.
63159         (Makefile.am): Arrange to compile and run test-time-c++.
63160         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
63162         Tests of module 'sys_time' in C++ mode.
63163         * tests/test-sys_time-c++.cc: New file.
63164         * modules/sys_time-tests (Files): Add it and tests/signature.h.
63165         (Depends-on): Add ansi-c++-opt.
63166         (Makefile.am): Arrange to compile and run test-sys_time-c++.
63167         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
63168         gl_MODULE_INDICATOR.
63170         Tests of module 'sys_stat' in C++ mode.
63171         * tests/test-sys_stat-c++.cc: New file.
63172         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
63173         (Depends-on): Add ansi-c++-opt.
63174         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
63175         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
63176         gl_MODULE_INDICATOR.
63178         Tests of module 'sys_socket' in C++ mode.
63179         * tests/test-sys_socket-c++.cc: New file.
63180         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
63181         (Depends-on): Add ansi-c++-opt.
63182         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
63183         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
63184         gl_MODULE_INDICATOR.
63186         Tests of module 'sys_select' in C++ mode.
63187         * tests/test-sys_select-c++.cc: New file.
63188         * modules/sys_select-tests (Files): Add it and tests/signature.h.
63189         (Depends-on): Add ansi-c++-opt.
63190         (Makefile.am): Arrange to compile and run test-sys_select-c++.
63191         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
63192         gl_MODULE_INDICATOR.
63194         Tests of module 'sys_ioctl' in C++ mode.
63195         * tests/test-sys_ioctl-c++.cc: New file.
63196         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
63197         (Depends-on): Add ansi-c++-opt.
63198         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
63199         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
63200         gl_MODULE_INDICATOR.
63202         Tests of module 'string' in C++ mode.
63203         * tests/test-string-c++.cc: New file.
63204         * modules/string-tests (Files): Add it and tests/signature.h.
63205         (Depends-on): Add ansi-c++-opt.
63206         (Makefile.am): Arrange to compile and run test-string-c++.
63207         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
63208         gl_MODULE_INDICATOR.
63210         Tests of module 'stdlib' in C++ mode.
63211         * tests/test-stdlib-c++.cc: New file.
63212         * modules/stdlib-tests (Files): Add it and tests/signature.h.
63213         (Depends-on): Add ansi-c++-opt.
63214         (Makefile.am): Arrange to compile and run test-stdlib-c++.
63215         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
63216         gl_MODULE_INDICATOR.
63218         Tests of module 'stdio' in C++ mode.
63219         * tests/test-stdio-c++.cc: New file.
63220         * modules/stdio-tests (Files): Add it and tests/signature.h.
63221         (Depends-on): Add ansi-c++-opt.
63222         (Makefile.am): Arrange to compile and run test-stdio-c++.
63223         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
63224         gl_MODULE_INDICATOR.
63226         Tests of module 'spawn' in C++ mode.
63227         * tests/test-spawn-c++.cc: New file.
63228         * modules/spawn-tests (Files): Add it and tests/signature.h.
63229         (Depends-on): Add ansi-c++-opt.
63230         (Makefile.am): Arrange to compile and run test-spawn-c++.
63231         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
63232         gl_MODULE_INDICATOR.
63234         Tests of module 'signal' in C++ mode.
63235         * tests/test-signal-c++.cc: New file.
63236         * modules/signal-tests (Files): Add it and tests/signature.h.
63237         (Depends-on): Add ansi-c++-opt.
63238         (Makefile.am): Arrange to compile and run test-signal-c++.
63239         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
63240         gl_MODULE_INDICATOR.
63242         Tests of module 'search' in C++ mode.
63243         * tests/test-search-c++.cc: New file.
63244         * modules/search-tests (Files): Add it and tests/signature.h.
63245         (Depends-on): Add ansi-c++-opt.
63246         (Makefile.am): Arrange to compile and run test-search-c++.
63247         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
63248         gl_MODULE_INDICATOR.
63250         Tests of module 'math' in C++ mode.
63251         * tests/test-math-c++.cc: New file.
63252         * modules/math-tests (Files): Add it and tests/signature.h.
63253         (Depends-on): Add ansi-c++-opt.
63254         (Makefile.am): Arrange to compile and run test-math-c++.
63255         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
63257         Tests of module 'locale' in C++ mode.
63258         * tests/test-locale-c++.cc: New file.
63259         * modules/locale-tests (Files): Add it and tests/signature.h.
63260         (Depends-on): Add ansi-c++-opt.
63261         (Makefile.am): Arrange to compile and run test-locale-c++.
63262         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
63263         gl_MODULE_INDICATOR.
63265         Tests of module 'langinfo' in C++ mode.
63266         * tests/test-langinfo-c++.cc: New file.
63267         * modules/langinfo-tests (Files): Add it and tests/signature.h.
63268         (Depends-on): Add ansi-c++-opt.
63269         (Makefile.am): Arrange to compile and run test-langinfo-c++.
63270         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
63271         gl_MODULE_INDICATOR.
63273         Tests of module 'iconv-h' in C++ mode.
63274         * tests/test-iconv-h-c++.cc: New file.
63275         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
63276         (Depends-on): Add ansi-c++-opt.
63277         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
63279         Tests of module 'glob' in C++ mode.
63280         * tests/test-glob-c++.cc: New file.
63281         * modules/glob-tests (Files): Add it.
63282         (Depends-on): Add ansi-c++-opt.
63283         (Makefile.am): Arrange to compile and run test-glob-c++.
63285         Tests of module 'fcntl-h' in C++ mode.
63286         * tests/test-fcntl-h-c++.cc: New file.
63287         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
63288         (Depends-on): Add ansi-c++-opt.
63289         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
63290         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
63291         gl_MODULE_INDICATOR.
63293         Tests of module 'dirent' in C++ mode.
63294         * tests/test-dirent-c++.cc: New file.
63295         * modules/dirent-tests (Files): Add it and tests/signature.h.
63296         (Depends-on): Add ansi-c++-opt.
63297         (Makefile.am): Arrange to compile and run test-dirent-c++.
63298         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
63299         gl_MODULE_INDICATOR.
63301         New module 'ansi-c++-opt'.
63302         * modules/ansi-c++-opt: New file.
63303         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
63305         Document C++ namespace mode.
63306         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
63308         wctype: Avoid #define replacements in C++ mode.
63309         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
63310         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
63311         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
63312         In C++, define a namespaced alias symbol.
63313         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
63314         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
63315         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
63316         rule.
63318         wchar: Avoid #define replacements in C++ mode.
63319         * lib/wchar.in.h: Include c++defs.h.
63320         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
63321         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
63322         symbol.
63323         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
63324         * modules/wchar (Depends-on): Add c++defs.
63325         (Makefile.am): Update wchar.h rule.
63327         unistd: Avoid #define replacements in C++ mode.
63328         * lib/unistd.in.h: Include c++defs.h.
63329         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
63330         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
63331         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
63332         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
63333         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
63334         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
63335         symbol.
63336         (environ): Update.
63337         * modules/unistd (Depends-on): Add c++defs.
63338         (Makefile.am): Update unistd.h rule.
63340         time: Avoid #define replacements in C++ mode.
63341         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
63342         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
63343         define a namespaced alias symbol.
63344         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
63345         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
63346         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
63347         * modules/time (Depends-on): Add c++defs, warn-on-use.
63348         (Makefile.am): Update time.h rule.
63349         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
63350         * modules/nanosleep (configure.ac): Likewise.
63351         * modules/strptime (configure.ac): Likewise.
63352         * modules/timegm (configure.ac): Likewise.
63354         sys_time: Avoid #define replacements in C++ mode.
63355         * lib/sys_time.in.h: Include c++defs.h.
63356         (gettimeofday): In C++, define a namespaced alias symbol.
63357         * modules/sys_time (Depends-on): Add c++defs.
63358         (Makefile.am): Update sys/time.h rule.
63360         sys_stat: Avoid #define replacements in C++ mode.
63361         * lib/sys_stat.in.h: Include c++defs.h.
63362         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
63363         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
63364         namespaced alias symbol.
63365         In C++, define a namespaced alias symbol.
63366         * modules/sys_stat (Depends-on): Add c++defs.
63367         (Makefile.am): Update sys/stat.h rule.
63369         sys_socket: Avoid #define replacements in C++ mode.
63370         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
63371         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
63372         definitions also when the system has a <sys/socket.h>.
63373         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
63374         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
63375         In C++, define a namespaced alias symbol.
63376         * modules/sys_socket (Depends-on): Add c++defs.
63377         (Makefile.am): Update sys/socket.h rule.
63379         sys_select: Avoid #define replacements in C++ mode.
63380         * lib/sys_select.in.h: Include c++defs.h. Enable the function
63381         definitions also when the system has a <sys/select.h>.
63382         (select): In C++, define a namespaced alias symbol.
63383         * modules/sys_select (Depends-on): Add c++defs.
63384         (Makefile.am): Update sys/select.h rule.
63386         sys_ioctl: Avoid #define replacements in C++ mode.
63387         * lib/sys_ioctl.in.h: Include c++defs.h.
63388         (ioctl): In C++, define a namespaced alias symbol.
63389         * modules/sys_ioctl (Depends-on): Add c++defs.
63390         (Makefile.am): Update sys/ioctl.h rule.
63392         string: Avoid #define replacements in C++ mode.
63393         * lib/string.in.h: Include c++defs.h.
63394         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
63395         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
63396         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
63397         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
63398         strsignal, strverscmp): In C++, define a namespaced alias symbol.
63399         * modules/string (Depends-on): Add c++defs.
63400         (Makefile.am): Update string.h rule.
63402         stdlib: Avoid #define replacements in C++ mode.
63403         * lib/stdlib.in.h: Include c++defs.h.
63404         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
63405         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
63406         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
63407         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
63408         symbol.
63409         * modules/stdlib (Depends-on): Add c++defs.
63410         (Makefile.am): Update stdlib.h rule.
63412         stdio: Avoid #define replacements in C++ mode.
63413         * lib/stdio.in.h: Include c++defs.h.
63414         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
63415         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
63416         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
63417         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
63418         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
63419         namespaced alias symbol.
63420         * modules/stdio (Depends-on): Add c++defs.
63421         (Makefile.am): Update stdio.h rule.
63423         spawn: Avoid #define replacements in C++ mode.
63424         * lib/spawn.in.h: Include c++defs.h.
63425         (posix_spawn, posix_spawnp, posix_spawnattr_init,
63426         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
63427         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
63428         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
63429         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
63430         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
63431         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
63432         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
63433         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
63434         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
63435         In C++, define a namespaced alias symbol.
63436         * modules/spawn (Depends-on): Add c++defs.
63437         (Makefile.am): Update spawn.h rule.
63439         signal: Avoid #define replacements in C++ mode.
63440         * lib/signal.in.h: Include c++defs.h.
63441         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
63442         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
63443         namespaced alias symbol.
63444         * modules/signal (Depends-on): Add c++defs.
63445         (Makefile.am): Update signal.h rule.
63447         search: Avoid #define replacements in C++ mode.
63448         * lib/search.in.h: Include c++defs.h.
63449         (_gl_search_compar_fn, _gl_search_action_fn): New types.
63450         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
63451         symbol.
63452         * modules/search (Depends-on): Add c++defs.
63453         (Makefile.am): Update search.h rule.
63455         math: Avoid #define replacements in C++ mode.
63456         * lib/math.in.h: Include c++defs.h.
63457         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
63458         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
63459         trunc, truncl): In C++, define a namespaced alias symbol.
63460         * modules/math (Depends-on): Add c++defs.
63461         (Makefile.am): Update math.h rule.
63463         locale: Avoid #define replacements in C++ mode.
63464         * lib/locale.in.h: Include c++defs.h.
63465         (duplocale): In C++, define a namespaced alias symbol.
63466         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
63467         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
63468         * modules/locale (Depends-on): Add c++defs.
63469         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
63471         langinfo: Avoid #define replacements in C++ mode.
63472         * lib/langinfo.in.h: Include c++defs.h.
63473         (nl_langinfo): In C++, define a namespaced alias symbol.
63474         * modules/langinfo (Depends-on): Add c++defs.
63475         (Makefile.am): Update langinfo.h rule.
63477         iconv-h: Avoid #define replacements in C++ mode.
63478         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
63479         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
63480         symbol.
63481         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
63482         whenever iconv is present.
63483         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
63484         (Makefile.am): Update iconv.h rule.
63486         glob: Avoid #define replacements in C++ mode.
63487         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
63488         (_gl_glob_errfunc_fn): New type.
63489         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
63490         symbol.
63491         * modules/glob (Depends-on): Add c++defs, warn-on-use.
63492         (Makefile.am): Update glob.h rule.
63494         fcntl-h: Avoid #define replacements in C++ mode.
63495         * lib/fcntl.in.h: Include c++defs.h.
63496         (fcntl, open, openat): In C++, define a namespaced alias symbol.
63497         * modules/fcntl-h (Depends-on): Add c++defs.
63498         (Makefile.am): Update fcntl.h rule.
63500         dirent: Avoid #define replacements in C++ mode.
63501         * lib/dirent.in.h: Include c++defs.h.
63502         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
63503         namespaced alias symbol.
63504         (dirfd): Update declaration.
63505         * modules/dirent (Depends-on): Add c++defs.
63506         (Makefile.am): Update dirent.h rule.
63508         ctype: Make it usable in C++ code.
63509         * lib/ctype.in.h: Include c++defs.h.
63510         (isblank): Declare as extern "C".
63511         * modules/ctype (Depends-on): Add c++defs.
63512         (Makefile.am): Update ctype.h rule.
63514         New module 'c++defs'.
63515         * modules/c++defs: New file.
63516         * build-aux/c++defs.h: New file.
63517         Reported by John W. Eaton <jwe@gnu.org>.
63519 2010-03-07  Bruno Haible  <bruno@clisp.org>
63521         logb: Provide missing declaration for Cygwin.
63522         * lib/math.in.h (logb): New declaration.
63523         * m4/logb.m4: New file.
63524         * modules/logb (Files): Add m4/logb.m4.
63525         (Depends-on): Add math.
63526         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
63527         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
63528         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
63529         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
63530         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
63532 2010-03-07  Bruno Haible  <bruno@clisp.org>
63534         Fix test-cond link error.
63535         * tests/test-cond.c: Include <stdio.h>.
63537 2010-03-07  Bruno Haible  <bruno@clisp.org>
63539         Fix test-dirent-safer link error.
63540         * modules/dirent-safer-tests (Makefile.am): Define
63541         test_dirent_safer_LDADD.
63543 2010-03-07  Bruno Haible  <bruno@clisp.org>
63545         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
63546         among default module list.
63548 2010-03-07  Bruno Haible  <bruno@clisp.org>
63550         Fix link error on platforms with GNU libiconv.
63551         * modules/unistr/u8-strcoll-tests (Makefile): Define
63552         test_u8_strcoll_LDADD.
63553         * modules/unistr/u16-strcoll-tests (Makefile): Define
63554         test_u16_strcoll_LDADD.
63555         * modules/unistr/u32-strcoll-tests (Makefile): Define
63556         test_u32_strcoll_LDADD.
63558 2010-03-07  Bruno Haible  <bruno@clisp.org>
63560         Use POSIX declarations for socket functions.
63561         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
63562         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
63563         rpl_sendto): Change declaration to match POSIX.
63564         * lib/connect.c (rpl_connect): Likewise.
63565         * lib/accept.c (rpl_accept): Likewise.
63566         * lib/bind.c (rpl_bind): Likewise.
63567         * lib/getpeername.c (rpl_getpeername): Likewise.
63568         * lib/getsockname.c (rpl_getsockname): Likewise.
63569         * lib/recv.c (rpl_recv): Likewise.
63570         * lib/send.c (rpl_send): Likewise.
63571         * lib/recvfrom.c (rpl_recvfrom): Likewise.
63572         * lib/sendto.c (rpl_sendto): Likewise.
63574 2010-03-06  Bruno Haible  <bruno@clisp.org>
63576         Clarify access, euidaccess, faccessat.
63577         * doc/posix-functions/faccessat.texi: Mention security problem under
63578         "Other problems", not "Portability problems".
63579         * doc/posix-functions/access.texi: Likewise. Mention a related security
63580         problem.
63581         * doc/glibc-functions/euidaccess.texi: Mention security problems.
63582         * lib/euidaccess.c: Add comments about platforms.
63583         * lib/unistd.in.h (access, euidaccess): Add warnings.
63585 2010-03-07  Bruno Haible  <bruno@clisp.org>
63587         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
63588         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
63589         (POSIX_SPAWN_SETSCHEDULER): Likewise.
63590         (POSIX_SPAWN_USEVFORK): Define in a way that works when
63591         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
63592         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
63593         declare when POSIX_SPAWN_SETSCHEDULER is zero.
63594         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
63595         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
63596         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
63597         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
63598         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
63599         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
63600         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
63601         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
63602         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
63603         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
63604         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
63605         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
63606         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
63607         Likewise.
63608         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
63609         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
63610         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
63611         Likewise.
63612         * tests/test-spawn.c (main): Make it work when
63613         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
63615 2010-03-07  Bruno Haible  <bruno@clisp.org>
63617         Fix incorrect Makefile.am generation in German locale.
63618         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63619         Execute sed command with character range in C locale.
63621 2010-03-06  Bruno Haible  <bruno@clisp.org>
63623         Tests for module 'iconv-h'.
63624         * modules/iconv-h-tests: New file.
63625         * tests/test-iconv-h.c: New file.
63627         New module 'iconv-h'.
63628         * modules/iconv-h: New file.
63629         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
63630         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
63631         (configure.ac): Remove gl_ICONV_H.
63632         (Makefile.am): Remove rule for iconv.h.
63634 2010-03-06  Bruno Haible  <bruno@clisp.org>
63636         More consistent naming of *.m4 files.
63637         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
63638         * modules/wctype (Files): Update.
63640         More consistent naming of *.m4 files.
63641         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
63642         * modules/wchar (Files): Update.
63644 2010-03-06  Jim Meyering  <meyering@redhat.com>
63646         euidaccess: relax license to LGPLv2+
63647         * modules/euidaccess (License): Relax to LGPLv2+.
63649 2010-03-06  Bruno Haible  <bruno@clisp.org>
63651         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
63652         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
63653         (Makefile.am): Augment lib_SOURCES instead.
63655 2010-03-04  Jim Meyering  <meyering@redhat.com>
63657         utime: remove obsolete module
63658         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
63659         unnecessary for years, and has been marked as obsolete for 10 months.
63660         * modules/utime: Remove file.
63661         * lib/utime.c: Remove file.
63662         * m4/utime.m4: Remove file.
63663         * m4/utimes-null.m4: Remove file.
63664         * doc/posix-functions/utime.texi (utime): Remove reference to
63665         the module.  Move the sole "fixed by gnulib" item into the
63666         "problems not fixed by Gnulib" list.
63667         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
63669 2010-03-05  Simon Josefsson  <simon@josefsson.org>
63671         * modules/exit (License): Relax license to LGPLv2+.
63672         (Status): Mark as obsolete.
63673         * NEWS: Mention deprecated 'exit' module.
63674         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
63675         of now obsolete 'exit'.
63677 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63679         fts-lgpl: remove unused module
63680         * modules/fts-lgpl: Remove.
63681         * MODULES.html.sh (func_all_modules): Adjust.
63682         * check-module (find_included_lib_files): Adjust.
63683         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
63685 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
63687         copy-acl: enhance Solaris ACL error handling
63688         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
63689         * lib/set-mode-acl.c (qset_acl): Likewise.
63691 2010-03-02  Bruno Haible  <bruno@clisp.org>
63693         spawn: Don't override the system defined values on FreeBSD 8.
63694         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
63695         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
63696         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
63697         if HAVE_POSIX_SPAWN is 1.
63698         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
63700 2010-03-01  Bruno Haible  <bruno@clisp.org>
63702         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
63703         regarding Automake.
63705 2010-02-25  Bruno Haible  <bruno@clisp.org>
63707         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
63708         * gnulib-tool: Define 'echo' as a function only before the ksh alias
63709         setting, not afterwards.
63710         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
63712 2010-02-24  Eric Blake  <eblake@redhat.com>
63714         bootstrap, git-version-gen: use timestamp
63715         * build-aux/git-version-gen (scriptversion): Force UTC.
63716         * build-aux/bootstrap (scriptversion): New variable.
63718         bootstrap: allow older git
63719         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
63720         older than 1.6.4.  Requested by the libvirt project.
63722 2010-02-23  Eric Blake  <eblake@redhat.com>
63724         warn-on-use: work with old autoconf
63725         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
63726         AS_VAR semantics of autoconf 2.60.
63727         Reported by Bruno Haible.
63729         bootstrap: improve some comments
63730         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
63731         clarification comments.
63733         gettimeofday: provide correct function
63734         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
63735         when replacement is declared, otherwise provide gettimeofday.
63736         Reported by Michael Goffioul.
63738 2010-02-23  Jim Meyering  <meyering@redhat.com>
63740         lib-ignore: relax license to "unlimited", not LGPLv2+
63741         * modules/lib-ignore (License): Relax to "unlimited".
63743 2010-02-23  Jim Meyering  <meyering@redhat.com>
63745         lib-ignore: relax license to LGPLv2+
63746         * modules/lib-ignore (License): Relax to LGPLv2+.
63748 2010-02-22  Eric Blake  <eblake@redhat.com>
63750         lseek: avoid bash 3.2 broken pipe bug
63751         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
63752         warning from bash 3.2.
63753         Reported by Ben Pfaff, with analysis from Bruno Haible.
63755         bootstrap: support non-FSF copyright holder
63756         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
63757         bootstrap.conf override of COPYRIGHT_HOLDER.
63758         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
63760         bootstrap: interoperate with gettext 0.14.1
63761         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
63763         bootstrap: allow for alternate submodule location
63764         * build-aux/bootstrap (gnulib_path): New variable; use instead of
63765         hardcoding submodule location.
63766         (gnulib_mk): Allow direct use of Makefile.am.
63768         bootstrap: use GNULIB_SRCDIR to reduce disk usage
63769         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
63770         rather than reconfiguring where the submodule points.
63772         gettimeofday: restore support for platforms that lack function
63773         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
63774         replacement if function is missing.
63775         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
63776         * modules/sys_time (Makefile.am): Substitute it.
63777         * lib/sys_time.in.h (gettimeofday): Check it.
63778         Reported by Michael Goffioul.
63780 2010-02-21  Bruno Haible  <bruno@clisp.org>
63782         * lib/stdio.in.h (obstack_printf): Fix typo.
63784 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
63786         vc-list-files: use bzr ls's -R option
63787         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
63788         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
63790 2010-02-21  Jim Meyering  <meyering@redhat.com>
63792         init.sh: fix EXEEXT shims to work also for names like test-prog
63793         * tests/init.sh: Re-exec a better shell, when needed.
63794         If the current shell lacks support for posix $(...), an init.sh-using
63795         test will now try to find a shell that supports that.  If EXEEXT is
63796         nonempty, we also require support for hyphen-in-alias-name and shell
63797         substitutions like ${var#glob}.  Failure to find such a shell results
63798         in a skipped test.
63800 2010-02-21  Bruno Haible  <bruno@clisp.org>
63802         Really work around "broken pipe" error message from bash 3.2.
63803         * gnulib-tool (func_reset_sigpipe): Remove function.
63804         (echo): In bash 3.2, define to a function that uses printf.
63805         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
63807 2010-02-20  Bruno Haible  <bruno@clisp.org>
63809         Restore support for automake 1.9.6 with autoconf 2.61.
63810         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
63811         Reported by James Youngman <jay@gnu.org>.
63813 2010-02-20  Bruno Haible  <bruno@clisp.org>
63815         Improve *printf warning condition.
63816         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
63817         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
63818         and the function is overridden due to SIGPIPE emulation.
63820 2010-02-20  Bruno Haible  <bruno@clisp.org>
63822         * lib/stdio.in.h: Tweak comments.
63824 2010-02-19  Bruno Haible  <bruno@clisp.org>
63826         Make it easier to find modules. New gnulib-tool option '--find'.
63827         * gnulib-tool: New option --find.
63828         (func_usage): Document it.
63829         (func_sanitize_modulelist): New function, extracted from
63830         func_all_modules.
63831         (func_all_modules): Invoke it.
63832         * doc/gnulib-tool.texi (Which modules?): New node.
63834 2010-02-18  Markus Duft  <mduft@gentoo.org>  (tiny change)
63836         * lib/sys_select.in.h: Provide select replacement even if
63837         sys/select.h exists on a system, for Interix.
63839 2010-02-18  Jim Meyering  <meyering@redhat.com>
63841         init.sh: don't use $(...) just yet
63842         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
63843         to accommodate e.g., Solaris' /bin/sh.
63845 2010-02-17  Bruno Haible  <bruno@clisp.org>
63847         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
63848         Reported by Ludovic Courtès <ludo@gnu.org>.
63850 2010-02-16  Simon Josefsson  <simon@josefsson.org>
63852         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
63853         linking with -lintl.
63855 2010-02-17  Simon Josefsson  <simon@josefsson.org>
63857         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
63858         if not provided by the system's netdb.h.  Reported by
63859         ludo@gnu.org (Ludovic Courtès).
63861 2010-02-15  Jim Meyering  <meyering@redhat.com>
63863         init.sh: improve portability and efficiency
63864         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
63865         "dummy" in a for loop.
63866         Use '!', not '^' to select the complement of a character set used
63867         in a "case" statement.
63868         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
63869         Suggestions from Eric Blake.
63871         init.sh: automatically accommodate programs with the .exe suffix
63872         Automatically arrange for an invocation of "prog" to execute the
63873         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
63874         may use the simpler "prog", yet still work when built on a system
63875         that requires specifying the added suffix.
63876         Do this by constructing a function named "prog" that invokes
63877         "prog.exe" for each .exe file in selected directories.
63878         * tests/init.sh (find_exe_basenames_): New function.
63879         (create_exe_shim_functions_): New function.
63880         (path_prepend_): Use it.
63882         maint.mk: mark syntax-check sc_*.m rules as .PHONY
63883         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
63884         "make -t syntax-check" doesn't create a ton of sc_*.m files.
63886 2010-02-14  Jim Meyering  <meyering@redhat.com>
63888         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
63889         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
63890         (sc_prohibit_hash_pjw_without_use): New rule.
63892         maint.mk: allow the default upload destination dir to be overridden
63893         * top/maint.mk (upload_dest_dir_): Define with a default that
63894         preserves the status quo.
63895         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
63896         Reported by Peter Simons.
63898         maint.mk: prohibit inclusion of "hash.h" without_use
63899         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
63901 2010-02-10  Jim Meyering  <meyering@redhat.com>
63903         maint.mk: prohibit inclusion of "ignore-value.h" without_use
63904         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
63906 2010-02-09  Eric Blake  <ebb9@byu.net>
63907         and Bruno Haible  <bruno@clisp.org>
63909         obstack-printf-posix: ensure declaration
63910         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
63911         extracted from gl_FUNC_OBSTACK_PRINTF.
63912         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
63913         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
63914         Likewise.
63915         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
63916         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
63917         0.
63919 2010-02-08  Bruno Haible  <bruno@clisp.org>
63921         gnulib-tool: Fix typo in 2010-02-07 commit.
63922         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
63923         Reported by Eric Blake.
63925 2010-02-07  Bruno Haible  <bruno@clisp.org>
63927         gnulib-tool: Fix up caching patches.
63928         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
63929         option --no-cache. Use associative arrays when supported by the shell.
63930         (sed_comments): New variable.
63931         (modcache): Renamed from do_cache.
63932         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
63933         abbreviate unnecessarily.
63934         (have_associative): New variable.
63935         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
63936         way also for ksh and zsh.
63937         (func_init_sed_convert_to_cache_statements): New function, extracted
63938         from func_cache_lookup_module. Add support for associative arrays.
63939         Don't set the c_MODULE_cached variable here. Ignore all lines before
63940         the first field header. Remove only the final newline, not all trailing
63941         newlines. Support empty fields correctly. Limit the use of 'eval' to
63942         assignments.
63943         (func_get_description, func_get_status, func_get_notice,
63944         func_get_applicability, func_get_filelist, func_get_dependencies,
63945         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
63946         func_get_automake_snippet, func_get_include_directive,
63947         func_get_link_directive, func_get_license, func_get_maintainer):
63948         Update documentation. List the unoptimized code first. Add support for
63949         associative arrays. Limit the use of 'eval' to assignments.
63950         (func_get_applicability): Undo stylistic pessimisations.
63951         (func_get_automake_snippet, func_get_include_directive): Reduce code
63952         duplication.
63953         (func_modules_transitive_closure, func_modules_add_dummy,
63954         func_modules_notice, func_modules_to_filelist, func_add_file,
63955         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
63956         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
63957         func_create_testdir, func_create_megatestdir): Update documentation.
63959 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63961         * gnulib-tool (func_cache_lookup_module): Store the module name
63962         belonging to the cache variable; error out if two different
63963         module names map to the same cache variable name.
63965 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63967         gnulib-tool: Make caching optional.
63968         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
63969         Update matching short versions of --no-changelog.
63970         (func_usage): Update.
63971         (sed_extract_cache_prog): Renamed from ...
63972         (sed_extract_prog): ... this; revert to old extraction script.
63973         (func_get_description, func_get_status)
63974         (func_get_notice, func_get_applicability, func_get_filelist)
63975         (func_get_dependencies, func_get_autoconf_early_snippet)
63976         (func_get_autoconf_snippet, func_get_automake_snippet)
63977         (func_get_include_directive, func_get_link_directive)
63978         (func_get_license, func_get_maintainer): If $do_cache is false,
63979         use old, non-caching extraction scripts.
63980         Suggestion by Bruno Haible.
63982 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63984         gnulib-tool: cache module metainformation.
63985         * gnulib-tool (sed_extract_prog): Match newline before each
63986         header, and rewrite header to a shell variable suffix.
63987         (func_cache_var, func_cache_lookup_module): New functions,
63988         to turn a module name into a cache variable prefix, and to
63989         look up and cache module metainformation.
63990         (func_get_description, func_get_status)
63991         (func_get_notice, func_get_applicability, func_get_filelist)
63992         (func_get_dependencies, func_get_autoconf_early_snippet)
63993         (func_get_autoconf_snippet, func_get_automake_snippet)
63994         (func_get_include_directive, func_get_link_directive)
63995         (func_get_license, func_get_maintainer): Use
63996         func_cache_lookup_module.
63998 2010-02-07  Bruno Haible  <bruno@clisp.org>
64000         fnctl: Fix missing dependency.
64001         * modules/fcntl (Depends-on): Add getdtablesize.
64002         Reported by John W. Eaton <jwe@gnu.org>.
64004 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
64006         Argp: fix recognition of short alias options.
64008         * lib/argp-parse.c (convert_options): Fix improper use of
64009         `|' between character values.
64010         * tests/test-argp.c (group1_option): New alias option
64011         --read (-r).
64012         (group1_parser): Special handling for 'r'.
64013         (test15): New test case.
64014         (test_fun): Add test15.
64015         * tests/test-argp-2.sh: Update expected --help and --usage
64016         outputs.
64018 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
64020         * tests/test-argp.c: Fix indentation.
64022 2010-02-04  Eric Blake  <ebb9@byu.net>
64024         gettimeofday: expose type of second argument
64025         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
64026         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
64027         * tests/test-gettimeofday.c: Use it to silence warning.
64028         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
64029         the issue.
64031 2010-02-03  Jim Meyering  <meyering@redhat.com>
64033         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
64034         * lib/regcomp.c (TYPE_SIGNED): Define.
64035         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
64037         regcomp.c: avoid a new -Wshadow warning
64038         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
64040 2010-02-01  Jim Meyering  <meyering@redhat.com>
64042         removing useless parentheses in cpp #define directives
64043         For motivation, see commit c0221df4, "define STREQ(a,b)
64044         consistently, removing useless parentheses"
64045         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
64046         * lib/mountlist.c (MNT_IGNORE): Likewise.
64047         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
64049 2010-02-01  Eric Blake  <ebb9@byu.net>
64051         sys_time: use link-warning
64052         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
64053         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
64054         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
64055         * modules/sys_time (Depends-on): Add warn-on-use.
64056         (Makefile.am): Always build replacement.
64057         (configure.ac): Update substitutions.
64058         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
64059         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
64060         bother with SYS_TIME_H.
64061         * modules/gettimeofday (configure.ac): Declare indicator.
64062         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
64063         in use.
64065         closein-tests: silence compiler warning
64066         * tests/test-closein.c (main): Ignore fread result.
64067         * modules/closein-tests (Depends-on): Add ignore-value.
64069         tests: silence warning about system return
64070         * tests/test-areadlink-with-size.c (main): Ignore system result.
64071         * tests/test-areadlink.c (main): Likewise.
64072         * tests/test-areadlinkat-with-size.c (main): Likewise.
64073         * tests/test-areadlinkat.c (main): Likewise.
64074         * tests/test-canonicalize-lgpl.c (main): Likewise.
64075         * tests/test-canonicalize.c (main): Likewise.
64076         * tests/test-chown.c (main): Likewise.
64077         * tests/test-fchownat.c (main): Likewise.
64078         * tests/test-fdutimensat.c (main): Likewise.
64079         * tests/test-fstatat.c (main): Likewise.
64080         * tests/test-futimens.c (main): Likewise.
64081         * tests/test-lchown.c (main): Likewise.
64082         * tests/test-link.c (main): Likewise.
64083         * tests/test-linkat.c (main): Likewise.
64084         * tests/test-lstat.c (main): Likewise.
64085         * tests/test-mkdir.c (main): Likewise.
64086         * tests/test-mkdirat.c (main): Likewise.
64087         * tests/test-mkfifo.c (main): Likewise.
64088         * tests/test-mkfifoat.c (main): Likewise.
64089         * tests/test-mknod.c (main): Likewise.
64090         * tests/test-readlink.c (main): Likewise.
64091         * tests/test-remove.c (main): Likewise.
64092         * tests/test-rename.c (main): Likewise.
64093         * tests/test-renameat.c (main): Likewise.
64094         * tests/test-rmdir.c (main): Likewise.
64095         * tests/test-symlink.c (main): Likewise.
64096         * tests/test-symlinkat.c (main): Likewise.
64097         * tests/test-unlink.c (main): Likewise.
64098         * tests/test-unlinkat.c (main): Likewise.
64099         * tests/test-utimens.c (main): Likewise.
64100         * tests/test-utimensat.c (main): Likewise.
64101         * modules/areadlink-tests (Depends-on): Add ignore-value.
64102         * modules/areadlink-with-size-tests (Depends-on): Likewise.
64103         * modules/areadlinkat-tests (Depends-on): Likewise.
64104         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
64105         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
64106         * modules/canonicalize-tests (Depends-on): Likewise.
64107         * modules/chown-tests (Depends-on): Likewise.
64108         * modules/fdutimensat-tests (Depends-on): Likewise.
64109         * modules/futimens-tests (Depends-on): Likewise.
64110         * modules/lchown-tests (Depends-on): Likewise.
64111         * modules/link-tests (Depends-on): Likewise.
64112         * modules/linkat-tests (Depends-on): Likewise.
64113         * modules/lstat-tests (Depends-on): Likewise.
64114         * modules/mkdir-tests (Depends-on): Likewise.
64115         * modules/mkfifo-tests (Depends-on): Likewise.
64116         * modules/mkfifoat-tests (Depends-on): Likewise.
64117         * modules/mknod-tests (Depends-on): Likewise.
64118         * modules/openat-tests (Depends-on): Likewise.
64119         * modules/readlink-tests (Depends-on): Likewise.
64120         * modules/remove-tests (Depends-on): Likewise.
64121         * modules/rename-tests (Depends-on): Likewise.
64122         * modules/renameat-tests (Depends-on): Likewise.
64123         * modules/rmdir-tests (Depends-on): Likewise.
64124         * modules/symlink-tests (Depends-on): Likewise.
64125         * modules/symlinkat-tests (Depends-on): Likewise.
64126         * modules/unlink-tests (Depends-on): Likewise.
64127         * modules/utimens-tests (Depends-on): Likewise.
64128         * modules/utimensat-tests (Depends-on): Likewise.
64130 2010-01-31  Bruno Haible  <bruno@clisp.org>
64132         Perform the same test for many <math.h> functions.
64133         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
64134         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
64135         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
64136         of gl_MATHFUNC.
64137         * modules/acos (configure.ac): Likewise.
64138         * modules/asin (configure.ac): Likewise.
64139         * modules/atan (configure.ac): Likewise.
64140         * modules/atan2 (configure.ac): Likewise.
64141         * modules/cbrt (configure.ac): Likewise.
64142         * modules/copysign (configure.ac): Likewise.
64143         * modules/cos (configure.ac): Likewise.
64144         * modules/cosh (configure.ac): Likewise.
64145         * modules/erf (configure.ac): Likewise.
64146         * modules/erfc (configure.ac): Likewise.
64147         * modules/exp (configure.ac): Likewise.
64148         * modules/fmod (configure.ac): Likewise.
64149         * modules/hypot (configure.ac): Likewise.
64150         * modules/j0 (configure.ac): Likewise.
64151         * modules/j1 (configure.ac): Likewise.
64152         * modules/jn (configure.ac): Likewise.
64153         * modules/lgamma (configure.ac): Likewise.
64154         * modules/log (configure.ac): Likewise.
64155         * modules/log10 (configure.ac): Likewise.
64156         * modules/log1p (configure.ac): Likewise.
64157         * modules/pow (configure.ac): Likewise.
64158         * modules/remainder (configure.ac): Likewise.
64159         * modules/sin (configure.ac): Likewise.
64160         * modules/sinh (configure.ac): Likewise.
64161         * modules/tan (configure.ac): Likewise.
64162         * modules/tanh (configure.ac): Likewise.
64163         * modules/y0 (configure.ac): Likewise.
64164         * modules/y1 (configure.ac): Likewise.
64165         * modules/yn (configure.ac): Likewise.
64166         Suggested by Paolo Bonzini.
64168 2010-01-31  Bruno Haible  <bruno@clisp.org>
64170         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
64172 2010-01-31  Bruno Haible  <bruno@clisp.org>
64174         Work around getdelim() bug on FreeBSD 8.0.
64175         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
64176         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
64177         not work.
64178         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
64179         is 1.
64180         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
64181         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
64182         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
64183         a non-zero size.
64184         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
64186 2010-01-31  Bruno Haible  <bruno@clisp.org>
64188         Work around getline() bug on FreeBSD 8.0.
64189         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
64190         and a non-zero size.
64191         * tests/test-getline.c (main): Likewise.
64192         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
64193         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
64195 2010-01-28  Eric Blake  <ebb9@byu.net>
64197         regex: fix build failure
64198         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
64199         platforms.
64201 2010-01-28  Jim Meyering  <meyering@redhat.com>
64203         regex: do not ignore memory allocation failure
64204         * lib/regex_internal.c (create_cd_newstate): Detect
64205         re_node_set_init_copy failure.   Extracted from glibc commit
64206         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
64208         regex: sync more white-space changes from libc
64209         * lib/regex_internal.c: White-space only changes.
64210         * lib/regexec.c: Likewise.
64212         regex: add many uses of __attribute_warn_unused_result__
64213         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
64214         * lib/regexec.c: Likewise.
64215         Extracted from a messy glibc commit.
64217         regcomp.c: spelling and merge-artifact from glibc
64218         * lib/regcomp.c: Merge remainder of glibc's
64219         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
64221         regcomp.c: sync white-space changes from glibc
64222         * lib/regcomp.c: Merge to accommodate white space
64223         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
64225         regcomp.c: do not ignore internal return values
64226         * lib/regcomp.c: Do not ignore internal return values.
64227         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
64228         but without its white-space changes and spelling fixes.
64230         regex_internal.h: define __attribute_warn_unused_result__
64231         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
64233         maint: add a syntax-check rule to check for vulnerable Makefile.in
64234         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
64236 2010-01-27  Jim Meyering  <meyering@redhat.com>
64238         ncftpput-ftp: clean up spaces
64239         * build-aux/ncftpput-ftp: Make Copyright line consistent.
64240         Remove trailing blanks.
64242 2010-01-27  Simon Josefsson  <simon@josefsson.org>
64244         * build-aux/git-version-gen: Fix copyright statement.
64245         * build-aux/gnupload: Likewise.
64246         * tests/test-arcfour.c: Likewise.
64247         * tests/test-arctwo.c: Likewise.
64248         * tests/test-count-one-bits.c: Likewise.
64249         * tests/test-crc.c: Likewise.
64250         * tests/test-des.c: Likewise.
64251         * tests/test-gc-arcfour.c: Likewise.
64252         * tests/test-gc-arctwo.c: Likewise.
64253         * tests/test-gc-des.c: Likewise.
64254         * tests/test-gc-hmac-md5.c: Likewise.
64255         * tests/test-gc-hmac-sha1.c: Likewise.
64256         * tests/test-gc-md2.c: Likewise.
64257         * tests/test-gc-md4.c: Likewise.
64258         * tests/test-gc-md5.c: Likewise.
64259         * tests/test-gc-pbkdf2-sha1.c: Likewise.
64260         * tests/test-gc-rijndael.c: Likewise.
64261         * tests/test-gc-sha1.c: Likewise.
64262         * tests/test-gc.c: Likewise.
64263         * tests/test-gethostname.c: Likewise.
64264         * tests/test-gettimeofday.c: Likewise.
64265         * tests/test-hash.c: Likewise.
64266         * tests/test-hmac-md5.c: Likewise.
64267         * tests/test-hmac-sha1.c: Likewise.
64268         * tests/test-md2.c: Likewise.
64269         * tests/test-md4.c: Likewise.
64270         * tests/test-md5.c: Likewise.
64271         * tests/test-memchr.c: Likewise.
64272         * tests/test-memchr2.c: Likewise.
64273         * tests/test-memcmp.c: Likewise.
64274         * tests/test-memmem.c: Likewise.
64275         * tests/test-memrchr.c: Likewise.
64276         * tests/test-rawmemchr.c: Likewise.
64277         * tests/test-read-file.c: Likewise.
64278         * tests/test-rijndael.c: Likewise.
64279         * tests/test-sockets.c: Likewise.
64280         * tests/test-strchrnul.c: Likewise.
64281         * tests/test-strstr.c: Likewise.
64282         * tests/test-strtod.c: Likewise.
64283         * build-aux/ncftpput-ftp: Likewise.
64285 2010-01-26  Eric Blake  <ebb9@byu.net>
64287         ignore-value: update recommended header name
64288         * modules/ignore-value (Include): Only use <> for headers that
64289         exist in glibc.
64291 2010-01-26  Jim Meyering  <meyering@redhat.com>
64293         test-userspec.c: avoid compiler warnings
64294         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
64295         and "initialization discards qualifiers..." warnings.
64296         Put the first "uid" in its own scope, and make char* members "const".
64298 2010-01-25  Bruno Haible  <bruno@clisp.org>
64300         gnulib-tool: Make warning diagnostics consistent.
64301         * gnulib-tool (func_warning): New function.
64302         Use it everywhere where gnulib-tool produces output to stderr and it is
64303         not a fatal error.
64305 2010-01-25  Bruno Haible  <bruno@clisp.org>
64307         Fix test dependencies.
64308         * modules/xstrtol-tests (Depends-on): Add inttypes.
64309         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
64311 2010-01-25  Pádraig Brady  <P@draigBrady.com>
64313         syntax-check: detect incorrect boolean macro values in config.h
64314         * modules/maintainer-makefile (configure.ac): Parameterize the location
64315         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
64316         The logic is from Eric Blake and the location indicated by Jim Meyering.
64317         Note the more natural CONFIG_HEADER name is prohibited by automake
64318         for backwards compatibility reasons.
64319         * top/maint.mk (sc_Wundef_boolean): New rule.
64321 2010-01-25  Jim Meyering  <meyering@redhat.com>
64323         bootstrap: detect MacOS 10.6's shasum, too
64324         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
64325         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
64327 2010-01-23  Jim Meyering  <meyering@redhat.com>
64329         xstrtoll: new module
64330         * modules/xstrtoll: New file.
64331         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
64332         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
64333         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
64334         ./configure fails if you use this module and lack "long long".
64335         * modules/xstrtoll-tests: New module.
64336         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
64337         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
64338         new init.sh-based test framework.
64340 2010-01-24  Bruno Haible  <bruno@clisp.org>
64342         Tests for module 'yn'.
64343         * modules/yn-tests: New file.
64344         * tests/test-yn.c: New file.
64346         Tests for module 'y1'.
64347         * modules/y1-tests: New file.
64348         * tests/test-y1.c: New file.
64350         Tests for module 'y0'.
64351         * modules/y0-tests: New file.
64352         * tests/test-y0.c: New file.
64354         Tests for module 'tanh'.
64355         * modules/tanh-tests: New file.
64356         * tests/test-tanh.c: New file.
64358         Tests for module 'tan'.
64359         * modules/tan-tests: New file.
64360         * tests/test-tan.c: New file.
64362         Tests for module 'sqrt'.
64363         * modules/sqrt-tests: New file.
64364         * tests/test-sqrt.c: New file.
64366         Tests for module 'sinh'.
64367         * modules/sinh-tests: New file.
64368         * tests/test-sinh.c: New file.
64370         Tests for module 'sin'.
64371         * modules/sin-tests: New file.
64372         * tests/test-sin.c: New file.
64374         Tests for module 'rint'.
64375         * modules/rint-tests: New file.
64376         * tests/test-rint.c: New file.
64378         Tests for module 'remainder'.
64379         * modules/remainder-tests: New file.
64380         * tests/test-remainder.c: New file.
64382         Tests for module 'pow'.
64383         * modules/pow-tests: New file.
64384         * tests/test-pow.c: New file.
64386         Tests for module 'nextafter'.
64387         * modules/nextafter-tests: New file.
64388         * tests/test-nextafter.c: New file.
64390         Tests for module 'modf'.
64391         * modules/modf-tests: New file.
64392         * tests/test-modf.c: New file.
64394         Tests for module 'logb'.
64395         * modules/logb-tests: New file.
64396         * tests/test-logb.c: New file.
64398         Tests for module 'log1p'.
64399         * modules/log1p-tests: New file.
64400         * tests/test-log1p.c: New file.
64402         Tests for module 'log10'.
64403         * modules/log10-tests: New file.
64404         * tests/test-log10.c: New file.
64406         Tests for module 'log'.
64407         * modules/log-tests: New file.
64408         * tests/test-log.c: New file.
64410         Tests for module 'lgamma'.
64411         * modules/lgamma-tests: New file.
64412         * tests/test-lgamma.c: New file.
64414         Tests for module 'ldexp'.
64415         * modules/ldexp-tests: New file.
64416         * tests/test-ldexp.c: New file.
64418         Tests for module 'jn'.
64419         * modules/jn-tests: New file.
64420         * tests/test-jn.c: New file.
64422         Tests for module 'j1'.
64423         * modules/j1-tests: New file.
64424         * tests/test-j1.c: New file.
64426         Tests for module 'j0'.
64427         * modules/j0-tests: New file.
64428         * tests/test-j0.c: New file.
64430         Tests for module 'hypot'.
64431         * modules/hypot-tests: New file.
64432         * tests/test-hypot.c: New file.
64434         Tests for module 'fmod'.
64435         * modules/fmod-tests: New file.
64436         * tests/test-fmod.c: New file.
64438         Tests for module 'fabs'.
64439         * modules/fabs-tests: New file.
64440         * tests/test-fabs.c: New file.
64442         Tests for module 'exp'.
64443         * modules/exp-tests: New file.
64444         * tests/test-exp.c: New file.
64446         Tests for module 'erfc'.
64447         * modules/erfc-tests: New file.
64448         * tests/test-erfc.c: New file.
64450         Tests for module 'erf'.
64451         * modules/erf-tests: New file.
64452         * tests/test-erf.c: New file.
64454         Tests for module 'cosh'.
64455         * modules/cosh-tests: New file.
64456         * tests/test-cosh.c: New file.
64458         Tests for module 'cos'.
64459         * modules/cos-tests: New file.
64460         * tests/test-cos.c: New file.
64462         Tests for module 'copysign'.
64463         * modules/copysign-tests: New file.
64464         * tests/test-copysign.c: New file.
64466         Tests for module 'cbrt'.
64467         * modules/cbrt-tests: New file.
64468         * tests/test-cbrt.c: New file.
64470         Tests for module 'atan2'.
64471         * modules/atan2-tests: New file.
64472         * tests/test-atan2.c: New file.
64474         Tests for module 'atan'.
64475         * modules/atan-tests: New file.
64476         * tests/test-atan.c: New file.
64478         Tests for module 'asin'.
64479         * modules/asin-tests: New file.
64480         * tests/test-asin.c: New file.
64482         Tests for module 'acos'.
64483         * modules/acos-tests: New file.
64484         * tests/test-acos.c: New file.
64486 2010-01-24  Bruno Haible  <bruno@clisp.org>
64488         Fix tests for common <math.h> functions.
64489         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
64490         code snippet that references the function pointer, rather than merely
64491         calling the function. Substitute the FUNC_LIBM variable.
64492         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
64493         * modules/acos (configure.ac): Likewise.
64494         * modules/asin (configure.ac): Likewise.
64495         * modules/atan (configure.ac): Likewise.
64496         * modules/atan2 (configure.ac): Likewise.
64497         * modules/cbrt (configure.ac): Likewise.
64498         * modules/copysign (configure.ac): Likewise.
64499         * modules/cos (configure.ac): Likewise.
64500         * modules/cosh (configure.ac): Likewise.
64501         * modules/erf (configure.ac): Likewise.
64502         * modules/erfc (configure.ac): Likewise.
64503         * modules/exp (configure.ac): Likewise.
64504         * modules/fabs (configure.ac): Likewise.
64505         * modules/fmod (configure.ac): Likewise.
64506         * modules/hypot (configure.ac): Likewise.
64507         * modules/j0 (configure.ac): Likewise.
64508         * modules/j1 (configure.ac): Likewise.
64509         * modules/jn (configure.ac): Likewise.
64510         * modules/ldexp (configure.ac): Likewise.
64511         * modules/lgamma (configure.ac): Likewise.
64512         * modules/log (configure.ac): Likewise.
64513         * modules/log10 (configure.ac): Likewise.
64514         * modules/log1p (configure.ac): Likewise.
64515         * modules/logb (configure.ac): Likewise.
64516         * modules/modf (configure.ac): Likewise.
64517         * modules/nextafter (configure.ac): Likewise.
64518         * modules/pow (configure.ac): Likewise.
64519         * modules/remainder (configure.ac): Likewise.
64520         * modules/rint (configure.ac): Likewise.
64521         * modules/sin (configure.ac): Likewise.
64522         * modules/sinh (configure.ac): Likewise.
64523         * modules/tan (configure.ac): Likewise.
64524         * modules/tanh (configure.ac): Likewise.
64525         * modules/y0 (configure.ac): Likewise.
64526         * modules/y1 (configure.ac): Likewise.
64527         * modules/yn (configure.ac): Likewise.
64529 2010-01-24  Bruno Haible  <bruno@clisp.org>
64531         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
64532         * tests/test-acosl.c (x): New variable.
64533         (main): Store argument in x and fetch it from x.
64534         * tests/test-asinl.c (x): New variable.
64535         (main): Store argument in x and fetch it from x.
64536         * tests/test-atanl.c (x): New variable.
64537         (main): Store argument in x and fetch it from x.
64538         * tests/test-cosl.c (x): New variable.
64539         (main): Store argument in x and fetch it from x.
64540         * tests/test-expl.c (x): New variable.
64541         (main): Store argument in x and fetch it from x.
64542         * tests/test-logl.c (x): New variable.
64543         (main): Store argument in x and fetch it from x.
64544         * tests/test-sinl.c (x): New variable.
64545         (main): Store argument in x and fetch it from x.
64546         * tests/test-sqrtl.c (x): New variable.
64547         (main): Store argument in x and fetch it from x.
64548         * tests/test-tanl.c (x): New variable.
64549         (main): Store argument in x and fetch it from x.
64551 2010-01-24  Bruno Haible  <bruno@clisp.org>
64553         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
64554         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
64555         assignments to the initial TESTS_ENVIRONMENT.
64556         * doc/gnulib.texi (Unit test modules): Document it.
64557         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
64558         TESTS_ENVIRONMENT.
64559         * modules/btowc-tests (Makefile.am): Likewise.
64560         * modules/c-stack-tests (Makefile.am): Likewise.
64561         * modules/c-strcase-tests (Makefile.am): Likewise.
64562         * modules/copy-file-tests (Makefile.am): Likewise.
64563         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
64564         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
64565         * modules/mbrtowc-tests (Makefile.am): Likewise.
64566         * modules/mbscasecmp-tests (Makefile.am): Likewise.
64567         * modules/mbscasestr-tests (Makefile.am): Likewise.
64568         * modules/mbschr-tests (Makefile.am): Likewise.
64569         * modules/mbscspn-tests (Makefile.am): Likewise.
64570         * modules/mbsinit-tests (Makefile.am): Likewise.
64571         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
64572         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
64573         * modules/mbspbrk-tests (Makefile.am): Likewise.
64574         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
64575         * modules/mbsrchr-tests (Makefile.am): Likewise.
64576         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
64577         * modules/mbsspn-tests (Makefile.am): Likewise.
64578         * modules/mbsstr-tests (Makefile.am): Likewise.
64579         * modules/nl_langinfo-tests (Makefile.am): Likewise.
64580         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
64581         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
64582         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
64583         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
64584         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
64585         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
64586         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
64587         * modules/wcrtomb-tests (Makefile.am): Likewise.
64588         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
64589         * modules/wcsrtombs-tests (Makefile.am): Likewise.
64590         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
64591         assignments from TESTS_ENVIRONMENT.
64592         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
64593         augmentation.
64594         * modules/argp-version-etc-tests (Makefile.am): Likewise.
64595         * modules/atexit-tests (Makefile.am): Likewise.
64596         * modules/binary-io-tests (Makefile.am): Likewise.
64597         * modules/closein-tests (Makefile.am): Likewise.
64598         * modules/dprintf-posix-tests (Makefile.am): Likewise.
64599         * modules/exclude-tests (Makefile.am): Likewise.
64600         * modules/fflush-tests (Makefile.am): Likewise.
64601         * modules/fpending-tests (Makefile.am): Likewise.
64602         * modules/fprintf-posix-tests (Makefile.am): Likewise.
64603         * modules/freadahead-tests (Makefile.am): Likewise.
64604         * modules/freadptr-tests (Makefile.am): Likewise.
64605         * modules/freadseek-tests (Makefile.am): Likewise.
64606         * modules/fseek-tests (Makefile.am): Likewise.
64607         * modules/fseeko-tests (Makefile.am): Likewise.
64608         * modules/ftell-tests (Makefile.am): Likewise.
64609         * modules/ftello-tests (Makefile.am): Likewise.
64610         * modules/idpriv-drop-tests (Makefile.am): Likewise.
64611         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
64612         * modules/lseek-tests (Makefile.am): Likewise.
64613         * modules/parse-duration-tests (Makefile.am): Likewise.
64614         * modules/perror-tests (Makefile.am): Likewise.
64615         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
64616         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
64617         * modules/pipe-tests (Makefile.am): Likewise.
64618         * modules/pread-tests (Makefile.am): Likewise.
64619         * modules/printf-posix-tests (Makefile.am): Likewise.
64620         * modules/select-tests (Makefile.am): Likewise.
64621         * modules/sigpipe-tests (Makefile.am): Likewise.
64622         * modules/tsearch-tests (Makefile.am): Likewise.
64623         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
64624         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
64625         * modules/uniname/uniname-tests (Makefile.am): Likewise.
64626         * modules/uniwidth/width-tests (Makefile.am): Likewise.
64627         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
64628         * modules/version-etc-tests (Makefile.am): Likewise.
64629         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
64630         * modules/vprintf-posix-tests (Makefile.am): Likewise.
64631         * modules/xalloc-die-tests (Makefile.am): Likewise.
64632         * modules/xprintf-posix-tests (Makefile.am): Likewise.
64633         * modules/xstrtoimax-tests (Makefile.am): Likewise.
64634         * modules/xstrtol-tests (Makefile.am): Likewise.
64635         * modules/xstrtoumax-tests (Makefile.am): Likewise.
64636         * modules/yesno-tests (Makefile.am): Likewise.
64637         Suggested by Jim Meyering.
64639 2010-01-24  Bruno Haible  <bruno@clisp.org>
64641         More documentation.
64642         * doc/gnulib.texi (Writing modules): New chapter.
64643         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
64644         the new chapter.
64646 2010-01-24  Jim Meyering  <meyering@redhat.com>
64648         maint.mk: do not prepend "./" after filtering
64649         * top/maint.mk (_prepend_srcdir_prefix): New variable
64650         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
64651         "./" when $(srcdir) is ".".
64653         define STREQ(a,b) consistently, removing useless parentheses
64654         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
64655         since the only risk is that "a" or "b" contains an unparenthesized
64656         comma, but if either did that, STREQ would have 3 or more arguments.
64657         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
64658         * lib/fts.c (STREQ): Remove unnecessary parentheses.
64659         * lib/hash-triple.c (STREQ): Likewise.
64660         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
64661         * lib/getugroups.c (STREQ): Likewise.
64663 2010-01-23  Jim Meyering  <meyering@redhat.com>
64665         maint.mk: fix syntax-check in a non-srcdir build directory
64666         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
64667         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
64669 2010-01-22  Jim Meyering  <meyering@redhat.com>
64671         userspec: add unit tests
64672         * tests/test-userspec.c: New file.
64673         * modules/userspec-tests: Likewise.
64675 2010-01-21  Jim Meyering  <meyering@redhat.com>
64677         maint.mk: handle source file names containing "." robustly
64678         * top/maint.mk (_dot_escaped_srcdir): Define.
64679         (VC_LIST): Use it in LHS of sed substitution.
64681 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
64683         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
64684         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
64685         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
64686         from a non-srcdir build.
64688 2010-01-20  Eric Blake  <ebb9@byu.net>
64690         warn-on-use: use instead of link-warning
64691         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
64692         * modules/unistd (Depends-on, Makefile.am): Likewise.
64693         * modules/arpa_inet (Depends-on): Replace link-warning with
64694         warn-on-use.
64695         (Makefile.am): Update rules accordingly.
64696         * modules/ctype (Depends-on, Makefile.am): Likewise.
64697         * modules/dirent (Depends-on, Makefile.am): Likewise.
64698         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
64699         * modules/inttypes (Depends-on, Makefile.am): Likewise.
64700         * modules/langinfo (Depends-on, Makefile.am): Likewise.
64701         * modules/locale (Depends-on, Makefile.am): Likewise.
64702         * modules/math (Depends-on, Makefile.am): Likewise.
64703         * modules/search (Depends-on, Makefile.am): Likewise.
64704         * modules/signal (Depends-on, Makefile.am): Likewise.
64705         * modules/spawn (Depends-on, Makefile.am): Likewise.
64706         * modules/stdlib (Depends-on, Makefile.am): Likewise.
64707         * modules/string (Depends-on, Makefile.am): Likewise.
64708         * modules/strings (Depends-on, Makefile.am): Likewise.
64709         * modules/sys_file (Depends-on, Makefile.am): Likewise.
64710         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
64711         * modules/sys_select (Depends-on, Makefile.am): Likewise.
64712         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
64713         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
64714         * modules/sys_times (Depends-on, Makefile.am): Likewise.
64715         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
64716         * modules/wchar (Depends-on, Makefile.am): Likewise.
64717         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
64718         should be poisoned.
64719         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
64720         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
64721         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
64722         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
64723         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
64724         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
64725         * m4/math_h.m4 (gl_MATH_H): Likewise.
64726         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
64727         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
64728         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
64729         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
64730         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
64731         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
64732         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
64733         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
64734         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
64735         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
64736         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
64737         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
64738         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
64739         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
64740         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
64741         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
64742         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
64743         GL_LINK_WARNING.
64744         * lib/ctype.in.h: Likewise.
64745         * lib/dirent.in.h: Likewise.
64746         * lib/fcntl.in.h: Likewise.
64747         * lib/inttypes.in.h: Likewise.
64748         * lib/langinfo.in.h: Likewise.
64749         * lib/locale.in.h: Likewise.
64750         * lib/math.in.h: Likewise.
64751         * lib/search.in.h: Likewise.
64752         * lib/signal.in.h: Likewise.
64753         * lib/spawn.in.h: Likewise.
64754         * lib/stdio.in.h: Likewise.
64755         * lib/stdlib.in.h: Likewise.
64756         * lib/string.in.h: Likewise.
64757         * lib/strings.in.h: Likewise.
64758         * lib/sys_file.in.h: Likewise.
64759         * lib/sys_ioctl.in.h: Likewise.
64760         * lib/sys_select.in.h: Likewise.
64761         * lib/sys_socket.in.h: Likewise.
64762         * lib/sys_stat.in.h: Likewise.
64763         * lib/sys_times.in.h: Likewise.
64764         * lib/sys_utsname.in.h: Likewise.
64765         * lib/unistd.in.h: Likewise.
64766         * lib/wchar.in.h: Likewise.
64768 2010-01-20  Bruno Haible  <bruno@clisp.org>
64770         Avoid duplicate -lm.
64771         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
64772         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
64773         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
64774         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
64775         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
64776         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
64777         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
64778         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
64779         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
64780         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
64781         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
64782         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
64783         Reported by Paolo Bonzini.
64785 2010-01-19  Bruno Haible  <bruno@clisp.org>
64787         langinfo, nl_langinfo: Relicense under LGPLv2+.
64788         * modules/langinfo (License): Change to LGPLv2+.
64789         * modules/nl_langinfo (License): Likewise.
64790         Patch by David Lutterkort <lutter@redhat.com>.
64792 2010-01-19  Bruno Haible  <bruno@clisp.org>
64794         Avoid compilation error with cc on OSF/1 5.1.
64795         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
64796         statement, not before.
64797         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64799 2010-01-18  Bruno Haible  <bruno@clisp.org>
64801         Avoid a link error due to the __printf__ symbol.
64802         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
64803         and 2.6.x.
64804         (__format__, __printf__): Remove definitions.
64805         * lib/argp-fmtstream.h: Likewise.
64806         * lib/argp.h: Likewise.
64807         * lib/error.h: Likewise.
64808         * lib/vasnprintf.h: Likewise.
64809         * lib/xprintf.h: Likewise.
64810         * lib/xvasprintf.h: Likewise.
64811         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64813 2010-01-18  Bruno Haible  <bruno@clisp.org>
64815         Tests for module 'tanl'.
64816         * modules/tanl-tests: New file.
64817         * tests/test-tanl.c: New file.
64819         Tests for module 'sqrtl'.
64820         * modules/sqrtl-tests: New file.
64821         * tests/test-sqrtl.c: New file.
64823         Tests for module 'sinl'.
64824         * modules/sinl-tests: New file.
64825         * tests/test-sinl.c: New file.
64827         Tests for module 'logl'.
64828         * modules/logl-tests: New file.
64829         * tests/test-logl.c: New file.
64831         Tests for module 'expl'.
64832         * modules/expl-tests: New file.
64833         * tests/test-expl.c: New file.
64835         Tests for module 'cosl'.
64836         * modules/cosl-tests: New file.
64837         * tests/test-cosl.c: New file.
64839         Tests for module 'atanl'.
64840         * modules/atanl-tests: New file.
64841         * tests/test-atanl.c: New file.
64843         Tests for module 'asinl'.
64844         * modules/asinl-tests: New file.
64845         * tests/test-asinl.c: New file.
64847         Tests for module 'acosl'.
64848         * modules/acosl-tests: New file.
64849         * tests/test-acosl.c: New file.
64851         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
64852         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
64853         tanl): Use the standard gnulib idiom.
64854         * lib/cosl.c: Don't include trigl.c and sincosl.c.
64855         * lib/sinl.c: Likewise.
64856         * lib/tanl.c: Don't include trigl.c.
64857         (kernel_tanl): Make static.
64858         * lib/sincosl.c: Include trigl.h first.
64859         * lib/trigl.c: Likewise.
64860         * m4/acosl.m4: New file.
64861         * m4/asinl.m4: New file.
64862         * m4/atanl.m4: New file.
64863         * m4/cosl.m4: New file.
64864         * m4/expl.m4: New file.
64865         * m4/logl.m4: New file.
64866         * m4/sinl.m4: New file.
64867         * m4/sqrtl.m4: New file.
64868         * m4/tanl.m4: New file.
64869         * m4/mathl.m4: Remove file.
64870         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
64871         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
64872         Don't initialize GNULIB_MATHL.
64873         * modules/acosl: New file.
64874         * modules/asinl: New file.
64875         * modules/atanl: New file.
64876         * modules/cosl: New file.
64877         * modules/expl: New file.
64878         * modules/logl: New file.
64879         * modules/sinl: New file.
64880         * modules/sqrtl: New file.
64881         * modules/tanl: New file.
64882         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
64883         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
64884         substitute GNULIB_MATHL.
64885         * modules/mathl: Rewritten.
64886         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
64887         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
64888         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
64889         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
64890         * doc/posix-functions/expl.texi: Mention the 'expl' module.
64891         * doc/posix-functions/logl.texi: Mention the 'logl' module.
64892         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
64893         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
64894         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
64896 2010-01-18  Bruno Haible  <bruno@clisp.org>
64898         sqrt: Make gl_FUNC_SQRT requirable.
64899         * m4/sqrt.m4: New file.
64900         * modules/sqrt (Files): Add it.
64901         (configure.ac): Invoke gl_FUNC_SQRT.
64903 2010-01-18  Bruno Haible  <bruno@clisp.org>
64905         New modules for common <math.h> functions.
64906         * m4/mathfunc.m4: New file.
64907         * modules/acos: New file.
64908         * modules/asin: New file.
64909         * modules/atan: New file.
64910         * modules/atan2: New file.
64911         * modules/cbrt: New file.
64912         * modules/copysign: New file.
64913         * modules/cos: New file.
64914         * modules/cosh: New file.
64915         * modules/erf: New file.
64916         * modules/erfc: New file.
64917         * modules/exp: New file.
64918         * modules/fabs: New file.
64919         * modules/fmod: New file.
64920         * modules/hypot: New file.
64921         * modules/j0: New file.
64922         * modules/j1: New file.
64923         * modules/jn: New file.
64924         * modules/ldexp: New file.
64925         * modules/lgamma: New file.
64926         * modules/log: New file.
64927         * modules/log10: New file.
64928         * modules/log1p: New file.
64929         * modules/logb: New file.
64930         * modules/modf: New file.
64931         * modules/nextafter: New file.
64932         * modules/pow: New file.
64933         * modules/remainder: New file.
64934         * modules/rint: New file.
64935         * modules/sin: New file.
64936         * modules/sinh: New file.
64937         * modules/sqrt: New file.
64938         * modules/tan: New file.
64939         * modules/tanh: New file.
64940         * modules/y0: New file.
64941         * modules/y1: New file.
64942         * modules/yn: New file.
64943         * doc/posix-functions/acos.texi: Mention the 'acos' module.
64944         * doc/posix-functions/asin.texi: Mention the 'asin' module.
64945         * doc/posix-functions/atan.texi: Mention the 'atan' module.
64946         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
64947         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
64948         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
64949         * doc/posix-functions/cos.texi: Mention the 'cos' module.
64950         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
64951         * doc/posix-functions/erf.texi: Mention the 'erf' module.
64952         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
64953         * doc/posix-functions/exp.texi: Mention the 'exp' module.
64954         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
64955         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
64956         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
64957         * doc/posix-functions/j0.texi: Mention the 'j0' module.
64958         * doc/posix-functions/j1.texi: Mention the 'j1' module.
64959         * doc/posix-functions/jn.texi: Mention the 'jn' module.
64960         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
64961         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
64962         * doc/posix-functions/log.texi: Mention the 'log' module.
64963         * doc/posix-functions/log10.texi: Mention the 'log10' module.
64964         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
64965         * doc/posix-functions/logb.texi: Mention the 'logb' module.
64966         * doc/posix-functions/modf.texi: Mention the 'modf' module.
64967         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
64968         * doc/posix-functions/pow.texi: Mention the 'pow' module.
64969         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
64970         * doc/posix-functions/rint.texi: Mention the 'rint' module.
64971         * doc/posix-functions/sin.texi: Mention the 'sin' module.
64972         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
64973         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
64974         * doc/posix-functions/tan.texi: Mention the 'tan' module.
64975         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
64976         * doc/posix-functions/y0.texi: Mention the 'y0' module.
64977         * doc/posix-functions/y1.texi: Mention the 'y1' module.
64978         * doc/posix-functions/yn.texi: Mention the 'yn' module.
64980 2010-01-18  Jim Meyering  <meyering@redhat.com>
64982         ignore-value: relax license to LGPLv2+
64983         * modules/ignore-value (License): Relax to LGPLv2+.
64985         getdate: don't leak when TZ contains two or more '"'s
64986         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
64987         double quote in TZ after the first one.
64989         readtokens: do not leak internal token_lengths buffer
64990         * lib/readtokens.c (readtokens): Free the local, lengths,
64991         when the supplied "token_lengths" parameter is NULL.
64993 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64995         Fix a couple of missing LIBTHREAD link failures on AIX.
64996         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
64997         $(LIBTHREAD).
64998         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
65000         Link test-poll against INET_PTON_LIB.
65001         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
65002         for inet_pton on Solaris 10.
65004 2010-01-17  Bruno Haible  <bruno@clisp.org>
65006         unistdio/*-sprintf: Fix typo in module description.
65007         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
65008         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
65009         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
65010         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
65011         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
65012         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
65013         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
65014         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65016 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65018         gnulib-tool: fix filelist for AIX, HP-UX ksh.
65019         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
65020         variables in shell case patterns, for AIX and HP-UX ksh.
65022         Split large sed scripts, for HP-UX sed.
65023         * modules/stdio: Split sed scripts around 50 sed commands,
65024         to avoid HP-UX limit of 99 commands, in the near future.
65025         * modules/string: Likewise.
65026         * modules/unistd: Likewise.
65028         gnulib-tool: avoid writing in the current directory.
65029         * gnulib-tool (func_emit_lib_Makefile_am)
65030         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
65031         not in the current directory, so concurrent gnulib-tool
65032         instances do not interfere.
65034 2010-01-16  Jim Meyering  <meyering@redhat.com>
65036         doc: update users.txt
65037         * users.txt: Add grep.
65038         (diffutils, gzip): Update URLs.
65040 2010-01-12  Bruno Haible  <bruno@clisp.org>
65042         posix_spawn: Avoid test failure on Cygwin.
65043         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
65044         characters.
65045         Reported by Simon Josefsson.
65047 2010-01-12  Bruno Haible  <bruno@clisp.org>
65049         * tests/test-cond.c (main): When skipping the test, show the reason.
65051 2010-01-12  Simon Josefsson  <simon@josefsson.org>
65053         * lib/striconv.c (str_cd_iconv): Avoid if before free.
65055 2010-01-12  Simon Josefsson  <simon@josefsson.org>
65057         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
65058         VC_LIST_ALWAYS_EXCLUDE_REGEX.
65060 2010-01-12  Eric Blake  <ebb9@byu.net>
65062         build: guarantee AS_VAR_IF
65063         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
65064         (gl_AS_VAR_IF): Move...
65065         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
65066         Reported by Simon Josefsson.
65068 2010-01-12  Simon Josefsson  <simon@josefsson.org>
65070         * lib/stdio.in.h: Fix typo.
65072 2010-01-12  Simon Josefsson  <simon@josefsson.org>
65074         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
65075         libgpg-error.
65077 2010-01-12  Simon Josefsson  <simon@josefsson.org>
65079         * tests/test-xalloc-die.sh: Use $EXEEXT.
65081 2010-01-12  Simon Josefsson  <simon@josefsson.org>
65082             Bruno Haible  <bruno@clisp.org>
65084         getlogin, getlogin_r: Avoid test failure.
65085         * tests/test-getlogin.c: Include <stdio.h>.
65086         (main): Skip the test when the function fails because stdin is not a
65087         tty.
65088         * tests/test-getlogin_r.c: Include <stdio.h>.
65089         (main): Skip the test when the function fails because stdin is not a
65090         tty.
65092 2010-01-11  Eric Blake  <ebb9@byu.net>
65094         tests: avoid more large file warnings
65095         * tests/test-fflush.c: Avoid warning about ftell use.
65096         * tests/test-fseek.c: Avoid warning about fseek use.
65098 2010-01-10  Bruno Haible  <bruno@clisp.org>
65100         nproc: Work better on Linux when /proc and /sys are not mounted.
65101         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
65102         as lower bound when, on glibc/Linux systems,
65103         sysconf (_SC_NPROCESSORS_CONF) returns 1.
65104         Suggested by Pádraig Brady <P@draigbrady.com>.
65105         Reported by Dmitry V. Levin <ldv@altlinux.org>.
65107         nproc: Refactor.
65108         * lib/nproc.c (num_processors_via_affinity_mask): New function,
65109         extracted from num_processors.
65110         (num_processors): Call it.
65112 2010-01-11  Jim Meyering  <meyering@redhat.com>
65114         utimecmp: avoid new warning from upcoming gcc-4.5.0
65115         * lib/utimecmp.c (BILLION): Define using #define rather than an
65116         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
65118 2010-01-11  Eric Blake  <ebb9@byu.net>
65120         math: add portability warnings for classification macros
65121         * modules/math (Depends-on): Add warn-on-use.
65122         (Makefile.am): Provide new substitutions.
65123         * m4/math_h.m4 (gl_MATH_H): Require inline.
65124         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
65125         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
65126         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
65127         implement warnings.
65129         unistd: warn on use of environ without module
65130         * modules/unistd (Depends-on): Add warn-on-use.
65131         (Makefile.am): Provide new substitutions.
65132         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
65133         * lib/unistd.in.h (environ): Wrap with a warning helper function.
65135         stdio: warn on suspicious uses
65136         * modules/stdio (Depends-on): Add warn-on-use.
65137         (Makefile.am): Provide new substitutions.
65138         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
65139         fseeko.
65140         * lib/stdio.in.h (gets): Always warn on use.
65141         (fseek, ftell): Adjust when warnings are issued, and honor
65142         _GL_NO_LARGE_FILES as a way to silence the warning.
65143         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
65144         any warning about large file offsets.
65145         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
65146         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
65147         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
65148         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
65149         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
65150         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
65151         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
65152         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
65154         warn-on-use: new module
65155         * modules/warn-on-use: New file.
65156         * build-aux/warn-on-use.h: Likewise.
65157         * m4/warn-on-use.m4: Likewise.
65158         * MODULES.html.sh (Support for building): Mention it.
65160 2010-01-10  Bruno Haible  <bruno@clisp.org>
65162         Tests for module 'unistr/u32-strdup'.
65163         * modules/unistr/u32-strdup-tests: New file.
65164         * tests/unistr/test-u32-strdup.c: New file.
65166         Tests for module 'unistr/u16-strdup'.
65167         * modules/unistr/u16-strdup-tests: New file.
65168         * tests/unistr/test-u16-strdup.c: New file.
65170         Tests for module 'unistr/u8-strdup'.
65171         * modules/unistr/u8-strdup-tests: New file.
65172         * tests/unistr/test-u8-strdup.c: New file.
65173         * tests/unistr/test-strdup.h: New file.
65175         Tests for module 'unistr/u32-strncmp'.
65176         * modules/unistr/u32-strncmp-tests: New file.
65177         * tests/unistr/test-u32-strncmp.c: New file.
65179         Tests for module 'unistr/u16-strncmp'.
65180         * modules/unistr/u16-strncmp-tests: New file.
65181         * tests/unistr/test-u16-strncmp.c: New file.
65183         Tests for module 'unistr/u8-strncmp'.
65184         * modules/unistr/u8-strncmp-tests: New file.
65185         * tests/unistr/test-u8-strncmp.c: New file.
65186         * tests/unistr/test-strncmp.h: New file.
65188         Tests for module 'unistr/u32-strcoll'.
65189         * modules/unistr/u32-strcoll-tests: New file.
65190         * tests/unistr/test-u32-strcoll.c: New file.
65192         Tests for module 'unistr/u16-strcoll'.
65193         * modules/unistr/u16-strcoll-tests: New file.
65194         * tests/unistr/test-u16-strcoll.c: New file.
65196         Tests for module 'unistr/u8-strcoll'.
65197         * modules/unistr/u8-strcoll-tests: New file.
65198         * tests/unistr/test-u8-strcoll.c: New file.
65200         Tests for module 'unistr/u32-strcmp'.
65201         * modules/unistr/u32-strcmp-tests: New file.
65202         * tests/unistr/test-u32-strcmp.c: New file.
65203         * tests/unistr/test-u32-strcmp.h: New file.
65205         Tests for module 'unistr/u16-strcmp'.
65206         * modules/unistr/u16-strcmp-tests: New file.
65207         * tests/unistr/test-u16-strcmp.c: New file.
65208         * tests/unistr/test-u16-strcmp.h: New file.
65210         Tests for module 'unistr/u8-strcmp'.
65211         * modules/unistr/u8-strcmp-tests: New file.
65212         * tests/unistr/test-u8-strcmp.c: New file.
65213         * tests/unistr/test-u8-strcmp.h: New file.
65214         * tests/unistr/test-strcmp.h: New file.
65216         Tests for module 'unistr/u32-strncat'.
65217         * modules/unistr/u32-strncat-tests: New file.
65218         * tests/unistr/test-u32-strncat.c: New file.
65220         Tests for module 'unistr/u16-strncat'.
65221         * modules/unistr/u16-strncat-tests: New file.
65222         * tests/unistr/test-u16-strncat.c: New file.
65224         Tests for module 'unistr/u8-strncat'.
65225         * modules/unistr/u8-strncat-tests: New file.
65226         * tests/unistr/test-u8-strncat.c: New file.
65227         * tests/unistr/test-strncat.h: New file.
65229         Tests for module 'unistr/u32-strcat'.
65230         * modules/unistr/u32-strcat-tests: New file.
65231         * tests/unistr/test-u32-strcat.c: New file.
65233         Tests for module 'unistr/u16-strcat'.
65234         * modules/unistr/u16-strcat-tests: New file.
65235         * tests/unistr/test-u16-strcat.c: New file.
65237         Tests for module 'unistr/u8-strcat'.
65238         * modules/unistr/u8-strcat-tests: New file.
65239         * tests/unistr/test-u8-strcat.c: New file.
65240         * tests/unistr/test-strcat.h: New file.
65242         Tests for module 'unistr/u32-stpncpy'.
65243         * modules/unistr/u32-stpncpy-tests: New file.
65244         * tests/unistr/test-u32-stpncpy.c: New file.
65246         Tests for module 'unistr/u16-stpncpy'.
65247         * modules/unistr/u16-stpncpy-tests: New file.
65248         * tests/unistr/test-u16-stpncpy.c: New file.
65250         Tests for module 'unistr/u8-stpncpy'.
65251         * modules/unistr/u8-stpncpy-tests: New file.
65252         * tests/unistr/test-u8-stpncpy.c: New file.
65253         * tests/unistr/test-stpncpy.h: New file.
65255         Tests for module 'unistr/u32-strncpy'.
65256         * modules/unistr/u32-strncpy-tests: New file.
65257         * tests/unistr/test-u32-strncpy.c: New file.
65259         Tests for module 'unistr/u16-strncpy'.
65260         * modules/unistr/u16-strncpy-tests: New file.
65261         * tests/unistr/test-u16-strncpy.c: New file.
65263         Tests for module 'unistr/u8-strncpy'.
65264         * modules/unistr/u8-strncpy-tests: New file.
65265         * tests/unistr/test-u8-strncpy.c: New file.
65266         * tests/unistr/test-strncpy.h: New file.
65268         Tests for module 'unistr/u32-stpcpy'.
65269         * modules/unistr/u32-stpcpy-tests: New file.
65270         * tests/unistr/test-u32-stpcpy.c: New file.
65272         Tests for module 'unistr/u16-stpcpy'.
65273         * modules/unistr/u16-stpcpy-tests: New file.
65274         * tests/unistr/test-u16-stpcpy.c: New file.
65276         Tests for module 'unistr/u8-stpcpy'.
65277         * modules/unistr/u8-stpcpy-tests: New file.
65278         * tests/unistr/test-u8-stpcpy.c: New file.
65279         * tests/unistr/test-stpcpy.h: New file.
65281         Tests for module 'unistr/u32-strcpy'.
65282         * modules/unistr/u32-strcpy-tests: New file.
65283         * tests/unistr/test-u32-strcpy.c: New file.
65285         Tests for module 'unistr/u16-strcpy'.
65286         * modules/unistr/u16-strcpy-tests: New file.
65287         * tests/unistr/test-u16-strcpy.c: New file.
65289         Tests for module 'unistr/u8-strcpy'.
65290         * modules/unistr/u8-strcpy-tests: New file.
65291         * tests/unistr/test-u8-strcpy.c: New file.
65292         * tests/unistr/test-strcpy.h: New file.
65294         Tests for module 'unistr/u32-strnlen'.
65295         * modules/unistr/u32-strnlen-tests: New file.
65296         * tests/unistr/test-u32-strnlen.c: New file.
65298         Tests for module 'unistr/u16-strnlen'.
65299         * modules/unistr/u16-strnlen-tests: New file.
65300         * tests/unistr/test-u16-strnlen.c: New file.
65302         Tests for module 'unistr/u8-strnlen'.
65303         * modules/unistr/u8-strnlen-tests: New file.
65304         * tests/unistr/test-u8-strnlen.c: New file.
65305         * tests/unistr/test-strnlen.h: New file.
65307         Tests for module 'unistr/u32-strlen'.
65308         * modules/unistr/u32-strlen-tests: New file.
65309         * tests/unistr/test-u32-strlen.c: New file.
65311         Tests for module 'unistr/u16-strlen'.
65312         * modules/unistr/u16-strlen-tests: New file.
65313         * tests/unistr/test-u16-strlen.c: New file.
65315         Tests for module 'unistr/u8-strlen'.
65316         * modules/unistr/u8-strlen-tests: New file.
65317         * tests/unistr/test-u8-strlen.c: New file.
65319         Tests for module 'unistr/u32-prev'.
65320         * modules/unistr/u32-prev-tests: New file.
65321         * tests/unistr/test-u32-prev.c: New file.
65323         Tests for module 'unistr/u16-prev'.
65324         * modules/unistr/u16-prev-tests: New file.
65325         * tests/unistr/test-u16-prev.c: New file.
65327         Tests for module 'unistr/u8-prev'.
65328         * modules/unistr/u8-prev-tests: New file.
65329         * tests/unistr/test-u8-prev.c: New file.
65331         Tests for module 'unistr/u32-next'.
65332         * modules/unistr/u32-next-tests: New file.
65333         * tests/unistr/test-u32-next.c: New file.
65335         Tests for module 'unistr/u16-next'.
65336         * modules/unistr/u16-next-tests: New file.
65337         * tests/unistr/test-u16-next.c: New file.
65339         Tests for module 'unistr/u8-next'.
65340         * modules/unistr/u8-next-tests: New file.
65341         * tests/unistr/test-u8-next.c: New file.
65343         Tests for module 'unistr/u32-strmbtouc'.
65344         * modules/unistr/u32-strmbtouc-tests: New file.
65345         * tests/unistr/test-u32-strmbtouc.c: New file.
65347         Tests for module 'unistr/u16-strmbtouc'.
65348         * modules/unistr/u16-strmbtouc-tests: New file.
65349         * tests/unistr/test-u16-strmbtouc.c: New file.
65351         Tests for module 'unistr/u8-strmbtouc'.
65352         * modules/unistr/u8-strmbtouc-tests: New file.
65353         * tests/unistr/test-u8-strmbtouc.c: New file.
65355         Tests for module 'unistr/u32-strmblen'.
65356         * modules/unistr/u32-strmblen-tests: New file.
65357         * tests/unistr/test-u32-strmblen.c: New file.
65359         Tests for module 'unistr/u16-strmblen'.
65360         * modules/unistr/u16-strmblen-tests: New file.
65361         * tests/unistr/test-u16-strmblen.c: New file.
65363         Tests for module 'unistr/u8-strmblen'.
65364         * modules/unistr/u8-strmblen-tests: New file.
65365         * tests/unistr/test-u8-strmblen.c: New file.
65367         Tests for module 'unistr/u32-cpy-alloc'.
65368         * modules/unistr/u32-cpy-alloc-tests: New file.
65369         * tests/unistr/test-u32-cpy-alloc.c: New file.
65371         Tests for module 'unistr/u16-cpy-alloc'.
65372         * modules/unistr/u16-cpy-alloc-tests: New file.
65373         * tests/unistr/test-u16-cpy-alloc.c: New file.
65375         Tests for module 'unistr/u8-cpy-alloc'.
65376         * modules/unistr/u8-cpy-alloc-tests: New file.
65377         * tests/unistr/test-u8-cpy-alloc.c: New file.
65378         * tests/unistr/test-cpy-alloc.h: New file.
65380         Tests for module 'unistr/u32-mbsnlen'.
65381         * modules/unistr/u32-mbsnlen-tests: New file.
65382         * tests/unistr/test-u32-mbsnlen.c: New file.
65384         Tests for module 'unistr/u16-mbsnlen'.
65385         * modules/unistr/u16-mbsnlen-tests: New file.
65386         * tests/unistr/test-u16-mbsnlen.c: New file.
65388         Tests for module 'unistr/u8-mbsnlen'.
65389         * modules/unistr/u8-mbsnlen-tests: New file.
65390         * tests/unistr/test-u8-mbsnlen.c: New file.
65392         Tests for module 'unistr/u32-chr'.
65393         * modules/unistr/u32-chr-tests: New file.
65394         * tests/unistr/test-u32-chr.c: New file.
65396         Tests for module 'unistr/u16-chr'.
65397         * modules/unistr/u16-chr-tests: New file.
65398         * tests/unistr/test-u16-chr.c: New file.
65400         Tests for module 'unistr/u8-chr'.
65401         * modules/unistr/u8-chr-tests: New file.
65402         * tests/unistr/test-u8-chr.c: New file.
65403         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
65405         Tests for module 'unistr/u32-cmp2'.
65406         * modules/unistr/u32-cmp2-tests: New file.
65407         * tests/unistr/test-u32-cmp2.c: New file.
65409         Tests for module 'unistr/u16-cmp2'.
65410         * modules/unistr/u16-cmp2-tests: New file.
65411         * tests/unistr/test-u16-cmp2.c: New file.
65413         Tests for module 'unistr/u8-cmp2'.
65414         * modules/unistr/u8-cmp2-tests: New file.
65415         * tests/unistr/test-u8-cmp2.c: New file.
65416         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
65418         Tests for module 'unistr/u32-cmp'.
65419         * modules/unistr/u32-cmp-tests: New file.
65420         * tests/unistr/test-u32-cmp.c: New file.
65422         Tests for module 'unistr/u16-cmp'.
65423         * modules/unistr/u16-cmp-tests: New file.
65424         * tests/unistr/test-u16-cmp.c: New file.
65426         Tests for module 'unistr/u8-cmp'.
65427         * modules/unistr/u8-cmp-tests: New file.
65428         * tests/unistr/test-u8-cmp.c: New file.
65429         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
65431         Tests for module 'unistr/u32-set'.
65432         * modules/unistr/u32-set-tests: New file.
65433         * tests/unistr/test-u32-set.c: New file.
65435         Tests for module 'unistr/u16-set'.
65436         * modules/unistr/u16-set-tests: New file.
65437         * tests/unistr/test-u16-set.c: New file.
65439         Tests for module 'unistr/u8-set'.
65440         * modules/unistr/u8-set-tests: New file.
65441         * tests/unistr/test-u8-set.c: New file.
65442         * tests/unistr/test-set.h: New file.
65444         Tests for module 'unistr/u32-move'.
65445         * modules/unistr/u32-move-tests: New file.
65446         * tests/unistr/test-u32-move.c: New file.
65448         Tests for module 'unistr/u16-move'.
65449         * modules/unistr/u16-move-tests: New file.
65450         * tests/unistr/test-u16-move.c: New file.
65452         Tests for module 'unistr/u8-move'.
65453         * modules/unistr/u8-move-tests: New file.
65454         * tests/unistr/test-u8-move.c: New file.
65455         * tests/unistr/test-move.h: New file.
65457         Tests for module 'unistr/u32-cpy'.
65458         * modules/unistr/u32-cpy-tests: New file.
65459         * tests/unistr/test-u32-cpy.c: New file.
65461         Tests for module 'unistr/u16-cpy'.
65462         * modules/unistr/u16-cpy-tests: New file.
65463         * tests/unistr/test-u16-cpy.c: New file.
65465         Tests for module 'unistr/u8-cpy'.
65466         * modules/unistr/u8-cpy-tests: New file.
65467         * tests/unistr/test-u8-cpy.c: New file.
65468         * tests/unistr/test-cpy.h: New file.
65470 2010-01-09  Bruno Haible  <bruno@clisp.org>
65472         Tests for module 'unistr/u32-uctomb'.
65473         * modules/unistr/u32-uctomb-tests: New file.
65474         * tests/unistr/test-u32-uctomb.c: New file.
65476         Tests for module 'unistr/u16-uctomb'.
65477         * modules/unistr/u16-uctomb-tests: New file.
65478         * tests/unistr/test-u16-uctomb.c: New file.
65480         Tests for module 'unistr/u8-uctomb'.
65481         * modules/unistr/u8-uctomb-tests: New file.
65482         * tests/unistr/test-u8-uctomb.c: New file.
65484         Tests for module 'unistr/u32-mbtoucr'.
65485         * modules/unistr/u32-mbtoucr-tests: New file.
65486         * tests/unistr/test-u32-mbtoucr.c: New file.
65488         Tests for module 'unistr/u16-mbtoucr'.
65489         * modules/unistr/u16-mbtoucr-tests: New file.
65490         * tests/unistr/test-u16-mbtoucr.c: New file.
65492         Tests for module 'unistr/u8-mbtoucr'.
65493         * modules/unistr/u8-mbtoucr-tests: New file.
65494         * tests/unistr/test-u8-mbtoucr.c: New file.
65496         Tests for module 'unistr/u32-mbtouc'.
65497         * modules/unistr/u32-mbtouc-tests: New file.
65498         * tests/unistr/test-u32-mbtouc.c: New file.
65500         Tests for module 'unistr/u16-mbtouc'.
65501         * modules/unistr/u16-mbtouc-tests: New file.
65502         * tests/unistr/test-u16-mbtouc.c: New file.
65504         Tests for module 'unistr/u8-mbtouc'.
65505         * modules/unistr/u8-mbtouc-tests: New file.
65506         * tests/unistr/test-u8-mbtouc.c: New file.
65508         Tests for module 'unistr/u32-mbtouc-unsafe'.
65509         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
65510         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
65511         * tests/unistr/test-u32-mbtouc.h: New file.
65513         Tests for module 'unistr/u16-mbtouc-unsafe'.
65514         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
65515         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
65516         * tests/unistr/test-u16-mbtouc.h: New file.
65518         Tests for module 'unistr/u8-mbtouc-unsafe'.
65519         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
65520         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
65521         * tests/unistr/test-u8-mbtouc.h: New file.
65523         Tests for module 'unistr/u32-mblen'.
65524         * modules/unistr/u32-mblen-tests: New file.
65525         * tests/unistr/test-u32-mblen.c: New file.
65527         Tests for module 'unistr/u16-mblen'.
65528         * modules/unistr/u16-mblen-tests: New file.
65529         * tests/unistr/test-u16-mblen.c: New file.
65531         Tests for module 'unistr/u8-mblen'.
65532         * modules/unistr/u8-mblen-tests: New file.
65533         * tests/unistr/test-u8-mblen.c: New file.
65535         Tests for module 'unistr/u32-to-u16'.
65536         * modules/unistr/u32-to-u16-tests: New file.
65537         * tests/unistr/test-u32-to-u16.c: New file.
65539         Tests for module 'unistr/u32-to-u8'.
65540         * modules/unistr/u32-to-u8-tests: New file.
65541         * tests/unistr/test-u32-to-u8.c: New file.
65543         Tests for module 'unistr/u16-to-u32'.
65544         * modules/unistr/u16-to-u32-tests: New file.
65545         * tests/unistr/test-u16-to-u32.c: New file.
65547         Tests for module 'unistr/u16-to-u8'.
65548         * modules/unistr/u16-to-u8-tests: New file.
65549         * tests/unistr/test-u16-to-u8.c: New file.
65551         Tests for module 'unistr/u8-to-u32'.
65552         * modules/unistr/u8-to-u32-tests: New file.
65553         * tests/unistr/test-u8-to-u32.c: New file.
65555         Tests for module 'unistr/u8-to-u16'.
65556         * modules/unistr/u8-to-u16-tests: New file.
65557         * tests/unistr/test-u8-to-u16.c: New file.
65559         Tests for module 'unistr/u32-check'.
65560         * modules/unistr/u32-check-tests: New file.
65561         * tests/unistr/test-u32-check.c: New file.
65563         Tests for module 'unistr/u16-check'.
65564         * modules/unistr/u16-check-tests: New file.
65565         * tests/unistr/test-u16-check.c: New file.
65567         Tests for module 'unistr/u8-check'.
65568         * modules/unistr/u8-check-tests: New file.
65569         * tests/unistr/test-u8-check.c: New file.
65571         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
65572         (category_equals): New function.
65573         (main): Add more tests.
65574         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
65576         * tests/unictype/test-bidi_byname.c (main): Add more tests.
65578 2010-01-10  Bruno Haible  <bruno@clisp.org>
65580         unistr/u*-strcoll: Try harder to distinguish different strings.
65581         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
65582         compare s1 and s2 to see if they are different.
65584 2010-01-10  Bruno Haible  <bruno@clisp.org>
65586         unistr/u*-stpncpy: Fix the return value.
65587         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
65588         description of the return value consistent with stpncpy in glibc.
65589         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
65590         written non-NUL unit.
65592 2010-01-10  Bruno Haible  <bruno@clisp.org>
65594         unistr/u*-next: Add missing dependencies.
65595         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
65596         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
65597         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
65599 2010-01-10  Bruno Haible  <bruno@clisp.org>
65601         unistr/u8-mbsnlen: Fix return value for incomplete character.
65602         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
65603         u8_mblen.
65604         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
65605         Remove unistr/u8-mblen.
65606         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
65607         u16_mblen.
65608         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
65609         Remove unistr/u16-mblen.
65611 2010-01-10  Bruno Haible  <bruno@clisp.org>
65613         wchar: Fix compilation error when <wchar.h> is used from coreutils.
65614         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
65615         Reported by Brian Gough <bjg@gnu.org> and
65616         Chris Clayton <chris2553@googlemail.com> via
65617         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
65619 2010-01-09  Bruno Haible  <bruno@clisp.org>
65621         unistr/u16-to-u32: Reject invalid input.
65622         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
65623         u16_mbtouc.
65624         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
65625         Remove unistr/u16-mbtouc.
65627         unistr/u16-to-u8: Reject invalid input.
65628         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
65629         u16_mbtouc.
65630         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
65631         Remove unistr/u16-mbtouc.
65633         unistr/u8-to-u32: Reject invalid input.
65634         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
65635         u8_mbtouc.
65636         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
65637         Remove unistr/u8-mbtouc.
65639         unistr/u8-to-u16: Reject invalid input.
65640         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
65641         u8_mbtouc.
65642         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
65643         Remove unistr/u8-mbtouc.
65645 2010-01-09  Bruno Haible  <bruno@clisp.org>
65647         Tests for module 'getlogin'.
65648         * modules/getlogin-tests: New file.
65649         * tests/test-getlogin.c: New file.
65651         New module 'getlogin'.
65652         * lib/unistd.in.h (getlogin): New declaration.
65653         * lib/getlogin.c: New file.
65654         * m4/getlogin.m4: New file.
65655         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
65656         HAVE_GETLOGIN.
65657         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
65658         HAVE_GETLOGIN.
65659         * modules/getlogin: New file.
65660         * doc/posix-functions/getlogin.texi: Mention the new module.
65661         Reported by John W. Eaton <jwe@gnu.org>.
65663 2010-01-09  Bruno Haible  <bruno@clisp.org>
65665         getlogin_r: Support for native Windows.
65666         * lib/getlogin_r.c: Include <windows.h>
65667         (getlogin_r): Implement for native Windows.
65668         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
65669         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
65670         via John W. Eaton <jwe@gnu.org>.
65672 2010-01-09  Bruno Haible  <bruno@clisp.org>
65674         getlogin_r: Small fixes.
65675         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
65676         succeeds.
65677         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
65678         before testing whether getlogin_r is declared. No need to set
65679         HAVE_DECL_GETLOGIN_R to 1.
65680         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
65682 2010-01-09  Bruno Haible  <bruno@clisp.org>
65684         * lib/unistd.in.h (getlogin_r): Add comment.
65686 2010-01-09  Bruno Haible  <bruno@clisp.org>
65688         Tests for module 'getlogin_r'.
65689         * modules/getlogin_r-tests: New file.
65690         * tests/test-getlogin_r.c: New file.
65692 2010-01-09  Jim Meyering  <meyering@redhat.com>
65694         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
65695         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
65696         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
65698 2010-01-08  Simon Josefsson  <simon@josefsson.org>
65700         * lib/dup2.c (rpl_dup2): Improve comment.
65702 2010-01-08  Eric Blake  <ebb9@byu.net>
65704         maint.mk: allow packages to add makefile @@ exceptions
65705         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
65706         (sc_makefile_check): Rename...
65707         (sc_makefile_at_at_check): ...to this, and use hook.
65709         dup2: work around mingw bug
65710         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
65711         Reported by Simon Josefsson.
65713 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
65715         glob: Fix C++ compilation.
65716         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
65717         C++.
65719 2010-01-07  Bruno Haible  <bruno@clisp.org>
65721         Fix indentation of wctype.in.h, broken since 2007-01-06.
65722         * lib/wctype.in.h: Fix indentation of preprocessor directives.
65724 2010-01-07  Bruno Haible  <bruno@clisp.org>
65726         mbslen: Avoid collision with system function.
65727         * lib/string.in.h [MirBSD]: Include <wchar.h>.
65728         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
65729         * m4/mbslen.m4: New file.
65730         * modules/mbslen (Files): Add it.
65731         (configure.ac): Invoke gl_MBSLEN.
65732         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
65733         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
65734         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
65735         via Ian Beckwith <ianb@erislabs.net>.
65737 2010-01-07  Bruno Haible  <bruno@clisp.org>
65739         dirent: Document the last fix.
65740         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
65742 2010-01-07  Bruno Haible  <bruno@clisp.org>
65744         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
65745         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
65746         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
65747         va_list are defined.
65748         * doc/posix-headers/stdio.texi: Document the bug of missing types.
65749         Reported by Eric Blake.
65751 2010-01-07  Bruno Haible  <bruno@clisp.org>
65753         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
65754         * modules/xlist (Depends-on): Add 'list',
65755         * modules/xoset (Depends-on): Add 'oset'.
65756         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65758 2010-01-07  Bruno Haible  <bruno@clisp.org>
65760         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
65761         * doc/posix-functions/strncasecmp.texi: Likewise.
65763 2010-01-07  Bruno Haible  <bruno@clisp.org>
65765         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
65767 2010-01-07  John W. Eaton  <jwe@octave.org>
65769         wctype: allow C++ use
65770         * lib/wctype.in.h: Add extern "C" block for C++.
65772 2010-01-06  Eric Blake  <ebb9@byu.net>
65774         maint.mk: detect incorrect GFDL usage
65775         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
65777 2010-01-06  Jim Meyering  <meyering@redhat.com>
65778         and Eric Blake  <ebb9@byu.net>
65780         maint.mk: ignore multi-line copyright in NEWS
65781         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
65783 2010-01-06  Eric Blake  <ebb9@byu.net>
65785         select: add missing dependency
65786         * modules/select-tests (Depends-on): Move sockets dependency...
65787         * modules/select (Depends-on): ...here.
65788         Reported by Ian Beckwith.
65790         doc: regenerate INSTALL
65791         * doc/INSTALL: Reflect recent autoconf update.
65792         * doc/INSTALL.ISO: Likewise.
65793         * doc/INSTALL.UTF-8: Likewise.
65795         pread: fix compilation on glibc
65796         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
65797         Reported by Ralf Wildenhues.
65799         dirent: fix test failure
65800         * lib/dirent.in.h (includes): Guarantee ino_t.
65801         Reported by Ralf Wildenhues.
65803 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
65805         linkat, renameat: avoid bad free
65806         * lib/at-func2.c (at_func2): Fix typo.
65807         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
65809 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65811         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
65812         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
65813         to avoid failure of symlink test later.
65815 2010-01-06  Eric Blake  <ebb9@byu.net>
65817         stdio, unistd: guarantee ssize_t
65818         * lib/unistd.in.h (includes): Ensure that types required by POSIX
65819         2008 are exposed when needed.
65820         * lib/stdio.in.h (includes): Likewise.
65821         Reported by Ralf Wildenhues.
65823 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
65825         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
65826         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
65827         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
65829 2010-01-06  Jim Meyering  <meyering@redhat.com>
65831         readtokens: this module *does* require xalloc.h
65832         It uses only functions that were omitted by the old syntax-check rule.
65833         * lib/readtokens.c: Include "xalloc.h" once again.
65834         * modules/readtokens (Depends-on): Add xalloc.
65835         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
65837 2010-01-05  Eric Blake  <ebb9@byu.net>
65839         maint: support 'make announcement' from a VPATH build
65840         * top/maint.mk (announcement): Look for correct NEWS file.
65842 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
65844         utimens (fdutimens): ignore a negative FD, per contract
65845         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
65846         when we have a valid file descriptor.  Otherwise, using a brand
65847         new glibc (with just-patched futimens that now fails with EBADF)
65848         would cause this function to fail with ENOSYS.
65849         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
65850         See also http://bugzilla.redhat.com/552320.
65852 2010-01-05  Eric Blake  <ebb9@byu.net>
65854         strcase: document what it provides
65855         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
65856         gnulib module.
65857         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
65858         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
65860 2010-01-05  Jim Meyering  <meyering@redhat.com>
65862         maint: remove useless inclusions of "xalloc.h"
65863         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
65864         * lib/readtokens.c: Likewise.
65865         * lib/same.c: Likewise.
65866         * modules/getloadavg (Depends-on): Remove xalloc.
65867         * modules/readtokens: Likewise.
65868         * modules/same: Likewise.
65870         maint.mk: include 4 more function names in alloca.h-checking regexp
65871         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
65872         regexp.  Before, we would give a false-positive (saying alloca.h
65873         is included unnecessarily) when the only uses involved omitted symbols.
65875         xalloc.h: use consistent formatting
65876         * lib/xalloc.h: Move declarations to start in the first column.
65878 2010-01-05  Eric Blake  <ebb9@byu.net>
65880         mkdir: avoid xalloc
65881         * lib/mkdir.c (includes): Drop unused header.
65882         Reported by John W. Eaton.
65884 2010-01-04  Jim Meyering  <meyering@redhat.com>
65886         nl_langinfo: avoid configure-time syntax error
65887         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
65888         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
65889         the empty string.  Don't let that provoke a shell syntax error.
65891         regcomp, regexec, fnmatch: avoid array bounds read error
65892         * lib/regcomp.c (build_equiv_class): From glibc:
65893         Use only the low 24 bits of a findidx return value as an index
65894         into the weights array.  Patch by Ulrich Drepper:
65895         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
65896         * lib/regexec.c (check_node_accept_bytes): Likewise.
65897         * lib/fnmatch_loop.c (FCT): Likewise.
65899         regcomp: skip collseq lookup when there are no rules
65900         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
65901         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
65903         regcomp: recognize ill-formed { } expressions
65904         * lib/regcomp.c (parse_dup_op): From glibc:
65905         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
65907         regcomp: fix typo in comment
65908         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
65909         s/satisfy/satisfies/.
65911         regcomp: sync from glibc: remove dead store
65912         * lib/regcomp.c (duplicate_node_closure): Remove useless
65913         search_duplicated_node call and dead store.
65915         regcomp: sync from glibc; always use nl_langinfo
65916         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
65917         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
65918         * modules/regex (Depends-on): Add nl_langinfo.
65920 2010-01-04  Eric Blake  <ebb9@byu.net>
65922         fdopendir: fix configure test
65923         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
65925 2010-01-01  Bruno Haible  <bruno@clisp.org>
65927         wchar: Remove unused configure check.
65928         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
65930 2010-01-01  Eric Blake  <ebb9@byu.net>
65932         headers: make check of system header explicit
65933         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
65934         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
65935         ourselves.
65936         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
65937         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
65938         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
65939         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
65940         internals.
65941         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
65942         missing.
65943         Suggested by Bruno Haible.
65945 2010-01-01  Jim Meyering  <meyering@redhat.com>
65947         ChangeLog: tweak to eliminate unnecessary copyright line
65948         * ChangeLog: Remove a copyright line that was mistakenly updated
65949         by today's update-copyright run.  Reported by Eric Blake.
65951         test-update-copyright: don't let envvar setting cause test failure
65952         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
65954 2010-01-01  Bruno Haible  <bruno@clisp.org>
65956         localename: Avoid gcc warning.
65957         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
65958         function if it is not used.
65960 2010-01-01  Jim Meyering  <meyering@redhat.com>
65962         update nearly all FSF copyright year lists to include 2010
65963         Use the same procedure as for 2009, outlined in
65964         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
65966         version-etc: set COPYRIGHT_YEAR to 2010
65967         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
65969 2009-12-31  Eric Blake  <ebb9@byu.net>
65971         doc: correct availability of cygwin 1.5.x getopt
65972         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
65973         variables.
65974         * doc/posix-functions/opterr.texi (opterr): Likewise.
65975         * doc/posix-functions/optind.texi (optind): Likewise.
65976         * doc/posix-functions/optopt.texi (optopt): Likewise.
65977         * doc/posix-functions/tzname.texi (tzname): Likewise.
65979         openat: update maintainer
65980         * modules/openat (Maintainer): Add myself.
65982         utimens: avoid shadowing warning
65983         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
65984         buffers into one, to avoid shadowing, as well as avoiding a
65985         redundant stat.
65986         Reported by Jim Meyering.
65988         test-dup2: avoid compiler warning
65989         * tests/test-dup2.c (is_inheritable): Only define if used.
65991 2010-01-01  Bruno Haible  <bruno@clisp.org>
65993         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
65994         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
65995         defined, use wctomb instead of wcrtomb.
65997 2010-01-01  Bruno Haible  <bruno@clisp.org>
65999         iconv: Reject native Solaris iconv.
66000         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
66001         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
66003 2009-12-31  Bruno Haible  <bruno@clisp.org>
66005         * tests/test-signal.c (main): Remove test of 'SIG'.
66007 2009-12-31  Bruno Haible  <bruno@clisp.org>
66009         spawn: Fix incomplete fix.
66010         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
66011         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
66012         warnings for GNULIB_POSIXCHECK again.
66013         Reported by Eric Blake.
66015 2009-12-31  Bruno Haible  <bruno@clisp.org>
66017         Avoid namespace pollution on glibc systems.
66018         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
66019         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
66020         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
66021         glibc systems.
66023 2009-12-31  Bruno Haible  <bruno@clisp.org>
66025         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
66026         (gl_REPLACE_WCHAR_H): Turn into a no-op.
66027         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
66028         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
66029         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
66030         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
66031         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
66033 2009-12-31  Bruno Haible  <bruno@clisp.org>
66035         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
66036         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
66037         afterwards.
66039 2009-12-31  Bruno Haible  <bruno@clisp.org>
66041         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
66042         SYS_UTSNAME_H.
66044 2009-12-31  Bruno Haible  <bruno@clisp.org>
66046         spawn: Fix misapplied patch.
66047         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
66048         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
66049         warnings for GNULIB_POSIXCHECK.
66051 2009-12-31  Bruno Haible  <bruno@clisp.org>
66053         times: Update after sys_times changed.
66054         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
66055         * modules/times (Files): Add it.
66056         (configure.ac): Invoke gl_FUNC_TIMES.
66058 2009-12-31  Bruno Haible  <bruno@clisp.org>
66060         Use AC_C_INLINE where necessary.
66061         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
66062         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
66063         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
66064         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
66065         * m4/mbfile.m4 (gl_MBFILE): Likewise.
66066         * m4/mbiter.m4 (gl_MBITER): Likewise.
66067         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
66068         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
66069         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
66070         * modules/u64 (configure.ac): Likewise.
66072 2009-12-31  Bruno Haible  <bruno@clisp.org>
66074         Use AC_C_INLINE instead of module 'inline' where possible.
66075         * modules/inline (Description): Clarify purpose.
66076         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
66077         * modules/count-one-bits (Depends-on): Remove inline.
66078         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
66079         * modules/openat (Depends-on): Remove inline.
66080         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
66081         instead of depending on module 'inline'.
66082         * modules/filevercmp (Depends-on, configure.ac): Likewise.
66083         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
66084         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
66085         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
66086         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
66087         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
66088         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
66089         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
66090         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
66091         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
66092         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
66093         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
66094         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
66095         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
66096         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
66097         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
66098         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
66099         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
66100         Likewise.
66101         * modules/unictype/property-ascii-hex-digit (Depends-on,
66102         configure.ac): Likewise.
66103         * modules/unictype/property-bidi-arabic-digit (Depends-on,
66104         configure.ac): Likewise.
66105         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
66106         configure.ac): Likewise.
66107         * modules/unictype/property-bidi-block-separator (Depends-on,
66108         configure.ac): Likewise.
66109         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
66110         configure.ac): Likewise.
66111         * modules/unictype/property-bidi-common-separator (Depends-on,
66112         configure.ac): Likewise.
66113         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
66114         Likewise.
66115         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
66116         configure.ac): Likewise.
66117         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
66118         configure.ac): Likewise.
66119         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
66120         configure.ac): Likewise.
66121         * modules/unictype/property-bidi-european-digit (Depends-on,
66122         configure.ac): Likewise.
66123         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
66124         configure.ac): Likewise.
66125         * modules/unictype/property-bidi-left-to-right (Depends-on,
66126         configure.ac): Likewise.
66127         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
66128         configure.ac): Likewise.
66129         * modules/unictype/property-bidi-other-neutral (Depends-on,
66130         configure.ac): Likewise.
66131         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
66132         Likewise.
66133         * modules/unictype/property-bidi-segment-separator (Depends-on,
66134         configure.ac): Likewise.
66135         * modules/unictype/property-bidi-whitespace (Depends-on,
66136         configure.ac): Likewise.
66137         * modules/unictype/property-combining (Depends-on, configure.ac):
66138         Likewise.
66139         * modules/unictype/property-composite (Depends-on, configure.ac):
66140         Likewise.
66141         * modules/unictype/property-currency-symbol (Depends-on,
66142         configure.ac): Likewise.
66143         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
66144         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
66145         Likewise.
66146         * modules/unictype/property-default-ignorable-code-point (Depends-on,
66147         configure.ac): Likewise.
66148         * modules/unictype/property-deprecated (Depends-on, configure.ac):
66149         Likewise.
66150         * modules/unictype/property-diacritic (Depends-on, configure.ac):
66151         Likewise.
66152         * modules/unictype/property-extender (Depends-on, configure.ac):
66153         Likewise.
66154         * modules/unictype/property-format-control (Depends-on, configure.ac):
66155         Likewise.
66156         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
66157         Likewise.
66158         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
66159         Likewise.
66160         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
66161         Likewise.
66162         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
66163         Likewise.
66164         * modules/unictype/property-hyphen (Depends-on, configure.ac):
66165         Likewise.
66166         * modules/unictype/property-id-continue (Depends-on, configure.ac):
66167         Likewise.
66168         * modules/unictype/property-id-start (Depends-on, configure.ac):
66169         Likewise.
66170         * modules/unictype/property-ideographic (Depends-on, configure.ac):
66171         Likewise.
66172         * modules/unictype/property-ids-binary-operator (Depends-on,
66173         configure.ac): Likewise.
66174         * modules/unictype/property-ids-trinary-operator (Depends-on,
66175         configure.ac): Likewise.
66176         * modules/unictype/property-ignorable-control (Depends-on,
66177         configure.ac): Likewise.
66178         * modules/unictype/property-iso-control (Depends-on, configure.ac):
66179         Likewise.
66180         * modules/unictype/property-join-control (Depends-on, configure.ac):
66181         Likewise.
66182         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
66183         Likewise.
66184         * modules/unictype/property-line-separator (Depends-on, configure.ac):
66185         Likewise.
66186         * modules/unictype/property-logical-order-exception (Depends-on,
66187         configure.ac): Likewise.
66188         * modules/unictype/property-lowercase (Depends-on, configure.ac):
66189         Likewise.
66190         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
66191         * modules/unictype/property-non-break (Depends-on, configure.ac):
66192         Likewise.
66193         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
66194         Likewise.
66195         * modules/unictype/property-numeric (Depends-on, configure.ac):
66196         Likewise.
66197         * modules/unictype/property-other-alphabetic (Depends-on,
66198         configure.ac): Likewise.
66199         * modules/unictype/property-other-default-ignorable-code-point
66200         (Depends-on, configure.ac): Likewise.
66201         * modules/unictype/property-other-grapheme-extend (Depends-on,
66202         configure.ac): Likewise.
66203         * modules/unictype/property-other-id-continue (Depends-on,
66204         configure.ac): Likewise.
66205         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
66206         Likewise.
66207         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
66208         Likewise.
66209         * modules/unictype/property-other-math (Depends-on, configure.ac):
66210         Likewise.
66211         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
66212         Likewise.
66213         * modules/unictype/property-paired-punctuation (Depends-on,
66214         configure.ac): Likewise.
66215         * modules/unictype/property-paragraph-separator (Depends-on,
66216         configure.ac): Likewise.
66217         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
66218         Likewise.
66219         * modules/unictype/property-pattern-white-space (Depends-on,
66220         configure.ac): Likewise.
66221         * modules/unictype/property-private-use (Depends-on, configure.ac):
66222         Likewise.
66223         * modules/unictype/property-punctuation (Depends-on, configure.ac):
66224         Likewise.
66225         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
66226         Likewise.
66227         * modules/unictype/property-radical (Depends-on, configure.ac):
66228         Likewise.
66229         * modules/unictype/property-sentence-terminal (Depends-on,
66230         configure.ac): Likewise.
66231         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
66232         Likewise.
66233         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
66234         * modules/unictype/property-terminal-punctuation (Depends-on,
66235         configure.ac): Likewise.
66236         * modules/unictype/property-titlecase (Depends-on, configure.ac):
66237         Likewise.
66238         * modules/unictype/property-unassigned-code-value (Depends-on,
66239         configure.ac): Likewise.
66240         * modules/unictype/property-unified-ideograph (Depends-on,
66241         configure.ac): Likewise.
66242         * modules/unictype/property-uppercase (Depends-on, configure.ac):
66243         Likewise.
66244         * modules/unictype/property-variation-selector (Depends-on,
66245         configure.ac): Likewise.
66246         * modules/unictype/property-white-space (Depends-on, configure.ac):
66247         Likewise.
66248         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
66249         Likewise.
66250         * modules/unictype/property-xid-start (Depends-on, configure.ac):
66251         Likewise.
66252         * modules/unictype/property-zero-width (Depends-on, configure.ac):
66253         Likewise.
66254         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
66255         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
66256         Likewise.
66258 2009-12-31  Bruno Haible  <bruno@clisp.org>
66260         Remove unnecessary AC_C_INLINE invocation.
66261         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
66262         since 2009-08-21.
66264 2009-12-31  Jim Meyering  <meyering@redhat.com>
66266         maint.mk: don't require explicit gpg_key_ID in cfg.mk
66267         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
66268         With this change, we can all remove the gpg_key_ID = ... definition
66269         from our respective cfg.mk files.
66271         maint.mk: create announcement template in ~/, not in /tmp
66272         * top/maint.mk (emit_upload_commands): Adjust.
66273         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
66274         Remove temporary file, .ci-msg.
66276 2009-12-31  Eric Blake  <ebb9@byu.net>
66278         link-warning: always build headers with link warnings
66279         * modules/arpa_inet (Makefile.am): Always build replacement
66280         header.
66281         * modules/ctype (Makefile.am): Likewise.
66282         * modules/dirent (Makefile.am): Likewise.
66283         * modules/inttypes (Makefile.am): Likewise.
66284         * modules/langinfo (Makefile.am): Likewise.
66285         * modules/locale (Makefile.am): Likewise.
66286         * modules/spawn (Makefile.am): Likewise.
66287         * modules/sys_file (Makefile.am): Likewise.
66288         * modules/sys_ioctl (Makefile.am): Likewise.
66289         * modules/sys_select (Makefile.am): Likewise.
66290         * modules/sys_socket (Makefile.am): Likewise.
66291         * modules/sys_times (Makefile.am): Likewise.
66292         * modules/sys_utsname (Makefile.am): Likewise.
66293         * modules/sys_wait (Makefile.am): Likewise.
66294         * modules/wchar (Makefile.am): Likewise.
66295         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
66296         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
66297         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
66298         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
66299         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
66300         Likewise.
66301         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
66302         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
66303         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
66304         Likewise.
66305         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
66306         Likewise.
66307         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
66308         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
66309         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
66310         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
66311         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
66312         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
66313         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
66314         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
66315         (gl_WCHAR_H_DEFAULTS): Likewise.
66317 2009-12-31  Eric Blake  <ebb9@byu.net>
66319         signal, spawn: use link warnings
66320         * lib/signal.in.h (sigset_t): Make unconditional.
66321         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
66322         (sigpending, sigprocmask, sigaction): Add link warnings.
66323         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
66324         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
66325         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
66326         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
66327         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
66328         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
66329         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
66330         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
66331         (posix_spawn_file_actions_destroy)
66332         (posix_spawn_file_actions_addopen)
66333         (posix_spawn_file_actions_addclose)
66334         (posix_spawn_file_actions_adddup2): Likewise.
66335         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
66336         * tests/test-signal.c (main): Enhance test.
66338         spawn: improve wrapper support
66339         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
66340         (gl_SPAWN_H_DEFAULTS): New defaults.
66341         * modules/spawn (Makefile.am): Substitute them.
66342         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
66343         Only declare if missing or broken.
66345         sys_times, sys_utsname: use include_next
66346         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
66347         header.
66348         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
66349         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
66350         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
66351         * modules/sys_times (Depends-on): Add include_next.
66352         (Makefile.am): Substitute additional values.
66353         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
66354         * lib/sys_times.in.h (includes): Include native header, if
66355         available.
66356         * lib/sys_utsname.in.h (includes): Likewise.
66357         * tests/test-sys_times.c (main): Enhance test.
66359         fdutimensat: revert prior patch
66360         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
66361         utimens.h.
66362         Reported by Bruno Haible.
66364 2009-12-30  Eric Blake  <ebb9@byu.net>
66366         sys_wait: drop link-warning dependency
66367         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
66368         link-warning efforts.
66369         * lib/sys_wait.in.h: Likewise.
66371         fdutimensat: remove bogus dependency
66372         * modules/fdutimensat (Depends-on): Drop inline.
66374         unistd: fix typo
66375         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
66377 2009-12-30  Bruno Haible  <bruno@clisp.org>
66379         Fix compilation error with Solaris cc.
66380         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
66381         * lib/unicase/u16-is-invariant.c: Likewise.
66382         * lib/unicase/u32-is-invariant.c: Likewise.
66383         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
66385 2009-12-30  Bruno Haible  <bruno@clisp.org>
66387         Fix test crash.
66388         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
66389         locales.
66390         Reported by Simon Josefsson <simon@josefsson.org>.
66392 2009-12-30  Bruno Haible  <bruno@clisp.org>
66394         Fix compilation error on most platforms.
66395         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
66396         Reported by Simon Josefsson <simon@josefsson.org>
66397         and Nelson H. F. Beebe <beebe@math.utah.edu>.
66399 2009-12-30  Eric Blake  <ebb9@byu.net>
66401         futimens, utimensat: work around ntfs-3g bug
66402         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
66403         a ctime bug is present, and expand workaround to cover ntfs-3g.
66404         * lib/utimens.c (fdutimens, lutimens): Likewise.
66405         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
66406         (validate_timespec): Adjust return value.
66407         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
66408         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
66409         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
66411 2009-12-29  Eric Blake  <ebb9@byu.net>
66413         link-warning: make usage consistent
66414         * modules/ctype (Depends-on): Add link-warning.
66415         (Makefile.am): Update rules accordingly.
66416         * modules/langinfo (Depends-on, Makefile.am): Likewise.
66417         * modules/locale (Depends-on, Makefile.am): Likewise.
66418         * modules/sys_file (Makefile.am): Likewise.
66419         * modules/getopt-posix (Makefile.am): Delete unused link warning
66420         efforts.
66421         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
66422         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
66423         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
66424         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
66426         stdio: remove unused variables
66427         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
66428         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
66429         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
66431         tests: test more substitute headers
66432         * modules/ctype-tests: New file.
66433         * modules/dirent-tests: Likewise.
66434         * modules/spawn-tests: Likewise.
66435         * modules/sys_file-tests: Likewise.
66436         * modules/sys_ioctl-tests: Likewise.
66437         * modules/sys_wait-tests: Likewise.
66438         * tests/test-ctype.c: Likewise.
66439         * tests/test-dirent.c: Likewise.
66440         * tests/test-spawn.c: Likewise.
66441         * tests/test-sys_file.c: Likewise.
66442         * tests/test-sys_ioctl.c: Likewise.
66443         * tests/test-sys_wait.c: Likewise.
66444         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
66445         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
66446         whether or not flock is in use.
66448         tests: remove License section from module
66449         * modules/arpa_inet-tests: Remove unneeded section.
66450         * modules/byteswap-tests: Likewise.
66451         * modules/ceilf-tests: Likewise.
66452         * modules/ceill-tests: Likewise.
66453         * modules/crypto/des-tests: Likewise.
66454         * modules/crypto/gc-arcfour-tests: Likewise.
66455         * modules/crypto/gc-arctwo-tests: Likewise.
66456         * modules/crypto/gc-des-tests: Likewise.
66457         * modules/crypto/gc-hmac-md5-tests: Likewise.
66458         * modules/crypto/gc-hmac-sha1-tests: Likewise.
66459         * modules/crypto/gc-md2-tests: Likewise.
66460         * modules/crypto/gc-md4-tests: Likewise.
66461         * modules/crypto/gc-md5-tests: Likewise.
66462         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
66463         * modules/crypto/gc-rijndael-tests: Likewise.
66464         * modules/crypto/gc-sha1-tests: Likewise.
66465         * modules/crypto/gc-tests: Likewise.
66466         * modules/crypto/md2-tests: Likewise.
66467         * modules/crypto/md4-tests: Likewise.
66468         * modules/fcntl-h-tests: Likewise.
66469         * modules/floorf-tests: Likewise.
66470         * modules/floorl-tests: Likewise.
66471         * modules/frexp-nolibm-tests: Likewise.
66472         * modules/frexp-tests: Likewise.
66473         * modules/frexpl-nolibm-tests: Likewise.
66474         * modules/frexpl-tests: Likewise.
66475         * modules/getaddrinfo-tests: Likewise.
66476         * modules/inttypes-tests: Likewise.
66477         * modules/isfinite-tests: Likewise.
66478         * modules/isinf-tests: Likewise.
66479         * modules/ldexpl-tests: Likewise.
66480         * modules/locale-tests: Likewise.
66481         * modules/math-tests: Likewise.
66482         * modules/netdb-tests: Likewise.
66483         * modules/netinet_in-tests: Likewise.
66484         * modules/printf-frexp-tests: Likewise.
66485         * modules/printf-frexpl-tests: Likewise.
66486         * modules/priv-set-tests: Likewise.
66487         * modules/random_r-tests: Likewise.
66488         * modules/round-tests: Likewise.
66489         * modules/roundf-tests: Likewise.
66490         * modules/roundl-tests: Likewise.
66491         * modules/search-tests: Likewise.
66492         * modules/select-tests: Likewise.
66493         * modules/signal-tests: Likewise.
66494         * modules/stdbool-tests: Likewise.
66495         * modules/stddef-tests: Likewise.
66496         * modules/stdint-tests: Likewise.
66497         * modules/stdio-tests: Likewise.
66498         * modules/stdlib-tests: Likewise.
66499         * modules/string-tests: Likewise.
66500         * modules/strings-tests: Likewise.
66501         * modules/sys_select-tests: Likewise.
66502         * modules/sys_socket-tests: Likewise.
66503         * modules/sys_stat-tests: Likewise.
66504         * modules/sys_time-tests: Likewise.
66505         * modules/sys_utsname-tests: Likewise.
66506         * modules/sysexits-tests: Likewise.
66507         * modules/time-tests: Likewise.
66508         * modules/trunc-tests: Likewise.
66509         * modules/truncf-tests: Likewise.
66510         * modules/truncl-tests: Likewise.
66511         * modules/tsearch-tests: Likewise.
66512         * modules/unistd-tests: Likewise.
66513         * modules/wchar-tests: Likewise.
66514         * modules/wctype-tests: Likewise.
66516         tests: fix license on several tests
66517         * tests/test-des.c: Update to GPLv3+.
66518         * tests/test-flock.c: Likewise.
66519         * tests/test-fsync.c: Likewise.
66520         * tests/test-futimens.h: Likewise.
66521         * tests/test-gc-arcfour.c: Likewise.
66522         * tests/test-gc-arctwo.c: Likewise.
66523         * tests/test-gc-des.c: Likewise.
66524         * tests/test-gc-hmac-md5.c: Likewise.
66525         * tests/test-gc-hmac-sha1.c: Likewise.
66526         * tests/test-gc-md2.c: Likewise.
66527         * tests/test-gc-md4.c: Likewise.
66528         * tests/test-gc-md5.c: Likewise.
66529         * tests/test-gc-pbkdf2-sha1.c: Likewise.
66530         * tests/test-gc-rijndael.c: Likewise.
66531         * tests/test-gc-sha1.c: Likewise.
66532         * tests/test-gc.c: Likewise.
66533         * tests/test-getcwd.c: Likewise.
66534         * tests/test-link.c: Likewise.
66535         * tests/test-link.h: Likewise.
66536         * tests/test-lutimens.h: Likewise.
66537         * tests/test-md2.c: Likewise.
66538         * tests/test-md4.c: Likewise.
66539         * tests/test-mkdir.h: Likewise.
66540         * tests/test-rename.c: Likewise.
66541         * tests/test-rename.h: Likewise.
66542         * tests/test-safe-alloc.c: Likewise.
66543         * tests/test-utimens-common.h: Likewise.
66544         * tests/test-utimens.h: Likewise.
66546         maint: sync license texts
66547         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
66548         * doc/gpl-3.0.texi: Revert copyright year update.
66549         * doc/lgpl-3.0.texi: Likewise.
66551 2009-12-29  Jim Meyering  <meyering@redhat.com>
66553         update nearly all FSF copyright year lists to include 2009
66554         The files named by the following are exempted:
66555             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
66556               test -f "$dst" && { echo "$dst"; continue; }
66557               test -d "$dst" || continue
66558               echo "$dst"/$(basename "$src")
66559             done > exempt
66560             git ls-files tests/unictype >> exempt
66561         In the remaining files, convert to all-interval notation if
66562         - there is already at least one year interval like 2000-2003
66563         - the file is maintained by me
66564         - the file is in lib/uni*/, where that style already prevails
66565         Otherwise, use update-copyright's default.
66567 2009-12-29  Simon Josefsson  <simon@josefsson.org>
66568         and Eric Blake  <ebb9@byu.net>
66570         tests: don't require debug system() to pass
66571         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
66572         * tests/test-rmdir.h (test_rmdir_func): Likewise.
66573         * tests/test-unlink.h (test_unlink_func): Likewise.
66574         * tests/test-fstatat.c (main): ...into callers.
66575         * tests/test-lstat.c (main): Likewise.
66576         * tests/test-rmdir.c (main): Likewise.
66577         * tests/test-unlink.c (main): Likewise.
66578         * tests/test-unlinkat.c (main): Likewise.
66579         * tests/test-areadlink-with-size.c (main): Don't require a
66580         debug-only system call to pass, aiding cross-testing to mingw.
66581         * tests/test-areadlink.c (main): Likewise.
66582         * tests/test-areadlinkat-with-size.c (main): Likewise.
66583         * tests/test-areadlinkat.c (main): Likewise.
66584         * tests/test-canonicalize-lgpl.c (main): Likewise.
66585         * tests/test-canonicalize.c (main): Likewise.
66586         * tests/test-chown.c (main): Likewise.
66587         * tests/test-fchownat.c (main): Likewise.
66588         * tests/test-lchown.c (main): Likewise.
66589         * tests/test-fdutimensat.c (main): Likewise.
66590         * tests/test-futimens.c (main): Likewise.
66591         * tests/test-link.c (main): Likewise.
66592         * tests/test-linkat.c (main): Likewise.
66593         * tests/test-mkdir.c (main): Likewise.
66594         * tests/test-mkdirat.c (main): Likewise.
66595         * tests/test-mkfifo.c (main): Likewise.
66596         * tests/test-mkfifoat.c (main): Likewise.
66597         * tests/test-mknod.c (main): Likewise.
66598         * tests/test-readlink.c (main): Likewise.
66599         * tests/test-remove.c (main): Likewise.
66600         * tests/test-rename.c (main): Likewise.
66601         * tests/test-renameat.c (main): Likewise.
66602         * tests/test-symlink.c (main): Likewise.
66603         * tests/test-symlinkat.c (main): Likewise.
66604         * tests/test-utimens.c (main): Likewise.
66605         * tests/test-utimensat.c (main): Likewise.
66607 2009-12-29  Simon Josefsson  <simon@josefsson.org>
66609         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
66610         on $(UNUSED_PARAMETER_H) to avoid build failure.
66612 2009-12-28  Jim Meyering  <meyering@redhat.com>
66614         update-copyright: you may specify a max. line length other than 72
66615         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
66617         maint: use consistent FSF copyright line syntax
66618         * lib/posixtm.c: Add missing comma in FSF copyright line.
66619         * lib/posixtm.h: Likewise.
66620         * lib/getugroups.c: Add missing ", Inc.".
66622         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
66623         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
66624         FSF copyright line.  Remove trailing blanks.
66626 2009-12-28  Eric Blake  <ebb9@byu.net>
66628         test-dup2: reduce dependencies
66629         * modules/cloexec (Configure.ac): Set witness.
66630         * modules/dup2-tests (Depends-on): Drop cloexec.
66631         * tests/test-dup2.c (main): Skip portion of test if cloexec module
66632         not present.
66633         Suggested by Bruno Haible.
66635 2009-12-26  Bruno Haible  <bruno@clisp.org>
66637         Remove an unneeded dependency.
66638         * modules/fseterr (Depends-on): Remove dup2.
66640 2009-12-26  Eric Blake  <ebb9@byu.net>
66642         tests: use macros.h in more places
66643         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
66644         (ASSERT_STREAM): Provide default of stderr.
66645         * tests/test-dirent-safer.c: Include macros.h, using alternate
66646         stream for assertions.
66647         * tests/test-dup-safer.c: Likewise.
66648         * tests/test-freopen-safer.c: Likewise.
66649         * tests/test-getopt.c: Likewise.
66650         * tests/test-openat-safer.c: Likewise.
66651         * tests/test-pipe.c: Likewise.
66652         * tests/test-popen-safer.c: Likewise.
66653         * modules/dirent-safer-tests (Files): Include macros.h.
66654         * modules/unistd-safer-tests (Files): Likewise.
66655         * modules/freopen-safer-tests (Files): Likewise.
66656         * modules/getopt-posix-tests (Files): Likewise.
66657         * modules/openat-safer-tests (Files): Likewise.
66658         * modules/pipe-tests (Files): Likewise.
66660 2009-12-26  Bruno Haible  <bruno@clisp.org>
66662         javacomp-script: Portability fix.
66663         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
66664         that it also works on Solaris.
66666 2009-12-26  Bruno Haible  <bruno@clisp.org>
66668         localename: Fix storage allocation of gl_locale_name_thread's result.
66669         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
66670         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
66671         all platforms that have 'uselocale'.
66672         (gl_locale_name_thread_unsafe): New function, extracted from
66673         gl_locale_name_thread.
66674         (gl_locale_name_thread): Call struniq on all platforms that have
66675         'uselocale'.
66676         * tests/test-localename.c (test_locale_name_thread): Check that the
66677         resulting strings are permanently allocated.
66678         * modules/localename-tests (Depends-on): Add strdup.
66680 2009-12-26  Bruno Haible  <bruno@clisp.org>
66682         * tests/test-localename.c (categories): Fill in the strings.
66684 2009-12-26  Jim Meyering  <meyering@redhat.com>
66686         isdir: complete the removal of m4/isdir.m4
66687         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
66689         isdir: clean up, since at least grep still uses it
66690         * lib/isdir.c: Include "isdir.h".
66691         (S_ISDIR): Remove now-unneeded definition.
66692         * modules/isdir (Files): Add lib/isdir.h.
66693         * lib/isdir.h: New file, with declaration.
66694         * m4/isdir.m4: Remove file -- unneeded.
66696 2009-12-25  Bruno Haible  <bruno@clisp.org>
66698         selinux-h: Make generated .h files standalone.
66699         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
66700         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
66701         * lib/se-selinux.in.h: Likewise.
66702         * modules/selinux-h (Depends-on): Add unused-parameter.
66703         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
66704         selinux/selinux.h and selinux/context.h.
66705         Suggested by Eric Blake.
66707 2009-12-25  Bruno Haible  <bruno@clisp.org>
66709         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
66710         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
66711         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
66712         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
66713         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
66715 2009-12-24  Bruno Haible  <bruno@clisp.org>
66717         openat: Fix warning.
66718         * lib/openat-proc.c: Include <unistd.h>.
66720 2009-12-24  Bruno Haible  <bruno@clisp.org>
66722         New module 'unused-parameter'.
66723         * build-aux/unused-parameter.h: New file, extracted from earlier
66724         gnulib-common.m4.
66725         * modules/unused-parameter: New file.
66726         * lib/unistr.h: Include unused-parameter.h.
66727         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
66728         _GL_UNUSED.
66729         * modules/unistr/base (Depends-on): Add unused-parameter.
66731 2009-12-24  Bruno Haible  <bruno@clisp.org>
66733         Add missing dependencies to 'extensions' module.
66734         * m4/extensions.m4: Add comment.
66735         * modules/accept4 (Depends-on): Add extensions.
66736         * modules/dup3 (Depends-on): Likewise.
66737         * modules/fcntl (Depends-on): Likewise.
66738         * modules/futimens (Depends-on): Likewise.
66739         * modules/mknod (Depends-on): Likewise.
66740         * modules/pipe2 (Depends-on): Likewise.
66741         * modules/stat-time (Depends-on): Likewise.
66742         * modules/strcasestr-simple (Depends-on): Likewise.
66743         * modules/strsignal (Depends-on): Likewise.
66744         * modules/utimensat (Depends-on): Likewise.
66745         * modules/localcharset (Depends-on): Likewise. Needed because of
66746         gl_FCNTL_O_FLAGS.
66747         * modules/wcrtomb (Depends-on): Likewise. Needed because of
66748         AC_TYPE_MBSTATE_T.
66749         * modules/wcsnrtombs (Depends-on): Likewise.
66750         * modules/wcsrtombs (Depends-on): Likewise.
66752 2009-12-24  Bruno Haible  <bruno@clisp.org>
66754         binary-io: Avoid gcc warning due to SET_BINARY.
66755         * lib/binary-io.h (SET_BINARY): Cast the result to void.
66756         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
66758 2009-12-24  Bruno Haible  <bruno@clisp.org>
66760         Avoid future namespace pollution on glibc systems.
66761         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
66762         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
66763         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
66764         glibc systems.
66766 2009-12-24  Bruno Haible  <bruno@clisp.org>
66768         Refactor common macros used in tests.
66769         * tests/macros.h: New file.
66770         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
66771         and/or <stdlib.h>, if appropriate.
66772         (ASSERT, SIZEOF): Remove macros.
66773         * tests/test-areadlink-with-size.c: Likewise.
66774         * tests/test-areadlinkat.c: Likewise.
66775         * tests/test-areadlinkat-with-size.c: Likewise.
66776         * tests/test-argmatch.c: Likewise.
66777         * tests/test-argv-iter.c: Likewise.
66778         * tests/test-array-mergesort.c: Likewise.
66779         * tests/test-array_list.c: Likewise.
66780         * tests/test-array_oset.c: Likewise.
66781         * tests/test-avltree_list.c: Likewise.
66782         * tests/test-avltree_oset.c: Likewise.
66783         * tests/test-avltreehash_list.c: Likewise.
66784         * tests/test-base64.c: Likewise.
66785         * tests/test-binary-io.c: Likewise.
66786         * tests/test-bitrotate.c: Likewise.
66787         * tests/test-btowc.c: Likewise.
66788         * tests/test-byteswap.c: Likewise.
66789         * tests/test-c-ctype.c: Likewise.
66790         * tests/test-c-stack.c: Likewise.
66791         * tests/test-c-strcasecmp.c: Likewise.
66792         * tests/test-c-strcasestr.c: Likewise.
66793         * tests/test-c-strncasecmp.c: Likewise.
66794         * tests/test-c-strstr.c: Likewise.
66795         * tests/test-canonicalize-lgpl.c: Likewise.
66796         * tests/test-canonicalize.c: Likewise.
66797         * tests/test-carray_list.c: Likewise.
66798         * tests/test-ceilf1.c: Likewise.
66799         * tests/test-ceilf2.c: Likewise.
66800         * tests/test-ceill.c: Likewise.
66801         * tests/test-chown.c: Likewise.
66802         * tests/test-cloexec.c: Likewise.
66803         * tests/test-copy-acl.c: Likewise.
66804         * tests/test-copy-file.c: Likewise.
66805         * tests/test-count-one-bits.c: Likewise.
66806         * tests/test-dprintf-posix.c: Likewise.
66807         * tests/test-dup2.c: Likewise.
66808         * tests/test-dup3.c: Likewise.
66809         * tests/test-duplocale.c: Likewise.
66810         * tests/test-fbufmode.c: Likewise.
66811         * tests/test-fchdir.c: Likewise.
66812         * tests/test-fchownat.c: Likewise.
66813         * tests/test-fcntl-safer.c: Likewise.
66814         * tests/test-fcntl.c: Likewise.
66815         * tests/test-fdopendir.c: Likewise.
66816         * tests/test-fdutimensat.c: Likewise.
66817         * tests/test-fflush2.c: Likewise.
66818         * tests/test-file-has-acl.c: Likewise.
66819         * tests/test-filevercmp.c: Likewise.
66820         * tests/test-flock.c: Likewise.
66821         * tests/test-floorf1.c: Likewise.
66822         * tests/test-floorf2.c: Likewise.
66823         * tests/test-floorl.c: Likewise.
66824         * tests/test-fnmatch.c: Likewise.
66825         * tests/test-fopen.h: Likewise.
66826         * tests/test-fpending.c: Likewise.
66827         * tests/test-fprintf-posix.c: Likewise.
66828         * tests/test-fpurge.c: Likewise.
66829         * tests/test-freadable.c: Likewise.
66830         * tests/test-freadahead.c: Likewise.
66831         * tests/test-freading.c: Likewise.
66832         * tests/test-freadptr.c: Likewise.
66833         * tests/test-freadptr2.c: Likewise.
66834         * tests/test-freadseek.c: Likewise.
66835         * tests/test-freopen.c: Likewise.
66836         * tests/test-frexp.c: Likewise.
66837         * tests/test-frexpl.c: Likewise.
66838         * tests/test-fseek.c: Likewise.
66839         * tests/test-fseeko.c: Likewise.
66840         * tests/test-fstatat.c: Likewise.
66841         * tests/test-fstrcmp.c: Likewise.
66842         * tests/test-fsync.c: Likewise.
66843         * tests/test-ftell.c: Likewise.
66844         * tests/test-ftello.c: Likewise.
66845         * tests/test-func.c: Likewise.
66846         * tests/test-futimens.c: Likewise.
66847         * tests/test-fwritable.c: Likewise.
66848         * tests/test-fwriting.c: Likewise.
66849         * tests/test-getcwd.c: Likewise.
66850         * tests/test-getdate.c: Likewise.
66851         * tests/test-getdelim.c: Likewise.
66852         * tests/test-getdtablesize.c: Likewise.
66853         * tests/test-getgroups.c: Likewise.
66854         * tests/test-getline.c: Likewise.
66855         * tests/test-getndelim2.c: Likewise.
66856         * tests/test-glob.c: Likewise.
66857         * tests/test-hash.c: Likewise.
66858         * tests/test-i-ring.c: Likewise.
66859         * tests/test-iconv-utf.c: Likewise.
66860         * tests/test-iconv.c: Likewise.
66861         * tests/test-idpriv-drop.c: Likewise.
66862         * tests/test-idpriv-droptemp.c: Likewise.
66863         * tests/test-inet_ntop.c: Likewise.
66864         * tests/test-inet_pton.c: Likewise.
66865         * tests/test-isblank.c: Likewise.
66866         * tests/test-isfinite.c: Likewise.
66867         * tests/test-isinf.c: Likewise.
66868         * tests/test-isnan.c: Likewise.
66869         * tests/test-isnand.h: Likewise.
66870         * tests/test-isnanf.h: Likewise.
66871         * tests/test-isnanl.h: Likewise.
66872         * tests/test-lchown.c: Likewise.
66873         * tests/test-ldexpl.c: Likewise.
66874         * tests/test-link.c: Likewise.
66875         * tests/test-linkat.c: Likewise.
66876         * tests/test-linked_list.c: Likewise.
66877         * tests/test-linkedhash_list.c: Likewise.
66878         * tests/test-localename.c: Likewise.
66879         * tests/test-lseek.c: Likewise.
66880         * tests/test-lstat.c: Likewise.
66881         * tests/test-mbmemcasecmp.c: Likewise.
66882         * tests/test-mbmemcasecoll.c: Likewise.
66883         * tests/test-mbrtowc.c: Likewise.
66884         * tests/test-mbscasecmp.c: Likewise.
66885         * tests/test-mbscasestr1.c: Likewise.
66886         * tests/test-mbscasestr2.c: Likewise.
66887         * tests/test-mbscasestr3.c: Likewise.
66888         * tests/test-mbscasestr4.c: Likewise.
66889         * tests/test-mbschr.c: Likewise.
66890         * tests/test-mbscspn.c: Likewise.
66891         * tests/test-mbsinit.c: Likewise.
66892         * tests/test-mbsncasecmp.c: Likewise.
66893         * tests/test-mbsnrtowcs.c: Likewise.
66894         * tests/test-mbspbrk.c: Likewise.
66895         * tests/test-mbspcasecmp.c: Likewise.
66896         * tests/test-mbsrchr.c: Likewise.
66897         * tests/test-mbsrtowcs.c: Likewise.
66898         * tests/test-mbsspn.c: Likewise.
66899         * tests/test-mbsstr1.c: Likewise.
66900         * tests/test-mbsstr2.c: Likewise.
66901         * tests/test-mbsstr3.c: Likewise.
66902         * tests/test-memchr.c: Likewise.
66903         * tests/test-memchr2.c: Likewise.
66904         * tests/test-memcmp.c: Likewise.
66905         * tests/test-memmem.c: Likewise.
66906         * tests/test-memrchr.c: Likewise.
66907         * tests/test-mkdir.c: Likewise.
66908         * tests/test-mkdirat.c: Likewise.
66909         * tests/test-mkfifo.c: Likewise.
66910         * tests/test-mkfifoat.c: Likewise.
66911         * tests/test-mknod.c: Likewise.
66912         * tests/test-nanosleep.c: Likewise.
66913         * tests/test-nl_langinfo.c: Likewise.
66914         * tests/test-obstack-printf.c: Likewise.
66915         * tests/test-open.c: Likewise.
66916         * tests/test-openat.c: Likewise.
66917         * tests/test-pipe-filter-gi1.c: Likewise.
66918         * tests/test-pipe-filter-gi2-main.c: Likewise.
66919         * tests/test-pipe-filter-ii1.c: Likewise.
66920         * tests/test-pipe-filter-ii2-main.c: Likewise.
66921         * tests/test-pipe2.c: Likewise.
66922         * tests/test-popen.h: Likewise.
66923         * tests/test-posixtm.c: Likewise.
66924         * tests/test-pread.c: Likewise.
66925         * tests/test-printf-frexp.c: Likewise.
66926         * tests/test-printf-frexpl.c: Likewise.
66927         * tests/test-printf-posix.c: Likewise.
66928         * tests/test-priv-set.c: Likewise.
66929         * tests/test-quotearg.c: Likewise.
66930         * tests/test-random_r.c: Likewise.
66931         * tests/test-rawmemchr.c: Likewise.
66932         * tests/test-rbtree_list.c: Likewise.
66933         * tests/test-rbtree_oset.c: Likewise.
66934         * tests/test-rbtreehash_list.c: Likewise.
66935         * tests/test-readlink.c: Likewise.
66936         * tests/test-remove.c: Likewise.
66937         * tests/test-rename.c: Likewise.
66938         * tests/test-renameat.c: Likewise.
66939         * tests/test-rmdir.c: Likewise.
66940         * tests/test-round1.c: Likewise.
66941         * tests/test-roundf1.c: Likewise.
66942         * tests/test-roundl.c: Likewise.
66943         * tests/test-safe-alloc.c: Likewise.
66944         * tests/test-sameacls.c: Likewise.
66945         * tests/test-set-mode-acl.c: Likewise.
66946         * tests/test-setenv.c: Likewise.
66947         * tests/test-sigaction.c: Likewise.
66948         * tests/test-signbit.c: Likewise.
66949         * tests/test-sleep.c: Likewise.
66950         * tests/test-snprintf-posix.c: Likewise.
66951         * tests/test-snprintf.c: Likewise.
66952         * tests/test-sprintf-posix.c: Likewise.
66953         * tests/test-stat-time.c: Likewise.
66954         * tests/test-stat.c: Likewise.
66955         * tests/test-strcasestr.c: Likewise.
66956         * tests/test-strchrnul.c: Likewise.
66957         * tests/test-strerror.c: Likewise.
66958         * tests/test-striconv.c: Likewise.
66959         * tests/test-striconveh.c: Likewise.
66960         * tests/test-striconveha.c: Likewise.
66961         * tests/test-strsignal.c: Likewise.
66962         * tests/test-strstr.c: Likewise.
66963         * tests/test-strtod.c: Likewise.
66964         * tests/test-strverscmp.c: Likewise.
66965         * tests/test-symlink.c: Likewise.
66966         * tests/test-symlinkat.c: Likewise.
66967         * tests/test-trunc1.c: Likewise.
66968         * tests/test-trunc2.c: Likewise.
66969         * tests/test-truncf1.c: Likewise.
66970         * tests/test-truncf2.c: Likewise.
66971         * tests/test-truncl.c: Likewise.
66972         * tests/test-uname.c: Likewise.
66973         * tests/test-unlink.c: Likewise.
66974         * tests/test-unlinkat.c: Likewise.
66975         * tests/test-unsetenv.c: Likewise.
66976         * tests/test-usleep.c: Likewise.
66977         * tests/test-utimens.c: Likewise.
66978         * tests/test-utimensat.c: Likewise.
66979         * tests/test-vasnprintf-posix.c: Likewise.
66980         * tests/test-vasnprintf-posix2.c: Likewise.
66981         * tests/test-vasnprintf.c: Likewise.
66982         * tests/test-vasprintf-posix.c: Likewise.
66983         * tests/test-vasprintf.c: Likewise.
66984         * tests/test-vdprintf-posix.c: Likewise.
66985         * tests/test-vfprintf-posix.c: Likewise.
66986         * tests/test-vprintf-posix.c: Likewise.
66987         * tests/test-vsnprintf-posix.c: Likewise.
66988         * tests/test-vsnprintf.c: Likewise.
66989         * tests/test-vsprintf-posix.c: Likewise.
66990         * tests/test-wcrtomb.c: Likewise.
66991         * tests/test-wcsnrtombs.c: Likewise.
66992         * tests/test-wcsrtombs.c: Likewise.
66993         * tests/test-wctype.c: Likewise.
66994         * tests/test-wcwidth.c: Likewise.
66995         * tests/test-xfprintf-posix.c: Likewise.
66996         * tests/test-xmemdup0.c: Likewise.
66997         * tests/test-xprintf-posix.c: Likewise.
66998         * tests/test-xvasprintf.c: Likewise.
66999         * tests/unicase/test-locale-language.c: Likewise.
67000         * tests/unicase/test-mapping-part1.h: Likewise.
67001         * tests/unicase/test-predicate-part1.h: Likewise.
67002         * tests/unicase/test-u8-casecmp.c: Likewise.
67003         * tests/unicase/test-u8-casecoll.c: Likewise.
67004         * tests/unicase/test-u8-casefold.c: Likewise.
67005         * tests/unicase/test-u8-is-cased.c: Likewise.
67006         * tests/unicase/test-u8-is-casefolded.c: Likewise.
67007         * tests/unicase/test-u8-is-lowercase.c: Likewise.
67008         * tests/unicase/test-u8-is-titlecase.c: Likewise.
67009         * tests/unicase/test-u8-is-uppercase.c: Likewise.
67010         * tests/unicase/test-u8-tolower.c: Likewise.
67011         * tests/unicase/test-u8-totitle.c: Likewise.
67012         * tests/unicase/test-u8-toupper.c: Likewise.
67013         * tests/unicase/test-u16-casecmp.c: Likewise.
67014         * tests/unicase/test-u16-casecoll.c: Likewise.
67015         * tests/unicase/test-u16-casefold.c: Likewise.
67016         * tests/unicase/test-u16-is-cased.c: Likewise.
67017         * tests/unicase/test-u16-is-casefolded.c: Likewise.
67018         * tests/unicase/test-u16-is-lowercase.c: Likewise.
67019         * tests/unicase/test-u16-is-titlecase.c: Likewise.
67020         * tests/unicase/test-u16-is-uppercase.c: Likewise.
67021         * tests/unicase/test-u16-tolower.c: Likewise.
67022         * tests/unicase/test-u16-totitle.c: Likewise.
67023         * tests/unicase/test-u16-toupper.c: Likewise.
67024         * tests/unicase/test-u32-casecmp.c: Likewise.
67025         * tests/unicase/test-u32-casecoll.c: Likewise.
67026         * tests/unicase/test-u32-casefold.c: Likewise.
67027         * tests/unicase/test-u32-is-cased.c: Likewise.
67028         * tests/unicase/test-u32-is-casefolded.c: Likewise.
67029         * tests/unicase/test-u32-is-lowercase.c: Likewise.
67030         * tests/unicase/test-u32-is-titlecase.c: Likewise.
67031         * tests/unicase/test-u32-is-uppercase.c: Likewise.
67032         * tests/unicase/test-u32-tolower.c: Likewise.
67033         * tests/unicase/test-u32-totitle.c: Likewise.
67034         * tests/unicase/test-u32-toupper.c: Likewise.
67035         * tests/unicase/test-ulc-casecmp.c: Likewise.
67036         * tests/unicase/test-ulc-casecoll.c: Likewise.
67037         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
67038         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
67039         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
67040         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
67041         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
67042         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
67043         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
67044         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
67045         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
67046         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
67047         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
67048         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
67049         * tests/unictype/test-bidi_byname.c: Likewise.
67050         * tests/unictype/test-bidi_name.c: Likewise.
67051         * tests/unictype/test-bidi_of.c: Likewise.
67052         * tests/unictype/test-bidi_test.c: Likewise.
67053         * tests/unictype/test-block_list.c: Likewise.
67054         * tests/unictype/test-block_of.c: Likewise.
67055         * tests/unictype/test-block_test.c: Likewise.
67056         * tests/unictype/test-categ_and.c: Likewise.
67057         * tests/unictype/test-categ_and_not.c: Likewise.
67058         * tests/unictype/test-categ_byname.c: Likewise.
67059         * tests/unictype/test-categ_name.c: Likewise.
67060         * tests/unictype/test-categ_none.c: Likewise.
67061         * tests/unictype/test-categ_of.c: Likewise.
67062         * tests/unictype/test-categ_or.c: Likewise.
67063         * tests/unictype/test-categ_test_withtable.c: Likewise.
67064         * tests/unictype/test-combining.c: Likewise.
67065         * tests/unictype/test-decdigit.c: Likewise.
67066         * tests/unictype/test-digit.c: Likewise.
67067         * tests/unictype/test-mirror.c: Likewise.
67068         * tests/unictype/test-numeric.c: Likewise.
67069         * tests/unictype/test-pr_byname.c: Likewise.
67070         * tests/unictype/test-pr_test.c: Likewise.
67071         * tests/unictype/test-predicate-part1.h: Likewise.
67072         * tests/unictype/test-scripts.c: Likewise.
67073         * tests/unictype/test-sy_c_ident.c: Likewise.
67074         * tests/unictype/test-sy_java_ident.c: Likewise.
67075         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
67076         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
67077         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
67078         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
67079         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
67080         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
67081         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
67082         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
67083         * tests/uninorm/test-canonical-decomposition.c: Likewise.
67084         * tests/uninorm/test-compat-decomposition.c: Likewise.
67085         * tests/uninorm/test-composition.c: Likewise.
67086         * tests/uninorm/test-decomposing-form.c: Likewise.
67087         * tests/uninorm/test-decomposition.c: Likewise.
67088         * tests/uninorm/test-u8-nfc.c: Likewise.
67089         * tests/uninorm/test-u8-nfd.c: Likewise.
67090         * tests/uninorm/test-u8-nfkc.c: Likewise.
67091         * tests/uninorm/test-u8-nfkd.c: Likewise.
67092         * tests/uninorm/test-u8-normcmp.c: Likewise.
67093         * tests/uninorm/test-u8-normcoll.c: Likewise.
67094         * tests/uninorm/test-u16-nfc.c: Likewise.
67095         * tests/uninorm/test-u16-nfd.c: Likewise.
67096         * tests/uninorm/test-u16-nfkc.c: Likewise.
67097         * tests/uninorm/test-u16-nfkd.c: Likewise.
67098         * tests/uninorm/test-u16-normcmp.c: Likewise.
67099         * tests/uninorm/test-u16-normcoll.c: Likewise.
67100         * tests/uninorm/test-u32-nfc.c: Likewise.
67101         * tests/uninorm/test-u32-nfd.c: Likewise.
67102         * tests/uninorm/test-u32-nfkc.c: Likewise.
67103         * tests/uninorm/test-u32-nfkd.c: Likewise.
67104         * tests/uninorm/test-u32-normalize-big.c: Likewise.
67105         * tests/uninorm/test-u32-normcmp.c: Likewise.
67106         * tests/uninorm/test-u32-normcoll.c: Likewise.
67107         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
67108         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
67109         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
67110         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
67111         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
67112         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
67113         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
67114         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
67115         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
67116         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
67117         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
67118         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
67119         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
67120         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
67121         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
67122         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
67123         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
67124         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
67125         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
67126         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
67127         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
67128         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
67129         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
67130         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
67131         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
67132         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
67133         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
67134         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
67135         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
67136         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
67137         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
67138         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
67139         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
67140         * tests/uniwidth/test-u8-strwidth.c: Likewise.
67141         * tests/uniwidth/test-u8-width.c: Likewise.
67142         * tests/uniwidth/test-u16-strwidth.c: Likewise.
67143         * tests/uniwidth/test-u16-width.c: Likewise.
67144         * tests/uniwidth/test-u32-strwidth.c: Likewise.
67145         * tests/uniwidth/test-u32-width.c: Likewise.
67146         * tests/uniwidth/test-uc_width.c: Likewise.
67147         * tests/uniwidth/test-uc_width2.c: Likewise.
67148         * modules/acl-tests (Files): Add tests/macros.h.
67149         * modules/areadlink-tests (Files): Likewise.
67150         * modules/areadlink-with-size-tests (Files): Likewise.
67151         * modules/areadlinkat-tests (Files): Likewise.
67152         * modules/areadlinkat-with-size-tests (Files): Likewise.
67153         * modules/argmatch-tests (Files): Likewise.
67154         * modules/argv-iter-tests (Files): Likewise.
67155         * modules/array-list-tests (Files): Likewise.
67156         * modules/array-mergesort-tests (Files): Likewise.
67157         * modules/array-oset-tests (Files): Likewise.
67158         * modules/avltree-list-tests (Files): Likewise.
67159         * modules/avltree-oset-tests (Files): Likewise.
67160         * modules/avltreehash-list-tests (Files): Likewise.
67161         * modules/base64-tests (Files): Likewise.
67162         * modules/binary-io-tests (Files): Likewise.
67163         * modules/bitrotate-tests (Files): Likewise.
67164         * modules/btowc-tests (Files): Likewise.
67165         * modules/byteswap-tests (Files): Likewise.
67166         * modules/c-ctype-tests (Files): Likewise.
67167         * modules/c-stack-tests (Files): Likewise.
67168         * modules/c-strcase-tests (Files): Likewise.
67169         * modules/c-strcasestr-tests (Files): Likewise.
67170         * modules/c-strstr-tests (Files): Likewise.
67171         * modules/canonicalize-lgpl-tests (Files): Likewise.
67172         * modules/canonicalize-tests (Files): Likewise.
67173         * modules/carray-list-tests (Files): Likewise.
67174         * modules/ceilf-tests (Files): Likewise.
67175         * modules/ceill-tests (Files): Likewise.
67176         * modules/chown-tests (Files): Likewise.
67177         * modules/cloexec-tests (Files): Likewise.
67178         * modules/copy-file-tests (Files): Likewise.
67179         * modules/count-one-bits-tests (Files): Likewise.
67180         * modules/dprintf-posix-tests (Files): Likewise.
67181         * modules/dup2-tests (Files): Likewise.
67182         * modules/dup3-tests (Files): Likewise.
67183         * modules/duplocale-tests (Files): Likewise.
67184         * modules/fbufmode-tests (Files): Likewise.
67185         * modules/fchdir-tests (Files): Likewise.
67186         * modules/fcntl-safer-tests (Files): Likewise.
67187         * modules/fcntl-tests (Files): Likewise.
67188         * modules/fdopendir-tests (Files): Likewise.
67189         * modules/fdutimensat-tests (Files): Likewise.
67190         * modules/fflush-tests (Files): Likewise.
67191         * modules/filevercmp-tests (Files): Likewise.
67192         * modules/flock-tests (Files): Likewise.
67193         * modules/floorf-tests (Files): Likewise.
67194         * modules/floorl-tests (Files): Likewise.
67195         * modules/fnmatch-tests (Files): Likewise.
67196         * modules/fopen-safer-tests (Files): Likewise.
67197         * modules/fopen-tests (Files): Likewise.
67198         * modules/fpending-tests (Files): Likewise.
67199         * modules/fprintf-posix-tests (Files): Likewise.
67200         * modules/fpurge-tests (Files): Likewise.
67201         * modules/freadable-tests (Files): Likewise.
67202         * modules/freadahead-tests (Files): Likewise.
67203         * modules/freading-tests (Files): Likewise.
67204         * modules/freadptr-tests (Files): Likewise.
67205         * modules/freadseek-tests (Files): Likewise.
67206         * modules/freopen-tests (Files): Likewise.
67207         * modules/frexp-nolibm-tests (Files): Likewise.
67208         * modules/frexp-tests (Files): Likewise.
67209         * modules/frexpl-nolibm-tests (Files): Likewise.
67210         * modules/frexpl-tests (Files): Likewise.
67211         * modules/fseek-tests (Files): Likewise.
67212         * modules/fseeko-tests (Files): Likewise.
67213         * modules/fstrcmp-tests (Files): Likewise.
67214         * modules/fsync-tests (Files): Likewise.
67215         * modules/ftell-tests (Files): Likewise.
67216         * modules/ftello-tests (Files): Likewise.
67217         * modules/func-tests (Files): Likewise.
67218         * modules/futimens-tests (Files): Likewise.
67219         * modules/fwritable-tests (Files): Likewise.
67220         * modules/fwriting-tests (Files): Likewise.
67221         * modules/getcwd-tests (Files): Likewise.
67222         * modules/getdate-tests (Files): Likewise.
67223         * modules/getdelim-tests (Files): Likewise.
67224         * modules/getdtablesize-tests (Files): Likewise.
67225         * modules/getgroups-tests (Files): Likewise.
67226         * modules/getline-tests (Files): Likewise.
67227         * modules/getndelim2-tests (Files): Likewise.
67228         * modules/glob-tests (Files): Likewise.
67229         * modules/hash-tests (Files): Likewise.
67230         * modules/i-ring-tests (Files): Likewise.
67231         * modules/iconv-tests (Files): Likewise.
67232         * modules/iconv_open-utf-tests (Files): Likewise.
67233         * modules/idpriv-drop-tests (Files): Likewise.
67234         * modules/idpriv-droptemp-tests (Files): Likewise.
67235         * modules/inet_ntop-tests (Files): Likewise.
67236         * modules/inet_pton-tests (Files): Likewise.
67237         * modules/isblank-tests (Files): Likewise.
67238         * modules/isfinite-tests (Files): Likewise.
67239         * modules/isinf-tests (Files): Likewise.
67240         * modules/isnan-tests (Files): Likewise.
67241         * modules/isnand-nolibm-tests (Files): Likewise.
67242         * modules/isnand-tests (Files): Likewise.
67243         * modules/isnanf-nolibm-tests (Files): Likewise.
67244         * modules/isnanf-tests (Files): Likewise.
67245         * modules/isnanl-nolibm-tests (Files): Likewise.
67246         * modules/isnanl-tests (Files): Likewise.
67247         * modules/lchown-tests (Files): Likewise.
67248         * modules/ldexpl-tests (Files): Likewise.
67249         * modules/link-tests (Files): Likewise.
67250         * modules/linkat-tests (Files): Likewise.
67251         * modules/linked-list-tests (Files): Likewise.
67252         * modules/linkedhash-list-tests (Files): Likewise.
67253         * modules/localename-tests (Files): Likewise.
67254         * modules/lseek-tests (Files): Likewise.
67255         * modules/lstat-tests (Files): Likewise.
67256         * modules/mbmemcasecmp-tests (Files): Likewise.
67257         * modules/mbmemcasecoll-tests (Files): Likewise.
67258         * modules/mbrtowc-tests (Files): Likewise.
67259         * modules/mbscasecmp-tests (Files): Likewise.
67260         * modules/mbscasestr-tests (Files): Likewise.
67261         * modules/mbschr-tests (Files): Likewise.
67262         * modules/mbscspn-tests (Files): Likewise.
67263         * modules/mbsinit-tests (Files): Likewise.
67264         * modules/mbsncasecmp-tests (Files): Likewise.
67265         * modules/mbsnrtowcs-tests (Files): Likewise.
67266         * modules/mbspbrk-tests (Files): Likewise.
67267         * modules/mbspcasecmp-tests (Files): Likewise.
67268         * modules/mbsrchr-tests (Files): Likewise.
67269         * modules/mbsrtowcs-tests (Files): Likewise.
67270         * modules/mbsspn-tests (Files): Likewise.
67271         * modules/mbsstr-tests (Files): Likewise.
67272         * modules/memchr-tests (Files): Likewise.
67273         * modules/memchr2-tests (Files): Likewise.
67274         * modules/memcmp-tests (Files): Likewise.
67275         * modules/memmem-tests (Files): Likewise.
67276         * modules/memrchr-tests (Files): Likewise.
67277         * modules/mkdir-tests (Files): Likewise.
67278         * modules/mkfifo-tests (Files): Likewise.
67279         * modules/mkfifoat-tests (Files): Likewise.
67280         * modules/mknod-tests (Files): Likewise.
67281         * modules/nanosleep-tests (Files): Likewise.
67282         * modules/nl_langinfo-tests (Files): Likewise.
67283         * modules/obstack-printf-tests (Files): Likewise.
67284         * modules/open-tests (Files): Likewise.
67285         * modules/openat-tests (Files): Likewise.
67286         * modules/pipe-filter-gi-tests (Files): Likewise.
67287         * modules/pipe-filter-ii-tests (Files): Likewise.
67288         * modules/pipe2-tests (Files): Likewise.
67289         * modules/popen-safer-tests (Files): Likewise.
67290         * modules/popen-tests (Files): Likewise.
67291         * modules/posixtm-tests (Files): Likewise.
67292         * modules/pread-tests (Files): Likewise.
67293         * modules/printf-frexp-tests (Files): Likewise.
67294         * modules/printf-frexpl-tests (Files): Likewise.
67295         * modules/printf-posix-tests (Files): Likewise.
67296         * modules/priv-set-tests (Files): Likewise.
67297         * modules/quotearg-tests (Files): Likewise.
67298         * modules/random_r-tests (Files): Likewise.
67299         * modules/rawmemchr-tests (Files): Likewise.
67300         * modules/rbtree-list-tests (Files): Likewise.
67301         * modules/rbtree-oset-tests (Files): Likewise.
67302         * modules/rbtreehash-list-tests (Files): Likewise.
67303         * modules/readlink-tests (Files): Likewise.
67304         * modules/remove-tests (Files): Likewise.
67305         * modules/rename-tests (Files): Likewise.
67306         * modules/renameat-tests (Files): Likewise.
67307         * modules/rmdir-tests (Files): Likewise.
67308         * modules/round-tests (Files): Likewise.
67309         * modules/roundf-tests (Files): Likewise.
67310         * modules/roundl-tests (Files): Likewise.
67311         * modules/safe-alloc-tests (Files): Likewise.
67312         * modules/setenv-tests (Files): Likewise.
67313         * modules/sigaction-tests (Files): Likewise.
67314         * modules/signbit-tests (Files): Likewise.
67315         * modules/sleep-tests (Files): Likewise.
67316         * modules/snprintf-posix-tests (Files): Likewise.
67317         * modules/snprintf-tests (Files): Likewise.
67318         * modules/sprintf-posix-tests (Files): Likewise.
67319         * modules/stat-tests (Files): Likewise.
67320         * modules/stat-time-tests (Files): Likewise.
67321         * modules/strcasestr-tests (Files): Likewise.
67322         * modules/strchrnul-tests (Files): Likewise.
67323         * modules/strerror-tests (Files): Likewise.
67324         * modules/striconv-tests (Files): Likewise.
67325         * modules/striconveh-tests (Files): Likewise.
67326         * modules/striconveha-tests (Files): Likewise.
67327         * modules/strsignal-tests (Files): Likewise.
67328         * modules/strstr-tests (Files): Likewise.
67329         * modules/strtod-tests (Files): Likewise.
67330         * modules/strverscmp-tests (Files): Likewise.
67331         * modules/symlink-tests (Files): Likewise.
67332         * modules/symlinkat-tests (Files): Likewise.
67333         * modules/trunc-tests (Files): Likewise.
67334         * modules/truncf-tests (Files): Likewise.
67335         * modules/truncl-tests (Files): Likewise.
67336         * modules/uname-tests (Files): Likewise.
67337         * modules/unicase/cased-tests (Files): Likewise.
67338         * modules/unicase/ignorable-tests (Files): Likewise.
67339         * modules/unicase/locale-language-tests (Files): Likewise.
67340         * modules/unicase/tolower-tests (Files): Likewise.
67341         * modules/unicase/totitle-tests (Files): Likewise.
67342         * modules/unicase/toupper-tests (Files): Likewise.
67343         * modules/unicase/u8-casecmp-tests (Files): Likewise.
67344         * modules/unicase/u8-casecoll-tests (Files): Likewise.
67345         * modules/unicase/u8-casefold-tests (Files): Likewise.
67346         * modules/unicase/u8-is-cased-tests (Files): Likewise.
67347         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
67348         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
67349         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
67350         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
67351         * modules/unicase/u8-tolower-tests (Files): Likewise.
67352         * modules/unicase/u8-totitle-tests (Files): Likewise.
67353         * modules/unicase/u8-toupper-tests (Files): Likewise.
67354         * modules/unicase/u16-casecmp-tests (Files): Likewise.
67355         * modules/unicase/u16-casecoll-tests (Files): Likewise.
67356         * modules/unicase/u16-casefold-tests (Files): Likewise.
67357         * modules/unicase/u16-is-cased-tests (Files): Likewise.
67358         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
67359         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
67360         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
67361         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
67362         * modules/unicase/u16-tolower-tests (Files): Likewise.
67363         * modules/unicase/u16-totitle-tests (Files): Likewise.
67364         * modules/unicase/u16-toupper-tests (Files): Likewise.
67365         * modules/unicase/u32-casecmp-tests (Files): Likewise.
67366         * modules/unicase/u32-casecoll-tests (Files): Likewise.
67367         * modules/unicase/u32-casefold-tests (Files): Likewise.
67368         * modules/unicase/u32-is-cased-tests (Files): Likewise.
67369         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
67370         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
67371         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
67372         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
67373         * modules/unicase/u32-tolower-tests (Files): Likewise.
67374         * modules/unicase/u32-totitle-tests (Files): Likewise.
67375         * modules/unicase/u32-toupper-tests (Files): Likewise.
67376         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
67377         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
67378         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
67379         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
67380         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
67381         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
67382         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
67383         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
67384         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
67385         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
67386         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
67387         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
67388         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
67389         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
67390         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
67391         * modules/unictype/bidicategory-name-tests (Files): Likewise.
67392         * modules/unictype/bidicategory-of-tests (Files): Likewise.
67393         * modules/unictype/bidicategory-test-tests (Files): Likewise.
67394         * modules/unictype/block-list-tests (Files): Likewise.
67395         * modules/unictype/block-of-tests (Files): Likewise.
67396         * modules/unictype/block-test-tests (Files): Likewise.
67397         * modules/unictype/category-C-tests (Files): Likewise.
67398         * modules/unictype/category-Cc-tests (Files): Likewise.
67399         * modules/unictype/category-Cf-tests (Files): Likewise.
67400         * modules/unictype/category-Cn-tests (Files): Likewise.
67401         * modules/unictype/category-Co-tests (Files): Likewise.
67402         * modules/unictype/category-Cs-tests (Files): Likewise.
67403         * modules/unictype/category-L-tests (Files): Likewise.
67404         * modules/unictype/category-Ll-tests (Files): Likewise.
67405         * modules/unictype/category-Lm-tests (Files): Likewise.
67406         * modules/unictype/category-Lo-tests (Files): Likewise.
67407         * modules/unictype/category-Lt-tests (Files): Likewise.
67408         * modules/unictype/category-Lu-tests (Files): Likewise.
67409         * modules/unictype/category-M-tests (Files): Likewise.
67410         * modules/unictype/category-Mc-tests (Files): Likewise.
67411         * modules/unictype/category-Me-tests (Files): Likewise.
67412         * modules/unictype/category-Mn-tests (Files): Likewise.
67413         * modules/unictype/category-N-tests (Files): Likewise.
67414         * modules/unictype/category-Nd-tests (Files): Likewise.
67415         * modules/unictype/category-Nl-tests (Files): Likewise.
67416         * modules/unictype/category-No-tests (Files): Likewise.
67417         * modules/unictype/category-P-tests (Files): Likewise.
67418         * modules/unictype/category-Pc-tests (Files): Likewise.
67419         * modules/unictype/category-Pd-tests (Files): Likewise.
67420         * modules/unictype/category-Pe-tests (Files): Likewise.
67421         * modules/unictype/category-Pf-tests (Files): Likewise.
67422         * modules/unictype/category-Pi-tests (Files): Likewise.
67423         * modules/unictype/category-Po-tests (Files): Likewise.
67424         * modules/unictype/category-Ps-tests (Files): Likewise.
67425         * modules/unictype/category-S-tests (Files): Likewise.
67426         * modules/unictype/category-Sc-tests (Files): Likewise.
67427         * modules/unictype/category-Sk-tests (Files): Likewise.
67428         * modules/unictype/category-Sm-tests (Files): Likewise.
67429         * modules/unictype/category-So-tests (Files): Likewise.
67430         * modules/unictype/category-Z-tests (Files): Likewise.
67431         * modules/unictype/category-Zl-tests (Files): Likewise.
67432         * modules/unictype/category-Zp-tests (Files): Likewise.
67433         * modules/unictype/category-Zs-tests (Files): Likewise.
67434         * modules/unictype/category-and-not-tests (Files): Likewise.
67435         * modules/unictype/category-and-tests (Files): Likewise.
67436         * modules/unictype/category-byname-tests (Files): Likewise.
67437         * modules/unictype/category-name-tests (Files): Likewise.
67438         * modules/unictype/category-none-tests (Files): Likewise.
67439         * modules/unictype/category-of-tests (Files): Likewise.
67440         * modules/unictype/category-or-tests (Files): Likewise.
67441         * modules/unictype/category-test-withtable-tests (Files): Likewise.
67442         * modules/unictype/combining-class-tests (Files): Likewise.
67443         * modules/unictype/ctype-alnum-tests (Files): Likewise.
67444         * modules/unictype/ctype-alpha-tests (Files): Likewise.
67445         * modules/unictype/ctype-blank-tests (Files): Likewise.
67446         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
67447         * modules/unictype/ctype-digit-tests (Files): Likewise.
67448         * modules/unictype/ctype-graph-tests (Files): Likewise.
67449         * modules/unictype/ctype-lower-tests (Files): Likewise.
67450         * modules/unictype/ctype-print-tests (Files): Likewise.
67451         * modules/unictype/ctype-punct-tests (Files): Likewise.
67452         * modules/unictype/ctype-space-tests (Files): Likewise.
67453         * modules/unictype/ctype-upper-tests (Files): Likewise.
67454         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
67455         * modules/unictype/decimal-digit-tests (Files): Likewise.
67456         * modules/unictype/digit-tests (Files): Likewise.
67457         * modules/unictype/mirror-tests (Files): Likewise.
67458         * modules/unictype/numeric-tests (Files): Likewise.
67459         * modules/unictype/property-alphabetic-tests (Files): Likewise.
67460         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
67461         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
67462         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
67463         Likewise.
67464         * modules/unictype/property-bidi-block-separator-tests (Files):
67465         Likewise.
67466         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
67467         Likewise.
67468         * modules/unictype/property-bidi-common-separator-tests (Files):
67469         Likewise.
67470         * modules/unictype/property-bidi-control-tests (Files): Likewise.
67471         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
67472         Likewise.
67473         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
67474         Likewise.
67475         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
67476         Likewise.
67477         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
67478         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
67479         Likewise.
67480         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
67481         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
67482         Likewise.
67483         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
67484         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
67485         * modules/unictype/property-bidi-segment-separator-tests (Files):
67486         Likewise.
67487         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
67488         * modules/unictype/property-byname-tests (Files): Likewise.
67489         * modules/unictype/property-combining-tests (Files): Likewise.
67490         * modules/unictype/property-composite-tests (Files): Likewise.
67491         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
67492         * modules/unictype/property-dash-tests (Files): Likewise.
67493         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
67494         * modules/unictype/property-default-ignorable-code-point-tests (Files):
67495         Likewise.
67496         * modules/unictype/property-deprecated-tests (Files): Likewise.
67497         * modules/unictype/property-diacritic-tests (Files): Likewise.
67498         * modules/unictype/property-extender-tests (Files): Likewise.
67499         * modules/unictype/property-format-control-tests (Files): Likewise.
67500         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
67501         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
67502         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
67503         * modules/unictype/property-hex-digit-tests (Files): Likewise.
67504         * modules/unictype/property-hyphen-tests (Files): Likewise.
67505         * modules/unictype/property-id-continue-tests (Files): Likewise.
67506         * modules/unictype/property-id-start-tests (Files): Likewise.
67507         * modules/unictype/property-ideographic-tests (Files): Likewise.
67508         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
67509         * modules/unictype/property-ids-trinary-operator-tests (Files):
67510         Likewise.
67511         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
67512         * modules/unictype/property-iso-control-tests (Files): Likewise.
67513         * modules/unictype/property-join-control-tests (Files): Likewise.
67514         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
67515         * modules/unictype/property-line-separator-tests (Files): Likewise.
67516         * modules/unictype/property-logical-order-exception-tests (Files):
67517         Likewise.
67518         * modules/unictype/property-lowercase-tests (Files): Likewise.
67519         * modules/unictype/property-math-tests (Files): Likewise.
67520         * modules/unictype/property-non-break-tests (Files): Likewise.
67521         * modules/unictype/property-not-a-character-tests (Files): Likewise.
67522         * modules/unictype/property-numeric-tests (Files): Likewise.
67523         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
67524         * modules/unictype/property-other-default-ignorable-code-point-tests
67525         (Files): Likewise.
67526         * modules/unictype/property-other-grapheme-extend-tests (Files):
67527         Likewise.
67528         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
67529         * modules/unictype/property-other-id-start-tests (Files): Likewise.
67530         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
67531         * modules/unictype/property-other-math-tests (Files): Likewise.
67532         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
67533         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
67534         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
67535         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
67536         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
67537         * modules/unictype/property-private-use-tests (Files): Likewise.
67538         * modules/unictype/property-punctuation-tests (Files): Likewise.
67539         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
67540         * modules/unictype/property-radical-tests (Files): Likewise.
67541         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
67542         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
67543         * modules/unictype/property-space-tests (Files): Likewise.
67544         * modules/unictype/property-terminal-punctuation-tests (Files):
67545         Likewise.
67546         * modules/unictype/property-test-tests (Files): Likewise.
67547         * modules/unictype/property-titlecase-tests (Files): Likewise.
67548         * modules/unictype/property-unassigned-code-value-tests (Files):
67549         Likewise.
67550         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
67551         * modules/unictype/property-uppercase-tests (Files): Likewise.
67552         * modules/unictype/property-variation-selector-tests (Files): Likewise.
67553         * modules/unictype/property-white-space-tests (Files): Likewise.
67554         * modules/unictype/property-xid-continue-tests (Files): Likewise.
67555         * modules/unictype/property-xid-start-tests (Files): Likewise.
67556         * modules/unictype/property-zero-width-tests (Files): Likewise.
67557         * modules/unictype/scripts-tests (Files): Likewise.
67558         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
67559         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
67560         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
67561         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
67562         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
67563         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
67564         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
67565         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
67566         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
67567         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
67568         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
67569         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
67570         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
67571         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
67572         * modules/uninorm/composition-tests (Files): Likewise.
67573         * modules/uninorm/decomposing-form-tests (Files): Likewise.
67574         * modules/uninorm/decomposition-tests (Files): Likewise.
67575         * modules/uninorm/filter-tests (Files): Likewise.
67576         * modules/uninorm/nfc-tests (Files): Likewise.
67577         * modules/uninorm/nfd-tests (Files): Likewise.
67578         * modules/uninorm/nfkc-tests (Files): Likewise.
67579         * modules/uninorm/nfkd-tests (Files): Likewise.
67580         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
67581         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
67582         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
67583         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
67584         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
67585         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
67586         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
67587         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
67588         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
67589         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
67590         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
67591         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
67592         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
67593         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
67594         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
67595         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
67596         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
67597         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
67598         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
67599         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
67600         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
67601         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
67602         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
67603         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
67604         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
67605         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
67606         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
67607         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
67608         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
67609         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
67610         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
67611         * modules/uniwidth/u8-width-tests (Files): Likewise.
67612         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
67613         * modules/uniwidth/u16-width-tests (Files): Likewise.
67614         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
67615         * modules/uniwidth/u32-width-tests (Files): Likewise.
67616         * modules/uniwidth/width-tests (Files): Likewise.
67617         * modules/unlink-tests (Files): Likewise.
67618         * modules/unsetenv-tests (Files): Likewise.
67619         * modules/usleep-tests (Files): Likewise.
67620         * modules/utimens-tests (Files): Likewise.
67621         * modules/utimensat-tests (Files): Likewise.
67622         * modules/vasnprintf-posix-tests (Files): Likewise.
67623         * modules/vasnprintf-tests (Files): Likewise.
67624         * modules/vasprintf-posix-tests (Files): Likewise.
67625         * modules/vasprintf-tests (Files): Likewise.
67626         * modules/vdprintf-posix-tests (Files): Likewise.
67627         * modules/vfprintf-posix-tests (Files): Likewise.
67628         * modules/vprintf-posix-tests (Files): Likewise.
67629         * modules/vsnprintf-posix-tests (Files): Likewise.
67630         * modules/vsnprintf-tests (Files): Likewise.
67631         * modules/vsprintf-posix-tests (Files): Likewise.
67632         * modules/wcrtomb-tests (Files): Likewise.
67633         * modules/wcsnrtombs-tests (Files): Likewise.
67634         * modules/wcsrtombs-tests (Files): Likewise.
67635         * modules/wctype-tests (Files): Likewise.
67636         * modules/wcwidth-tests (Files): Likewise.
67637         * modules/xmemdup0-tests (Files): Likewise.
67638         * modules/xprintf-posix-tests (Files): Likewise.
67639         * modules/xvasprintf-tests (Files): Likewise.
67641 2009-12-24  Eric Blake  <ebb9@byu.net>
67643         test-nanosleep: fix typo
67644         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
67645         patch.
67646         Reported by Bruno Haible.
67648 2009-12-24  Bruno Haible  <bruno@clisp.org>
67650         Reduce namespace pollution on glibc systems.
67651         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
67652         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
67653         systems.
67654         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
67655         <getopt.h> on glibc systems.
67656         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
67657         systems.
67658         * lib/fcntl.c: Include <unistd.h> here instead.
67660 2009-12-24  Bruno Haible  <bruno@clisp.org>
67662         * lib/stdlib.in.h (includes): Fix typo in today's commit.
67664 2009-12-24  Eric Blake  <ebb9@byu.net>
67666         tests: add signature checks
67667         * tests/signature.h (SIGNATURE_CHECK): New file.
67668         * modules/atexit-tests (Files): Use it.
67669         * modules/btowc-tests (Files): Likewise.
67670         * modules/canonicalize-lgpl-tests (Files): Likewise.
67671         * modules/ceilf-tests (Files): Likewise.
67672         * modules/ceill-tests (Files): Likewise.
67673         * modules/chown-tests (Files): Likewise.
67674         * modules/dprintf-posix-tests (Files): Likewise.
67675         * modules/dup2-tests (Files): Likewise.
67676         * modules/dup3-tests (Files): Likewise.
67677         * modules/duplocale-tests (Files): Likewise.
67678         * modules/fchdir-tests (Files): Likewise.
67679         * modules/fcntl-tests (Files): Likewise.
67680         * modules/fdopendir-tests (Files): Likewise.
67681         * modules/fflush-tests (Files): Likewise.
67682         * modules/flock-tests (Files): Likewise.
67683         * modules/floorf-tests (Files): Likewise.
67684         * modules/floorl-tests (Files): Likewise.
67685         * modules/fnmatch-tests (Files): Likewise.
67686         * modules/fopen-tests (Files): Likewise.
67687         * modules/fprintf-posix-tests (Files): Likewise.
67688         * modules/freopen-tests (Files): Likewise.
67689         * modules/frexp-nolibm-tests (Files): Likewise.
67690         * modules/frexp-tests (Files): Likewise.
67691         * modules/frexpl-nolibm-tests (Files): Likewise.
67692         * modules/frexpl-tests (Files): Likewise.
67693         * modules/fseek-tests (Files): Likewise.
67694         * modules/fseeko-tests (Files): Likewise.
67695         * modules/fsync-tests (Files): Likewise.
67696         * modules/ftell-tests (Files): Likewise.
67697         * modules/ftello-tests (Files): Likewise.
67698         * modules/futimens-tests (Files): Likewise.
67699         * modules/getaddrinfo-tests (Files): Likewise.
67700         * modules/getcwd-tests (Files): Likewise.
67701         * modules/getdelim-tests (Files): Likewise.
67702         * modules/getdtablesize-tests (Files): Likewise.
67703         * modules/getgroups-tests (Files): Likewise.
67704         * modules/gethostname-tests (Files): Likewise.
67705         * modules/getline-tests (Files): Likewise.
67706         * modules/getopt-posix-tests (Files): Likewise.
67707         * modules/gettimeofday-tests (Files): Likewise.
67708         * modules/glob-tests (Files): Likewise.
67709         * modules/iconv-tests (Files): Likewise.
67710         * modules/inet_ntop-tests (Files): Likewise.
67711         * modules/inet_pton-tests (Files): Likewise.
67712         * modules/isblank-tests (Files): Likewise.
67713         * modules/lchown-tests (Files): Likewise.
67714         * modules/ldexpl-tests (Files): Likewise.
67715         * modules/link-tests (Files): Likewise.
67716         * modules/linkat-tests (Files): Likewise.
67717         * modules/lseek-tests (Files): Likewise.
67718         * modules/lstat-tests (Files): Likewise.
67719         * modules/mbrtowc-tests (Files): Likewise.
67720         * modules/mbsinit-tests (Files): Likewise.
67721         * modules/mbsnrtowcs-tests (Files): Likewise.
67722         * modules/mbsrtowcs-tests (Files): Likewise.
67723         * modules/memchr-tests (Files): Likewise.
67724         * modules/memcmp-tests (Files): Likewise.
67725         * modules/memmem-tests (Files): Likewise.
67726         * modules/memrchr-tests (Files): Likewise.
67727         * modules/mkdir-tests (Files): Likewise.
67728         * modules/mkfifo-tests (Files): Likewise.
67729         * modules/mkfifoat-tests (Files): Likewise.
67730         * modules/mknod-tests (Files): Likewise.
67731         * modules/nanosleep-tests (Files): Likewise.
67732         * modules/nl_langinfo-tests (Files): Likewise.
67733         * modules/obstack-printf-tests (Files): Likewise.
67734         * modules/open-tests (Files): Likewise.
67735         * modules/openat-tests (Files): Likewise.
67736         * modules/perror-tests (Files): Likewise.
67737         * modules/pipe2-tests (Files): Likewise.
67738         * modules/poll-tests (Files): Likewise.
67739         * modules/popen-tests (Files): Likewise.
67740         * modules/posix_spawn-tests (Files): Likewise.
67741         * modules/posix_spawnp-tests (Files): Likewise.
67742         * modules/pread-tests (Files): Likewise.
67743         * modules/printf-posix-tests (Files): Likewise.
67744         * modules/pty-tests (Files): Likewise.
67745         * modules/random_r-tests (Files): Likewise.
67746         * modules/rawmemchr-tests (Files): Likewise.
67747         * modules/readlink-tests (Files): Likewise.
67748         * modules/remove-tests (Files): Likewise.
67749         * modules/rename-tests (Files): Likewise.
67750         * modules/renameat-tests (Files): Likewise.
67751         * modules/rmdir-tests (Files): Likewise.
67752         * modules/round-tests (Files): Likewise.
67753         * modules/roundf-tests (Files): Likewise.
67754         * modules/roundl-tests (Files): Likewise.
67755         * modules/select-tests (Files): Likewise.
67756         * modules/setenv-tests (Files): Likewise.
67757         * modules/sigaction-tests (Files): Likewise.
67758         * modules/sleep-tests (Files): Likewise.
67759         * modules/snprintf-posix-tests (Files): Likewise.
67760         * modules/snprintf-tests (Files): Likewise.
67761         * modules/sprintf-posix-tests (Files): Likewise.
67762         * modules/stat-tests (Files): Likewise.
67763         * modules/strcasestr-tests (Files): Likewise.
67764         * modules/strchrnul-tests (Files): Likewise.
67765         * modules/strerror-tests (Files): Likewise.
67766         * modules/strsignal-tests (Files): Likewise.
67767         * modules/strstr-tests (Files): Likewise.
67768         * modules/strtod-tests (Files): Likewise.
67769         * modules/strverscmp-tests (Files): Likewise.
67770         * modules/symlink-tests (Files): Likewise.
67771         * modules/symlinkat-tests (Files): Likewise.
67772         * modules/times-tests (Files): Likewise.
67773         * modules/trunc-tests (Files): Likewise.
67774         * modules/truncf-tests (Files): Likewise.
67775         * modules/truncl-tests (Files): Likewise.
67776         * modules/tsearch-tests (Files): Likewise.
67777         * modules/uname-tests (Files): Likewise.
67778         * modules/unlink-tests (Files): Likewise.
67779         * modules/unsetenv-tests (Files): Likewise.
67780         * modules/usleep-tests (Files): Likewise.
67781         * modules/utimensat-tests (Files): Likewise.
67782         * modules/vasprintf-tests (Files): Likewise.
67783         * modules/vdprintf-posix-tests (Files): Likewise.
67784         * modules/vfprintf-posix-tests (Files): Likewise.
67785         * modules/vprintf-posix-tests (Files): Likewise.
67786         * modules/vsnprintf-posix-tests (Files): Likewise.
67787         * modules/vsnprintf-tests (Files): Likewise.
67788         * modules/vsprintf-posix-tests (Files): Likewise.
67789         * modules/wcrtomb-tests (Files): Likewise.
67790         * modules/wcsnrtombs-tests (Files): Likewise.
67791         * modules/wcsrtombs-tests (Files): Likewise.
67792         * modules/wcwidth-tests (Files): Likewise.
67793         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
67794         * tests/test-isinf.c (isinf): Likewise.
67795         * tests/test-isnan.c (isnan): Likewise.
67796         * tests/test-signbit.c (signbit): Likewise.
67797         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
67798         declaration, either as macro or with correct signature.
67799         (select): Ensure function under test is declared with correct
67800         signature in correct header.
67801         * tests/test-atexit.c (atexit): Likewise.
67802         * tests/test-btowc.c (btowc): Likewise.
67803         * tests/test-canonicalize-lgpl.c (realpath)
67804         (canonicalize_file_name): Likewise.
67805         * tests/test-ceilf1.c (ceilf): Likewise.
67806         * tests/test-ceill.c (ceill): Likewise.
67807         * tests/test-chown.c (chown): Likewise.
67808         * tests/test-dprintf-posix.c (dprintf): Likewise.
67809         * tests/test-dup2.c (dup2): Likewise.
67810         * tests/test-dup3.c (dup3): Likewise.
67811         * tests/test-duplocale.c (duplocale): Likewise.
67812         * tests/test-fchdir.c (fchdir): Likewise.
67813         * tests/test-fchownat.c (fchownat): Likewise.
67814         * tests/test-fcntl.c (fcntl): Likewise.
67815         * tests/test-fdopendir.c (fdopendir): Likewise.
67816         * tests/test-fflush.c (fflush): Likewise.
67817         * tests/test-flock.c (flock): Likewise.
67818         * tests/test-floorf1.c (floorf): Likewise.
67819         * tests/test-floorl.c (floorl): Likewise.
67820         * tests/test-fnmatch.c (fnmatch): Likewise.
67821         * tests/test-fopen.c (fopen): Likewise.
67822         * tests/test-fprintf-posix.c (fprintf): Likewise.
67823         * tests/test-freopen.c (freopen): Likewise.
67824         * tests/test-frexp.c (frexp): Likewise.
67825         * tests/test-frexpl.c (frexpl): Likewise.
67826         * tests/test-fseek.c (fseek): Likewise.
67827         * tests/test-fseeko.c (fseeko): Likewise.
67828         * tests/test-fstatat.c (fstatat): Likewise.
67829         * tests/test-fsync.c (fsync): Likewise.
67830         * tests/test-ftell.c (ftell): Likewise.
67831         * tests/test-ftello.c (ftello): Likewise.
67832         * tests/test-futimens.c (futimens): Likewise.
67833         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
67834         (gai_strerror): Likewise.
67835         * tests/test-getcwd.c (getcwd): Likewise.
67836         * tests/test-getdelim.c (getdelim): Likewise.
67837         * tests/test-getdtablesize.c (getdtablesize): Likewise.
67838         * tests/test-getgroups.c (getgroups): Likewise.
67839         * tests/test-gethostname.c (gethostname): Likewise.
67840         * tests/test-getline.c (getline): Likewise.
67841         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
67842         Likewise.
67843         * tests/test-gettimeofday.c (gettimeofday): Likewise.
67844         * tests/test-glob.c (glob, globfree): Likewise.
67845         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
67846         * tests/test-inet_ntop.c (inet_ntop): Likewise.
67847         * tests/test-inet_pton.c (inet_pton): Likewise.
67848         * tests/test-isblank.c (isblank): Likewise.
67849         * tests/test-lchown.c (lchown): Likewise.
67850         * tests/test-ldexpl.c (ldexpl): Likewise.
67851         * tests/test-link.c (link): Likewise.
67852         * tests/test-linkat.c (linkat): Likewise.
67853         * tests/test-lseek.c (lseek): Likewise.
67854         * tests/test-lstat.c (lstat): Likewise.
67855         * tests/test-mbrtowc.c (mbrtowc): Likewise.
67856         * tests/test-mbsinit.c (mbsinit): Likewise.
67857         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
67858         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
67859         * tests/test-memchr.c (memchr): Likewise.
67860         * tests/test-memcmp.c (memcmp): Likewise.
67861         * tests/test-memmem.c (memmem): Likewise.
67862         * tests/test-memrchr.c (memrchr): Likewise.
67863         * tests/test-mkdir.c (mkdir): Likewise.
67864         * tests/test-mkdirat.c (mkdirat): Likewise.
67865         * tests/test-mkfifo.c (mkfifo): Likewise.
67866         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
67867         * tests/test-mknod.c (mknod): Likewise.
67868         * tests/test-nanosleep.c (nanosleep): Likewise.
67869         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
67870         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
67871         Likewise.
67872         * tests/test-open.c (open): Likewise.
67873         * tests/test-openat.c (openat): Likewise.
67874         * tests/test-perror.c (perror): Likewise.
67875         * tests/test-pipe2.c (pipe2): Likewise.
67876         * tests/test-poll.c (poll): Likewise.
67877         * tests/test-popen.c (popen, pclose): Likewise.
67878         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
67879         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
67880         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
67881         (posix_spawn_file_actions_destroy)
67882         (posix_spawn_file_actions_addclose)
67883         (posix_spawn_file_actions_addopen)
67884         (posix_spawn_file_actions_adddup2): Likewise.
67885         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
67886         * tests/test-pread.c (pread): Likewise.
67887         * tests/test-printf-posix.c (printf): Likewise.
67888         * tests/test-pty.c (openpty, forkpty): Likewise.
67889         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
67890         (random_r): Likewise.
67891         * tests/test-rawmemchr.c (rawmemchr): Likewise.
67892         * tests/test-readlink.c (readlink): Likewise.
67893         * tests/test-remove.c (remove): Likewise.
67894         * tests/test-rename.c (rename): Likewise.
67895         * tests/test-renameat.c (renameat): Likewise.
67896         * tests/test-rmdir.c (rmdir): Likewise.
67897         * tests/test-round1.c (round): Likewise.
67898         * tests/test-roundf1.c (roundf): Likewise.
67899         * tests/test-roundl.c (roundl): Likewise.
67900         * tests/test-setenv.c (setenv): Likewise.
67901         * tests/test-sigaction.c (sigaction): Likewise.
67902         * tests/test-sleep.c (sleep): Likewise.
67903         * tests/test-snprintf.c (snprintf): Likewise.
67904         * tests/test-sprintf-posix.c (sprintf): Likewise.
67905         * tests/test-stat.c (stat): Likewise.
67906         * tests/test-stpncpy.c (stpncpy): Likewise.
67907         * tests/test-strcasestr.c (strcasestr): Likewise.
67908         * tests/test-strchrnul.c (strchrnul): Likewise.
67909         * tests/test-strerror.c (strerror): Likewise.
67910         * tests/test-strsignal.c (strsignal): Likewise.
67911         * tests/test-strstr.c (strstr): Likewise.
67912         * tests/test-strtod.c (strtod): Likewise.
67913         * tests/test-strverscmp.c (strverscmp): Likewise.
67914         * tests/test-symlink.c (symlink): Likewise.
67915         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
67916         * tests/test-times.c (times): Likewise.
67917         * tests/test-trunc1.c (trunc): Likewise.
67918         * tests/test-truncf1.c (truncf): Likewise.
67919         * tests/test-truncl.c (truncl): Likewise.
67920         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
67921         Likewise.
67922         * tests/test-uname.c (uname): Likewise.
67923         * tests/test-unlink.c (unlink): Likewise.
67924         * tests/test-unlinkat.c (unlinkat): Likewise.
67925         * tests/test-unsetenv.c (unsetenv): Likewise.
67926         * tests/test-usleep.c (usleep): Likewise.
67927         * tests/test-utimensat.c (utimensat): Likewise.
67928         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
67929         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
67930         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
67931         * tests/test-vprintf-posix.c (vprintf): Likewise.
67932         * tests/test-vsnprintf.c (vsnprintf): Likewise.
67933         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
67934         * tests/test-wcrtomb.c (wcrtomb): Likewise.
67935         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
67936         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
67937         * tests/test-wcwidth.c (wcwidth): Likewise.
67939         build: pull in conditional headers during GNULIB_POSIXCHECK
67940         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
67941         definitions from any conditionally-included headers.
67942         * lib/stdlib.in.h (includes): Likewise.
67943         * lib/unistd.in.h (includes): Likewise.
67945 2009-12-24  Bruno Haible  <bruno@clisp.org>
67947         * tests/test-argv-iter.c: Include header file being tested immediately
67948         after config.h.
67949         * tests/test-base64.c: Likewise.
67950         * tests/test-flock.c: Likewise.
67951         * tests/test-fsync.c: Likewise.
67952         * tests/test-getdate.c: Likewise.
67953         * tests/test-getndelim2.c: Likewise.
67954         * tests/test-isfinite.c: Likewise.
67955         * tests/test-isinf.c: Likewise.
67956         * tests/test-strerror.c: Likewise.
67957         * tests/test-strsignal.c: Likewise.
67959 2009-12-23  Eric Blake  <ebb9@byu.net>
67961         unistd: work around cygwin bug
67962         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
67963         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
67964         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
67966 2009-12-23  Bruno Haible  <bruno@clisp.org>
67968         localename: More tests.
67969         * tests/test-localename.c (SIZEOF): New macro.
67970         (categories): New variable.
67971         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
67972         test_locale_name_default): Add test w.r.t. thread locale.
67973         (test_locale_name_thread): New function.
67974         (main): Invoke it.
67976         localename: Make aware of thread locale.
67977         * lib/localename.h (gl_locale_name_thread): New declaration.
67978         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
67979         behaviour with respect to thread locale.
67980         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
67981         <langinfo.h>, glthread/lock.h.
67982         (SIZE_BITS): New macro.
67983         (string_hash): New function.
67984         (struct hash_node): New type.
67985         (HASH_TABLE_SIZE): New macro.
67986         (struniq_hash_table, struniq_lock): New variables.
67987         (struniq): New function.
67988         (gl_locale_name_thread): New function.
67989         (gl_locale_name): Invoke it.
67990         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
67991         * modules/localename (Depends-on): Add lock.
67992         Reported by Mike Gran <spk121@yahoo.com>.
67994 2009-12-23  Eric Blake  <ebb9@byu.net>
67996         va-args: new module
67997         * modules/va-args: New file.
67998         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
67999         * MODULES.html.sh (Core language properties): Mention it.
68001         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
68002         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
68003         named alias for __attribute__((__unused__)).
68004         * lib/chown.c: Update client.
68005         * lib/fchmodat.c: Likewise.
68006         * lib/fts.c: Likewise.
68007         * lib/getdate.y: Likewise.
68008         * lib/getgroups.c: Likewise.
68009         * lib/getopt.c: Likewise.
68010         * lib/getugroups.c: Likewise.
68011         * lib/mkdir.c: Likewise.
68012         * lib/mkfifo.c: Likewise.
68013         * lib/mkfifoat.c: Likewise.
68014         * lib/mknod.c: Likewise.
68015         * lib/mknodat.c: Likewise.
68016         * lib/readlink.c: Likewise.
68017         * lib/se-context.in.h: Likewise.
68018         * lib/se-selinux.in.h: Likewise.
68019         * lib/sockets.c: Likewise.
68020         * lib/symlink.c: Likewise.
68021         * lib/symlinkat.c: Likewise.
68022         * lib/unicodeio.c: Likewise.
68023         * lib/unistr.h: Likewise.
68024         * tests/test-areadlink.c: Likewise.
68025         * tests/test-areadlinkat.c: Likewise.
68026         * tests/test-filenamecat.c: Likewise.
68027         * tests/test-fseeko.c: Likewise.
68028         * tests/test-ftello.c: Likewise.
68029         * tests/test-getdate.c: Likewise.
68030         * tests/test-getgroups.c: Likewise.
68031         * tests/test-gethostname.c: Likewise.
68032         * tests/test-quotearg.c: Likewise.
68033         * tests/test-version-etc.c: Likewise.
68034         * tests/test-xalloc-die.c: Likewise.
68035         * tests/test-xfprintf-posix.c: Likewise.
68036         * tests/test-xprintf-posix.c: Likewise.
68037         * tests/test-xvasprintf.c: Likewise.
68039         tests: avoid compiler warnings
68040         * tests/test-fcntl.c (main): Delete unused parameters.
68041         * tests/test-freopen-safer.c (main): Likewise.
68042         * tests/test-xalloc-die.c (main): Mark unused parameters.
68043         * tests/test-fseeko.c (main): Likewise.
68044         * tests/test-ftello.c (main): Likewise.
68045         * tests/test-nanosleep.c (main): Avoid declaration warning.
68046         * tests/test-sleep.c (main): Likewise.
68047         * tests/test-unsetenv.c (main): Silence warning about string
68048         literal.
68049         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
68051 2009-12-23  Bruno Haible  <bruno@clisp.org>
68053         * tests/test-localename.c (test_locale_name): New function, extracted
68054         from main. Also test mixed situations.
68055         (test_locale_name_posix, test_locale_name_environ,
68056         test_locale_name_default): New functions.
68057         (main): Invoke them all.
68058         * modules/localename-tests (configure.ac): Test for newlocale.
68060 2009-12-23  Bruno Haible  <bruno@clisp.org>
68062         unistd: Ensure getcwd gets declared before being overridden.
68063         * lib/unistd.in.h: Conditionally include <io.h>.
68065 2009-12-22  Bruno Haible  <bruno@clisp.org>
68067         wchar: Diagnose broken combination of glibc and gcc versions and flags.
68068         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
68069         (gl_WCHAR_H): Invoke it.
68070         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
68071         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
68072         Reported by Karl Berry <karl@freefriends.org>.
68074 2009-12-22  Eric Blake  <ebb9@byu.net>
68076         math, unistd: avoid redundant includes
68077         * lib/math.in.h (isnan): No need to re-include <math.h>.
68078         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
68080         getsubopt: work around cygwin bug
68081         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
68082         avoid conflicting with system getsubopt.
68083         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
68084         bug.
68086         getopt: synchronize from glibc
68087         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
68088         parameter order.  Adjust all callers.
68089         (_getopt_internal_r, main): Adjust quoting in error messages.
68090         Drop considerations for outdated POSIX 1003.2 error message.
68091         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
68092         callers.
68093         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
68095         test-getopt: test stderr behavior
68096         * modules/getopt-posix-tests (Depends-on): Add dup2.
68097         * tests/test-getopt.c (ASSERT): Avoid stderr.
68098         (main): Move stderr to a temporary file.
68099         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
68100         Instead, add parameter to inform caller if output occurred.
68101         (test_getopt): Adjust all existing tests to expect silence, and
68102         add new tests of leading ":".
68103         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
68104         glibc shortcomings with leading "-:" or "+:" in optstring.
68105         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
68106         Likewise.
68107         * doc/posix-functions/getopt.texi (getopt): Likewise.
68109         test-getopt: enhance test
68110         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
68111         supports optind=0.
68112         * tests/test-getopt.c (OPTIND_MIN): Move...
68113         * tests/test-getopt.h (OPTIND_MIN): ...here.
68114         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
68115         Require that optind=0 works, since modern BSD supports it in
68116         addition to optreset, and since coreutils expects it.
68117         (test_getopt_long_only): New test.
68118         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
68119         glibc shortcomings with 'W;', and enforcement of optind=0.
68120         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
68121         Likewise.
68123 2009-12-21  Bruno Haible  <bruno@clisp.org>
68125         localename: Improvements for MacOS X and Cygwin.
68126         * lib/localename.h (gl_locale_name_environ): New declaration.
68127         * lib/localename.c (gl_locale_name_environ): New function, extracted from
68128         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
68129         (gl_locale_name_posix): Invoke it.
68130         (gl_locale_name_default): Add comments. Use Windows native API also on
68131         Cygwin.
68133 2009-12-21  Bruno Haible  <bruno@clisp.org>
68135         Update list of Win32 locale ids.
68136         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
68137         (LANG_SAMI): Renamed from LANG_SAAMI.
68138         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
68139         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
68140         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
68141         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
68142         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
68143         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
68144         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
68145         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
68146         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
68147         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
68148         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
68149         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
68150         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
68151         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
68152         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
68153         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
68154         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
68155         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
68156         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
68157         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
68158         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
68159         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
68160         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
68161         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
68162         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
68163         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
68164         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
68165         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
68166         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
68167         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
68168         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
68169         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
68170         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
68171         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
68172         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
68173         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
68174         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
68175         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
68176         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
68177         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
68178         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
68179         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
68180         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
68181         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
68182         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
68183         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
68184         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
68185         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
68186         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
68187         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
68188         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
68189         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
68190         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
68191         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
68192         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
68193         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
68194         Add more languages and countries for Sami, Sorbian. Add more countries
68195         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
68196         for Pashto. Change country for Syriac, Tswana.
68198 2009-12-21  Eric Blake  <ebb9@byu.net>
68200         test-utimens: avoid spurious failure
68201         * tests/test-chown.h (nap): Factor...
68202         * tests/nap.h: ...into new file.
68203         * tests/test-lchown.h (nap): Avoid duplication.
68204         * tests/test-utimens-common.h (nap): Use shared implementation,
68205         necessary on file systems with 1-second resolution.
68206         * modules/chown-tests (Files): Include new file.
68207         * modules/fdutimensat-tests (Files): Likewise.
68208         * modules/futimens-tests (Files): Likewise.
68209         * modules/lchown-tests (Files): Likewise.
68210         * modules/openat-tests (Files): Likewise.
68211         * modules/utimens-tests (Files): Likewise.
68212         * modules/utimensat-tests (Files): Likewise.
68214 2009-12-19  Eric Blake  <ebb9@byu.net>
68216         futimens, utimensat: work around Linux bug
68217         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
68218         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
68219         * lib/utimensat.c (rpl_utimensat): Work around it.
68220         * lib/futimens.c (rpl_futimens): Adjust comment.
68222         utimens: work around Linux ctime bug
68223         * lib/utimens.c (detect_ctime_bug): New helper function.
68224         (update_timespec): Differentiate between workaround needed for
68225         this bug vs. what is needed for systems that lack utimensat.
68226         (fdutimens, lutimens): Work around bug.
68228         utimens: check for ctime update
68229         * tests/test-utimens-common.h (check_ctime): Define.
68230         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
68231         * tests/test-futimens.h (test_futimens): Likewise.
68232         * tests/test-lutimens.h (test_lutimens): Likewise.
68233         * doc/posix-functions/futimens.texi (futimens): Document the bug.
68234         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
68236 2009-12-19  Bruno Haible  <bruno@clisp.org>
68238         dprintf-posix: Check against memory leak fixed on 2009-12-15.
68239         * tests/test-dprintf-posix2.sh: New file.
68240         * tests/test-dprintf-posix2.c: New file.
68241         * modules/dprintf-posix-tests (Files): Add them.
68242         (configure.ac): Check for getrlimit and setrlimit.
68243         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
68245 2009-12-19  Bruno Haible  <bruno@clisp.org>
68247         fprintf-posix: Check against memory leak fixed on 2009-12-15.
68248         * tests/test-fprintf-posix3.sh: New file.
68249         * tests/test-fprintf-posix3.c: New file.
68250         * modules/fprintf-posix-tests (Files): Add them.
68251         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
68253 2009-12-19  Eric Blake  <ebb9@byu.net>
68255         dirfd: fix prototype
68256         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
68257         * lib/dirfd.c (dirfd): Likewise.
68259         canonicalize: reduce memory usage
68260         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
68261         allocation to size.
68262         Reported by Solar Designer <solar@openwall.com>.
68264 2009-12-19  Bruno Haible  <bruno@clisp.org>
68266         New module attribute 'Applicability'.
68267         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
68268         * gnulib-tool: New option --extract-applicability.
68269         (func_usage): Document it.
68270         (sed_extract_prog): Recognize it.
68271         (func_get_applicability): New function.
68272         (func_import): Generalize handling of 'link-warning' module.
68273         * modules/link-warning (Applicability): New section.
68274         * modules/arg-nonnull (Applicability): New section.
68275         Repoted by Simon Josefsson <simon@josefsson.org>.
68277 2009-12-19  Bruno Haible  <bruno@clisp.org>
68279         fflush: tweak
68280         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
68281         * lib/fseeko.c (rpl_fseeko): Likewise.
68283 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
68285         * lib/gl_list.h: Fix typo in comment.
68287 2009-12-16  Eric Blake  <ebb9@byu.net>
68289         fcntl: use to simplify other modules
68290         * modules/cloexec (Depends-on): Add fcntl.
68291         * modules/fchdir (Depends-on): Likewise.
68292         * modules/fd-safer-flag (Depends-on): Likewise.
68293         * modules/unistd-safer (Depends-on): Likewise.
68294         * modules/dup3 (configure.ac): Set module indicator.
68295         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
68296         missing.
68297         * lib/fchdir.c (_gl_register_dup): Fix comment.
68298         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
68299         * lib/dup-safer.c (dup_safer): Likewise.
68300         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
68301         * lib/dup3.c (dup3): Likewise.
68302         * tests/test-fchdir.c (main): Enhance test.
68303         Fixes a dup_cloexec bug reported by Ondřej Vašík.
68305         fcntl: port portions of fcntl to mingw
68306         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
68307         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
68308         replacement for mingw.
68309         * modules/fcntl (Description): Update.
68310         (Depends-on): Add dup2.
68311         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
68312         * modules/fcntl-h (Makefile.am): Substitute it.
68313         * lib/fcntl.in.h (fcntl): Update declaration.
68314         (F_DUPFD, F_GETFD): New macros, when needed.
68315         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
68316         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
68317         * tests/test-fcntl.c (check_flags, main): Enhance test for items
68318         we now guarantee.
68320         fcntl: work around cygwin bug in F_DUPFD
68321         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
68322         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
68323         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
68324         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
68325         * doc/posix-functions/fcntl.texi (fcntl): Document it.
68327         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
68328         * modules/fcntl (Files): List new files.
68329         (configure.ac): Run a test.
68330         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
68331         * lib/fcntl.c (rpl_fcntl): Likewise.
68332         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
68333         (gl_FCNTL_H): Always replace fcntl.h.
68334         * modules/fcntl-h (Makefile.am): Substitute witnesses.
68335         * lib/fcntl.in.h (fcntl): Declare replacement.
68336         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
68337         needed, plus a witness.
68338         * doc/posix-functions/fcntl.texi (fcntl): Document this.
68339         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
68340         * tests/test-fcntl.c: New file.
68341         * modules/fcntl-tests: Likewise.
68343         binary-io: avoid potential compilation warning
68344         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
68345         directives.
68347         fflush: avoid compilation error on NetBSD
68348         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
68349         between off_t and fpos_t, since the latter is sometimes a struct.
68350         * lib/fseeko.c (rpl_fseeko): Likewise.
68351         Reported by Alexander Nasonov <alnsn@yandex.ru>.
68353 2009-12-15  Eric Blake  <ebb9@byu.net>
68355         fcntl-h, stdio, sys_ioctl: fix declarations
68356         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
68357         function must not take arguments.
68358         * lib/sys_ioctl.in.h (ioctl): Likewise.
68359         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
68360         (open): Add a link warning.
68362 2009-12-15  Jim Meyering  <meyering@redhat.com>
68364         areadlink, areadlink-with-size: relax license to LGPLv2+
68365         * modules/areadlink (License): Relax to LGPLv2+.
68366         * modules/areadlink-with-size (License): Likewise.
68368 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
68369             Bruno Haible  <bruno@clisp.org>
68371         *printf: Fix memory leak.
68372         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
68373         * lib/vfprintf.c (vfprintf): Likewise.
68374         * lib/dprintf.c (dprintf): Likewise.
68375         * lib/vdprintf.c (vdprintf): Likewise.
68377 2009-12-14  Eric Blake  <ebb9@byu.net>
68379         accept4: adjust module dependencies
68380         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
68382         utimens: one more try at avoiding compiler warning
68383         * lib/utimens.c (lutimens): Lower scope of result.
68385 2009-12-13  Bruno Haible  <bruno@clisp.org>
68387         Move the malloc checking from module 'list' to new module 'xlist'.
68388         * modules/xlist: New file.
68389         * lib/gl_xlist.h: New file.
68390         * lib/gl_xlist.c: New file.
68391         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
68392         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
68393         gl_list_add_last, gl_list_add_before, gl_list_add_after,
68394         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
68395         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
68396         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
68397         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
68398         gl_sortedlist_nx_add): New declarations.
68399         (struct gl_list_implementation): Rename and change methods accordingly.
68400         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
68401         (gl_list_nx_create): Renamed from gl_list_create.
68402         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
68403         (gl_list_nx_set_at): Renamed from gl_list_set_at.
68404         (gl_list_nx_add_first): Renamed from gl_list_add_first.
68405         (gl_list_nx_add_last): Renamed from gl_list_add_last.
68406         (gl_list_nx_add_before): Renamed from gl_list_add_before.
68407         (gl_list_nx_add_after): Renamed from gl_list_add_after.
68408         (gl_list_nx_add_at): Renamed from gl_list_add_at.
68409         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
68410         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
68411         gl_list_create_empty.
68412         (gl_list_nx_create): Renamed from gl_list_create.
68413         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
68414         (gl_list_nx_set_at): Renamed from gl_list_set_at.
68415         (gl_list_nx_add_first): Renamed from gl_list_add_first.
68416         (gl_list_nx_add_last): Renamed from gl_list_add_last.
68417         (gl_list_nx_add_before): Renamed from gl_list_add_before.
68418         (gl_list_nx_add_after): Renamed from gl_list_add_after.
68419         (gl_list_nx_add_at): Renamed from gl_list_add_at.
68420         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
68421         * lib/gl_array_list.c: Don't include xalloc.h.
68422         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
68423         NULL upon out-of-memory.
68424         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
68425         out-of-memory.
68426         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
68427         Change return type to 'int'.
68428         (gl_array_nx_set_at): Renamed from gl_array_set_at.
68429         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
68430         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
68431         upon out-of-memory.
68432         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
68433         upon out-of-memory.
68434         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
68435         upon out-of-memory.
68436         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
68437         upon out-of-memory.
68438         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
68439         out-of-memory.
68440         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
68441         Update.
68442         (gl_array_list_implementation): Update.
68443         * lib/gl_carray_list.c: Don't include xalloc.h.
68444         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
68445         Return NULL upon out-of-memory.
68446         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
68447         out-of-memory.
68448         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
68449         Change return type to 'int'.
68450         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
68451         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
68452         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
68453         upon out-of-memory.
68454         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
68455         upon out-of-memory.
68456         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
68457         out-of-memory.
68458         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
68459         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
68460         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
68461         Update.
68462         (gl_carray_list_implementation): Update.
68463         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
68464         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
68465         gl_linked_create_empty. Return NULL upon out-of-memory.
68466         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
68467         out-of-memory.
68468         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
68469         Change return type to 'int'. Return -1 upon out-of-memory.
68470         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
68471         out-of-memory.
68472         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
68473         upon out-of-memory.
68474         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
68475         upon out-of-memory.
68476         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
68477         NULL upon out-of-memory.
68478         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
68479         upon out-of-memory.
68480         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
68481         out-of-memory.
68482         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
68483         Update.
68484         * lib/gl_linked_list.c: Don't include xalloc.h.
68485         (gl_linked_list_implementation): Update.
68486         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
68487         (add_to_bucket): Change return type to 'int'.
68488         (gl_linkedhash_list_implementation): Update.
68489         * lib/gl_anytree_list1.h (free_subtree): New function.
68490         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
68491         gl_tree_create_empty. Return NULL upon out-of-memory.
68492         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
68493         Change return type to 'int'. Return -1 upon out-of-memory.
68494         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
68495         out-of-memory.
68496         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
68497         (gl_tree_remove_node): New function, moved here from
68498         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
68499         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
68500         Update.
68501         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
68502         malloc, not xmalloc. Return NULL upon out-of-memory.
68503         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
68504         out-of-memory.
68505         (gl_tree_remove_node_from_tree): New function, extracted from
68506         gl_tree_remove_node.
68507         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
68508         upon out-of-memory.
68509         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
68510         out-of-memory.
68511         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
68512         upon out-of-memory.
68513         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
68514         upon out-of-memory.
68515         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
68516         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
68517         not xmalloc. Return NULL upon out-of-memory.
68518         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
68519         out-of-memory.
68520         (gl_tree_remove_node_from_tree): New function, extracted from
68521         gl_tree_remove_node.
68522         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
68523         upon out-of-memory.
68524         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
68525         out-of-memory.
68526         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
68527         upon out-of-memory.
68528         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
68529         upon out-of-memory.
68530         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
68531         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
68532         gl_anytree_list1.h before gl_anyavltree_list2.h.
68533         (gl_avltree_list_implementation): Update.
68534         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
68535         gl_anytree_list1.h before gl_anyavltree_list2.h.
68536         (gl_rbtree_list_implementation): Update.
68537         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
68538         Change return type to 'int'. Return -1 upon out-of-memory. Use
68539         __builtin_expect.
68540         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
68541         (gl_avltreehash_list_implementation): Update.
68542         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
68543         (gl_rbtreehash_list_implementation): Update.
68544         * modules/array-list (Depends-on): Remove xalloc.
68545         * modules/carray-list (Depends-on): Likewise.
68546         * modules/linked-list (Depends-on): Likewise.
68547         * modules/linkedhash-list (Depends-on): Likewise.
68548         * modules/avltree-list (Depends-on): Likewise.
68549         * modules/rbtree-list (Depends-on): Likewise.
68550         * modules/avltreehash-list (Depends-on): Likewise.
68551         * modules/rbtreehash-list (Depends-on): Likewise.
68553         * modules/xsublist: New file.
68554         * lib/gl_xsublist.h: New file.
68555         * lib/gl_xsublist.c: New file.
68556         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
68557         (gl_sublist_nx_create): New declaration.
68558         * lib/gl_sublist.c: Don't include xalloc.h.
68559         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
68560         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
68561         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
68562         Change return type to 'int'. Return -1 upon out-of-memory.
68563         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
68564         upon out-of-memory.
68565         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
68566         NULL upon out-of-memory.
68567         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
68568         upon out-of-memory.
68569         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
68570         NULL upon out-of-memory.
68571         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
68572         NULL upon out-of-memory.
68573         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
68574         upon out-of-memory.
68575         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
68576         (gl_sublist_list_implementation): Update.
68577         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
68578         upon out-of-memory.
68579         * modules/sublist (Depends-on): Remove xalloc.
68581         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
68582         * tests/test-carray_list.c: Likewise.
68583         * tests/test-linked_list.c: Likewise.
68584         * tests/test-linkedhash_list.c: Likewise.
68585         * tests/test-avltree_list.c: Likewise.
68586         * tests/test-rbtree_list.c: Likewise.
68587         * tests/test-avltreehash_list.c: Likewise.
68588         * tests/test-rbtreehash_list.c: Likewise.
68589         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
68590         * modules/carray-list-tests (Makefile.am): Likewise.
68591         * modules/linked-list-tests (Makefile.am): Likewise.
68592         * modules/linkedhash-list-tests (Makefile.am): Likewise.
68593         * modules/avltree-list-tests (Makefile.am): Likewise.
68594         * modules/rbtree-list-tests (Makefile.am): Likewise.
68595         * modules/avltreehash-list-tests (Makefile.am): Likewise.
68596         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
68598         * NEWS: Mention the changes.
68600         * lib/clean-temp.c: Include gl_xlist.h.
68601         * modules/clean-temp (Depends-on): Add xlist.
68603         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
68604         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
68606         * tests/test-array_oset.c: Include gl_xlist.h.
68607         * modules/array-oset-tests (Depends-on): Add xlist.
68609         Reported by José E. Marchesi <jemarch@gnu.org>.
68611 2009-12-13  Bruno Haible  <bruno@clisp.org>
68613         Move the malloc checking from module 'oset' to new module 'xoset'.
68614         * modules/xoset: New file.
68615         * lib/gl_xoset.h: New file.
68616         * lib/gl_xoset.c: New file.
68617         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
68618         declarations.
68619         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
68620         (struct gl_oset_implementation): Rename and change methods accordingly.
68621         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
68622         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
68623         'int'. Mark as __warn_unused_result__.
68624         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
68625         gl_oset_create_empty.
68626         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
68627         'int'.
68628         * lib/gl_array_oset.c: Don't include xalloc.h.
68629         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
68630         malloc, not xmalloc.
68631         (grow): Change return type to 'int'. Don't call xalloc_die.
68632         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
68633         to 'int'.
68634         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
68635         'int'.
68636         (gl_array_oset_implementation): Update.
68637         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
68638         gl_tree_create_empty.
68639         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
68640         'int'.
68641         * lib/gl_avltree_oset.c: Don't include xalloc.h.
68642         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
68643         xmalloc.
68644         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
68645         not xmalloc.
68646         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
68647         xmalloc.
68648         (gl_avltree_oset_implementation): Update.
68649         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
68650         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
68651         xmalloc.
68652         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
68653         not xmalloc.
68654         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
68655         xmalloc.
68656         (gl_rbtree_oset_implementation): Update.
68657         * modules/array-oset (Depends-on): Remove xalloc.
68658         * modules/avltree-oset (Depends-on): Likewise.
68659         * modules/rbtree-oset (Depends-on): Likewise.
68660         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
68661         * tests/test-avltree_oset.c: Likewise.
68662         * tests/test-rbtree_oset.c: Likewise.
68663         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
68664         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
68665         * modules/rbtree-oset-tests (Makefile.am): Likewise.
68666         * NEWS: Mention the change.
68668 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
68670         maint.mk: allow a project to override release-prep commands
68671         * top/maint.mk (alpha, beta, stable): Move release-preparatory
68672         commands into a new rule.
68673         (release-prep): New rule.
68674         (release-prep-hook): New overridable variable.
68676 2009-12-13  Bruno Haible  <bruno@clisp.org>
68678         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
68680 2009-12-13  Jim Meyering  <meyering@redhat.com>
68682         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
68683         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
68685 2009-12-12  Bruno Haible  <bruno@clisp.org>
68687         duplocale: Tweak.
68688         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
68690 2009-12-12  Karl Berry  <karl@gnu.org>
68692         * config/srclist.txt (strtoll.c): tab changes, no more sync.
68694 2009-12-12  Bruno Haible  <bruno@clisp.org>
68696         * m4/po.m4: Undo incorrect untabification.
68698 2009-12-12  Bruno Haible  <bruno@clisp.org>
68700         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
68701         * modules/c-strtod (Depends-on): Add locale.
68702         * modules/c-strtold (Depends-on): Likewise.
68704 2009-12-12  Bruno Haible  <bruno@clisp.org>
68706         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
68708 2009-12-11  Eric Blake  <ebb9@byu.net>
68710         setenv: relax requirement in light of POSIX ruling
68711         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
68712         not NULL.
68713         * tests/test-setenv.c (main): Relax test.
68714         * tests/test-unsetenv.c (main): Likewise.
68715         * doc/posix-functions/setenv.texi (setenv): Document this.
68716         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
68718 2009-12-11  Bruno Haible  <bruno@clisp.org>
68720         New module 'fd-safer-flag'.
68721         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
68722         * lib/dup-safer.c (dup_safer_flag): Remove function.
68723         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
68724         * lib/fd-safer.c (fd_safer_flag): Remove function.
68725         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
68726         * modules/cloexec (configure.ac): Drop indicator macro.
68727         * modules/fd-safer-flag: New file.
68728         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
68729         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
68730         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
68732 2009-12-11  Bruno Haible  <bruno@clisp.org>
68734         Tests for module 'nl_langinfo'.
68735         * modules/nl_langinfo-tests: New file.
68736         * tests/test-nl_langinfo.sh: New file.
68737         * tests/test-nl_langinfo.c: New file.
68739         New module 'nl_langinfo'.
68740         * lib/nl_langinfo.c: New file.
68741         * m4/nl_langinfo.m4: New file.
68742         * modules/nl_langinfo: New file.
68743         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
68745 2009-12-11  Bruno Haible  <bruno@clisp.org>
68747         Tests for module 'langinfo'.
68748         * modules/langinfo-tests: New file.
68749         * tests/test-langinfo.c: New file.
68751         New module 'langinfo'.
68752         * lib/langinfo.in.h: New file.
68753         * m4/langinfo_h.m4: New file.
68754         * modules/langinfo: New file.
68755         * doc/posix-headers/langinfo.texi: Mention the new module.
68757 2009-12-11  Bruno Haible  <bruno@clisp.org>
68759         * lib/config.charset: Untabify.
68761 2009-12-11  Bruno Haible  <bruno@clisp.org>
68763         * modules/unistd-safer (configure.ac): Drop indicator macro.
68765 2009-12-11  Bruno Haible  <bruno@clisp.org>
68767         Move pipe2-safer code to its own file.
68768         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
68769         * lib/pipe-safer.c (pipe2_safer): Remove function.
68770         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
68771         (Makefile.am): Add it to lib_SOURCES.
68773 2009-12-10  Bruno Haible  <bruno@clisp.org>
68775         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
68777 2009-12-10  Bruno Haible  <bruno@clisp.org>
68779         Declare which arguments expect non-NULL values, for GCC and clang.
68780         * build-aux/arg-nonnull.h: New file.
68781         * modules/arg-nonnull: New file.
68782         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
68783         (inet_ntop, inet_pton): Use it.
68784         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
68785         (closedir, dirfd, opendir, scandir, alphasort): Use it.
68786         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
68787         (open, openat): Use it.
68788         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
68789         (fnmatch): Use it.
68790         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
68791         (getopt, getopt_long, getopt_long_only): Use it.
68792         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
68793         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
68794         Use it.
68795         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
68796         (iconv_open): Use it.
68797         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
68798         (strtoimax, strtoumax): Use it.
68799         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
68800         (duplocale): Use it.
68801         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
68802         (frexp, frexpl): Use it.
68803         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
68804         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
68805         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
68806         (tsearch, tfind, tdelete, twalk): Use it.
68807         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
68808         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
68809         sigpending): Use it.
68810         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
68811         (posix_spawn, posix_spawnp, posix_spawnattr_init,
68812         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
68813         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
68814         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
68815         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
68816         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
68817         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
68818         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
68819         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
68820         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
68821         Use it.
68822         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
68823         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
68824         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
68825         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
68826         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
68827         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
68828         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
68829         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
68830         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
68831         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
68832         strtoull, unsetenv): Use it.
68833         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
68834         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
68835         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
68836         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
68837         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
68838         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
68839         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
68840         (strcasecmp, strncasecmp): Use it.
68841         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
68842         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
68843         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
68844         rpl_setsockopt): Use it.
68845         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
68846         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
68847         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
68848         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
68849         (gettimeofday): Use it.
68850         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
68851         (times): Use it.
68852         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
68853         (uname): Use it.
68854         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
68855         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
68856         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
68857         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
68858         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
68859         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
68860         unlinkat, write): Use it.
68861         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
68862         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
68863         * lib/argv-iter.h: Include arg-nonnull.h.
68864         (_ATTRIBUTE_NONNULL_): Remove macro.
68865         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
68866         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
68867         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
68868         optimization.
68869         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
68870         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
68871         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
68872         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
68873         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
68874         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
68875         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
68876         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
68877         * modules/arpa_inet (Depends-on): Add arg-nonnull.
68878         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
68879         * modules/dirent (Depends-on): Add arg-nonnull.
68880         (Makefile.am): Insert arg-nonnull.h into dirent.h.
68881         * modules/fcntl-h (Depends-on): Add arg-nonnull.
68882         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
68883         * modules/fnmatch (Depends-on): Add arg-nonnull.
68884         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
68885         * modules/getopt-posix (Depends-on): Add arg-nonnull.
68886         (Makefile.am): Insert arg-nonnull.h into getopt.h.
68887         * modules/glob (Depends-on): Add arg-nonnull.
68888         (Makefile.am): Insert arg-nonnull.h into glob.h.
68889         * modules/iconv_open (Depends-on): Add arg-nonnull.
68890         (Makefile.am): Insert arg-nonnull.h into iconv.h.
68891         * modules/inttypes (Depends-on): Add arg-nonnull.
68892         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
68893         * modules/locale (Depends-on): Add arg-nonnull.
68894         (Makefile.am): Insert arg-nonnull.h into locale.h.
68895         * modules/math (Depends-on): Add arg-nonnull.
68896         (Makefile.am): Insert arg-nonnull.h into math.h.
68897         * modules/netdb (Depends-on): Add arg-nonnull.
68898         (Makefile.am): Insert arg-nonnull.h into netdb.h.
68899         * modules/search (Depends-on): Add arg-nonnull.
68900         (Makefile.am): Insert arg-nonnull.h into search.h.
68901         * modules/signal (Depends-on): Add arg-nonnull.
68902         (Makefile.am): Insert arg-nonnull.h into signal.h.
68903         * modules/spawn (Depends-on): Add arg-nonnull.
68904         (Makefile.am): Insert arg-nonnull.h into spawn.h.
68905         * modules/stdio (Depends-on): Add arg-nonnull.
68906         (Makefile.am): Insert arg-nonnull.h into stdio.h.
68907         * modules/stdlib (Depends-on): Add arg-nonnull.
68908         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
68909         * modules/string (Depends-on): Add arg-nonnull.
68910         (Makefile.am): Insert arg-nonnull.h into string.h.
68911         * modules/strings (Depends-on): Add arg-nonnull.
68912         (Makefile.am): Insert arg-nonnull.h into strings.h.
68913         * modules/sys_socket (Depends-on): Add arg-nonnull.
68914         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
68915         * modules/sys_stat (Depends-on): Add arg-nonnull.
68916         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
68917         * modules/sys_time (Depends-on): Add arg-nonnull.
68918         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
68919         * modules/sys_times (Depends-on): Add arg-nonnull.
68920         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
68921         * modules/sys_utsname (Depends-on): Add arg-nonnull.
68922         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
68923         * modules/time (Depends-on): Add arg-nonnull.
68924         (Makefile.am): Insert arg-nonnull.h into time.h.
68925         * modules/unistd (Depends-on): Add arg-nonnull.
68926         (Makefile.am): Insert arg-nonnull.h into unistd.h.
68927         * modules/wchar (Depends-on): Add arg-nonnull.
68928         (Makefile.am): Insert arg-nonnull.h into wchar.h.
68929         * modules/argv-iter (Depends-on): Add arg-nonnull.
68930         * tests/test-canonicalize.c (null_ptr): New function.
68931         (main): Use it.
68932         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
68933         (main): Use it.
68934         * tests/test-memmem.c (null_ptr): New function.
68935         (main): Use it.
68936         Reported by Jim Meyering.
68938 2009-12-10  Bruno Haible  <bruno@clisp.org>
68940         Use spaces for indentation, not tabs.
68941         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
68942         * m4/*.m4: Untabify.
68943         * build-aux/*.h: Untabify.
68944         * tests/**/*.[hc]: Untabify.
68945         * README: New section "Indent with spaces, not TABs", based on
68946         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
68947         * NEWS: Mention the change.
68949 2009-12-10  Bruno Haible  <bruno@clisp.org>
68951         pty test: Fix link error.
68952         * modules/pty-tests (Makefile.am): Add the default LDADD value to
68953         test_pty_LDADD.
68955 2009-12-07  Simon Josefsson  <simon@josefsson.org>
68957         * modules/pty: New file.
68958         * modules/pty-tests: New file.
68959         * m4/pty.m4: New file.
68960         * tests/test-pty.c: New file.
68961         * doc/glibc-headers/pty.texi: Modified.
68962         * doc/glibc-functions/forkpty.texi: Modified.
68963         * doc/glibc-functions/openpty.texi: Modified.
68965 2009-12-10  Bruno Haible  <bruno@clisp.org>
68967         Avoid syntax error in C++ mode.
68968         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
68970 2009-12-10  Bruno Haible  <bruno@clisp.org>
68972         Use sed with option -e.
68973         * gnulib-tool (func_version, func_emit_copyright_notice,
68974         func_emit_initmacro_end, func_import, func_create_testdir): Pass
68975         option -e to sed.
68976         * modules/link-warning (Makefile.am): Likewise.
68978 2009-12-10  Jim Meyering  <meyering@redhat.com>
68980         mgetgroups: do not write bytes beyond end of malloc'd buffer
68981         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
68982         username, we call getgroups with a one-element-shorter buffer,
68983         but still told it the length was original, max_n_groups.
68985 2009-12-09  Eric Blake  <ebb9@byu.net>
68987         cloexec: relax license
68988         * modules/cloexec (Maintainer): Add myself.
68989         (License): Use LGPL, not GPL.
68991         link-warning: optimize generation
68992         * modules/link-warning (Makefile.am): Reduce process usage.
68994 2009-12-09  Bruno Haible  <bruno@clisp.org>
68996         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
68997         workaround was added on 2009-11-17.
68999 2009-12-09  Jim Meyering  <meyering@redhat.com>
69000             Bruno Haible  <bruno@clisp.org>
69002         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
69003         * modules/link-warning (Makefile.am): Make the comment-removing sed
69004         command more robust in the face of bootstrap-prepended comment lines.
69006 2009-12-09  Bruno Haible  <bruno@clisp.org>
69008         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
69009         most one group.
69011 2009-12-09  Simon Josefsson  <simon@josefsson.org>
69012             Bruno Haible  <bruno@clisp.org>
69014         * build-aux/link-warning.h: Add copyright notice.
69015         * modules/link-warning (Makefile.am): Generate link-warning.h from
69016         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
69017         * NEWS: Mention change in link-warning module.
69018         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
69019         * modules/dirent (Makefile.am): Add dependency to dirent.h.
69020         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
69021         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
69022         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
69023         * modules/math (Makefile.am): Add dependency to math.h.
69024         * modules/search (Makefile.am): Add dependency to search.h.
69025         * modules/signal (Makefile.am): Add dependency to signal.h.
69026         * modules/spawn (Makefile.am): Add dependency to spawn.h.
69027         * modules/stdio (Makefile.am): Add dependency to stdio.h.
69028         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
69029         * modules/string (Makefile.am): Add dependency to string.h.
69030         * modules/strings (Makefile.am): Add dependency to strings.h.
69031         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
69032         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
69033         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
69034         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
69035         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
69036         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
69037         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
69038         * modules/unistd (Makefile.am): Add dependency to unistd.h.
69039         * modules/wchar (Makefile.am): Add dependency to wchar.h.
69041 2009-12-09  Bruno Haible  <bruno@clisp.org>
69043         fchdir: Optimize away rpl_fstat when possible.
69044         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
69045         REPLACE_OPEN_DIRECTORY.
69046         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
69048 2009-12-09  Bruno Haible  <bruno@clisp.org>
69050         * lib/fchdir.c: Update comment.
69052 2009-12-09  Bruno Haible  <bruno@clisp.org>
69054         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
69056 2009-12-08  Eric Blake  <ebb9@byu.net>
69058         fchdir: avoid memory leak on re-registration.
69059         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
69061 2009-12-08  Jim Meyering  <meyering@redhat.com>
69063         init.sh: avoid Solaris 10 /bin/sh portability problem
69064         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
69065         sourced script:
69066           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
69067           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
69068           bar
69069         tests/init.sh relied on that, accepting a --set-path=DIR argument,
69070         and two tests used that idiom.
69071         * tests/init.sh: Update suggested usage comments.
69072         (path_prepend_): New function, to be used in place
69073         of the --src-path=DIR option.
69074         (setup_): Move PATH-prepending code into path_prepend_.
69075         * tests/test-pread.sh: Adapt to new usage.
69076         * tests/test-xalloc-die.sh: Likewise.
69078 2009-12-08  Simon Josefsson  <simon@josefsson.org>
69080         * doc/gnulib.texi (Glibc pty.h): Add.
69081         * doc/glibc-functions/forkpty.texi: Add.
69082         * doc/glibc-functions/openpty.texi: Add.
69083         Suggested by Bruno Haible.
69085 2009-12-08  Eric Blake  <ebb9@byu.net>
69087         fchdir: fix logic bugs
69088         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
69089         * tests/test-fchdir.c (main): Enhance test.
69090         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
69091         is in use.
69093         dup2: fix logic bugs
69094         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
69095         REPLACE_DUP2 to decide when rpl_dup2 is needed.
69096         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
69097         exists.
69098         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
69100 2009-12-07  Eric Blake  <ebb9@byu.net>
69102         unlink: fix m4 detection
69103         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
69105         unistd-safer: add unit test
69106         * modules/unistd-safer-tests: New file.
69107         * tests/test-dup-safer.c: Likewise.
69108         * tests/test-cloexec.c (setmode): Avoid compiler warning.
69109         * tests/test-dup2.c (setmode): Likewise.
69110         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
69112         cloexec: preserve text vs. binary across dup_cloexec
69113         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
69114         mode.
69115         * modules/dup2-tests (Depends-on): Add binary-io.
69116         * modules/cloexec-tests (Depends-on): Likewise.
69117         * tests/test-dup2.c (setmode, is_mode): New helpers.
69118         (main): Add tests that translation mode is preserved.
69119         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
69120         Reported by Bruno Haible.
69122         mgetgroups: reduce duplicate listings
69123         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
69124         resulting array.
69125         * tests/test-chown.h (test_chown): Simplify client.
69126         * tests/test-lchown.h (test_lchown): Likewise.
69128 2009-12-06  Bruno Haible  <bruno@clisp.org>
69130         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
69131         value.
69133 2009-12-06  Bruno Haible  <bruno@clisp.org>
69135         * lib/progname.c: Include stdio.h, stdlib.h.
69136         (set_program_name): Reject a NULL argument.
69138 2009-12-05  Eric Blake  <ebb9@byu.net>
69140         pipe2-safer: new module
69141         * modules/pipe2-safer: New file.
69142         * lib/unistd-safer.h (pipe2_safer): New prototype.
69143         * lib/unistd--.h (pipe2): New wrapper.
69144         * lib/pipe-safer.c (pipe2_safer): New function.
69145         * modules/pipe (Depends-on): Add pipe2-safer.
69146         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
69148         stdlib-safer: preserve cloexec flag for mkostemp[s]
69149         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
69150         fd_safer_flag.
69152         unistd-safer: allow preservation of cloexec status via flag
69153         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
69154         prototypes.
69155         * lib/dup-safer.c (dup_safer_flag): New function.
69156         * lib/fd-safer.c (fd_safer_flag): Likewise.
69157         * modules/cloexec (configure.ac): Set witness.
69159         test-dup2: enhance test
69160         * modules/dup2-tests (Depends-on): Add cloexec.
69161         * tests/test-dup2.c (main): Enhance test.
69163         cloexec: add dup_cloexec
69164         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
69165         header and comments.
69166         * lib/cloexec.c (set_cloexec_flag): Add comments.
69167         (dup_cloexec): New function, with mingw implementation borrowed
69168         from...
69169         * lib/w32spawn.h (dup_noinherit): ...here.
69170         * modules/execute (Depends-on): Add cloexec.
69171         * modules/pipe (Depends-on): Likewise.
69172         * modules/cloexec (Depends-on): Add dup2.
69173         * modules/cloexec-tests (Files): New file.
69174         * tests/test-cloexec.c: Likewise.
69176         test-xalloc-die: fix test for mingw
69177         * modules/xalloc-die-tests (Files): Add tests/init.sh.
69178         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
69179         directory and .exe suffix off argv[0] output.
69181         test-fseeko: fix test for mingw
69182         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
69183         than undefining fseek, so test will pass on mingw.
69185 2009-12-05  Bruno Haible  <bruno@clisp.org>
69187         * lib/progname.h (set_program_name): Clarify specification.
69188         * lib/progname.c (set_program_name): Likewise.
69189         Reported by Jim Meyering.
69191 2009-12-05  Jim Meyering  <meyering@redhat.com>
69193         maint.mk: backslash-escape parens in default regexp
69194         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
69195         backslash-escape the literal parentheses.
69197         maint.mk: news-date-check: use grep -E
69198         * top/maint.mk (today): Define a Make variable, not a...
69199         (news-date-check): ...shell variable.
69200         (news-date-regexp): Use the Make variable.
69201         Use grep's -E option.  Change the failing diagnostic to mention
69202         the variable, $(news-date-regexp).
69204 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
69206         maintainer-makefile: allow customization of NEWS entry format
69207         * top/maint.mk (news-date-regexp): New overridable variable.
69208         (news-date-check): Use it.
69210 2009-12-04  Eric Blake  <ebb9@byu.net>
69212         mgetgroups: add xgetgroups, and avoid ENOSYS failures
69213         * lib/mgetgroups.h (xgetgroups): New prototype.
69214         * lib/mgetgroups.c (xgetgroups): New wrapper.
69215         (mgetgroups): Handle ENOSYS.
69216         * modules/mgetgroups (Depends-on): Add realloc.
69217         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
69219         mgetgroups: avoid argument promotion issues with -1
69220         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
69221         for invalid gid_t.
69222         * tests/test-chown.h (getegid, test_chown): Likewise.
69223         * tests/test-lchown.h (getegid, test_lchown): Likewise.
69225 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
69227         exclude: Fix header file problems.
69228         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
69230 2009-12-01  Jim Meyering  <meyering@redhat.com>
69232         fts: fts_open: do not let an empty string cause immediate failure
69233         This is required in support of GNU rm, for which the command
69234         "rm A '' B" must process and remove both A and B, in spite of
69235         the empty string argument.
69236         * lib/fts.c (fts_open): Do not let the presence of an empty string
69237         cause fts_open to fail immediately.  Most fts-using tools must be
69238         able to process all arguments, in order, and can be expected to
69239         diagnose such arguments themselves.
69241 2009-11-30  Eric Blake  <ebb9@byu.net>
69243         utimens: fix compilation error
69244         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
69245         Declare variable at right scope.
69247 2009-11-29  Jim Meyering  <meyering@redhat.com>
69249         bootstrap: handle perl-5.11's changed --version output
69250         * build-aux/bootstrap (get_version): Handle perl separately,
69251         since perl-5.11's --version output is different.
69253 2009-11-28  Jim Meyering  <meyering@redhat.com>
69255         userspec: depend on the inttostr module, too
69256         * modules/userspec (Depends-on): Add inttostr.
69258         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
69259         * lib/userspec.c (parse_with_separator): Do not accept a user ID
69260         number of MAXUID when it evaluates to (uid_t) -1.
69261         Likewise for group ID.  Reported by Matt McCutchen in
69262         <http://savannah.gnu.org/bugs/?28113>
69264         userspec: reformat to use spaces, not TABs
69265         * lib/userspec.c: Expand TABs to spaces.
69266         Add Emacs' "indent-tabs-mode: nil" hint.
69268 2009-11-27  Eric Blake  <ebb9@byu.net>
69270         getopt-gnu: flush out another BSD bug
69271         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
69272         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
69273         flush out BSD bug.
69274         * tests/test-getopt.h (test_getopt): End lists with NULL.
69275         * tests/test-getopt_long.h (test_getopt_long): Likewise.
69276         (test_getopt_long_posix): Enhance test.
69277         * modules/getopt-posix-tests (Depends-on): Add stdbool.
69278         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
69279         getopt-gnu.
69280         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
69281         Likewise.
69283 2009-11-27  Simon Josefsson  <simon@josefsson.org>
69285         * modules/idpriv-droptemp-tests (Notice): Fix text.
69287 2009-11-27  Jim Meyering  <meyering@redhat.com>
69289         test-xalloc-die: avoid spurious failure due to libtool argv difference
69290         In a libtool-enabled project, this test would fail due to a difference
69291         in the emitted program name, e.g.,
69292         -test-xalloc-die: memory exhausted
69293         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
69294         Use program to avoid that.
69295         * modules/xalloc-die-tests (Depends-on): Add progname.
69296         * tests/test-xalloc-die.c: Include progname.h".
69297         (program_name): Remove decl.
69298         (main): Call set_program_name.
69299         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
69301 2009-11-26  Richard Jones  <rjones@redhat.com>
69303         w32sock: leave win32 error in place.
69304         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
69306 2009-11-26  Eric Blake  <ebb9@byu.net>
69308         init.sh: suggest to use skip_ and fail_ functions in comments
69309         * tests/init.sh: Add a sentence.
69311 2009-11-25  Bruno Haible  <bruno@clisp.org>
69313         init.sh: add documentation in comments
69314         * tests/init.sh: Add some developer and user documentation.
69316 2009-11-26  Jim Meyering  <meyering@redhat.com>
69318         init.sh: accommodate even those who specify bogus srcdir manually
69319         * tests/init.sh: Normally, srcdir is guaranteed by automake and
69320         configure-time tests to be sanitized, so that there is no need to
69321         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
69322         (with no double quotes) suffices.  However, since tests may be
69323         invoked manually, and since you may explicitly set srcdir to the
69324         name of a directory containing spaces, do quote its uses here.
69325         * tests/test-pread.sh: Likewise.
69326         Suggested by Bruno Haible.
69328         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
69329         * tests/test-pread.sh: Write no data into the pipe, because
69330         test-pread actually reads none.  This avoids a diagnostic,
69331         "bash: echo: write error: Broken pipe", that arises in the unusual
69332         event something is ignoring SIGPIPE, and might be interpreted
69333         as some sort of failure.  Reported by Bruno Haible.
69335 2009-11-25  Jim Meyering  <meyering@redhat.com>
69337         test-pread: cover failure with ESPIPE and EINVAL
69338         * tests/test-pread.c (main): Test for failure, too.
69339         * tests/test-pread.sh: Invoke with stdin on a pipe.
69340         Suggested by Eric Blake.
69342         pread: improvement and fix
69343         * modules/pread (Depends-on): Depend on lseek, for portability to
69344         e.g., mingw.  Suggested by Eric Blake.
69345         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
69347         unistd.in.h: correct declaration of pread
69348         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
69349         Reported by Richard W.M. Jones.
69351         test-pread.sh: distribute the test script
69352         * modules/pread-tests (Files): Include test-pread.sh.
69354         test-pread.sh: clean up
69355         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
69356         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
69357         That is unnecessary, since it's always ".".
69358         Suggestion from Eric Blake.
69360         test-pread.sh: make executable
69361         * tests/test-pread.sh: Set executable bit.
69362         Reported by Eric Blake.
69364         correct typo in test-pread.sh
69365         * tests/test-pread.sh: Add #! line.
69367         test pread
69368         * tests/test-pread.c: New file.
69369         * tests/test-pread.sh: Likewise.
69370         * modules/pread-tests: Likewise.
69372         pread: new module
69373         * modules/pread: New file.
69374         * lib/unistd.in.h (pread): Define/declare.
69375         * lib/pread.c (pread): New file.
69376         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
69377         * modules/unistd (Makefile.am): Substitute witnesses.
69378         * doc/posix-functions/pread.texi (pread): Update.
69379         * MODULES.html.sh: Add pread.
69381 2009-11-25  Jim Meyering  <meyering@redhat.com>
69383         tests/init.sh: new file to be used via most *.sh tests
69384         * tests/init.sh: New file.
69386 2009-11-25  Eric Blake  <ebb9@byu.net>
69388         utimens: work around older Linux failure with symlinks
69389         * lib/utimens.c (lutimensat_works_really): New variable.
69390         (fdutimens, lutimens): Use it to manage kernels that support
69391         nanosecond times on files, but not on symlinks.
69392         Reported by Ondřej Vašík.
69394         utimes: fix configure grammar
69395         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
69397 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
69399         regex: Fix fastmap for multibyte character ranges.
69400         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
69401         characters when a multibyte character range is included.
69403 2009-11-22  Andy Wingo  <wingo@pobox.com>
69405         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
69406         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
69408 2009-11-24  Bruno Haible  <bruno@clisp.org>
69410         doc: Most *_l functions exist in MacOS X 10.5.
69411         * doc/posix-functions/duplocale.texi: Update platforms list.
69412         * doc/posix-functions/freelocale.texi: Likewise.
69413         * doc/posix-functions/newlocale.texi: Likewise.
69414         * doc/posix-functions/uselocale.texi: Likewise.
69415         * doc/posix-functions/isalnum_l.texi: Likewise.
69416         * doc/posix-functions/isalpha_l.texi: Likewise.
69417         * doc/posix-functions/isblank_l.texi: Likewise.
69418         * doc/posix-functions/iscntrl_l.texi: Likewise.
69419         * doc/posix-functions/isdigit_l.texi: Likewise.
69420         * doc/posix-functions/isgraph_l.texi: Likewise.
69421         * doc/posix-functions/islower_l.texi: Likewise.
69422         * doc/posix-functions/isprint_l.texi: Likewise.
69423         * doc/posix-functions/ispunct_l.texi: Likewise.
69424         * doc/posix-functions/isspace_l.texi: Likewise.
69425         * doc/posix-functions/isupper_l.texi: Likewise.
69426         * doc/posix-functions/iswalnum_l.texi: Likewise.
69427         * doc/posix-functions/iswalpha_l.texi: Likewise.
69428         * doc/posix-functions/iswblank_l.texi: Likewise.
69429         * doc/posix-functions/iswcntrl_l.texi: Likewise.
69430         * doc/posix-functions/iswctype_l.texi: Likewise.
69431         * doc/posix-functions/iswdigit_l.texi: Likewise.
69432         * doc/posix-functions/iswgraph_l.texi: Likewise.
69433         * doc/posix-functions/iswlower_l.texi: Likewise.
69434         * doc/posix-functions/iswprint_l.texi: Likewise.
69435         * doc/posix-functions/iswpunct_l.texi: Likewise.
69436         * doc/posix-functions/iswspace_l.texi: Likewise.
69437         * doc/posix-functions/iswupper_l.texi: Likewise.
69438         * doc/posix-functions/iswxdigit_l.texi: Likewise.
69439         * doc/posix-functions/isxdigit_l.texi: Likewise.
69440         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
69441         * doc/posix-functions/strcasecmp_l.texi: Likewise.
69442         * doc/posix-functions/strcoll_l.texi: Likewise.
69443         * doc/posix-functions/strfmon_l.texi: Likewise.
69444         * doc/posix-functions/strftime_l.texi: Likewise.
69445         * doc/posix-functions/strncasecmp_l.texi: Likewise.
69446         * doc/posix-functions/strxfrm_l.texi: Likewise.
69447         * doc/posix-functions/tolower_l.texi: Likewise.
69448         * doc/posix-functions/toupper_l.texi: Likewise.
69449         * doc/posix-functions/towctrans_l.texi: Likewise.
69450         * doc/posix-functions/towlower_l.texi: Likewise.
69451         * doc/posix-functions/towupper_l.texi: Likewise.
69452         * doc/posix-functions/wcscoll_l.texi: Likewise.
69453         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
69454         * doc/posix-functions/wctrans_l.texi: Likewise.
69455         * doc/posix-functions/wctype_l.texi: Likewise.
69456         * doc/glibc-functions/strptime_l.texi: Likewise.
69457         * doc/glibc-functions/strtod_l.texi: Likewise.
69458         * doc/glibc-functions/strtof_l.texi: Likewise.
69459         * doc/glibc-functions/strtol_l.texi: Likewise.
69460         * doc/glibc-functions/strtold_l.texi: Likewise.
69461         * doc/glibc-functions/strtoll_l.texi: Likewise.
69462         * doc/glibc-functions/strtoul_l.texi: Likewise.
69463         * doc/glibc-functions/strtoull_l.texi: Likewise.
69464         * doc/glibc-functions/wcsftime_l.texi: Likewise.
69465         * doc/glibc-functions/wcstod_l.texi: Likewise.
69466         * doc/glibc-functions/wcstof_l.texi: Likewise.
69467         * doc/glibc-functions/wcstol_l.texi: Likewise.
69468         * doc/glibc-functions/wcstold_l.texi: Likewise.
69469         * doc/glibc-functions/wcstoll_l.texi: Likewise.
69470         * doc/glibc-functions/wcstoul_l.texi: Likewise.
69471         * doc/glibc-functions/wcstoull_l.texi: Likewise.
69473 2009-11-24  Bruno Haible  <bruno@clisp.org>
69475         duplocale: Fix logic bug.
69476         * lib/duplocale.c: Don't include <langinfo.h>.
69477         (_NL_LOCALE_NAME): Remove macro.
69478         (rpl_duplocale): Use setlocale instead of nl_langinfo.
69479         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
69481 2009-11-23  Jim Meyering  <meyering@redhat.com>
69483         test-update-copyright: don't hard-code /usr/bin/perl
69484         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
69485         perl to print the current year.  Gilles Espinasse reported that
69486         the replaced use of perl was hard-coded as /usr/bin/perl.
69488 2009-11-23  Bruno Haible  <bruno@clisp.org>
69490         duplocale: Add support for glibc 2.3.x.
69491         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
69493 2009-11-22  Bruno Haible  <bruno@clisp.org>
69495         vasnprintf: Tiny optimization.
69496         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
69497         MacOS X.
69499 2009-11-22  Bruno Haible  <bruno@clisp.org>
69501         Tests for module 'duplocale'.
69502         * modules/duplocale-tests: New file.
69503         * tests/test-duplocale.c: New file.
69505         New module 'duplocale'.
69506         * m4/duplocale.m4: New file.
69507         * lib/locale.in.h (duplocale): New declaration.
69508         * lib/duplocale.c: New file.
69509         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
69510         gl_LOCALE_H_DEFAULTS): New macros.
69511         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
69512         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
69513         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
69514         REPLACE_DUPLOCALE.
69515         * modules/duplocale: New file.
69516         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
69518 2009-11-22  Bruno Haible  <bruno@clisp.org>
69520         * modules/locale-tests (configure.ac): Test for newlocale function.
69521         * tests/test-locale.c: When the system has extended locale functions,
69522         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
69524         locale: Make locale_t available when possible.
69525         * lib/locale.in.h: Include <xlocale.h> when it exists.
69526         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
69527         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
69528         * modules/locale (Depends-on): Add extensions.
69529         (Makefile.am): Also substitute HAVE_XLOCALE_H.
69530         * doc/posix-headers/locale.texi: Document the problem with locale_t.
69532 2009-11-22  Bruno Haible  <bruno@clisp.org>
69534         Add comments.
69535         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
69536         invocation.
69537         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
69538         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
69539         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
69541 2009-11-22  Bruno Haible  <bruno@clisp.org>
69543         error: account for the possibility of freopen (stdout).
69544         * lib/error.c: Include <unistd.h>.
69545         (flush_stdout): New function, extracted from error and error_at_line.
69546         Determine stdout's fd dynamically.
69547         (error, error_at_line): Invoke flush_stdout.
69548         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
69549         * modules/error (Depends-on): Add unistd.
69551 2009-11-22  Bruno Haible  <bruno@clisp.org>
69553         diffseq: Add comment.
69554         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
69556 2009-11-22  Jim Meyering  <meyering@redhat.com>
69558         c-stack: avoid defining an unused static function
69559         * lib/c-stack.c (find_stack_direction): Do not define this function
69560         when it will not be used.
69562         diffseq: avoid spurious gcc warnings
69563         * lib/diffseq.h (IF_LINT2): Define.
69564         (compareseq): Use it to initialize two members of "part".
69565         This avoids two used-uninitialized warnings.
69567 2009-11-21  Jim Meyering  <meyering@redhat.com>
69569         c-stack: avoid "ignoring return value of `write'" warning
69570         * lib/c-stack.c: Include "ignore-value.h".
69571         (die): Explicitly ignore each write return value.
69572         * modules/c-stack (Depends-on): Add ignore-value.
69574 2009-11-21  Bruno Haible  <bruno@clisp.org>
69576         diffseq: reduce scope of variable 'best'.
69577         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
69578         variable, earlier used for two different purposes.
69580 2009-11-21  Jim Meyering  <meyering@redhat.com>
69582         diffseq: remove useless assignment to "best"
69583         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
69584         assignment.  At that point "best" is already guaranteed to be zero.
69586 2009-11-20  Eric Blake  <ebb9@byu.net>
69588         build: mention ftp redirector in release announcements
69589         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
69590         values that used to come from cfg.mk; mention FTP redirect URL.
69591         * build-aux/announce-gen: Mention the mirror list.
69592         Suggested by Karl Berry.
69594         nanosleep: improve port to mingw
69595         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
69596         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
69597         LIB_NANOSLEEP, but only when needed.
69598         * modules/select (Link): Document LIBSOCKET.
69599         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
69600         enough.
69602         nanosleep: work around cygwin bug
69603         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
69604         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
69605         bug.
69606         (getnow): Delete, not needed.
69607         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
69608         LIB_CLOCK_GETTIME.
69609         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
69610         clock-time, gettime.
69611         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
69612         bug.
69613         * modules/nanosleep-tests: New test.
69614         * tests/test-nanosleep.c: New file.
69616         sleep: work around cygwin bug
69617         * lib/sleep.c (rpl_sleep): Work around the bug.
69618         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
69619         (gl_PREREQ_SLEEP): Delete unused macro.
69620         * modules/sleep (Depends-on): Add verify.
69621         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
69622         * modules/unistd (Makefile.am): Substitute witness.
69623         * lib/unistd.in.h (sleep): Update prototype.
69624         * doc/posix-functions/sleep.texi (sleep): Document the bug.
69625         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
69626         * modules/sleep-tests (Depends-on): Check for alarm.
69628 2009-11-20  Jim Meyering  <meyering@redhat.com>
69630         maint.mk: improve sc_prohibit_magic_number_exit
69631         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
69632         so it does not match uses like System.exit(1).
69633         Add comments showing how to correct all offenders.
69635 2009-11-19  Eric Blake  <ebb9@byu.net>
69637         xalloc-die-tests: add missing library
69638         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
69640         test-xvasprintf: silence compiler warnings
69641         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
69642         empty string from gcc.
69644 2009-11-19  Jim Meyering  <meyering@redhat.com>
69646         xfreopen: new module, from coreutils
69647         * modules/xfreopen: New module.
69648         * lib/xfreopen.c: New file.
69649         * lib/xfreopen.h: New file.
69650         * MODULES.html.sh (File stream based Input/Output"): Add it.
69652 2009-11-19  Eric Blake  <ebb9@byu.net>
69654         manywarnings: depend on warnings
69655         * modules/manywarnings (Depends-on): Add warnings.
69657         build: avoid compiler warnings
69658         * lib/select.c (rpl_select): Delete unused variable.
69659         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
69661 2009-11-18  Eric Blake  <ebb9@byu.net>
69663         tests: avoid false negative with --with-packager
69664         * tests/test-version-etc.sh: Discard packager information.
69665         * tests/test-argp-version-etc-1.sh: Likewise.
69666         Reported by Mike Frysinger.
69668         utimens: fix regression on Solaris
69669         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
69670         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
69671         can only change fd timestamps via futimesat.  Instead, use an
69672         additional witness macro to avoid BSD bug.
69673         Reported by Jim Meyering.
69675 2009-11-17  Eric Blake  <ebb9@byu.net>
69677         usleep: use it to simplify tests
69678         * modules/stat-time-tests (Depends-on): Add usleep.
69679         (configure.ac): Drop usleep check.
69680         * modules/chown-tests (Depends-on, configure.ac): Likewise.
69681         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
69682         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
69683         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
69684         * modules/openat-tests (Depends-on, configure.ac): Likewise.
69685         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
69686         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
69687         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
69688         Likewise.
69689         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
69690         * tests/test-lchown.h (nap): Likewise.
69691         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
69692         * tests/test-stat-time.c (nap): Likewise.
69693         * tests/test-utimens-common.h (nap): Update comments.
69695         usleep: new module
69696         * modules/usleep: New file.
69697         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
69698         * lib/usleep.c (usleep): Likewise.
69699         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
69700         * modules/unistd (Makefile.am): Substitute witnesses.
69701         * lib/unistd.in.h (usleep): Add declaration.
69702         * doc/pastposix-functions/usleep.texi (usleep): Document this.
69703         * MODULES.html.sh (Date and time): Likewise.
69704         * modules/usleep-tests (Depends-on): New test.
69705         * tests/test-usleep.c: New file.
69707         chown: work around OpenBSD bug
69708         * lib/chown.c (rpl_chown): Work around the bug.
69709         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
69710         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
69711         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
69712         * modules/chown (Depends-on): Add stdbool.
69713         * modules/lchown (Depends-on): Likewise.
69714         * doc/posix-functions/chown.texi (chown): Document the bug.
69715         * doc/posix-functions/lchown.texi (lchown): Likewise.
69716         * tests/test-lchown.h (test_chown): Relax test.
69718         mkstemp: avoid conflict with C++ keyword template
69719         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
69720         * lib/mkostemp.c (mkostemp): Likewise.
69721         * lib/mkostemps.c (mkostemps): Likewise.
69722         * lib/mkstemp.c (mkstemp): Likewise.
69723         * lib/mkstemps.c (mkstemps): Likewise.
69725         xalloc-die-tests: optimize
69726         * tests/test-xalloc-die.sh: Reduce number of processes.
69728 2009-11-17  Simon Josefsson  <simon@josefsson.org>
69730         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
69731         patch from ludo@gnu.org (Ludovic Courtès).
69733 2009-11-17  Jim Meyering  <meyering@redhat.com>
69735         version-etc: use proper license string
69736         * modules/version-etc (License): Use LGPL, not LGPLv3+.
69737         * modules/version-etc-fsf: Likewise.
69739 2009-11-17  Simon Josefsson  <simon@josefsson.org>
69741         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
69742         printed to stdout.  Deal with EOL differences.
69744 2009-11-17  Eric Blake  <ebb9@byu.net>
69746         unsetenv: work around Solaris bug
69747         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
69748         * lib/unsetenv.c (rpl_unsetenv): Work around it.
69749         Reported by Jim Meyering.
69751         vasnprintf: avoid compiler warnings
69752         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
69753         variables.
69754         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
69756 2009-11-17  Simon Josefsson  <simon@josefsson.org>
69758         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
69759         settings since xalloc-die is no longer the self test,
69760         xalloc-die.sh is.
69762 2009-11-17  Jim Meyering  <meyering@redhat.com>
69764         test-xalloc-die.sh: make the code agree with the commit log
69765         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
69766         at the end, just in case you happen to have a test-xalloc-die
69767         program in some other PATH directory.
69769         test-xalloc-die.sh: fix a portability bug
69770         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
69771         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
69772         Otherwise, argv[0] (as often seen in diagnostics) would be too
69773         system-dependent, sometimes with, and sometimes without the leading "./".
69775         version-etc-fsf: relax license to LGPLv3+
69776         * modules/version-etc-fsf (License): Relax license.
69778 2009-11-16  Eric Blake  <ebb9@byu.net>
69780         xalloc-die-tests: avoid printing null pointer
69781         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
69782         shell script.
69783         * tests/test-xalloc-die.c (program_name): Declare.
69784         * tests/test-xalloc-die.sh (tmpfiles): New file.
69786         setenv, unsetenv: work around various bugs
69787         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
69788         (setenv) [HAVE_SETENV]: Work around bugs.
69789         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
69790         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
69791         for bugs.
69792         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
69793         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
69794         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
69795         * modules/stdlib (Makefile.am): Update substitutions.
69796         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
69797         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
69798         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
69799         * modules/setenv-tests: New test.
69800         * modules/unsetenv-tests: Likewise.
69801         * tests/test-setenv.c: New file.
69802         * tests/test-unsetenv.c: Likewise.
69804 2009-11-16  Jim Meyering  <meyering@redhat.com>
69806         version-etc: relax license to LGPLv3+
69807         * modules/version-etc (License): Relax license.
69809         better AC_REQUIRE expanded-before-required-warning avoidance
69810         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
69811         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
69812         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
69813         which is no longer needed.
69815 2009-11-16  Eric Blake  <ebb9@byu.net>
69817         test-freading: clean up temporary file
69818         * tests/test-freading.c (main): Remove file on success, and use
69819         ASSERT more liberally.
69820         Reported by Jim Meyering.
69822 2009-11-16  Jim Meyering  <meyering@redhat.com>
69824         avoid new AC_REQUIRE expanded-before-required warnings
69825         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
69826         merely using it.
69827         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
69828         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
69830 2009-11-15  Simon Josefsson  <simon@josefsson.org>
69832         * tests/test-xalloc-die.c: New file.
69833         * modules/xalloc-die-tests: New file.
69834         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
69835         XFAIL_TESTS so it can be appended by modules.
69837 2009-11-15  Simon Josefsson  <simon@josefsson.org>
69839         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
69840         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
69842 2009-11-14  Eric Blake  <ebb9@byu.net>
69844         fnmatch: avoid compiler warning
69845         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
69846         to silence compiler warning about mismatch signedness in ?:.
69847         Reported by Robert Millan.
69849         intprops: add double-inclusion guard
69850         * lib/intprops.h: Allow idempotent includes.
69851         Suggested by Bruce Korb.
69853         openat: detect Solaris fchownat bug
69854         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
69855         penalizing glibc chownat when only lchownat is broken.
69856         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
69857         trailing slash bugs.
69858         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
69859         * modules/openat-tests (Files): Include more files.
69860         (Depends-on): Add mgetgroups, sleep, stat-time.
69861         (configure.ac): Add additional checks.
69862         (Makefile.am): Build new test.
69863         * tests/test-fchownat.c: New file.
69865         lchown: detect Solaris and FreeBSD bug
69866         * lib/lchown.c (rpl_lchown): Work around bug.
69867         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
69868         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
69869         * modules/unistd (Makefile.am): Populate it.
69870         * lib/unistd.in.h (lchown): Update declaration.
69871         * doc/posix-functions/lchown.texi (lchown): Document the bug.
69872         * modules/lchown-tests: New file.
69873         * tests/test-lchown.h (test_lchown): Likewise.
69874         * tests/test-lchown.c (main): Likewise.
69876         chown: detect Solaris and FreeBSD bug
69877         * lib/chown.c (rpl_chown): Work around bug.
69878         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
69879         (gl_PREREQ_CHOWN): Delete.
69880         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
69881         * modules/unistd (Makefile.am): Populate it.
69882         * lib/unistd.in.h (chown): Update declaration.
69883         * lib/lchown.c (chown): Update client.
69884         * modules/lchown (Depends-on): Add lstat.
69885         * doc/posix-functions/chown.texi (chown): Document the bug.
69886         * doc/posix-functions/getgroups.texi (getgroups): Document
69887         getgroups pitfall.
69888         * modules/chown-tests: New file.
69889         * tests/test-chown.h (test_chown): Likewise.
69890         * tests/test-chown.c (main): Likewise.
69892 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
69894         gnulib-tool: correctly detect absence of m4 directories
69895         * gnulib-tool: Avoid extra newline on data passed to wc -l.
69897 2009-11-14  Jim Meyering  <meyering@redhat.com>
69899         maint.mk: Prohibit inclusion of "xalloc.h" without use.
69900         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
69902 2009-11-14  John W. Eaton  <jwe@gnu.org>
69904         strftime.h: wrap function declaration in extern "C" block
69905         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
69907 2009-11-13  Eric Blake  <ebb9@byu.net>
69909         getgroups: avoid compiler warning
69910         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
69912         getgroups: work around FreeBSD bug
69913         * lib/getgroups.c (rpl_getgroups): Work around the bug.
69914         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
69915         * doc/posix-functions/getgroups.texi (getgroups): Document it.
69916         * tests/test-getgroups.c (main): Fix buffer overrun.
69918         getgroups: avoid compilation failure
69919         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
69920         * modules/getgroups (Depends-on): Add stdint.
69922 2009-11-13  Jim Meyering  <meyering@redhat.com>
69924         test-getgroups: avoid compilation failure
69925         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
69927 2009-11-13  Eric Blake  <ebb9@byu.net>
69929         mgetgroups: new module, taken from coreutils
69930         * modules/mgetgroups: New file.
69931         * lib/mgetgroups.h: Likewise.
69932         * lib/mgetgroups.c (mgetgroups): Likewise.
69933         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
69934         * MODULES.html.sh (Users and groups): Mention it.
69936         getgroups: don't expose GETGROUPS_T to user
69937         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
69938         an element at a time if GETGROUPS_T is wrong size.
69939         * lib/getugroups.h (getugroups): Change signature.
69940         * lib/unistd.in.h (getgroups): Likewise.
69941         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
69942         signature needs fixing.
69943         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
69944         AC_TYPE_GETGROUPS.
69945         * modules/group-member (Depends-on): Add getgroups.
69946         * lib/group-member.c (group_info, get_group_info): Use gid_t.
69947         (group_member): Rely on getgroups replacement.
69948         * lib/getugroups.c (getugroups): Use gid_t.
69949         * tests/test-getgroups.c (main): Likewise.
69950         * NEWS: Mention the signature change.
69951         * doc/posix-functions/getgroups.texi (getgroups): Mention the
69952         problem with signature.
69953         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
69954         GETGROUPS_T is still useful for setgroups.
69956         getgroups, getugroups: provide stubs for mingw
69957         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
69958         * lib/getugroups.c (getugroups): Likewise.
69959         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
69960         function.  Modernize replacement scheme.
69961         (gl_PREREQ_GETGROUPS): Delete.
69962         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
69963         * modules/getgroups (configure.ac): Declare witness.
69964         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
69965         * modules/unistd (Depends-on): Substitute witness.
69966         * lib/unistd.in.h (getgroups): Declare replacement.
69968         getgroups: avoid calling exit
69969         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
69970         drop xalloc.
69971         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
69972         dependencies.
69973         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
69974         exiting, in the rare case of malloc failure.
69976         getgroups: fix logic error
69977         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
69978         has more than 20 groups.
69979         * modules/getgroups-tests: New test.
69980         * tests/test-getgroups.c: New file.
69982 2009-11-13  Simon Josefsson  <simon@josefsson.org>
69984         * tests/test-base64.c: Improve.
69986 2009-11-13  Simon Josefsson  <simon@josefsson.org>
69988         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
69989         Blake <ebb9@byu.net>.
69991 2009-11-13  Simon Josefsson  <simon@josefsson.org>
69993         * tests/test-xvasprintf.c: Add %s%s related checks.
69995 2009-11-12  Eric Blake  <ebb9@byu.net>
69997         version-etc: match standards.texi style
69998         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
69999         and use <> only for URLs.
70001 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
70003         fts: do not fail on a submount during traversal
70004         * lib/fts.c (fts_build): Read the stat info again after opening
70005         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
70006         Original report at http://bugzilla.redhat.com/501848.
70008 2009-11-12  Jim Meyering  <meyering@redhat.com>
70010         bootstrap: sync from coreutils
70011         * build-aux/bootstrap (bootstrap_epilogue): New function.
70012         Use git_modules_config in one more place.  This make bootstrap's
70013         --gnulib-srcdir option more useful for testing.
70015         bootstrap: generalize autoheader check
70016         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
70017         AC_CONFIG_HEADERS.
70019 2009-11-11  Eric Blake  <ebb9@byu.net>
70021         mkfifoat: use new modules for Solaris and BSD bugs
70022         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
70023         * lib/mkfifoat.c (mknodat): Split...
70024         * lib/mknodat.c (mknodat): ...into new file.
70025         * modules/mkfifoat (Files): Ship new file.
70026         (Depends-on): Add mkfifo, mknod.
70027         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
70028         (Depends-on): Add symlink.
70029         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
70030         redundant with test_mkfifo.h.
70031         (do_mkfifoat, do_mknodat): New helpers.
70033         mknod: new module
70034         * modules/mknod: New file.
70035         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
70036         * lib/mknod.c (mknod): Likewise.
70037         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
70038         defaults.
70039         * modules/sys_stat (Makefile.am): Substitute them.
70040         * lib/sys_stat.in.h (mknod): Declare replacement.
70041         * MODULES.html.sh (Support for systems lacking POSIX:2008):
70042         Document it.
70043         * doc/posix-functions/mknod.texi (mknod): Likewise.
70044         * modules/mknod-tests: New test.
70045         * tests/test-mknod.c: Likewise.
70047         mkfifo: new module
70048         * modules/mkfifo: New file.
70049         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
70050         * lib/mkfifo.c (mkfifo): Likewise.
70051         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
70052         defaults.
70053         * modules/sys_stat (Makefile.am): Substitute them.
70054         * lib/sys_stat.in.h (mkfifo): Declare replacement.
70055         * MODULES.html.sh (Support for systems lacking POSIX:2008):
70056         Document it.
70057         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
70058         * modules/mkfifo-tests: New test.
70059         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
70060         from test-mkfifoat.c.
70061         * tests/test-mkfifo.c: New file.
70063         readlink: detect FreeBSD bug
70064         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
70065         slash on symlink.
70066         * doc/posix-functions/readlink.texi (readlink): Document the bug.
70067         * tests/test-readlink.h (test_readlink): Enhance test.
70069         symlink: detect FreeBSD bug
70070         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
70071         slash on symlink.
70072         * doc/posix-functions/symlink.texi (symlink): Document the bug.
70073         * tests/test-symlink.h (test_symlink): Enhance test.
70075 2009-11-10  Eric Blake  <ebb9@byu.net>
70077         link: detect FreeBSD bug
70078         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
70079         symlink.
70080         * doc/posix-functions/link.texi (link): Document the bug.
70081         * tests/test-link.h (test_link): Enhance test.
70082         * tests/test-linkat.c (main): Update caller.
70084         unlink, remove: detect FreeBSD bug
70085         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
70086         slash on symlink.
70087         * doc/posix-functions/unlink.texi (unlink): Document the bug.
70088         * doc/posix-functions/remove.texi (remove): Likewise.
70089         * tests/test-unlink.h (test_unlink): Enhance test.
70090         * tests/test-remove.c (main): Likewise.
70092 2009-11-09  Eric Blake  <ebb9@byu.net>
70094         rename: detect FreeBSD bug
70095         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
70096         slash on symlink.
70097         * modules/renameat-tests (Depends-on): Add filenamecat.
70098         * tests/test-rename.h (test_rename): Allow one more errno.
70099         * tests/test-renameat.c (main): Likewise.
70100         * doc/posix-functions/rename.texi (rename): Document the bug.
70102         open: detect FreeBSD bug
70103         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
70104         symlink.
70105         * doc/posix-functions/open.texi (open): Document the bug.
70106         * doc/posix-functions/utimes.texi (utimes): Likewise.
70107         * tests/test-open.h (test_open): Add parameters, and test symlink
70108         handling.
70109         * tests/test-open.c (main): Adjust caller.
70110         * tests/test-fcntl-safer.c (main): Likewise.
70111         * modules/open-tests (Depends-on): Add stdbool, symlink.
70112         * modules/fcntl-safer-tests (Depends-on): Likewise.
70113         * tests/test-openat.c (main): Add test-open tests.
70115         stat: detect FreeBSD bug
70116         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
70117         symlink.
70118         * doc/posix-functions/stat.texi (stat): Document the bug.
70119         * tests/test-stat.h (test_stat_func): Add argument.
70120         * tests/test-stat.c (main): Adjust caller.
70121         * tests/test-fstatat.c (main): Likewise.
70122         * modules/stat-tests (Depends-on): Add stdbool, symlink.
70123         Reported by Jim Meyering.
70125 2009-11-09  James Youngman  <jay@gnu.org>
70127         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
70128         * lib/strftime.c: Correct placement of #include "ignore-value.h".
70130 2009-11-08  Jim Meyering  <meyering@redhat.com>
70132         utimens: remove invalid futimesat call
70133         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
70134         It used the file descriptor of the target file as the DIR_FD
70135         parameter and NULL as the file name.  That caused failure with
70136         errno == EFAULT on FreeBSD-8.0-rc2
70138 2009-11-07  Eric Blake  <ebb9@byu.net>
70140         fflush, freadseek: use fseeko, not fseek
70141         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
70142         (clear_ungetc_buffer): Avoid potential problems on large files.
70143         * lib/freadseek.c (freadseek): Likewise.
70144         * modules/freadseek (Depends-on): Add fseeko.
70145         * modules/fseek (configure.ac): Set a witness.
70146         * tests/test-fflush.c (main): Use fseeko.
70147         * tests/test-fpurge.c (fseek): Disable link warning.
70148         * tests/test-freadable.c (fseek): Likewise.
70149         * tests/test-freading.c (fseek): Likewise.
70150         * tests/test-fseeko.c (fseek): Likewise.
70151         * tests/test-ftell.c (fseek): Likewise.
70152         * tests/test-ftello.c (fseek): Likewise.
70153         * tests/test-fwritable.c (fseek): Likewise.
70154         * tests/test-fwriting.c (fseek): Likewise.
70156 2009-11-06  Simon Josefsson  <simon@josefsson.org>
70158         * modules/memchr (Depends-on): Drop getpagesize dependency.
70160 2009-11-06  Simon Josefsson  <simon@josefsson.org>
70162         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
70163         Reported by Ludovic Courtès.
70164         * build-aux/pmccabe2html: Improve example usage.
70165         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
70167 2009-11-06  Jim Meyering  <meyering@redhat.com>
70169         do-release-commit-and-tag: New module.
70170         Automate the release-commit and tag process.
70171         * build-aux/do-release-commit-and-tag: New script, from coreutils.
70172         * modules/do-release-commit-and-tag: New file.
70173         * MODULES.html.sh (Support for maintaining and releasing): Add it.
70175 2009-11-06  Simon Josefsson  <simon@josefsson.org>
70177         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
70178         because test-select.c uses inet_pton.
70180 2009-11-06  Simon Josefsson  <simon@josefsson.org>
70182         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
70183         GETADDRINFO_LIB.  Bump serial number.
70184         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
70185         Suggested by Eric Blake <ebb9@byu.net>.
70187 2009-11-05  Eric Blake  <ebb9@byu.net>
70189         strtod: detect darwin bug
70190         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
70191         Reported by Leo Davis.
70193         freopen-safer: new module
70194         * modules/freopen-safer: New module.
70195         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
70196         * lib/freopen-safer.c (freopen_safer): New file.
70197         * lib/stdio-safer.h (freopen_safer): New declaration.
70198         * lib/stdio--.h (freopen): New override.
70199         * MODULES.html.sh (File stream based Input/Output): Mention it.
70200         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
70201         freopen-safer module.
70202         * doc/posix-functions/stderr.texi (stderr): Likewise.
70203         * doc/posix-functions/stdin.texi (stdin): Likewise.
70204         * doc/posix-functions/stdout.texi (stdout): Likewise.
70205         * modules/freopen-safer-tests: New test.
70206         * tests/test-reopen-safer.c: New file.
70208 2009-11-05  Jim Meyering  <meyering@redhat.com>
70210         maint.mk: Prohibit inclusion of "close-stream.h" without use.
70211         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
70213 2009-11-05  Simon Josefsson  <simon@josefsson.org>
70215         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
70217 2009-11-05  Simon Josefsson  <simon@josefsson.org>
70219         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
70221 2009-11-05  Simon Josefsson  <simon@josefsson.org>
70223         Fix link error.
70224         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
70225         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
70227 2009-11-05  Simon Josefsson  <simon@josefsson.org>
70229         * tests/test-func.c: Also test value of __func__.
70231 2009-11-05  Simon Josefsson  <simon@josefsson.org>
70233         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
70234         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
70236 2009-11-05  Bruno Haible  <bruno@clisp.org>
70238         Fix link error.
70239         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
70240         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
70241         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
70243 2009-11-05  Bruno Haible  <bruno@clisp.org>
70245         Tests for module 'inet_pton'.
70246         * modules/inet_pton-tests: New file.
70247         * tests/test-inet_pton.c: New file.
70249 2009-11-05  Bruno Haible  <bruno@clisp.org>
70251         Tests for module 'inet_ntop'.
70252         * modules/inet_ntop-tests: New file.
70253         * tests/test-inet_ntop.c: New file.
70255 2009-11-04  Eric Blake  <ebb9@byu.net>
70257         stdlib-safer: wrap all mkstemp variants
70258         * modules/mkostemp (configure.ac): Set witness.
70259         * modules/mkostemps (configure.ac): Likewise.
70260         * modules/mkstemps (configure.ac): Likewise.
70261         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
70262         (mkstemps_safer): Wrap more functions.
70263         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
70264         wrapping.
70265         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
70266         (mkstemps_safer): Implement the wrappers.
70268         mkstemps, mkostemps: new modules
70269         * modules/mkostemps: New module.
70270         * modules/mkstemps: Likewise.
70271         * lib/mkostemps.c (mkostemps): New file.
70272         * lib/mkstemps.c (mkstemps): Likewise.
70273         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
70274         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
70275         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
70276         * modules/stdlib (Makefile.am): Substitute them.
70277         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
70278         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
70279         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
70280         * doc/gnulib.texi (Glibc stdlib.h): Include them.
70281         * MODULES.html.sh (File system functions): Mention them.
70283         tempname: resync from glibc
70284         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
70285         same values for __GT_FILE as glibc.  Abort even when assertions
70286         are disabled.
70287         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
70288         match its value otherwise.  Allow idempotent inclusion.
70289         * lib/mkdtemp.c (mkdtemp): Adjust caller.
70290         * lib/mkostemp.c (mkostemp): Likewise.
70291         * lib/mkstemp.c (mkstemp): Likewise.
70292         * lib/tmpfile.c (tmpfile): Likewise.
70293         * NEWS: Document this.
70295         utimens: fix use of futimens on older Linux
70296         * lib/utimens.c (fdutimens): Use updated, rather than original,
70297         timespec to avoid bug in older Linux kernel.
70298         Reported by Simon Josefsson.
70300 2009-11-04  Bruno Haible  <bruno@clisp.org>
70302         Make num_processors more flexible and consistent.
70303         * lib/nproc.h (enum nproc_query): New type.
70304         (num_processors): Add a 'query' argument.
70305         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
70306         (num_processors): Add a 'query' argument. Test the value of the
70307         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
70308         mingw, count the number of CPUs available for the current process.
70309         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
70310         Check for sched_getaffinity and sched_getaffinity_np.
70311         * modules/nproc (Depends-on): Add c-ctype, extensions.
70312         * NEWS: Mention the change.
70314 2009-11-03  Bruno Haible  <bruno@clisp.org>
70316         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
70318 2009-11-03  Jim Meyering  <meyering@redhat.com>
70320         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
70321         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
70322         if it is defined.
70324 2009-11-02  Eric Blake  <ebb9@byu.net>
70326         mktime, timegm: share common declaration
70327         * lib/mktime-internal.h: New file.
70328         * lib/mktime.c: Use it rather than open-coding a declaration.
70329         * lib/timegm.c: Likewise.
70330         * modules/mktime (Files): Ship it.
70331         * modules/timegm (Files): Likewise.
70332         Suggested by Bruno Haible.
70334         test-update-copyright: update test to match script changes
70335         * tests/test-update-copyright.sh: Avoid hard-coding perl
70336         location.  Don't update *.bak created by earlier runs.
70338 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
70339             Simon Josefsson  <simon@josefsson.org>
70340             Bruno Haible  <bruno@clisp.org>
70342         Fix link error on Solaris 8.
70343         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
70344         also in libnsl. Define also INET_PTON_LIB.
70345         * modules/inet_pton (Link): New section.
70347 2009-11-02  Simon Josefsson  <simon@josefsson.org>
70348             Bruno Haible  <bruno@clisp.org>
70350         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
70351         * modules/inet_ntop (Link): New section.
70352         Reported by Boyan Kasarov <bkasarov@gmail.com>.
70354 2009-11-02  Eric Blake  <ebb9@byu.net>
70356         maint: avoid compiler warnings in m4 macros
70357         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
70358         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
70360 2009-11-02  Simon Josefsson  <simon@josefsson.org>
70362         * m4/pmccabe2html.m4: Remove file.
70363         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
70364         function.  Change maintainer.
70365         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
70366         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
70367         Courtès).
70369 2009-10-31  Eric Blake  <ebb9@byu.net>
70371         fseeko: fix m4 regression
70372         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
70373         regression from 2009-10-27.
70374         Reported by Ralf Wildenhues.
70376 2009-10-31  Jim Meyering  <meyering@redhat.com>
70378         inttostr: aesthetics and improved (compile-time) safety
70379         Define inttype_is_signed rather than inttype_is_unsigned,
70380         since the sole use is via "#if inttype_is_signed".
70381         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
70382         inttype_is_unsigned.
70383         * lib/offtostr.c (inttype_is_signed): Likewise.
70384         * lib/uinttostr.c (inttype_is_signed): Likewise.
70385         * lib/umaxtostr.c (inttype_is_signed): Likewise.
70386         * lib/inttostr.c (inttostr): Use verify to cross-check the
70387         inttype_is_signed value and the signedness of the actual type.
70388         * modules/inttostr (Depends-on): Add verify.
70390 2009-10-30  Eric Blake  <ebb9@byu.net>
70392         build: avoid compiler warnings
70393         * lib/fchmodat.c (lchmod): Mark unused variables.
70394         * lib/getopt.c (_getopt_initialize): Likewise.
70395         * lib/mktime.c (__mktime_internal): Provide prototype.
70396         * lib/inttostr.c (inttostr): Avoid compiler warning even with
70397         older gcc that do not understand #pragma GCC diagnostic.
70398         * lib/uinttostr.c (inttype_is_unsigned): Define.
70399         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
70401 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
70403         stat: fix compilation on AIX
70404         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
70405         only see struct stat64.
70407 2009-10-30  Eric Blake  <ebb9@byu.net>
70409         exclude: make more robust
70410         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
70411         rather than masking a coding bug.
70412         Suggested by Bruno Haible.
70414 2009-10-30  Jim Meyering  <meyering@redhat.com>
70416         perl scripts: remove #!/usr/bin/perl in favor of more portable...
70417         Rather than putting #!/usr/bin/perl on the first line,
70418         start with a variant of what's recommended by "man perlrun" that
70419         invokes the first "perl" program from your shell's search path.
70420         * build-aux/gitlog-to-changelog: Replace #!... as above.
70421         Add a "Local Variables" perl mode setting.
70422         Prompted by a patch from Ludovic Courtès.
70423         Improved by Eric Blake.
70424         * build-aux/useless-if-before-free: Likewise.
70425         * build-aux/announce-gen: Likewise.
70426         * build-aux/update-copyright: Likewise.
70428 2009-10-29  Eric Blake  <ebb9@byu.net>
70430         filenamecat-lgpl: adjust clients
70431         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
70432         filenamecat.
70433         * modules/renameat (Depends-on): Likewise.
70435         filenamecat: split into filenamecat-lgpl
70436         * modules/filenamecat-lgpl: New module.
70437         * modules/filenamecat (Files): Move library-safe files into
70438         filenamecat-lgpl.
70439         (Depends-on): Add filenamecat-lgpl.
70440         (configure.ac): Declare witness.
70441         * lib/filenamecat.h (file_name_concat): Only declare when using
70442         GPL module.
70443         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
70444         Move...
70445         * lib/filenamecat-lgpl.c: ...into new file.
70446         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
70447         (gl_FILE_NAME_CONCAT): Use it.
70448         * MODULES.html.sh (File system functions): Mention new module.
70450         argp: avoid memory leak
70451         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
70452         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
70453         base_name, since the latter malloc()s and can call exit().
70454         Leak introduced 2006-07-03.
70456         dirname-lgpl: adjust clients that don't need full dirname
70457         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
70458         * modules/filenamecat (Depends-on): Likewise.
70459         * modules/linkat (Depends-on): Likewise.
70460         * modules/mkancesdirs (Depends-on): Likewise.
70461         * modules/mkdir (Depends-on): Likewise.
70462         * modules/openat (Depends-on): Likewise.
70463         * modules/savewd (Depends-on): Likewise.
70464         * modules/rename (Depends-on): Likewise.
70465         (License): Relax license.
70466         * modules/mkdir-tests (Depends-on): Drop progname.
70467         (Makefile.am): Delete unneeded LDADD.
70468         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
70470         dirname: split into dirname-lgpl
70471         * modules/dirname-lgpl: New module.
70472         * modules/dirname (Files): Move library-safe files into
70473         dirname-lgpl.
70474         (Depends-on): Add dirname-lgpl.
70475         (configure.ac): Declare witness.
70476         * modules/double-slash-root (License): Relax license.
70477         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
70478         module.
70479         * lib/dirname.c (dir_len, mdir_name): Move...
70480         * lib/dirname-lgpl.c: ...into new file.
70481         * lib/basename.c (last_component, base_len): Move...
70482         * lib/basename-lgpl.c: ...into new file.
70483         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
70484         (gl_DIRNAME): Use it.
70485         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
70486         Mention new module.
70487         * modules/dirname-tests (Depends-on): Add progname.
70488         * tests/test-dirname.c (program_name): Delete.
70490         mkdir: make safe for libraries
70491         * modules/mkdir (Depends-on): Drop xalloc.
70492         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
70493         exit.
70495         tests: avoid some compiler warnings
70496         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
70497         literals.
70498         * tests/test-memchr.c (main): Avoid type mismatch.
70499         * tests/test-arpa_inet.c (main): Avoid unused parameters.
70500         * tests/test-base64.c (main): Likewise.
70501         * tests/test-getdelim.c (main): Likewise.
70502         * tests/test-gethostname.c (main): Likewise.
70503         * tests/test-getline.c (main): Likewise.
70504         * tests/test-netinet_in.c (main): Likewise.
70505         * tests/test-select.c (open_server_socket, main): Likewise.
70506         * tests/test-select-stdin.c (main): Likewise.
70507         * tests/test-sockets.c (main): Likewise.
70508         * tests/test-strsignal.c (main): Likewise.
70509         * tests/test-sys_select.c (main): Likewise.
70510         * tests/test-sys_socket.c (main): Likewise.
70511         * tests/test-u64.c (main): Likewise.
70512         * tests/test-xfprintf-posix.c (main): Likewise.
70513         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
70515         sockets: avoid compiler warning
70516         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
70518         maint: detect usage(1) and other suspicious exits
70519         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
70521 2009-10-29  Jim Meyering  <meyering@redhat.com>
70523         timespec: long-to-int truncation could make timespec_cmp malfunction
70524         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
70525         a multiple of 2^32 nanoseconds as no difference.
70527 2009-10-28  Jim Meyering  <meyering@redhat.com>
70529         fprintftime: wrap macro code argument in "do {...} while(0)"
70530         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
70531         cpy macro must be a statement that can be followed by a semicolon.
70532         Now that the else clause contains a comment and is hence longer
70533         than one line, I require curly braces.  That in turn requires
70534         that we wrap this code block in the standard do...while(0).
70536         fprintftime: remove stray semicolon from previous change
70537         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
70539         fprintftime: avoid a warning about ignored fwrite return value
70540         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
70541         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
70542         that is unsafe.
70543         * modules/fprintftime (Depends-on): Add ignore-value.
70545         exclude: avoid an unwarranted warning
70546         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
70548 2009-10-27  Eric Blake  <ebb9@byu.net>
70550         fseek: avoid compilation failure when fflush is replaced
70551         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
70552         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
70553         module is in use.
70554         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
70555         module is not in use; since REPLACE_FSEEK worked otherwise.
70556         (GNULIB_FTELLO): Likewise for ftell.
70557         Reported by Ian Beckwith and others.
70559 2009-10-27  Bruno Haible  <bruno@clisp.org>
70561         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
70562         Reported by Jim Meyering.
70564 2009-10-27  Jim Meyering  <jim@meyering.net>
70565             Bruno Haible  <bruno@clisp.org>
70567         Avoid warning despite dropping the return value of fwrite.
70568         * lib/unicodeio.c: Include ignore-value.h.
70569         (fwrite_success_callback): Explicitly ignore fwrite's return value.
70570         * modules/unicodeio (Depends-on): Add ignore-value.
70572 2009-10-26  Eric Blake  <ebb9@byu.net>
70574         areadlinkat: fix fallback path
70575         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
70576         pointer and zero.
70578 2009-10-22  Pádraig Brady  <P@draigBrady.com>
70580         Use a better IO block size for modern systems
70581         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
70582         * lib/md2.c: Likewise.
70583         * lib/md4.c: Likewise.
70584         * lib/md5.c: Likewise.
70585         * lib/sha1.c: Likewise.
70586         * lib/sha256.c: Likewise.
70587         * lib/sha512.c: Likewise.
70589 2009-10-22  Eric Blake  <ebb9@byu.net>
70591         tests: avoid several compiler warnings
70592         * tests/test-getcwd.c (main): Avoid buffer underflow.
70593         * tests/test-getdate.c (main): String literals are not safe with
70594         putenv, so use setenv.  Declare unused argument.
70595         * modules/getdate-tests (Depends-on): Add setenv.
70596         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
70597         problems with string literals in char *.
70598         * tests/test-hash.c (main): Avoid shadowing declaration.
70599         (insert_new): Treat string literals as char const *.
70600         * tests/test-getopt.h (test_getopt): Likewise.
70601         (getopt_loop): Alter types to minimize casting elsewhere.
70602         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
70603         (test_getopt_long_posix): Likewise.
70604         (do_getopt_long): Add wrapper to minimize casting.
70605         * tests/test-atexit.c (clear_temp_file): Use void.
70606         * tests/test-areadlink-with-size.c (main): Declare unused
70607         arguments.
70608         * tests/test-areadlink.c (main): Likewise.
70609         * tests/test-areadlinkat-with-size.c (main): Likewise.
70610         * tests/test-areadlinkat.c (main): Likewise.
70611         * tests/test-canonicalize-lgpl.c (main): Likewise.
70612         * tests/test-canonicalize.c (main): Likewise.
70613         * tests/test-dirent-safer.c (main): Likewise.
70614         * tests/test-dirname.c (main): Likewise.
70615         * tests/test-dup2.c (main): Likewise.
70616         * tests/test-fchdir.c (main): Likewise.
70617         * tests/test-fcntl-h.c (main): Likewise.
70618         * tests/test-fcntl-safer.c (main): Likewise.
70619         * tests/test-fdopendir.c (main): Likewise.
70620         * tests/test-fdutimensat.c (main): Likewise.
70621         * tests/test-fflush.c (main): Likewise.
70622         * tests/test-filenamecat.c (main): Likewise.
70623         * tests/test-filevercmp.c (main): Likewise.
70624         * tests/test-fopen-safer.c (main): Likewise.
70625         * tests/test-fopen.c (main): Likewise.
70626         * tests/test-fpending.c (main): Likewise.
70627         * tests/test-fpurge.c (main): Likewise.
70628         * tests/test-freading.c (main): Likewise.
70629         * tests/test-fstatat.c (main): Likewise.
70630         * tests/test-fsync.c (main): Likewise.
70631         * tests/test-futimens.c (main): Likewise.
70632         * tests/test-getndelim2.c (main): Likewise.
70633         * tests/test-gettimeofday.c (main): Likewise.
70634         * tests/test-getopt.c (main): Likewise.
70635         * tests/test-i-ring.c (main): Likewise.
70636         * tests/test-inttypes.c (main): Likewise.
70637         * tests/test-link.c (main): Likewise.
70638         * tests/test-lstat.c (main): Likewise.
70639         * tests/test-math.c (main): Likewise.
70640         * tests/test-md5.c (main): Likewise.
70641         * tests/test-memchr2.c (main): Likewise.
70642         * tests/test-memrchr.c (main): Likewise.
70643         * tests/test-mkdir.c (main): Likewise.
70644         * tests/test-mkdirat.c (main): Likewise.
70645         * tests/test-mkfifoat.c (main): Likewise.
70646         * tests/test-open.c (main): Likewise.
70647         * tests/test-openat-safer.c (main): Likewise.
70648         * tests/test-openat.c (main): Likewise.
70649         * tests/test-quotearg.c (main): Likewise.
70650         * tests/test-rawmemchr.c (main): Likewise.
70651         * tests/test-readlink.c (main): Likewise.
70652         * tests/test-remove.c (main): Likewise.
70653         * tests/test-rename.c (main): Likewise.
70654         * tests/test-renameat.c (main): Likewise.
70655         * tests/test-rmdir.c (main): Likewise.
70656         * tests/test-sha1.c (main): Likewise.
70657         * tests/test-signal.c (main): Likewise.
70658         * tests/test-sigaction.c (main): Likewise.
70659         * tests/test-stat.c (main): Likewise.
70660         * tests/test-stat-time.c (main): Likewise.
70661         * tests/test-stddef.c (main): Likewise.
70662         * tests/test-stdint.c (main): Likewise.
70663         * tests/test-stdio.c (main): Likewise.
70664         * tests/test-stdlib.c (main): Likewise.
70665         * tests/test-strchrnul.c (main): Likewise.
70666         * tests/test-strerror.c (main): Likewise.
70667         * tests/test-string.c (main): Likewise.
70668         * tests/test-strtod.c (main): Likewise.
70669         * tests/test-strverscmp.c (main): Likewise.
70670         * tests/test-symlink.c (main): Likewise.
70671         * tests/test-symlinkat.c (main): Likewise.
70672         * tests/test-sys_stat.c (main): Likewise.
70673         * tests/test-sys_time.c (main): Likewise.
70674         * tests/test-time.c (main): Likewise.
70675         * tests/test-unistd.c (main): Likewise.
70676         * tests/test-unlink.c (main): Likewise.
70677         * tests/test-unlinkat.c (main): Likewise.
70678         * tests/test-utimens.c (main): Likewise.
70679         * tests/test-utimensat.c (main): Likewise.
70680         * tests/test-version-etc.c (main): Likewise.
70681         * tests/test-wchar.c (main): Likewise.
70682         * tests/test-wctype.c (main): Likewise.
70683         * tests/test-xprintf-posix.c (main): Likewise.
70684         * tests/test-posixtm.c (main): Likewise.
70685         (STREQ): Delete unused macro.
70686         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
70687         shadowed variables.
70688         * tests/test-memchr.c (main): Likewise.
70690 2009-10-21  Eric Blake  <ebb9@byu.net>
70692         areadlinkat: avoid failure on older glibc
70693         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
70694         rather than mis-comparing 0 against FUNC_RESULT of char*.
70696 2009-10-21  Bruno Haible  <bruno@clisp.org>
70698         * modules/stpncpy (License): Relicense under LGPLv2+.
70699         Reported by David Lutterkort <lutter@redhat.com>.
70701 2009-10-20  Eric Blake  <ebb9@byu.net>
70703         utimensat: work around Solaris 9 bug
70704         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
70705         has trailing slash bugs.
70706         * tests/test-lutimens.h (test_lutimens): Enhance test.
70707         * tests/test-utimens.h (test_utimens): Likewise.
70708         * doc/posix-functions/utime.texi (utime): Enhance documentation.
70709         * doc/posix-functions/utimes.texi (utimes): Likewise.
70710         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
70711         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
70712         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
70713         * doc/posix-functions/futimens.texi (futimens): Likewise.
70715         fdutimensat: new module
70716         * modules/fdutimensat: New file.
70717         * lib/fdutimensat.c (fdutimensat): Likewise.
70718         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
70719         * MODULES.html.sh (File system functions): Mention module.
70720         * modules/fdutimensat-tests: New test.
70721         * tests/test-fdutimensat.c: Likewise.
70723         doc: regenerate INSTALL
70724         * doc/INSTALL: Reflect recent autoconf update.
70725         * doc/INSTALL.ISO: Likewise.
70726         * doc/INSTALL.UTF-8: Likewise.
70728 2009-10-20  Pádraig Brady  <P@draigBrady.com>
70730         acl: warn if ACL support is not detected
70731         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
70733 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
70735         * lib/nproc.h: Add extern "C" block for C++.
70737 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
70738             Bruno Haible  <bruno@clisp.org>
70740         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
70741         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
70742         * doc/posix-functions/isalpha.texi: Likewise.
70743         * doc/posix-functions/isblank.texi: Likewise.
70744         * doc/posix-functions/iscntrl.texi: Likewise.
70745         * doc/posix-functions/isdigit.texi: Likewise.
70746         * doc/posix-functions/isgraph.texi: Likewise.
70747         * doc/posix-functions/islower.texi: Likewise.
70748         * doc/posix-functions/isprint.texi: Likewise.
70749         * doc/posix-functions/ispunct.texi: Likewise.
70750         * doc/posix-functions/isspace.texi: Likewise.
70751         * doc/posix-functions/isupper.texi: Likewise.
70752         * doc/posix-functions/isxdigit.texi: Likewise.
70754 2009-10-18  Bruno Haible  <bruno@clisp.org>
70756         Tests for module 'isblank'.
70757         * modules/isblank-tests: New file.
70758         * tests/test-isblank.c: New file.
70760         New module 'isblank'.
70761         * lib/isblank.c: New file.
70762         * m4/isblank.m4: New file.
70763         * modules/isblank: New file.
70764         * doc/posix-functions/isblank.texi: Mention the new module.
70766 2009-10-18  Bruno Haible  <bruno@clisp.org>
70768         New module 'ctype'.
70769         * lib/ctype.in.h: New file.
70770         * m4/ctype.m4: New file.
70771         * modules/ctype: New file.
70772         * doc/posix-headers/ctype.texi: Mention the new module.
70774 2009-10-18  Jim Meyering  <meyering@redhat.com>
70776         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
70777         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
70778         right after its initialization, rather than farther down.
70779         Keeping these in close proximity makes it easier to ensure
70780         that each such variable is initialized.  E.g.,
70782             LIB_CLOCK_GETTIME=
70783             AC_SUBST([LIB_CLOCK_GETTIME])
70785         This change also increments these serial numbers.
70786         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
70787         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
70788         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
70790 2009-10-18  Bruno Haible  <bruno@clisp.org>
70792         Don't let environment variables perturb build.
70793         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
70794         (gl_PREREQ_GETHRXTIME): ... not here.
70796 2009-10-18  Bruno Haible  <bruno@clisp.org>
70798         Avoid symlink attack in localcharset module.
70799         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
70800         (O_NOFOLLOW): Define fallback.
70801         (get_charset_aliases): Don't open the file if it is a symbolic link.
70802         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
70803         gl_FCNTL_H.
70804         (gl_FCNTL_H): Require it.
70805         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
70806         * modules/localcharset (Files): Add m4/fcntl_h.m4.
70807         Reported by Fergal Glynn <fglynn@veracode.com>.
70809 2009-10-18  Bruno Haible  <bruno@clisp.org>
70811         Implement nproc for mingw.
70812         * lib/nproc.c: Include <windows.h>
70813         (num_processors): On native Windows platforms, try GetSystemInfo.
70815 2009-10-18  Bruno Haible  <bruno@clisp.org>
70817         Implement nproc for IRIX.
70818         * lib/nproc.c: Include <sys/sysmp.h>.
70819         (num_processors): On IRIX systems, try sysmp.
70820         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
70822 2009-10-18  Bruno Haible  <bruno@clisp.org>
70824         Implement nproc for HP-UX.
70825         * lib/nproc.c: Include <sys/pstat.h>
70826         (num_processors): On HP-UX systems, try pstat_getdynamic.
70827         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
70828         pstat_getdynamic.
70830 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
70831             Bruno Haible  <bruno@clisp.org>
70833         Implement nproc for NetBSD, OpenBSD.
70834         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
70835         (ARRAY_SIZE): New macro.
70836         (num_processors): On BSD systems, try sysctl of HW_NCPU.
70837         * m4/nproc.m4: New file.
70838         * modules/nproc (Files): Add m4/nproc.m4.
70839         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
70840         (Makefile.am): Instead, augment lib_SOURCES.
70842 2009-10-18  Bruno Haible  <bruno@clisp.org>
70844         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
70845         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
70846         sys/param.h.
70848 2009-10-16  Eric Blake  <ebb9@byu.net>
70850         utimensat: new module
70851         * modules/utimensat: New file.
70852         * lib/utimensat.c (utimensat): Likewise.
70853         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
70854         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
70855         so we can work around Linux bugs.
70856         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
70857         * modules/sys_stat (Makefile.am): Substitute them.
70858         * lib/sys_stat.in.h (utimensat): Declare it.
70859         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
70860         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
70861         * modules/utimensat-tests: New test.
70862         * tests/test-utimensat.c: Likewise.
70864         utimens: let lutimens work on non-symlinks
70865         * lib/utimens.c (lutimens): Fall back to utimens rather than
70866         failing with ENOSYS, when file is not a symlink.
70867         (utimens): Reduce redirection.
70868         * tests/test-lutimens.h (test_lutimens): Update test to cover
70869         non-symlinks.
70870         * tests/test-utimens.h (test_utimens): Update test to cover
70871         symlinks.
70872         * tests/test-utimens.c (main): Update caller.
70874         utimens: cache whether utimensat syscall works
70875         * lib/utimens.c (utimensat_works_really): New cache variable.
70876         (fdutimens, lutimens): Use it to avoid failing syscall.
70878         test-stat-time, test-utimens: improve portability
70879         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
70880         ext4 on alpha, and for cygwin.
70881         * tests/test-utimens-common.h: New file.
70882         (nap): Factor delays into single function.
70883         * tests/test-lutimens.h (test_lutimens): Use new header.
70884         * tests/test-futimens.h (test_futimens): Likewise.
70885         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
70886         timestamps to occur from same machine, as was done previously for
70887         test_utimens.
70888         * modules/utimens-tests (Files): Ship new file.
70889         * modules/futimens-tests (Files): Likewise.
70890         Reported in part by Jim Meyering.
70892         sys_stat: sort replacement declarations
70893         * lib/sys_stat.in.h: Sort declarations.
70894         * lib/futimens.c (futimens): Fix typo.
70896 2009-10-15  Jim Meyering  <meyering@redhat.com>
70898         don't let environment settings perturb build
70899         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
70900         could cause a configure-time and/or build-time malfunction.
70901         Typically, a configure-time function-in-library test is performed
70902         via code like this:
70904           LIB_VAR=
70905           AC_SUBST([LIB_VAR])
70906           prefix_saved_LIBS=$LIBS
70907             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
70908                        [test "$ac_cv_search_FUNC" = "none required" ||
70909                         LIB_VAR=$ac_cv_search_FUNC])
70910           LIBS=$prefix_saved_LIBS
70912         However, in each of the files affected by this change, the LIB_VAR=
70913         initialization was omitted.  Thus, when set in the environment, its
70914         value would propagate into generated Makefiles when FUNC is not found
70915         in LIB_NAME.
70916         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
70917         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
70918         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
70920 2009-10-14  Eric Blake  <ebb9@byu.net>
70922         fchdir: avoid infinite recursion in mingw
70923         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
70924         recursing.
70926         test-stat-time: port to mingw
70927         * tests/test-stat-time.c (force_unlink): Return a value.
70928         (test_ctime) [W32]: Fix compilation error.
70929         (nap): Don't call usleep with too large an argument.  Use
70930         force_unlink.
70931         * doc/pastposix-functions/usleep.texi (usleep): Document the
70932         portability issue.
70934 2009-10-13  Jim Meyering  <meyering@redhat.com>
70936         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
70937         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
70938         * modules/pipe-filter-ii: Likewise.
70939         * modules/sys_socket-tests: Likewise.
70940         * modules/tsearch-tests: Likewise.
70941         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
70942         (check): Depend on it.
70944 2009-10-12  Eric Blake  <ebb9@byu.net>
70946         utimens-tests: port to NFS file systems
70947         * tests/test-utimens.h (test_utimens): Refactor utimecmp
70948         comparisons to avoid spurious failures from timestamp drift
70949         between NFS machines.
70951 2009-10-12  Eric Blake  <ebb9@byu.net>
70953         stat-time-tests: minor cleanups
70954         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
70955         * tests/test-stat-time.c (nap): Separate assignment from call.
70956         Suggested by Paolo Bonzini and Bruno Haible.
70958         sys_stat: guarantee struct timespec
70959         * lib/sys_stat.in.h (includes): Always include <time.h>
70960         * modules/sys_stat (Depends-on): Add time.
70961         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
70962         mode_t permission values.
70963         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
70964         get at subsecond timestamps.
70966 2009-10-10  Eric Blake  <ebb9@byu.net>
70968         futimens: new module
70969         * modules/futimens: New file.
70970         * lib/futimens.c (futimens): Likewise.
70971         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
70972         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
70973         we can work around Linux bugs.
70974         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
70975         * modules/sys_stat (Makefile.am): Substitute them.
70976         * lib/sys_stat.in.h (futimens): Declare it.
70977         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
70978         * doc/posix-functions/futimens.texi (futimens): Likewise.
70979         * modules/futimens-tests: New test.
70980         * tests/test-futimens.c: Likewise.
70982         utimens: introduce fdutimens
70983         * lib/utimens.h (fdutimens): New prototype.
70984         * lib/utimens.c (gl_futimens): Move guts...
70985         (fdutimens): ...to new interface.
70986         * tests/test-utimens.c (do_fdutimens): Use it.
70988         utimens: add UTIME_NOW and UTIME_OMIT support
70989         * lib/utimens.c (validate_timespec, update_timespec): New helper
70990         functions.
70991         (gl_futimens, lutimens): Use them.
70992         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
70993         stdbool, sys_stat.
70994         (Link): Mention resulting library dependency.
70995         * modules/utimecmp (Link): Likewise.
70996         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
70997         (Makefile.am): Pick up library dependency.
70998         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
70999         definition.
71000         * tests/test-sys_stat.c: Test the definitions.
71001         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
71002         * NEWS: Document library dependency.
71004         utimecmp: support symlink timestamps
71005         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
71006         hashing when possible.  Use pathconf when available.
71007         (SYSCALL_RESOLUTION): Recognize tighter resolution.
71008         * modules/utimecmp (Depends-on): Add lstat.
71010         utimens: add lutimens interface
71011         * lib/utimens.c (lutimens): New function.
71012         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
71013         * lib/utimens.h (lutimens): Declare new interface.
71014         * tests/test-utimens.c (main): Enhance test.
71015         * tests/test-lutimens.h (test_lutimens): New file.
71016         * modules/utimens-tests (Files): Distribute it.
71017         (Depends-on): Add symlink.
71018         (configure.ac): Check for usleep.
71020         utimens: validate futimens usage
71021         * lib/utimens.c (gl_futimens): Require valid fd up front, using
71022         fewer syscalls on failure later on.  Avoid compiler warning on
71023         mingw.
71024         * modules/utimens (Depends-on): Add dup2.
71026         utimens: add test
71027         * modules/utimens-tests: New test.
71028         * tests/test-utimens.h: New file.
71029         * tests/test-futimens.h: Likewise.
71030         * tests/test-utimens.c: Likewise.
71032         doc: mention timestamp portability issues
71033         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
71034         instead.
71035         * doc/posix-functions/utime.texi (utime): Likewise.
71036         * doc/posix-functions/utimes.texi (utimes): Likewise.
71037         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
71038         instead.
71039         * doc/posix-functions/futimens.texi (futimens): Mention utimens
71040         module.
71041         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
71042         Mention weakness with symlink timestamps.
71043         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
71044         to utimensat/futimens instead.
71045         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
71047         test-dup2: enhance test
71048         * tests/test-dup2.c (main): Also check AT_FDCWD.
71050         test-stat-time: avoid more spurious failures
71051         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
71052         xfs; and avoid race if the two timestamps cross quantization edge.
71054         relocatable: prefer 'file system' over 'filesystem'
71055         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
71056         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
71057         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
71058         * doc/relocatable.texi (Enabling Relocatability): Likewise.
71059         * lib/relocatable.c (compute_curr_prefix): Likewise.
71061 2009-10-10  Jim Meyering  <meyering@redhat.com>
71063         stat-time-tests: check for the usleep function
71064         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
71066 2009-10-10  Bruno Haible  <bruno@clisp.org>
71068         * modules/xnanosleep: Put the Link section after the Include section.
71070 2009-10-09  Eric Blake  <ebb9@byu.net>
71072         dup2: work around FreeBSD 6.1 bug
71073         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
71074         * doc/posix-functions/dup2.texi (dup2): Document it.
71075         Reported by Nelson H. F. Beebe and Jim Meyering.
71077         test-stat-time: port to buggy NFS clients
71078         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
71079         (test_ctime): Also skip test if mtime and ctime are skewed.
71081         maint: prefer 'file system' over 'filesystem'
71082         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
71083         * doc/posix-functions/lstat.texi (lstat): Likewise.
71084         * lib/file-has-acl.c (file_has_acl): Likewise.
71085         * lib/fwriteerror.c [TEST]: Likewise.
71086         * tests/test-areadlink.h (test_areadlink): Likewise.
71087         * tests/test-areadlinkat-with-size.c (main): Likewise.
71088         * tests/test-areadlinkat.c (main): Likewise.
71089         * tests/test-canonicalize-lgpl.c (main): Likewise.
71090         * tests/test-canonicalize.c (main): Likewise.
71091         * tests/test-fstatat.c (main): Likewise.
71092         * tests/test-linkat.c (main): Likewise.
71093         * tests/test-lstat.h (test_lstat_func): Likewise.
71094         * tests/test-mkdir.h (test_mkdir): Likewise.
71095         * tests/test-readlink.h (test_readlink): Likewise.
71096         * tests/test-remove.c (main): Likewise.
71097         * tests/test-rename.h (test_rename): Likewise.
71098         * tests/test-renameat.c (main): Likewise.
71099         * tests/test-rmdir.h (test_rmdir_func): Likewise.
71100         * tests/test-symlink.h (test_symlink): Likewise.
71101         * tests/test-symlinkat.c (main): Likewise.
71102         * tests/test-unlink.h (test_unlink_func): Likewise.
71103         * tests/test-unlinkat.c (main): Likewise.
71105         maint: make realtime library usage explicit
71106         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
71107         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
71108         * modules/settime (Link): Likewise.
71109         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
71111         test-stat-time: speed up execution
71112         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
71113         warning on mingw.
71114         (nap): New helper function.
71115         (prepare_test): Use it to reduce sleep time.
71116         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
71117         execution.
71118         * modules/stat-time-tests (configure.ac): Check for usleep.
71120 2009-10-09  Jim Meyering  <meyering@redhat.com>
71122         selinux-h: always use getfilecon wrappers
71123         * lib/getfilecon.c: New file.
71124         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
71125         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
71126         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
71127         (fgetfilecon): Provide a stub.
71128         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
71129         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
71130         file unconditionally.
71131         When <selinux/selinux.h> is found, arrange to use wrappers.
71132         * modules/selinux-h (Files): Add getfilecon.c.
71133         (Makefile.am): Substitute include-next-related bits
71134         into the now-always-generated selinux/selinux.h file.
71135         * doc/glibc-functions/lgetfilecon.texi: New file.
71136         * doc/glibc-functions/fgetfilecon.texi: New file.
71137         * doc/glibc-functions/getfilecon.texi: New file.
71138         * doc/glibc-functions/getfilecon-desc.texi: New file.
71139         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
71140         which to pull in the new files.
71141         * MODULES.html.sh (Misc): Add selinux-h.
71143 2009-10-08  Jim Meyering  <meyering@redhat.com>
71145         unistd: fix comment typo
71146         * lib/unistd.in.h (euidaccess): Fix a comment typo.
71148 2009-10-08  Eric Blake  <ebb9@byu.net>
71150         areadlink: use SIZE_MAX consistently
71151         * modules/areadlink (Depends-on): Add stdint.
71152         * modules/areadlink-with-size (Depends-on): Likewise.
71153         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
71154         gives NULL; drop sys/types, since unistd gives size_t; and add
71155         stdint for SIZE_MAX.
71156         (SIZE_MAX): Rely on headers.
71157         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
71158         and add stdint.
71159         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
71160         (SIZE_MAX): Likewise.
71161         (INITIAL_BUF_SIZE): Turn into enum.
71162         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
71164 2009-10-08  Jim Meyering  <meyering@redhat.com>
71166         areadlinkat: avoid compilation failure
71167         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
71168         Fix typo in comment.
71170 2009-10-07  Eric Blake  <ebb9@byu.net>
71172         areadlinkat-with-size: new module
71173         * modules/areadlinkat-with-size: New module.
71174         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
71175         * lib/areadlink.h (areadlinkat): Declare it.
71176         * MODULES.html.sh (File system functions): Mention it.
71177         * modules/areadlinkat-with-size-tests: New test.
71178         * tests/test-areadlinkat-with-size.c: New file.
71180         xreadlinkat: new module
71181         * modules/xreadlinkat: New module.
71182         * lib/xreadlinkat.c (xreadlinkat): New file.
71183         * lib/xreadlink.h (xreadlinkat): Declare it.
71184         * MODULES.html.sh (File system functions): Mention it.
71186         areadlinkat: new module
71187         * lib/at-func.c (FUNC_FAIL): New define.
71188         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
71189         * modules/areadlinkat: New module.
71190         * lib/linkat.c (areadlinkat): Move...
71191         * lib/areadlinkat.c (areadlinkat): ...to new file.
71192         * lib/areadlink.h (areadlinkat): Declare it.
71193         * modules/linkat (Depends-on): Add areadlinkat.
71194         * MODULES.html.sh (File system functions): Mention it.
71195         * modules/areadlinkat-tests: New test.
71196         * tests/test-areadlinkat.c: New file.
71198         areadlink, areadlink-with-size: add tests
71199         * modules/areadlink-tests: New test.
71200         * modules/areadlink-with-size-tests: Likewise.
71201         * tests/test-areadlink.h: New file.
71202         * tests/test-areadlink.c: Likewise.
71203         * tests/test-areadlink-with-size.c: Likewise.
71205         maint: minor cleanups
71206         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
71207         _UNUSED_PARAMETER_ instead.
71208         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
71209         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
71210         * modules/linkat-tests (Files): Distribute test-link.h.
71212         openat, utimens: whitespace cleanup
71213         * lib/openat.c: Prefer space throughout, rather than mix of 8
71214         spaces vs. tabs.
71215         * lib/at-func.c: Likewise.
71216         * lib/utimens.c: Likewise.
71218         openat: avoid using wrong fd
71219         * lib/openat.c (openat_permissive): Reject user's fd if saving the
71220         working directory chooses same fd.
71221         * lib/at-func.c (AT_FUNC_NAME): Likewise.
71223         mkdir, mkdirat: fix cygwin 1.5.x bug
71224         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
71225         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
71226         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
71227         bug.
71228         (gl_PREREQ_MKDIR): Delete unused macro.
71229         * modules/mkdir (Files): Track file rename.
71230         (configure.ac): Update macro name.
71231         * modules/openat (Depends-on): Add mkdir.
71232         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
71234         mkdir, mkdirat: add tests
71235         * modules/mkdir-tests: New test.
71236         * tests/test-mkdir.h: New file.
71237         * tests/test-mkdir.c: Likewise.
71238         * tests/test-mkdirat.c: Likewise.
71239         * modules/openat-tests (Files): Add new files.
71240         (Makefile.am): Run new test.
71242 2009-10-06  Eric Blake  <ebb9@byu.net>
71244         doc: tweak *at function documentation
71245         * doc/posix-functions/faccessat.texi (faccessat): Mention
71246         known issue with replacement.
71247         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
71248         * doc/posix-functions/linkat.texi (linkat): Likewise.
71249         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
71250         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
71251         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
71252         * doc/posix-functions/renameat.texi (renameat): Likewise.
71253         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
71255         openat: fix GNU/Hurd bug in unlinkat
71256         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
71257         broken.
71258         * doc/posix-functions/unlink.texi (unlink): Document this.
71259         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
71261         fdopendir: fix GNU/Hurd bug
71262         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
71263         allowing non-directory fds.
71264         * lib/fdopendir.c (rpl_fdopendir): Work around it.
71265         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
71266         * modules/dirent (Makefile.am): Substitute it.
71267         * lib/dirent.in.h (fdopendir): Declare replacement.
71268         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
71269         * tests/test-fdopendir.c (main): Test something other than
71270         /dev/null, since on Hurd that behaves like a directory.
71272         test-symlink: port to GNU/Hurd
71273         * tests/test-symlink.h (test_symlink): Relax expected errno.
71275         doc: tweak more cygwin information
71276         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
71277         now compatible with glibc.
71278         * doc/posix-functions/getopt.texi (getopt): Likewise.
71280         getopt-gnu: add another test
71281         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
71282         guarantee behavior relied on by m4.
71283         * tests/test-getopt.c (main): Use it.
71284         * modules/getopt-posix-tests (Depends-on): Add setenv.
71285         See http://lists.gnu.org/r/bug-m4/2006-09/msg00028.html.
71287         getopt: fix compilation on darwin
71288         * lib/getopt.in.h (includes): Leave breadcrumbs during system
71289         include.
71290         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
71291         Reported by Ludovic Courtès.
71293 2009-10-06  Bruno Haible  <bruno@clisp.org>
71295         * modules/size_max (Description): Discourage its use.
71296         Reported by Simon Josefsson.
71298 2009-10-06  Jim Meyering  <meyering@redhat.com>
71300         linkat: avoid compilation failure
71301         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
71303 2009-10-05  Eric Blake  <ebb9@byu.net>
71305         linkat: support Linux 2.6.17
71306         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
71307         linkat on Linux, but allow cache variable override.
71308         * lib/linkat.c (rpl_linkat): Define override.
71309         * modules/linkat (Depends-on): Add symlinkat.
71310         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
71311         * modules/unistd (Makefile.am): Substitute it.
71312         * lib/unistd.in.h (linkat): Declare replacement.
71313         Reported by Pádraig Brady.
71315         quotearg: port test to systems with C.UTF-8 locale
71316         * tests/test-quotearg.c (struct result_strings): Add another
71317         member, differentiating between C.ASCII and C.UTF-8 handling.
71318         (compare_strings): Add parameter.
71319         (main): Adjust all callers.
71321         getopt: avoid clash with FreeBSD _getopt_internal
71322         * lib/getopt.in.h (_getopt_internal): Override the name.
71323         * lib/getopt_int.h (includes): Pick up any overrides.
71324         Reported by Reuben Thomas.
71326         hash: allow C89 compilation
71327         * lib/hash.c (check_tuning): Move declaration before statement.
71328         Reported by Reuben Thomas.
71330 2009-10-05  Karl Berry  <karl@gnu.org>
71332         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
71334 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
71335             Bruno Haible  <bruno@clisp.org>
71337         * lib/uname.c (uname): Use a table-driven algorithm to compute
71338         Windows NT versions.
71340 2009-10-04  Bruno Haible  <bruno@clisp.org>
71342         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
71343         program_invocation_short_name.
71344         * modules/progname (configure.ac): Test for presence of
71345         program_invocation_short_name.
71346         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
71348 2009-10-04  Bruno Haible  <bruno@clisp.org>
71350         * lib/progname.c (set_program_name): Fix comment.
71351         Reported by Jim Meyering.
71353 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
71354             Bruno Haible  <bruno@clisp.org>
71356         * lib/uname.c: Include <string.h>.
71357         (uname): Do only one call to GetVersionEx in the common case.
71359 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
71360             Bruno Haible  <bruno@clisp.org>
71362         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
71363         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
71364         (uname): Add support for Windows CE and various non-x86 CPU types.
71366 2009-10-03  Bruno Haible  <bruno@clisp.org>
71368         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
71369         invocation to tests/configure.ac.
71370         Reported by Ian Beckwith <ianb@erislabs.net>.
71372 2009-10-02  Eric Blake  <ebb9@byu.net>
71374         fchdir: avoid compiler warning
71375         * lib/fchdir.c (canonicalize_file_name)
71376         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
71378         test-open: support mingw errno values
71379         * tests/test-open.h (test_open): Relax test.
71380         * tests/test-fopen.h (test_fopen): Likewise.
71381         * tests/test-openat-safer.c (main): Likewise.
71383         open: fix opening directory on mingw
71384         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
71386         test-open: on GNU/Hurd, /dev/null is a directory
71387         * tests/test-fopen.h (main): Rename...
71388         (test_fopen): ...to this.  Use a guaranteed non-directory when
71389         confirming open behavior on trailing slash.
71390         * tests/test-openat-safer.c (main): Likewise.
71391         * tests/test-open.h (main): Likewise....
71392         (test_open): ...to this.
71393         * tests/test-fopen.c (main): Adjust caller.
71394         * tests/test-fopen-safer.c (main): Likewise.
71395         * tests/test-open.c (main): Likewise.
71396         * tests/test-fcntl-safer.c (main): Likewise.
71397         Reported by Samuel Thibault.
71399         rename, fchdir: don't ignore chdir failure
71400         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
71401         * lib/rename.c (rpl_rename) [W32]: Likewise.
71402         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
71403         an empty destination directory if source cannot be renamed,
71404         although there is still possibility for failure.
71405         * doc/posix-functions/rename.texi (rename): Document the race.
71406         Reported by Jim Meyering.
71408         maint: cleanup whitespace in recent commits
71409         * lib/rename.c (rpl_rename): Remove tabs.
71410         * tests/test-link.h (test_link): Likewise.
71411         * lib/fchdir.c (get_name): Likewise.
71412         Reported by Jim Meyering.
71414 2009-10-02  Ben Pfaff  <blp@gnu.org>
71416         relocatable-prog-wrapper: Add missing dependency on
71417         double-slash-root.
71418         * modules/relocatable-prog-wrapper: Add dependency.
71419         Reported by Ian Beckwith <ianb@erislabs.net>.
71421 2009-10-02  Eric Blake  <ebb9@byu.net>
71423         renameat: fix Solaris bugs
71424         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
71425         needed fixing.
71426         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
71427         * modules/stdio (Makefile.am): Substitute it.
71428         * lib/stdio.in.h (renameat): Declare replacement.
71429         * lib/renameat.c (rpl_renameat): Implement fix.
71431         renameat: new module
71432         * modules/renameat: New file.
71433         * lib/renameat.c (renameat): Likewise.
71434         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
71435         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
71436         * modules/stdio (Makefile.am): Substitute them.
71437         * lib/stdio.in.h (renameat): Declare it.
71438         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
71439         * doc/posix-functions/renameat.texi (renameat): Likewise.
71440         * modules/renameat-tests: New test.
71441         * tests/test-renameat.c: Likewise.
71443         rename: fix mingw bugs
71444         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
71445         directory overwrite bugs.
71447         rename: fix another cygwin 1.5 bug
71448         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
71449         checks.
71450         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
71451         unnecessary cygwin workarounds.  Also work around bug with moving
71452         full directory onto an empty one.
71453         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
71455         rename-dest-slash: merge into rename module
71456         * modules/rename-dest-slash (Status): Mark obsolete.
71457         (Depends-on): Add rename.
71458         (Files): Let rename do it all.
71459         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
71460         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
71461         * m4/rename-dest-slash.m4: ...so this file can be deleted.
71462         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
71463         * lib/rename.c (rpl_rename): Update comments.
71465         rename: fix cygwin 1.5.x bugs
71466         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
71467         * lib/rename.c (rpl_rename): Work around them.
71468         * modules/rename (Depends-on): Add same-inode.
71470         rename: fix Solaris 10 bug
71471         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
71472         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
71473         was the only bug.
71475         rename: fix Solaris 9 bug
71476         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
71477         on non-directory.  Avoid calling exit.
71478         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
71479         strdup.
71480         * modules/rename-tests (Depends-on): Drop lstat.
71481         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
71482         (gl_PREREQ_RENAME): Delete unused macro.
71484         rename-dest-slash: fix NetBSD bug
71485         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
71486         links.
71487         * modules/rename-dest-slash (Depends-on): Add same-inode.
71489         rename-tests: new test, exposes several platform bugs
71490         * modules/rename-tests: New file.
71491         * tests/test-rename.h: Likewise.
71492         * tests/test-rename.c: Likewise.
71493         * doc/posix-functions/rename.texi (rename): Improve documentation,
71494         including bugs that will eventually be fixed in gnulib.
71496 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
71498         * lib/uname.c: Include <stdlib.h>
71499         (uname): Assume version info is available.
71501 2009-10-02  Jim Meyering  <meyering@redhat.com>
71503         gnu-web-doc-update: correct --help output
71504         * build-aux/gnu-web-doc-update: Make --help output relevant.
71506         gnu-web-doc-update: add standard options
71507         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
71509         gnu-web-doc-update: New module.
71510         Use this script to automatically update the on-line web documentation
71511         for your GNU project at http://www.gnu.org/software/$pkg/manual/
71512         * modules/gnu-web-doc-update: New file, from coreutils.
71513         * build-aux/gnu-web-doc-update: New script.
71515 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
71517         link: LoadLibrary is not needed.
71518         * lib/link.c: Use GetModuleHandle.
71520 2009-10-01  Eric Blake  <ebb9@byu.net>
71522         getopt: bump serial number
71523         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
71524         change.
71526         tests: tighten link, rmdir, and remove tests
71527         * tests/test-link.h (includes): No need to use <config.h> here.
71528         Clean up if directory hard link was created, otherwise test for
71529         trailing '.'.
71530         * tests/test-linkat.c (main): Simplify.
71531         * tests/test-remove.c (main): Enhance test for trailing '.'.
71532         * tests/test-rmdir.h (test_rmdir_func): Likewise.
71534 2009-10-01  Jim Meyering  <meyering@redhat.com>
71536         maint.mk: requiring "make major" was annoying, for a "minor" release.
71537         What is intended is "stable", to contrast with alpha and beta,
71538         so require "make stable", not "make major".
71539         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
71540         (get_tool_versions): Likewise.
71541         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
71543 2009-09-30  Ben Pfaff  <blp@gnu.org>
71545         Fix broken build of replacement for Windows tmpfile().
71546         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
71547         flags argument added along with the 'mkostemp' module.
71549 2009-09-28  Bruno Haible  <bruno@clisp.org>
71551         Avoid identifier clash with POSIX function 'remove' defined as a macro.
71552         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
71553         to 'remove_elt'.
71554         (gl_list_remove): Update.
71555         * lib/gl_list.c (gl_list_remove): Update.
71556         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
71557         to 'remove_elt'.
71558         (gl_oset_remove): Update.
71559         * lib/gl_list.c (gl_oset_remove): Update.
71560         Reported by Eric Blake.
71562 2009-09-28  Eric Blake  <ebb9@byu.net>
71564         doc: mention yet more cygwin 1.7 status
71565         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
71566         cygwin.
71567         * doc/glibc-functions/execvpe.texi (execvpe): New file.
71568         * doc/gnulib.texi (Glibc unistd.h): Mention it.
71570         argp: fix test failure
71571         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
71572         that are not upper-case.  Pass correct range to tolower.
71574 2009-09-27  Jim Meyering  <meyering@redhat.com>
71576         test-yesno: work around sparc-dash here-document infelicity
71577         Without this change, the literal \177 byte in a here document
71578         would make dash 0.5.5.1-3 access uninitialized memory.
71579         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
71580         Instead, use a marker, "@", and filter through tr to create the desired
71581         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
71583 2009-09-27  Bruno Haible  <bruno@clisp.org>
71585         Disable untested support for new flavours of ACLs on AIX.
71586         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
71587         progress.
71588         * lib/set-mode-acl.c (qset_acl): Likewise.
71590 2008-12-07  Bruno Haible  <bruno@clisp.org>
71592         Add support for new flavours of ACLs on AIX. (Untested.)
71593         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
71594         (file_has_acl): Add support for newer AIX.
71595         * lib/set-mode-acl.c (qset_acl): Likewise.
71596         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
71597         Rainer Tammer <tammer@tammer.net>.
71599 2009-09-26  Eric Blake  <ebb9@byu.net>
71601         argp: fix compilation of getopt
71602         * lib/getopt.in.h (includes): Use different guard than glibc.
71603         Reported by Sergey Poznyakoff.
71605         doc: mention more cygwin 1.7 status
71606         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
71607         bug.
71608         * doc/posix-functions/execl.texi (execl): Likewise.
71609         * doc/posix-functions/execle.texi (execle): Likewise.
71610         * doc/posix-functions/execlp.texi (execlp): Likewise.
71611         * doc/posix-functions/execv.texi (execv): Likewise.
71612         * doc/posix-functions/execve.texi (execve): Likewise.
71613         * doc/posix-functions/execvp.texi (execvp): Likewise.
71614         * doc/glibc-functions/canonicalize_file_name.texi
71615         (canonicalize_file_name): Cygwin 1.7 now provides this.
71616         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
71617         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
71618         on AT_SYMLINK_NOFOLLOW.
71620 2009-09-24  Eric Blake  <ebb9@byu.net>
71622         test-linkat: make test more robust
71623         * tests/test-linkat.c (main): Avoid collision with EEXIST.
71625         getopt: fix inclusion guards for cygwin
71626         * modules/getopt-posix (Depends-on): Add include-next.
71627         (Makefile.am): Substitute more items in replacement header.
71628         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
71629         <getopt.h>.
71630         * lib/getopt.in.h (includes): Use split inclusion guard, and
71631         prefer <getopt.h> over include <unistd.h> when one is present.
71632         (option): Also override name of 'struct option'.
71634         same-inode: revert prior change; it is not yet ready
71635         * NEWS: Undo mention of this change.
71636         * lib/same-inode.h (same-inode.h): Undo tri-state change.
71637         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
71638         * lib/cycle-check.c (cycle_check): Likewise.
71639         * lib/same.c (same_name): Likewise.
71640         * lib/at-func2.c (at_func2): Likewise.
71642 2009-09-23  Eric Blake  <ebb9@byu.net>
71644         linkat: new module
71645         * modules/linkat: New file.
71646         * lib/at-func2.c (at_func2): Likewise.
71647         * lib/linkat.c (linkat): Likewise.
71648         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
71649         * lib/openat-priv.h (at_func2): Add declaration.
71650         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
71651         * modules/unistd (Makefile.am): Substitute them.
71652         * lib/unistd.in.h (linkat): Declare it.
71653         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
71654         * doc/posix-functions/linkat.texi (linkat): Likewise.
71655         * doc/posix-functions/link.texi (link): Tweak wording.
71656         * tests/test-link.c (main): Move guts...
71657         * tests/test-link.h (test_link): ...into new file.
71658         * modules/linkat-tests: New test.
71659         * tests/test-linkat.c: Likewise.
71660         * modules/link-tests (Files): Ship new file.
71661         (Depends-on): Add stdbool.
71663         dirname: add library-safe mdir_name
71664         * lib/dirname.h (mdir_name): New prototype.
71665         * lib/dirname.c (dir_name): Move guts...
71666         (mdir_name): ...to new function that avoids xalloc_die.
71668         fchdir: another mingw fix
71669         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
71670         * lib/fchdir.c (get_name): New helper method; skips canonicalize
71671         on mingw (where it has not yet been ported), and make it optional
71672         elsewhere.
71673         (_gl_register_fd): Use it.
71675         same-inode: make SAME_INODE tri-state, to port to mingw
71676         * NEWS: Mention this change.
71677         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
71678         st_ino always being 0.
71679         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
71680         * lib/cycle-check.c (cycle_check): Likewise.
71681         * lib/same.c (same_name): Likewise.
71683         lstat: avoid mingw compilation error
71684         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
71685         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
71686         lstat ourselves.
71687         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
71688         was adequate.
71689         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
71690         the checks for lstat.
71691         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
71693         link: fix test failure on Solaris 9
71694         * lib/link.c (rpl_link): Don't assume link will catch bogus
71695         trailing slash on source.
71697         test-symlinkat: enhance test
71698         * tests/test-readlink.c (main): Move guts...
71699         * tests/test-readlink.h (test_readlink): ...into new file.
71700         * tests/test-symlink.c (main): Move guts...
71701         * tests/test-symlink.h (test_symlink): ...into new file.
71702         * tests/test-symlinkat.c (main): Use new files for further
71703         coverage.
71704         (do_symlink, do_readlink): New helper functions.
71705         * modules/symlink-tests (Files): Ship new file.
71706         (Depends-on): Add stdbool.
71707         * modules/readlink-tests (Files): Ship new file.
71708         (Depends-on): Add stdbool.
71709         * modules/symlinkat-tests (Files): Use new files.
71711 2009-09-23  Eric Blake  <ebb9@byu.net>
71713         readlink: document portability issue with symlink length
71714         * doc/posix-functions/lstat.texi (lstat): Mention that some file
71715         systems have bogus st_size on symlinks, and mention the
71716         areadlink-with-size module.
71717         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
71718         * doc/posix-functions/readlink.texi (readlink): Mention the
71719         areadlink module, and ERANGE failure.
71720         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
71721         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
71723         readlink: fix Solaris 9 bug with trailing slash
71724         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
71725         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
71726         * doc/posix-functions/readlink.texi (readlink): Document this.
71727         * modules/readlink-tests: New test.
71728         * tests/test-readlink.c: Likewise.
71730         readlink: fix cygwin 1.5.x bug with return type
71731         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
71732         * lib/unistd.in.h (readlink): Use ssize_t.
71733         * lib/readlink.c (readlink): Likewise.
71734         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
71735         * modules/unistd (Makefile.am): Substitute it.
71736         * lib/unistd.in.h (readlink): Declare replacement.
71737         * doc/posix-functions/readlink.texi (readlink): Document this.
71739         symlink: use throughout gnulib
71740         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
71741         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
71742         symlink is not used.
71743         * modules/symlinkat (Depends-on): Add symlink.
71744         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
71745         * modules/canonicalize-tests (Depends-on): Likewise.
71746         * modules/lstat-tests (Depends-on): Likewise.
71747         * modules/openat-tests (Depends-on): Likewise.
71748         * modules/remove-tests (Depends-on): Likewise.
71749         * modules/rmdir-tests (Depends-on): Likewise.
71750         * modules/unlink-tests (Depends-on): Likewise.
71751         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
71752         * tests/test-canonicalize.c (symlink): Likewise.
71753         * tests/test-fstatat.c (symlink): Likewise.
71754         * tests/test-lstat.c (symlink): Likewise.
71755         * tests/test-remove.c (symlink): Likewise.
71756         * tests/test-rmdir.c (symlink): Likewise.
71757         * tests/test-unlink.c (symlink): Likewise.
71758         * tests/test-unlinkat.c (symlink): Likewise.
71760         symlink: new module, for Solaris 9 bug
71761         * modules/symlink: New file.
71762         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
71763         * lib/symlink.c: Likewise.
71764         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
71765         * modules/unistd (Makefile.am): Substitute them.
71766         * lib/unistd.in.h (symlink): Declare replacement.
71767         * MODULES.html.sh (File system functions): Mention it.
71768         * doc/posix-functions/symlink.texi (symlink): Likewise.
71769         * modules/symlink-tests: New test.
71770         * tests/test-symlink.c: Likewise.
71772 2009-09-23  Bruno Haible  <bruno@clisp.org>
71774         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
71775         when needed.
71776         Test case: gnulib-tool --import --with-tests atexit inttypes.
71777         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
71779 2009-09-23  Bruno Haible  <bruno@clisp.org>
71781         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
71782         subcommand, not in a subshell.
71784 2009-09-22  Eric Blake  <ebb9@byu.net>
71786         unistd: sort replacement declarations
71787         * lib/unistd.in.h: Sort declarations.
71789         open, openat: minor optimization
71790         * lib/open.c (open): If open succeeded, len is non-zero.
71791         * lib/openat.c (rpl_openat): Likewise.
71793         link-follow: ensure correct result
71794         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
71795         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
71796         distinguish between possible failures.
71798 2009-09-21  Eric Blake  <ebb9@byu.net>
71800         fts: avoid compiler warning
71801         * lib/fts.c (dirent_inode_sort_may_be_useful)
71802         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
71804 2009-09-19  Bruno Haible  <bruno@clisp.org>
71806         * lib/progreloc.c (canonicalize_file_name): New declaration.
71808 2009-09-19  Eric Blake  <ebb9@byu.net>
71810         link: fix quoting
71811         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
71813         openat: fix openat bugs on Solaris 9
71814         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
71815         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
71816         * modules/openat (Depends-on): Add open.
71817         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
71818         * modules/fcntl-h (Makefile.am): Substitute it.
71819         * lib/fcntl.in.h (openat): Declare replacement.
71820         * doc/posix-functions/openat.texi (openat): Document this.
71822         openat: move fstatat and unlinkat into correct files
71823         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
71824         compiled.
71825         * lib/openat.c (fstatat, unlinkat): Move...
71826         * lib/fstatat.c (fstatat): ...into correct files.
71827         * lib/unlinkat.c (unlinkat): Likewise.
71829         openat: fix unlinkat bugs on Solaris 9
71830         * lib/unlinkat.c (unlinkat): New file.
71831         * modules/openat (Depends-on): Add unlink.
71832         (Files): Distribute it.
71833         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
71834         trailing slash behavior is broken.
71835         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
71836         * modules/unistd (Makefile.am): Substitute it.
71837         * lib/unistd.in.h (unlinkat): Declare replacement.
71838         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
71840         openat: fix fstatat bugs on Solaris 9
71841         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
71842         stat.
71843         * doc/posix-functions/fstatat.texi (fstatat): Document this.
71845         test-unlinkat: enhance test, to expose Solaris 9 bug
71846         * tests/test-unlink.c (main): Factor guts...
71847         * tests/test-unlink.h (test_rmdir_func): ...into new file.
71848         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
71849         * tests/test-rmdir.c (main): Adjust caller.
71850         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
71851         (unlinker): New helper function.
71852         (rmdirat): Enhance check.
71853         * modules/rmdir-tests (Depends-on): Add stdbool.
71854         * modules/unlink-tests (Depends-on): Likewise.
71855         (Files): Add test-unlink.h.
71856         * modules/openat-tests (Files): Likewise.
71857         (Depends-on): Add unlinkdir.
71859         test-fstatat: new test, to expose Solaris 9 bugs
71860         * tests/test-stat.c (main): Factor guts...
71861         * tests/test-stat.h (test_stat_func): ...into new file.
71862         * tests/test-lstat.c (main): Factor guts...
71863         * tests/test-lstat.h (test_lstat_func): ...into new file.
71864         * tests/test-fstatat.c: New file.
71865         * modules/stat-tests (Files): Add test-stat.h.
71866         * modules/lstat-tests (Files): Add test-lstat.h.
71867         (Depends-on): Add stdbool.
71868         * modules/openat-tests (Depends-on): Add pathmax.
71869         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
71870         (Makefile.am): Run new test.
71872         remove: new module, for mingw and Solaris 9 bugs
71873         * modules/remove: New file.
71874         * lib/remove.c: Likewise.
71875         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
71876         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
71877         * modules/stdio (Makefile.am): Use them.
71878         * lib/stdio.in.h (remove): Declare replacement.
71879         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
71880         * doc/posix-functions/remove.texi (remove): Likewise.
71881         * modules/remove-tests: New test.
71882         * tests/test-remove.c: Likewise.
71884         unlink: new module, for Solaris 9 bug
71885         * modules/unlink: New file.
71886         * lib/unlink.c: Likewise.
71887         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
71888         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
71889         * modules/unistd (Makefile.am): Use them.
71890         * lib/unistd.in.h (stat): Declare replacement.
71891         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
71892         * doc/posix-functions/unlink.texi (unlink): Likewise.
71893         * modules/unlink-tests: New test.
71894         * tests/test-unlink.c: Likewise.
71896         lstat: fix Solaris 9 bug
71897         * lib/lstat.c (lstat): Also check for trailing slash on
71898         non-symlink, non-directories.  Use stat module to simplify logic.
71899         * doc/posix-functions/lstat.texi (lstat): Document it.
71900         * modules/lstat-tests (Depends-on): Add errno, same-inode.
71901         (configure.ac): Check for symlink.
71902         * tests/test-lstat.c (main): Add more tests.
71904         stat: add as dependency to other modules
71905         * modules/chown (Depends-on): Add stat.
71906         * modules/euidaccess (Depends-on): Likewise.
71907         * modules/fchdir (Depends-on): Likewise.
71908         * modules/isdir (Depends-on): Likewise.
71909         * modules/link (Depends-on): Likewise.
71910         * modules/lstat (Depends-on): Likewise.
71911         * modules/mkdir-p (Depends-on): Likewise.
71912         * modules/modechange (Depends-on): Likewise.
71913         * modules/open (Depends-on): Likewise.
71914         * modules/readlink (Depends-on): Likewise.
71915         * modules/same (Depends-on): Likewise.
71917         stat: fix Solaris 9 bug
71918         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
71919         slash.
71920         * lib/stat.c (rpl_stat): Work around it.
71921         * doc/posix-functions/stat.texi (stat): Update documentation.
71923         stat: new module, for mingw bug
71924         * modules/stat: New file.
71925         * lib/stat.c: Likewise.
71926         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
71927         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
71928         * modules/sys_stat (Makefile.am): Use them.
71929         * lib/sys_stat.in.h (stat): Declare replacement.
71930         * lib/openat.c (fstatat): Deal with lstat and stat being function
71931         macros.
71932         * modules/openat (Depends-on): Add inline.
71933         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
71934         * doc/posix-functions/stat.texi (stat): Likewise.
71935         * modules/stat-tests: New test.
71936         * tests/test-stat.c: Likewise.
71938 2009-09-19  Jim Meyering  <meyering@redhat.com>
71940         syntax-check: detect unnecessary inclusion of canonicalize.h
71941         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
71943 2009-09-19  Eric Blake  <ebb9@byu.net>
71945         canonicalize-lgpl: adjust clients to use correct header
71946         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
71947         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
71948         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
71949         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
71950         * lib/progreloc.c (includes): Likewise.
71952 2009-09-19  Jim Meyering  <meyering@redhat.com>
71954         test-posixtm.c: correct a comment
71955         * tests/test-posixtm.c: Correct first-line comment.
71956         Spotted by Eric Blake.
71958 2009-09-16  Jim Meyering  <meyering@redhat.com>
71960         posixtm-tests: make T const-correct; add a test case
71961         * tests/test-posixtm.c (T): Declare const.
71962         Add a test for -(2^31+1).
71963         Remove useless can-succeed-only-in-2002 test.
71965         posixtm-tests: adjust the sole failing test
71966         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
71967         expected output matches what mktime now produces.  Cross-checked via
71968         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
71970         posixtm: move #ifdef'd tests into a new module
71971         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
71972         * tests/test-posixtm.c: ... this new file.
71973         * modules/posixtm-tests: New module.
71975 2009-09-19  Eric Blake  <ebb9@byu.net>
71977         openat: simplify use of at-func.c
71978         * lib/at-func.c (includes): Include prerequisites here, to
71979         simplify requirements on client files.
71980         * lib/openat-priv.h: Add double-inclusion guard.
71981         * lib/faccessat.c (includes): Simplify.
71982         * lib/fchmodat.c (includes): Likewise.
71983         * lib/fchownat.c (includes): Likewise.
71984         * lib/mkdirat.c (includes): Likewise.
71985         * lib/mkfifoat.c (includes): Likewise.
71986         * lib/symlinkat.c (includes): Likewise.
71988         openat: allow return of fd 0
71989         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
71990         * modules/save-cwd (Depends-on): Replace fcntl-safer with
71991         unistd-safer.
71992         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
71993         <fcntl.h>; this module does not leak fds.
71994         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
71995         must be allowed to return 0, leaving openat_safer to add the
71996         safety.
71997         (openat_permissive): Avoid writing to just-opened fd 2 if
71998         restoring the current directory fails.
71999         * lib/openat-die.c (openat_restore_fail): Add comment.
72000         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
72001         (save_cwd): Guarantee safe fd, but without use of open_safer.
72002         * tests/test-openat.c: New test.
72003         * modules/openat-tests (Files, Makefile.am): Distribute and build
72004         new file.
72006         relocatable-prog-wrapper: fix build
72007         * modules/relocatable-prog-wrapper (Files): Update name of
72008         canonicalize m4 file, broken on 2009-09-17.
72009         Reported by emad hajjar <aleppos@hotmail.com>.
72011 2009-09-19  Bruno Haible  <bruno@clisp.org>
72013         * lib/safe-alloc.h: Use the standard header with GPL copyright.
72014         * lib/safe-alloc.c: Likewise.
72015         Reported by Ian Beckwith <ianb@erislabs.net>.
72017 2009-09-18  Bruno Haible  <bruno@clisp.org>
72019         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
72020         Reported by <erobles@sensacd.com.mx>.
72022 2009-09-17  Eric Blake  <ebb9@byu.net>
72024         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
72025         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
72026         slashes when checking if last component is missing.
72027         * tests/test-canonicalize.c (main): Test this.
72029         canonicalize, canonicalize-lgpl: honor // if distinct from /
72030         * modules/canonicalize (Files): Add double-slash-root.m4.
72031         * modules/canonicalize-lgpl (Files): Likewise.
72032         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
72033         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
72034         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
72035         fallback definition.
72036         (canonicalize_filename_mode): Use it to protect //.
72037         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
72038         (__realpath): Likewise.
72039         * tests/test-canonicalize.c (main): Test this.
72040         * tests/test-canonicalize-lgpl.c (main): Likewise.
72041         * modules/canonicalize-tests (Depends-on): Add same-inode.
72042         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
72044         canonicalize-lgpl: fix glibc bug with trailing slash
72045         * m4/canonicalize-lgpl.m4: Move contents...
72046         * m4/canonicalize.m4: ...here.
72047         (gl_CANONICALIZE_LGPL): Factor realpath check...
72048         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
72049         glibc 2.3.5 bug, fixed 2005-04-27.
72050         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
72051         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
72052         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
72053         * modules/canonicalize-lgpl (Files): Manage file rename.
72054         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
72055         * modules/stdlib (Makefile.am): Substitute witness.
72056         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
72057         is needed.
72058         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
72059         replacement is required.
72060         * lib/canonicalize.c (canonicalize_file_name): Likewise.
72061         * doc/glibc-functions/canonicalize_file_name.texi
72062         (canonicalize_file_name): Document this.
72063         * doc/posix-functions/realpath.texi (realpath): Likewise.
72065         canonicalize-lgpl: reject non-directory with trailing slash
72066         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
72067         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
72068         catches failures in glibc 2.3.5.
72069         * tests/test-canonicalize.c (main): Likewise.
72071         canonicalize-lgpl: use native realpath if it works
72072         * lib/canonicalize-lgpl.c (realpath): Guard with
72073         FUNC_REALPATH_WORKS.
72074         * lib/stdlib.in.h (realpath): Make declaration optional based on
72075         HAVE_REALPATH.
72076         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
72077         native realpath works.
72078         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
72079         * modules/stdlib (Makefile.am): Substitute witness.
72081         canonicalize, canonicalize-lgpl: use <stdlib.h>
72082         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
72083         (Include): Mention <stdlib.h>.
72084         (configure.ac): Mention functions we provide.
72085         * modules/canonicalize (configure.ac): Likewise.
72086         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
72087         realpath if canonicalize_file_name is missing.
72088         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
72089         * modules/stdlib (Makefile.am): Substitute witnesses.
72090         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
72091         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
72092         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
72093         * NEWS: Document this.
72094         * doc/glibc-functions/canonicalize_file_name.texi
72095         (canonicalize_file_name): Likewise.
72096         * doc/posix-functions/realpath.texi (realpath): Likewise.
72097         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
72099         test-canonicalize: consolidate into single C program
72100         * tests/test-canonicalize.sh: Delete; move setup into...
72101         * tests/test-canonicalize.c (main): ...the program, making it
72102         easier to run in debugger.  Add some tests.
72103         * modules/canonicalize-tests (Files): Remove unused file.
72104         (Depends-on): Add progname.
72105         (configure.ac, Makefile.am): Simplify.
72107         test-canonicalize-lgpl: consolidate into single C program
72108         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
72109         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
72110         easier to run in debugger.  Add some tests.
72111         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
72112         (configure.ac, Makefile.am): Simplify.
72114         canonicalize: avoid resolvepath
72115         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
72116         unnecessary checks.
72117         * lib/canonicalize.c (includes): Simplify.
72118         (canonicalize_file_name): Drop resolvepath implementation.
72119         * modules/canonicalize (Depends-on): Drop filenamecat.
72121         canonicalize: don't lose errno
72122         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
72123         over calls to free.
72125         canonicalize: simplify errno handling
72126         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
72127         assignment.
72129         canonicalize, canonicalize-lgpl: update module dependencies
72130         * modules/canonicalize (Depends-on): Add extensions, lstat,
72131         pathmax, stdlib.
72132         (Files): Drop pathmax.h.
72133         (configure.ac): Adjust macro name.
72134         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
72135         lstat, stdlib, sys_stat.
72136         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
72137         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
72138         extensions.
72139         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
72140         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
72141         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
72142         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
72143         declaration, if available.
72144         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
72145         we can rely on the readlink module.
72146         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
72147         (includes): Use <unistd.h> unconditionally.
72149 2009-09-17  Eric Blake  <ebb9@byu.net>
72151         maint: make Include sections of modules consistent
72152         * modules/alloca: Use only header name; no need to list #include.
72153         * modules/alloca-opt: Likewise.
72154         * modules/arpa_inet: Likewise.
72155         * modules/canon-host: Likewise.
72156         * modules/configmake: Likewise.
72157         * modules/dirent: Likewise.
72158         * modules/eealloc: Likewise.
72159         * modules/environ: Likewise.
72160         * modules/fchdir: Likewise.
72161         * modules/fcntl: Likewise.
72162         * modules/fcntl-h: Likewise.
72163         * modules/gethrxtime: Likewise.
72164         * modules/gettime: Likewise.
72165         * modules/ignore-value: Likewise.
72166         * modules/inet_ntop: Likewise.
72167         * modules/inet_pton: Likewise.
72168         * modules/inttypes: Likewise.
72169         * modules/isnand-nolibm: Likewise.
72170         * modules/isnanf-nolibm: Likewise.
72171         * modules/mbchar: Likewise.
72172         * modules/mbfile: Likewise.
72173         * modules/mbiter: Likewise.
72174         * modules/mbuiter: Likewise.
72175         * modules/netdb: Likewise.
72176         * modules/netinet_in: Likewise.
72177         * modules/nproc: Likewise.
72178         * modules/pagealign_alloc: Likewise.
72179         * modules/poll: Likewise.
72180         * modules/printf-frexp: Likewise.
72181         * modules/pthread: Likewise.
72182         * modules/putenv: Likewise.
72183         * modules/random_r: Likewise.
72184         * modules/relocatable-prog: Likewise.
72185         * modules/search: Likewise.
72186         * modules/select: Likewise.
72187         * modules/selinux-h: Likewise.
72188         * modules/settime: Likewise.
72189         * modules/signal: Likewise.
72190         * modules/size_max: Likewise.
72191         * modules/socklen: Likewise.
72192         * modules/ssize_t: Likewise.
72193         * modules/stdarg: Likewise.
72194         * modules/stdbool: Likewise.
72195         * modules/stddef: Likewise.
72196         * modules/stdint: Likewise.
72197         * modules/stdio: Likewise.
72198         * modules/stdlib: Likewise.
72199         * modules/string: Likewise.
72200         * modules/strings: Likewise.
72201         * modules/sys_file: Likewise.
72202         * modules/sys_ioctl: Likewise.
72203         * modules/sys_select: Likewise.
72204         * modules/sys_socket: Likewise.
72205         * modules/sys_stat: Likewise.
72206         * modules/sys_time: Likewise.
72207         * modules/sys_times: Likewise.
72208         * modules/sys_utsname: Likewise.
72209         * modules/sys_wait: Likewise.
72210         * modules/sysexits: Likewise.
72211         * modules/time: Likewise.
72212         * modules/times: Likewise.
72213         * modules/tmpfile: Likewise.
72214         * modules/trim: Likewise.
72215         * modules/unistd: Likewise.
72216         * modules/wchar: Likewise.
72217         * modules/wctype: Likewise.
72219 2009-09-17  Bruno Haible  <bruno@clisp.org>
72221         Make getdate.y compile on QNX and NetBSD 5 / i386.
72222         * m4/getdate.m4 (gl_GETDATE): Conditionally define
72223         TIME_T_FITS_IN_LONG_INT.
72224         * lib/getdate.y (long_time_t): New type.
72225         (relative_time): Change type of 'seconds' field to long_time_t.
72226         (get_date): Update types of local variables. Check against overflow
72227         during conversion from long_time_t to time_t.
72228         Reported by Matt Kraai <kraai@ftbfs.org>
72229         and Hasso Tepper <hasso@netbsd.org>.
72231 2009-09-17  Bruno Haible  <bruno@clisp.org>
72233         * modules/COPYING: Update copyright years.
72234         * modules/README: Likeiwse.
72235         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
72236         Reported by Ian Beckwith <ianb@erislabs.net>.
72238 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
72240         * users.txt: Update references for gnuit package.
72242 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
72244         * m4/getdelim.m4: Fix typo in copyright line.
72246 2009-09-17  Bruno Haible  <bruno@clisp.org>
72248         * lib/atoll.c: Use the standard header with GPL copyright.
72249         * lib/argz.in.h: Likewise.
72250         * lib/glob.c: Likewise.
72251         * lib/glob-libc.h: Likewise.
72252         * lib/random_r.c: Likewise.
72253         * lib/siglist.h: Likewise.
72254         * lib/strsignal.c: Likewise.
72255         Reported by Ian Beckwith <ianb@erislabs.net>.
72257 2009-09-17  Eric Blake  <ebb9@byu.net>
72259         rmdir: ensure correct dependency order
72260         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
72262 2009-09-17  Bruno Haible  <bruno@clisp.org>
72264         Disable assertion that fails on NetBSD 5 / i386.
72265         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
72266         Reported by Sam Steingold <sds@gnu.org>
72267         and Hasso Tepper <hasso@netbsd.org>.
72269 2009-09-16  Eric Blake  <ebb9@byu.net>
72271         unlinkdir: port to mingw
72272         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
72273         on which no one can unlink a directory.
72275         stdlib: sort witness names
72276         * modules/stdlib (Makefile.am): Sort replacements.
72277         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
72278         * lib/stdlib.in.h: Likewise.
72280         parse-duration-tests: avoid link failure
72281         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
72282         LIBINTL.
72283         Reported by Tom G. Christensen.
72285         openat-tests: ensure unlinkat behaves like rmdir
72286         * tests/test-rmdir.c (main): Factor guts...
72287         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
72288         * modules/rmdir-tests (Files): Ship new file.
72289         * modules/openat-tests: New test.
72290         * tests/test-unlinkat.c: Likewise.
72292         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
72293         * modules/rmdir-errno (Status, Notice): Now obsolete.
72295         rmdir: work around cygwin 1.5.x and mingw bugs
72296         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
72297         * lib/rmdir.c (rmdir): Work around it.
72298         * modules/rmdir (Status, Notice): No longer obsolete.
72299         (Files): Add dos.m4.
72300         (Depends-on): Add unistd.
72301         (configure.ac): Set witnesses.
72302         (License): Relax to LGPLv2+.
72303         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
72304         * modules/unistd (Makefile.am): Substitute witnesses.
72305         * lib/unistd.in.h (rmdir): Declare replacement.
72306         * doc/posix-functions/rmdir.texi (rmdir): Document this.
72307         * modules/rmdir-tests: New tests.
72308         * tests/test-rmdir.c: Likewise.
72310 2009-09-15  Eric Blake  <ebb9@byu.net>
72312         fchdir: improve use of replacement functions
72313         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
72314         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
72315         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
72316         REPLACE_CLOSEDIR.
72317         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
72318         * modules/sys_stat (Makefile.am): Substitute correct witness.
72319         * modules/dirent (Makefile.am): Likewise.
72320         * modules/unistd (Makefile.am): Likewise.
72321         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
72322         * lib/unistd.in.h (dup): Likewise.
72323         * lib/sys_stat.in.h (fstat): Likewise.
72325         maint: ignore gnulib-tool temp files
72326         * .gitignore: Ignore files created during gnulib-tool --test.
72328 2009-09-13  Jim Meyering  <meyering@redhat.com>
72330         posixtm: don't reject a time that specify "60" as the number of seconds
72331         * lib/posixtm.c (posixtime): The code to reject invalid dates
72332         would also reject a time specified with the .60 suffix.
72333         But POSIX allows that, in order to accommodate leap seconds.
72334         So don't reject it.
72335         (main): Adjust tests accordingly.
72336         * modules/posixtm (Depends-on): Add stpcpy.
72338 2009-09-11  Jim Meyering  <meyering@redhat.com>
72340         announce-gen: include [$release_type] in emitted Subject:
72341         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
72342         e.g., [stable] in the emitted Subject: line.
72344 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72346         Remove obsolete macros from several modules.
72347         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
72348         obsolete Autoconf macros with their modern counterparts.
72349         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
72350         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
72351         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
72352         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
72353         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
72354         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
72355         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
72356         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
72357         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
72358         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
72359         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
72360         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
72361         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
72362         * m4/sockets.m4 (gl_SOCKETS): Likewise.
72363         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
72364         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
72365         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
72366         * m4/time_r.m4 (gl_TIME_R): Likewise.
72367         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
72368         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
72369         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
72371         Fix copyright header in build-aux scripts.
72372         * build-aux/git-version-gen: Fix copyright header to match GPLv3
72373         recommendation.
72374         * build-aux/ncftpput-ftp: Likewise.
72375         * build-aux/update-copyright: Likewise.
72377 2009-09-09  Eric Blake  <ebb9@byu.net>
72379         test-link: allow Linux choice of errno
72380         * tests/test-link.c (main): Relax test for alternate error.
72382         strndup: fix improper m4 caching
72383         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
72384         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
72385         (gl_PREREQ_STRNDUP): Delete.
72386         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
72387         * modules/string (Makefile.am): Substitute it.
72388         * lib/string.in.h (strndup): Modernize prototype.
72390         getcwd: port to mingw
72391         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
72392         different from the POSIX assumptions made throughout the getcwd
72393         module; fortunately, the mingw getcwd does not need replacement.
72394         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
72395         * modules/getcwd-tests: New test.
72396         * tests/test-getcwd.c: Likewise.
72398         link: fix platform bugs
72399         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
72400         * lib/link.c (link): Work around them.  Fix related mingw bug.
72401         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
72402         * modules/unistd (Makefile.am): Substitute it.
72403         * lib/unistd.in.h (link): Declare replacement.
72404         * doc/posix-functions/link.texi (link): Document this.
72405         * modules/link (Depends-on): Add strdup-posix, sys_stat.
72407         test-link: consolidate into single C program, test more cases
72408         * tests/test-link.sh: Delete.
72409         * tests/test-link.c: Test more error conditions.  Exposes bugs on
72410         at least Cygwin and Solaris.
72411         * modules/link-tests (Files): Remove unused file.
72412         (Depends-on): Add errno, sys_stat.
72413         (Makefile.am): Simplify.
72415 2009-09-08  Bruno Haible  <bruno@clisp.org>
72417         Work around towlower, towupper bug on mingw.
72418         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
72419         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
72420         * doc/posix-functions/towlower.texi: Mention the mingw bug.
72421         * doc/posix-functions/towupper.texi: Likewise.
72422         Reported by Eric Blake.
72424 2009-09-08  Jim Meyering  <meyering@redhat.com>
72426         build: don't try to run autoheader if we don't use it
72427         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
72428         is not used in configure.ac.
72430 2009-09-08  Eric Blake  <ebb9@byu.net>
72432         euidaccess: fix compilation error
72433         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
72435         rawmemchr: relax license
72436         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
72437         okay.
72438         Reported by Jim Meyering.
72440         mkfifoat: new module
72441         * modules/mkfifoat: New file.
72442         * lib/mkfifoat.c: Likewise.
72443         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
72444         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
72445         * modules/sys_stat (Makefile.am): Use them.
72446         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
72447         * MODULES.html.sh (File system functions): Mention module.
72448         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
72449         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
72450         * modules/mkfifoat-tests: New test.
72451         * tests/test-mkfifoat.c: Likewise.
72453         strchrnul: relax license
72454         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
72455         okay.
72456         Reported by Jim Meyering.
72458 2009-09-08  Eric Blake  <ebb9@byu.net>
72460         fstatat: fix compilation on Solaris
72461         * lib/fstatat.c (includes): Add fcntl.h.
72462         Reported by Pádraig Brady.
72464 2009-09-07  Eric Blake  <ebb9@byu.net>
72466         rename: modernize replacement
72467         * modules/rename (Depends-on): Add stdio.
72468         (configure.ac): Declare witness.
72469         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
72470         stdio take care of replacement.
72471         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
72472         * modules/stdio (Makefile.am): Substitute them.
72473         * lib/stdio.in.h (rename): Declare replacement.
72474         * lib/rename.c (includes): Allow cross-compilation to non-windows
72475         machines.
72476         * doc/posix-functions/rename.texi (rename): Improve
72477         documentation.
72479         stdio: sort witness names
72480         * modules/stdio (Makefile.am): Sort replacements.
72481         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
72482         * lib/stdio.in.h: Likewise.
72484         getcwd: minor cleanups
72485         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
72486         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
72488         openat: provide more convenience names
72489         * modules/faccessat (configure.ac): Add C witness.
72490         * lib/unistd.in.h (readlinkat): Fix typo.
72491         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
72492         convenience wrappers.
72493         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
72494         wrappers in syntax checks.
72496 2009-09-06  Eric Blake  <ebb9@byu.net>
72498         doc: fix comments in recent patches
72499         * lib/faccessat.c: Mention correct function.
72500         * lib/fchmodat.c: Likewise.
72501         * lib/fchownat.c: Likewise.
72502         * lib/symlinkat.c: Likewise.
72503         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
72504         constants.
72506         faccessat, symlinkat: continue cleanup of previous patch
72507         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
72508         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
72509         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
72510         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
72511         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
72512         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
72513         set.
72515 2009-09-06  Bruno Haible  <bruno@clisp.org>
72517         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
72518         (fstatat): Declare if GNULIB_FSTATAT is set.
72519         (mkdirat): Declare if GNULIB_MKDIRAT is set.
72520         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
72521         (unlinkat): Declare if GNULIB_UNLINKAT is set.
72522         * modules/fcntl-h (Files): Remove m4/openat.m4.
72523         * modules/sys_stat (Files): Remove m4/openat.m4.
72524         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
72525         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
72526         * modules/unistd (Files): Remove m4/openat.m4.
72527         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
72528         GNULIB_OPENAT.
72529         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
72530         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
72531         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
72532         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
72533         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
72534         gl_OPENAT_DEFAULTS.
72535         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
72536         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
72537         Don't require gl_OPENAT_DEFAULTS.
72538         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
72539         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
72540         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
72541         (gl_OPENAT_DEFAULTS): Remove macro.
72543 2009-09-06  Bruno Haible  <bruno@clisp.org>
72545         * modules/openat (configure.ac): Remove unneeded witness.
72547 2009-09-06  Bruno Haible  <bruno@clisp.org>
72549         Set errno to ENOSYS when a function is entirely unsupported.
72550         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
72551         EOPNOTSUPP.
72552         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
72553         * modules/chown (Depends-on): Remove errno.
72555 2009-09-06  Bruno Haible  <bruno@clisp.org>
72557         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
72559 2009-09-06  Bruno Haible  <bruno@clisp.org>
72561         * lib/sys_stat.in.h: Fix preprocessor command indentation.
72563 2009-09-06  Ben Pfaff  <blp@gnu.org>
72564             Bruno Haible  <bruno@clisp.org>
72566         Work around a glibc bug in strtok_r.
72567         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
72568         Undefine if UNDEFINE_STRTOK_R is set.
72569         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
72570         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
72571         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
72572         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
72573         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
72574         UNDEFINE_STRTOK_R.
72575         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
72577 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
72579         exclude: minor fix
72580         * lib/exclude.c: Include wctype.h
72582 2009-09-06  Akim Demaille  <demaille@gostai.com>
72584         bootstrap: improve error message
72585         * build-aux/bootstrap (find_tool): Upon failure, report the list
72586         of candidates.
72587         Honor the initial value of the envvar.
72589 2009-09-05  Eric Blake  <ebb9@byu.net>
72591         symlinkat: new module
72592         * modules/symlinkat: New file.
72593         * lib/symlinkat.c: Likewise.
72594         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
72595         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
72596         * modules/unistd (Makefile.am): Use them.
72597         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
72598         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
72599         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
72600         * MODULES.html.sh (File system functions): Mention module.
72601         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
72602         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
72603         * modules/symlinkat-tests: New test.
72604         * tests/test-symlinkat.c: Likewise.
72606         test-openat-safer: add more checks
72607         * tests/test-openat-safer.c (main): Check more code paths.
72609 2009-09-05  Jim Meyering  <meyering@redhat.com>
72611         syntax-check: detect unnecessary inclusion of openat.h
72612         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
72614 2009-09-05  Bruno Haible  <bruno@clisp.org>
72616         Support towlower, towupper.
72617         * doc/posix-functions/towlower.texi: Mention module wctype.
72618         * doc/posix-functions/towupper.texi: Likewise.
72619         * lib/wctype.in.h (towlower, towupper): New functions.
72620         * tests/test-wctype.c: Include stdio.h, stdlib.h.
72621         (ASSERT): New macro.
72622         (e): New variable.
72623         (main): Test also towlower, towupper. Test WEOF argument.
72624         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
72626 2009-09-05  Bruno Haible  <bruno@clisp.org>
72628         Fix conversion behaviour when the input is invalid.
72629         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
72630         mark occurring in first pass of indirect conversion.
72631         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
72632         input.
72633         Found by clang's static analyzer.
72635 2009-09-05  Bruno Haible  <bruno@clisp.org>
72637         * tests/test-striconveh.c (main): Test indirect conversion on platforms
72638         where direct conversion is possible.
72640 2009-09-04  Eric Blake  <ebb9@byu.net>
72642         openat: fail with ENOENT on empty name
72643         * lib/openat-proc.c (openat_proc_name): Special-case the empty
72644         buffer.
72646         link-follow: fix logic bug in prior patch
72647         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
72648         reversed sense of yes and no in prior patch.  Avoid confusing
72649         compilation failure with desired semantics.
72651         link-follow: accommodate mingw and cross-compilation
72652         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
72653         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
72654         cross-compilation results to -1, to make linkat easier to
72655         implement when cross-compiling.  Trivially support mingw.
72656         * modules/link-follow (configure.ac): Call new name.
72657         * NEWS: Mention this.
72659 2009-09-03  Eric Blake  <ebb9@byu.net>
72661         faccessat: compile replacement
72662         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
72663         needed.
72665         fts: fix compilation error
72666         * lib/fts.c (includes): Re-add "openat.h", for
72667         openat_needs_fchdir.
72669         faccessat: new module
72670         * modules/faccessat: New file.
72671         * lib/faccessat.c: Likewise.
72672         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
72673         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
72674         * modules/unistd (Makefile.am): Use it.
72675         * lib/unistd.in.h (faccessat): Declare it.
72676         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
72677         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
72678         * MODULES.html.sh (File system functions): Mention it.
72679         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
72680         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
72682         euidaccess: prefer POSIX over non-standard implementation
72683         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
72684         * lib/euidaccess.c (euidaccess): Use it if available.
72686         openat: make template easier to use
72687         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
72688         AT_FUNC_F2 to be undefined.
72689         (VALIDATE_FLAG): New macro; use it to reject bad flags.
72690         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
72691         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
72692         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
72693         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
72694         Likewise.
72695         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
72696         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
72697         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
72698         Likewise.
72700         openat: declare in POSIX headers
72701         * NEWS: Mention this.
72702         * modules/openat (configure.ac): Declare witnesses.
72703         (Depends-on): Add fcntl-h, sys_stat, unistd.
72704         (Include): Mention correct headers.
72705         * modules/fcntl-h (Depends-on): Add link-warning.
72706         (Files): Add openat.m4.
72707         (Makefile.am): Substitute witnesses.
72708         * modules/sys_stat (Files, Makefile.am): Likewise.
72709         * modules/unistd (Files, Makefile.am): Likewise.
72710         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
72711         (gl_OPENAT_DEFAULTS): New macro.
72712         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
72713         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
72714         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
72715         (SYS_STAT_H): Remove unused variable.
72716         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
72717         * lib/fcntl--.h (includes): Remove unneeded header.
72718         * lib/openat-safer.c (includes): Likewise.
72719         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
72720         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
72721         appropriate headers.
72722         (__OPENAT_PREFIX): Delete.
72723         * lib/fcntl.in.h (openat): Provide declaration.
72724         (AT_FDCWD): Fix Solaris bug.
72725         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
72726         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
72727         * lib/fchmodat.c (includes):  Adjust to find declaration.
72728         * lib/fchownat.c (includes): Likewise.
72729         * lib/mkdirat.c (includes): Likewise.
72730         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
72731         still visible.
72733 2009-09-02  Eric Blake  <ebb9@byu.net>
72735         errno: use consistently
72736         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
72737         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
72738         * lib/canonicalize.c (ELOOP): Likewise.
72739         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
72740         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
72741         * lib/lchown.c (EOPNOTSUPP): Likewise.
72742         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
72743         * lib/savewd.c (ESTALE): Likewise.
72744         * lib/settime.c (ENOSYS): Likewise.
72745         * lib/utimens.c (ENOSYS): Likewise.
72746         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
72747         * lib/chdir-safer.c (ELOOP): Likewise.
72748         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
72749         * modules/c-stack (Depends-on): Add errno.
72750         * modules/canonicalize (Depends-on): Likewise.
72751         * modules/chdir-safer (Depends-on): Likewise.
72752         * modules/fdopendir (Depends-on): Likewise.
72753         * modules/inet_ntop (Depends-on): Likewise.
72754         * modules/inet_pton (Depends-on): Likewise.
72755         * modules/lchown (Depends-on): Likewise.
72756         * modules/openat (Depends-on): Likewise.
72757         * modules/savewd (Depends-on): Likewise.
72758         * modules/settime (Depends-on): Likewise.
72759         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
72761         fts: avoid leaking fds
72762         * modules/fts (Depends-on): Add cloexec.
72763         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
72764         flag.
72766         fts: make directory fds more robust
72767         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
72768         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
72770         backupfile, chdir-long, fts, savedir: make safer
72771         * lib/backupfile.c (includes): Use "dirent--.h", since
72772         numbered_backup can write to stderr during readdir.
72773         * lib/savedir.c (includes): Likewise.
72774         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
72775         emulation can write to stderr on failure.
72776         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
72777         * lib/getcwd.c: Document why opendir_safer is unused.
72778         * lib/glob.c: Likewise.
72779         * lib/scandir.c: Likewise.
72780         * lib/openat-proc.c: Likewise, for open_safer.
72781         * modules/backupfile (Depends-on): Add dirent-safer.
72782         * modules/savedir (Depends-on): Likewise.
72783         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
72784         * modules/chdir-long (Depends-on): Add openat-safer.
72786         openat-safer: new module
72787         * modules/openat-safer: New file.
72788         * lib/openat-safer.c: Likewise.
72789         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
72790         * lib/fcntl-safer.h (openat_safer): Declare.
72791         * lib/fcntl--.h (openat): Override.
72792         * MODULES.html.sh (File descriptor based I/O): Mention it.
72793         * lib/openat.h: Add double-inclusion guards.
72794         * lib/openat.c (includes): Only include "fcntl-safer.h", not
72795         "fcntl--.h", so we can implement openat.
72796         * modules/openat-safer-tests: New test.
72797         * tests/test-openat-safer.c: New file.
72799         dirent-safer: new module
72800         * modules/dirent-safer: New file.
72801         * lib/dirent--.h: Likewise.
72802         * lib/dirent-safer.h: Likewise.
72803         * lib/opendir-safer.c: Likewise.
72804         * m4/dirent-safer.m4: Likewise.
72805         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
72806         * modules/dirent-safer-tests: New test.
72807         * tests/test-dirent-safer.c: New file.
72808         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
72810         fdopendir: optimize on mingw
72811         * lib/unistd.in.h (_gl_directory_name): New prototype.
72812         * lib/fchdir.c (_gl_directory_name): Implement it.
72813         (fchdir): Use it to simplify implementation.
72814         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
72815         fchdir, when available, to avoid calling [f]chdir().
72817         fdopendir: split into its own module
72818         * lib/openat.c (fdopendir): Move...
72819         * lib/fdopendir.c: ...into new file.
72820         * modules/fdopendir: New module.
72821         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
72822         * modules/openat (Depends-on): Add fdopendir.
72823         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
72824         fdopendir here.
72825         * modules/savedir (Depends-on): Only need fdopendir, not full
72826         openat.
72827         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
72828         * lib/openat.h (fdopendir): Drop prototype.
72829         * lib/dirent.in.h (fdopendir): Provide prototype.
72830         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
72831         * modules/dirent (Makefile.am): Substitute them.
72832         * MODULES.html.sh (File system functions): Mention it.
72833         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
72834         * modules/fdopendir-tests: New file.
72835         * tests/test-fdopendir.c: Likewise.
72837         fchdir: use more consistent macro convention
72838         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
72839         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
72840         REPLACE_FCHDIR, rather than relying on config.h macros.
72841         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
72842         inside a single make-time REPLACE_FCHDIR block, rather than using
72843         the config.h FCHDIR_REPLACEMENT.
72844         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
72845         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
72846         Manage fstat replacement.
72847         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
72848         REPLACE_FCHDIR.
72849         * modules/sys_stat (Files): Add m4/unistd_h.m4.
72850         (Makefile.am): Substitute REPLACE_FCHDIR.
72851         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
72852         FCHDIR_REPLACEMENT.
72853         * lib/dup-safer.c (dup_safer): Likewise.
72854         * lib/dup2.c (rpl_dup2): Likewise.
72855         * lib/dup3.c (rpl_dup3): Likewise.
72856         * lib/open.c (rpl_open): Likewise.
72858         fchdir: simplify error handling, and support dup3
72859         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
72860         stdbool, malloc-posix, realloc-posix.
72861         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
72862         (ensure_dirs_slot): Return false on allocation failure.
72863         (rpl_dup2): Delete.
72864         (_gl_register_dup): New function.
72865         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
72866         (_gl_register_fd): Close fd on allocation failure.
72867         * lib/fcntl.in.h (_gl_register_fd): Update signature.
72868         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
72869         prototype.
72870         (rpl_dup2_fchdir): Delete prototype.
72871         * lib/open.c (open): Update caller.
72872         * lib/dup2.c (dup2): Track fchdir metadata.
72873         * lib/dup3.c (dup3): Likewise.
72874         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
72875         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
72877 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72879         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
72880         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
72881         don't pass arguments to AC_OUTPUT.
72883 2009-09-02  Bruno Haible  <bruno@clisp.org>
72885         * modules/mkdtemp (License): Relicense under LGPLv2+.
72886         Reported by Paolo Bonzini.
72888 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72890         Replace uses of obsolete autoconf macros in Jim's modules.
72891         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
72892         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
72893         can evoke a warning from autoconf when run with -Wobsolete
72894         enabled.  They were declared obsolete for good reasons (see
72895         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
72896         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
72897         should not continue using the deprecated macros.
72898         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
72899         obsolete Autoconf macros with modern counterparts.
72900         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
72901         * m4/dos.m4 (gl_AC_DOS): Likewise.
72902         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
72903         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
72904         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
72905         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
72906         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
72907         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
72908         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
72909         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
72910         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
72911         Likewise.
72912         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
72913         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
72914         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
72915         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
72916         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
72917         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
72919 2009-09-01  Eric Blake  <ebb9@byu.net>
72921         fchdir: fix off-by-one bug in previous patch
72922         * lib/fchdir.c (rpl_fstat): Use correct bounds.
72923         (_gl_unregister_fd): Delete useless if.
72925 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
72927         maint.mk: sort the list of syntax-check rules
72928         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
72929         easier to get a sense of progress when the rules are run sequentially
72930         and take a long time.
72932 2009-09-01  Simon Josefsson  <simon@josefsson.org>
72934         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
72935         * modules/netinet_in: Likewise.
72936         * modules/sys_file: Likewise.
72937         * modules/sys_ioctl: Likewise.
72938         * modules/sys_select: Likewise.
72939         * modules/sys_socket: Likewise.
72940         * modules/sys_stat: Likewise.
72941         * modules/sys_time: Likewise.
72942         * modules/sys_times: Likewise.
72943         * modules/sys_utsname: Likewise.
72944         * modules/sys_wait: Likewise.
72946 2009-09-01  Jim Meyering  <meyering@redhat.com>
72948         fts: help ensure that return values are not ignored
72949         * lib/fts_.h (__GNUC_PREREQ): Define.
72950         (__attribute_warn_unused_result__): Define.
72951         (fts_children, fts_close, fts_open, fts_read): Declare with
72952         __attribute_warn_unused_result__.
72954         fts: fts_close now fails also when closing a dir file descriptor fails
72955         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
72956         and propagate to caller, along with errno.
72958         announce-gen: correct formatting in --help output
72959         * build-aux/announce-gen (usage): Move the one-line description in
72960         --help output "up", to where it belongs, just after Usage:.
72962 2009-08-31  Eric Blake  <ebb9@byu.net>
72964         fchdir: port to mingw
72965         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
72966         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
72967         opened, then use a substitute.
72968         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
72969         replacement.
72970         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
72971         (_gl_register_fd): No need to check stat if open already filters
72972         all directories.
72973         (fchdir): Fix error condition to match POSIX.
72974         * modules/fchdir (Depends-on): Add sys_stat.
72975         * doc/posix-functions/open.texi (open): Document the limitation.
72976         * modules/fchdir-tests: New file.
72977         * tests/test-fchdir.c: Likewise.
72979         canonicalize: allow cross-testing from cygwin to mingw
72980         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
72981         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
72982         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
72983         Likewise.
72984         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
72985         target does not support symlinks.
72986         * tests/test-canonicalize-lgpl.sh: Likewise.
72988         chown: avoid compilation warning on mingw
72989         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
72990         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
72991         mingw.
72992         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
72993         * modules/chown (Depends-on): Add errno.
72995 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
72997         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
72998         command.
73000 2009-08-31  Jim Meyering  <meyering@redhat.com>
73002         canonicalize: remove useless initialization
73003         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
73004         initialization of local, "end".
73006 2009-08-30  Bruno Haible  <bruno@clisp.org>
73008         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
73009         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
73010         ENOSYS.
73012 2009-08-30  Bruno Haible  <bruno@clisp.org>
73014         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
73015         /usr/xpg4/bin/tr when it exists.
73016         * tests/test-pipe-filter-gi1.sh: Likewise.
73018 2009-08-30  Bruno Haible  <bruno@clisp.org>
73020         Work around deficient /usr/bin/id program on Solaris.
73021         * tests/test-file-has-acl.sh (ID): New variable.
73022         * tests/test-set-mode-acl.sh (ID): Likewise.
73023         * tests/test-copy-acl.sh (ID): Likewise.
73024         * tests/test-copy-file.sh (ID): Likewise.
73026 2009-08-30  Bruno Haible  <bruno@clisp.org>
73028         New module 'xstriconveh'.
73029         * lib/xstriconveh.h: New file.
73030         * lib/xstriconveh.c: New file.
73031         * modules/xstriconveh: New file.
73033 2009-08-30  Bruno Haible  <bruno@clisp.org>
73035         Make it easier to use mem_cd_iconveh.
73036         * lib/striconveh.h (iconveh_t): New type.
73037         (iconveh_open, iconveh_close): New declarations.
73038         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
73039         with a single 'const iconveh_t *' argument.
73040         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
73041         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
73042         with a single 'const iconveh_t *' argument.
73043         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
73044         * tests/test-striconveh.c (main): Update.
73045         * NEWS: Mention the change.
73047 2009-08-30  Bruno Haible  <bruno@clisp.org>
73049         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
73050         problem.
73052 2009-08-30  Bruno Haible  <bruno@clisp.org>
73054         Work around iconv_open problem on Solaris.
73055         * lib/iconv_open-solaris.gperf: New file.
73056         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
73057         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
73058         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
73059         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
73060         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
73061         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
73063 2009-08-29  Jim Meyering  <meyering@redhat.com>
73065         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
73066         * top/maint.mk (cvs-check): Remove target; it was just an alias
73067         to the better-named vc-diff-check.
73068         (maintainer-distcheck): Remove rule.  It was used only from
73069         the (alpha/beta/major) target, and all of its commands but one
73070         were coreutils-specific.
73071         (vc-dist): Remove rule.
73072         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
73073         Run vc-diff-check, not vc-dist.
73074         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
73076 2009-08-27  Bruno Haible  <bruno@clisp.org>
73078         * tests/test-bitrotate.c (main): Remove test that uses a shift count
73079         of 0.
73081 2009-08-27  Bruno Haible  <bruno@clisp.org>
73083         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
73084         compilers.
73085         * doc/func.texi: Document the SunPRO C bug.
73087 2009-08-27  Bruno Haible  <bruno@clisp.org>
73089         Fix link error on Solaris.
73090         * tests/test-parse-duration.c (xstrdup): Remove function.
73092 2009-08-26  Pádraig Brady  <P@draigbrady.com>
73094         ignore-value: handle pointer types, too
73095         * lib/ignore-value.h (__attribute__): Remove definition.
73096         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
73097         of a more concise and more-often effective "(void) i" statement.
73098         (ignore_ptr): New function to suppress warnings from functions that
73099         return pointers, and to make it explicit that one function doesn't
73100         handle all cases.
73102 2009-08-25  Bruno Haible  <bruno@clisp.org>
73104         dup2: work around a Linux bug.
73105         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
73106         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
73107         * doc/posix-functions/dup2.texi: Mention the Linux bug.
73108         Reported by Simon Josefsson.
73110 2009-08-25  Jim Meyering  <meyering@redhat.com>
73112         libguestfs uses gnulib
73113         * users.txt: Add libguestfs.
73115 2009-08-24  Eric Blake  <ebb9@byu.net>
73117         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
73118         * lib/pipe2.c (includes): Add binary-io.h.
73119         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
73121 2009-08-24  Bruno Haible  <bruno@clisp.org>
73123         Tolerate declared but missing accept4 syscall.
73124         * lib/accept4.c (accept4): Invoke original accept4 function first, if
73125         available.
73126         * lib/sys_socket.in.h (accept4): If the function is already present,
73127         override it.
73128         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
73129         * modules/accept4 (Makefile.am): Compile accept4.c always.
73130         Reported by Paolo Bonzini and Eric Blake.
73132 2009-08-23  Bruno Haible  <bruno@clisp.org>
73134         New module 'accept4'.
73135         * lib/sys_socket.in.h (accept4): New declaration.
73136         * lib/accept4.c: New file.
73137         * m4/accept4.m4: New file.
73138         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
73139         GNULIB_ACCEPT4, HAVE_ACCEPT4.
73140         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
73141         HAVE_ACCEPT4.
73142         * modules/accept4: New file.
73143         * doc/glibc-functions/accept4.texi: Mention the new module.
73145 2009-08-24  Jim Meyering  <meyering@redhat.com>
73147         progname: also set global program_invocation_name, when possible
73148         Before this change, a libtool-enabled program that calls glibc's
73149         error function would report the program name as
73150         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
73151         * modules/progname (configure.ac): Check for a declaration of
73152         program_invocation_name.
73153         * lib/progname.c:  Include <errno.h>.
73154         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
73155         Set program_invocation_name.
73157 2009-08-23  Bruno Haible  <bruno@clisp.org>
73159         * lib/dup3.c: Include <string.h>.
73161 2009-08-23  Bruno Haible  <bruno@clisp.org>
73163         * lib/dup3.c (dup3): Test only once whether the system actually exists.
73164         * lib/pipe2.c (pipe2): Likewise.
73165         Suggested by Eric Blake.
73167 2009-08-23  Bruno Haible  <bruno@clisp.org>
73169         Tolerate declared but missing dup3 syscall.
73170         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
73171         * lib/unistd.in.h (dup3): If the function is already present,
73172         override it.
73173         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
73174         * modules/dup3 (Makefile.am): Compile dup3.c always.
73175         Reported by Paolo Bonzini.
73177 2009-08-23  Bruno Haible  <bruno@clisp.org>
73179         Tolerate declared but missing pipe2 syscall.
73180         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
73181         available.
73182         * lib/unistd.in.h (pipe2): If the function is already present,
73183         override it.
73184         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
73185         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
73186         Reported by Paolo Bonzini.
73188 2009-08-23  Bruno Haible  <bruno@clisp.org>
73190         * lib/pipe2.c (pipe2): Move #ifs inside function.
73192 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
73194         quotearg: document limitations of quote_these_too
73195         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
73196         those limitations are created.
73197         * lib/quotearg.h (set_char_quoting): Document that digits and
73198         letters that are special after backslash are not permitted.
73199         (quotearg_char): Cross-reference set_char_quoting documentation.
73201 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
73203         quotearg: implement custom_quoting_style
73204         * lib/quotearg.c: (struct quoting_options): Add left_quote and
73205         right_quote fields.
73206         (set_custom_quoting): New public function.
73207         (quotearg_buffer_restyled): Add left_quote and right_quote
73208         arguments, handle them very much like locale quoting, and update
73209         all uses.
73210         (quotearg_n_custom): New public function.
73211         (quotearg_n_custom_mem): New public function.
73212         (quotearg_custom): New public function.
73213         (quotearg_custom_mem): New public function.
73214         * lib/quotearg.h: Prototype and document new public functions.
73215         (enum quoting_style): For escape_quoting_style and
73216         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
73217         ignored even though they're otherwise like c_quoting_style.
73218         Add custom_quoting_style member and document with comparison to
73219         clocale_quoting_style.
73220         * tests/test-quotearg.c (custom_quotes): New array.
73221         (custom_results): New array.
73222         (main): Extend to test custom quoting.
73224 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
73226         quotearg: fix right quote escaping when it's in quote_these_too
73227         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
73228         quote, be sure to prepend only one backslash.
73229         * tests/test-quotearg.c (use_quote_double_quotes): New function.
73230         (main): Test it.
73232 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
73234         quotearg-tests: test escaping of embedded locale quotes
73235         * tests/test-quotearg.c (struct result_strings): Add member for
73236         new input.
73237         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
73238         (inputs): Add new input.
73239         (results_g): Add expected results.
73240         (flag_results): Likewise.
73241         (locale_results): Likewise.
73242         (compare_strings): Check those.
73244 2009-08-23  Bruno Haible  <bruno@clisp.org>
73246         Tests for module 'dup3'.
73247         * modules/dup3-tests: New file.
73248         * tests/test-dup3.c: New file.
73250         New module 'dup3'.
73251         * lib/unistd.in.h (dup3): New declaration.
73252         * lib/dup3.c: New file.
73253         * m4/dup3.m4: New file.
73254         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
73255         HAVE_DUP3.
73256         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
73257         * modules/dup3: New file.
73258         * doc/glibc-functions/dup3.texi: Mention the new module.
73260 2009-08-23  Bruno Haible  <bruno@clisp.org>
73262         Tweak the dup2 test.
73263         * tests/test-dup2.c (main): Create the test file empty. Verify that an
73264         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
73265         the test file is still empty. Fix argument order of lseek.
73267 2009-08-23  Bruno Haible  <bruno@clisp.org>
73269         Avoid test link errors when the modules getopt-gnu, gettext are used.
73270         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
73271         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
73273 2009-08-23  Bruno Haible  <bruno@clisp.org>
73275         Fix getdtablesize() on mingw.
73276         * lib/getdtablesize.c (getdtablesize): Implement differently.
73277         * lib/unistd.in.h (getdtablesize): Improve comment.
73279 2009-08-23  Bruno Haible  <bruno@clisp.org>
73281         New module 'mkostemp'.
73282         Based on Ulrich Drepper's 2007-08-10 change in glibc.
73283         * lib/stdlib.in.h (mksotemp): New declaration.
73284         * lib/mkostemp.c: New file, from glibc with modifications.
73285         * lib/tempname.h (GT_FILE): Remove outdated comment.
73286         (gen_tempname): Add flags argument.
73287         * lib/tempname.c (__GT_BIGFILE): Remove macro.
73288         (__GT_FILE): Map to 1.
73289         (small_open, large_open): Remove macros.
73290         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
73291         * lib/mkstemp.c (mkstemp): Update.
73292         * lib/mkdtemp.c (mkdtemp): Likewise.
73293         * m4/mkostemp.m4: New file.
73294         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
73295         HAVE_MKOSTEMP.
73296         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
73297         HAVE_MKOSTEMP.
73298         * modules/mkostemp: New file, based on modules/mkstemp.
73299         * doc/glibc-functions/mkostemp.texi: Mention the new module.
73300         * NEWS: Mention the change.
73302 2009-08-23  Bruno Haible  <bruno@clisp.org>
73304         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
73305         Reported by Eric Blake.
73307 2009-08-23  Bruno Haible  <bruno@clisp.org>
73309         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
73310         Reported by Eric Blake.
73312 2009-08-23  Bruno Haible  <bruno@clisp.org>
73314         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
73315         * modules/pipe2 (Depends-on): Likewise.
73317 2009-08-23  Eric Blake  <ebb9@byu.net>
73319         fcntl-h: add O_TTY_INIT support
73320         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
73321         * tests/test-fcntl-h.c (o): Test it.
73322         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
73324         fcntl-h: rename from fcntl, in preparation for fcntl(2)
73325         * modules/fcntl: Move <fcntl.h> header replacement...
73326         * modules/fcntl-h: ...to new name, so as not to collide with
73327         like-named function.
73328         * tests/test-fcntl.c: Rename...
73329         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
73330         * modules/fcntl-tests: Rename...
73331         * modules/fcntl-h-tests: ...to this.  Update test file name.
73332         * modules/chdir-long (Depends-on): Update clients.
73333         * modules/chdir-safer (Depends-on): Likewise.
73334         * modules/fcntl-safer (Depends-on): Likewise.
73335         * modules/fts (Depends-on): Likewise.
73336         * modules/mkancesdirs (Depends-on): Likewise.
73337         * modules/mkdir-p (Depends-on): Likewise.
73338         * modules/open (Depends-on): Likewise.
73339         * modules/savewd (Depends-on): Likewise.
73340         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
73341         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
73343 2009-08-22  Bruno Haible  <bruno@clisp.org>
73345         * modules/binary-io (License): Relicense under LGPL.
73346         * modules/pipe2 (License): Likewise.
73348 2009-08-22  Bruno Haible  <bruno@clisp.org>
73350         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
73351         return value.
73352         * lib/pipe-filter-gi.c (filter_init): Likewise.
73353         Reported by Eric Blake.
73355 2009-08-22  Bruno Haible  <bruno@clisp.org>
73357         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
73358         * modules/pipe (Depends-on): Add pipe2.
73360 2009-08-22  Bruno Haible  <bruno@clisp.org>
73362         Tests for module 'pipe2'.
73363         * modules/pipe2-tests: New file.
73364         * tests/test-pipe2.c: New file.
73366         New module 'pipe2'.
73367         * lib/unistd.in.h (pipe2): New declaration.
73368         * lib/pipe2.c: New file.
73369         * m4/pipe2.m4: New file.
73370         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
73371         HAVE_PIPE2.
73372         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
73373         * modules/pipe2: New file.
73374         * doc/glibc-functions/pipe2.texi: Mention the new module.
73376 2009-08-22  Bruno Haible  <bruno@clisp.org>
73378         Reference some new glibc functions.
73379         * doc/glibc-functions/accept4.texi: New file.
73380         * doc/glibc-functions/dup3.texi: New file.
73381         * doc/glibc-functions/mkostemp.texi: New file.
73382         * doc/glibc-functions/pipe2.texi: New file.
73383         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
73384         (Glibc sys/socket.h): Refer to accept4.
73385         (Glibc unistd.h): Refer to dup3, pipe2.
73386         Reported by Eric Blake.
73388 2009-08-22  Jim Meyering  <meyering@redhat.com>
73389             Bruno Haible  <bruno@clisp.org>
73391         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
73392         This makes it so packages using automake-1.11's silent-rules option
73393         can print e.g., a single "GEN    configmake.h" line, rather than
73394         the 30+ statements that perform the job.  If you want to see the
73395         actual commands, you can still run "make V=1".
73396         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
73397         so that make output is abbreviated when those variables are defined
73398         appropriately.
73399         * modules/argz: Likewise.
73400         * modules/arpa_inet: Likewise.
73401         * modules/byteswap: Likewise.
73402         * modules/configmake: Likewise.
73403         * modules/dirent: Likewise.
73404         * modules/errno: Likewise.
73405         * modules/fcntl: Likewise.
73406         * modules/float: Likewise.
73407         * modules/fnmatch: Likewise.
73408         * modules/getopt-posix: Likewise.
73409         * modules/glob: Likewise.
73410         * modules/iconv_open: Likewise.
73411         * modules/inttypes: Likewise.
73412         * modules/localcharset: Likewise.
73413         * modules/locale: Likewise.
73414         * modules/math: Likewise.
73415         * modules/netdb: Likewise.
73416         * modules/netinet_in: Likewise.
73417         * modules/poll: Likewise.
73418         * modules/posix_spawnp-tests: Likewise.
73419         * modules/sched: Likewise.
73420         * modules/search: Likewise.
73421         * modules/selinux-h: Likewise.
73422         * modules/signal: Likewise.
73423         * modules/spawn: Likewise.
73424         * modules/stdarg: Likewise.
73425         * modules/stdbool: Likewise.
73426         * modules/stddef: Likewise.
73427         * modules/stdint: Likewise.
73428         * modules/stdio: Likewise.
73429         * modules/stdlib: Likewise.
73430         * modules/string: Likewise.
73431         * modules/strings: Likewise.
73432         * modules/sys_file: Likewise.
73433         * modules/sys_ioctl: Likewise.
73434         * modules/sys_select: Likewise.
73435         * modules/sys_socket: Likewise.
73436         * modules/sys_stat: Likewise.
73437         * modules/sys_time: Likewise.
73438         * modules/sys_times: Likewise.
73439         * modules/sys_utsname: Likewise.
73440         * modules/sys_wait: Likewise.
73441         * modules/sysexits: Likewise.
73442         * modules/time: Likewise.
73443         * modules/unistd: Likewise.
73444         * modules/wchar: Likewise.
73445         * modules/wctype: Likewise.
73447 2009-08-22  Jim Meyering  <meyering@redhat.com>
73449         announce-gen: detect write failure
73450         * build-aux/announce-gen: Add Coda at end.
73451         Remove equivalent-but-more-verbose block at top.
73453 2009-08-19  Akim Demaille  <demaille@gostai.com>
73455         bootstrap: --help to stdout.
73456         * bootstrap (usage): Don't send --help to stderr.
73457         Use a here doc instead of a long string.
73459 2009-08-21  Eric Blake  <ebb9@byu.net>
73461         test-popen-safer: split from test-popen
73462         * tests/test-popen.c (main): Move...
73463         * tests/test-popen.h: ...into new file.
73464         * tests/test-popen-safer2.c: New file.
73465         * modules/popen-tests (Files): Add test-popen.h.
73466         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
73467         Suggested by Bruno Haible.
73469         test-fcntl-safer: split from test-open
73470         * tests/test-open.c (main): Move...
73471         * tests/test-open.h: ...into new file.
73472         * tests/test-fcntl-safer.c: New file.
73473         * modules/open-tests (Files): Add test-open.h.
73474         * modules/fcntl-safer-tests: New file.
73475         Suggested by Bruno Haible.
73477         test-fopen-safer: split from test-fopen
73478         * tests/test-fopen.c (main): Move...
73479         * tests/test-fopen.h: ...into new file.
73480         * tests/test-fopen-safer.c: New file.
73481         * modules/fopen-tests (Files): Add test-fopen.h.
73482         * modules/fopen-safer-tests: New file.
73483         Suggested by Bruno Haible.
73485 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
73487         popen-safer: test O_CLOEXEC at run-time.
73488         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
73490 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
73492         fcntl: move more flags to the header
73493         * lib/cloexec.c: Do not define FD_CLOEXEC here.
73494         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
73495         * lib/fcntl.in.h: Do both things here.
73497 2009-08-21  Jim Meyering  <meyering@redhat.com>
73499         consistently remove $@-t before redirecting to it
73500         * modules/argz: Remove $@-t and $@ before redirecting to the former.
73501         * modules/alloca-opt: Likewise.
73502         * modules/byteswap: Likewise.
73503         * modules/fnmatch: Likewise.
73504         * modules/getopt-posix: Likewise.
73505         * modules/glob: Likewise.
73506         * modules/poll: Likewise.
73507         * modules/posix_spawnp-tests: Likewise.
73508         * modules/sys_socket: Likewise.
73509         * modules/sysexits: Likewise.
73511 2009-08-21  Eric Blake  <ebb9@byu.net>
73513         popen: simplify access to original popen
73514         * lib/popen.c (rpl_popen): No need to worry about popen being a
73515         macro.
73516         Reported by Bruno Haible.
73518 2009-08-20  Eric Blake  <ebb9@byu.net>
73520         build: avoid some compiler warnings
73521         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
73522         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
73523         type.
73524         (new_exclude_segment, excluded_file_pattern_p)
73525         (excluded_file_name_p): Reduce scope.
73526         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
73527         old-style declaration.
73529 2009-08-20  Simon Josefsson  <simon@josefsson.org>
73531         * tests/test-exclude1.sh: Handle Windows EOL.
73532         * tests/test-exclude2.sh: Likewise.
73533         * tests/test-exclude3.sh: Likewise.
73534         * tests/test-exclude4.sh: Likewise.
73535         * tests/test-exclude5.sh: Likewise.
73536         * tests/test-exclude6.sh: Likewise.
73537         * tests/test-exclude7.sh: Likewise.
73539 2009-08-19  Akim Demaille  <demaille@gostai.com>
73541         bootstrap: find sha1sum when named gsha1sum.
73542         * bootstrap (find_tool): New.
73543         ($SHA1SUM): New.
73544         Use it.
73546 2009-08-20  Jim Meyering  <meyering@redhat.com>
73548         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
73549         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
73550         expression that converts "." in a file name to "\." in the resulting
73551         regexp.  Start with a dummy statement, so that prior shell variable
73552         definitions are expanded portably.  Reported by Simon Josefsson.
73554 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
73556         Fix polling for writeability of a screen buffer.
73557         * lib/poll.c: Distinguish input and screen buffers for the
73558         Win32 implementation.
73559         * lib/select.c: Likewise.
73561 2009-08-19  Eric Blake  <ebb9@byu.net>
73563         popen-safer: prevent popen from clobbering std descriptors
73564         * modules/popen-safer: New file.
73565         * lib/popen-safer.c: Likewise.
73566         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
73567         * lib/stdio--.h (popen): Provide override.
73568         * lib/stdio-safer.h (popen_safer): Provide declaration.
73569         * tests/test-popen.c (includes): Partially test this.
73570         * modules/popen-safer-tests: New file, for more tests.
73571         * tests/test-popen-safer.c: Likewise.
73572         * MODULES.html.sh (file stream based Input/Output): Mention it.
73574         tests: test some of the *-safer modules
73575         * modules/fopen-safer (Depends-on): Add fopen.
73576         * modules/fcntl-safer (Depends-on): Add fcntl.
73577         * modules/stdlib-safer (Depends-on): Add stdlib.
73578         (configure.ac): Set indicator.
73579         * modules/unistd-safer (configure.ac): Likewise.
73580         * modules/tmpfile-safer (configure.ac): Likewise.
73581         (Depends-on): Add tmpfile.
73582         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
73583         active.
73584         * tests/test-fopen.c (includes): Test safer versions when they are
73585         in use.
73586         * tests/test-open.c (includes): Likewise.
73588         popen: fix cygwin 1.5 bug when stdin closed
73589         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
73590         * modules/popen: New file.
73591         * modules/popen-tests: Likewise.
73592         * tests/test-popen.c: Likewise.
73593         * m4/popen.m4: Likewise.
73594         * lib/popen.c: Likewise.
73595         * lib/stdio.in.h (popen): New declaration.
73596         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
73597         * modules/stdio (Makefile.am): Likewise.
73598         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
73600 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
73602         maint.mk: give full control over update-copyright exclusions
73603         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
73604         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
73605         (update-copyright): Don't force inclusion of top-level
73606         ChangeLog.  Don't force exclusion of all COPYING files, but make
73607         them the default exclusion instead.
73609 2009-08-16  Bruno Haible  <bruno@clisp.org>
73611         Fix test failures on Solaris 10.
73612         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
73613         tests when Solaris iconv() is used.
73614         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
73615         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
73616         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
73617         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
73618         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
73620 2009-08-16  Bruno Haible  <bruno@clisp.org>
73622         Fix test failures on Solaris 10.
73623         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
73624         'tr' program and pass it as first argument.
73625         * tests/test-pipe-filter-gi1.sh: Likewise.
73626         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
73627         program as first argument.
73628         * tests/test-pipe-filter-gi1.c (main): Likewise.
73630 2009-08-16  Eric Blake  <ebb9@byu.net>
73632         fpurge: fix previous commits
73633         * modules/fpurge (Makefile.am): Make replacement conditional,
73634         partially reverting 2007-04-29 change; missed in previous
73635         attempt.
73636         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
73637         is missing.
73639 2009-08-16  Bruno Haible  <bruno@clisp.org>
73641         Clarify fpurge's effect on the file position.
73642         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
73643         * tests/test-fpurge.c (main): Make a second pass for checking the file
73644         position.
73646 2009-08-16  Bruno Haible  <bruno@clisp.org>
73648         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
73649         declaration of fpurge is missing.
73650         * tests/test-fpurge.c (main): Check that the file has not more contents
73651         than expected. Close the file before removing it.
73653 2009-08-15  Eric Blake  <ebb9@byu.net>
73655         fpurge: don't wrap working cygwin implementation
73656         * lib/fpurge.c (fpurge): Fix comment typo.
73657         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
73658         1.7 to avoid replacement.
73659         * tests/test-fpurge.c (main): Enhance test.
73661 2009-08-15  Eric Blake  <ebb9@byu.net>
73662         and Jim Meyering  <meyering@redhat.com>
73664         test-update-copyright: skip if perl is insufficient
73665         * tests/test-update-copyright.sh: Failure to run maintainer tool
73666         should not cause testsuite failure on cygwin 1.5.
73668 2009-08-14  Eric Blake  <ebb9@byu.net>
73670         doc: mention more functions added in cygwin 1.7.0
73671         * doc/posix-headers/limits.texi (limits.h): Update for recent
73672         cygwin additions.
73673         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
73674         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
73675         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
73676         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
73677         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
73679 2009-08-14  Eric Blake  <ebb9@byu.net>
73681         maint.mk: simplify update-copyright rule
73682         * top/maint.mk (update-copyright-local): Delete, and document how
73683         to do it in cfg.mk instead.
73684         (update-copyright-exclude-regexp): Delete, and document how to do
73685         it in .x-update-copyright instead.
73686         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
73687         exclude ChangeLog.
73689 2009-08-14  Bruno Haible  <bruno@clisp.org>
73691         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
73693 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
73695         maint.mk: support update-copyright-env
73696         * top/maint.mk (update-copyright-env): Define place-holder.
73697         (update-copyright): Expand $(update-copyright-env) before
73698         invoking update-copyright.
73700 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
73702         update-copyright: implement forced reformatting
73703         * build-aux/update-copyright: Implement and document
73704         UPDATE_COPYRIGHT_FORCE.
73705         * tests/test-update-copyright.sh: Test it.
73707 2009-08-14  Eric Blake  <ebb9@byu.net>
73708         and Bruno Haible  <bruno@clisp.org>
73710         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
73711         * tests/test-locale.c: Revert previous patch related to NULL.
73712         * tests/test-stdio.c: Likewise.
73713         * tests/test-stdlib.c: Likewise.
73714         * tests/test-string.c: Likewise.
73715         * tests/test-unistd.c: Likewise.
73716         * modules/time-tests (Depends-on): Add verify.
73717         * modules/wchar-tests (Depends-on): Likewise.
73718         * tests/test-time.c: Test for NULL compliance.
73719         * tests/test-wchar.c: Likewise.
73720         * modules/locale (Depends-on): Add stddef.
73721         * modules/stdio (Depends-on): Likewise.
73722         * modules/stdlib (Depends-on): Likewise.
73723         * modules/string (Depends-on): Likewise.
73724         * modules/time (Depends-on): Likewise.
73725         * modules/unistd (Depends-on): Likewise.
73726         * modules/wchar (Depends-on): Likewise.
73727         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
73728         * lib/stdlib.in.h (includes): Likewise.
73729         * lib/string.in.h (includes): Likewise.
73730         * lib/time.in.h (includes): Likewise.
73731         * lib/unistd.in.h (includes): Likewise.
73732         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
73733         replaced.
73734         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
73735         * m4/stddef_h.m4: New file.
73736         * modules/stddef: Likewise.
73737         * lib/stddef.in.h: Likewise.
73738         * modules/stddef-tests: Likewise.
73739         * tests/test-stddef.c: Likewise.
73740         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
73741         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
73742         * doc/posix-headers/locale.texi (locale.h): Likewise.
73743         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
73744         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
73745         * doc/posix-headers/string.texi (string.h): Likewise.
73746         * doc/posix-headers/time.texi (time.h): Likewise.
73747         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
73748         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
73750 2009-08-14  Eric Blake  <ebb9@byu.net>
73752         doc: improve git diff of texinfo files
73753         * .gitattributes: Add rule for *.texi files, with hint on how to
73754         use it.
73755         Copied from m4, and based on a report by Bruno Haible.
73757 2009-08-14  Bruno Haible  <bruno@clisp.org>
73759         Disable multithread support by default on Cygwin 1.5.x for real.
73760         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
73762 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
73764         update-copyright: much ado about intervals
73765         * build-aux/update-copyright: Implement and document
73766         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
73767         of copyright year intervals.
73768         Also, document UPDATE_COPYRIGHT_YEAR.
73769         * tests/test-update-copyright.sh: Test it.
73771         update-copyright: convert 2-digit to 4-digit years
73772         * build-aux/update-copyright: Implement and document.
73773         * tests/test-update-copyright.sh: Update.
73775 2009-08-14  Jim Meyering  <meyering@redhat.com>
73777         test-exclude: avoid coreutils "make check" failure
73778         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
73779         just as in test-argmatch.c.
73781 2009-08-13  Eric Blake  <ebb9@byu.net>
73783         test-dup2: fix bad assumption
73784         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
73785         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
73787         test-version-etc: fix CRLF portability issue
73788         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
73789         recognize \r.
73790         * tests/test-argp-version-etc-1.sh: Likewise.
73792         getopt: update client modules
73793         * modules/argp (Depends-on): Use getopt-gnu.
73794         * modules/git-merge-changelog (Depends-on): Likewise.
73795         * modules/long-options (Depends-on): Likewise.
73796         * modules/xstrtol (Depends-on): Likewise.
73798 2009-08-13  Simon Josefsson  <simon@josefsson.org>
73800         * tests/test-version-etc.sh: Don't fail on different
73801         project/version.  Don't fail on CRLF differences.  Rewrite to use
73802         multiple -e instead of multiple sed forks, suggested by Eric Blake
73803         <ebb9@byu.net>.
73804         * tests/test-argp-version-etc-1.sh: Likewise.
73806 2009-08-13  Simon Josefsson  <simon@josefsson.org>
73808         * tests/test-version-etc.sh: Don't fail on different
73809         project/version.
73811 2009-08-12  Bruno Haible  <bruno@clisp.org>
73813         Tests for modules 'getopt-posix', 'getopt-gnu'.
73814         * modules/getopt-posix-tests: New file.
73815         * tests/test-getopt.c: New file.
73816         * tests/test-getopt.h: New file.
73817         * tests/test-getopt_long.h: New file.
73819         New modules 'getopt-posix', 'getopt-gnu'.
73820         * modules/getopt-gnu: New file, renamed from modules/getopt.
73821         * modules/getopt-posix: New file.
73822         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
73823         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
73824         (gl_GETOPT): Remove macro.
73825         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
73826         Disable the test against BSD systems that declare optreset. Test
73827         against mingw bug. Test against lack of support of optional arguments
73828         on many platforms.
73829         * doc/glibc-headers/getopt.texi: Update module name and list of
73830         relevant platforms.
73831         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
73832         'getopt-gnu' and more portability problems.
73833         * NEWS: Mention the changes.
73835 2009-08-12  Bruno Haible  <bruno@clisp.org>
73837         Ensure that optarg etc. get declared by <unistd.h>.
73838         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
73839         AC_USE_SYSTEM_EXTENSIONS.
73840         * modules/getopt (Depends-on): Add 'extensions'.
73842 2009-08-12  Bruno Haible  <bruno@clisp.org>
73844         Avoid test link errors.
73845         * modules/pipe-filter-ii-tests (Makefile.am): Define
73846         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
73847         * modules/pipe-filter-gi-tests (Makefile.am): Define
73848         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
73849         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
73851 2009-08-12  Bruno Haible  <bruno@clisp.org>
73853         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
73854         gl_GETOPT_SUBSTITUTE before.
73855         (gl_GETOPT): Use it.
73856         * m4/argp.m4 (gl_ARGP): Update.
73857         Reported by Sergey Poznyakoff.
73859         * m4/getopt.m4: Reorder macros.
73860         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
73861         (gl_GETOPT_SUBSTITUTE): Remove macro.
73863 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
73865         Minor improvement in gitlog-to-changelog
73867         * build-aux/gitlog-to-changelog: New option `--format' makes
73868         output format string configurable.
73870 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
73872         Optimize exclude: use hash tables for non-wildcard patterns.
73874         * lib/exclude.c: Include hash.h and mbuiter.h
73875         (struct exclude_pattern, exclude_segment): New data types.
73876         (struct exclude): Rewrite.
73877         (fnmatch_pattern_has_wildcards): New function.
73878         (new_exclude_segment, free_exclude_segment): New functions.
73879         (excluded_file_pattern_p, excluded_file_name_p): New functions.
73880         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
73881         * lib/exclude.h (is_fnmatch_pattern): New prototype.
73882         * modules/exclude: Depend on hash and mbuiter.
73884         * modules/exclude-tests: New file.
73885         * tests/test-exclude.c: New file.
73886         * tests/test-exclude1.sh: New file.
73887         * tests/test-exclude2.sh: New file.
73888         * tests/test-exclude3.sh: New file.
73889         * tests/test-exclude4.sh: New file.
73890         * tests/test-exclude5.sh: New file.
73891         * tests/test-exclude6.sh: New file.
73892         * tests/test-exclude7.sh: New file.
73894 2009-08-12  Bruno Haible  <bruno@clisp.org>
73896         Ensure that getopt() gets declared by <unistd.h>.
73897         * lib/unistd.in.h: Conditionally include getopt.h.
73898         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
73899         Set GNULIB_UNISTD_H_GETOPT.
73900         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
73901         GNULIB_UNISTD_H_GETOPT.
73902         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
73904 2009-08-12  Bruno Haible  <bruno@clisp.org>
73906         Clarify logic.
73907         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
73908         gl_replace_getopt instead of GETOPT_H.
73910 2009-08-12  Bruno Haible  <bruno@clisp.org>
73912         * m4/getopt.m4: Add comments.
73914 2009-08-12  Bruno Haible  <bruno@clisp.org>
73916         Disable multithread support by default on Cygwin 1.5.x.
73917         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
73918         set gl_use_threads=no if not specified otherwise.
73920 2009-08-11  Bruno Haible  <bruno@clisp.org>
73922         Avoid compilation error on NetBSD 5.0.
73923         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
73924         * tests/test-stdio.c: Likewise.
73925         * tests/test-stdlib.c: Likewise.
73926         * tests/test-string.c: Likewise.
73927         * tests/test-unistd.c: Likewise.
73928         Reported by Greg Troxel <gdt@ir.bbn.com>
73929         at <https://savannah.gnu.org/support/?106973>.
73931 2009-08-11  Bruno Haible  <bruno@clisp.org>
73933         * modules/dup2-tests (Depends-on): Remove close.
73935         Undo 2009-07-19 commit.
73936         * modules/acl-tests (Depends-on): Remove close.
73937         * modules/binary-io-tests (Depends-on): Likewise.
73938         * modules/closein-tests (Depends-on): Likewise.
73939         * modules/flock-tests (Depends-on): Likewise.
73940         * modules/fsync-tests (Depends-on): Likewise.
73941         * modules/lseek-tests (Depends-on): Likewise.
73942         * modules/pipe-tests (Depends-on): Likewise.
73943         * modules/posix_spawn-tests (Depends-on): Likewise.
73944         * modules/posix_spawnp-tests (Depends-on): Likewise.
73945         * modules/stat-time-tests (Depends-on): Likewise.
73946         * modules/yesno-tests (Depends-on): Likewise.
73948 2009-08-10  Bruno Haible  <bruno@clisp.org>
73950         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
73952 2009-08-10  Bruno Haible  <bruno@clisp.org>
73954         Fix a gcc warning.
73955         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
73957 2009-08-10  Bruno Haible  <bruno@clisp.org>
73959         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
73960         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
73961         not only the first time.
73962         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
73963         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
73964         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
73965         is 1, not only the first time.
73967 2009-08-10  Bruno Haible  <bruno@clisp.org>
73969         Make it possible to use module 'gethostname' without module 'close'.
73970         * lib/unistd.in.h (close): Evoke a link error only if
73971         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
73972         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
73973         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
73974         * modules/unistd (Makefile.am): Substitute
73975         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
73976         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
73977         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
73978         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
73979         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
73980         * modules/sys_ioctl (Makefile.am): Substitute
73981         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
73982         * modules/socket (configure.ac): On native Windows, set
73983         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
73984         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
73985         Reported by Sam Steingold <sds@gnu.org>.
73987 2009-08-10  Bruno Haible  <bruno@clisp.org>
73989         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
73990         * modules/ioctl (configure.ac): Likewise.
73992 2009-08-10  Bruno Haible  <bruno@clisp.org>
73994         Avoid collision between gnulib wrapper and libintl wrapper.
73995         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
73996         already defined in intl/printf.c.
73997         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
73998         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
74000 2009-08-09  Bruno Haible  <bruno@clisp.org>
74002         Make <sys/select.h> really self-contained, also on Solaris 10.
74003         * lib/sys_select.in.h: Include <string.h>.
74004         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
74005         Solaris 10 problem.
74006         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
74007         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
74008         Reported by Jim Meyering.
74010 2009-08-09  Bruno Haible  <bruno@clisp.org>
74012         Avoid warnings from 'aclocal' that are due to a use of macro name
74013         AM_XGETTEXT_OPTION that is not defined in automake.
74014         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
74015         automake.
74016         * modules/error (configure.ac): Likewise.
74017         * modules/propername (configure.ac): Likewise.
74018         * modules/vasprintf (configure.ac): Likewise.
74019         * modules/verror (configure.ac): Likewise.
74020         * modules/xprintf (configure.ac): Likewise.
74021         * modules/xvasprintf (configure.ac): Likewise.
74023 2009-08-08  Bruno Haible  <bruno@clisp.org>
74025         Avoid compilation error in C++ mode.
74026         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
74027         Reported by Sam Steingold <sds@gnu.org>.
74029 2009-08-08  Bruno Haible  <bruno@clisp.org>
74031         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
74032         for the various Unix platforms.
74033         * doc/posix-headers/limits.texi: Update platforms list regarding
74034         HOST_NAME_MAX.
74035         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
74037 2009-08-07  Jim Meyering  <meyering@redhat.com>
74039         selinux-at: fix typo in a comment
74040         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
74041         Spotted by Paolo Bonzini.
74043         selinux-at: remove redundant m4 code, add documentation
74044         * modules/selinux-at (configure.ac): Remove redundant code.
74045         LIB_SELINUX is already set via the dependent module, selinux-h.
74046         (Include): Add quotes around selinux-at.h.
74047         * lib/selinux-at.h: Add documentation.
74048         Reported by Bruno Haible in
74049         http://marc.info/?l=gnulib-bug&m=124958988300749
74051 2009-08-07  Bruno Haible  <bruno@clisp.org>
74053         Avoid link error on MacOS X 10.3 and 10.4.
74054         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
74055         on non-ELF systems.
74056         * lib/argp-pv.c (argp_program_version): Likewise.
74057         Reported by Simon Josefsson.
74059 2009-08-07  Simon Josefsson  <simon@josefsson.org>
74061         * tests/test-version-etc.sh: Use $EXEEXT.
74063 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
74065         update-copyright: update documentation to point to maint.mk
74066         * build-aux/update-copyright: Here.
74068 2009-08-06  Jim Meyering  <meyering@redhat.com>
74070         maint.mk: support update-copyright-local
74071         * top/maint.mk (update-copyright-local): Define place-holder.
74072         (update-copyright): Depend on $(update-copyright-local).
74074 2009-08-06  Jim Meyering  <meyering@redhat.com>
74076         selinux-at: new module
74077         Initially written for coreutils, this module will soon be
74078         used by findutils, too.
74079         * MODULES.html.sh [Misc]: Add selinux-at.
74080         * lib/selinux-at.h: New file, from coreutils.
74081         * lib/selinux-at.c: Likewise.
74082         * modules/selinux-at: Likewise.
74083         (License): Change from LGPL to GPL, since it depends
74084         on the GPL'd openat module.
74086         doc: update README
74087         * README: Remove references to cogito.
74088         Remove cvs-repo-updating instructions from 2007.
74089         Don't imply that CVS is better if you have limited disk space.
74091 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
74093         update-copyright: support C-style comments
74094         * build-aux/update-copyright: Implement and document.
74095         * tests/test-update-copyright.sh: Test.
74097 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
74099         update-copyright: support omitted "(C)"
74100         * build-aux/update-copyright: Implement and document.  Also,
74101         allow variable whitespace before "(C)".
74102         * tests/test-update-copyright.sh: Test.
74104 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
74106         update-copyright: don't trip on non-FSF copyright statements
74107         * build-aux/update-copyright: Fix so that the first correctly
74108         formatted FSF copyright statement is recognized no matter what
74109         appears before it.  Update documentation.
74110         * tests/test-update-copyright.sh: Test that.
74112 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
74114         update-copyright: clean up code a little
74115         * build-aux/update-copyright: Append "_re" to the name of any
74116         variable holding a regular expression.
74117         Replace "old" and "new" with "stmt" in variable names.
74118         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
74119         handled correctly.
74120         Format code more consistently.
74122 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
74124         update-copyright-tests: improve portability
74125         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
74126         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
74128 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
74130         update-copyright: support @copyright{} and &copy;
74131         * build-aux/update-copyright: Implement and document.
74132         * tests/test-update-copyright.sh: Test.
74134 2009-08-04  Jim Meyering  <meyering@redhat.com>
74136         update-copyright-tests: correctly test EOL=\r\n handling
74137         * tests/test-update-copyright.sh: Put \r at the end of some lines
74138         for the dos-eol tests.  Based on a patch by Joel E. Denny.
74140         maint.mk: make update-copyright exclusion list more configurable
74141         * top/maint.mk (update-copyright): Default to excluding COPYING,
74142         but allow an override, in case someone does want to update that file.
74144         maint.mk: don't update copyright date in COPYING
74145         * top/maint.mk (update-copyright): Exclude COPYING.
74147         maint.mk: add a copyright-updating rule
74148         * top/maint.mk (update-copyright): New rule.
74149         Derived from coreutils/Makefile.am.
74151         update-copyright: rename some variables
74152         * build-aux/update-copyright: Rename a few variables for clarity.
74153         Tweak syntax.  List Joel E. Denny as coauthor.
74155 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
74157         update-copyright: fix bug for 2-digit last year and add tests
74158         * build-aux/update-copyright: Fix bug.
74159         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
74160         specified.
74161         * modules/update-copyright-tests: New
74162         * tests/test-update-copyright.sh: New.
74164 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
74166         update-copyright: handle leading tabs in line prefix
74167         * build-aux/update-copyright: Count leading tabs as 8 spaces
74168         when computing margin.  This helps with the formatting of
74169         ChangeLogs, for example.
74170         Fix documentation a little.
74172 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
74174         update-copyright: support EOL=\r\n
74175         * build-aux/update-copyright: Implement that.
74177 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
74179         update-copyright: automatically format copyright statements
74180         * build-aux/update-copyright: Implement that.
74181         Also, be a little more predictable and safer by always failing
74182         when the full copyright format is not perfectly recognized as an
74183         unbroken whole.  Discussed at
74184         <http://lists.gnu.org/r/bug-gnulib/2009-07/msg00131.html>.
74185         Rewrite documentation.
74187 2009-08-03  Bruno Haible  <bruno@clisp.org>
74189         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
74191 2009-08-02  Bruno Haible  <bruno@clisp.org>
74193         Tests for module 'uname'.
74194         * modules/uname-tests: New file.
74195         * tests/test-uname.c: New file.
74197         New module 'uname'.
74198         * lib/uname.c: New file.
74199         * m4/uname.m4: New file.
74200         * modules/uname: New file.
74201         * doc/posix-functions/uname.texi: Mention the new module.
74203 2009-08-02  Bruno Haible  <bruno@clisp.org>
74205         Tests for module 'sys_utsname'.
74206         * modules/sys_utsname-tests: New file.
74207         * tests/test-sys_utsname.c: New file.
74209         New module 'sys_utsname'.
74210         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
74211         * m4/sys_utsname_h.m4: New file.
74212         * modules/sys_utsname: New file.
74213         * doc/posix-headers/sys_utsname.texi: Mention the new module.
74215 2009-08-02  Bruno Haible  <bruno@clisp.org>
74217         Implicitly initialize the sockets library.
74218         * lib/gethostname.c: Include sockets.h.
74219         (rpl_gethostname): Invoke gl_sockets_startup.
74220         * lib/socket.c: Include sockets.h.
74221         (rpl_socket): Invoke gl_sockets_startup.
74222         * modules/gethostname (Depends-on): Add sockets.
74223         * modules/socket (Depends-on): Likewise.
74224         * tests/test-poll.c: Don't include sockets.h.
74225         (main): Don't invoke gl_sockets_startup.
74226         * tests/test-select.c: Don't include sockets.h.
74227         (main): Don't invoke gl_sockets_startup.
74229 2009-08-02  Bruno Haible  <bruno@clisp.org>
74231         Allow multiple calls to gl_sockets_startup.
74232         * lib/sockets.c (initialized_sockets_version): New variable.
74233         (gl_sockets_startup): Do nothing if already called for this or a higher
74234         version.
74235         (gl_sockets_cleanup): Reset initialized_sockets_version.
74237 2009-08-03  Simon Josefsson  <simon@josefsson.org>
74239         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
74240         different project/version.
74242 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
74243             Bruno Haible  <bruno@clisp.org>
74245         Tests for module 'pipe-filter-gi'.
74246         * modules/pipe-filter-gi-tests: New file.
74247         * tests/test-pipe-filter-gi1.sh: New file.
74248         * tests/test-pipe-filter-gi1.c: New file.
74249         * tests/test-pipe-filter-gi2.sh: New file.
74250         * tests/test-pipe-filter-gi2-main.c: New file.
74251         * tests/test-pipe-filter-gi2-child.c: New file.
74253         New module 'pipe-filter-gi'.
74254         * lib/pipe-filter-gi.c: New file.
74255         * modules/pipe-filter-gi: New file.
74257 2009-08-02  Bruno Haible  <bruno@clisp.org>
74258             Paolo Bonzini  <bonzini@gnu.org>
74260         Tests for module 'pipe-filter-ii'.
74261         * modules/pipe-filter-ii-tests: New file.
74262         * tests/test-pipe-filter-ii1.sh: New file.
74263         * tests/test-pipe-filter-ii1.c: New file.
74264         * tests/test-pipe-filter-ii2.sh: New file.
74265         * tests/test-pipe-filter-ii2-main.c: New file.
74266         * tests/test-pipe-filter-ii2-child.c: New file.
74268         New module 'pipe-filter-ii'.
74269         * lib/pipe-filter.h: New file.
74270         * lib/pipe-filter-ii.c: New file.
74271         * lib/pipe-filter-aux.h: New file.
74272         * modules/pipe-filter-ii: New file.
74274 2009-08-02  Simon Josefsson  <simon@josefsson.org>
74276         * lib/gc-libgcrypt.c: Change copyright to FSF.
74277         * lib/gc-gnulib.c: Likewise.
74279 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
74281         * lib/gethostname.c: Include limits.h.
74283 2009-08-02  Simon Josefsson  <simon@josefsson.org>
74284             Bruno Haible  <bruno@clisp.org>
74286         Ensure HOST_NAME_MAX as part of the gethostname module.
74287         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
74288         define also HOST_NAME_MAX.
74289         * tests/test-gethostname.c: Include <limits.h>.
74290         (main): Check also HOST_NAME_MAX.
74291         * doc/posix-headers/limits.texi: Document the mingw problem.
74293 2009-08-02  Bruno Haible  <bruno@clisp.org>
74295         * lib/gethostname.c (gethostname): Fix handling of large len argument.
74296         Add comments.
74298 2009-03-31  Simon Josefsson  <simon@josefsson.org>
74300         * lib/gethostname.c: Add Windows wrapper.
74301         * m4/gethostname.m4: Look for gethostname in -lws2_32.
74302         * modules/gethostname: Depend on sys_socket & errno, for also
74303         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
74304         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
74306 2009-07-31  Jim Meyering  <meyering@redhat.com>
74308         getloadavg: fix symbol name in comment
74309         * lib/getloadavg.c: Correct a typo I introduced when adding
74310         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
74311         Matt Kraai spotted the problem.
74313 2009-07-29  Matt Kraai  <mkraai@beckman.com>
74315         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
74316         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
74317         code also if ! defined N_NAME_POINTER.
74318         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
74319         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
74320         but the n_name member is a 12-byte array.
74322 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
74324         update-copyright: generalize comment handling
74325         * build-aux/update-copyright: Handle copyright statements
74326         within more comment styles.
74327         Document usage.
74328         Report any file with an external copyright holder or parse failure.
74330 2009-07-29  Jim Meyering  <meyering@redhat.com>
74332         mktime: correct setting of REPLACE_MKTIME
74333         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
74335         update-copyright: new module
74336         * modules/update-copyright: New file.
74337         * build-aux/update-copyright: New file.
74338         * MODULES.html.sh (maint+release support): Add update-copyright.
74340 2009-07-27  Bruno Haible  <bruno@clisp.org>
74342         Fix compilation error when <ctime> is used and mktime is replaced.
74343         * lib/time.in.h (mktime): New declaration.
74344         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
74345         REPLACE_MKTIME instead of defining mktime in config.h.
74346         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
74347         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
74348         Reported by Ross McFarland <rwmcfa1@neces.com>.
74350 2009-07-27  Bruno Haible  <bruno@clisp.org>
74352         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
74353         Reported by Matt Kraai <mkraai@beckman.com>.
74355 2009-07-25  Jim Meyering  <meyering@redhat.com>
74357         maint.mk: avoid warnings about missing files
74358         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
74359         diagnostic when .prev-version does not exist.
74360         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
74361         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
74362         nonexistent cfg.mk.
74363         Suggestions from Simon Josefsson.
74365 2009-07-25  Bruno Haible  <bruno@clisp.org>
74367         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
74368         defined as macros. Needed on QNX 6.4.1.
74369         Reported by Matt Kraai <mkraai@beckman.com>.
74371 2009-07-23  Jim Meyering  <meyering@redhat.com>
74373         maint.mk: invoke "make dist" with a working value of XZ_OPT
74374         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
74376 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
74378         Make fseeko.c compile on QNX.
74379         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
74381 2009-07-22  Peter Simons  <simons@cryp.to>
74383         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
74384         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
74385         * lib/md4.h: Likewise.
74386         * lib/md5.h: Likewise.
74387         * lib/sha1.h: Likewise.
74388         * lib/sha256.h: Likewise.
74389         * lib/sha512.h: Likewise.
74391         tests-sha1: don't assign literal string to 'char *' variable
74392         * tests/test-sha1.c (main): Declare locals with "const" to match
74393         attributes of the right hand side.
74395 2009-07-21  Eric Blake  <ebb9@byu.net>
74397         dup2: fix more mingw problems
74398         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
74399         fd to itself.
74400         * doc/posix-functions/dup2.texi (dup2): Document the bug.
74401         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
74402         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
74403         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
74404         care of mingw bugs.
74406 2009-07-21  Jim Meyering  <meyering@redhat.com>
74408         vc-list-files: avoid failure when /bin/sh is dash
74409         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
74410         On some Debian based systems, /bin/sh is a symlink to dash, and running
74411         this command would omit the "/" following each 'tests' prefix:
74412           dash -x build-aux/vc-list-files -C . tests
74413         That is because bash and dash work differently:
74414           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
74415           bash ok
74416           dash odd
74418 2009-07-21  Eric Blake  <ebb9@byu.net>
74420         dup2-tests: test previous patch
74421         * modules/dup2-tests: New file.
74422         * tests/test-dup2.c: Likewise.
74423         * tests/test-open.c (main): Avoid unspecified behavior.
74424         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
74425         test.
74427         dup2: work around mingw and cygwin 1.5 bug
74428         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
74429         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
74430         * modules/unistd (Makefile.am): Substitute it.
74431         * lib/unistd.in.h (dup2): Declare the replacement.
74432         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
74433         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
74434         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
74435         * modules/execute (Depends-on): Add dup2.
74436         * modules/fseterr (Depends-on): Likewise.
74437         * modules/pipe (Depends-on): Likewise.
74438         * modules/posix_spawn-internal (Depends-on): Likewise.
74440 2009-07-21  Bruno Haible  <bruno@clisp.org>
74442         * modules/.gitattributes: New file.
74444 2009-07-20  Bruno Haible  <bruno@clisp.org>
74446         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
74447         (main): Use it.
74449 2009-07-20  Eric Blake  <ebb9@byu.net>
74451         test-pipe: make a bit more robust.
74452         * tests/test-pipe.c (myerr): Allow error messages regardless of
74453         what we do to stderr.
74454         (test_pipe): Rearrange to avoid deadlock.
74455         (child_main): Try a larger read, to ensure we avoided deadlock.
74456         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
74457         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
74458         if misused.
74460 2009-07-19  Jim Meyering  <meyering@redhat.com>
74462         fts: avoid false-positive cycle-detection
74463         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
74464         for each new command line argument.
74466 2009-07-19  Bruno Haible  <bruno@clisp.org>
74468         Fix build error on mingw with the modules sys_select and unistd.
74469         * modules/acl-tests (Depends-on): Add close.
74470         * modules/binary-io-tests (Depends-on): Likewise.
74471         * modules/closein-tests (Depends-on): Likewise.
74472         * modules/flock-tests (Depends-on): Likewise.
74473         * modules/fsync-tests (Depends-on): Likewise.
74474         * modules/lseek-tests (Depends-on): Likewise.
74475         * modules/pipe-tests (Depends-on): Likewise.
74476         * modules/posix_spawn-tests (Depends-on): Likewise.
74477         * modules/posix_spawnp-tests (Depends-on): Likewise.
74478         * modules/stat-time-tests (Depends-on): Likewise.
74479         * modules/yesno-tests (Depends-on): Likewise.
74481 2009-07-19  Bruno Haible  <bruno@clisp.org>
74483         Unify conditionals.
74484         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
74485         macros, not at the compiler macros.
74486         * lib/pipe.c: Likewise.
74487         * lib/execute.c: Likewise.
74488         * lib/spawni.c: Likewise.
74490 2009-07-19  Bruno Haible  <bruno@clisp.org>
74492         Fix handling of closed stdin/stdout/stderr on mingw.
74493         * lib/w32spawn.h: Include unistd.h.
74494         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
74495         file descriptor with O_NOINHERIT flag.
74496         (fd_safer_noinherit): New function, based on fd-safer.c.
74497         (dup_safer_noinherit): New function, based on dup-safer.c.
74498         (undup_safer_noinherit): New function.
74499         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
74500         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
74501         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
74502         instead of fd_safer.
74503         * tests/test-pipe.c: Include <windows.h>.
74504         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
74505         result.
74507         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
74508         from main.
74509         (test_pipe): Pass an extra argument for disambiguation.
74510         (main): Invoke parent_main or child_main.
74512         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
74513         consistently.
74515 2009-07-18  Eric Blake  <ebb9@byu.net>
74517         test-pipe: fix mingw build
74518         * tests/test-pipe.c (main): Avoid fcntl on mingw.
74520 2009-07-18  Bruno Haible  <bruno@clisp.org>
74522         * modules/pipe-tests (Makefile.am): Fix typo.
74524 2009-07-18  Eric Blake  <ebb9@byu.net>
74526         error: fix mingw build
74527         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
74528         Reported by Bruno Haible.
74530         error: avoid undefined use of stdout
74531         * lib/error.c (error, error_at_line): Check that fd 1 is open
74532         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
74533         is handling faults and the close_stdout module wants to report the
74534         detection of closed stdout as an error.
74536 2009-07-17  Eric Blake  <ebb9@byu.net>
74538         pipe: be robust in face of closed fds
74539         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
74540         should cause child to misbehave.
74541         * modules/pipe-tests: New module.
74542         * tests/test-pipe.c: New file.
74543         * tests/test-pipe.sh: New file.
74544         Reported by Akim Demaille.
74546 2009-07-14  Bruno Haible  <bruno@clisp.org>
74548         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
74549         Reported by anonymous kc.
74551 2009-07-07  Jim Meyering  <meyering@redhat.com>
74553         maint.mk: don't look for translatable strings in *.m4 or *.mk
74554         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
74555         when searching for translatable strings.
74557 2009-07-05  Jim Meyering  <meyering@redhat.com>
74559         remove superfluous parentheses in STREQ definition
74560         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
74561         * lib/getugroups.c (STREQ): Likewise.
74562         * lib/fnmatch.c (STREQ): Likewise.
74563         Spotted by Bruno Haible.
74565 2009-07-04  Jim Meyering  <meyering@redhat.com>
74567         argv-iter: new module
74568         * MODULES.html.sh: Add argv-iter.
74569         * lib/argv-iter.c, lib/argv-iter.h: New files.
74570         * modules/argv-iter: New file.
74571         * modules/argv-iter-tests: New file.
74572         * tests/test-argv-iter.c: Test it.
74574 2009-07-04  Bruno Haible  <bruno@clisp.org>
74576         Fix assertion.
74577         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
74578         contains more exact copies of a given entry than file2, leave the extra
74579         copies unpaired rather than aborting.
74580         Reported by Eric Blake.
74582 2009-07-02  Bruno Haible  <bruno@clisp.org>
74584         Speedup git-merge-changelog for git cherry-pick.
74585         * lib/git-merge-changelog.c (struct entries_mapping): New type.
74586         (entries_mapping_get): New function, extracted from compute_mapping.
74587         (entries_mapping_reverse_get): New function.
74588         (compute_mapping): Add a 'full' argument. Return the result in a
74589         'struct entries_mapping'.
74590         (main): Update. Access the mappings through entries_mapping_get.
74591         Reported by Eric Blake.
74593 2009-07-02  Bruno Haible  <bruno@clisp.org>
74595         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
74596         best_i.
74598 2009-07-02  Bruno Haible  <bruno@clisp.org>
74600         Speed up approximate search for matching ChangeLog entries.
74601         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
74602         argument. Call fstrcmp_bounded instead of fstrcmp.
74603         (compute_mapping, try_split_merged_entry, main): Update callers.
74605 2009-07-02  Bruno Haible  <bruno@clisp.org>
74607         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
74609 2009-06-30  Bruno Haible  <bruno@clisp.org>
74611         Reduce the number of uc_is_cased calls.
74612         * lib/unicase.h (casing_suffix_context_t): Add
74613         'first_char_except_ignorable' field.
74614         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
74615         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
74616         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
74617         Update initializer.
74618         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
74619         case-ignorable characters.
74620         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
74621         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
74622         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
74623         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
74624         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
74626 2009-06-30  Bruno Haible  <bruno@clisp.org>
74628         Tests for module 'unicase/ignorable'.
74629         * modules/unicase/ignorable-tests: New file.
74630         * tests/unicase/test-ignorable.c: New file, generated by
74631         gen-uni-tables.
74633         Tests for module 'unicase/cased'.
74634         * modules/unicase/cased-tests: New file.
74635         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
74636         * tests/unicase/test-predicate-part1.h: New file, derived from
74637         tests/unictype/test-predicate-part1.h.
74638         * tests/unicase/test-predicate-part2.h: New file, same as
74639         tests/unictype/test-predicate-part2.h.
74641         Fix evaluation of "Before C" condition of FINAL_SIGMA.
74642         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
74643         (output_casing_properties): New function.
74644         (main): Call it.
74645         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
74646         * lib/unicase/cased.c: Include unictype/bitmap.h.
74647         (uc_is_cased): Define through a bitmap lookup.
74648         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
74649         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
74650         (uc_is_case_ignorable): Define through a bitmap lookup.
74651         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
74652         lib/unictype/bitmap.h.
74653         (Depends-on): Add inline. Clean up.
74654         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
74655         lib/unictype/bitmap.h.
74656         (Depends-on): Add inline. Clean up.
74657         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
74658         recognition.
74659         * tests/unicase/test-u16-tolower.c (main): Likewise.
74660         * tests/unicase/test-u32-tolower.c (main): Likewise.
74662 2009-06-30  Bruno Haible  <bruno@clisp.org>
74664         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
74665         * lib/unicase/u16-casemap.c: Likewise.
74666         * lib/unicase/u32-casemap.c: Likewise.
74668 2009-06-29  Bruno Haible  <bruno@clisp.org>
74670         Define u32_casefold as a wrapper around u32_ct_casefold.
74671         * lib/unicase/u32-casefold.c: Update.
74672         * modules/unicase/u32-casefold (Depends-on): Add
74673         unicase/u32-ct-casefold, unicase/empty-prefix-context,
74674         unicase/empty-suffix-context. Clean up.
74676         Define u16_casefold as a wrapper around u16_ct_casefold.
74677         * lib/unicase/u16-casefold.c: Update.
74678         * modules/unicase/u16-casefold (Depends-on): Add
74679         unicase/u16-ct-casefold, unicase/empty-prefix-context,
74680         unicase/empty-suffix-context. Clean up.
74682         Define u8_casefold as a wrapper around u8_ct_casefold.
74683         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
74684         * lib/unicase/u8-casefold.c: Update.
74685         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
74686         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
74688         Define u32_totitle as a wrapper around u32_ct_totitle.
74689         * lib/unicase/u32-totitle.c: Update.
74690         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
74691         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
74693         Define u16_totitle as a wrapper around u16_ct_totitle.
74694         * lib/unicase/u16-totitle.c: Update.
74695         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
74696         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
74698         Define u8_totitle as a wrapper around u8_ct_totitle.
74699         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
74700         functions.
74701         (FUNC): Delegate to U_CT_TOTITLE.
74702         * lib/unicase/u8-totitle.c: Update.
74703         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
74704         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
74706         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
74707         invocation.
74708         * modules/unicase/u32-tolower (Depends-on): Add
74709         unicase/empty-prefix-context, unicase/empty-suffix-context.
74711         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
74712         invocation.
74713         * modules/unicase/u16-tolower (Depends-on): Add
74714         unicase/empty-prefix-context, unicase/empty-suffix-context.
74716         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
74717         * modules/unicase/u8-tolower (Depends-on): Add
74718         unicase/empty-prefix-context, unicase/empty-suffix-context.
74720         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
74721         invocation.
74722         * modules/unicase/u32-toupper (Depends-on): Add
74723         unicase/empty-prefix-context, unicase/empty-suffix-context.
74725         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
74726         invocation.
74727         * modules/unicase/u16-toupper (Depends-on): Add
74728         unicase/empty-prefix-context, unicase/empty-suffix-context.
74730         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
74731         * modules/unicase/u8-toupper (Depends-on): Add
74732         unicase/empty-prefix-context, unicase/empty-suffix-context.
74734         New module 'unicase/u32-ct-casefold'.
74735         * lib/unicase/u32-ct-casefold.c: New file.
74736         * modules/unicase/u32-ct-casefold: New file.
74738         New module 'unicase/u16-ct-casefold'.
74739         * lib/unicase/u16-ct-casefold.c: New file.
74740         * modules/unicase/u16-ct-casefold: New file.
74742         New module 'unicase/u8-ct-casefold'.
74743         * lib/unicase/u8-ct-casefold.c: New file.
74744         * lib/unicase/u-ct-casefold.h: New file, derived from
74745         lib/unicase/u-casefold.h.
74746         * modules/unicase/u8-ct-casefold: New file.
74748         New module 'unicase/u32-ct-totitle'.
74749         * lib/unicase/u32-ct-totitle.c: New file.
74750         * modules/unicase/u32-ct-totitle: New file.
74752         New module 'unicase/u16-ct-totitle'.
74753         * lib/unicase/u16-ct-totitle.c: New file.
74754         * modules/unicase/u16-ct-totitle: New file.
74756         New module 'unicase/u8-ct-totitle'.
74757         * lib/unicase/u8-ct-totitle.c: New file.
74758         * lib/unicase/u-ct-totitle.h: New file, derived from
74759         lib/unicase/u-totitle.h.
74760         * modules/unicase/u8-ct-totitle: New file.
74762         New module 'unicase/u32-ct-tolower'.
74763         * lib/unicase/u32-ct-tolower.c: New file.
74764         * modules/unicase/u32-ct-tolower: New file.
74766         New module 'unicase/u16-ct-tolower'.
74767         * lib/unicase/u16-ct-tolower.c: New file.
74768         * modules/unicase/u16-ct-tolower: New file.
74770         New module 'unicase/u8-ct-tolower'.
74771         * lib/unicase/u8-ct-tolower.c: New file.
74772         * modules/unicase/u8-ct-tolower: New file.
74774         New module 'unicase/u32-ct-toupper'.
74775         * lib/unicase/u32-ct-toupper.c: New file.
74776         * modules/unicase/u32-ct-toupper: New file.
74778         New module 'unicase/u16-ct-toupper'.
74779         * lib/unicase/u16-ct-toupper.c: New file.
74780         * modules/unicase/u16-ct-toupper: New file.
74782         New module 'unicase/u8-ct-toupper'.
74783         * lib/unicase/u8-ct-toupper.c: New file.
74784         * modules/unicase/u8-ct-toupper: New file.
74786         Add context arguments to u*_casemap functions.
74787         * lib/unicase/unicasemap.h: Include unicase.h.
74788         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
74789         suffix_context arguments.
74790         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
74791         functions.
74792         (FUNC): Add prefix_context and suffix_context arguments. Use
74793         uc_is_cased and uc_is_case_ignorable.
74794         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
74795         * lib/unicase/u16-casemap.c: Likewise.
74796         * lib/unicase/u32-casemap.c: Likewise.
74797         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
74798         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
74799         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
74800         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
74801         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
74802         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
74804         New module 'unicase/u32-suffix-context'.
74805         * lib/unicase/u32-suffix-context.c: New file.
74806         * modules/unicase/u32-suffix-context: New file.
74808         New module 'unicase/u16-suffix-context'.
74809         * lib/unicase/u16-suffix-context.c: New file.
74810         * modules/unicase/u16-suffix-context: New file.
74812         New module 'unicase/u8-suffix-context'.
74813         * lib/unicase/u8-suffix-context.c: New file.
74814         * lib/unicase/u-suffix-context.h: New file.
74815         * modules/unicase/u8-suffix-context: New file.
74817         New module 'unicase/empty-suffix-context'.
74818         * lib/unicase/empty-suffix-context.c: New file.
74819         * modules/unicase/empty-suffix-context: New file.
74821         New module 'unicase/u32-prefix-context'.
74822         * lib/unicase/u32-prefix-context.c: New file.
74823         * modules/unicase/u32-prefix-context: New file.
74825         New module 'unicase/u16-prefix-context'.
74826         * lib/unicase/u16-prefix-context.c: New file.
74827         * modules/unicase/u16-prefix-context: New file.
74829         New module 'unicase/u8-prefix-context'.
74830         * lib/unicase/u8-prefix-context.c: New file.
74831         * lib/unicase/u-prefix-context.h: New file.
74832         * lib/unicase/context.h: New file.
74833         * modules/unicase/u8-prefix-context: New file.
74835         New module 'unicase/empty-prefix-context'.
74836         * lib/unicase/empty-prefix-context.c: New file.
74837         * modules/unicase/empty-prefix-context: New file.
74839         New module 'unicase/ignorable'.
74840         * lib/unicase/ignorable.c: New file.
74841         * modules/unicase/ignorable: New file.
74843         New module 'unicase/cased'.
74844         * lib/unicase/caseprop.h: New file.
74845         * lib/unicase/cased.c: New file.
74846         * modules/unicase/cased: New file.
74848         New functions for case mapping of substrings.
74849         * lib/unicase.h (casing_prefix_context_t): New type.
74850         (unicase_empty_prefix_context): New variable.
74851         (u8_casing_prefix_context, u16_casing_prefix_context,
74852         u32_casing_prefix_context, u8_casing_prefixes_context,
74853         u16_casing_prefixes_context, u32_casing_prefixes_context): New
74854         declarations.
74855         (casing_suffix_context_t): New type.
74856         (unicase_empty_suffix_context): New variable.
74857         (u8_casing_suffix_context, u16_casing_suffix_context,
74858         u32_casing_suffix_context, u8_casing_suffixes_context,
74859         u16_casing_suffixes_context, u32_casing_suffixes_context,
74860         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
74861         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
74862         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
74863         declarations.
74865 2009-06-28  Jim Meyering  <meyering@redhat.com>
74867         boostrap: indent only with spaces
74868         * build-aux/bootstrap: Indent only with spaces, never TABs.
74870         bootstrap: split long lines
74871         * build-aux/bootstrap: Keep line length < 80.
74873         bootstrap: sync from coreutils
74874         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
74875         just as autoreconf does.  Verify a list of prerequisite
74876         package-name,version-number pairs if defined in bootstrap.conf.
74877         Refer to README-prereq, if prerequisites are not satisfied.
74879 2009-06-27  Eric Blake  <ebb9@byu.net>
74881         tests: add test for bogus NULL definition
74882         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
74883         * tests/test-stdlib.c: Likewise.
74884         * tests/test-string.c: Likewise.
74885         * tests/test-locale.c: Likewise.
74886         * tests/test-unistd.c: Likewise.
74887         * modules/stdio-tests (Depends-on): Add verify.
74888         * modules/stdlib-tests (Depends-on): Likewise.
74889         * modules/string-tests (Depends-on): Likewise.
74890         * modules/locale-tests (Depends-on): Likewise.
74891         * modules/unistd-tests (Depends-on): Likewise.
74893 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
74895         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
74896         self-explaining comment.
74897         * m4/selinux-selinux-h: Update serial.
74898         (gl_LIBSELINUX): New macro, adding a warning for missing development
74899         packages to code extracted from...
74900         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
74901         Add warning for missing development packages here, too.
74903 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
74905         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
74907 2009-06-25  Eric Blake  <ebb9@byu.net>
74909         version-etc: fix regression
74910         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
74911         gcc.
74912         (version_etc): Use it, to catch bugs with trailing NULL.
74913         * lib/version-etc.c (version_etc_arn): Delete unused argument.
74914         (version_etc_va): Fix logic bug.
74915         * modules/version-etc-tests: Add test.
74916         * tests/test-version-etc.c: New file.
74917         * tests/test-version-etc.sh: Likewise.
74919 2009-06-25  Sam Steingold  <sds@gnu.org>
74921         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
74922         mbtowc declaration.
74924 2009-06-25  Eric Blake  <ebb9@byu.net>
74926         fpurge: migrate into <stdio.h>
74927         * lib/fpurge.h: Delete...
74928         * lib/stdio.in.h (fpurge): ...and declare here, instead.
74929         * lib/fpurge.c (fpurge): Change declaring header.
74930         * modules/fpurge (Files): Drop deleted file.
74931         (Depends-on): Add stdio.
74932         (configure.ac): Set witness.
74933         * modules/stdio (Makefile.am): Support fpurge macros.
74934         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
74935         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
74936         * lib/fflush.c: Update client.
74937         * tests/test-fpurge.c: Likewise.
74938         * NEWS: Mention the change.
74940 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
74942         * lib/argp-version-etc.c (program_authors): Add const
74943         qualifier.
74944         * lib/version-etc.c: Fix typos in the comments.
74945         * modules/argp-version-etc: Depends on version-etc.
74947 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
74949         argp-version-etc: new module.
74951         * lib/argp-version-etc.c: New file.
74952         * lib/argp-version-etc.h: New file.
74953         * modules/argp-version-etc: New file.
74954         * modules/argp-version-etc-tests: New file.
74955         * tests/test-argp-version-etc.c: New test.
74956         * tests/test-argp-version-etc-1.sh: New test.
74958 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
74960         Provide additional interfaces and documentation for version-etc
74961         module.
74963         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
74964         interfaces.
74965         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
74966         prototypes.
74968 2009-06-24  Bruno Haible  <bruno@clisp.org>
74970         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
74971         HAVE_LIB${NAME} macro.
74972         Reported by Sam Steingold <sds@gnu.org>.
74974 2009-06-23  Simon Josefsson  <simon@josefsson.org>
74976         * modules/hash-tests (test_hash_LDADD): Link to libintl when
74977         needed.
74979 2009-06-21  Bruno Haible  <bruno@clisp.org>
74981         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
74982         work.
74983         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
74984         together with LIB${NAME}, LTLIB${NAME}.
74985         Reported by Sam Steingold <sds@gnu.org>.
74987 2009-06-20  Jim Meyering  <meyering@redhat.com>
74989         tests: make sc_require_test_exit_idiom more generic
74990         * top/maint.mk (Exit_witness_file): New overridable variable.
74991         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
74992         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
74994 2009-06-19  Jim Meyering  <meyering@redhat.com>
74996         hash: reverse order of src/dst parameters in an internal interface
74997         * lib/hash.c (transfer_entries): Reverse order of parameters to
74998         put DST before SRC.  Adjust callers.
75000         tests: test-hash: avoid wholesale duplication
75001         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
75002         Instead, use a loop and add a single conditional.
75004         tests: test-hash: allow seed selection via a command line argument
75005         * tests/test-hash.c (get_seed): New function.
75006         (main): Use it.
75008 2009-06-19  Eric Blake  <ebb9@byu.net>
75010         hash: avoid memory leak on allocation failure
75011         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
75012         failure.  Factor repeated algorithm...
75013         (transfer_entries): ...into new helper routine.
75014         (hash_delete): React to hash_rehash return value.
75016         hash: reduce memory pressure in hash_rehash no-op case
75017         * lib/hash.c (next_prime): Avoid overflow.
75018         (hash_initialize): Factor bucket size computation...
75019         (compute_bucket_size): ...into new helper function.
75020         (hash_rehash): Use new function and open coding to reduce memory
75021         pressure, and avoid a memory leak in USE_OBSTACK code.
75022         Reported by Jim Meyering.
75024 2009-06-18  Eric Blake  <ebb9@byu.net>
75026         hash: make rotation more obvious
75027         * modules/hash (Depends-on): Add bitrotate and stdint.
75028         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
75029         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
75030         (SIZE_MAX): Rely on headers for definition.
75031         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
75032         (raw_hasher): Use rotr_sz.
75033         Suggested by Jim Meyering.
75035         hash: fix memory leak in last patch
75036         * lib/hash.c (hash_rehash): Avoid memory leak.
75038         hash: avoid no-op rehashing
75039         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
75041         hash: provide default callback functions
75042         * lib/hash.c (raw_hasher, raw_comparator): New functions.
75043         (hash_initialize): Use them as defaults.
75044         * tests/test-hash.c (main): Test this.
75046         hash: minor optimization
75047         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
75048         when possible.
75049         (hash_initialize): Document this promise.
75050         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
75051         * tests/test-hash.c (hash_compare_strings): Test this.
75053 2009-06-18  Bruno Haible  <bruno@clisp.org>
75055         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
75056         going to be replaced anyway.
75058 2009-06-18  Bruno Haible  <bruno@clisp.org>
75060         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
75061         in one place.
75062         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
75063         be replaced anyway.
75065 2009-06-18  Eric Blake  <ebb9@byu.net>
75067         hash: check for resize before insertion
75068         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
75069         threshold before insertion, so that a pathological hash_rehash
75070         that fills every bucket can still trigger another rehash.
75072 2009-06-18  Jim Meyering  <meyering@redhat.com>
75074         hash-tests: add a loop around the small tests
75075         * tests/test-hash.c (main): Repeat small tests with selected
75076         small initial table sizes.
75078 2009-06-17  Eric Blake  <ebb9@byu.net>
75080         hash: minor cleanups
75081         * lib/hash.h (hash_entry): Make opaque, by moving...
75082         * lib/hash.c (hash_entry): ...here.
75083         (hash_insert): Clarify restrictions on what can be inserted.
75084         (hash_get_next): Clarify when it is safe to remove an element
75085         during traversal.
75086         (check_tuning): Skip verification when tuning is known safe.
75087         (hash_initialize): Clarify restrictions on tuning.
75089 2009-06-17  Jim Meyering  <jim@meyering.net>
75090         and Eric Blake  <ebb9@byu.net>
75092         hash-tests: new module
75093         * modules/hash-tests: New file.
75094         * tests/test-hash.c: New file.
75096 2009-06-17  Eric Blake  <ebb9@byu.net>
75098         strstr-simple: document new module
75099         * MODULES.html.sh: Document new module.
75101         strstr, strcasestr: replace on platforms with broken memchr
75102         * modules/strstr: Split into...
75103         * modules/strstr-simple: ...new module that does not care about
75104         performance, but does care about glibc bug.
75105         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
75106         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
75107         if platform memchr is broken, per Debian bug 521737.
75108         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
75109         memchr.
75110         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
75111         * doc/posix-functions/strstr.texi (strstr): Document the fix.
75112         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
75113         * modules/mountlist (Depends-on): Add strstr-simple.
75114         * modules/gen-uni-tables (Depends-on): Likewise.
75115         * modules/argz (Depends-on): Add strstr.
75117 2009-06-17  Bruno Haible  <bruno@clisp.org>
75119         * modules/posix_spawn-internal (Depends-on): Add errno.
75121 2009-06-17  Bruno Haible  <bruno@clisp.org>
75123         Define missing ESTALE on Interix 3.5.
75124         * lib/errno.in.h (ESTALE): Assign a value if missing.
75125         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
75126         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
75127         missing.
75128         * doc/posix-headers/errno.texi: Mention the Interix bug.
75129         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
75131 2009-06-15  Eric Blake  <ebb9@byu.net>
75133         memchr, memchr2: add valgrind exception
75134         * lib/memchr.valgrind: New file.
75135         * lib/memchr2.valgrind: New file.
75136         * modules/memchr (Files): Distribute valgrind file.
75137         * modules/memchr2 (Files): Likewise.
75139         docs: memchr is no longer obsolete
75140         * MODULES.html.sh: Move memchr from obsolete to string.h section.
75141         * lib/string.in.h (memchr): Simplify logic.
75143 2009-06-14  Jim Meyering  <meyering@redhat.com>
75145         link-follow: fix the "checking..." message to not mention trailing slash
75146         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
75147         never considered trailing slashes.
75149 2009-06-14  Bruno Haible  <bruno@clisp.org>
75151         * m4/memchr.m4: Mention also the bug on IA-64.
75152         * doc/posix-functions/memchr.texi: Likewise.
75154 2009-06-12  Eric Blake  <ebb9@byu.net>
75156         memchr: detect broken x86_64 and alpha implementations
75157         * modules/memchr-tests (Depends-on): Move mmap detection...
75158         * modules/memchr (Depends-on): ...here.
75159         (configure.ac): Set indicator.
75160         * lib/string.in.h (memchr): Declare replacement.
75161         * modules/string (Makefile.am): Trigger replacement.
75162         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
75163         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
75164         bugs.
75165         * doc/posix-functions/memchr.texi (memchr): Document the bug.
75166         * modules/getpagesize (License): Relax license.
75168 2009-06-11  Bruno Haible  <bruno@clisp.org>
75170         * lib/idpriv.h: Add more references.
75172 2009-06-08  Bruno Haible  <bruno@clisp.org>
75174         Tests for module 'idpriv-droptemp'.
75175         * modules/idpriv-droptemp-tests: New file.
75176         * tests/test-idpriv-droptemp.sh: New file.
75177         * tests/test-idpriv-droptemp.su.sh: New file.
75178         * tests/test-idpriv-droptemp.c: New file.
75180         New module 'idpriv-droptemp'.
75181         * lib/idpriv-droptemp.c: New file.
75182         * modules/idpriv-droptemp: New file.
75184 2009-06-08  Bruno Haible  <bruno@clisp.org>
75186         Tests for module 'idpriv-drop'.
75187         * modules/idpriv-drop-tests: New file.
75188         * tests/test-idpriv-drop.sh: New file.
75189         * tests/test-idpriv-drop.su.sh: New file.
75190         * tests/test-idpriv-drop.c: New file.
75192         New module 'idpriv-drop'.
75193         * lib/idpriv.h: New file.
75194         * lib-idpriv-drop.c: New file.
75195         * m4/idpriv.m4: New file.
75196         * modules/idpriv-drop: New file.
75198 2009-06-08  Bruno Haible  <bruno@clisp.org>
75200         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
75201         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
75202         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
75203         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
75204         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
75205         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
75206         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
75208 2009-06-08  Eric Blake  <ebb9@byu.net>
75210         test-strstr: use memory fence, when possible
75211         * tests/test-strstr.c (main): Use memory fence, in order to be
75212         more likely to trigger Debian bug 521737.
75213         * modules/strstr-tests (Files): Pull in additional files.
75215         memchr: no longer obsolete, for wider field testing
75216         * modules/memchr (Status, Notice): Delete, this module is no
75217         longer obsolete.
75218         * modules/vasnprintf (Depends-on): Add memchr.
75220 2009-06-07  Jim Meyering  <meyering@redhat.com>
75222         hash: declare some functions with the warn_unused_result attribute
75223         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
75225 2009-06-07  Bruno Haible  <bruno@clisp.org>
75227         * tests/test-alignof.c: Don't test int64_t if it does not exist.
75228         Reported by Eric Blake.
75230 2009-06-06  Eric Blake  <ebb9@byu.net>
75232         test-alignof: fix typo with long double
75233         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
75234         compiler error.
75236 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
75238         Escape non-texinfo { and }s.
75239         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
75240         markup error.
75242 2009-06-04  Jim Meyering  <meyering@redhat.com>
75244         gitlog-to-changelog: don't infloop on an empty commit log
75245         * build-aux/gitlog-to-changelog: Warn about an empty log message.
75246         Reported by Boris Petersen <transacid@centerim.org>.
75248 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
75250         version-etc: extend for packagers
75251         Add three new configure options, intended for packagers:
75252           --with-packager="packager name"
75253           --with-packager-version="packager-specific version"
75254           --with-packager-bug-reports="packager bug reporting"
75255         An example with coreutils:
75256           $ ./configure \
75257             --with-packager=Gentoo \
75258             --with-packager-bug-report=http://bugs.gentoo.org/ \
75259             --with-packager-version="patchset 1.6"
75260           $ ./src/ls --version | head -n2
75261           ls (GNU coreutils) 7.1-dirty
75262           Packaged by Gentoo (patchset 1.6)
75263         Note that the bug reporting info via --help doesn't show up because
75264         coreutils uses its own custom emit_bug_reporting_address() implementation
75265         in src/system.h.  If it didn't, it'd look like:
75266           $ ./src/ls --help | tail -n4
75267           Report bugs to <bug-coreutils@gnu.org>.
75268           Report Gentoo bugs to <http://bugs.gentoo.org/>.
75269           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
75270           General help using GNU software: <http://www.gnu.org/gethelp/>.
75271         * lib/version-etc.c: Print new information, if provided.
75272         * m4/version-etc.m4: New file.
75273         * modules/version-etc (Files): Add m4/version-etc.m4.
75274         (configure.ac): Add gl_VERSION_ETC.
75276 2009-05-31  Bruno Haible  <bruno@clisp.org>
75278         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
75279         and 'int64_t'.
75280         * modules/alignof-tests (Dependencies): Add stdint.
75281         Reported by Eric Blake.
75283 2009-05-31  Bruno Haible  <bruno@clisp.org>
75285         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
75286         restriction due to compiler bugs.
75287         Reported by Eric Blake.
75289 2009-05-31  Simon Josefsson  <simon@josefsson.org>
75290             Bruno Haible  <bruno@clisp.org>
75292         Fix test-alignof failure.
75293         * lib/alignof.h (alignof_slot): New macro.
75294         (alignof_type): New macro, with the same semantics as the previous
75295         'alignof'.
75296         (alignof): Alias to alignof_slot.
75297         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
75298         check that the results are usable as constant expressions.
75300 2009-05-31  Bruno Haible  <bruno@clisp.org>
75302         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
75303         * tests/test-memchr.c (main): Check that memchr does not read past the
75304         first occurrence of the byte.
75305         * tests/test-strstr.c (main): Update comment.
75306         Suggested by Eric Blake.
75308 2009-05-30  Bruno Haible  <bruno@clisp.org>
75310         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
75311         detail how to use dumpbin.
75312         Reported by David Byron <dbyron@dbyron.com>.
75314 2009-06-02  Simon Josefsson  <simon@josefsson.org>
75316         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
75318 2009-06-02  Simon Josefsson  <simon@josefsson.org>
75320         * m4/manywarnings.m4: Add GCC 4.4 warnings.
75322 2009-05-28  Bruno Haible  <bruno@clisp.org>
75324         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
75325         build-aux/ files.
75327 2009-05-28  Simon Josefsson  <simon@josefsson.org>
75329         * gnulib-tool (func_import): Transform license on build-aux/ files too.
75331 2009-05-27  Simon Josefsson  <simon@josefsson.org>
75333         * gnulib-tool (sed_transform_main_lib_file)
75334         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
75335         regexps.
75337 2009-05-26  Simon Josefsson  <simon@josefsson.org>
75339         * tests/test-strstr.c: Add another self-test.
75340         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
75341         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
75343 2009-05-23  Bruno Haible  <bruno@clisp.org>
75345         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
75346         change.
75348 2009-05-21  Bruno Haible  <bruno@clisp.org>
75350         Simplify use of mode_t varargs.
75351         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
75352         uses 'mode_t' or 'int'.
75353         * lib/openat.c (openat): Likewise.
75354         * lib/open-safer.c (open_safer): Likewise.
75355         * m4/mode_t.m4: New file.
75356         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
75357         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
75358         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
75359         * modules/open (Files): Add m4/mode_t.m4.
75360         * modules/openat (Files): Likewise.
75361         * modules/fcntl-safer (Files): Likewise.
75362         Suggested by Eric Blake.
75364 2009-05-21  Pádraig Brady  <P@draigbrady.com>
75366         * doc/glibc-functions/fallocate.texi: New file.
75367         * doc/gnulib.texi: Include it.
75369 2009-05-21  Eric Blake  <ebb9@byu.net>
75370             Bruno Haible  <bruno@clisp.org>
75372         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
75373         invocations.
75374         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
75376 2009-05-21  Eric Blake  <ebb9@byu.net>
75377             Bruno Haible  <bruno@clisp.org>
75379         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
75380         include_next. Fix of 2008-11-20 commit.
75381         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
75382         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
75383         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
75384         NEXT_MATH_H.
75385         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
75386         instead of NEXT_MATH_H.
75388 2009-05-21  Bruno Haible  <bruno@clisp.org>
75390         Avoid redefinition warnings for SIZE_MAX.
75391         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
75392         Reported by Simon Josefsson.
75394 2009-05-21  Bruno Haible  <bruno@clisp.org>
75396         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
75397         AC_CACHE_VAL.
75399 2009-05-20  Bruno Haible  <bruno@clisp.org>
75401         Make zeroptr.h work on mingw.
75402         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
75403         mprotect.
75404         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
75405         * modules/memchr2-tests (configure.ac): Likewise.
75406         * modules/memcmp-tests (configure.ac): Likewise.
75407         * modules/memmem-tests (configure.ac): Likewise.
75408         * modules/memrchr-tests (configure.ac): Likewise.
75409         Reported by Simon Josefsson.
75411 2009-05-20  Simon Josefsson  <simon@josefsson.org>
75413         * tests/test-glob.c: Include string.h for strcmp prototype.
75415 2009-05-20  Simon Josefsson  <simon@josefsson.org>
75417         * modules/getdelim (Depends-on): Add explicit stdint, although it
75418         was implicitly already pulled in via realloc-posix.
75419         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
75421 2009-05-20  Simon Josefsson  <simon@josefsson.org>
75423         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
75424         G. Christensen" <tgc@jupiterrise.com>.
75425         * m4/sys_socket_h.m4: Check for sa_family_t.
75426         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
75427         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
75428         * tests/test-sys_socket.c: Check that sa_family_t works.
75430 2009-05-18  Eric Blake  <ebb9@byu.net>
75432         maint.mk: allow gnulib_dir in VPATH build
75433         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
75435 2009-05-15  Jim Meyering  <meyering@redhat.com>
75437         maint.mk: Give gnulib_dir a default definition.
75438         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
75439         Thus, most packages no longer need to specify this variable in cfg.mk
75441 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
75443         rename.m4: fix typos that would make non-mingw cross-configure fail
75444         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
75446 2009-05-13  Eric Blake  <ebb9@byu.net>
75448         mmap-anon: avoid out-of-order autoconf expansion
75449         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
75450         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
75451         * modules/memchr-tests (Depends-on): Add extensions.
75452         * modules/memchr2-tests (Depends-on): Add extensions.
75453         * modules/memcmp-tests (Depends-on): Add extensions.
75454         * modules/memmem-tests (Depends-on): Add extensions.
75455         * modules/memrchr-tests (Depends-on): Add extensions.
75457 2009-05-13  Bruno Haible  <bruno@clisp.org>
75459         Make some tests ISO C 99 compliant.
75460         * tests/zerosize-ptr.h: New file.
75461         * tests/test-memchr.c: Include zerosize-ptr.h.
75462         (main): Use a zero-size object pointer instead of NULL.
75463         * tests/test-memchr2.c: Include zerosize-ptr.h.
75464         (main): Use a zero-size object pointer instead of NULL.
75465         * tests/test-memcmp.c: Include zerosize-ptr.h.
75466         (main): Use a zero-size object pointer instead of NULL.
75467         * tests/test-memmem.c: Include zerosize-ptr.h.
75468         (main): Use a zero-size object pointer instead of NULL.
75469         * tests/test-memrchr.c: Include zerosize-ptr.h.
75470         (main): Use a zero-size object pointer instead of NULL.
75471         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
75472         m4/mmap-anon.m4.
75473         (Depends-on): Add getpagesize.
75474         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
75475         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
75476         m4/mmap-anon.m4.
75477         (Depends-on): Add getpagesize.
75478         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
75479         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
75480         m4/mmap-anon.m4.
75481         (Depends-on): Add getpagesize.
75482         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
75483         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
75484         m4/mmap-anon.m4.
75485         (Depends-on): Add getpagesize.
75486         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
75487         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
75488         m4/mmap-anon.m4.
75489         (Depends-on): Add getpagesize.
75490         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
75492 2009-05-12  Bruno Haible  <bruno@clisp.org>
75494         Tests for module 'alignof'.
75495         * modules/alignof-tests: New file.
75496         * tests/test-alignof.c: New file.
75498 2009-05-12  Bruno Haible  <bruno@clisp.org>
75500         Fix alignof macro.
75501         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
75502         vendor compilers that are always correct.
75504 2009-05-12  Bruno Haible  <bruno@clisp.org>
75506         Make the MAP_ANONYMOUS detection work on HP-UX 11.
75507         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
75508         not whether its fully works.
75510 2009-05-12  Bruno Haible  <bruno@clisp.org>
75512         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
75514 2009-05-12  Jim Meyering  <meyering@redhat.com>
75516         * top/maint.mk: Adjust backslash alignment.
75518 2009-05-11  Simon Josefsson  <simon@josefsson.org>
75520         * top/maint.mk: Make $(srcdir)/build-aux configurable.
75522 2009-05-11  Eric Blake  <ebb9@byu.net>
75524         argp: avoid undefined behavior
75525         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
75526         macros.
75528 2009-05-08  Simon Josefsson  <simon@josefsson.org>
75530         * tests/test-vc-list-files-git.sh: Do git config of user.email and
75531         user.name to prevent git commit from complaining.
75533 2009-05-10  Bruno Haible  <bruno@clisp.org>
75535         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
75536         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
75537         it rewrites every file name only once.
75538         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
75540 2009-05-08  Bruno Haible  <bruno@clisp.org>
75542         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
75543         instead of 'max'.
75545 2009-05-08  Simon Josefsson  <simon@josefsson.org>
75547         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
75548         sockaddr_storage test.
75550 2009-05-07  Simon Josefsson  <simon@josefsson.org>
75552         * modules/sys_socket (Makefile.am): Substitute
75553         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
75554         * m4/sys_socket_h.m4: Check for sockaddr_storage.
75555         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
75556         * tests/test-sys_socket.c: Check sockaddr_storage.
75558 2009-05-08  Bruno Haible  <bruno@clisp.org>
75560         New module 'alignof'.
75561         * lib/alignof.h: New file.
75562         * modules/alignof: New file.
75564 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
75565             Bruno Haible  <bruno@clisp.org>
75567         Fix test-file-has-acl on FreeBSD.
75568         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
75569         mask is implicitly added.
75570         * tests/test-file-has-acl.c: Include <signal.h>.
75571         (main): Terminate the test after 5 seconds.
75572         * modules/acl-tests (configure.ac): Check for alarm function.
75574 2009-05-04  Bruno Haible  <bruno@clisp.org>
75576         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
75577         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
75578         * modules/errno (configure.ac): Drop AC_REQUIRE.
75579         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
75580         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
75582 2009-05-04  Simon Josefsson  <simon@josefsson.org>
75584         * modules/glob-tests: New module.
75585         * tests/test-glob.c: Add.
75587 2009-05-04  Simon Josefsson  <simon@josefsson.org>
75589         * modules/fnmatch-tests: New module.
75590         * tests/test-fnmatch.c: Add.
75592 2009-05-04  Eric Blake  <ebb9@byu.net>
75594         maint: make the new no-submodule-changes rule VPATH-safe
75595         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
75597 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
75598             Bruno Haible  <bruno@clisp.org>
75600         acl: Fix infinite loop on FreeBSD.
75601         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
75602         of return value from acl_get_entry.
75603         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
75604         Likewise.
75606 2009-05-03  Bruno Haible  <bruno@clisp.org>
75608         * lib/acl-internal.h (acl_entries): Clarify return value.
75609         * lib/acl_entries.c (acl_entries): Likewise.
75611 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
75613         Bug fix in acl module.
75614         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
75616 2009-05-03  Bruno Haible  <bruno@clisp.org>
75618         Create gperf-generated file in the source dir, not in the build dir.
75619         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
75620         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
75621         * modules/unicase/locale-language (unicase/locale-languages.h):
75622         Likewise.
75623         * modules/unicase/special-casing (unicase/special-casing-table.h):
75624         Likewise.
75625         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
75626         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
75627         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
75628         Reported by Ralf Wildenhues.
75630 2009-05-03  Bruno Haible  <bruno@clisp.org>
75632         * modules/fnmatch (Description, configure.ac): Taken from
75633         fnmatch-posix.
75634         * modules/fnmatch-posix: Turn into a symbolic reference to the
75635         'fnmatch' module, and deprecate.
75636         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
75638 2009-05-03  Bruno Haible  <bruno@clisp.org>
75640         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
75641         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
75642         Reported by Ralf Wildenhues.
75644 2009-05-04  Simon Josefsson  <simon@josefsson.org>
75646         * m4/fnmatch.m4: Fix fnmatch re-define.
75648 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
75650         priv-set: new module and tests; adapt write-any-file
75651         * lib/priv-set.c: New file.
75652         * lib/priv-set.h: New file.
75653         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
75654         * lib/write-any-file.c: Simplify by using priv-set module.
75655         * m4/priv-set.m4: New file.
75656         * modules/priv-set: New file.
75657         * modules/unlinkdir: Add dependency on priv-set module.
75658         * modules/write-any-file: Likewise.
75660         Tests for module 'priv-set'.
75661         * modules/priv-set-tests: New file.
75662         * tests/test-priv-set.c: New file.
75664 2009-05-03  Jim Meyering  <meyering@redhat.com>
75665             Bruno Haible  <bruno@clisp.org>
75667         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
75668         use the converted UTF-8 variant of the name instead.
75670 2009-05-03  Jim Meyering  <meyering@redhat.com>
75672         tests: tighten some getdate tests
75673         * tests/test-getdate.c (main): Tighten tests: require equality,
75674         not just greater than.  Set TZ envvar to UTC0.
75676 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
75678         getdate: correctly interpret "next monday" when run on a Monday
75679         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
75680         that e.g., "next tues" (when run on a tuesday) results in a date
75681         that is one week in the future, and not today's date.
75682         I.e., add a week when the wday is the same as the current one.
75683         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
75684         and earlier by Martin Bernreuther and Jan Minář.
75685         * tests/test-getdate.c (main): Check that "next DAY" is always in
75686         the future and that "last DAY" is always in the past.
75688 2009-05-02  Jim Meyering  <meyering@redhat.com>
75690         build: ensure that a release build fails when a submodule is unclean
75691         * top/maint.mk (no-submodule-changes): New rule.
75692         (alpha beta major): Depend on it.
75694 2009-05-02  Bruno Haible  <bruno@clisp.org>
75696         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
75697         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
75698         shell variable gl_fnmatch_required to detect which variant is
75699         requested.
75700         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
75701         gl_FUNC_FNMATCH_POSIX.
75702         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
75703         exclude fnmatch-posix.
75705 2009-05-02  Bruno Haible  <bruno@clisp.org>
75707         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
75708         * modules/mbsrtowcs (License): Change to LGPLv2+.
75709         * modules/strnlen1 (License): Likewise.
75710         Reported by Simon Josefsson.
75712 2009-05-02  Bruno Haible  <bruno@clisp.org>
75714         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
75715         "cross".
75716         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
75717         gnulib-tool was called with option --source-base=lib.
75719 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75721         Use automake *-local hooks without commands, for extensibility.
75722         * modules/localcharset (Makefile.am): Rename install-exec-local
75723         rule to install-exec-localcharset, and make it a prerequisite of
75724         install-exec-local.  Likewise, rename the uninstall-local rule to
75725         uninstall-localcharset, and make it a prerequisite of the former.
75727 2009-05-01  Bruno Haible  <bruno@clisp.org>
75729         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
75730         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
75731         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
75732         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
75733         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
75734         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
75735         m4/locale-zh.m4, m4/codeset.m4.
75737         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
75738         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
75739         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
75740         m4/locale-zh.m4.
75742         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
75743         REPLACE_WCRTOMB if mbstate_t must be replaced.
75744         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
75745         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
75747 2009-05-01  Bruno Haible  <bruno@clisp.org>
75749         Avoid compiler warnings when redefining macros defined by <libintl.h>.
75750         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
75751         dngettext, dcngettext, textdomain, bindtextdomain,
75752         bind_textdomain_codeset): Undefine before redefining.
75754 2009-04-30  Bruno Haible  <bruno@clisp.org>
75756         Fix bug introduced on 2009-04-25.
75757         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
75758         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
75759         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
75760         is defined.
75761         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
75762         is defined.
75763         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
75764         is defined.
75765         Reported by Elbert_Pol <elbert.pol@gmail.com>.
75767 2009-04-28  Bruno Haible  <bruno@clisp.org>
75769         Comment tweaks.
75770         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
75771         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
75772         * lib/unicase.h (u*_casexfrm): Likewise.
75773         Reported by Paolo Bonzini.
75775 2009-04-28  Bruno Haible  <bruno@clisp.org>
75777         Fix a compilation error.
75778         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
75779         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
75780         Reported by Jim Meyering.
75782 2009-04-27  Bruno Haible  <bruno@clisp.org>
75784         New module 'libunistring'.
75785         * modules/libunistring: New file.
75786         * m4/libunistring.m4: New file.
75787         * MODULES.html.sh (Unicode string functions): Add it.
75789 2009-04-27  Eric Blake  <ebb9@byu.net>
75791         maint.mk: allow package-specific header to provide <config.h>
75792         * top/maint.mk (sc_require_config_h): New variable.
75793         (sc_require_config_h, sc_require_config_h_first): Use it.
75795 2009-04-27  Simon Josefsson  <simon@josefsson.org>
75797         * top/maint.mk (sc_avoid_if_before_free): Except
75798         useless-if-before-free script.
75800 2009-04-27  Eric Blake  <ebb9@byu.net>
75802         maintainer-makefile: depend on all required helper scripts
75803         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
75804         useless-if-before-free.
75805         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
75806         version, rather than assuming gnulib checkout is available.
75807         Reported by Simen Josefsson.
75809 2009-04-26  Bruno Haible  <bruno@clisp.org>
75811         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
75812         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
75813         "../" or "..".
75815 2009-04-26  Bruno Haible  <bruno@clisp.org>
75817         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
75818         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
75819         AC_LIB_HAVE_LINKFLAGS.
75821 2009-04-26  Bruno Haible  <bruno@clisp.org>
75823         Simplify calling convention of u*_conv_from_encoding.
75824         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
75825         u32_conv_from_encoding): Expect a resultbuf argument and return the
75826         result directly as a pointer.
75827         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
75828         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
75829         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
75830         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
75831         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
75832         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
75833         Update.
75834         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
75835         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
75836         * lib/vasnprintf.c (VASNPRINTF): Update.
75837         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
75838         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
75839         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
75840         * NEWS: Mention the change.
75842 2009-04-26  Bruno Haible  <bruno@clisp.org>
75844         Simplify calling convention of u*_conv_to_encoding.
75845         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
75846         u32_conv_to_encoding): Expect a resultbuf argument and return the
75847         result directly as a pointer.
75848         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
75849         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
75850         freeing scaled_offsets if mem_iconveha failed.
75851         * lib/unicase/u-casexfrm.h (FUNC): Update.
75852         * lib/uninorm/u-normxfrm.h (FUNC): Update.
75853         * lib/vasnprintf.c (VASNPRINTF): Update.
75854         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
75855         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
75856         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
75857         * NEWS: Mention the change.
75859 2009-04-26  Bruno Haible  <bruno@clisp.org>
75861         Avoid test failures on AIX and OSF/1.
75862         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
75863         malloc(0).
75864         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
75865         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
75866         Likewise.
75867         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
75868         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
75869         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
75870         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
75871         * doc/posix-functions/malloc.texi: Document the portability problem
75872         related to malloc(0).
75874 2009-04-26  Bruno Haible  <bruno@clisp.org>
75876         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
75877         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
75878         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
75880 2009-04-25  Bruno Haible  <bruno@clisp.org>
75882         Avoid link error when creating a namespace clean library.
75883         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
75884         as macro with arguments if already defined as an alias.
75885         * lib/signbitf.c (gl_signbitf): Don't undefine.
75886         * lib/signbitd.c (gl_signbitd): Don't undefine.
75887         * lib/signbitl.c (gl_signbitl): Don't undefine.
75889 2009-04-25  Jim Meyering  <meyering@redhat.com>
75891         vc-list-files: fix another quoting bug
75892         * build-aux/vc-list-files: Avoid sed backslash expansion
75893         of pathological directory names.
75895 2009-04-25  Eric Blake  <ebb9@byu.net>
75897         vc-list-files: fix shell quoting error
75898         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
75899         timestamp.
75901 2009-04-25  Jim Meyering  <meyering@redhat.com>
75903         vc-list-files: restore lost functionality with subdir argument
75904         * build-aux/vc-list-files: When given a non-"." sub-directory
75905         argument, substitute the $dir/ prefix back onto each resulting name.
75906         Otherwise, coreutils' root_tests check would fail.
75908 2009-04-24  Eric Blake  <ebb9@byu.net>
75910         vc-list-files: ignore git symlinks
75911         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
75912         than ls-files, to ignore git symlinks.
75914         maint.mk: import improvements from m4
75915         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
75916         (move_if_change): Delete unused macro.
75917         (news-date-check, vc-diff-check): Support VPATH builds.
75918         (announcement): Likewise.  Split --bootstrap-tools list...
75919         (boostrap-tools): ...into separate list, which can be overridden
75920         in cfg.mk.
75921         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
75922         requiring dependency on useless-if-before-free module.
75923         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
75924         Support VPATH builds.
75926 2009-04-24  Jim Meyering  <meyering@redhat.com>
75928         maint.mk: remove coreutils-specific rules and variables
75929         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
75930         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
75931         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
75933         maint.mk: remove obsolete rule
75934         * top/maint.mk (rel-check): Remove rule.
75935         (WGET, WGETFLAGS): Remove now-unused variables.
75937 2009-04-24  Simon Josefsson  <simon@josefsson.org>
75939         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
75940         consistency.
75942         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
75943         '$(PATH_SEPARATOR)' instead of ':'.
75945 2009-04-24  Simon Josefsson  <simon@josefsson.org>
75947         * lib/getopt1.c (main): Use 'const' for static array.
75949 2009-04-24  Simon Josefsson  <simon@josefsson.org>
75951         * top/maint.mk: Sync with coreutils.
75952         * NEWS: Explain incompatibilities.
75954 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75955             Bruno Haible  <bruno@clisp.org>
75957         Fix cross-compilation results.
75958         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
75959         statement, as third argument of AC_TRY_RUN.
75960         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
75961         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
75962         Likewise.
75963         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
75964         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
75965         Likewise.
75966         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
75967         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
75968         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
75970 2009-04-20  Bruno Haible  <bruno@clisp.org>
75972         Avoid test failure on mingw.
75973         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
75975 2009-04-20  Bruno Haible  <bruno@clisp.org>
75977         Avoid compilation error on mingw.
75978         * modules/localename-tests (Depends-on): Add locale.
75980 2009-04-19  Bruno Haible  <bruno@clisp.org>
75982         Support for building a shared library on Windows platforms.
75983         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
75984         (main): Test the presence of UNINORM_NFC here.
75985         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
75986         (main): Test the presence of UNINORM_NFD here.
75987         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
75988         (main): Test the presence of UNINORM_NFKC here.
75989         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
75990         (main): Test the presence of UNINORM_NFKD here.
75992 2009-04-19  Bruno Haible  <bruno@clisp.org>
75994         Avoid a compiler warning.
75995         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
75996         Change type of variable 'sequence'.
75998 2009-04-19  Bruno Haible  <bruno@clisp.org>
76000         * modules/configmake (Makefile.am): When the contents of configmake.h
76001         does not change, arrange to preserve its modification time.
76003 2009-04-17  Simon Josefsson  <simon@josefsson.org>
76005         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
76006         gettext domain.
76008 2009-04-16  Jim Meyering  <meyering@redhat.com>
76010         useless-if-before-free: improve conversion code
76011         * build-aux/useless-if-before-free: Adjust code-in-comment to match
76012         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
76014 2009-04-14  Bruno Haible  <bruno@clisp.org>
76016         * modules/fcntl (Depends-on): Add extensions.
76017         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
76019 2009-04-12  Ben Pfaff  <blp@gnu.org>
76021         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
76022         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
76024 2009-03-20  Ben Pfaff  <blp@gnu.org>
76026         Make rename replace existing destinations on Windows.
76027         * m4/rename.m4: Add test for Mingw.
76028         * lib/rename.c: Add rename replacement that uses MoveFileEx with
76029         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
76030         * doc/posix-functions/rename.texi: Document.
76032 2009-04-10  Bruno Haible  <bruno@clisp.org>
76034         New include file "iconveh.h".
76035         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
76036         * lib/striconveh.h: Include it.
76037         (enum iconv_ilseq_handler): Remove definition.
76038         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
76039         striconveh.h.
76040         * lib/striconveha.c: Include striconveh.h.
76041         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
76042         * modules/striconveh (Files): Add lib/iconveh.h.
76043         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
76044         lib/striconveh.h.
76046 2009-04-10  Bruno Haible  <bruno@clisp.org>
76048         * lib/uniconv.h: Update comment.
76050 2009-04-10  Bruno Haible  <bruno@clisp.org>
76052         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
76053         always.
76054         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
76055         * lib/unistr/u16-mbtouc-aux.c: Likewise.
76056         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
76057         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
76058         "unistring-notinline.h", so that the function gets defined always.
76059         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
76060         * lib/unistr/u8-uctomb.c: Likewise.
76061         * lib/unistr/u16-mbtouc.c: Likewise.
76062         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
76063         * lib/unistr/u16-uctomb.c: Likewise.
76064         * lib/unistr/u32-mbtouc.c: Likewise.
76065         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
76066         * lib/unistr/u32-uctomb.c: Likewise.
76068 2009-04-10  Bruno Haible  <bruno@clisp.org>
76070         Mark 'utime' obsolete.
76071         * modules/utime (Status, Notice): New sections.
76072         Suggested by Jim Meyering.
76074         Fix cross-compile guess for utime test.
76075         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
76076         autoconf.
76077         * doc/posix-functions/utime.texi: Give more precisions.
76078         Reported by Jan <ipif@ymail.com>.
76080 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
76082         filevercmp: correct today's change
76083         * lib/filevercmp.c: Also handle coreutils' test inputs.
76084         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
76086         Fix regression in 'filevercmp' module. Thanks Sven Joachim
76087         for reporting it.
76088         * lib/filevercmp.c: Special handle for "", "." and "..".
76089         * tests/test-filevercmp.c: Enlarge the set suite.
76091 2009-04-07  Jim Meyering  <meyering@redhat.com>
76093         useless-if-before-free: show how to remove braced useless free, too
76094         * build-aux/useless-if-before-free: still only in a comment, though.
76096 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
76098         maint.mk: import changes to syntax-check macros from coreutils
76099         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
76100         Use them in the relevant macros.
76102 2009-04-06  Bruno Haible  <bruno@clisp.org>
76104         Fix unportable use of bit-fields.
76105         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
76106         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
76107         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
76109 2009-04-06  Bruno Haible  <bruno@clisp.org>
76111         Avoid test failures on AIX and OSF/1.
76112         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
76113         that malloc(0) = NULL.
76114         * tests/unicase/test-u8-tolower.c (check): Likewise.
76115         * tests/unicase/test-u8-totitle.c (check): Likewise.
76116         * tests/unicase/test-u8-toupper.c (check): Likewise.
76117         * tests/unicase/test-u16-casefold.c (check): Likewise.
76118         * tests/unicase/test-u16-tolower.c (check): Likewise.
76119         * tests/unicase/test-u16-totitle.c (check): Likewise.
76120         * tests/unicase/test-u16-toupper.c (check): Likewise.
76121         * tests/unicase/test-u32-casefold.c (check): Likewise.
76122         * tests/unicase/test-u32-tolower.c (check): Likewise.
76123         * tests/unicase/test-u32-totitle.c (check): Likewise.
76124         * tests/unicase/test-u32-toupper.c (check): Likewise.
76125         * tests/uninorm/test-u8-nfc.c (check): Likewise.
76126         * tests/uninorm/test-u8-nfd.c (check): Likewise.
76127         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
76128         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
76129         * tests/uninorm/test-u16-nfc.c (check): Likewise.
76130         * tests/uninorm/test-u16-nfd.c (check): Likewise.
76131         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
76132         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
76133         * tests/uninorm/test-u32-nfc.c (check): Likewise.
76134         * tests/uninorm/test-u32-nfd.c (check): Likewise.
76135         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
76136         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
76138 2009-04-05  Bruno Haible  <bruno@clisp.org>
76140         Work around an autoconf limitation.
76141         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
76142         comment line if it would be longer than 3 KB.
76144 2009-04-05  Bruno Haible  <bruno@clisp.org>
76146         Avoid test failure with libiconv-1.13.
76147         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
76148         of the expected test results.
76150 2009-04-05  Bruno Haible  <bruno@clisp.org>
76152         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
76153         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
76154         that it should be installed.
76156 2009-04-05  Bruno Haible  <bruno@clisp.org>
76158         * gnulib-tool: New option --copy-file.
76159         (func_usage): Document it.
76160         (func_dest_tmpfilename): Moved out of func_import.
76161         (func_add_file, func_update_file): New functions, extracted from
76162         func_import.
76163         (func_import): Update.
76165 2009-04-05  Karl Berry  <karl@gnu.org>
76167         * README: prominently mention gnulib-tool.
76168         Rearrange sections so getting the code is near the top.
76170 2009-04-05  Bruno Haible  <bruno@clisp.org>
76172         * lib/unicase.h: Mention u*_cmp2.
76173         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
76174         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
76175         * lib/unicase/ulc-casecmp.c: Likewise.
76176         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
76177         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
76178         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
76179         unistr/u8-cmp.
76180         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
76181         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
76182         unistr/u16-cmp.
76183         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
76184         unistr/u32-cmp.
76186         * lib/uninorm.h: Mention u*_cmp2.
76187         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
76188         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
76189         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
76190         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
76191         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
76192         unistr/u8-cmp.
76193         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
76194         unistr/u16-cmp.
76195         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
76196         unistr/u32-cmp.
76198         New module 'unistr/u32-cmp2'.
76199         * lib/unistr/u32-cmp2.c: New file.
76200         * modules/unistr/u32-cmp2: New file.
76202         New module 'unistr/u16-cmp2'.
76203         * lib/unistr/u16-cmp2.c: New file.
76204         * modules/unistr/u16-cmp2: New file.
76206         New module 'unistr/u8-cmp2'.
76207         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
76208         * lib/unistr/u8-cmp2.c: New file.
76209         * lib/unistr/u-cmp2.h: New file.
76210         * modules/unistr/u8-cmp2: New file.
76212 2009-04-05  Bruno Haible  <bruno@clisp.org>
76214         * lib/unictype.h (uc_property_is_valid): New macro.
76215         * tests/unictype/test-pr_byname.c (main): Use it.
76217         * lib/unistr.h: Doc fixes.
76218         * lib/uniconv.h: Doc fixes.
76219         * lib/unictype.h: Doc fixes.
76221 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
76223         Port coreutils 7.2 to Solaris 8.
76225         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
76226         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
76227         for Solaris 8.  This is a bit of a hack, as it means it's the
76228         caller's responsibility to add -lnsl if needed, but most likely it
76229         won't be needed since only getaddrinfo uses this and getaddrinfo
76230         isn't needed on Solaris 8.
76232         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
76233         problem to Solaris 8 encountered with coreutils 7.2, which
76234         resulted in a message "fnmatch.c:292: warning: passing argument 4
76235         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
76236         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
76238 2009-04-03  Simon Josefsson  <simon@josefsson.org>
76240         * m4/ld-version-script.m4: Add FIXME comment.
76242 2009-04-02  Simon Josefsson  <simon@josefsson.org>
76244         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
76245         SOVERSION variable.
76247 2009-04-02  Bruno Haible  <bruno@clisp.org>
76249         * Makefile (info, html, dvi, pdf): Combine the rules.
76250         Suggested by Jim Meyering.
76252 2009-04-01  Bruno Haible  <bruno@clisp.org>
76254         * Makefile (info, html, dvi, pdf): New targets.
76255         Reported by Reuben Thomas <rrt@sc3d.org>.
76257 2009-04-01  Bruno Haible  <bruno@clisp.org>
76259         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
76260         can be put into PATH.
76261         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
76263 2009-04-01  Bruno Haible  <bruno@clisp.org>
76265         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
76267 2009-04-01  Bruno Haible  <bruno@clisp.org>
76269         Rename module 'visibility'.
76270         * modules/lib-symbol-visibility: Renamed from modules/visibility.
76271         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
76272         * doc/gnulib.texi: Update.
76273         * MODULES.html.sh (Misc): Update.
76274         * NEWS: Mention the change.
76276 2009-04-01  Simon Josefsson  <simon@josefsson.org>
76278         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
76279         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
76280         Eric Blake <ebb9@byu.net> for review.
76281         * MODULES.html.sh: Add lib-msvc-compat.
76282         * doc/gnulib.texi: Link to new section.
76283         * m4/ld-output-def.m4: New file.
76284         * doc/ld-output-def.texi: New file.
76286 2009-04-01  Simon Josefsson  <simon@josefsson.org>
76288         Rename ld-version-script to lib-symbol-versions.  Suggested by
76289         Bruno Haible <bruno@clisp.org>.
76290         * modules/ld-version-script: Renamed to lib-symbol-versions.
76291         * doc/ld-version-script.texi: Fix module name.
76292         * MODULES.html.sh: Add lib-symbol-versions.
76294 2009-03-31  Simon Josefsson  <simon@josefsson.org>
76296         * modules/u64-tests: New file.
76297         * tests/test-u64.c: New file.
76299 2009-03-04  Simon Josefsson  <simon@josefsson.org>
76301         * MODULES.html.sh: Mention u64.
76302         * modules/u64: New module.
76303         * modules/crypto/sha512: Depend on u64 module instead of providing
76304         u64.h.
76306 2009-03-27  Eric Blake  <ebb9@byu.net>
76308         test-strerror: make debugging EAI_SYSTEM easier
76309         * modules/getaddrinfo-tests (Depends-on): Add strerror.
76310         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
76311         failure was EAI_SYSTEM.
76313 2009-03-25  Bruno Haible  <bruno@clisp.org>
76315         Fix a problem with --enable-relocatable on Solaris 7.
76316         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
76317         since 2008-02-24.
76319 2009-03-25  Eric Blake  <ebb9@byu.net>
76321         test-sockets: avoid gcc warning
76322         * tests/test-sockets.c (main): Silence compiler warning.
76324 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
76326         New modules nproc, pthread, contributed by Glen Lenker.
76328         * MODULES.html.sh: Add pthread, nproc.
76329         * lib/nproc.c: New file.
76330         * lib/nproc.h: New file.
76331         * lib/pthread.in.h: New file.
76332         * m4/pthread.m4: New file.
76333         * modules/nproc: New file.
76334         * modules/pthread: New file.
76336 2009-03-24  Simon Josefsson  <simon@josefsson.org>
76338         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
76339         New variable.
76341 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
76343         filevercmp: handle simple~ and numbered.~3~ backup suffixes
76344         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
76345         * tests/test-filevercmp.c: Add tests for backup suffixes.
76347 2009-03-24  Simon Josefsson  <simon@josefsson.org>
76349         * modules/stdlib (Depends-on): Add stdint, needed when defining
76350         struct random_data on, for example, HP-UX 10.20.  Reported by
76351         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
76353 2009-03-24  Simon Josefsson  <simon@josefsson.org>
76355         * lib/readline.c (readline): Call fflush on stdout after printing
76356         prompt.
76358 2009-03-20  Bruno Haible  <bruno@clisp.org>
76360         Remove dependency from 'close' module to -lws2_32 on native Windows.
76361         * lib/close-hook.h: New file.
76362         * lib/close-hook.c: New file.
76363         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
76364         w32sock.h.
76365         (_gl_close_fd_maybe_socket): Remove function.
76366         (rpl_close): Invoke execute_all_close_hooks instead of
76367         _gl_close_fd_maybe_socket.
76368         * lib/sockets.c: Include close-hook.h, w32sock.h.
76369         (close_fd_maybe_socket): New function, essentially from lib/close.c.
76370         (close_sockets_hook): New variable.
76371         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
76372         (gl_sockets_cleanup): Unregister it.
76373         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
76374         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
76375         * modules/close-hook: New file.
76376         * modules/close (Files): Remove lib/w32sock.h.
76377         (Depends-on): Add close-hook.
76378         (Link): Remove section.
76379         * modules/sockets (Files): Add lib/w32sock.h.
76380         (Depends-on): Add close-hook.
76381         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
76382         invocation.
76383         * NEWS: Mention that LIB_CLOSE is gone.
76385 2009-03-23  Eric Blake  <ebb9@byu.net>
76387         signal-tests: test previous patch
76388         * tests/test-signal.c: New file.
76389         * modules/signal-tests: Likewise.
76391         signal.h: always support 'volatile sig_atomic_t'
76392         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
76393         (gl_SIGNAL_H_DEFAULTS): Add a default.
76394         * modules/signal (Makefile.am): Substitute if needed.
76395         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
76396         users can blindly add volatile.
76397         * doc/posix-headers/signal.texi (signal.h): Document it.
76398         Reported by Matthew Woehlke.
76400 2009-03-23  Jim Meyering  <meyering@redhat.com>
76402         pathmax: PATH_MAX: use pathconf only when available
76403         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
76404         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
76405         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
76406         This avoids a link failure in a PSP cross-compilation environment
76407         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
76409         * lib/vasnprintf.c (divide): Fix typo in comment.
76411 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76413         * gnulib-tool (func_filter_filelist): Fix comment.
76415 2009-03-20  Bruno Haible  <bruno@clisp.org>
76417         Make sockets.h self-contained.
76418         * lib/sockets.c: Include sockets.h first.
76419         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
76421 2009-03-19  Eric Blake  <ebb9@byu.net>
76423         doc: mention more functions added in cygwin 1.7.0
76424         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
76425         addition.
76426         * doc/posix-functions/log2f.texi: Likewise.
76428 2009-03-19  Jim Meyering  <meyering@redhat.com>
76430         fsusage: avoid syntax error due to statement-before-declaration
76431         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
76432         after all declarations.  Reported by Matthew Woehlke in
76433         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
76435 2009-03-18  Eric Blake  <ebb9@byu.net>
76437         build-aux/compile: sync from automake
76438         * build-aux/compile: New file, from automake.
76439         * config/srclist.txt: Mention build-aux/compile.
76441 2009-03-17  Bruno Haible  <bruno@clisp.org>
76443         * lib/git-merge-changelog.c: Fix typo in comment.
76444         Reported by Reuben Thomas <rrt@sc3d.org>.
76446 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
76448         * m4/regex.m4: update and improve help for
76449         --without-included-regex.
76451 2009-03-17  Simon Josefsson  <simon@josefsson.org>
76453         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
76454         failure on missing include files.
76456 2009-03-17  Eric Blake  <ebb9@byu.net>
76458         doc: mention more functions added in cygwin 1.7.0
76459         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
76460         addition.
76461         * doc/posix-functions/fwscanf.texi: Likewise.
76462         * doc/posix-functions/swprintf.texi: Likewise.
76463         * doc/posix-functions/swscanf.texi: Likewise.
76464         * doc/posix-functions/vfwprintf.texi: Likewise.
76465         * doc/posix-functions/vfwscanf.texi: Likewise.
76466         * doc/posix-functions/vswprintf.texi: Likewise.
76467         * doc/posix-functions/vswscanf.texi: Likewise.
76468         * doc/posix-functions/vwprintf.texi: Likewise.
76469         * doc/posix-functions/vwscanf.texi: Likewise.
76470         * doc/posix-functions/wcscasecmp.texi: Likewise.
76471         * doc/posix-functions/wcsdup.texi: Likewise.
76472         * doc/posix-functions/wcsftime.texi: Likewise.
76473         * doc/posix-functions/wcsncasecmp.texi: Likewise.
76474         * doc/posix-functions/wprintf.texi: Likewise.
76475         * doc/posix-functions/wscanf.texi: Likewise.
76476         * doc/glibc-functions/gethostbyname2.texi: Likewise.
76478 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76480         maint.mk: really add $(AM_MAKEFLAGS)
76481         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
76482         was inadvertently omitted in the last commit.
76483         Spotted by Bruno Haible.
76485         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
76486         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
76487         $(AM_MAKEFLAGS)' rather than plain `make'.
76489         gnulib-tool: execute $MAKE not make
76490         * gnulib-tool: Default $MAKE to 'make'.
76491         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
76492         than make.  Initialize $MAKE in the do-autobuild script.
76494         gnulib-tool: use $MAKE not make in generated files
76495         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
76496         make, in generated files.  Initialize $MAKE in the do-autobuild
76497         script.
76499         * top/GNUmakefile (_have-git-version-gen): Fix typo.
76501         GNUmakefile: disable parallelism only for multiple, recursive targets
76502         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
76503         additions in the Makefile.
76504         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
76505         by Automake.
76506         (.NOTPARALLEL): Only disable parallel builds if multiple targets
76507         are listed on the command line and at least one of them is
76508         listed in $(ALL_RECURSIVE_TARGETS).
76510 2009-03-14  Bruno Haible  <bruno@clisp.org>
76512         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
76513         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
76514         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
76515         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
76516         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
76517         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
76518         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
76519         unistr/u8-uctomb.
76520         * modules/unistr/u8-strchr (Depends-on): Likewise.
76521         * modules/unistr/u8-strrchr (Depends-on): Likewise.
76522         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
76523         unistr/u16-uctomb.
76524         * modules/unistr/u16-strchr (Depends-on): Likewise.
76525         * modules/unistr/u16-strrchr (Depends-on): Likewise.
76527 2009-03-12  Bruno Haible  <bruno@clisp.org>
76529         Work around select() bug on Interix 3.5.
76530         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
76531         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
76532         * m4/select.m4: New file.
76533         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
76534         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
76535         * modules/select (Files): Add m4/select.m4.
76536         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
76537         * modules/nanosleep (Depends-on): Add select.
76538         * modules/poll (Depends-on): Likewise.
76539         * doc/posix-functions/select.texi: Mention the Interix bug.
76540         Reported by Markus Duft <mduft@gentoo.org>.
76542         * lib/select.c: Renamed from lib/winsock-select.c.
76543         * modules/select (Files): Add lib/select.c, remove
76544         lib/winsock-select.c.
76545         (configure.ac): Update.
76547 2009-03-12  Jim Meyering  <meyering@redhat.com>
76549         avoid gcc warnings about unused macro definitions
76550         * lib/readtokens.c (STREQ): Remove unused definition.
76551         * lib/xmalloc.c (SIZE_MAX): Likewise.
76552         * lib/openat-die.c (N_): Likewise.
76553         * lib/mountlist.c (SIZE_MAX): Remove definition.
76554         Instead, include <stdint.h>.
76555         * lib/readutmp.c: Likewise.
76556         * modules/readutmp (Depends-on): Add stdint.
76557         * modules/mountlist (Depends-on): Add stdint.
76558         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
76560 2009-03-10  Bruno Haible  <bruno@clisp.org>
76562         Tests for module 'mbmemcasecoll'.
76563         * modules/mbmemcasecoll-tests: New file.
76564         * tests/test-mbmemcasecoll1.sh: New file.
76565         * tests/test-mbmemcasecoll2.sh: New file.
76566         * tests/test-mbmemcasecoll3.sh: New file.
76567         * tests/test-mbmemcasecoll.c: New file.
76569         New module 'mbmemcasecoll'.
76570         * lib/mbmemcasecoll.h: New file.
76571         * lib/mbmemcasecoll.c: New file.
76572         * modules/mbmemcasecoll: New file.
76574         * tests/test-mbmemcasecmp.h: New file, extracted from
76575         tests/test-mbmemcasecmp.c.
76576         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
76577         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
76578         (main): Update.
76579         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
76581 2009-03-09  Bruno Haible  <bruno@clisp.org>
76583         Tests for module 'mbmemcasecmp'.
76584         * modules/mbmemcasecmp-tests: New file.
76585         * tests/test-mbmemcasecmp1.sh: New file.
76586         * tests/test-mbmemcasecmp2.sh: New file.
76587         * tests/test-mbmemcasecmp3.sh: New file.
76588         * tests/test-mbmemcasecmp.c: New file.
76590         New module 'mbmemcasecmp'.
76591         * lib/mbmemcasecmp.h: New file.
76592         * lib/mbmemcasecmp.c: New file.
76593         * modules/mbmemcasecmp: New file.
76595 2009-03-09  Bruno Haible  <bruno@clisp.org>
76597         Tests for module 'unicase/ulc-casecoll'.
76598         * modules/unicase/ulc-casecoll-tests: New file.
76599         * tests/unicase/test-ulc-casecoll1.sh: New file.
76600         * tests/unicase/test-ulc-casecoll2.sh: New file.
76601         * tests/unicase/test-ulc-casecoll.c: New file.
76603         New module 'unicase/ulc-casecoll'.
76604         * lib/unicase.h (ulc_casecoll): New declaration.
76605         * lib/unicase/ulc-casecoll.c: New file.
76606         * modules/unicase/ulc-casecoll: New file.
76608         New module 'unicase/ulc-casexfrm'.
76609         * lib/unicase.h (ulc_casexfrm): New declaration.
76610         * lib/unicase/ulc-casexfrm.c: New file.
76611         * modules/unicase/ulc-casexfrm: New file.
76613 2009-03-09  Bruno Haible  <bruno@clisp.org>
76615         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
76616         invocations.
76618         * m4/mbscasecmp.m4: Remove file.
76619         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
76620         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
76622         * m4/mbscasestr.m4: Remove file.
76623         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
76624         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
76626         * m4/mbschr.m4: Remove file.
76627         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
76628         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
76630         * m4/mbscspn.m4: Remove file.
76631         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
76632         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
76634         * m4/mbslen.m4: Remove file.
76635         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
76636         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
76638         * m4/mbsncasecmp.m4: Remove file.
76639         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
76640         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
76642         * m4/mbsnlen.m4: Remove file.
76643         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
76644         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
76646         * m4/mbspbrk.m4: Remove file.
76647         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
76648         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
76650         * m4/mbspcasecmp.m4: Remove file.
76651         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
76652         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
76654         * m4/mbsrchr.m4: Remove file.
76655         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
76656         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
76658         * m4/mbssep.m4: Remove file.
76659         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
76660         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
76662         * m4/mbsspn.m4: Remove file.
76663         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
76664         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
76666         * m4/mbsstr.m4: Remove file.
76667         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
76668         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
76670         * m4/mbstok_r.m4: Remove file.
76671         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
76672         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
76674         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
76676         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
76677         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
76679         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
76681 2009-03-08  Bruno Haible  <bruno@clisp.org>
76683         Tests for module 'unicase/ulc-casecmp'.
76684         * modules/unicase/ulc-casecmp-tests: New file.
76685         * tests/unicase/test-ulc-casecmp1.sh: New file.
76686         * tests/unicase/test-ulc-casecmp2.sh: New file.
76687         * tests/unicase/test-ulc-casecmp.c: New file.
76689         New module 'unicase/ulc-casecmp'.
76690         * lib/unicase.h (ulc_casecmp): New declaration.
76691         * lib/unicase/ulc-casecmp.c: New file.
76692         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
76693         'const SRC_UNIT *'.
76694         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
76695         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
76696         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
76697         * modules/unicase/ulc-casecmp: New file.
76699         Tests for module 'unicase/u32-is-cased'.
76700         * modules/unicase/u32-is-cased-tests: New file.
76701         * tests/unicase/test-u32-is-cased.c: New file.
76703         Tests for module 'unicase/u16-is-cased'.
76704         * modules/unicase/u16-is-cased-tests: New file.
76705         * tests/unicase/test-u16-is-cased.c: New file.
76707         Tests for module 'unicase/u8-is-cased'.
76708         * modules/unicase/u8-is-cased-tests: New file.
76709         * tests/unicase/test-u8-is-cased.c: New file.
76710         * tests/unicase/test-is-cased.h: New file.
76712         New module 'unicase/u32-is-cased'.
76713         * lib/unicase/u32-is-cased.c: New file.
76714         * modules/unicase/u32-is-cased: New file.
76716         New module 'unicase/u16-is-cased'.
76717         * lib/unicase/u16-is-cased.c: New file.
76718         * modules/unicase/u16-is-cased: New file.
76720         New module 'unicase/u8-is-cased'.
76721         * lib/unicase/u8-is-cased.c: New file.
76722         * lib/unicase/u-is-cased.h: New file.
76723         * modules/unicase/u8-is-cased: New file.
76725         Tests for module 'unicase/u32-is-casefolded'.
76726         * modules/unicase/u32-is-casefolded-tests: New file.
76727         * tests/unicase/test-u32-is-casefolded.c: New file.
76729         Tests for module 'unicase/u16-is-casefolded'.
76730         * modules/unicase/u16-is-casefolded-tests: New file.
76731         * tests/unicase/test-u16-is-casefolded.c: New file.
76733         Tests for module 'unicase/u8-is-casefolded'.
76734         * modules/unicase/u8-is-casefolded-tests: New file.
76735         * tests/unicase/test-u8-is-casefolded.c: New file.
76736         * tests/unicase/test-is-casefolded.h: New file.
76738         New module 'unicase/u32-is-casefolded'.
76739         * lib/unicase/u32-is-casefolded.c: New file.
76740         * modules/unicase/u32-is-casefolded: New file.
76742         New module 'unicase/u16-is-casefolded'.
76743         * lib/unicase/u16-is-casefolded.c: New file.
76744         * modules/unicase/u16-is-casefolded: New file.
76746         New module 'unicase/u8-is-casefolded'.
76747         * lib/unicase/u8-is-casefolded.c: New file.
76748         * modules/unicase/u8-is-casefolded: New file.
76750         Tests for module 'unicase/u32-is-titlecase'.
76751         * modules/unicase/u32-is-titlecase-tests: New file.
76752         * tests/unicase/test-u32-is-titlecase.c: New file.
76754         Tests for module 'unicase/u16-is-titlecase'.
76755         * modules/unicase/u16-is-titlecase-tests: New file.
76756         * tests/unicase/test-u16-is-titlecase.c: New file.
76758         Tests for module 'unicase/u8-is-titlecase'.
76759         * modules/unicase/u8-is-titlecase-tests: New file.
76760         * tests/unicase/test-u8-is-titlecase.c: New file.
76761         * tests/unicase/test-is-titlecase.h: New file.
76763         New module 'unicase/u32-is-titlecase'.
76764         * lib/unicase/u32-is-titlecase.c: New file.
76765         * modules/unicase/u32-is-titlecase: New file.
76767         New module 'unicase/u16-is-titlecase'.
76768         * lib/unicase/u16-is-titlecase.c: New file.
76769         * modules/unicase/u16-is-titlecase: New file.
76771         New module 'unicase/u8-is-titlecase'.
76772         * lib/unicase/u8-is-titlecase.c: New file.
76773         * modules/unicase/u8-is-titlecase: New file.
76775         Tests for module 'unicase/u32-is-lowercase'.
76776         * modules/unicase/u32-is-lowercase-tests: New file.
76777         * tests/unicase/test-u32-is-lowercase.c: New file.
76779         Tests for module 'unicase/u16-is-lowercase'.
76780         * modules/unicase/u16-is-lowercase-tests: New file.
76781         * tests/unicase/test-u16-is-lowercase.c: New file.
76783         Tests for module 'unicase/u8-is-lowercase'.
76784         * modules/unicase/u8-is-lowercase-tests: New file.
76785         * tests/unicase/test-u8-is-lowercase.c: New file.
76786         * tests/unicase/test-is-lowercase.h: New file.
76788         New module 'unicase/u32-is-lowercase'.
76789         * lib/unicase/u32-is-lowercase.c: New file.
76790         * modules/unicase/u32-is-lowercase: New file.
76792         New module 'unicase/u16-is-lowercase'.
76793         * lib/unicase/u16-is-lowercase.c: New file.
76794         * modules/unicase/u16-is-lowercase: New file.
76796         New module 'unicase/u8-is-lowercase'.
76797         * lib/unicase/u8-is-lowercase.c: New file.
76798         * modules/unicase/u8-is-lowercase: New file.
76800         Tests for module 'unicase/u32-is-uppercase'.
76801         * modules/unicase/u32-is-uppercase-tests: New file.
76802         * tests/unicase/test-u32-is-uppercase.c: New file.
76804         Tests for module 'unicase/u16-is-uppercase'.
76805         * modules/unicase/u16-is-uppercase-tests: New file.
76806         * tests/unicase/test-u16-is-uppercase.c: New file.
76808         Tests for module 'unicase/u8-is-uppercase'.
76809         * modules/unicase/u8-is-uppercase-tests: New file.
76810         * tests/unicase/test-u8-is-uppercase.c: New file.
76811         * tests/unicase/test-is-uppercase.h: New file.
76813         New module 'unicase/u32-is-uppercase'.
76814         * lib/unicase/u32-is-uppercase.c: New file.
76815         * modules/unicase/u32-is-uppercase: New file.
76817         New module 'unicase/u16-is-uppercase'.
76818         * lib/unicase/u16-is-uppercase.c: New file.
76819         * modules/unicase/u16-is-uppercase: New file.
76821         New module 'unicase/u8-is-uppercase'.
76822         * lib/unicase/u8-is-uppercase.c: New file.
76823         * modules/unicase/u8-is-uppercase: New file.
76825         New module 'unicase/u32-is-invariant'.
76826         * lib/unicase/u32-is-invariant.c: New file.
76827         * modules/unicase/u32-is-invariant: New file.
76829         New module 'unicase/u16-is-invariant'.
76830         * lib/unicase/u16-is-invariant.c: New file.
76831         * modules/unicase/u16-is-invariant: New file.
76833         New module 'unicase/u8-is-invariant'.
76834         * lib/unicase/u8-is-invariant.c: New file.
76835         * lib/unicase/invariant.h: New file.
76836         * lib/unicase/u-is-invariant.h: New file.
76837         * modules/unicase/u8-is-invariant: New file.
76839         Tests for module 'unicase/u32-casecoll'.
76840         * modules/unicase/u32-casecoll-tests: New file.
76841         * tests/unicase/test-u32-casecoll.c: New file.
76843         Tests for module 'unicase/u16-casecoll'.
76844         * modules/unicase/u16-casecoll-tests: New file.
76845         * tests/unicase/test-u16-casecoll.c: New file.
76847         Tests for module 'unicase/u8-casecoll'.
76848         * modules/unicase/u8-casecoll-tests: New file.
76849         * tests/unicase/test-u8-casecoll.c: New file.
76851         New module 'unicase/u32-casecoll'.
76852         * lib/unicase/u32-casecoll.c: New file.
76853         * modules/unicase/u32-casecoll: New file.
76855         New module 'unicase/u16-casecoll'.
76856         * lib/unicase/u16-casecoll.c: New file.
76857         * modules/unicase/u16-casecoll: New file.
76859         New module 'unicase/u8-casecoll'.
76860         * lib/unicase/u8-casecoll.c: New file.
76861         * lib/unicase/u-casecoll.h: New file.
76862         * modules/unicase/u8-casecoll: New file.
76864         New module 'unicase/u32-casexfrm'.
76865         * lib/unicase/u32-casexfrm.c: New file.
76866         * modules/unicase/u32-casexfrm: New file.
76868         New module 'unicase/u16-casexfrm'.
76869         * lib/unicase/u16-casexfrm.c: New file.
76870         * modules/unicase/u16-casexfrm: New file.
76872         New module 'unicase/u8-casexfrm'.
76873         * lib/unicase/u8-casexfrm.c: New file.
76874         * lib/unicase/u-casexfrm.h: New file.
76875         * modules/unicase/u8-casexfrm: New file.
76877         Tests for module 'unicase/u32-casecmp'.
76878         * modules/unicase/u32-casecmp-tests: New file.
76879         * tests/unicase/test-u32-casecmp.c: New file.
76881         Tests for module 'unicase/u16-casecmp'.
76882         * modules/unicase/u16-casecmp-tests: New file.
76883         * tests/unicase/test-u16-casecmp.c: New file.
76885         Tests for module 'unicase/u8-casecmp'.
76886         * modules/unicase/u8-casecmp-tests: New file.
76887         * tests/unicase/test-u8-casecmp.c: New file.
76888         * tests/unicase/test-casecmp.h: New file.
76890         New module 'unicase/u32-casecmp'.
76891         * lib/unicase/u32-casecmp.c: New file.
76892         * modules/unicase/u32-casecmp: New file.
76894         New module 'unicase/u16-casecmp'.
76895         * lib/unicase/u16-casecmp.c: New file.
76896         * modules/unicase/u16-casecmp: New file.
76898         New module 'unicase/u8-casecmp'.
76899         * lib/unicase/u8-casecmp.c: New file.
76900         * lib/unicase/u-casecmp.h: New file.
76901         * modules/unicase/u8-casecmp: New file.
76903         Tests for module 'unicase/u32-casefold'.
76904         * modules/unicase/u32-casefold-tests: New file.
76905         * tests/unicase/test-u32-casefold.c: New file.
76907         Tests for module 'unicase/u16-casefold'.
76908         * modules/unicase/u16-casefold-tests: New file.
76909         * tests/unicase/test-u16-casefold.c: New file.
76911         Tests for module 'unicase/u8-casefold'.
76912         * modules/unicase/u8-casefold-tests: New file.
76913         * tests/unicase/test-u8-casefold.c: New file.
76915         New module 'unicase/u32-casefold'.
76916         * lib/unicase/u32-casefold.c: New file.
76917         * modules/unicase/u32-casefold: New file.
76919         New module 'unicase/u16-casefold'.
76920         * lib/unicase/u16-casefold.c: New file.
76921         * modules/unicase/u16-casefold: New file.
76923         New module 'unicase/u8-casefold'.
76924         * lib/unicase/u8-casefold.c: New file.
76925         * lib/unicase/u-casefold.h: New file.
76926         * modules/unicase/u8-casefold: New file.
76928         New module 'unicase/tocasefold'.
76929         * lib/unicase/casefold.h: New file.
76930         * lib/unicase/tocasefold.c: New file.
76931         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
76932         * modules/unicase/tocasefold: New file.
76934         Tests for module 'unicase/u32-totitle'.
76935         * modules/unicase/u32-totitle-tests: New file.
76936         * tests/unicase/test-u32-totitle.c: New file.
76938         Tests for module 'unicase/u16-totitle'.
76939         * modules/unicase/u16-totitle-tests: New file.
76940         * tests/unicase/test-u16-totitle.c: New file.
76942         Tests for module 'unicase/u8-totitle'.
76943         * modules/unicase/u8-totitle-tests: New file.
76944         * tests/unicase/test-u8-totitle.c: New file.
76946         New module 'unicase/u32-totitle'.
76947         * lib/unicase/u32-totitle.c: New file.
76948         * modules/unicase/u32-totitle: New file.
76950         New module 'unicase/u16-totitle'.
76951         * lib/unicase/u16-totitle.c: New file.
76952         * modules/unicase/u16-totitle: New file.
76954         New module 'unicase/u8-totitle'.
76955         * lib/unicase/u8-totitle.c: New file.
76956         * lib/unicase/u-totitle.h: New file.
76957         * modules/unicase/u8-totitle: New file.
76959         Tests for module 'unicase/u32-tolower'.
76960         * modules/unicase/u32-tolower-tests: New file.
76961         * tests/unicase/test-u32-tolower.c: New file.
76963         Tests for module 'unicase/u16-tolower'.
76964         * modules/unicase/u16-tolower-tests: New file.
76965         * tests/unicase/test-u16-tolower.c: New file.
76967         Tests for module 'unicase/u8-tolower'.
76968         * modules/unicase/u8-tolower-tests: New file.
76969         * tests/unicase/test-u8-tolower.c: New file.
76971         New module 'unicase/u32-tolower'.
76972         * lib/unicase/u32-tolower.c: New file.
76973         * modules/unicase/u32-tolower: New file.
76975         New module 'unicase/u16-tolower'.
76976         * lib/unicase/u16-tolower.c: New file.
76977         * modules/unicase/u16-tolower: New file.
76979         New module 'unicase/u8-tolower'.
76980         * lib/unicase/u8-tolower.c: New file.
76981         * modules/unicase/u8-tolower: New file.
76983         Tests for module 'unicase/u32-toupper'.
76984         * modules/unicase/u32-toupper-tests: New file.
76985         * tests/unicase/test-u32-toupper.c: New file.
76987         Tests for module 'unicase/u16-toupper'.
76988         * modules/unicase/u16-toupper-tests: New file.
76989         * tests/unicase/test-u16-toupper.c: New file.
76991         Tests for module 'unicase/u8-toupper'.
76992         * modules/unicase/u8-toupper-tests: New file.
76993         * tests/unicase/test-u8-toupper.c: New file.
76995         New module 'unicase/u32-toupper'.
76996         * lib/unicase/u32-toupper.c: New file.
76997         * modules/unicase/u32-toupper: New file.
76999         New module 'unicase/u16-toupper'.
77000         * lib/unicase/u16-toupper.c: New file.
77001         * modules/unicase/u16-toupper: New file.
77003         New module 'unicase/u8-toupper'.
77004         * lib/unicase/u8-toupper.c: New file.
77005         * modules/unicase/u8-toupper: New file.
77007         New module 'unicase/u32-casemap'.
77008         * lib/unicase/u32-casemap.c: New file.
77009         * modules/unicase/u32-casemap: New file.
77011         New module 'unicase/u16-casemap'.
77012         * lib/unicase/u16-casemap.c: New file.
77013         * modules/unicase/u16-casemap: New file.
77015         New module 'unicase/u8-casemap'.
77016         * lib/unicase/unicasemap.h: New file.
77017         * lib/unicase/u8-casemap.c: New file.
77018         * lib/unicase/u-casemap.h: New file.
77019         * modules/unicase/u8-casemap: New file.
77021         New module 'unicase/special-casing'.
77022         * lib/unicase/special-casing.h: New file.
77023         * lib/unicase/special-casing.c: New file.
77024         * lib/unicase/special-casing-table.gperf: New file, generated by
77025         gen-uni-tables.c.
77026         * modules/unicase/special-casing: New file.
77028         Tests for module 'unicase/locale-language'.
77029         * modules/unicase/locale-language-tests: New file.
77030         * tests/unicase/test-locale-language.sh: New file.
77031         * tests/unicase/test-locale-language.c: New file.
77033         New module 'unicase/locale-language'.
77034         * lib/unicase/locale-language.c: New file.
77035         * lib/unicase/locale-languages.gperf: New file.
77036         * modules/unicase/locale-language: New file.
77038         Generate more tables for case conversion and case folding.
77039         * lib/gen-uni-tables.c (SCC_*): New enum items.
77040         (struct special_casing_rule): New type.
77041         (casing_rules, num_casing_rules, allocated_casing_rules): New
77042         variables.
77043         (add_casing_rule, fill_casing_rules): New functions.
77044         (struct casefold_rule): New type.
77045         (casefolding_rules, num_casefolding_rules,
77046         allocated_casefolding_rules): New variables.
77047         (fill_casefolding_rules): New function.
77048         (unicode_casefold): New variable.
77049         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
77050         sort_casing_rules, output_casing_rules): New functions.
77051         (main): Accept to more arguments: SpecialCasing.txt and
77052         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
77053         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
77054         Output mapping for casefolding.
77056         * lib/unicase.h: Include stdbool.h, uninorm.h.
77057         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
77058         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
77059         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
77060         arguments.
77061         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
77062         resultp arguments.
77063         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
77064         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
77065         resultp arguments.
77066         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
77067         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
77068         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
77069         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
77070         declarations.
77071         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
77073 2009-03-08  Bruno Haible  <bruno@clisp.org>
77075         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
77076         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
77077         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
77078         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
77080 2009-03-07  Bruno Haible  <bruno@clisp.org>
77082         Adjust u*_normcmp, u*_normcoll API.
77083         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
77084         u16_normcoll, u32_normcoll): Change failure conventions.
77085         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
77086         errno and return -1.
77087         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
77089 2009-03-07  Bruno Haible  <bruno@clisp.org>
77091         Tests for module 'uninorm/u32-normcoll'.
77092         * modules/uninorm/u32-normcoll-tests: New file.
77093         * tests/uninorm/test-u32-normcoll.c: New file.
77095         Tests for module 'uninorm/u16-normcoll'.
77096         * modules/uninorm/u16-normcoll-tests: New file.
77097         * tests/uninorm/test-u16-normcoll.c: New file.
77099         Tests for module 'uninorm/u8-normcoll'.
77100         * modules/uninorm/u8-normcoll-tests: New file.
77101         * tests/uninorm/test-u8-normcoll.c: New file.
77103 2009-03-07  Bruno Haible  <bruno@clisp.org>
77105         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
77106         tests/uninorm/test-u32-normcmp.c.
77107         * tests/uninorm/test-u32-normcmp.c: Include it.
77108         (test_nonascii): New function, extracted from main. Add some more
77109         tests.
77110         (main): Invoke test_ascii and test_nonascii.
77111         * modules/uninorm/u32-normcmp-tests (Files): Add
77112         tests/uninorm/test-u32-normcmp.h.
77113         (Depends-on): Remove uninorm/u32-normcmp.
77115         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
77116         tests/uninorm/test-u16-normcmp.c.
77117         * tests/uninorm/test-u16-normcmp.c: Include it.
77118         (test_nonascii): New function, extracted from main. Add some more
77119         tests.
77120         (main): Invoke test_ascii and test_nonascii.
77121         * modules/uninorm/u16-normcmp-tests (Files): Add
77122         tests/uninorm/test-u16-normcmp.h.
77123         (Depends-on): Remove uninorm/u16-normcmp.
77125         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
77126         tests/uninorm/test-u8-normcmp.c.
77127         * tests/uninorm/test-u8-normcmp.c: Include it.
77128         (test_nonascii): New function, extracted from main. Add some more
77129         tests.
77130         (main): Invoke test_ascii and test_nonascii.
77131         * modules/uninorm/u8-normcmp-tests (Files): Add
77132         tests/uninorm/test-u8-normcmp.h.
77133         (Depends-on): Remove uninorm/u8-normcmp.
77135 2009-03-07  Bruno Haible  <bruno@clisp.org>
77137         New module 'uninorm/u32-normcoll'.
77138         * lib/uninorm/u32-normcoll.c: New file.
77139         * modules/uninorm/u32-normcoll: New file.
77141         New module 'uninorm/u16-normcoll'.
77142         * lib/uninorm/u16-normcoll.c: New file.
77143         * modules/uninorm/u16-normcoll: New file.
77145         New module 'uninorm/u8-normcoll'.
77146         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
77147         declarations.
77148         * lib/uninorm/u8-normcoll.c: New file.
77149         * lib/uninorm/u-normcoll.h: New file.
77150         * modules/uninorm/u8-normcoll: New file.
77152         New module 'uninorm/u32-normxfrm'.
77153         * lib/uninorm/u32-normxfrm.c: New file.
77154         * modules/uninorm/u32-normxfrm: New file.
77156         New module 'uninorm/u16-normxfrm'.
77157         * lib/uninorm/u16-normxfrm.c: New file.
77158         * modules/uninorm/u16-normxfrm: New file.
77160         New module 'uninorm/u8-normxfrm'.
77161         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
77162         declarations.
77163         * lib/uninorm/u8-normxfrm.c: New file.
77164         * lib/uninorm/u-normxfrm.h: New file.
77165         * modules/uninorm/u8-normxfrm: New file.
77167 2009-03-07  Bruno Haible  <bruno@clisp.org>
77169         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
77170         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
77171         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
77173 2009-03-07  Bruno Haible  <bruno@clisp.org>
77175         New module 'memxfrm'.
77176         * lib/memxfrm.h: New file.
77177         * lib/memxfrm.c: New file.
77178         * modules/memxfrm: New file.
77180 2009-03-07  Bruno Haible  <bruno@clisp.org>
77182         New module 'memcmp2'.
77183         * lib/memcmp2.h: New file.
77184         * lib/memcmp2.c: New file.
77185         * modules/memcmp2: New file.
77187 2009-03-07  Bruno Haible  <bruno@clisp.org>
77189         Tests for module 'uninorm/decomposing-form'.
77190         * modules/uninorm/decomposing-form-tests: New file.
77191         * tests/uninorm/test-decomposing-form.c: New file.
77193         New module 'uninorm/decomposing-form'.
77194         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
77195         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
77196         Add 'decomposing_variant' field.
77197         * lib/uninorm/decomposing-form.c: New file.
77198         * lib/uninorm/nfc.c (uninorm_nfc): Update.
77199         * lib/uninorm/nfd.c (uninorm_nfd): Update.
77200         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
77201         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
77202         * modules/uninorm/decomposing-form: New file.
77203         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
77204         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
77206 2009-03-07  Bruno Haible  <bruno@clisp.org>
77208         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
77209         strings.
77211 2009-03-06  Bruno Haible  <bruno@clisp.org>
77213         Tests for module 'uninorm/u32-normcmp'.
77214         * tests/uninorm/test-u32-normcmp.c: New file.
77215         * modules/uninorm/u32-normcmp-tests: New file.
77217         Tests for module 'uninorm/u16-normcmp'.
77218         * tests/uninorm/test-u16-normcmp.c: New file.
77219         * modules/uninorm/u16-normcmp-tests: New file.
77221         Tests for module 'uninorm/u8-normcmp'.
77222         * tests/uninorm/test-u8-normcmp.c: New file.
77223         * modules/uninorm/u8-normcmp-tests: New file.
77225         New module 'uninorm/u32-normcmp'.
77226         * lib/uninorm/u32-normcmp.c: New file.
77227         * modules/uninorm/u32-normcmp: New file.
77229         New module 'uninorm/u16-normcmp'.
77230         * lib/uninorm/u16-normcmp.c: New file.
77231         * modules/uninorm/u16-normcmp: New file.
77233         New module 'uninorm/u8-normcmp'.
77234         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
77235         declarations.
77236         * lib/uninorm/u8-normcmp.c: New file.
77237         * lib/uninorm/u-normcmp.h: New file.
77238         * modules/uninorm/u8-normcmp: New file.
77240 2009-03-06  Bruno Haible  <bruno@clisp.org>
77242         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
77243         Reported by Eric Blake.
77245 2009-03-06  Eric Blake  <ebb9@byu.net>
77246             Bruno Haible  <bruno@clisp.org>
77248         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
77249         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
77250         condition.
77251         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
77252         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
77253         condition.
77254         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
77256 2009-03-06  Eric Blake  <ebb9@byu.net>
77258         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
77259         to avoid compiler warnings.
77260         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
77262 2009-03-05  Bruno Haible  <bruno@clisp.org>
77264         * tests/test-ftell.c (main): Disable test beyond end of file on
77265         FreeMiNT.
77266         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
77268 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
77270         * lib/filevercmp.c: Move hidden files up in ordering.
77271         * tests/test-filevercmp.c: Add tests for hidden files.
77273 2009-03-04  Bruno Haible  <bruno@clisp.org>
77275         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
77276         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
77277         AM_CFLAGS.
77278         Reported by Simon Josefsson.
77280 2009-03-03  Bruno Haible  <bruno@clisp.org>
77282         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
77283         Reported by Simon Josefsson.
77285         * doc/ld-version-script.texi: Update node reference.
77287 2009-03-03  Bruno Haible  <bruno@clisp.org>
77289         * modules/visibility (License): Change to 'unlimited'.
77290         Suggested by Simon Josefsson.
77292 2009-03-03  Jim Meyering  <meyering@redhat.com>
77294         unlinkdir: cannot_unlink_dir may modify process state
77295         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
77296         it's neither thread-safe nor appropriate for use in a library.
77298 2009-03-03  Eric Blake  <ebb9@byu.net>
77300         test-closein: silence test under Darwin
77301         * tests/test-closein.sh: Ignore stderr from cat, since we don't
77302         care if it dies from EPIPE or EBADF.
77304 2009-03-03  Bruno Haible  <bruno@clisp.org>
77306         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
77307         earlier.
77308         * doc/visibility.texi: Fix @node and @section.
77310 2009-03-03  Simon Josefsson  <simon@josefsson.org>
77312         * doc/gnulib.texi: Link to sections for ld version script and
77313         visibility.
77314         * doc/visibility.texi: Add @node and @section.
77315         * modules/ld-version-script: New module.
77316         * m4/ld-version-script.m4: New file.
77317         * doc/ld-version-script.texi: New file.
77319 2009-03-02  David Lutterkort  <lutter@redhat.com>
77321         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
77322         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
77324 2009-03-02  Bruno Haible  <bruno@clisp.org>
77326         * doc/visibility.texi: Mention libtool's -export-symbols option.
77328 2009-03-02  Jim Meyering  <meyering@redhat.com>
77330         announce-gen: new option: --no-print-checksums
77331         * build-aux/announce-gen (usage): Describe it.
77332         (print_checksums): Print a newline here, not in the [*] footnote.
77333         (main): Honor it.
77335 2009-03-01  Bruno Haible  <bruno@clisp.org>
77337         Use socklen_t in the native Windows replacements prototypes.
77338         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
77339         instead of 'int'.
77340         * lib/getsockopt.c (rpl_getsockopt): Likewise.
77341         * lib/setsockopt.c (rpl_setsockopt): Likewise.
77342         * modules/getsockopt (Depends-on): Add socklen.
77343         * modules/setsockopt (Depends-on): Add socklen.
77345 2009-03-01  Bruno Haible  <bruno@clisp.org>
77347         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
77348         least 4.2.
77350 2009-03-01  Eric Blake  <ebb9@byu.net>
77351             Bruno Haible  <bruno@clisp.org>
77353         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
77354         error messages.
77355         * lib/wait-process.c (wait_subprocess): Omit error message about
77356         deadly signal sent to the child of termsigp != NULL.
77358 2009-03-01  Eric Blake  <ebb9@byu.net>
77360         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
77362 2009-03-01  Bruno Haible  <bruno@clisp.org>
77364         Avoid a gcc warning.
77365         * tests/test-sched.c (b): Make global.
77366         Reported by Eric Blake.
77368 2009-01-19  Martin Lambers  <marlam@marlam.de>
77370         Provide POSIX semantics for socket timeout options on W32.
77371         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
77372         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
77373         * modules/setsockopt: Depend on sys_time module for struct timeval.
77374         * modules/getsockopt: Depend on sys_time module for struct timeval.
77376 2009-03-01  Simon Josefsson  <simon@josefsson.org>
77378         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
77379         __USE_GNU, for consistency with netdb.in.h.
77380         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
77382 2009-03-01  Bruno Haible  <bruno@clisp.org>
77384         More support for FreeMiNT.
77385         * lib/fseeko.c (rpl_fseeko): Complete last commit.
77386         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
77388 2009-03-01  Bruno Haible  <bruno@clisp.org>
77390         More support for FreeMiNT.
77391         * lib/fpurge.c (fpurge): Correct last commit.
77392         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
77394 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77396         Fix unportable awk script in vc-list-files.
77397         * build-aux/vc-list-files: In the replacement awk script, use
77398         substr with a second argument of 1, not zero.
77399         Report by Simon Josefsson.
77401 2009-02-28  Bruno Haible  <bruno@clisp.org>
77403         More support for FreeMiNT.
77404         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
77405         to FreeMiNT today.
77406         * lib/fwriting.c (fwriting): Likewise.
77407         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
77409 2009-02-28  Bruno Haible  <bruno@clisp.org>
77411         * tests/test-freadseek.c (main): Disable test beyond end of file on
77412         FreeMiNT.
77413         * tests/test-ftello.c (main): Likewise.
77414         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
77416 2009-02-28  Bruno Haible  <bruno@clisp.org>
77418         Add tentative support for FreeMiNT.
77419         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
77420         * lib/fpurge.c (fpurge): Likewise.
77421         * lib/freadable.c (freadable): Likewise.
77422         * lib/freading.c (freading): Likewise.
77423         * lib/freadptr.c (freadptr): Likewise.
77424         * lib/freadseek.c (freadptrinc): Likewise.
77425         * lib/fseeko.c (rpl_fseeko): Likewise.
77426         * lib/fseterr.c (fseterr): Likewise.
77427         * lib/fwritable.c (fwritable): Likewise.
77428         * lib/fwriting.c (fwriting): Likewise.
77429         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
77430         Hourihane.
77431         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
77433 2009-02-28  Bruno Haible  <bruno@clisp.org>
77435         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
77436         SIGCHLD.
77437         Reported by Jim Meyering.
77439 2009-02-28  Bruno Haible  <bruno@clisp.org>
77441         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
77442         Mention the results of these tests on various platforms.
77443         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
77444         order.
77445         * doc/posix-functions/printf.texi: Likewise.
77446         * doc/posix-functions/snprintf.texi: Likewise.
77447         * doc/posix-functions/sprintf.texi: Likewise.
77448         * doc/posix-functions/vfprintf.texi: Likewise.
77449         * doc/posix-functions/vprintf.texi: Likewise.
77450         * doc/posix-functions/vsnprintf.texi: Likewise.
77451         * doc/posix-functions/vsprintf.texi: Likewise.
77452         * doc/glibc-functions/obstack_printf.texi: Likewise.
77453         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
77455 2009-02-28  Bruno Haible  <bruno@clisp.org>
77457         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
77458         Reported by Loïc Minier <lool@dooz.org>.
77460 2009-02-27  Bruno Haible  <bruno@clisp.org>
77462         * gnulib-tool (func_import): Make the sed expression used to create the
77463         sed script for updating the .gitignore file POSIX compliant.
77464         Reported by Eric Blake.
77466 2009-02-27  Bruno Haible  <bruno@clisp.org>
77468         * gnulib-tool (sed): Don't alias as "sed --posix".
77469         Reported by Eric Blake.
77471 2009-02-27  Bruno Haible  <bruno@clisp.org>
77473         Avoid test link errors.
77474         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
77475         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
77476         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
77477         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
77478         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
77480 2009-02-27  Bruno Haible  <bruno@clisp.org>
77482         Avoid spurious "(cached)" in configure output.
77483         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
77484         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
77485         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
77486         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
77487         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
77488         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
77489         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
77490         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
77491         Reported by Eric Blake.
77493 2009-02-27  Eric Blake  <ebb9@byu.net>
77495         printf: fix regression in previous patch
77496         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
77498 2009-02-27  Bruno Haible  <bruno@clisp.org>
77500         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
77501         value.
77502         * lib/stdint.in.h: Likewise.
77503         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
77505 2009-02-27  Eric Blake  <ebb9@byu.net>
77507         doc: mention more functions added in cygwin 1.7.0
77508         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
77509         addition.
77510         * doc/posix-functions/open_wmemstream.texi: Likewise.
77511         * doc/posix-functions/wcsnlen.texi: Likewise.
77512         * doc/posix-functions/wcsnrtombs.texi: Likewise.
77513         * doc/posix-functions/wcstod.texi: Likewise.
77514         * doc/posix-functions/wcstof.texi: Likewise.
77515         * doc/posix-functions/wcstoimax.texi: Likewise.
77516         * doc/posix-functions/wcstok.texi: Likewise.
77517         * doc/posix-functions/wcstoumax.texi: Likewise.
77519         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
77520         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
77521         * doc/posix-functions/fprintf.texi: Update.
77522         * doc/posix-functions/printf.texi: Update.
77523         * doc/posix-functions/snprintf.texi: Update.
77524         * doc/posix-functions/sprintf.texi: Update.
77525         * doc/posix-functions/vfprintf.texi: Update.
77526         * doc/posix-functions/vprintf.texi: Update.
77527         * doc/posix-functions/vsnprintf.texi: Update.
77528         * doc/posix-functions/vsprintf.texi: Update.
77529         * doc/glibc-functions/obstack_printf.texi: Update.
77530         * doc/glibc-functions/obstack_vprintf.texi: Update.
77532 2009-02-26  Eric Blake  <ebb9@byu.net>
77534         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
77535         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
77536         compilation bug by using runtime conversion.
77537         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
77538         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
77539         * modules/ceill-tests (Files): Use nan.h.
77540         * modules/floorl-tests (Files): Likewise.
77541         * modules/frexpl-tests (Files): Likewise.
77542         * modules/isnanl-tests (Files): Likewise.
77543         * modules/ldexpl-tests (Files): Likewise.
77544         * modules/roundl-tests (Files): Likewise.
77545         * modules/truncl-tests (Files): Likewise.
77546         * tests/test-ceill.c (main): Use a working NaN.
77547         * tests/test-floorl.c (main): Likewise.
77548         * tests/test-frexpl.c (main): Likewise.
77549         * tests/test-isnan.c (test_long_double): Likewise.
77550         * tests/test-isnanl.h (main): Likewise.
77551         * tests/test-ldexpl.h (main): Likewise.
77552         * tests/test-roundl.h (main): Likewise.
77553         * tests/test-truncl.h (main): Likewise.
77554         See http://lists.gnu.org/r/bug-gnulib/2009-02/msg00190.html.
77556 2009-02-26  Eric Blake  <ebb9@byu.net>
77557             Bruno Haible  <bruno@clisp.org>
77559         Work around a *printf bug with %ls on Solaris.
77560         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
77561         precision is specified, sprintf stops converting the wide string
77562         argument when the number of bytes that have been produced by this
77563         conversion equals or exceeds the precision.
77564         * doc/posix-functions/fprintf.texi: Update.
77565         * doc/posix-functions/printf.texi: Update.
77566         * doc/posix-functions/snprintf.texi: Update.
77567         * doc/posix-functions/sprintf.texi: Update.
77568         * doc/posix-functions/vfprintf.texi: Update.
77569         * doc/posix-functions/vprintf.texi: Update.
77570         * doc/posix-functions/vsnprintf.texi: Update.
77571         * doc/posix-functions/vsprintf.texi: Update.
77572         * doc/glibc-functions/obstack_printf.texi: Update.
77573         * doc/glibc-functions/obstack_vprintf.texi: Update.
77575 2009-02-26  Eric Blake  <ebb9@byu.net>
77577         stdlib: favor compiler check of random.h
77578         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
77579         to avoid an ObjC random.h installed by Swarm.
77581 2009-02-26  Bruno Haible  <bruno@clisp.org>
77583         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
77584         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
77585         Reported by Gary V. Vaughan <gary@gnu.org>.
77587 2009-02-26  Bruno Haible  <bruno@clisp.org>
77589         Fix *printf behaviour regarding the %ls directive.
77590         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
77591         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
77592         NEED_PRINTF_DIRECTIVE_LS.
77593         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
77594         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
77595         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
77596         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
77597         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
77598         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
77599         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
77600         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
77601         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
77602         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
77603         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
77604         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
77605         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
77606         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
77607         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
77608         * doc/posix-functions/fprintf.texi: Update.
77609         * doc/posix-functions/printf.texi: Update.
77610         * doc/posix-functions/snprintf.texi: Update.
77611         * doc/posix-functions/sprintf.texi: Update.
77612         * doc/posix-functions/vfprintf.texi: Update.
77613         * doc/posix-functions/vprintf.texi: Update.
77614         * doc/posix-functions/vsnprintf.texi: Update.
77615         * doc/posix-functions/vsprintf.texi: Update.
77616         * doc/glibc-functions/obstack_printf.texi: Update.
77617         * doc/glibc-functions/obstack_vprintf.texi: Update.
77618         Reported by Eric Blake.
77620 2009-02-25  Bruno Haible  <bruno@clisp.org>
77622         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
77623         with known value.
77624         Reported by Gary V. Vaughan <gary@gnu.org>.
77626 2009-02-25  Bruno Haible  <bruno@clisp.org>
77628         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
77629         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
77630         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
77631         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
77632         Reported by Gary V. Vaughan <gary@gnu.org>.
77634 2009-02-25  Bruno Haible  <bruno@clisp.org>
77636         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
77637         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
77638         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
77639         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
77640         Reported by Gary V. Vaughan <gary@gnu.org>.
77642 2009-02-25  Eric Blake  <ebb9@byu.net>
77644         tests: skip fseek/ftell tests if ungetc is broken
77645         * m4/ungetc.m4: New file.
77646         * modules/fseek-tests: Split test, so ungetc dependency is
77647         separate from rest of test.
77648         * modules/fseeko-tests: Likewise.
77649         * modules/ftell-tests: Likewise.
77650         * modules/ftello-tests: Likewise.
77651         * tests/test-fseek.c (main): Isolate ungetc dependency.
77652         * tests/test-fseeko.c (main): Likewise.
77653         * tests/test-ftell.c (main): Likewise.
77654         * tests/test-ftello.c (main): Likewise.
77655         * tests/test-fseek2.sh: New file.
77656         * tests/test-fseeko2.sh: Likewise.
77657         * tests/test-ftell2.sh: Likewise.
77658         * tests/test-ftello2.sh: Likewise.
77660 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
77662         test-getaddrinfo: fix usage of skip return code 77
77663         * tests/test-gettaddrinfo.c: Return skip code 77 only
77664         for first occurrence of skip (4x77 is not 77)
77666 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
77668         strtod: avoid C99 decl-after-statement
77669         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
77671 2009-02-24  Eric Blake  <ebb9@byu.net>
77673         strtod: detect HP-UX 11.31 bug
77674         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
77675         Reported by Gary V. Vaughan.
77677 2009-02-23  Bruno Haible  <bruno@clisp.org>
77679         Fix invalid read past end of memory block.
77680         * lib/vasnprintf.c (DCHAR_SET): Define.
77681         (local_wcslen): Define only when needed.
77682         (local_strnlen, local_wcsnlen): New functions.
77683         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
77684         directives that involve a conversion ourselves.
77685         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
77686         wcsnlen, mbrtowc, wcrtomb.
77687         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
77688         * tests/test-vasprintf-posix.c (test_function): Likewise.
77689         * tests/test-snprintf-posix.h (test_function): Likewise.
77690         * tests/test-sprintf-posix.h (test_function): Likewise.
77691         Reported by Ben Pfaff <blp@cs.stanford.edu>.
77693 2009-02-22  Bruno Haible  <bruno@clisp.org>
77695         Implement new clarified decomposition of Hangul syllables.
77696         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
77697         of type LTV, return only a pairwise decomposition.
77698         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
77699         Likewise.
77700         * tests/uninorm/test-decomposition.c (main): Updated expected result.
77701         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
77702         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
77704 2009-02-22  Bruno Haible  <bruno@clisp.org>
77706         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
77707         zero-length results and shrink excess allocated memory.
77708         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
77709         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
77710         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
77711         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
77712         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
77713         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
77714         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
77715         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
77716         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
77717         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
77718         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
77719         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
77721 2009-02-21  Bruno Haible  <bruno@clisp.org>
77723         * doc/gnulib.texi: Include safe-alloc.texi earlier.
77724         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
77725         spaces after a period. Put a space between a macro name and its
77726         argument list. Trivial rewordings.
77727         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
77728         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
77729         (main): Return 0 explicitly.
77731 2009-02-21  Bruno Haible  <bruno@clisp.org>
77733         Tests for module 'uninorm/filter'.
77734         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
77735         * modules/uninorm/filter-tests: New file.
77737         New module 'uninorm/filter'.
77738         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
77739         uninorm_filter_flush, uninorm_filter_free): New declarations.
77740         * lib/uninorm/uninorm-filter.c: New file.
77741         * modules/uninorm/filter: New file.
77743 2009-02-21  Bruno Haible  <bruno@clisp.org>
77745         Tests for module 'uninorm/nfkc'.
77746         * tests/uninorm/test-nfkc.c: New file.
77747         * tests/uninorm/test-u8-nfkc.c: New file.
77748         * tests/uninorm/test-u16-nfkc.c: New file.
77749         * tests/uninorm/test-u32-nfkc.c: New file.
77750         * tests/uninorm/test-u32-nfkc-big.sh: New file.
77751         * tests/uninorm/test-u32-nfkc-big.c: New file.
77752         * modules/uninorm/nfkc-tests: New file.
77754         New module 'uninorm/nfkc'.
77755         * lib/uninorm/nfkc.c: New file.
77756         * modules/uninorm/nfkc: New file.
77758         Tests for module 'uninorm/nfkd'.
77759         * tests/uninorm/test-nfkd.c: New file.
77760         * tests/uninorm/test-u8-nfkd.c: New file.
77761         * tests/uninorm/test-u16-nfkd.c: New file.
77762         * tests/uninorm/test-u32-nfkd.c: New file.
77763         * tests/uninorm/test-u32-nfkd-big.sh: New file.
77764         * tests/uninorm/test-u32-nfkd-big.c: New file.
77765         * modules/uninorm/nfkd-tests: New file.
77767         New module 'uninorm/nfkd'.
77768         * lib/uninorm/nfkd.c: New file.
77769         * modules/uninorm/nfkd: New file.
77771         Tests for module 'uninorm/nfc'.
77772         * tests/uninorm/test-nfc.c: New file.
77773         * tests/uninorm/test-u8-nfc.c: New file.
77774         * tests/uninorm/test-u16-nfc.c: New file.
77775         * tests/uninorm/test-u32-nfc.c: New file.
77776         * tests/uninorm/test-u32-nfc-big.sh: New file.
77777         * tests/uninorm/test-u32-nfc-big.c: New file.
77778         * modules/uninorm/nfc-tests: New file.
77780         New module 'uninorm/nfc'.
77781         * lib/uninorm/nfc.c: New file.
77782         * modules/uninorm/nfc: New file.
77784         Tests for module 'uninorm/nfd'.
77785         * tests/uninorm/test-nfd.c: New file.
77786         * tests/uninorm/test-u8-nfd.c: New file.
77787         * tests/uninorm/test-u16-nfd.c: New file.
77788         * tests/uninorm/test-u32-nfd.c: New file.
77789         * tests/uninorm/test-u32-nfd-big.sh: New file.
77790         * tests/uninorm/test-u32-nfd-big.c: New file.
77791         * tests/uninorm/test-u32-normalize-big.h: New file.
77792         * tests/uninorm/test-u32-normalize-big.c: New file.
77793         * tests/uninorm/NormalizationTest.txt: New file, created from
77794         Unicode 5.1.0 NormalizationTest.txt.
77795         * modules/uninorm/nfd-tests: New file.
77797         New module 'uninorm/nfd'.
77798         * lib/uninorm/nfd.c: New file.
77799         * modules/uninorm/nfd: New file.
77801         New module 'uninorm/u32-normalize'.
77802         * lib/uninorm/u32-normalize.c: New file.
77803         * modules/uninorm/u32-normalize: New file.
77805         New module 'uninorm/u16-normalize'.
77806         * lib/uninorm/u16-normalize.c: New file.
77807         * modules/uninorm/u16-normalize: New file.
77809         New module 'uninorm/u8-normalize'.
77810         * lib/uninorm/u8-normalize.c: New file.
77811         * lib/uninorm/normalize-internal.h: New file.
77812         * lib/uninorm/u-normalize-internal.h: New file.
77813         * modules/uninorm/u8-normalize: New file.
77815         New module 'uninorm/decompose-internal'.
77816         * lib/uninorm/decompose-internal.c: New file.
77817         * modules/uninorm/decompose-internal: New file.
77819         Tests for module 'uninorm/composition'.
77820         * tests/uninorm/test-composition.c: New file.
77821         * modules/uninorm/composition-tests: New file.
77823         New module 'uninorm/composition'.
77824         * lib/uninorm/composition.c: New file.
77825         * lib/uninorm/composition-table.gperf: New file, generated by
77826         gen-uni-tables.
77827         * modules/uninorm/composition: New file.
77829         Tests for module 'uninorm/compat-decomposition'.
77830         * tests/uninorm/test-compat-decomposition.c: New file.
77831         * modules/uninorm/compat-decomposition-tests: New file.
77833         New module 'uninorm/compat-decomposition'.
77834         * lib/uninorm/decompose-internal.h: New file.
77835         * lib/uninorm/compat-decomposition.c: New file.
77836         * modules/uninorm/compat-decomposition: New file.
77838         Tests for module 'uninorm/canonical-decomposition'.
77839         * tests/uninorm/test-canonical-decomposition.c: New file.
77840         * modules/uninorm/canonical-decomposition-tests: New file.
77842         New module 'uninorm/canonical-decomposition'.
77843         * lib/uninorm/canonical-decomposition.c: New file.
77844         * modules/uninorm/canonical-decomposition: New file.
77846         Tests for module 'uninorm/decomposition'.
77847         * tests/uninorm/test-decomposition.c: New file.
77848         * modules/uninorm/decomposition-tests: New file.
77850         New module 'uninorm/decomposition'.
77851         * lib/uninorm/decomposition.c: New file.
77852         * modules/uninorm/decomposition: New file.
77854         New module 'uninorm/decomposition-table'.
77855         * lib/uninorm/decomposition-table.h: New file.
77856         * lib/uninorm/decomposition-table.c: New file.
77857         * lib/uninorm/decomposition-table1.h: New file, generated by
77858         gen-uni-tables.
77859         * lib/uninorm/decomposition-table2.h: New file, generated by
77860         gen-uni-tables.
77861         * modules/uninorm/decomposition-table: New file.
77863         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
77864         (UC_DECOMP_*): New enumeration items.
77865         (get_decomposition): New function.
77866         (struct decomp_table): New type.
77867         (output_decomposition, output_decomposition_tables): New functions.
77868         (unicode_composition_exclusions): New variable.
77869         (fill_composition_exclusions, debug_output_composition_tables): New
77870         functions.
77871         (main): Accept one more argument. Invoke fill_composition_exclusions.
77872         Output decomposition and composition tables.
77874         New module 'uninorm/base'.
77875         * lib/uninorm.h: New file.
77876         * lib/unictype.h: Update comment.
77877         * modules/uninorm/base: New file.
77879 2009-02-21  David Lutterkort  <lutter@redhat.com>
77881         Tests for module 'safe-alloc'.
77882         * tests/test-safe-alloc.c: New file.
77883         * modules/safe-alloc-tests: New file.
77885         New module 'safe-alloc'.
77886         * lib/safe-alloc.h: New file.
77887         * lib/safe-alloc.c: New file.
77888         * m4/safe-alloc.m4: New file.
77889         * modules/safe-alloc: New file.
77890         * doc/safe-alloc.texi: New file.
77891         * doc/gnulib.texi: Include it.
77892         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
77893         safe-alloc.
77895 2009-02-18  Bruno Haible  <bruno@clisp.org>
77897         Fix link error on non-glibc systems.
77898         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
77899         variable.
77900         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
77902 2009-02-18  Jim Meyering  <meyering@redhat.com>
77904         fts: avoid used-uninitialized error due to recent change
77905         * lib/fts.c (fts_read): Guard uses of the new member,
77906         parent->fts_n_dirs_remaining, since it's not relevant for
77907         the parent of a directory specified on the command-line.
77909 2009-02-17  James Youngman  <jay@gnu.org>
77910             Bruno Haible  <bruno@clisp.org>
77912         * m4/include_next.m4: Reformulate comment.
77914 2009-02-16  Jim Meyering  <meyering@redhat.com>
77916         fts: add #if guards so that the fts_lgpl module still builds
77917         * lib/fts.c: Guard just-added hash-table-using parts with
77918         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
77919         Reported by Simon Josefsson.
77921 2009-02-15  Bruno Haible  <bruno@clisp.org>
77923         * modules/array-mergesort-tests: New file.
77924         * tests/test-array-mergesort.c: New file.
77926         New module 'array-mergesort'.
77927         * modules/array-mergesort: New file.
77928         * lib/array-mergesort.h: New file.
77930 2009-02-15  Bruno Haible  <bruno@clisp.org>
77932         Fix 2009-02-07 commit.
77933         * lib/gen-uni-tables.c (output_predicate, output_category,
77934         output_combclass, output_bidi_category, output_decimal_digit,
77935         output_digit, output_numeric, output_mirror, output_scripts,
77936         output_ident_category, output_simple_mapping): Fix format directives.
77937         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
77939 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
77941         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
77942         fixes are available from IBM.
77944 2009-02-13  Jim Meyering  <meyering@redhat.com>
77946         fts: arrange not to stat non-directories in more cases
77947         This makes GNU find (when it doesn't need to stat each file)
77948         *much* more efficient at traversing reiserfs file systems.
77949         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
77950         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
77951         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
77952         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
77953         (leaf_optimization_applies): New function.
77954         (LCO_hash, LCO_compare): New helper functions.
77955         (link_count_optimize_ok): New function.
77956         (fts_stat): Initialize new member (if dir).
77957         (fts_read): Decrement parent's fts_n_dirs_remaining count if
77958         we've just stat'ed a directory.  Skip the stat call when possible.
77959         ---
77960         Note this AFS-related exchange:
77961         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
77962         and note find's pioctl call in find/fstype.c.
77963         But that is necessary only if you want to enable the
77964         optimization for AFS, and for now, I don't.
77966         fts: move a function definition "up" (no semantic change)
77967         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
77968         "up" to precede upcoming use of a related function.
77970 2009-02-11  Jim Meyering  <meyering@redhat.com>
77972         fts: correct internal computation of nlinks (optimization-related)
77973         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
77974         whether the current entry is a directory, so don't test it.
77976 2009-02-10  Bruno Haible  <bruno@clisp.org>
77978         Tests for module 'uniwbrk/ulc-wordbreaks'.
77979         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
77980         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
77981         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
77983         Tests for module 'uniwbrk/u32-wordbreaks'.
77984         * modules/uniwbrk/u32-wordbreaks-tests: New file.
77985         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
77987         Tests for module 'uniwbrk/u16-wordbreaks'.
77988         * modules/uniwbrk/u16-wordbreaks-tests: New file.
77989         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
77991         Tests for module 'uniwbrk/u8-wordbreaks'.
77992         * modules/uniwbrk/u8-wordbreaks-tests: New file.
77993         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
77995 2009-02-10  Bruno Haible  <bruno@clisp.org>
77997         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
77998         property.
77999         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
78000         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
78001         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
78003 2009-02-10  Simon Josefsson  <simon@josefsson.org>
78005         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
78006         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
78008 2009-02-10  Bruno Haible  <bruno@clisp.org>
78010         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
78011         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
78012         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
78013         * lib/unilbrk/u8-possible-linebreaks.c: Update.
78014         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
78015         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
78017 2009-02-09  Simon Josefsson  <simon@josefsson.org>
78019         * lib/sockets.h (gl_fd_to_handle): New function.
78021         * tests/test-sockets.c: Call gl_fd_to_handle.
78023 2009-02-09  Bruno Haible  <bruno@clisp.org>
78025         * doc/havelib.texi: Document the conventions on bi-arch systems.
78027 2009-02-08  Bruno Haible  <bruno@clisp.org>
78029         Document the AC_LIB_LINKFLAGS macro.
78030         * doc/havelib.texi: New file, mostly written on 2005-05-24.
78031         * doc/gnulib.texi: Include it.
78033 2009-02-08  Bruno Haible  <bruno@clisp.org>
78035         Fix wrong order of sections, compared to TOC.
78036         * doc/gnulib.texi: Include relocatable-maint.texi after the
78037         "Regular expressions" node, not before.
78039 2009-02-08  Bruno Haible  <bruno@clisp.org>
78041         Tests for module 'unicase/totitle'.
78042         * modules/unicase/totitle-tests: New file.
78044         Tests for module 'unicase/tolower'.
78045         * modules/unicase/tolower-tests: New file.
78047         Tests for module 'unicase/toupper'.
78048         * modules/unicase/toupper-tests: New file.
78049         * tests/unicase/test-mapping-part1.h: New file.
78050         * tests/unicase/test-mapping-part2.h: New file.
78052         New module 'unicase/totitle'.
78053         * modules/unicase/totitle: New file.
78054         * lib/unicase/totitle.c: New file.
78056         New module 'unicase/tolower'.
78057         * modules/unicase/tolower: New file.
78058         * lib/unicase/tolower.c: New file.
78060         New module 'unicase/toupper'.
78061         * modules/unicase/toupper: New file.
78062         * lib/unicase/toupper.c: New file.
78063         * lib/unicase/simple-mapping.h: New file.
78065         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
78066         (mapping_table): New structure.
78067         (output_simple_mapping): New function.
78068         (main): Invoke output_simple_mapping_test and output_simple_mapping.
78069         * modules/gen-uni-tables (Description): Update.
78070         * lib/unicase/toupper.h: New file, automatically generated by
78071         gen-uni-tables.
78072         * lib/unicase/tolower.h: New file, automatically generated by
78073         gen-uni-tables.
78074         * lib/unicase/totitle.h: New file, automatically generated by
78075         gen-uni-tables.
78076         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
78077         gen-uni-tables.
78078         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
78079         gen-uni-tables.
78080         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
78081         gen-uni-tables.
78083         New module 'unicase/base'.
78084         * modules/unicase/base: New file.
78085         * lib/unicase.h: New file.
78087 2009-02-08  Bruno Haible  <bruno@clisp.org>
78089         New module 'uniwbrk/ulc-wordbreaks'.
78090         * modules/uniwbrk/ulc-wordbreaks: New file.
78091         * lib/uniwbrk/ulc-wordbreaks.c: New file.
78093         New module 'uniwbrk/u32-wordbreaks'.
78094         * modules/uniwbrk/u32-wordbreaks: New file.
78095         * lib/uniwbrk/u32-wordbreaks.c: New file.
78097         New module 'uniwbrk/u16-wordbreaks'.
78098         * modules/uniwbrk/u16-wordbreaks: New file.
78099         * lib/uniwbrk/u16-wordbreaks.c: New file.
78101         New module 'uniwbrk/u8-wordbreaks'.
78102         * modules/uniwbrk/u8-wordbreaks: New file.
78103         * lib/uniwbrk/u8-wordbreaks.c: New file.
78104         * lib/uniwbrk/u-wordbreaks.h: New file.
78106         New module 'uniwbrk/table'.
78107         * modules/uniwbrk/table: New file.
78108         * lib/uniwbrk/wbrktable.h: New file.
78109         * lib/uniwbrk/wbrktable.c: New file.
78111         New module 'uniwbrk/wordbreak-property'.
78112         * modules/uniwbrk/wordbreak-property: New file.
78113         * lib/uniwbrk/wordbreak-property.c: New file.
78115         * lib/gen-uni-tables.c (WBP_*): New enum items.
78116         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
78117         (unicode_org_wbp): New variable.
78118         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
78119         New functions.
78120         (wbp_table): New structure.
78121         (output_wbp, output_wbrk_tables): New functions.
78122         (main): Accept additional argument. Invoke fill_org_wbp,
78123         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
78124         output_wbrk_tables.
78125         * modules/gen-uni-tables (Description): Update.
78126         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
78127         gen-uni-tables.
78129         New module 'uniwbrk/base'.
78130         * modules/uniwbrk/base: New file.
78131         * lib/uniwbrk.h: New file.
78133 2009-02-08  Bruno Haible  <bruno@clisp.org>
78135         Update to Unicode 5.1.0.
78136         * lib/gen-uni-tables.c (is_property_alphabetic): Include
78137         U+2185..U+2188.
78138         (is_property_default_ignorable_code_point): Don't include characters
78139         of category Cc or Cs and not-a-characters.
78140         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
78141         U+0D79, U+109E, U+109F, U+A60C.
78142         * lib/unictype/bidi_of.h: Regenerated.
78143         * lib/unictype/blocks.h: Regenerated.
78144         * lib/unictype/categ_C.h: Regenerated.
78145         * lib/unictype/categ_Cf.h: Regenerated.
78146         * lib/unictype/categ_Cn.h: Regenerated.
78147         * lib/unictype/categ_L.h: Regenerated.
78148         * lib/unictype/categ_Ll.h: Regenerated.
78149         * lib/unictype/categ_Lm.h: Regenerated.
78150         * lib/unictype/categ_Lo.h: Regenerated.
78151         * lib/unictype/categ_Lu.h: Regenerated.
78152         * lib/unictype/categ_M.h: Regenerated.
78153         * lib/unictype/categ_Mc.h: Regenerated.
78154         * lib/unictype/categ_Me.h: Regenerated.
78155         * lib/unictype/categ_Mn.h: Regenerated.
78156         * lib/unictype/categ_N.h: Regenerated.
78157         * lib/unictype/categ_Nd.h: Regenerated.
78158         * lib/unictype/categ_Nl.h: Regenerated.
78159         * lib/unictype/categ_No.h: Regenerated.
78160         * lib/unictype/categ_P.h: Regenerated.
78161         * lib/unictype/categ_Pd.h: Regenerated.
78162         * lib/unictype/categ_Pe.h: Regenerated.
78163         * lib/unictype/categ_Pf.h: Regenerated.
78164         * lib/unictype/categ_Pi.h: Regenerated.
78165         * lib/unictype/categ_Po.h: Regenerated.
78166         * lib/unictype/categ_Ps.h: Regenerated.
78167         * lib/unictype/categ_S.h: Regenerated.
78168         * lib/unictype/categ_Sk.h: Regenerated.
78169         * lib/unictype/categ_Sm.h: Regenerated.
78170         * lib/unictype/categ_So.h: Regenerated.
78171         * lib/unictype/categ_of.h: Regenerated.
78172         * lib/unictype/combining.h: Regenerated.
78173         * lib/unictype/ctype_alnum.h: Regenerated.
78174         * lib/unictype/ctype_alpha.h: Regenerated.
78175         * lib/unictype/ctype_graph.h: Regenerated.
78176         * lib/unictype/ctype_lower.h: Regenerated.
78177         * lib/unictype/ctype_print.h: Regenerated.
78178         * lib/unictype/ctype_punct.h: Regenerated.
78179         * lib/unictype/ctype_upper.h: Regenerated.
78180         * lib/unictype/decdigit.h: Regenerated.
78181         * lib/unictype/digit.h: Regenerated.
78182         * lib/unictype/mirror.h: Regenerated.
78183         * lib/unictype/numeric.h: Regenerated.
78184         * lib/unictype/pr_alphabetic.h: Regenerated.
78185         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
78186         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
78187         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
78188         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
78189         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
78190         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
78191         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
78192         * lib/unictype/pr_combining.h: Regenerated.
78193         * lib/unictype/pr_dash.h: Regenerated.
78194         * lib/unictype/pr_decimal_digit.h: Regenerated.
78195         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
78196         * lib/unictype/pr_deprecated.h: Regenerated.
78197         * lib/unictype/pr_diacritic.h: Regenerated.
78198         * lib/unictype/pr_extender.h: Regenerated.
78199         * lib/unictype/pr_format_control.h: Regenerated.
78200         * lib/unictype/pr_grapheme_base.h: Regenerated.
78201         * lib/unictype/pr_grapheme_extend.h: Regenerated.
78202         * lib/unictype/pr_grapheme_link.h: Regenerated.
78203         * lib/unictype/pr_id_continue.h: Regenerated.
78204         * lib/unictype/pr_id_start.h: Regenerated.
78205         * lib/unictype/pr_ideographic.h: Regenerated.
78206         * lib/unictype/pr_ignorable_control.h: Regenerated.
78207         * lib/unictype/pr_lowercase.h: Regenerated.
78208         * lib/unictype/pr_math.h: Regenerated.
78209         * lib/unictype/pr_numeric.h: Regenerated.
78210         * lib/unictype/pr_other_alphabetic.h: Regenerated.
78211         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
78212         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
78213         * lib/unictype/pr_other_id_continue.h: Regenerated.
78214         * lib/unictype/pr_other_lowercase.h: Regenerated.
78215         * lib/unictype/pr_other_math.h: Regenerated.
78216         * lib/unictype/pr_punctuation.h: Regenerated.
78217         * lib/unictype/pr_sentence_terminal.h: Regenerated.
78218         * lib/unictype/pr_soft_dotted.h: Regenerated.
78219         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
78220         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
78221         * lib/unictype/pr_unified_ideograph.h: Regenerated.
78222         * lib/unictype/pr_uppercase.h: Regenerated.
78223         * lib/unictype/pr_xid_continue.h: Regenerated.
78224         * lib/unictype/pr_xid_start.h: Regenerated.
78225         * lib/unictype/pr_zero_width.h: Regenerated.
78226         * lib/unictype/scripts.h: Regenerated.
78227         * lib/unictype/scripts_byname.gperf: Regenerated.
78228         * lib/unictype/sy_java_ident.h: Regenerated.
78229         * lib/unilbrk/lbrkprop1.h: Regenerated.
78230         * lib/unilbrk/lbrkprop2.h: Regenerated.
78231         * tests/unictype/test-categ_C.c: Regenerated.
78232         * tests/unictype/test-categ_Cf.c: Regenerated.
78233         * tests/unictype/test-categ_Cn.c: Regenerated.
78234         * tests/unictype/test-categ_L.c: Regenerated.
78235         * tests/unictype/test-categ_Ll.c: Regenerated.
78236         * tests/unictype/test-categ_Lm.c: Regenerated.
78237         * tests/unictype/test-categ_Lo.c: Regenerated.
78238         * tests/unictype/test-categ_Lu.c: Regenerated.
78239         * tests/unictype/test-categ_M.c: Regenerated.
78240         * tests/unictype/test-categ_Mc.c: Regenerated.
78241         * tests/unictype/test-categ_Me.c: Regenerated.
78242         * tests/unictype/test-categ_Mn.c: Regenerated.
78243         * tests/unictype/test-categ_N.c: Regenerated.
78244         * tests/unictype/test-categ_Nd.c: Regenerated.
78245         * tests/unictype/test-categ_Nl.c: Regenerated.
78246         * tests/unictype/test-categ_No.c: Regenerated.
78247         * tests/unictype/test-categ_P.c: Regenerated.
78248         * tests/unictype/test-categ_Pd.c: Regenerated.
78249         * tests/unictype/test-categ_Pe.c: Regenerated.
78250         * tests/unictype/test-categ_Pf.c: Regenerated.
78251         * tests/unictype/test-categ_Pi.c: Regenerated.
78252         * tests/unictype/test-categ_Po.c: Regenerated.
78253         * tests/unictype/test-categ_Ps.c: Regenerated.
78254         * tests/unictype/test-categ_S.c: Regenerated.
78255         * tests/unictype/test-categ_Sk.c: Regenerated.
78256         * tests/unictype/test-categ_Sm.c: Regenerated.
78257         * tests/unictype/test-categ_So.c: Regenerated.
78258         * tests/unictype/test-ctype_alnum.c: Regenerated.
78259         * tests/unictype/test-ctype_alpha.c: Regenerated.
78260         * tests/unictype/test-ctype_graph.c: Regenerated.
78261         * tests/unictype/test-ctype_lower.c: Regenerated.
78262         * tests/unictype/test-ctype_print.c: Regenerated.
78263         * tests/unictype/test-ctype_punct.c: Regenerated.
78264         * tests/unictype/test-ctype_upper.c: Regenerated.
78265         * tests/unictype/test-decdigit.h: Regenerated.
78266         * tests/unictype/test-digit.h: Regenerated.
78267         * tests/unictype/test-numeric.h: Regenerated.
78268         * tests/unictype/test-pr_alphabetic.c: Regenerated.
78269         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
78270         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
78271         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
78272         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
78273         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
78274         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
78275         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
78276         * tests/unictype/test-pr_combining.c: Regenerated.
78277         * tests/unictype/test-pr_dash.c: Regenerated.
78278         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
78279         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
78280         * tests/unictype/test-pr_deprecated.c: Regenerated.
78281         * tests/unictype/test-pr_diacritic.c: Regenerated.
78282         * tests/unictype/test-pr_extender.c: Regenerated.
78283         * tests/unictype/test-pr_format_control.c: Regenerated.
78284         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
78285         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
78286         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
78287         * tests/unictype/test-pr_id_continue.c: Regenerated.
78288         * tests/unictype/test-pr_id_start.c: Regenerated.
78289         * tests/unictype/test-pr_ideographic.c: Regenerated.
78290         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
78291         * tests/unictype/test-pr_lowercase.c: Regenerated.
78292         * tests/unictype/test-pr_math.c: Regenerated.
78293         * tests/unictype/test-pr_numeric.c: Regenerated.
78294         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
78295         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
78296         Regenerated.
78297         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
78298         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
78299         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
78300         * tests/unictype/test-pr_other_math.c: Regenerated.
78301         * tests/unictype/test-pr_punctuation.c: Regenerated.
78302         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
78303         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
78304         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
78305         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
78306         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
78307         * tests/unictype/test-pr_uppercase.c: Regenerated.
78308         * tests/unictype/test-pr_xid_continue.c: Regenerated.
78309         * tests/unictype/test-pr_xid_start.c: Regenerated.
78310         * tests/unictype/test-pr_zero_width.c: Regenerated.
78312         Update to Unicode 5.1.0.
78313         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
78314         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
78315         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
78316         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
78317         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
78318         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
78319         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
78320         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
78321         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
78322         (nonspacing_table_ind): Update.
78323         * tests/uniwidth/test-uc_width2.sh: Update expected result.
78325         Update to Unicode 5.1.0.
78326         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
78327         code transform.
78328         * lib/uniname/uniname.c (unicode_character_name,
78329         unicode_name_character): Add the range 0x1Fxxx to the code transform.
78330         * lib/uniname/uninames.h: Regenerated.
78331         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
78333 2009-02-07  Bruno Haible  <bruno@clisp.org>
78335         Merge gen-ctype and gen-lbrk into a single program.
78336         * lib/gen-uni-tables.c: New file, incorporating
78337         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
78338         Add directory prefixes to the names of the generated files.
78339         * lib/unictype/gen-ctype.c: Remove file.
78340         * lib/unilbrk/gen-lbrk.c: Remove file.
78341         * modules/gen-uni-tables: New file.
78342         * modules/unictype/gen-ctype: Remove file.
78343         * modules/unilbrk/gen-lbrk: Remove file.
78345 2009-02-07  Bruno Haible  <bruno@clisp.org>
78347         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
78349         New module 'unistr/u32-strcoll'.
78350         * modules/unistr/u32-strcoll: New file.
78351         * lib/unistr/u32-strcoll.c: New file.
78353         New module 'unistr/u16-strcoll'.
78354         * modules/unistr/u16-strcoll: New file.
78355         * lib/unistr/u16-strcoll.c: New file.
78357         New module 'unistr/u8-strcoll'.
78358         * modules/unistr/u8-strcoll: New file.
78359         * lib/unistr/u8-strcoll.c: New file.
78360         * lib/unistr/u-strcoll.h: New file.
78362 2009-02-07  Bruno Haible  <bruno@clisp.org>
78364         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
78365         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
78366         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
78367         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
78368         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
78369         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
78371 2009-02-07  Bruno Haible  <bruno@clisp.org>
78373         Make 64-bit clean.
78374         * lib/unictype/gen-ctype.c (output_predicate, output_category,
78375         output_combclass, output_bidi_category, output_decimal_digit,
78376         output_digit, output_numeric, output_mirror, output_scripts,
78377         output_ident_category): Use proper width specifier in format strings.
78379 2009-02-07  Bruno Haible  <bruno@clisp.org>
78381         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
78382         failure behaviour.
78384 2009-02-07  Jim Meyering  <meyering@redhat.com>
78386         regex: avoid compilation failure with upcoming gcc-4.4
78387         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
78388         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
78389         "... error: integer overflow in preprocessor expression".
78391 2009-02-05  Ben Pfaff  <blp@gnu.org>
78393         Fix link errors on Windows when close module is used.
78394         * modules/close: Add $(LIB_CLOSE) to Link section.
78395         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
78396         $(LIB_CLOSE) on Windows.
78398 2009-02-05  Jim Meyering  <meyering@redhat.com>
78400         still avoid unused-parameter warnings, but do it cleanly
78401         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
78402         (get_fs_usage): Cast to void instead.
78403         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
78404         (dev_from_mount_options, read_file_system_list): Cast to void.
78405         Prompted by Bruno Haible.
78407 2009-02-04  Jim Meyering  <meyering@redhat.com>
78409         fsusage.c: correct copyright year
78410         * lib/fsusage.c: Reflect year in which the change is pushed into
78412         avoid misc. warnings
78413         * lib/fsusage.c (UNUSED_PARAM): Define.
78414         (get_fs_usage): Mark parameter "disk" as unused.
78415         * lib/getugroups.c (getgrent): Use "void" in prototype.
78416         * lib/mountlist.c: Mark unused parameters.
78417         (read_file_system_list): Declare a local with "const".
78418         * lib/nanosleep.c (getnow): Declare static.
78419         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
78421         dirfd: set errno upon failure
78422         * lib/dirfd.c: Include <errno.h>.
78423         Set errno to ENOTSUP when returning -1.
78424         * modules/dirfd (Depends-on): Add errno.
78425         Suggested by John Kodis <kodis@comcast.net>.
78427 2009-02-01  Bruno Haible  <bruno@clisp.org>
78429         Don't assume sizeof (long) >= sizeof (void *).
78430         * lib/memcmp.c: Include stdint.h.
78431         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
78432         srcp2 to 'const byte *'.
78433         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
78434         types to uintptr_t.
78435         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
78436         * modules/memcmp (Depends-on): Add stdint.
78437         Reported by Ozkan Sezer <sezeroz@gmail.com>.
78439 2009-01-30  Eric Blake  <ebb9@byu.net>
78441         fix more require-before-expand issues
78442         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
78443         expand, AC_PROG_AWK.
78444         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
78446 2009-01-28  Eric Blake  <ebb9@byu.net>
78448         version-etc: use consistent URL formatting
78449         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
78450         Improve formatting.  Use fputs for string without %.
78452 2009-01-28  Jim Meyering  <meyering@redhat.com>
78454         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
78455         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
78456         "underquoted definition of NAME" from autoconf-2.59.
78458 2009-01-28  Bruno Haible  <bruno@clisp.org>
78460         * doc/gnulib.texi: Add "Obsolete modules" to index.
78462 2009-01-28  Jim Meyering  <meyering@redhat.com>
78464         useless-if-before-free: recognize more variants
78465         * build-aux/useless-if-before-free: Also recognize e.g.,
78466         if (NULL != p) free (p);
78468 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
78470         test-getaddrinfo: skip (don't fail) this test when there's no network
78471         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
78472         on the presumption that it means you lack network access.
78474 2009-01-26  Jim Meyering  <meyering@redhat.com>
78476         fflush: avoid warnings on modern systems
78477         * lib/fflush.c (rpl_fflush): Move declarations of locals,
78478         pos and result, into scopes where they're used.
78480 2009-01-26  Eric Blake  <ebb9@byu.net>
78482         Silence warning reintroduced by recent extensions patch.
78483         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
78484         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
78485         autoconf.
78487         Backport improved autoconf semantics of AC_DEFUN_ONCE.
78488         * m4/00gnulib.m4: New file.
78489         * gnulib-tool (func_get_filelist): Always use it.
78490         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
78491         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
78493 2009-01-25  Bruno Haible  <bruno@clisp.org>
78495         Make test-quotearg work on MacOS X and AIX.
78496         * tests/test-quotearg.sh: New file.
78497         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
78498         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
78499         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
78500         include <libintl.h>.
78501         (fake_locale): Remove variable.
78502         (gettext, dgettext, dcgettext): Remove functions.
78503         (main): Instead of setting a fake locale, set a real locale. Call
78504         textdomain and bindtextdomain.
78505         * modules/quotearg-tests (Files): Add the new files.
78506         (Depends-on): Add gettext, setenv, unsetenv.
78507         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
78508         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
78509         Augment TESTS_ENVIRONMENT.
78511 2009-01-25  Bruno Haible  <bruno@clisp.org>
78513         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
78514         fr_FR.ISO8859-1 locale on MacOS X.
78515         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
78516         ja_JP.eucJP locale on MacOS X.
78517         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
78518         zh_CN.GB18030 locale on MacOS X.
78520 2009-01-25  Bruno Haible  <bruno@clisp.org>
78522         Avoid link errors on MacOS X 10.3.
78523         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
78524         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
78526 2009-01-25  Bruno Haible  <bruno@clisp.org>
78528         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
78529         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
78530         * modules/pipe (Files): Remove m4/posix_spawn.m4.
78531         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
78532         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
78533         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
78534         posix_spawnattr_init, posix_spawnattr_setsigmask,
78535         posix_spawnattr_setflags, posix_spawnattr_destroy.
78537         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
78538         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
78539         * modules/execute (Files): Remove m4/posix_spawn.m4.
78540         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
78541         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
78542         posix_spawnattr_init, posix_spawnattr_setsigmask,
78543         posix_spawnattr_setflags, posix_spawnattr_destroy.
78545 2009-01-25  Bruno Haible  <bruno@clisp.org>
78547         * lib/glthread/threadlib.c: Include <stdlib.h>.
78549 2009-01-25  Bruno Haible  <bruno@clisp.org>
78551         * lib/glthread/threadlib.c (dummy): New declaration.
78553 2009-01-25  Bruno Haible  <bruno@clisp.org>
78555         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
78556         multibyte characters also for the GB18030 encoding. Don't crash when
78557         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
78559 2009-01-25  Bruno Haible  <bruno@clisp.org>
78561         Avoid redefining 'struct random_data' on OSF/1 5.1.
78562         * lib/stdlib.in.h: Include <random.h> if it exists.
78563         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
78564         HAVE_RANDOM_H. Include <random.h> when testing whether
78565         'struct random_data' exists.
78566         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
78568 2009-01-25  Bruno Haible  <bruno@clisp.org>
78570         Don't install charset.alias on MacOS X >= 10.3.
78571         * lib/localcharset.c (DARWIN7): New macro.
78572         (get_charset_aliases): Hardcode the result for Darwin7.
78573         * modules/localcharset (install-exec-local): Don't install
78574         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
78576 2009-01-25  Bruno Haible  <bruno@clisp.org>
78578         Don't install charset.alias on mingw and Cygwin.
78579         * modules/localcharset (install-exec-local): Don't install
78580         charset.alias on mingw and Cygwin, if the file does not yet exist.
78581         The result for these platforms is hardcoded in localcharset.c.
78583 2009-01-25  Bruno Haible  <bruno@clisp.org>
78585         Make it possible again to use AC_GNU_SOURCE together with gnulib.
78586         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
78587         before requiring AC_USE_SYSTEM_EXTENSIONS.
78589 2009-01-25  Jim Meyering  <meyering@redhat.com>
78591         c-strtod: avoid warnings
78592         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
78593         "assignment discards qualifiers from pointer target type" warnings.
78595 2009-01-24  Bruno Haible  <bruno@clisp.org>
78597         Add support for non-UTF-8 locales on MacOS X.
78598         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
78599         canonical encodings. For Darwin 7 and newer, don't map traditional
78600         encodings to UTF-8.
78601         Reported by Vincent Lefevre <vincent@vinc17.org>
78602         at <http://savannah.gnu.org/bugs/?25235>.
78604 2009-01-24  Bruno Haible  <bruno@clisp.org>
78606         * doc/gnulib.texi (Obsolete modules): New section.
78607         Reported by Mike Frysinger <vapier@gentoo.org>.
78609 2009-01-24  Bruno Haible  <bruno@clisp.org>
78611         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
78612         (%.dvi): New rule.
78614 2009-01-24  Bruno Haible  <bruno@clisp.org>
78616         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
78617         Reported by Eric Blake.
78619 2009-01-24  Bruno Haible  <bruno@clisp.org>
78621         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
78622         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
78623         Reported by Gary V. Vaughan <gary@gnu.org>.
78625 2009-01-24  Bruno Haible  <bruno@clisp.org>
78627         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
78629 2009-01-23  Bruno Haible  <bruno@clisp.org>
78631         Make c-strtod, c-strtold usable in libraries.
78632         * lib/c-strtod.c: Include string.h instead of xalloc.h.
78633         (C_STRTOD): Call strdup instead of xstrdup.
78634         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
78635         * modules/c-strtold (Depends-on): Likewise.
78636         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
78637         * NEWS: Mention the change.
78638         Reported by Michael Gold <mgold@ncf.ca>.
78640 2009-01-23  Jim Meyering  <meyering@redhat.com>
78642         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
78643         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
78644         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
78646 2009-01-23  Simon Josefsson  <simon@josefsson.org>
78648         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
78649         GNU CoreUtils.
78650         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
78651         * modules/version-etc (Description): Update.
78653 2009-01-22  Bruno Haible  <bruno@clisp.org>
78655         Cache the C locale object.
78656         * lib/c-strtod.c (c_locale_cache): New variable.
78657         (c_locale): New function.
78658         (C_STRTOD): Use it, and don't call freelocale.
78659         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
78660         Suggested by Paolo Bonzini.
78662 2009-01-21  Bruno Haible  <bruno@clisp.org>
78664         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
78665         conditions other than overflow.
78667 2009-01-21  Bruno Haible  <bruno@clisp.org>
78669         * lib/c-strtod.c: Include errno.h.
78670         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
78671         value from STRTOD_L and STRTOD.
78673 2009-01-21  Bruno Haible  <bruno@clisp.org>
78674         and Jim Meyering  <meyering@redhat.com>
78676         nanosleep: skip configure test (fail it) for apple universal builds
78677         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
78678         universal builds, assume that nanosleep does not work.
78679         * modules/nanosleep (Depends-on): Add multiarch.
78681         mktime: skip configure test (fail it) for apple universal builds
78682         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
78683         universal builds, assume that mktime does not work.
78684         * modules/mktime (Depends-on): Add multiarch.
78686 2009-01-21  Eric Blake  <ebb9@byu.net>
78688         multiarch: avoid expand-before-require warning
78689         * modules/multiarch (configure.ac): Require, rather than expand,
78690         gl_MULTIARCH.
78691         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
78692         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
78693         enforce that all clients require it.  Partial reversion of
78694         2008-12-29 patch.
78696         error: avoid expand-before-require warning
78697         * modules/errno (configure.ac): Require, rather than expand,
78698         gl_HEADER_ERRNO_H.
78699         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
78700         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
78701         enforce that all clients require it.
78703         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
78704         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
78705         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
78706         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
78708 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
78710         Revert:
78711         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
78713         regex: do not depend on obsolete modules.
78714         * modules/regex: Remove memcmp and memmove.
78716 2009-01-20  Bruno Haible  <bruno@clisp.org>
78718         Make the 'link' module link on Windows NT 4.
78719         * lib/link.c (_WIN32_WINNT): Don't define.
78720         (CreateHardLinkFuncType): New type.
78721         (CreateHardLinkFunc, initialized): New variables.
78722         (initialize): New function.
78723         (link): Invoke CreateHardLink indirectly through the function pointer.
78725 2009-01-20  Bruno Haible  <bruno@clisp.org>
78727         Fix compilation failure on mingw.
78728         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
78730 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
78732         * doc/c-strtod.texi: Mention a couple of restrictions.
78734 2009-01-20  Jim Meyering  <meyering@redhat.com>
78736         gettimeofday: move more declarations out of functions
78737         * lib/gettimeofday.c: Move extern declarations of tzset and
78738         gmtime out of containing functions.  Prompted by Bruno Haible.
78740 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
78742         regex: do not depend on obsolete modules.
78743         * modules/regex: Remove memcmp and memmove.
78745 2009-01-19  Bruno Haible  <bruno@clisp.org>
78747         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
78748         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
78749         gl_BIGENDIAN, not AC_C_BIGENDIAN.
78750         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
78751         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
78753 2009-01-19  Bruno Haible  <bruno@clisp.org>
78755         * tests/test-link.c: Include <errno.h>.
78756         (main): Exit with code 77 when a hard link cannot be created due to
78757         the file system.
78758         * tests/test-link.sh: Skip test when a hard link cannot be created due
78759         to the file system.
78760         Suggested by Eric Blake.
78762 2009-01-19  Martin Lambers  <marlam@marlam.de>
78764         * modules/link-tests: New file.
78765         * tests/test-link.sh: New file.
78766         * tests/test-link.c: New file.
78768 2009-01-19  Eric Blake  <ebb9@byu.net>
78770         doc: mention another function added in cygwin 1.7.0
78771         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
78772         Another new function in cygwin 1.7.
78774 2009-01-19  Bruno Haible  <bruno@clisp.org>
78776         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
78777         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
78778         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
78779         gl_BIGENDIAN, not AC_C_BIGENDIAN.
78780         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
78781         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
78782         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
78783         * m4/md4.m4 (gl_MD4): Likewise.
78784         * m4/md5.m4 (gl_MD5): Likewise.
78785         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
78786         * m4/sha1.m4 (gl_SHA1): Likewise.
78787         * m4/sha256.m4 (gl_SHA256): Likewise.
78788         * m4/sha512.m4 (gl_SHA512): Likewise.
78790 2009-01-19  Bruno Haible  <bruno@clisp.org>
78792         * modules/uniname/uniname-tests (Depends-on): Add progname.
78793         * tests/uniname/test-uninames.c: Include progname.h.
78794         (main): Call set_program_name.
78796         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
78797         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
78798         (main): Call set_program_name.
78800         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
78801         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
78802         (main): Call set_program_name.
78804         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
78805         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
78806         (main): Call set_program_name.
78808         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
78809         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
78810         (main): Call set_program_name.
78812         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
78813         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
78814         (main): Call set_program_name.
78816         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
78817         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
78818         (main): Call set_program_name.
78820         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
78821         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
78822         (main): Call set_program_name.
78824         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
78825         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
78826         (main): Call set_program_name.
78828 2009-01-19  Eric Blake  <ebb9@byu.net>
78830         test-unistd: test previous patch
78831         * tests/test-unistd.c: Test *_FILENO macros.
78833         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
78834         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
78835         Guarantee a definition.
78836         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
78837         * modules/unistd-safer (Depends-on): Add dependency on unistd.
78838         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
78839         * lib/dup-safer.c (STDERR_FILENO): Likewise.
78840         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
78841         Likewise.
78842         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
78843         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
78844         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
78845         Likewise.
78846         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
78847         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
78848         (STDERR_FILENO): Likewise.
78849         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
78850         (STDERR_FILENO): Likewise.
78851         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
78852         (STDERR_FILENO): Likewise.
78853         Reported by Elbert Pol.
78855 2009-01-19  Eric Blake  <ebb9@byu.net>
78857         doc: mention more functions added in cygwin 1.7.0
78858         * doc/posix-functions/abort.texi (abort): Update wording related
78859         to cygwin.
78860         * doc/posix-functions/daylight.texi (daylight): Likewise.
78861         * doc/posix-functions/optarg.texi (optarg): Likewise.
78862         * doc/posix-functions/optarg.texi (opterr): Likewise.
78863         * doc/posix-functions/optarg.texi (optind): Likewise.
78864         * doc/posix-functions/optarg.texi (optopt): Likewise.
78865         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
78866         worked in 1.5.x, and was withdrawn in 1.7.
78867         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
78868         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
78869         cygwin versions.
78870         * doc/posix-functions/perror.texi (perror): Likewise.
78871         * doc/posix-functions/printf.texi (printf): Likewise.
78872         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
78873         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
78874         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
78875         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
78876         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
78877         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
78878         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
78879         Likewise.
78880         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
78881         Likewise.
78882         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
78883         this function.
78884         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
78885         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
78886         Likewise.
78887         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
78888         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
78889         * doc/posix-functions/confstr.texi (confstr): Likewise.
78890         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
78891         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
78892         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
78893         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
78894         * doc/posix-functions/fputws.texi (fputws): Likewise.
78895         * doc/posix-functions/fwide.texi (fwide): Likewise.
78896         * doc/posix-functions/getwc.texi (getwc): Likewise.
78897         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
78898         * doc/posix-functions/putwc.texi (putwc): Likewise.
78899         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
78900         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
78901         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
78902         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
78903         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
78904         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
78905         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
78906         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
78907         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
78908         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
78909         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
78911 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
78913         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
78914         * lib/ioctl.c: Include <sys/ioctl.h>.
78916 2009-01-19  Simon Josefsson  <simon@josefsson.org>
78918         * modules/getdate-tests (Depends-on): Add progname.
78919         * tests/test-getdate.c: Use progname module, to avoid link errors
78920         on non-glibc systems.
78922 2009-01-18  Simon Josefsson  <simon@josefsson.org>
78924         * modules/filenamecat-tests (Depends-on): Add progname.
78925         * modules/fstrcmp-tests (Depends-on): Likewise.
78927         * tests/test-filenamecat.c: Use progname module, to avoid link
78928         errors on non-glibc systems.
78929         * tests/test-fstrcmp.c: Likewise.
78931 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
78933         gettimeofday: avoid warning: nested extern declaration of 'localtime'
78934         * lib/gettimeofday.c: Move extern declaration out of function.
78936 2009-01-18  Bruno Haible  <bruno@clisp.org>
78938         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
78939         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
78940         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
78942 2009-01-18  Bruno Haible  <bruno@clisp.org>
78944         * lib/strftime.c (MEMPCPY): Remove unused macro.
78945         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
78947 2009-01-18  Martin Lambers  <marlam@marlam.de>
78949         New module 'link'.
78950         * lib/unistd.in.h (link): New declaration.
78951         * lib/link.c: New file.
78952         * m4/link.m4: New file.
78953         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
78954         HAVE_LINK.
78955         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
78956         * modules/link: New file.
78957         * doc/posix-functions/link.texi: Mention the new module.
78959 2009-01-18  Bruno Haible  <bruno@clisp.org>
78961         * tests/test-avltree_list.c (main): Call set_program_name.
78962         * tests/test-avltree_oset.c (main): Likewise.
78963         * tests/test-obstack-printf.c: Include progname.h.
78964         (main): Call set_program_name.
78965         * tests/test-quotearg.c: Include progname.h.
78966         (main): Call set_program_name.
78967         * tests/test-xmemdup0.c: Include progname.h.
78968         (main): Call set_program_name.
78970 2009-01-18  Bruno Haible  <bruno@clisp.org>
78972         New module 'alphasort'.
78973         * lib/dirent.in.h (alphasort): New declaration.
78974         * lib/alphasort.c: New file, from glibc with modifications.
78975         * m4/alphasort.m4: New file.
78976         * modules/alphasort: New file.
78977         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
78978         HAVE_ALPHASORT.
78979         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
78980         HAVE_ALPHASORT.
78981         * doc/posix-functions/alphasort.texi: Mention the new module and the
78982         portability problems.
78984 2009-01-18  Bruno Haible  <bruno@clisp.org>
78986         New module 'scandir'.
78987         * lib/dirent.in.h (scandir): New declaration.
78988         * lib/scandir.c: New file, from glibc with modifications.
78989         * m4/scandir.m4: New file.
78990         * modules/scandir: New file.
78991         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
78992         HAVE_SCANDIR.
78993         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
78994         HAVE_SCANDIR.
78995         * doc/posix-functions/scandir.texi: Mention the new module and the
78996         portability problems.
78998 2009-01-17  Bruno Haible  <bruno@clisp.org>
79000         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
79001         Update documentation.
79002         (func_remove_suffix): Escape all dots in the suffix. Update
79003         documentation.
79004         (func_filter_filelist): Update documentation.
79005         Reported by Ralf Wildenhues.
79007 2009-01-17  Bruno Haible  <bruno@clisp.org>
79009         * modules/dprintf-posix-tests: New file.
79010         * tests/test-dprintf-posix.sh: New file.
79011         * tests/test-dprintf-posix.c: New file.
79013         New modules 'dprintf', 'dprintf-posix'.
79014         * lib/stdio.in.h (dprintf): New declaration.
79015         * lib/dprintf.c: New file.
79016         * m4/dprintf.m4: New file.
79017         * m4/dprintf-posix.m4: New file.
79018         * modules/dprintf: New file.
79019         * modules/dprintf-posix: New file.
79020         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
79021         HAVE_DPRINTF, REPLACE_DPRINTF.
79022         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
79023         HAVE_DPRINTF, REPLACE_DPRINTF.
79024         * doc/posix-functions/dprintf.texi: Mention the new modules.
79026 2009-01-17  Bruno Haible  <bruno@clisp.org>
79028         * modules/vdprintf-posix-tests: New file.
79029         * tests/test-vdprintf-posix.sh: New file.
79030         * tests/test-vdprintf-posix.c: New file.
79032         New modules 'vdprintf', 'vdprintf-posix'.
79033         * lib/stdio.in.h (vdprintf): New declaration.
79034         * lib/vdprintf.c: New file.
79035         * m4/vdprintf.m4: New file.
79036         * m4/vdprintf-posix.m4: New file.
79037         * modules/vdprintf: New file.
79038         * modules/vdprintf-posix: New file.
79039         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
79040         HAVE_VDPRINTF, REPLACE_VDPRINTF.
79041         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
79042         HAVE_VDPRINTF, REPLACE_VDPRINTF.
79043         * doc/posix-functions/vdprintf.texi: Mention the new modules.
79045 2009-01-17  Bruno Haible  <bruno@clisp.org>
79047         Fix replacement of fopen on mingw.
79048         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
79049         mingw.
79051 2009-01-17  Bruno Haible  <bruno@clisp.org>
79053         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
79054         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
79056 2009-01-17  Bruno Haible  <bruno@clisp.org>
79058         Avoid test-fflush2.sh failure on mingw.
79059         * tests/test-fflush2.c: Include binary-io.h.
79060         (main): Put standard input into binary mode.
79061         * modules/fflush-tests (Depends-on): Add binary-io.
79063 2009-01-17  Bruno Haible  <bruno@clisp.org>
79065         * lib/wchar.in.h: In another particular situation, include only the
79066         system's <wchar.h> file.
79067         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
79068         Reported by Albert Chin-A-Young <china@thewrittenword.com>
79069         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
79071 2009-01-17  Bruno Haible  <bruno@clisp.org>
79073         Support for stripping executables in --enable-relocatable.
79074         * build-aux/install-reloc: Expect one more argument, or an environment
79075         variable RELOC_STRIP_PROG. If set, strip the destination program and
79076         its wrapper.
79077         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
79078         RELOC_STRIP_PROG.
79079         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
79080         to set RELOCATABLE_STRIP.
79081         * NEWS: Mention the new Makefile requirement.
79083 2009-01-17  Bruno Haible  <bruno@clisp.org>
79085         * build-aux/install-reloc: Remove debugging information left over by
79086         C compiler on MacOS X.
79088 2009-01-17  Bruno Haible  <bruno@clisp.org>
79090         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
79091         * lib/progreloc.c (find_executable): Fix type of pointer passed to
79092         _NSGetExecutablePath.
79094 2009-01-16  Jim Meyering  <meyering@redhat.com>
79096         strerror: avoid warnings about discarding "const"
79097         * lib/strerror.c (rpl_strerror): Instead of returning a const
79098         string from each and every "case", use a variable, and add a single
79099         cast after the switch.
79101 2009-01-16  Albert Chin-A-Young  <china@thewrittenword.com>
79103         * lib/arpa_inet.in.h: Add extern "C" block for C++.
79105 2009-01-16  Bruno Haible  <bruno@clisp.org>
79107         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
79108         array initializer syntax that also works in C++ mode.
79109         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
79111 2009-01-16  Jim Meyering  <meyering@redhat.com>
79113         poll: suppress a warning
79114         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
79115         to ignore "...unsigned expression < 0 is always false" warnings.
79117 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
79119         poll: remove declarations of unused variables
79120         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
79121         sockbuf and optlen.
79123 2009-01-15  Bruno Haible  <bruno@clisp.org>
79125         Make fflush-after-ungetc POSIX compliant on BSD systems.
79126         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
79127         (clear_ungetc_buffer): Implement also for other systems.
79128         (rpl_fflush): On glibc systems, invoke
79129         clear_ungetc_buffer_preserving_position. Otherwise, invoke
79130         clear_ungetc_buffer after fetching the stream's position, not before.
79132 2009-01-15  Bruno Haible  <bruno@clisp.org>
79134         Make fflush-after-ungetc POSIX compliant on glibc systems.
79135         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
79136         after ungetc.
79137         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
79138         (rpl_fflush): On glibc systems, simply call the system's fflush
79139         function after clearing the ungetc buffer.
79140         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
79141         Instead, lseek only to the end of file, then use the system's fseeko
79142         for the rest. On glibc systems, reset the EOF indicator bit.
79144 2009-01-15  Jim Meyering  <meyering@redhat.com>
79146         openmp.m4: revert quote-adding change, for portability to older autoconf
79147         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
79148         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
79149         Simon Josefsson noticed the problem when using autoconf-2.61.
79151 2009-01-15  Bruno Haible  <bruno@clisp.org>
79153         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
79154         * tests/test-fflush2.c (ASSERT): Always fail.
79155         (main): Add two tests for fflush() after ungetc(), taking into account
79156         the Austin Group's clarification.
79157         Suggested by Eric Blake.
79159 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
79161         mktime.m4: remove K&R-style function prototypes
79162         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
79163         for the Sun C++ compiler.
79165 2009-01-14  Bruno Haible  <bruno@clisp.org>
79167         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
79168         while including <wchar.h>.
79169         * lib/wchar.in.h: In two particular situations on HP-UX, include only
79170         the system's <wchar.h> file.
79171         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
79173 2009-01-14  Bruno Haible  <bruno@clisp.org>
79175         * m4/csharp.m4: Don't mention gettext on the serial number line.
79176         * m4/csharpexec.m4: Likewise.
79177         * m4/eaccess.m4: Likewise.
79178         * m4/javaexec.m4: Likewise.
79179         * m4/sig_atomic_t.m4: Likewise.
79180         * m4/tmpdir.m4: Likewise.
79181         * m4/intldir.m4: Bump gettext version.
79182         * m4/lib-ld.m4: Likewise.
79184 2009-01-14  Bruno Haible  <bruno@clisp.org>
79186         * lib/progname.c (set_program_name): Add more comments.
79187         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
79189 2009-01-14  Simon Josefsson  <simon@josefsson.org>
79191         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
79192         were sys/stat.h does not define it.
79194 2009-01-14  Jim Meyering  <meyering@redhat.com>
79196         many *.m4 files: improve m4 quoting
79197         99% of this change was performed by running the following commands:
79198         git ls-files | grep '\.m4$' | xargs perl -pi \
79199           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
79200           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
79201           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
79202           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
79203         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
79204         The remainder were to add Copyright dates, increment serial numbers,
79205         undo some changes in comments, exclude m4/intl.m4, and add quotes
79206         around the "1" in ",1" where the unusual spacing prohibited the
79207         above regexps from doing the job.  For more details, see
79208         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
79209         * m4/acl.m4: Modified.
79210         * m4/afs.m4: Likewise.
79211         * m4/alloca.m4: Likewise.
79212         * m4/argp.m4: Likewise.
79213         * m4/argz.m4: Likewise.
79214         * m4/atexit.m4: Likewise.
79215         * m4/bison-i18n.m4: Likewise.
79216         * m4/bison.m4: Likewise.
79217         * m4/byteswap.m4: Likewise.
79218         * m4/c-stack.m4: Likewise.
79219         * m4/c-strtod.m4: Likewise.
79220         * m4/calloc.m4: Likewise.
79221         * m4/canonicalize-lgpl.m4: Likewise.
79222         * m4/chown.m4: Likewise.
79223         * m4/clock_time.m4: Likewise.
79224         * m4/codeset.m4: Likewise.
79225         * m4/copy-file.m4: Likewise.
79226         * m4/csharp.m4: Likewise.
79227         * m4/csharpcomp.m4: Likewise.
79228         * m4/csharpexec.m4: Likewise.
79229         * m4/d-ino.m4: Likewise.
79230         * m4/d-type.m4: Likewise.
79231         * m4/dirfd.m4: Likewise.
79232         * m4/double-slash-root.m4: Likewise.
79233         * m4/eaccess.m4: Likewise.
79234         * m4/eealloc.m4: Likewise.
79235         * m4/environ.m4: Likewise.
79236         * m4/errno_h.m4: Likewise.
79237         * m4/euidaccess.m4: Likewise.
79238         * m4/execute.m4: Likewise.
79239         * m4/fatal-signal.m4: Likewise.
79240         * m4/fchdir.m4: Likewise.
79241         * m4/fcntl_h.m4: Likewise.
79242         * m4/fileblocks.m4: Likewise.
79243         * m4/filenamecat.m4: Likewise.
79244         * m4/findprog.m4: Likewise.
79245         * m4/flexmember.m4: Likewise.
79246         * m4/fnmatch.m4: Likewise.
79247         * m4/fopen.m4: Likewise.
79248         * m4/fpending.m4: Likewise.
79249         * m4/fprintf-posix.m4: Likewise.
79250         * m4/free.m4: Likewise.
79251         * m4/frexp.m4: Likewise.
79252         * m4/frexpl.m4: Likewise.
79253         * m4/fsusage.m4: Likewise.
79254         * m4/ftruncate.m4: Likewise.
79255         * m4/gc-camellia.m4: Likewise.
79256         * m4/gc-random.m4: Likewise.
79257         * m4/gc.m4: Likewise.
79258         * m4/getaddrinfo.m4: Likewise.
79259         * m4/getcwd-abort-bug.m4: Likewise.
79260         * m4/getcwd-path-max.m4: Likewise.
79261         * m4/getdate.m4: Likewise.
79262         * m4/getdomainname.m4: Likewise.
79263         * m4/getgroups.m4: Likewise.
79264         * m4/gethostname.m4: Likewise.
79265         * m4/gethrxtime.m4: Likewise.
79266         * m4/getline.m4: Likewise.
79267         * m4/getloadavg.m4: Likewise.
79268         * m4/getndelim2.m4: Likewise.
79269         * m4/getpass.m4: Likewise.
79270         * m4/gettext.m4: Likewise.
79271         * m4/gettime.m4: Likewise.
79272         * m4/gettimeofday.m4: Likewise.
79273         * m4/gnulib-common.m4: Likewise.
79274         * m4/group-member.m4: Likewise.
79275         * m4/host-os.m4: Likewise.
79276         * m4/iconv.m4: Likewise.
79277         * m4/iconv_open.m4: Likewise.
79278         * m4/inet_ntop.m4: Likewise.
79279         * m4/inet_pton.m4: Likewise.
79280         * m4/inline.m4: Likewise.
79281         * m4/intldir.m4: Likewise.
79282         * m4/intlmacosx.m4: Likewise.
79283         * m4/intmax.m4: Likewise.
79284         * m4/intmax_t.m4: Likewise.
79285         * m4/inttypes.m4: Likewise.
79286         * m4/inttypes_h.m4: Likewise.
79287         * m4/inttypes-pri.m4: Likewise.
79288         * m4/isapipe.m4: Likewise.
79289         * m4/isnand.m4: Likewise.
79290         * m4/isnanf.m4: Likewise.
79291         * m4/isnanl.m4: Likewise.
79292         * m4/javacomp.m4: Likewise.
79293         * m4/javaexec.m4: Likewise.
79294         * m4/jm-winsz1.m4: Likewise.
79295         * m4/jm-winsz2.m4: Likewise.
79296         * m4/lchown.m4: Likewise.
79297         * m4/lcmessage.m4: Likewise.
79298         * m4/ldexpl.m4: Likewise.
79299         * m4/lib-ld.m4: Likewise.
79300         * m4/lib-link.m4: Likewise.
79301         * m4/libsigsegv.m4: Likewise.
79302         * m4/link-follow.m4: Likewise.
79303         * m4/localcharset.m4: Likewise.
79304         * m4/locale-fr.m4: Likewise.
79305         * m4/locale-ja.m4: Likewise.
79306         * m4/locale-tr.m4: Likewise.
79307         * m4/locale-zh.m4: Likewise.
79308         * m4/lock.m4: Likewise.
79309         * m4/longlong.m4: Likewise.
79310         * m4/ls-mntd-fs.m4: Likewise.
79311         * m4/lstat.m4: Likewise.
79312         * m4/malloc.m4: Likewise.
79313         * m4/mathl.m4: Likewise.
79314         * m4/mbrtowc.m4: Likewise.
79315         * m4/mbstate_t.m4: Likewise.
79316         * m4/mbswidth.m4: Likewise.
79317         * m4/memchr.m4: Likewise.
79318         * m4/memcmp.m4: Likewise.
79319         * m4/memcpy.m4: Likewise.
79320         * m4/memmem.m4: Likewise.
79321         * m4/memmove.m4: Likewise.
79322         * m4/mempcpy.m4: Likewise.
79323         * m4/memrchr.m4: Likewise.
79324         * m4/memset.m4: Likewise.
79325         * m4/minmax.m4: Likewise.
79326         * m4/mkdir-slash.m4: Likewise.
79327         * m4/mkdtemp.m4: Likewise.
79328         * m4/mktime.m4: Likewise.
79329         * m4/mmap-anon.m4: Likewise.
79330         * m4/mountlist.m4: Likewise.
79331         * m4/nanosleep.m4: Likewise.
79332         * m4/nls.m4: Likewise.
79333         * m4/nocrash.m4: Likewise.
79334         * m4/open.m4: Likewise.
79335         * m4/openat.m4: Likewise.
79336         * m4/openmp.m4: Likewise.
79337         * m4/pathmax.m4: Likewise.
79338         * m4/perl.m4: Likewise.
79339         * m4/physmem.m4: Likewise.
79340         * m4/pipe.m4: Likewise.
79341         * m4/po.m4: Likewise.
79342         * m4/poll.m4: Likewise.
79343         * m4/posixtm.m4: Likewise.
79344         * m4/posixver.m4: Likewise.
79345         * m4/printf-frexp.m4: Likewise.
79346         * m4/printf-frexpl.m4: Likewise.
79347         * m4/printf-posix.m4: Likewise.
79348         * m4/printf-posix-rpl.m4: Likewise.
79349         * m4/printf.m4: Likewise.
79350         * m4/progtest.m4: Likewise.
79351         * m4/putenv.m4: Likewise.
79352         * m4/readline.m4: Likewise.
79353         * m4/readlink.m4: Likewise.
79354         * m4/readutmp.m4: Likewise.
79355         * m4/realloc.m4: Likewise.
79356         * m4/regex.m4: Likewise.
79357         * m4/relocatable.m4: Likewise.
79358         * m4/relocatable-lib.m4: Likewise.
79359         * m4/rename-dest-slash.m4: Likewise.
79360         * m4/rename.m4: Likewise.
79361         * m4/rmdir-errno.m4: Likewise.
79362         * m4/rmdir.m4: Likewise.
79363         * m4/roundf.m4: Likewise.
79364         * m4/roundl.m4: Likewise.
79365         * m4/rpmatch.m4: Likewise.
79366         * m4/save-cwd.m4: Likewise.
79367         * m4/selinux-selinux-h.m4: Likewise.
79368         * m4/setenv.m4: Likewise.
79369         * m4/settime.m4: Likewise.
79370         * m4/sig2str.m4: Likewise.
79371         * m4/sig_atomic_t.m4: Likewise.
79372         * m4/signalblocking.m4: Likewise.
79373         * m4/signbit.m4: Likewise.
79374         * m4/sigpipe.m4: Likewise.
79375         * m4/sockets.m4: Likewise.
79376         * m4/sockpfaf.m4: Likewise.
79377         * m4/st_dm_mode.m4: Likewise.
79378         * m4/stat-time.m4: Likewise.
79379         * m4/stdbool.m4: Likewise.
79380         * m4/stdint.m4: Likewise.
79381         * m4/stdint_h.m4: Likewise.
79382         * m4/stpcpy.m4: Likewise.
79383         * m4/stpncpy.m4: Likewise.
79384         * m4/strcase.m4: Likewise.
79385         * m4/strchrnul.m4: Likewise.
79386         * m4/strcspn.m4: Likewise.
79387         * m4/strdup.m4: Likewise.
79388         * m4/strftime.m4: Likewise.
79389         * m4/strndup.m4: Likewise.
79390         * m4/strnlen.m4: Likewise.
79391         * m4/strpbrk.m4: Likewise.
79392         * m4/strptime.m4: Likewise.
79393         * m4/strsep.m4: Likewise.
79394         * m4/strtod.m4: Likewise.
79395         * m4/strtoimax.m4: Likewise.
79396         * m4/strtok_r.m4: Likewise.
79397         * m4/strtol.m4: Likewise.
79398         * m4/strtoll.m4: Likewise.
79399         * m4/strtoul.m4: Likewise.
79400         * m4/strtoull.m4: Likewise.
79401         * m4/strtoumax.m4: Likewise.
79402         * m4/strverscmp.m4: Likewise.
79403         * m4/threadlib.m4: Likewise.
79404         * m4/timegm.m4: Likewise.
79405         * m4/tm_gmtoff.m4: Likewise.
79406         * m4/tmpdir.m4: Likewise.
79407         * m4/tmpfile.m4: Likewise.
79408         * m4/tzset.m4: Likewise.
79409         * m4/uintmax_t.m4: Likewise.
79410         * m4/unlinkdir.m4: Likewise.
79411         * m4/unlocked-io.m4: Likewise.
79412         * m4/uptime.m4: Likewise.
79413         * m4/userspec.m4: Likewise.
79414         * m4/utimbuf.m4: Likewise.
79415         * m4/utime.m4: Likewise.
79416         * m4/utimes-null.m4: Likewise.
79417         * m4/utimes.m4: Likewise.
79418         * m4/vararrays.m4: Likewise.
79419         * m4/vasnprintf.m4: Likewise.
79420         * m4/vfprintf-posix.m4: Likewise.
79421         * m4/vprintf-posix.m4: Likewise.
79422         * m4/wait-process.m4: Likewise.
79423         * m4/wchar_t.m4: Likewise.
79424         * m4/wint_t.m4: Likewise.
79425         * m4/write-any-file.m4: Likewise.
79426         * m4/yield.m4: Likewise.
79428 2009-01-13  Bruno Haible  <bruno@clisp.org>
79430         Avoid test-copy-file.sh failures when ACL support insufficient.
79431         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
79432         TESTS_ENVIRONMENT.
79433         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
79434         Reported by Jim Meyering.
79436 2009-01-13  Bruno Haible  <bruno@clisp.org>
79438         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
79439         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
79440         * modules/unistdio/u8-printf-parse (Files): Likewise.
79441         * modules/unistdio/u32-printf-parse (Files): Likewise.
79442         * modules/unistdio/ulc-printf-parse (Files): Likewise.
79444 2009-01-13  Simon Josefsson  <simon@josefsson.org>
79446         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
79447         and m4/inttypes_h.m4 too.
79449 2009-01-12  Eric Blake  <ebb9@byu.net>
79451         tests: IRIX 6.2 cc can't compile -0.0 into .data
79452         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
79453         rather than at compile-time.
79454         * tests/test-floorl.c (minus_zero): Likewise.
79455         * tests/test-frexpl.c (minus_zero): Likewise.
79456         * tests/test-isnan.c (minus_zerol): Likewise.
79457         * tests/test-isnanl.h (minus_zero): Likewise.
79458         * tests/test-ldexpl.c (minus_zero): Likewise.
79459         * tests/test-roundl.c (minus_zero): Likewise.
79460         * tests/test-signbit.c (minus_zerol): Likewise.
79461         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
79462         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
79463         * tests/test-truncl.c (minus_zero): Likewise.
79464         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
79465         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
79466         Reported by Tom G. Christensen and Nelson H. F. Beebe.
79468 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
79470         regex: fix glibc bug 9697
79471         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
79472         handling.
79474 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
79476         regex: fix glibc bug 697
79477         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
79478         being NULL also if there are no backreferences.
79480 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
79482         regex: merge glibc changes
79483         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
79484         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
79485         re_string_skip_chars, re_string_reconstruct): Likewise.
79486         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
79488 2009-01-07  Jim Meyering  <meyering@redhat.com>
79490         poll: filter through cppi
79491         * lib/poll.c: Indent cpp directives to reflect nesting.
79493 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
79495         poll: don't return uninitialized
79496         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
79498 2009-01-06  Jeremy Olexa  <darkside@gentoo.org>  (tiny change)
79500         avoid compile failure on AIX 6.1
79501         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
79502         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
79504 2009-01-04  Jim Meyering  <meyering@redhat.com>
79506         remove duplicate inclusion of <stdio.h>
79507         * tests/test-fprintf-posix.c: Likewise.
79508         * tests/test-printf-posix.c: Likewise.
79509         * tests/test-snprintf-posix.c: Likewise.
79510         * tests/test-sprintf-posix.c: Likewise.
79511         * tests/test-vasprintf-posix.c: Likewise.
79512         * tests/test-vfprintf-posix.c: Likewise.
79513         * tests/test-vprintf-posix.c: Likewise.
79514         * tests/test-vsnprintf-posix.c: Likewise.
79515         * tests/test-vsprintf-posix.c: Likewise.
79517 2009-01-03  Jim Meyering  <meyering@redhat.com>
79519         gnulib-tool: fix sed-based filtering
79520         * gnulib-tool (func_filter_filelist): Remove extra backslash
79521         in sed_fff_filter definition.
79523 2009-01-02  Jim Meyering  <meyering@redhat.com>
79525         strftime: avoid compilation failure on Solaris 2.6
79526         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
79527         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
79528         Don't #define mbrlen or mbsinit, since now they're guaranteed to
79529         be available.  Reported by Tom G. Christensen.  Details in
79530         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
79532 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79533             Bruno Haible  <bruno@clisp.org>
79535         Speed up gnulib-tool by doing more string processing through shell
79536         built-ins.
79537         * gnulib-tool (fast_func_append): New variable.
79538         (func_remove_prefix, func_remove_suffix): New functions.
79539         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
79540         (func_filter_filelist): New function.
79541         (func_get_dependencies): Use func_remove_suffix instead of sed.
79542         (func_get_automake_snippet): Use func_filter_filelist instead of a
79543         subshell and sed invocation.
79545 2009-01-01  Bruno Haible  <bruno@clisp.org>
79547         Fix a security bug.
79548         * gnulib-tool (func_import, import, update): Don't allow the characters
79549         '"', '$', '`', '\' in macro arguments that become part of commands that
79550         are evaluated.
79552 2009-01-01  Bruno Haible  <bruno@clisp.org>
79554         * gnulib-tool (func_reset_sigpipe): Add more comments.
79556 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79558         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
79559         func_emit_tests_Makefile_am, func_import): Abort loops early if we
79560         already know the answer.
79562 2009-01-01  Jim Meyering  <meyering@redhat.com>
79564         * lib/version-etc.c (version_etc_va): Update copyright year.
79566 2008-12-30  Bruno Haible  <bruno@clisp.org>
79568         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
79569         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
79570         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
79572 2008-12-29  Eric Blake  <ebb9@byu.net>
79574         multiarch: avoid autoconf AC_REQUIRE bug
79575         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
79576         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
79577         2.63 and older.
79578         Reported by Bruno Haible, and analyzed in
79579         http://lists.gnu.org/r/bug-autoconf/2008-12/msg00039.html
79581 2008-12-29  Bruno Haible  <bruno@clisp.org>
79583         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
79584         files in subdirectories correctly.
79585         Reported by Ralf Wildenhues.
79587 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79589         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
79590         rather than 'join FILE -', for Solaris join.
79592 2008-12-29  Bruno Haible  <bruno@clisp.org>
79594         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
79595         quoting.
79596         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
79597         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
79598         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
79599         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
79600         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
79601         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
79602         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
79603         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
79604         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
79605         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
79606         * m4/nls.m4 (AM_NLS): Likewise.
79607         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
79608         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
79609         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
79610         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
79611         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
79612         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
79613         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
79614         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
79615         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
79616         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
79617         * m4/xsize.m4 (gl_XSIZE): Likewise.
79618         Suggested by Jim Meyering.
79620 2008-11-17  Bruce Korb  <bkorb@gnu.org>
79622         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
79623         * lib/parse-duration.c: use a switch instead of cascading if's.
79625 2008-12-29  Eric Blake  <ebb9@byu.net>
79627         wchar.h: supply WEOF on Irix 5.3
79628         * lib/wchar.in.h (wint_t): Also supply WEOF.
79629         * lib/wctype.in.h (wint_t): Likewise.
79630         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
79631         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
79632         Reported by Tom G. Christensen.
79634 2008-12-26  Bruno Haible  <bruno@clisp.org>
79636         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
79637         i486, i586, i686.
79639 2008-12-26  Bruno Haible  <bruno@clisp.org>
79641         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
79643 2008-12-26  Bruno Haible  <bruno@clisp.org>
79645         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
79646         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
79647         not __STDC_CONSTANT_MACROS.
79648         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
79650 2008-12-25  Bruno Haible  <bruno@clisp.org>
79652         Add support for universal builds to vasnprintf.
79653         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
79654         universal builds, guess no.
79655         * modules/vasnprintf-posix (Depends-on): Add multiarch.
79656         * modules/vasprintf-posix (Depends-on): Likewise.
79657         * modules/fprintf-posix (Depends-on): Likewise.
79658         * modules/vfprintf-posix (Depends-on): Likewise.
79659         * modules/snprintf-posix (Depends-on): Likewise.
79660         * modules/vsnprintf-posix (Depends-on): Likewise.
79661         * modules/sprintf-posix (Depends-on): Likewise.
79662         * modules/vsprintf-posix (Depends-on): Likewise.
79663         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
79664         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
79665         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
79666         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
79667         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
79668         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
79669         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
79671         Add support for universal builds to <inttypes.h>.
79672         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
79673         _SCNu64_PREFIX): In Apple
79674         universal builds, define directly, using _LP64.
79675         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
79676         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
79677         * modules/inttypes (Depends-on): Add multiarch.
79678         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
79680         Add support for universal builds to <stdint.h>.
79681         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
79682         universal builds, define directly, using _LP64.
79683         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
79684         Apple universal builds, don't test for the size and suffix of ptrdiff_t
79685         and size_t.
79686         * modules/stdint (Depends-on): Add multiarch.
79687         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
79689         New module 'multiarch'.
79690         * modules/multiarch: New file.
79691         * m4/multiarch.m4: New file.
79693 2008-12-25  Bruno Haible  <bruno@clisp.org>
79695         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
79697 2008-12-25  Bruno Haible  <bruno@clisp.org>
79699         * modules/btowc (License): Relicense under LGPLv2+.
79700         * modules/mbsinit (License): Likewise.
79701         * modules/mbrtowc (License): Likewise.
79702         * modules/wcrtomb (License): Likewise.
79703         * modules/streq (License): Likewise.
79704         Reported by David Lutterkort <lutter@redhat.com>.
79706 2008-12-23  Bruno Haible  <bruno@clisp.org>
79708         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
79710 2008-12-23  Bruno Haible  <bruno@clisp.org>
79712         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
79713         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
79714         GETADDRINFO_LIB, not in LIBS.
79715         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
79716         * modules/canon-host (Link): Likewise.
79717         * NEWS: Mention the change.
79718         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
79719         GETADDRINFO_LIB.
79721 2008-12-22  Bruno Haible  <bruno@clisp.org>
79723         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
79724         * doc/posix-functions/iswalpha_l.texi: Likewise.
79725         * doc/posix-functions/iswblank_l.texi: Likewise.
79726         * doc/posix-functions/iswcntrl_l.texi: Likewise.
79727         * doc/posix-functions/iswctype_l.texi: Likewise.
79728         * doc/posix-functions/iswdigit_l.texi: Likewise.
79729         * doc/posix-functions/iswgraph_l.texi: Likewise.
79730         * doc/posix-functions/iswlower_l.texi: Likewise.
79731         * doc/posix-functions/iswprint_l.texi: Likewise.
79732         * doc/posix-functions/iswpunct_l.texi: Likewise.
79733         * doc/posix-functions/iswspace_l.texi: Likewise.
79734         * doc/posix-functions/iswupper_l.texi: Likewise.
79735         * doc/posix-functions/iswxdigit_l.texi: Likewise.
79736         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
79737         * doc/posix-functions/open_wmemstream.texi: Likewise.
79738         * doc/posix-functions/swscanf.texi: Likewise.
79739         * doc/posix-functions/towctrans_l.texi: Likewise.
79740         * doc/posix-functions/towlower.texi: Likewise.
79741         * doc/posix-functions/towlower_l.texi: Likewise.
79742         * doc/posix-functions/towupper.texi: Likewise.
79743         * doc/posix-functions/towupper_l.texi: Likewise.
79744         * doc/posix-functions/vfwprintf.texi: Likewise.
79745         * doc/posix-functions/vfwscanf.texi: Likewise.
79746         * doc/posix-functions/vswscanf.texi: Likewise.
79747         * doc/posix-functions/vwprintf.texi: Likewise.
79748         * doc/posix-functions/vwscanf.texi: Likewise.
79749         * doc/posix-functions/wcpcpy.texi: Likewise.
79750         * doc/posix-functions/wcpncpy.texi: Likewise.
79751         * doc/posix-functions/wcscasecmp.texi: Likewise.
79752         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
79753         * doc/posix-functions/wcscoll_l.texi: Likewise.
79754         * doc/posix-functions/wcsdup.texi: Likewise.
79755         * doc/posix-functions/wcsncasecmp.texi: Likewise.
79756         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
79757         * doc/posix-functions/wcsnlen.texi: Likewise.
79758         * doc/posix-functions/wcsnrtombs.texi: Likewise.
79759         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
79760         * doc/posix-functions/wctrans_l.texi: Likewise.
79761         * doc/posix-functions/wctype_l.texi: Likewise.
79762         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
79763         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
79764         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
79765         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
79766         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
79767         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
79768         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
79769         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
79770         * doc/glibc-functions/wcschrnul.texi: Likewise.
79771         * doc/glibc-functions/wcsftime_l.texi: Likewise.
79772         * doc/glibc-functions/wcstod_l.texi: Likewise.
79773         * doc/glibc-functions/wcstof_l.texi: Likewise.
79774         * doc/glibc-functions/wcstol_l.texi: Likewise.
79775         * doc/glibc-functions/wcstold_l.texi: Likewise.
79776         * doc/glibc-functions/wcstoll_l.texi: Likewise.
79777         * doc/glibc-functions/wcstoq.texi: Likewise.
79778         * doc/glibc-functions/wcstoul_l.texi: Likewise.
79779         * doc/glibc-functions/wcstoull_l.texi: Likewise.
79780         * doc/glibc-functions/wcstouq.texi: Likewise.
79781         * doc/glibc-functions/wmempcpy.texi: Likewise.
79783 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
79784             Eric Blake  <ebb9@byu.net>
79785             Paolo Bonzini  <bonzini@gnu.org>
79786             Bruno Haible  <bruno@clisp.org>
79788         Make c-stack work on Haiku.
79789         * lib/c-stack.c (SA_ONSTACK): Define fallback.
79790         (c_stack_action): Use SA_ONSTACK flag.
79792 2008-12-22  Bruno Haible  <bruno@clisp.org>
79794         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
79796 2008-12-22  Bruno Haible  <bruno@clisp.org>
79798         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
79799         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
79800         being overridden.
79801         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
79802         New macros.
79803         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
79804         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
79805         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
79806         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
79808 2008-12-22  Bruno Haible  <bruno@clisp.org>
79810         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
79811         from test code.
79813 2008-12-22  Eric Blake  <ebb9@byu.net>
79815         Avoid gcc warnings on cygwin.
79816         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
79817         Avoid unused variable.
79818         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
79819         Likewise.
79821 2008-12-22  Bruno Haible  <bruno@clisp.org>
79823         Remove HAVE_MBRTOWC conditionals.
79824         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
79825         (mbscasecmp): Assume mbrtowc function.
79826         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
79827         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
79828         * lib/mbschr.c: Include mbuiter.h unconditionally.
79829         (mbschr): Assume mbrtowc function.
79830         * lib/mbscspn.c: Include mbuiter.h unconditionally.
79831         (mbscspn): Assume mbrtowc function.
79832         * lib/mbslen.c: Include mbuiter.h unconditionally.
79833         (mbslen): Assume mbrtowc function.
79834         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
79835         (mbsncasecmp): Assume mbrtowc function.
79836         * lib/mbsnlen.c: Include mbiter.h unconditionally.
79837         (mbsnlen): Assume mbrtowc function.
79838         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
79839         (mbspbrk): Assume mbrtowc function.
79840         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
79841         (mbspcasecmp): Assume mbrtowc function.
79842         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
79843         (mbsrchr): Assume mbrtowc function.
79844         * lib/mbssep.c: Include mbuiter.h unconditionally.
79845         (mbssep): Assume mbrtowc function.
79846         * lib/mbsspn.c: Include mbuiter.h unconditionally.
79847         (mbsspn): Assume mbrtowc function.
79848         * lib/mbsstr.c: Include mbuiter.h unconditionally.
79849         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
79850         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
79851         (mbstok_r): Assume mbrtowc function.
79852         * lib/propername.c: Include mbuiter.h unconditionally.
79853         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
79854         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
79855         (trim2): Assume mbrtowc function.
79856         * lib/mbswidth.c (mbsinit): Remove fallback definition.
79857         (mbsnwidth): Assume mbrtowc function.
79858         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
79859         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
79860         fallback definitions.
79861         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
79863 2008-12-22  Bruno Haible  <bruno@clisp.org>
79865         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
79867 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
79869         * modules/regex: Request emulations for the mb*/wc* functions we need.
79870         * m4/regex.m4: Don't look for those functions here.
79871         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
79873 2008-12-22  Bruno Haible  <bruno@clisp.org>
79875         * modules/fnmatch (Depends-on): Remove duplicated dependency.
79877 2008-12-21  Bruno Haible  <bruno@clisp.org>
79879         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
79880         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
79881         (Include): Remove conditionalization.
79882         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
79883         (Include): Remove conditionalization.
79884         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
79885         (Include): Remove conditionalization.
79886         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
79887         * m4/mbfile.m4 (gl_MBFILE): Likewise.
79888         * NEWS: Mention the change.
79889         Reported by Alan Hourihane <alanh@fairlite.co.uk>
79890         via Sergey Poznyakoff <gray@gnu.org.ua>.
79892 2008-12-21  Bruno Haible  <bruno@clisp.org>
79894         * MODULES.html.sh (Extended multibyte and wide character utilities
79895         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
79896         wcrtomb, wcsrtombs.
79897         (Support for systems lacking POSIX:2008): Add accept, bind, close,
79898         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
79899         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
79900         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
79902 2008-12-21  Bruno Haible  <bruno@clisp.org>
79904         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
79906 2008-12-21  Bruno Haible  <bruno@clisp.org>
79908         * modules/wcsnrtombs-tests: New file.
79909         * tests/test-wcsnrtombs1.sh: New file.
79910         * tests/test-wcsnrtombs2.sh: New file.
79911         * tests/test-wcsnrtombs3.sh: New file.
79912         * tests/test-wcsnrtombs4.sh: New file.
79913         * tests/test-wcsnrtombs.c: New file.
79915         New module 'wcsnrtombs'.
79916         * lib/wchar.in.h (wcsnrtombs): New declaration.
79917         * lib/wcsnrtombs.c: New file.
79918         * lib/wcsrtombs-state.c: New file.
79919         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
79920         (internal_state): Remove variable.
79921         * m4/wcsnrtombs.m4: New file.
79922         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
79923         compilation units.
79924         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
79925         HAVE_WCSNRTOMBS.
79926         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
79927         HAVE_WCSNRTOMBS.
79928         * modules/wcsnrtombs: New file.
79929         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
79930         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
79932 2008-12-21  Bruno Haible  <bruno@clisp.org>
79934         * modules/wcsrtombs-tests: New file.
79935         * tests/test-wcsrtombs1.sh: New file.
79936         * tests/test-wcsrtombs2.sh: New file.
79937         * tests/test-wcsrtombs3.sh: New file.
79938         * tests/test-wcsrtombs4.sh: New file.
79939         * tests/test-wcsrtombs.c: New file.
79941         New module 'wcsrtombs'.
79942         * lib/wchar.in.h (wcsrtombs): New declaration.
79943         * lib/wcsrtombs.c: New file.
79944         * m4/wcsrtombs.m4: New file.
79945         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
79946         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
79947         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
79948         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
79949         * modules/wcsrtombs: New file.
79950         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
79951         bugs.
79953 2008-12-21  Bruno Haible  <bruno@clisp.org>
79955         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
79956         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
79957         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
79958         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
79959         if not correct.
79960         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
79961         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
79962         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
79963         m4/locale-zh.m4, m4/codeset.m4.
79964         * doc/posix-functions/wcrtomb.texi: Document the bug.
79966 2008-12-21  Bruno Haible  <bruno@clisp.org>
79968         Work around a btowc() bug on IRIX 6.5.
79969         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
79970         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
79971         REPLACE_WTOBC if not.
79972         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
79973         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
79974         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
79976 2008-12-21  Bruno Haible  <bruno@clisp.org>
79978         * modules/wcrtomb-tests: New file.
79979         * tests/test-wcrtomb.sh: New file.
79980         * tests/test-wcrtomb.c: New file.
79982         New module 'wcrtomb'.
79983         * lib/wchar.in.h (wcrtomb): New declaration.
79984         * lib/wcrtomb.c: New file.
79985         * m4/wcrtomb.m4: New file.
79986         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
79987         HAVE_WCRTOMB.
79988         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
79989         HAVE_WCRTOMB.
79990         * modules/wcrtomb: New file.
79991         * doc/posix-functions/wcrtomb.texi: Mention the new module.
79993 2008-12-21  Bruno Haible  <bruno@clisp.org>
79995         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
79996         * modules/mbsrtowcs (Files): Likewise.
79997         * modules/wctob (Files): Likewise.
79998         * modules/c-strcase-tests (Files): Likewise.
79999         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
80000         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
80001         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
80002         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
80003         * modules/vasnprintf-posix-tests (Files): Likewise.
80005 2008-12-21  William Pursell  <bill.pursell@gmail.com>
80007         gitlog-to-changelog: pass all command-line arguments to git-log
80008         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
80009         it is sometimes convenient to filter the commits in various ways.
80010         gitlog-to-changelog only allows --since to specify a start date,
80011         but git-log itself supports many other filtering mechanisms.
80012         At the moment, I want to filter by branch name.  Rather than
80013         adding a --branch option to gitlog-to-changelog, it seems more
80014         flexible to simply pass all options directly to git-log and let
80015         git do the work.  Notice that this effectively makes --since a
80016         redundant option for gitlog-to-changelog, but removing it would
80017         require current usage to change since calls would then require
80018         an additional '--'.
80020 2008-12-21  Bruno Haible  <bruno@clisp.org>
80022         * modules/mbsnrtowcs-tests: New file.
80023         * tests/test-mbsnrtowcs1.sh: New file.
80024         * tests/test-mbsnrtowcs2.sh: New file.
80025         * tests/test-mbsnrtowcs3.sh: New file.
80026         * tests/test-mbsnrtowcs4.sh: New file.
80027         * tests/test-mbsnrtowcs.c: New file.
80029         New module 'mbsnrtowcs'.
80030         * lib/wchar.in.h (mbsnrtowcs): New declaration.
80031         * lib/mbsnrtowcs.c: New file.
80032         * lib/mbsrtowcs-state.c: New file.
80033         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
80034         (internal_state): Remove variable.
80035         * m4/mbsnrtowcs.m4: New file.
80036         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
80037         compilation units.
80038         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
80039         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
80040         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
80041         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
80042         * modules/mbsnrtowcs: New file.
80043         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
80044         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
80045         portability problem.
80047 2008-12-21  Bruno Haible  <bruno@clisp.org>
80049         Work around mbsrtowcs bug.
80050         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
80051         (gl_FUNC_MBSRTOWCS): Invoke it.
80052         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
80053         m4/locale-zh.m4.
80054         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
80056 2008-12-21  Bruno Haible  <bruno@clisp.org>
80058         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
80060 2008-12-21  Bruno Haible  <bruno@clisp.org>
80062         Update doc for AIX.
80063         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
80064         16-bit wchar_t type.
80065         * doc/posix-functions/btowc.texi: Likewise.
80066         * doc/posix-functions/fgetwc.texi: Likewise.
80067         * doc/posix-functions/fgetws.texi: Likewise.
80068         * doc/posix-functions/fputwc.texi: Likewise.
80069         * doc/posix-functions/fputws.texi: Likewise.
80070         * doc/posix-functions/fwide.texi: Likewise.
80071         * doc/posix-functions/fwprintf.texi: Likewise.
80072         * doc/posix-functions/fwscanf.texi: Likewise.
80073         * doc/posix-functions/getwchar.texi: Likewise.
80074         * doc/posix-functions/getwc.texi: Likewise.
80075         * doc/posix-functions/iswalnum.texi: Likewise.
80076         * doc/posix-functions/iswalpha.texi: Likewise.
80077         * doc/posix-functions/iswblank.texi: Likewise.
80078         * doc/posix-functions/iswcntrl.texi: Likewise.
80079         * doc/posix-functions/iswctype.texi: Likewise.
80080         * doc/posix-functions/iswdigit.texi: Likewise.
80081         * doc/posix-functions/iswgraph.texi: Likewise.
80082         * doc/posix-functions/iswlower.texi: Likewise.
80083         * doc/posix-functions/iswprint.texi: Likewise.
80084         * doc/posix-functions/iswpunct.texi: Likewise.
80085         * doc/posix-functions/iswspace.texi: Likewise.
80086         * doc/posix-functions/iswupper.texi: Likewise.
80087         * doc/posix-functions/iswxdigit.texi: Likewise.
80088         * doc/posix-functions/mbrtowc.texi: Likewise.
80089         * doc/posix-functions/mbsrtowcs.texi: Likewise.
80090         * doc/posix-functions/mbstowcs.texi: Likewise.
80091         * doc/posix-functions/mbtowc.texi: Likewise.
80092         * doc/posix-functions/putwchar.texi: Likewise.
80093         * doc/posix-functions/putwc.texi: Likewise.
80094         * doc/posix-functions/swprintf.texi: Likewise.
80095         * doc/posix-functions/tolower.texi: Likewise.
80096         * doc/posix-functions/toupper.texi: Likewise.
80097         * doc/posix-functions/towctrans.texi: Likewise.
80098         * doc/posix-functions/ungetwc.texi: Likewise.
80099         * doc/posix-functions/vswprintf.texi: Likewise.
80100         * doc/posix-functions/wcrtomb.texi: Likewise.
80101         * doc/posix-functions/wcscat.texi: Likewise.
80102         * doc/posix-functions/wcschr.texi: Likewise.
80103         * doc/posix-functions/wcscmp.texi: Likewise.
80104         * doc/posix-functions/wcscoll.texi: Likewise.
80105         * doc/posix-functions/wcscpy.texi: Likewise.
80106         * doc/posix-functions/wcscspn.texi: Likewise.
80107         * doc/posix-functions/wcsftime.texi: Likewise.
80108         * doc/posix-functions/wcslen.texi: Likewise.
80109         * doc/posix-functions/wcsncat.texi: Likewise.
80110         * doc/posix-functions/wcsncmp.texi: Likewise.
80111         * doc/posix-functions/wcsncpy.texi: Likewise.
80112         * doc/posix-functions/wcspbrk.texi: Likewise.
80113         * doc/posix-functions/wcsrchr.texi: Likewise.
80114         * doc/posix-functions/wcsrtombs.texi: Likewise.
80115         * doc/posix-functions/wcsspn.texi: Likewise.
80116         * doc/posix-functions/wcsstr.texi: Likewise.
80117         * doc/posix-functions/wcstod.texi: Likewise.
80118         * doc/posix-functions/wcstof.texi: Likewise.
80119         * doc/posix-functions/wcstoimax.texi: Likewise.
80120         * doc/posix-functions/wcstok.texi: Likewise.
80121         * doc/posix-functions/wcstold.texi: Likewise.
80122         * doc/posix-functions/wcstoll.texi: Likewise.
80123         * doc/posix-functions/wcstol.texi: Likewise.
80124         * doc/posix-functions/wcstombs.texi: Likewise.
80125         * doc/posix-functions/wcstoull.texi: Likewise.
80126         * doc/posix-functions/wcstoul.texi: Likewise.
80127         * doc/posix-functions/wcstoumax.texi: Likewise.
80128         * doc/posix-functions/wcswidth.texi: Likewise.
80129         * doc/posix-functions/wcsxfrm.texi: Likewise.
80130         * doc/posix-functions/wctob.texi: Likewise.
80131         * doc/posix-functions/wctomb.texi: Likewise.
80132         * doc/posix-functions/wctrans.texi: Likewise.
80133         * doc/posix-functions/wctype.texi: Likewise.
80134         * doc/posix-functions/wcwidth.texi: Likewise.
80135         * doc/posix-functions/wmemchr.texi: Likewise.
80136         * doc/posix-functions/wmemcmp.texi: Likewise.
80137         * doc/posix-functions/wmemcpy.texi: Likewise.
80138         * doc/posix-functions/wmemmove.texi: Likewise.
80139         * doc/posix-functions/wmemset.texi: Likewise.
80140         * doc/posix-functions/wprintf.texi: Likewise.
80141         * doc/posix-functions/wscanf.texi: Likewise.
80143 2008-12-21  Bruno Haible  <bruno@clisp.org>
80145         Update doc for HP-UX 11.11.
80146         * doc/posix-functions/btowc.texi: Clarify that the function is missing
80147         in HP-UX version 11.00, not in all versions of HP-UX 11.
80148         * doc/posix-functions/fwide.texi: Likewise.
80149         * doc/posix-functions/fwprintf.texi: Likewise.
80150         * doc/posix-functions/fwscanf.texi: Likewise.
80151         * doc/posix-functions/inet_ntop.texi: Likewise.
80152         * doc/posix-functions/inet_pton.texi: Likewise.
80153         * doc/posix-functions/mbrlen.texi: Likewise.
80154         * doc/posix-functions/mbrtowc.texi: Likewise.
80155         * doc/posix-functions/mbsinit.texi: Likewise.
80156         * doc/posix-functions/mbsrtowcs.texi: Likewise.
80157         * doc/posix-functions/swprintf.texi: Likewise.
80158         * doc/posix-functions/swscanf.texi: Likewise.
80159         * doc/posix-functions/towctrans.texi: Likewise.
80160         * doc/posix-functions/vfwprintf.texi: Likewise.
80161         * doc/posix-functions/vswprintf.texi: Likewise.
80162         * doc/posix-functions/vwprintf.texi: Likewise.
80163         * doc/posix-functions/wcrtomb.texi: Likewise.
80164         * doc/posix-functions/wcsrtombs.texi: Likewise.
80165         * doc/posix-functions/wcsstr.texi: Likewise.
80166         * doc/posix-functions/wctob.texi: Likewise.
80167         * doc/posix-functions/wctrans.texi: Likewise.
80168         * doc/posix-functions/wmemchr.texi: Likewise.
80169         * doc/posix-functions/wmemcmp.texi: Likewise.
80170         * doc/posix-functions/wmemcpy.texi: Likewise.
80171         * doc/posix-functions/wmemmove.texi: Likewise.
80172         * doc/posix-functions/wmemset.texi: Likewise.
80173         * doc/posix-functions/wprintf.texi: Likewise.
80174         * doc/posix-functions/wscanf.texi: Likewise.
80176 2008-12-21  Bruno Haible  <bruno@clisp.org>
80178         Work around a portability problem.
80179         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
80180         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
80182 2008-12-20  Bruno Haible  <bruno@clisp.org>
80184         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
80185         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
80186         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
80187         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
80188         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
80190         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
80191         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
80192         set.
80193         (GNULIB_defined_mbstate_t): New macro.
80194         (mbsinit): Redefine if REPLACE_MBSINIT is set.
80195         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
80196         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
80197         reuses the system's mbrtowc function but works around the bugs.
80198         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
80199         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
80200         macros.
80201         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
80202         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
80203         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
80204         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
80205         REPLACE_MBSINIT if mbsinit needs to be overridden.
80206         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
80207         REPLACE_MBSINIT, REPLACE_MBRTOWC.
80208         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
80209         REPLACE_MBSINIT, REPLACE_MBRTOWC.
80210         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
80211         m4/locale-zh.m4.
80212         (Depends): Add mbsinit.
80213         * modules/mbsinit (Depends): Add mbrtowc.
80214         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
80216 2008-12-20  Bruno Haible  <bruno@clisp.org>
80218         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
80219         so that there are no conversion errors on AIX.
80220         * tests/test-mbsrtowcs.c (main): LIkewise.
80222 2008-12-20  Bruno Haible  <bruno@clisp.org>
80224         Work around wctob bug on Solaris <= 9.
80225         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
80226         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
80227         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
80228         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
80229         * modules/wctob (Files): Add m4/locale-fr.m4.
80230         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
80232 2008-12-20  Bruno Haible  <bruno@clisp.org>
80234         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
80235         /dev/null.
80236         * tests/test-select-in.sh: Likewise.
80237         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
80239 2008-12-20  Bruno Haible  <bruno@clisp.org>
80241         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
80242         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
80243         Cygwin 1.5.x.
80245 2008-12-20  Bruno Haible  <bruno@clisp.org>
80247         Ensure mbstate_t is defined on HP-UX 11.11.
80248         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
80249         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
80250         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
80251         AC_USE_SYSTEM_EXTENSIONS.
80252         * modules/fnmatch (Depends-on): Add extensions.
80253         * modules/mbrlen (Depends-on): Likewise.
80254         * modules/mbrtowc (Depends-on): Likewise.
80255         * modules/mbsinit (Depends-on): Likewise.
80256         * modules/mbsrtowcs (Depends-on): Likewise.
80257         * modules/mbswidth (Depends-on): Likewise.
80258         * modules/quotearg (Depends-on): Likewise.
80259         * modules/strftime (Depends-on): Likewise.
80261 2008-12-20  Bruno Haible  <bruno@clisp.org>
80263         Ensure wctob is declared on IRIX 6.5.
80264         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
80265         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
80266         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
80267         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
80268         of HAVE_WCTOB.
80269         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
80270         HAVE_WCTOB.
80271         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
80273 2008-12-19  Bruno Haible  <bruno@clisp.org>
80275         * modules/mbsrtowcs-tests: New file.
80276         * tests/test-mbsrtowcs1.sh: New file.
80277         * tests/test-mbsrtowcs2.sh: New file.
80278         * tests/test-mbsrtowcs3.sh: New file.
80279         * tests/test-mbsrtowcs4.sh: New file.
80280         * tests/test-mbsrtowcs.c: New file.
80282         New module 'mbsrtowcs'.
80283         * lib/wchar.in.h (mbsrtowcs): New declaration.
80284         * lib/mbsrtowcs.c: New file.
80285         * m4/mbsrtowcs.m4: New file.
80286         * modules/mbsrtowcs: New file.
80287         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
80288         HAVE_MBSRTOWCS.
80289         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
80290         HAVE_MBSRTOWCS.
80291         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
80293 2008-12-19  Bruno Haible  <bruno@clisp.org>
80295         New module 'mbrlen'.
80296         * lib/wchar.in.h (mbrlen): New declaration.
80297         * lib/mbrlen.c: New file.
80298         * m4/mbrlen.m4: New file.
80299         * modules/mbrlen: New file.
80300         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
80301         HAVE_MBRLEN.
80302         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
80303         HAVE_MBRLEN.
80304         * doc/posix-functions/mbrlen.texi: Document the new module.
80306 2008-12-19  Bruno Haible  <bruno@clisp.org>
80308         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
80309         * modules/mbrtowc (Depends-on): Add verify.
80310         Suggested by Paul Eggert.
80312 2008-12-18  Bruno Haible  <bruno@clisp.org>
80314         * modules/mbsinit-tests: New file.
80315         * tests/test-mbsinit.sh: New file.
80316         * tests/test-mbsinit.c: New file.
80318 2008-12-18  Bruno Haible  <bruno@clisp.org>
80320         * modules/mbrtowc-tests: New file.
80321         * tests/test-mbrtowc1.sh: New file.
80322         * tests/test-mbrtowc2.sh: New file.
80323         * tests/test-mbrtowc3.sh: New file.
80324         * tests/test-mbrtowc4.sh: New file.
80325         * tests/test-mbrtowc.c: New file.
80327         New module 'mbrtowc'.
80328         * lib/wchar.in.h (mbstate_t): Override when the system does not have
80329         mbsinit and mbrtowc.
80330         (mbrtowc): New declaration.
80331         * lib/mbrtowc.c: New file.
80332         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
80333         * modules/mbrtowc: New file.
80334         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
80335         HAVE_MBRTOWC.
80336         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
80337         HAVE_MBRTOWC.
80338         * doc/posix-functions/mbrtowc.texi: Document the new module.
80340 2008-12-18  Bruno Haible  <bruno@clisp.org>
80342         New module 'wctob'.
80343         * lib/wchar.in.h (wctob): New declaration.
80344         * lib/wctob.c: New file.
80345         * m4/wctob.m4: New file.
80346         * modules/wctob: New file.
80347         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
80348         HAVE_WCTOB.
80349         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
80350         * doc/posix-functions/wctob.texi: Document the new module.
80352 2008-12-18  Bruno Haible  <bruno@clisp.org>
80354         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
80355         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
80357 2008-12-18  Simon Josefsson  <simon@josefsson.org>
80359         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
80360         G. Christensen" <tgc@jupiterrise.com>.
80362         * lib/flock.c: Need to include errno.h.  Reported by "Tom
80363         G. Christensen" <tgc@jupiterrise.com>.
80365         * lib/flock.c: Need to include string.h.  Reported by "Tom
80366         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
80367         <ebb9@byu.net>.
80369 2008-12-18  Bruno Haible  <bruno@clisp.org>
80371         * m4/locale-ja.m4: New file, from GNU gettext.
80373 2008-12-17  Bruno Haible  <bruno@clisp.org>
80375         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
80376         Suggested by Eric Blake.
80378 2008-12-17  Bruno Haible  <bruno@clisp.org>
80380         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
80382 2008-12-17  Bruno Haible  <bruno@clisp.org>
80384         * lib/mbsinit.c: Include verify.h. Verify an assumption.
80385         * modules/mbsinit (Depends-on): Add verify.
80386         Suggested by Paul Eggert.
80388 2008-12-17  Bruno Haible  <bruno@clisp.org>
80390         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
80391         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
80392         gl_FUNC_MBRTOWC.
80393         * m4/mbiter.m4 (gl_MBITER): LIkewise.
80394         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
80395         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
80396         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
80397         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
80398         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
80399         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
80400         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
80401         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
80402         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
80403         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
80404         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
80405         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
80406         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
80407         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
80408         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
80409         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
80410         * modules/trim (configure.ac): Likewise.
80412 2008-12-17  Bruno Haible  <bruno@clisp.org>
80414         * modules/btowc-tests: New file.
80415         * tests/test-btowc1.sh: New file.
80416         * tests/test-btowc2.sh: New file.
80417         * tests/test-btowc.c: New file.
80419         New module 'btowc'.
80420         * lib/wchar.in.h (btowc): New declaration.
80421         * lib/btowc.c: New file.
80422         * m4/btowc.m4: New file.
80423         * modules/btowc: New file.
80424         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
80425         HAVE_BTOWC.
80426         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
80427         * doc/posix-functions/btowc.texi: Document the new module.
80429 2008-12-17  Bruno Haible  <bruno@clisp.org>
80431         New module 'mbsinit'.
80432         * lib/wchar.in.h (mbsinit): New declaration.
80433         * lib/mbsinit.c: New file.
80434         * m4/mbsinit.m4: New file.
80435         * modules/mbsinit: New file.
80436         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
80437         HAVE_MBSINIT.
80438         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
80439         HAVE_MBSINIT.
80440         * doc/posix-functions/mbsinit.texi: Document the new module.
80442 2008-12-16  Bruno Haible  <bruno@clisp.org>
80444         * lib/unistd.in.h: Add comment.
80445         * tests/test-environ.c: Don't include <stdlib.h>.
80447 2008-12-16  Bruno Haible  <bruno@clisp.org>
80449         * lib/parse-duration.h (parse_duration): Document return value
80450         convention.
80451         * lib/parse-duration.c: Include specification header first. Add
80452         comments.
80453         (_): Remove macro.
80454         (parse_year_month_day, parse_hour_minute_second): Move side effects
80455         outside of strchr call.
80456         (parse_non_iso8601): Move side effects outside of isspace call.
80457         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
80458         call.
80460 2008-12-16  Bruno Haible  <bruno@clisp.org>
80462         * tests/test-parse-duration.sh: Produce no output when the test
80463         succeeds.
80465 2008-12-16  Bruno Haible  <bruno@clisp.org>
80467         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
80468         expressions.
80470 2008-12-15  Bruno Haible  <bruno@clisp.org>
80472         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
80473         * doc/glibc-functions/flistxattr.texi: Likewise.
80474         * doc/glibc-functions/fopencookie.texi: Likewise.
80475         * doc/glibc-functions/fremovexattr.texi: Likewise.
80476         * doc/glibc-functions/fsetxattr.texi: Likewise.
80477         * doc/glibc-functions/getxattr.texi: Likewise.
80478         * doc/glibc-functions/lgetxattr.texi: Likewise.
80479         * doc/glibc-functions/listxattr.texi: Likewise.
80480         * doc/glibc-functions/llistxattr.texi: Likewise.
80481         * doc/glibc-functions/lremovexattr.texi: Likewise.
80482         * doc/glibc-functions/lsetxattr.texi: Likewise.
80483         * doc/glibc-functions/removexattr.texi: Likewise.
80484         * doc/glibc-functions/setxattr.texi: Likewise.
80485         * doc/posix-functions/open_memstream.texi: Likewise.
80487 2008-12-15  Eric Blake  <ebb9@byu.net>
80489         Update doc for cygwin 1.7.
80490         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
80491         functions.
80492         * doc/posix-functions/fchmodat.texi: Likewise.
80493         * doc/posix-functions/fchownat.texi: Likewise.
80494         * doc/posix-functions/fdopendir.texi: Likewise.
80495         * doc/posix-functions/fmemopen.texi: Likewise.
80496         * doc/posix-functions/freeaddrinfo.texi: Likewise.
80497         * doc/posix-functions/fstatat.texi: Likewise.
80498         * doc/posix-functions/futimens.texi: Likewise.
80499         * doc/posix-functions/gai_strerror.texi: Likewise.
80500         * doc/posix-functions/getaddrinfo.texi: Likewise.
80501         * doc/posix-functions/getnameinfo.texi: Likewise.
80502         * doc/posix-functions/if_freenameindex.texi: Likewise.
80503         * doc/posix-functions/if_indextoname.texi: Likewise.
80504         * doc/posix-functions/if_nameindex.texi: Likewise.
80505         * doc/posix-functions/if_nametoindex.texi: Likewise.
80506         * doc/posix-functions/insque.texi: Likewise.
80507         * doc/posix-functions/linkat.texi: Likewise.
80508         * doc/posix-functions/llrint.texi: Likewise.
80509         * doc/posix-functions/llrintf.texi: Likewise.
80510         * doc/posix-functions/llrintl.texi: Likewise.
80511         * doc/posix-functions/lockf.texi: Likewise.
80512         * doc/posix-functions/lrintl.texi: Likewise.
80513         * doc/posix-functions/mkdirat.texi: Likewise.
80514         * doc/posix-functions/mkfifoat.texi: Likewise.
80515         * doc/posix-functions/mknodat.texi: Likewise.
80516         * doc/posix-functions/mq_close.texi: Likewise.
80517         * doc/posix-functions/mq_getattr.texi: Likewise.
80518         * doc/posix-functions/mq_notify.texi: Likewise.
80519         * doc/posix-functions/mq_open.texi: Likewise.
80520         * doc/posix-functions/mq_receive.texi: Likewise.
80521         * doc/posix-functions/mq_send.texi: Likewise.
80522         * doc/posix-functions/mq_setattr.texi: Likewise.
80523         * doc/posix-functions/mq_timedreceive.texi: Likewise.
80524         * doc/posix-functions/mq_timedsend.texi: Likewise.
80525         * doc/posix-functions/mq_unlink.texi: Likewise.
80526         * doc/posix-functions/open_memstream.texi: Likewise.
80527         * doc/posix-functions/openat.texi: Likewise.
80528         * doc/posix-functions/posix_fadvise.texi: Likewise.
80529         * doc/posix-functions/posix_fallocate.texi: Likewise.
80530         * doc/posix-functions/posix_madvise.texi: Likewise.
80531         * doc/posix-functions/posix_memalign.texi: Likewise.
80532         * doc/posix-functions/posix_openpt.texi: Likewise.
80533         * doc/posix-functions/readlinkat.texi: Likewise.
80534         * doc/posix-functions/remque.texi: Likewise.
80535         * doc/posix-functions/renameat.texi: Likewise.
80536         * doc/posix-functions/rintl.texi: Likewise.
80537         * doc/posix-functions/sem_unlink.texi: Likewise.
80538         * doc/posix-functions/shm_open.texi: Likewise.
80539         * doc/posix-functions/shm_unlink.texi: Likewise.
80540         * doc/posix-functions/signgam.texi: Likewise.
80541         * doc/posix-functions/sigset.texi: Likewise.
80542         * doc/posix-functions/stpcpy.texi: Likewise.
80543         * doc/posix-functions/stpncpy.texi: Likewise.
80544         * doc/posix-functions/strerror.texi: Likewise.
80545         * doc/posix-functions/strtod.texi: Likewise.
80546         * doc/posix-functions/symlinkat.texi: Likewise.
80547         * doc/posix-functions/unlinkat.texi: Likewise.
80548         * doc/posix-functions/utimensat.texi: Likewise.
80549         * doc/glibc-functions/bindresvport.texi: Likewise.
80550         * doc/glibc-functions/dn_expand.texi: Likewise.
80551         * doc/glibc-functions/exp10.texi: Likewise.
80552         * doc/glibc-functions/exp10f.texi: Likewise.
80553         * doc/glibc-functions/fgetxattr.texi: Likewise.
80554         * doc/glibc-functions/flistxattr.texi: Likewise.
80555         * doc/glibc-functions/fopencookie.texi: Likewise.
80556         * doc/glibc-functions/freeifaddrs.texi: Likewise.
80557         * doc/glibc-functions/fremovexattr.texi: Likewise.
80558         * doc/glibc-functions/fsetxattr.texi: Likewise.
80559         * doc/glibc-functions/getifaddrs.texi: Likewise.
80560         * doc/glibc-functions/getxattr.texi: Likewise.
80561         * doc/glibc-functions/lgetxattr.texi: Likewise.
80562         * doc/glibc-functions/listxattr.texi: Likewise.
80563         * doc/glibc-functions/llistxattr.texi: Likewise.
80564         * doc/glibc-functions/lremovexattr.texi: Likewise.
80565         * doc/glibc-functions/lsetxattr.texi: Likewise.
80566         * doc/glibc-functions/pow10.texi: Likewise.
80567         * doc/glibc-functions/pow10f.texi: Likewise.
80568         * doc/glibc-functions/rcmd_af.texi: Likewise.
80569         * doc/glibc-functions/removexattr.texi: Likewise.
80570         * doc/glibc-functions/res_init.texi: Likewise.
80571         * doc/glibc-functions/res_mkquery.texi: Likewise.
80572         * doc/glibc-functions/res_query.texi: Likewise.
80573         * doc/glibc-functions/res_querydomain.texi: Likewise.
80574         * doc/glibc-functions/res_send.texi: Likewise.
80575         * doc/glibc-functions/rresvport_af.texi: Likewise.
80576         * doc/glibc-functions/setxattr.texi: Likewise.
80577         * doc/glibc-functions/strcasestr.texi: Likewise.
80579 2008-12-15  Bruno Haible  <bruno@clisp.org>
80581         Fix compilation error on OSF/1 4.0.
80582         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
80583         <sys/time.h>, simply delegate to the system header.
80584         Reported by Daniel Richard G. <oss@teragram.com>.
80586 2008-12-15  Bruno Haible  <bruno@clisp.org>
80588         * doc/posix-functions/openat.texi: Mention the 'openat' module.
80589         * doc/posix-functions/fchmodat.texi: Likewise.
80590         * doc/posix-functions/fchownat.texi: Likewise.
80591         * doc/posix-functions/fdopendir.texi: Likewise.
80592         * doc/posix-functions/fstatat.texi: Likewise.
80593         * doc/posix-functions/mkdirat.texi: Likewise.
80594         * doc/posix-functions/unlinkat.texi: Likewise.
80596 2008-12-14  Bruno Haible  <bruno@clisp.org>
80598         Update doc for POSIX:2008.
80599         * doc/posix-functions/faccessat.texi: New file.
80600         * doc/posix-functions/fchmodat.texi: New file.
80601         * doc/posix-functions/fchownat.texi: New file.
80602         * doc/posix-functions/fdopendir.texi: New file.
80603         * doc/posix-functions/fstatat.texi: New file.
80604         * doc/posix-functions/futimens.texi: New file.
80605         * doc/posix-functions/linkat.texi: New file.
80606         * doc/posix-functions/mkdirat.texi: New file.
80607         * doc/posix-functions/mkfifoat.texi: New file.
80608         * doc/posix-functions/mknodat.texi: New file.
80609         * doc/posix-functions/open_wmemstream.texi: New file.
80610         * doc/posix-functions/openat.texi: New file.
80611         * doc/posix-functions/psiginfo.texi: New file.
80612         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
80613         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
80614         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
80615         * doc/posix-functions/readlinkat.texi: New file.
80616         * doc/posix-functions/renameat.texi: New file.
80617         * doc/posix-functions/strerror_l.texi: New file.
80618         * doc/posix-functions/symlinkat.texi: New file.
80619         * doc/posix-functions/unlinkat.texi: New file.
80620         * doc/posix-functions/utimensat.texi: New file.
80621         * doc/gnulib.texi (Function Substitutes): Add these subsections.
80623 2008-12-14  Bruno Haible  <bruno@clisp.org>
80625         Update doc for POSIX:2008.
80626         * doc/posix-functions/alphasort.texi: Renamed from
80627         doc/glibc-functions/alphasort.texi.
80628         * doc/posix-functions/dirfd.texi: Renamed from
80629         doc/glibc-functions/dirfd.texi.
80630         * doc/posix-functions/dprintf.texi: Renamed from
80631         doc/glibc-functions/dprintf.texi.
80632         * doc/posix-functions/duplocale.texi: Renamed from
80633         doc/glibc-functions/duplocale.texi.
80634         * doc/posix-functions/fexecve.texi: Renamed from
80635         doc/glibc-functions/fexecve.texi.
80636         * doc/posix-functions/fmemopen.texi: Renamed from
80637         doc/glibc-functions/fmemopen.texi.
80638         * doc/posix-functions/freelocale.texi: Renamed from
80639         doc/glibc-functions/freelocale.texi.
80640         * doc/posix-functions/getdate_err.texi: Renamed from
80641         doc/glibc-functions/getdate_err.texi.
80642         * doc/posix-functions/isalnum_l.texi: Renamed from
80643         doc/glibc-functions/isalnum_l.texi.
80644         * doc/posix-functions/isalpha_l.texi: Renamed from
80645         doc/glibc-functions/isalpha_l.texi.
80646         * doc/posix-functions/isblank_l.texi: Renamed from
80647         doc/glibc-functions/isblank_l.texi.
80648         * doc/posix-functions/iscntrl_l.texi: Renamed from
80649         doc/glibc-functions/iscntrl_l.texi.
80650         * doc/posix-functions/isdigit_l.texi: Renamed from
80651         doc/glibc-functions/isdigit_l.texi.
80652         * doc/posix-functions/isgraph_l.texi: Renamed from
80653         doc/glibc-functions/isgraph_l.texi.
80654         * doc/posix-functions/islower_l.texi: Renamed from
80655         doc/glibc-functions/islower_l.texi.
80656         * doc/posix-functions/isprint_l.texi: Renamed from
80657         doc/glibc-functions/isprint_l.texi.
80658         * doc/posix-functions/ispunct_l.texi: Renamed from
80659         doc/glibc-functions/ispunct_l.texi.
80660         * doc/posix-functions/isspace_l.texi: Renamed from
80661         doc/glibc-functions/isspace_l.texi.
80662         * doc/posix-functions/isupper_l.texi: Renamed from
80663         doc/glibc-functions/isupper_l.texi.
80664         * doc/posix-functions/iswalnum_l.texi: Renamed from
80665         doc/glibc-functions/iswalnum_l.texi.
80666         * doc/posix-functions/iswalpha_l.texi: Renamed from
80667         doc/glibc-functions/iswalpha_l.texi.
80668         * doc/posix-functions/iswblank_l.texi: Renamed from
80669         doc/glibc-functions/iswblank_l.texi.
80670         * doc/posix-functions/iswcntrl_l.texi: Renamed from
80671         doc/glibc-functions/iswcntrl_l.texi.
80672         * doc/posix-functions/iswctype_l.texi: Renamed from
80673         doc/glibc-functions/iswctype_l.texi.
80674         * doc/posix-functions/iswdigit_l.texi: Renamed from
80675         doc/glibc-functions/iswdigit_l.texi.
80676         * doc/posix-functions/iswgraph_l.texi: Renamed from
80677         doc/glibc-functions/iswgraph_l.texi.
80678         * doc/posix-functions/iswlower_l.texi: Renamed from
80679         doc/glibc-functions/iswlower_l.texi.
80680         * doc/posix-functions/iswprint_l.texi: Renamed from
80681         doc/glibc-functions/iswprint_l.texi.
80682         * doc/posix-functions/iswpunct_l.texi: Renamed from
80683         doc/glibc-functions/iswpunct_l.texi.
80684         * doc/posix-functions/iswspace_l.texi: Renamed from
80685         doc/glibc-functions/iswspace_l.texi.
80686         * doc/posix-functions/iswupper_l.texi: Renamed from
80687         doc/glibc-functions/iswupper_l.texi.
80688         * doc/posix-functions/iswxdigit_l.texi: Renamed from
80689         doc/glibc-functions/iswxdigit_l.texi.
80690         * doc/posix-functions/isxdigit_l.texi: Renamed from
80691         doc/glibc-functions/isxdigit_l.texi.
80692         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
80693         doc/glibc-functions/mbsnrtowcs.texi.
80694         * doc/posix-functions/mkdtemp.texi: Renamed from
80695         doc/glibc-functions/mkdtemp.texi.
80696         * doc/posix-functions/newlocale.texi: Renamed from
80697         doc/glibc-functions/newlocale.texi.
80698         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
80699         doc/glibc-functions/nl_langinfo_l.texi.
80700         * doc/posix-functions/open_memstream.texi: Renamed from
80701         doc/glibc-functions/open_memstream.texi.
80702         * doc/posix-functions/opterr.texi: Renamed from
80703         doc/glibc-functions/opterr.texi.
80704         * doc/posix-functions/optind.texi: Renamed from
80705         doc/glibc-functions/optind.texi.
80706         * doc/posix-functions/optopt.texi: Renamed from
80707         doc/glibc-functions/optopt.texi.
80708         * doc/posix-functions/psignal.texi: Renamed from
80709         doc/glibc-functions/psignal.texi.
80710         * doc/posix-functions/scandir.texi: Renamed from
80711         doc/glibc-functions/scandir.texi.
80712         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
80713         doc/glibc-functions/sched_get_priority_min.texi.
80714         * doc/posix-functions/signgam.texi: Renamed from
80715         doc/glibc-functions/signgam.texi.
80716         * doc/posix-functions/stpcpy.texi: Renamed from
80717         doc/glibc-functions/stpcpy.texi.
80718         * doc/posix-functions/stpncpy.texi: Renamed from
80719         doc/glibc-functions/stpncpy.texi.
80720         * doc/posix-functions/strcasecmp_l.texi: Renamed from
80721         doc/glibc-functions/strcasecmp_l.texi.
80722         * doc/posix-functions/strcoll_l.texi: Renamed from
80723         doc/glibc-functions/strcoll_l.texi.
80724         * doc/posix-functions/strfmon_l.texi: Renamed from
80725         doc/glibc-functions/strfmon_l.texi.
80726         * doc/posix-functions/strftime_l.texi: Renamed from
80727         doc/glibc-functions/strftime_l.texi.
80728         * doc/posix-functions/strncasecmp_l.texi: Renamed from
80729         doc/glibc-functions/strncasecmp_l.texi.
80730         * doc/posix-functions/strndup.texi: Renamed from
80731         doc/glibc-functions/strndup.texi.
80732         * doc/posix-functions/strnlen.texi: Renamed from
80733         doc/glibc-functions/strnlen.texi.
80734         * doc/posix-functions/strsignal.texi: Renamed from
80735         doc/glibc-functions/strsignal.texi.
80736         * doc/posix-functions/strxfrm_l.texi: Renamed from
80737         doc/glibc-functions/strxfrm_l.texi.
80738         * doc/posix-functions/timer_gettime.texi: Renamed from
80739         doc/glibc-functions/timer_gettime.texi.
80740         * doc/posix-functions/tolower_l.texi: Renamed from
80741         doc/glibc-functions/tolower_l.texi.
80742         * doc/posix-functions/toupper_l.texi: Renamed from
80743         doc/glibc-functions/toupper_l.texi.
80744         * doc/posix-functions/towctrans_l.texi: Renamed from
80745         doc/glibc-functions/towctrans_l.texi.
80746         * doc/posix-functions/towlower_l.texi: Renamed from
80747         doc/glibc-functions/towlower_l.texi.
80748         * doc/posix-functions/towupper_l.texi: Renamed from
80749         doc/glibc-functions/towupper_l.texi.
80750         * doc/posix-functions/uselocale.texi: Renamed from
80751         doc/glibc-functions/uselocale.texi.
80752         * doc/posix-functions/vdprintf.texi: Renamed from
80753         doc/glibc-functions/vdprintf.texi.
80754         * doc/posix-functions/wcpcpy.texi:
80755         Renamed from doc/glibc-functions/wcpcpy.texi.
80756         * doc/posix-functions/wcpncpy.texi: Renamed from
80757         doc/glibc-functions/wcpncpy.texi.
80758         * doc/posix-functions/wcscasecmp.texi: Renamed from
80759         doc/glibc-functions/wcscasecmp.texi.
80760         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
80761         doc/glibc-functions/wcscasecmp_l.texi.
80762         * doc/posix-functions/wcscoll_l.texi: Renamed from
80763         doc/glibc-functions/wcscoll_l.texi.
80764         * doc/posix-functions/wcsdup.texi: Renamed from
80765         doc/glibc-functions/wcsdup.texi.
80766         * doc/posix-functions/wcsncasecmp.texi: Renamed from
80767         doc/glibc-functions/wcsncasecmp.texi.
80768         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
80769         doc/glibc-functions/wcsncasecmp_l.texi.
80770         * doc/posix-functions/wcsnlen.texi: Renamed from
80771         doc/glibc-functions/wcsnlen.texi.
80772         * doc/posix-functions/wcsnrtombs.texi: Renamed from
80773         doc/glibc-functions/wcsnrtombs.texi.
80774         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
80775         doc/glibc-functions/wcsxfrm_l.texi.
80776         * doc/posix-functions/wctrans_l.texi: Renamed from
80777         doc/glibc-functions/wctrans_l.texi.
80778         * doc/posix-functions/wctype_l.texi: Renamed from
80779         doc/glibc-functions/wctype_l.texi.
80780         * doc/gnulib.texi (Function Substitutes): Add these subsections.
80781         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
80782         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
80783         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
80784         these subsections.
80785         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
80786         Remove sections.
80788 2008-12-14  Bruno Haible  <bruno@clisp.org>
80790         Update doc for POSIX:2008.
80791         * doc/posix-functions/*.texi: Update URL of POSIX specification.
80793 2008-12-14  Bruno Haible  <bruno@clisp.org>
80795         Update doc for POSIX:2008.
80796         * doc/pastposix-functions/bcmp.texi: Renamed from
80797         doc/posix-functions/bcmp.texi.
80798         * doc/pastposix-functions/bcopy.texi: Renamed from
80799         doc/posix-functions/bcopy.texi.
80800         * doc/pastposix-functions/bsd_signal.texi: Renamed from
80801         doc/posix-functions/bsd_signal.texi.
80802         * doc/pastposix-functions/bzero.texi: Renamed from
80803         doc/posix-functions/bzero.texi.
80804         * doc/pastposix-functions/ecvt.texi: Renamed from
80805         doc/posix-functions/ecvt.texi.
80806         * doc/pastposix-functions/fcvt.texi: Renamed from
80807         doc/posix-functions/fcvt.texi.
80808         * doc/pastposix-functions/ftime.texi: Renamed from
80809         doc/posix-functions/ftime.texi.
80810         * doc/pastposix-functions/gcvt.texi: Renamed from
80811         doc/posix-functions/gcvt.texi.
80812         * doc/pastposix-functions/getcontext.texi: Renamed from
80813         doc/posix-functions/getcontext.texi.
80814         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
80815         doc/posix-functions/gethostbyaddr.texi.
80816         * doc/pastposix-functions/gethostbyname.texi: Renamed from
80817         doc/posix-functions/gethostbyname.texi.
80818         * doc/pastposix-functions/getwd.texi: Renamed from
80819         doc/posix-functions/getwd.texi.
80820         * doc/pastposix-functions/h_errno.texi: Renamed from
80821         doc/posix-functions/h_errno.texi.
80822         * doc/pastposix-functions/index.texi: Renamed from
80823         doc/posix-functions/index.texi.
80824         * doc/pastposix-functions/makecontext.texi: Renamed from
80825         doc/posix-functions/makecontext.texi.
80826         * doc/pastposix-functions/mktemp.texi: Renamed from
80827         doc/posix-functions/mktemp.texi.
80828         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
80829         doc/posix-functions/pthread_attr_getstackaddr.texi.
80830         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
80831         doc/posix-functions/pthread_attr_setstackaddr.texi.
80832         * doc/pastposix-functions/rindex.texi: Renamed from
80833         doc/posix-functions/rindex.texi.
80834         * doc/pastposix-functions/scalb.texi: Renamed from
80835         doc/posix-functions/scalb.texi.
80836         * doc/pastposix-functions/setcontext.texi: Renamed from
80837         doc/posix-functions/setcontext.texi.
80838         * doc/pastposix-functions/swapcontext.texi: Renamed from
80839         doc/posix-functions/swapcontext.texi.
80840         * doc/pastposix-functions/ualarm.texi: Renamed from
80841         doc/posix-functions/ualarm.texi.
80842         * doc/pastposix-functions/usleep.texi: Renamed from
80843         doc/posix-functions/usleep.texi.
80844         * doc/pastposix-functions/vfork.texi: Renamed from
80845         doc/posix-functions/vfork.texi.
80846         * doc/pastposix-functions/wcswcs.texi: Renamed from
80847         doc/posix-functions/wcswcs.texi.
80848         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
80849         (Function Substitutes): Update.
80851 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80853         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
80854         m4/strerror.m4.
80856 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80857             Bruno Haible  <bruno@clisp.org>
80859         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
80861 2008-12-13  Bruno Haible  <bruno@clisp.org>
80863         * modules/strtoull (Depends-on): Remove unistd.
80865 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80867         * modules/strtoull (Depends-on): Add stdlib.
80869 2008-12-11  Simon Josefsson  <simon@josefsson.org>
80871         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
80873 2008-12-10  Jim Meyering  <meyering@redhat.com>
80875         gl_ASSERT: don't say assertions are disabled when they're not
80876         * m4/assert.m4 (gl_ASSERT): Do not make configure report
80877         "checking whether to enable assertions... no", when they are in
80878         fact enabled.  This is solely a bug in the output of configure.
80879         In spite of saying "no", NDEBUG was not defined in that case.
80880         Also, as noted by Eric Blake, leave assertions enabled upon
80881         --enable-assert=INVALID.
80883 2008-12-10  Bruno Haible  <bruno@clisp.org>
80885         Change MODULES.html to refer to POSIX:2008 where possible.
80886         * MODULES.html.sh (POSIX2008_URL): New variable.
80887         (posix_headers): Remove sys/timeb, ucontext.
80888         (posix2001_headers): New variable.
80889         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
80890         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
80891         index, makecontext, mktemp, pthread_attr_getstackaddr,
80892         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
80893         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
80894         (posix2001_functions): New variable.
80895         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
80896         otherwise.
80898 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80900         add missing include to parse-duration.c
80901         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
80902         * modules/parse-duration (Depends-on): Add xalloc.
80904         fix sed script reading maint.mk
80905         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
80906         (syntax-check-rules): Use it.
80908 2008-12-09  Bruno Haible  <bruno@clisp.org>
80910         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
80911         MacOS X 10.4/PowerPC.
80912         Reported by Simon Josefsson.
80914 2008-12-08  Jim Meyering  <meyering@redhat.com>
80916         work around mingw's lack of some S_IF definitions
80917         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
80918         Reported by Simon Josefsson.
80920 2008-12-08  Bruno Haible  <bruno@clisp.org>
80922         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
80923         applied to variables. Needed on MacOS X 10.4/PowerPC.
80924         Reported by Simon Josefsson.
80926 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
80927         and Eric Blake  <ebb9@byu.net>
80929         assert: honor --enable-assert
80930         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
80931         order to honor --enable-assert, rather than treating it as a
80932         synonym for --disable-assert.
80934 2008-12-08  Jim Meyering  <meyering@redhat.com>
80936         * lib/posixtm.c: Remove now-useless declaration of mktime.
80938         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
80940 2008-12-07  Bruno Haible  <bruno@clisp.org>
80942         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
80943         test_once): Mark functions as static.
80944         * tests/test-tls.c (test_tls): Likewise.
80946 2008-12-07  Bruno Haible  <bruno@clisp.org>
80948         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
80949         iconv_register_autodetect.
80951 2008-12-07  Jim Meyering  <meyering@redhat.com>
80953         posixtm.c: avoid a warning
80954         * lib/posixtm.c (posixtime): Don't initialize tm0.
80955         It's no longer needed to placate gcc4's -Wuninitialized,
80956         and the attempt to placate would elicit a new warning.
80958         unicodeio.c: mark unused parameters
80959         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
80960         (fallback_failure_callback): Likewise.
80962 2008-12-07  Bruno Haible  <bruno@clisp.org>
80964         * gnulib-tool (func_create_testdir): When building the tests
80965         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
80966         Reported by Simon Josefsson.
80968 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80970         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
80972 2008-12-06  Bruno Haible  <bruno@clisp.org>
80974         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
80975         Suggested by Eric Blake.
80977 2008-12-06  Bruno Haible  <bruno@clisp.org>
80979         Fix a c-stack test failure on MacOS X.
80980         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
80981         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
80982         handler for SIGBUS as well.
80983         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
80984         install a signal handler for SIGBUS as well.
80985         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
80987 2008-12-06  Bruno Haible  <bruno@clisp.org>
80989         Advocacy documentation.
80990         * doc/gnulib-intro.texi (Benefits): New section.
80991         * doc/gnulib.texi: Update.
80993 2008-12-06  Bruno Haible  <bruno@clisp.org>
80995         Document the 'manywarnings' module.
80996         * doc/manywarnings.texi: New file.
80997         * doc/gnulib.texi: Include it.
80999 2008-12-05  Eric Blake  <ebb9@byu.net>
81001         tests: silence some gcc warnings
81002         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
81003         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
81004         type mismatches.
81006 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81007             Bruno Haible  <bruno@clisp.org>
81009         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
81011 2008-11-29  Jim Meyering  <meyering@redhat.com>
81013         unicodeio.c: mark unused parameters
81014         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
81015         (fallback_failure_callback): Likewise.
81017         fts: fix a thinko
81018         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
81019         (set_stat_type): Return S_IF*-valued "type" directly.
81020         Prompted by James Youngman's spotting a related bug.
81021         Confirmed by further testing through find.
81023         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
81024         * lib/fts.c (D_TYPE): Define.
81025         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
81026         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
81027         (s_ifmt_shift_bits): New function.
81028         (set_stat_type): New function.
81029         (fts_build): When not calling fts_stat, call set_stat_type
81030         to propagate dirent.d_type info to fts_read caller.
81031         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
81032         fts_statp->st_mode type information may be valid.
81034 2008-11-28  Simon Josefsson  <simon@josefsson.org>
81036         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
81037         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
81038         <sds@gnu.org>.
81040 2008-11-20  Bruno Haible  <bruno@clisp.org>
81042         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
81043         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
81044         INCLUDE_NEXT.
81045         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
81046         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
81047         * modules/math (Makefile.am): Substitute
81048         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
81049         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
81051 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
81052             Bruno Haible  <bruno@clisp.org>
81054         * lib/stdint.in.h: Define all type macros so that their expansion is
81055         a single typedef'ed token. Fixes a compilation failure in Boost which
81056         does "using ::int8_t;".
81058 2008-11-18  Simon Josefsson  <simon@josefsson.org>
81060         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
81061         gl_MANYWARN_ALL_GCC.
81062         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
81063         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
81064         * modules/manywarnings: New file.
81065         * MODULES.html.sh: Mention manywarnings module.
81067 2008-11-18  Bruno Haible  <bruno@clisp.org>
81069         * doc/gnulib-tool.texi (Unit tests): New section.
81071 2008-11-18  Simon Josefsson  <simon@josefsson.org>
81073         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
81074         paths like 'lib/po/foo.po'.
81076 2008-11-17  Simon Josefsson  <simon@josefsson.org>
81078         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
81079         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
81081 2008-11-17  Simon Josefsson  <simon@josefsson.org>
81083         * m4/warnings.m4: Use CPPFLAGS to really check whether the
81084         parameter works.
81086 2008-11-17  Simon Josefsson  <simon@josefsson.org>
81088         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
81090 2008-11-17  Bruce Korb  <bkorb@gnu.org>
81092         * modules/parse-duration-tests: New file.
81093         * tests/test-parse-duration.sh: New file.
81094         * tests/test-parse-duration.c: New file.
81096         New module 'parse-duration'.
81097         * lib/parse-duration.h: New file.
81098         * lib/parse-duration.c: New file.
81099         * modules/parse-duration: New file.
81101 2008-11-17  Bruno Haible  <bruno@clisp.org>
81103         * tests/test-select-out.sh: Comment out the first pipe test.
81104         Reported by Simon Josefsson.
81106 2008-11-17  Bruno Haible  <bruno@clisp.org>
81108         * modules/getaddrinfo (Depends-on): Add servent, hostent.
81109         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
81110         gl_HOSTENT.
81112 2008-11-17  Bruno Haible  <bruno@clisp.org>
81114         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
81115         -lnetwork and -lnet. Needed for Haiku and BeOS.
81117 2008-11-16  Bruno Haible  <bruno@clisp.org>
81119         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
81121 2008-11-16  Bruno Haible  <bruno@clisp.org>
81123         Avoid test failure on Haiku.
81124         * tests/test-fsync.c: Include <errno.h>.
81125         (main): Don't require that fsync (0) fails.
81127 2008-11-15  Bruno Haible  <bruno@clisp.org>
81129         New module 'hostent'.
81130         * modules/hostent: New file.
81131         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
81133 2008-11-15  Bruno Haible  <bruno@clisp.org>
81135         New module 'servent'.
81136         * modules/servent: New file.
81137         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
81139 2008-11-15  Bruno Haible  <bruno@clisp.org>
81141         Avoid generating same test program with two different rules.
81142         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
81143         test-frexp to test-frexp-nolibm.
81144         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
81145         test-frexpl to test-frexpl-nolibm.
81147 2008-11-15  Bruno Haible  <bruno@clisp.org>
81149         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
81150         $(FREXPL_LIBM).
81152 2008-11-15  Bruno Haible  <bruno@clisp.org>
81154         * lib/netdb.in.h: Activate the definitions also when the system's
81155         <netdb.h> has 'struct addrinfo'.
81156         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
81157         EAI_OVERFLOW or AI_NUMERICSERV.
81158         * doc/posix-headers/netdb.texi: Document the problem.
81160 2008-11-15  Bruno Haible  <bruno@clisp.org>
81162         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
81164         Make the 'sched' module work on platforms where <sched.h> exists but
81165         is incomplete (such as Haiku).
81166         * lib/sched.in.h; Include the system's <sched.h> if it exists.
81167         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
81168         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
81169         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
81170         HAVE_STRUCT_SCHED_PARAM.
81171         * modules/sched (Depends-on): Add include_next.
81172         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
81173         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
81174         * doc/posix-headers/sched.texi: Document the issue.
81176 2008-11-13  Jim Meyering  <meyering@redhat.com>
81178         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
81179         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
81180         test would fail due to the difference in the Report bugs to ...
81181         line.  The expected address is empty, "<>", while the actual
81182         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
81184 2008-11-12  Bruno Haible  <bruno@clisp.org>
81186         lstat: don't compile lstat.c on systems lacking lstat
81187         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
81188         which don't have lstat; this is handled by lib/sys_stat.in.h already.
81189         Reported by Daniel P. Berrange via Jim Meyering.
81191 2008-11-12  Jim Meyering  <meyering@redhat.com>
81193         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
81195 2008-11-12  Simon Josefsson  <simon@josefsson.org>
81197         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
81198         instead.
81200 2008-11-12  Bruno Haible  <bruno@clisp.org>
81202         * lib/unicodeio.c: Include unistr.h.
81203         (utf8_wctomb): Remove function.
81204         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
81206 2008-11-12  Simon Josefsson  <simon@josefsson.org>
81208         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
81209         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
81210         <bruno@clisp.org>.
81211         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
81213 2008-11-12  Simon Josefsson  <simon@josefsson.org>
81215         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
81216         * doc/gnulib.texi: Add section for warnings.
81218 2008-11-11  Bruno Haible  <bruno@clisp.org>
81220         * lib/sockets.h: Add a comment.
81222 2008-11-11  Karl Berry  <karl@gnu.org>
81224         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
81226 2008-11-11  Eric Blake  <ebb9@byu.net>
81228         fdl.texi: avoid git symlinks
81229         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
81231 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
81233         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
81235 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
81237         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
81238         (gl_WARN_ADD): Substitute $2 if literal.
81240 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
81242         * m4/warning.m4: Remove.
81244 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
81246         * m4/warnings.m4: Almost complete rewrite. :-)
81248 2008-11-10  Simon Josefsson  <simon@josefsson.org>
81250         * modules/warnings: New module.
81251         * m4/warnings.m4: New file.
81252         * MODULES.html.sh: Mention warnings module.
81253         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
81254         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81256 2008-11-10  Eric Blake  <ebb9@byu.net>
81258         fdl.texi: make a symlink to the latest version
81259         * doc/standards.texi: Revert today's earlier change.
81260         * doc/fdl-1.2.texi: Rename from old fdl.texi...
81261         * doc/fdl.texi: ...and replace this with a symlink to the newer
81262         fdl-1.3.texi.
81264 2008-11-10  Bruno Haible  <bruno@clisp.org>
81266         * tests/test-select-fd.c (main): Accept the result file name as fourth
81267         argument.
81268         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
81269         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
81271 2008-11-10  Bruno Haible  <bruno@clisp.org>
81273         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
81274         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
81275         as autoconf-substituted macros.
81276         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
81277         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
81278         gl_NETDB_H_DEFAULTS. Set these variables.
81279         * modules/netdb (Makefile.am): Substitute these variables.
81281 2008-11-10  Eric Blake  <ebb9@byu.net>
81283         standards.texi: include correct file for FDL 1.3
81284         * doc/standards.texi (GNU Free Documentation License): Change
81285         include file to pull in FDL 1.3, not 1.2.
81287         fdl.texi: revert accidental change to license
81288         * doc/fdl.texi: This is FDL 1.2, not 1.3.
81290 2008-11-10  Bruno Haible  <bruno@clisp.org>
81292         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
81293         cross-compiling guesses also when the native compile gives no result.
81295 2008-11-10  Bruno Haible  <bruno@clisp.org>
81297         * lib/spawni.c (__spawni): Force variable into the stack.
81299 2008-11-10  Bruno Haible  <bruno@clisp.org>
81301         Add support for Haiku.
81302         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
81303         glibc and BeOS, but also on Haiku.
81304         * lib/fpurge.c (fpurge): Likewise.
81305         * lib/freadable.c (freadable): Likewise.
81306         * lib/freadahead.c (freadahead): Likewise.
81307         * lib/freading.c (freading): Likewise.
81308         * lib/freadptr.c (freadptr): Likewise.
81309         * lib/freadseek.c (freadptrinc): Likewise.
81310         * lib/fseeko.c (rpl_fseeko): Likewise.
81311         * lib/fseterr.c (fseterr): Likewise.
81312         * lib/fwritable.c (fwritable): Likewise.
81313         * lib/fwriting.c (fwriting): Likewise.
81314         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
81316 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
81318         * lib/config.charset: Treat Haiku like BeOS.
81320 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
81322         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
81323         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
81325 2008-11-08  Bruno Haible  <bruno@clisp.org>
81327         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
81328         AC_CACHE_CHECK.
81330 2008-11-08  Bruno Haible  <bruno@clisp.org>
81332         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
81334 2008-11-08  Bruno Haible  <bruno@clisp.org>
81336         * tests/test-select-fd.c: New file.
81337         * tests/test-select-in.sh: New file.
81338         * tests/test-select-out.sh: New file.
81339         * tests/test-select-stdin.c: New file.
81340         * modules/select-tests (Files): Add the new files.
81341         (Depends-on): Add gettimeofday.
81342         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
81343         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
81344         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
81346 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
81347             Bruno Haible  <bruno@clisp.org>
81349         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
81351 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
81353         * build-aux/pmccabe2html: Added support for C++ source files.
81355 2008-11-05  Ben Pfaff  <blp@gnu.org>
81357         Fix lib/close.c build on Windows.
81358         * modules/close (Files): Add lib/w32sock.h.
81360 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
81362         Accept Bison's NEWS format.
81363         * build-aux/announce-gen (print_news_deltas): Tweak
81364         $re_prefix.
81366 2008-11-04  Bruno Haible  <bruno@clisp.org>
81368         * modules/random_r (Maintainer): Add glibc.
81370 2008-11-04  Simon Josefsson  <simon@josefsson.org>
81372         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
81373         by karl@freefriends.org (Karl Berry).
81374         * doc/alloca.texi: Likewise.
81375         * doc/c-ctype.texi: Likewise.
81376         * doc/c-strcase.texi: Likewise.
81377         * doc/c-strcaseeq.texi: Likewise.
81378         * doc/c-strcasestr.texi: Likewise.
81379         * doc/c-strstr.texi: Likewise.
81380         * doc/c-strtod.texi: Likewise.
81381         * doc/c-strtold.texi: Likewise.
81382         * doc/ctime.texi: Likewise.
81383         * doc/error.texi: Likewise.
81384         * doc/fdl.texi: Likewise.
81385         * doc/gcd.texi: Likewise.
81386         * doc/getdate.texi: Likewise.
81387         * doc/gnulib-intro.texi: Likewise.
81388         * doc/gnulib-tool.texi: Likewise.
81389         * doc/gnulib.texi: Likewise.
81390         * doc/inet_ntoa.texi: Likewise.
81391         * doc/maintain.texi: Likewise.
81392         * doc/make-stds.texi: Likewise.
81393         * doc/quote.texi: Likewise.
81394         * doc/regexprops-generic.texi: Likewise.
81395         * doc/standards.texi: Likewise.
81396         * doc/verify.texi: Likewise.
81397         * doc/visibility.texi: Likewise.
81398         * doc/gnulib.texi (GNU Free Documentation License): Include
81399         fdl-1.3.texi instead of fdl.texi.
81401 2008-11-04  Simon Josefsson  <simon@josefsson.org>
81403         * doc/fdl-1.3.texi: New file, from
81404         <http://www.gnu.org/licenses/fdl-1.3.texi>.
81405         * modules/fdl-1.3: Add.
81406         * MODULES.html.sh: Add fdl-1.3.
81408 2008-11-03  Bruno Haible  <bruno@clisp.org>
81410         Make determination of absolute name of header file work with AIX xlc.
81411         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
81412         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
81413         preprocessing.
81414         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
81415         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
81417 2008-11-03  Simon Josefsson  <simon@josefsson.org>
81419         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
81420         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
81421         <ludo@gnu.org>.
81423 2008-11-02  Bruno Haible  <bruno@clisp.org>
81425         Mark 'strpbrk' obsolete.
81426         * modules/strpbrk (Status, Notice): New sections.
81427         * modules/strtok_r (Depends-on): Add strpbrk.
81429 2008-11-02  Bruno Haible  <bruno@clisp.org>
81431         Mark 'strdup' obsolete.
81432         * modules/strdup (Status, Notice): New sections.
81433         * modules/findprog (Depends-on): Add strdup.
81434         * modules/getaddrinfo (Depends-on): Likewise.
81435         * modules/localename (Depends-on): Likewise.
81436         * modules/relocatable-lib (Depends-on): Likewise.
81437         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
81438         * modules/relocatable-prog (Depends-on): Likewise.
81439         * modules/trim (Depends-on): Likewise.
81440         * modules/unictype/gen-ctype (Depends-on): Likewise.
81441         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
81443 2008-11-02  Bruno Haible  <bruno@clisp.org>
81445         Mark 'strcspn' obsolete.
81446         * modules/strcspn (Status, Notice): New sections.
81448 2008-11-02  Bruno Haible  <bruno@clisp.org>
81450         Mark 'rmdir' obsolete.
81451         * modules/rmdir (Status, Notice): New sections.
81452         * modules/clean-temp (Depends-on): Add rmdir.
81453         * modules/openat (Depends-on): Likewise.
81455 2008-11-02  Bruno Haible  <bruno@clisp.org>
81457         Mark 'raise' obsolete.
81458         * modules/raise (Status, Notice): New sections.
81459         (Include): Specify <signal.h>.
81460         * modules/stdio (Depends-on): Add raise.
81461         * modules/write (Depends-on): Likewise.
81463 2008-11-02  Bruno Haible  <bruno@clisp.org>
81465         Mark 'memset' obsolete.
81466         * modules/memset (Status, Notice): New sections.
81468 2008-11-02  Bruno Haible  <bruno@clisp.org>
81470         Mark 'memmove' obsolete.
81471         * modules/memmove (Status, Notice): New sections.
81472         * modules/argp (Depends-on): Add memmove.
81473         * modules/argz (Depends-on): Likewise.
81474         * modules/canonicalize (Depends-on): Likewise.
81475         * modules/canonicalize-lgpl (Depends-on): Likewise.
81476         * modules/fts (Depends-on): Likewise.
81477         * modules/getcwd (Depends-on): Likewise.
81478         * modules/human (Depends-on): Likewise.
81479         * modules/regex (Depends-on): Likewise.
81480         * modules/striconveh (Depends-on): Likewise.
81481         * modules/trim (Depends-on): Likewise.
81482         * modules/unistr/u8-move (Depends-on): Likewise.
81483         * modules/unistr/u16-move (Depends-on): Likewise.
81484         * modules/unistr/u32-move (Depends-on): Likewise.
81486 2008-11-02  Bruno Haible  <bruno@clisp.org>
81488         Mark 'memcpy' obsolete.
81489         * modules/memcpy (Status, Notice): New sections.
81491 2008-11-02  Bruno Haible  <bruno@clisp.org>
81493         Mark 'memcmp' obsolete.
81494         * modules/memcmp (Status, Notice): New sections.
81495         * modules/argmatch (Depends-on): Add memchr.
81496         * modules/backupfile (Depends-on): Likewise.
81497         * modules/c-strcasestr (Depends-on): Likewise.
81498         * modules/crypto/des (Depends-on): Likewise.
81499         * modules/csharpcomp (Depends-on): Likewise.
81500         * modules/fnmatch (Depends-on): Likewise.
81501         * modules/git-merge-changelog (Depends-on): Likewise.
81502         * modules/isnand (Depends-on): Likewise.
81503         * modules/isnand-nolibm (Depends-on): Likewise.
81504         * modules/isnanf (Depends-on): Likewise.
81505         * modules/isnanf-nolibm (Depends-on): Likewise.
81506         * modules/isnanl (Depends-on): Likewise.
81507         * modules/isnanl-nolibm (Depends-on): Likewise.
81508         * modules/mbchar (Depends-on): Likewise.
81509         * modules/memcoll (Depends-on): Likewise.
81510         * modules/quotearg (Depends-on): Likewise.
81511         * modules/regex (Depends-on): Likewise.
81512         * modules/relocatable-prog (Depends-on): Likewise.
81513         * modules/same (Depends-on): Likewise.
81514         * modules/signbit (Depends-on): Likewise.
81515         * modules/strcasestr-simple (Depends-on): Likewise.
81516         * modules/unictype/gen-ctype (Depends-on): Likewise.
81517         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
81518         * modules/uniname/uniname (Depends-on): Likewise.
81519         * modules/unistr/u8-cmp (Depends-on): Likewise.
81521 2008-11-02  Bruno Haible  <bruno@clisp.org>
81523         Mark 'memchr' obsolete.
81524         * modules/memchr (Status, Notice): New sections.
81525         * modules/argp (Depends-on): Add memchr.
81526         * modules/base64 (Depends-on): Likewise.
81527         * modules/c-strcasestr (Depends-on): Likewise.
81528         * modules/chdir-long (Depends-on): Likewise.
81529         * modules/fnmatch (Depends-on): Likewise.
81530         * modules/getsubopt (Depends-on): Likewise.
81531         * modules/git-merge-changelog (Depends-on): Likewise.
81532         * modules/glob (Depends-on): Likewise.
81533         * modules/strcasestr-simple (Depends-on): Likewise.
81534         * modules/strnlen (Depends-on): Likewise.
81536 2008-11-02  Bruno Haible  <bruno@clisp.org>
81538         Mark 'atexit' obsolete.
81539         * modules/atexit (Status, Notice): New sections.
81540         * modules/chdir-long (Depends-on): Add atexit.
81541         * modules/wait-process (Depends-on): Likewise.
81543 2008-11-02  Bruno Haible  <bruno@clisp.org>
81545         * gnulib-tool: New option --with-obsolete.
81546         (func_usage): Document it.
81547         (func_modules_transitive_closure): Drop obsolete dependencies if
81548         incobsolete is not true.
81549         (func_import): Read and save the incobsolete variable to the cache.
81551 2008-11-02  Bruno Haible  <bruno@clisp.org>
81553         * modules/TEMPLATE-EXTENDED: New field 'Status'.
81554         * gnulib-tool: New option --extract-status.
81555         (func_usage): Document it.
81556         (sed_extract_prog): Recognize it.
81557         (func_get_status): New function.
81559 2008-10-30  Simon Josefsson  <simon@josefsson.org>
81561         * modules/sockets (License): Change from LGPL to LGPLv2+.
81563 2008-10-28  Simon Josefsson  <simon@josefsson.org>
81565         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
81567 2008-10-28  Simon Josefsson  <simon@josefsson.org>
81569         * MODULES.html.sh (Support for systems lacking POSIX:2001):
81570         Mention times and sys_times.
81571         * modules/sys_times, modules/sys_times-tests: New modules.
81572         * modules/times, modules/times-tests: Likewise
81573         * m4/sys_times_h.m4: New file.
81574         * lib/sys_times.in.h: Likewise
81575         * lib/times.c: Likewise.
81576         * tests/test-sys_times.c: Likewise.
81577         * tests/test-times.c: Likewise.
81578         * doc/posix-headers/sys_times.texi: Update.
81579         * doc/posix-functions/times.texi: Update.
81581 2008-10-28  Jim Meyering  <meyering@redhat.com>
81583         * modules/tempname (Depends-on): Add lstat.
81585         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
81587 2008-10-28  Simon Josefsson  <simon@josefsson.org>
81589         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
81590         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
81591         using idiom used elsewhere in gnulib.
81593 2008-10-27  Jim Meyering  <meyering@redhat.com>
81595         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
81597 2008-10-27  Simon Josefsson  <simon@josefsson.org>
81599         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
81600         TESTS_ENVIRONMENT, for shell scripts that needs to call built
81601         programs.
81602         * tests/test-argp-2.sh: Use $EXEEXT when needed.
81604 2008-10-27  Simon Josefsson  <simon@josefsson.org>
81606         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
81608 2008-10-27  Bruno Haible  <bruno@clisp.org>
81610         * tests/test-lstat.c: Include <stdio.h>.
81612 2008-10-27  Simon Josefsson  <simon@josefsson.org>
81614         * modules/lstat-tests: New module.
81615         * tests/test-lstat.c: New file.
81617 2008-10-26  Jim Meyering  <meyering@redhat.com>
81619         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
81621 2008-10-26  Simon Josefsson  <simon@josefsson.org>
81622             Bruno Haible  <bruno@clisp.org>
81624         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
81625         * modules/configmake (Include): Add a note that the include must come
81626         after all system headers.
81627         * lib/javaversion.c: Include configmake.h after all other includes.
81629 2008-10-26  Bruno Haible  <bruno@clisp.org>
81631         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
81632         HAVE_STRUCT_RANDOM_DATA to 1.
81633         (gl_STDLIB_H): Simplify.
81635 2008-10-26  Simon Josefsson  <simon@josefsson.org>
81637         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
81638         substitute HAVE_STRUCT_RANDOM_DATA.
81639         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
81640         random_data.
81641         * modules/stdlib (Makefile.am): Substitute
81642         HAVE_STRUCT_RANDOM_DATA.
81644 2008-10-26  Simon Josefsson  <simon@josefsson.org>
81646         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
81647         * doc/gnulib-intro.texi (Copyright): Likewise.
81649 2008-10-26  Simon Josefsson  <simon@josefsson.org>
81651         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
81652         findings.
81654 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
81655             Bruno Haible  <bruno@clisp.org>
81657         * lib/unistd.in.h: Include <winsock2.h>.
81658         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
81659         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
81660         Provide dummy declarations.
81661         (gethostname): Override.
81662         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
81663         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
81664         gl_PREREQ_SYS_H_WINSOCK2.
81665         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
81666         * doc/posix-functions/gethostname.texi: More details.
81668 2008-10-25  Bruno Haible  <bruno@clisp.org>
81670         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
81671         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
81672         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
81674         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
81675         here ...
81676         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
81677         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
81678         gl_UNISTD_H_DEFAULTS.
81680 2008-10-25  Eric Blake  <ebb9@byu.net>
81682         signbit: avoid spurious compiler failure
81683         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
81684         declarations inside function.
81686 2008-10-24  Simon Josefsson  <simon@josefsson.org>
81687             Bruno Haible  <bruno@clisp.org>
81689         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
81690         * modules/random_r (Depends-on): Add stdint.
81692 2008-10-24  Bruno Haible  <bruno@clisp.org>
81694         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
81695         Eggert.
81696         * modules/strerror (License): Likewise.
81698 2008-10-24  Jim Meyering  <meyering@redhat.com>
81700         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
81701         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
81703 2008-10-24  Eric Blake  <ebb9@byu.net>
81705         getgroups: fix compilation when getgroups is available
81706         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
81707         but with <config.h> override of getgroups disabled.
81709 2008-10-24  Simon Josefsson  <simon@josefsson.org>
81711         * doc/gnulib.texi (Header files): Add note about C++ problems.
81712         Explained by Bruno Haible <bruno@clisp.org>.
81714 2008-10-23  Bruno Haible  <bruno@clisp.org>
81716         Define a dummy SA_NODEFER macro on Interix.
81717         * lib/signal.in.h (SA_NODEFER): Define fallback.
81718         Reported by Aleksey Cheusov <cheusov@tut.by> via
81719         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
81721 2008-10-23  Bruno Haible  <bruno@clisp.org>
81723         * modules/freadahead (License): Change to LGPLv2+.
81724         Suggested by Simon Josefsson.
81726 2008-10-23  Jim Meyering  <meyering@redhat.com>
81728         random_r: new module
81729         * modules/random_r: New file.
81730         * m4/random_r.m4: New file.
81731         * lib/random_r.c: New file, from glibc.
81732         * modules/random_r-tests: New file.
81733         * tests/test-random_r.c: New file.
81734         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
81735          Declare.
81736         (RAND_MAX): Define.
81737         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
81738         * modules/stdlib: Substitute them, too.
81739         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
81740         * doc/glibc-functions/initstate_r.texi: Mention the new module.
81741         * doc/glibc-functions/random_r.texi: Likewise.
81742         * doc/glibc-functions/setstate_r.texi: Likewise.
81743         * doc/glibc-functions/srandom_r.texi: Likewise.
81744         * config/srclist.txt: Mention it.
81746 2008-10-23  David Lutterkort  <lutter@redhat.com>
81748         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
81749         link requirement
81751 2008-10-23  Jim Meyering  <meyering@redhat.com>
81753         selinux-h: mark parameters of stub functions as intentionally unused
81754         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
81755         * lib/se-context.in.h: Likewise.
81757 2008-10-22  Simon Josefsson  <simon@josefsson.org>
81759         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
81761 2008-10-22  Simon Josefsson  <simon@josefsson.org>
81763         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
81765 2008-10-22  Eric Blake  <ebb9@byu.net>
81767         glthread/thread: avoid compiler warning
81768         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
81769         Add unreachable abort to silence compiler.
81771 2008-10-22  Eric Blake  <ebb9@byu.net>
81773         netdb: also supply struct addrinfo for cygwin 1.5.x
81774         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
81775         older cygwin.
81776         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
81777         cygwin.
81778         * doc/posix-headers/netdb.texi (netdb.h): Document this.
81780 2008-10-22  Bruno Haible  <bruno@clisp.org>
81782         * users.txt: Update entry about pspp.
81784 2008-10-21  Bruno Haible  <bruno@clisp.org>
81786         Simplification.
81787         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
81788         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
81790         Simplification.
81791         * lib/ioctl.c (ioctl): Don't undefine.
81792         * lib/socket.c (socket): Don't undefine.
81794         Remove unused module indicator macros.
81795         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
81796         GNULIB_$1 as a C macro.
81798         * doc/posix-functions/close.texi: Undo last change.
81799         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
81800         Windows platforms.
81802 2008-10-21  Bruno Haible  <bruno@clisp.org>
81804         Add gethostname() declaration to <unistd.h>.
81805         * lib/unistd.in.h (gethostname): New declaration.
81806         * lib/gethostname.c: Include <unistd.h>.
81807         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
81808         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
81809         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
81810         and HAVE_GETHOSTNAME.
81811         * modules/gethostname (Depends-on): Add unistd.
81812         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
81813         (Include): Specify <unistd.h>.
81814         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
81815         HAVE_GETHOSTNAME.
81816         * tests/test-gethostname.c: Include <unistd.h> first.
81818 2008-10-21  Bruno Haible  <bruno@clisp.org>
81820         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
81821         * modules/select-tests (Depends-on): Likewise.
81822         Reported by Simon Josefsson.
81824 2008-10-21  Simon Josefsson  <simon@josefsson.org>
81826         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
81827         * lib/accept.c: New file, based on winsock.c.
81828         * lib/bind.c: New file, based on winsock.c.
81829         * lib/connect.c: New file, based on winsock.c.
81830         * lib/getpeername.c: New file, based on winsock.c.
81831         * lib/getsockname.c: New file, based on winsock.c.
81832         * lib/getsockopt.c: New file, based on winsock.c.
81833         * lib/ioctl.c: New file, based on winsock.c.
81834         * lib/listen.c: New file, based on winsock.c.
81835         * lib/recv.c: New file, based on winsock.c.
81836         * lib/recvfrom.c: New file, based on winsock.c.
81837         * lib/send.c: New file, based on winsock.c.
81838         * lib/sendto.c: New file, based on winsock.c.
81839         * lib/setsockopt.c: New file, based on winsock.c.
81840         * lib/shutdown.c: New file, based on winsock.c.
81841         * lib/socket.c: New file, based on winsock.c.
81842         * lib/w32sock.h: New file, based on winsock.c.
81843         * lib/winsock.c: Remove file.
81844         * modules/accept: Likewise.
81845         * modules/bind: Likewise.
81846         * modules/connect: Likewise.
81847         * modules/getpeername: Likewise.
81848         * modules/getsockname: Likewise.
81849         * modules/getsockopt: Likewise.
81850         * modules/ioctl: Likewise.
81851         * modules/listen: Likewise.
81852         * modules/recv: Likewise.
81853         * modules/recvfrom: Likewise.
81854         * modules/send: Likewise.
81855         * modules/sendto: Likewise.
81856         * modules/setsockopt: Likewise.
81857         * modules/shutdown: Likewise.
81858         * modules/socket: Use socket.c instead of winsock.c.
81859         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
81860         * doc/posix-functions/accept.texi: Doc fix.
81861         * doc/posix-functions/bind.texi: Doc fix.
81862         * doc/posix-functions/close.texi: Doc fix.
81863         * doc/posix-functions/connect.texi: Doc fix.
81864         * doc/posix-functions/getpeername.texi: Doc fix.
81865         * doc/posix-functions/getsockname.texi: Doc fix.
81866         * doc/posix-functions/getsockopt.texi: Doc fix.
81867         * doc/posix-functions/ioctl.texi: Doc fix.
81868         * doc/posix-functions/listen.texi: Doc fix.
81869         * doc/posix-functions/recv.texi: Doc fix.
81870         * doc/posix-functions/recvfrom.texi: Doc fix.
81871         * doc/posix-functions/send.texi: Doc fix.
81872         * doc/posix-functions/sendto.texi: Doc fix.
81873         * doc/posix-functions/setsockopt.texi: Doc fix.
81874         * doc/posix-functions/shutdown.texi: Doc fix.
81875         * doc/posix-functions/socket.texi: Doc fix.
81877 2008-10-20  Bruno Haible  <bruno@clisp.org>
81879         Take into account the role of SIGABRT_COMPAT on Windows 2008.
81880         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
81881         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
81882         as an alias for SIGABRT.
81883         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
81884         (sigaction): Map it to SIGABRT.
81885         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
81887 2008-10-20  Bruno Haible  <bruno@clisp.org>
81889         * lib/fts.c: Don't include lstat.h.
81890         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
81892         Move the lstat() declaration to <sys/stat.h>.
81893         * lib/lstat.h: Remove file.
81894         * lib/sys_stat.in.h: Add special invocation convention.
81895         (lstat): New declaration.
81896         * lib/lstat.c (orig_lstat): New function.
81897         (rpl_lstat): Use orig_lstat instead of lstat.
81898         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
81899         AC_C_INLINE. Set REPLACE_LSTAT.
81900         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
81901         and REPLACE_LSTAT.
81902         * modules/lstat (Files): Remove lib/lstat.h.
81903         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
81904         (Include): Specify <sys/stat.h> instead of lstat.h.
81905         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
81906         REPLACE_LSTAT.
81907         * NEWS: Mention the change.
81909 2008-10-20  Bruno Haible  <bruno@clisp.org>
81911         * modules/posix_spawn-tests: New file.
81912         * tests/test-posix_spawn3.c: New file.
81914 2008-10-20  Bruno Haible  <bruno@clisp.org>
81916         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
81917         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
81918         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
81919         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
81920         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
81922 2008-10-20  Bruno Haible  <bruno@clisp.org>
81924         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
81925         of posix_spawn on AIX 5.3.
81927 2008-10-20  Bruno Haible  <bruno@clisp.org>
81929         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
81931 2008-10-20  Bruno Haible  <bruno@clisp.org>
81933         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
81934         of AC_LANG_PROGRAM.
81936 2008-10-20  Simon Josefsson  <simon@josefsson.org>
81938         * lib/netdb.in.h: Don't define GNU specific constants until they
81939         are supported or needed.  Reported by Bruno Haible
81940         <bruno@clisp.org>.
81942 2008-10-20  Simon Josefsson  <simon@josefsson.org>
81944         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
81946 2008-10-20  Simon Josefsson  <simon@josefsson.org>
81948         * lib/getaddrinfo.h: Remove file.
81949         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
81950         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
81951         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
81952         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
81953         * modules/netdb: Substitute GNULIB_GETADDRINFO.
81954         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
81955         * tests/test-getaddrinfo.c: Likewise.
81956         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
81957         * NEWS: Mention change.
81959 2008-10-19  Bruno Haible  <bruno@clisp.org>
81961         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
81963 2008-10-19  Bruno Haible  <bruno@clisp.org>
81965         * lib/wait-process.c: Include simply <sys/wait.h>.
81966         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
81967         WIFSTOPPED): Remove fallback definitions.
81968         * modules/wait-process (Depends-on): Add sys_wait.
81970         New module 'sys_wait'.
81971         * modules/sys_wait: New file.
81972         * lib/sys_wait.in.h: New file, partially copied from
81973         lib/wait-process.c.
81974         * m4/sys_wait_h.m4: New file.
81975         * doc/posix-headers/sys_wait.texi: Mention the new module.
81977 2008-10-19  Bruno Haible  <bruno@clisp.org>
81979         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
81981 2008-10-19  Bruno Haible  <bruno@clisp.org>
81983         Assume that waitpid() fills an 'int' status, not a 'union wait'.
81984         * lib/wait-process.c (WAIT_T): Remove type.
81985         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
81986         (wait_subprocess): Update.
81988 2008-10-19  Bruno Haible  <bruno@clisp.org>
81990         New module 'atoll'.
81991         * modules/atoll: New file.
81992         * lib/stdlib.in.h (atoll): New declaration.
81993         * lib/atoll.c: New file, from glibc with modifications.
81994         * m4/atoll.m4: New file.
81995         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
81996         HAVE_ATOLL.
81997         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
81998         * doc/posix-functions/atoll.texi: Mention the new module.
82000 2008-10-19  Bruno Haible  <bruno@clisp.org>
82002         Add strtoull() declaration to <stdlib.h>.
82003         * lib/stdlib.in.h (strtoull): New declaration.
82004         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
82005         Set HAVE_STRTOULL.
82006         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
82007         HAVE_STRTOULL.
82008         * modules/strtoull (Depends-on): Add stdlib.
82009         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
82010         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
82011         HAVE_STRTOULL.
82013 2008-10-19  Bruno Haible  <bruno@clisp.org>
82015         Add strtoll() declaration to <stdlib.h>.
82016         * lib/stdlib.in.h (strtoll): New declaration.
82017         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
82018         Set HAVE_STRTOLL.
82019         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
82020         HAVE_STRTOLL.
82021         * modules/strtoll (Depends-on): Add stdlib.
82022         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
82023         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
82025 2008-10-19  Bruno Haible  <bruno@clisp.org>
82027         * modules/bcopy (Depends-on): Add strings.
82028         (Include): Specify <strings.h>.
82030 2008-10-19  Bruno Haible  <bruno@clisp.org>
82032         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
82034 2008-10-19  Bruno Haible  <bruno@clisp.org>
82036         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
82037         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
82038         mingw.
82040 2008-10-19  Bruno Haible  <bruno@clisp.org>
82042         * lib/atanl.c: Don't include isnanl.h.
82043         * lib/cosl.c: Likewise.
82044         * lib/ldexpl.c: Likewise.
82045         * lib/logl.c: Likewise.
82046         * lib/sinl.c: Likewise.
82047         * lib/sqrtl.c: Likewise.
82048         * lib/tanl.c: Likewise.
82050         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
82051         * lib/isnanf.h: Remove file.
82052         * lib/isnand.h: Remove file.
82053         * lib/isnanl.h: Remove file.
82054         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
82055         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
82056         macros.
82057         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
82058         HAVE_ISNANF, don't define it as a C macro.
82059         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
82060         HAVE_ISNAND, don't define it as a C macro.
82061         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
82062         HAVE_ISNANL, don't define it as a C macro.
82063         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
82064         HAVE_ISNAN[FDL].
82065         * modules/isnanf (Files): Remove lib/isnanf.h.
82066         (Depends-on): Add math.
82067         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
82068         (Include): Specify <math.h> instead of isnanf.h.
82069         * modules/isnand (Files): Remove lib/isnand.h.
82070         (Depends-on): Add math.
82071         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
82072         (Include): Specify <math.h> instead of isnand.h.
82073         * modules/isnanl (Files): Remove lib/isnanl.h.
82074         (Depends-on): Add math.
82075         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
82076         (Include): Specify <math.h> instead of isnanl.h.
82077         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
82078         HAVE_ISNAN[FDL].
82079         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
82080         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
82081         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
82082         * NEWS: Mention the change.
82084 2008-10-18  Bruno Haible  <bruno@clisp.org>
82086         Add getusershell(), setusershell(), endusershell() declarations to
82087         <unistd.h>.
82088         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
82089         declarations.
82090         * lib/getusershell.c: Include unistd.h.
82091         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
82092         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
82093         HAVE_GETUSERSHELL.
82094         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
82095         and HAVE_GETUSERSHELL.
82096         * modules/getusershell (Depends-on): Add unistd, extensions.
82097         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
82098         (Include): Specify <unistd.h>.
82099         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
82100         HAVE_GETUSERSHELL.
82102 2008-10-18  Bruno Haible  <bruno@clisp.org>
82104         Add a getloadavg() declaration to <stdlib.h>.
82105         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
82106         getloadavg declaration.
82107         (getloadavg): New declaration.
82108         * lib/getloadavg.c: Include <stdlib.h> first.
82109         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
82110         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
82111         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
82112         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
82113         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
82114         * modules/getloadavg (Depends-on): Add stdlib, extensions.
82115         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
82116         (Include): Specify <stdlib.h>.
82117         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
82118         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
82120 2008-10-18  Bruno Haible  <bruno@clisp.org>
82122         * lib/dirchownmod.c: Don't include lchmod.h.
82124         Move the lchmod() declaration to <sys/stat.h>.
82125         * lib/lchmod.h: Remove file.
82126         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
82127         (lchmod): New declaration, moved here from lib/lchown.h.
82128         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
82129         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
82130         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
82131         and HAVE_LCHMOD.
82132         * modules/lchmod (Files): Remove lib/lchmod.h.
82133         (Depends-on): Add sys_stat, extensions.
82134         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
82135         (Include): Specify <sys/stat.h> instead of lchmod.h.
82136         * modules/sys_stat (Depends-on): Add link-warning.
82137         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
82138         definition of GL_LINK_WARNING.
82139         * NEWS: Mention the change.
82141 2008-10-18  Bruno Haible  <bruno@clisp.org>
82143         * lib/fchdir.c: Don't include dirfd.h.
82144         * lib/fts.c: Likewise.
82145         * lib/getcwd.c: Likewise.
82146         * lib/glob.c: Likewise.
82148         Move the dirfd() declaration to <dirent.h>.
82149         * lib/dirfd.h: Remove file.
82150         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
82151         (dirfd): New declaration.
82152         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
82153         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
82154         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
82155         HAVE_DECL_DIRFD.
82156         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
82157         HAVE_DECL_DIRFD.
82158         * modules/dirfd (Files): Remove lib/dirfd.h.
82159         (Depends-on): Add dirent, extensions.
82160         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
82161         (Include): Specify <dirent.h> instead of dirfd.h.
82162         * modules/dirent (Depends-on): Add link-warning.
82163         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
82164         definition of GL_LINK_WARNING.
82165         * NEWS: Mention the change.
82167 2008-10-18  Bruno Haible  <bruno@clisp.org>
82169         Move the euidaccess() declaration to <unistd.h>.
82170         * lib/euidaccess.h: Remove file.
82171         * lib/unistd.in.h (euidaccess): New declaration.
82172         * lib/euidaccess.c: Don't include euidaccess.h.
82173         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
82174         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
82175         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
82176         and HAVE_EUIDACCESS.
82177         * modules/euidaccess (Files): Remove lib/euidaccess.h.
82178         (Depends-on): Add unistd.
82179         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
82180         (Include): Specify <unistd.h> instead of euidaccess.h.
82181         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
82182         HAVE_EUIDACCESS.
82183         * NEWS: Mention the change.
82185 2008-10-18  Bruno Haible  <bruno@clisp.org>
82187         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
82189         Move the getdomainname() declaration to <unistd.h>.
82190         * lib/getdomainname.h: Remove file.
82191         * lib/unistd.in.h (getdomainname): New declaration.
82192         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
82193         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
82194         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
82195         HAVE_GETDOMAINNAME.
82196         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
82197         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
82198         * modules/getdomainname (Files): Remove lib/getdomainname.h.
82199         (Depends-on): Add unistd, extensions.
82200         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
82201         (Includes): Specify <unistd.h> instead of getdomainname.h.
82202         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
82203         HAVE_GETDOMAINNAME.
82204         * NEWS: Mention the change.
82206 2008-10-18  Bruno Haible  <bruno@clisp.org>
82208         * modules/dirent: New file.
82209         * m4/dirent_h.m4: New file.
82210         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
82211         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
82212         * modules/fchdir (Files): Remove lib/dirent.in.h.
82213         (Depends-on): Add dirent.
82214         (Makefile.am): Move rules to modules/dirent.
82215         * doc/posix-headers/dirent.texi: Mention the new module.
82217 2008-10-18  Bruno Haible  <bruno@clisp.org>
82219         Avoid -Wunused-parameter warnings in public gnulib header files.
82220         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
82221         macro.
82222         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
82224 2008-10-18  Bruno Haible  <bruno@clisp.org>
82226         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
82227         * doc/glibc-functions/error.texi: Mention the module 'error'.
82228         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
82229         * doc/glibc-functions/getdomainname.texi: Mention the module
82230         'getdomainname'.
82231         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
82232         * doc/glibc-functions/getpagesize.texi: Mention the module
82233         'getpagesize'.
82234         * doc/glibc-functions/getusershell.texi: Mention the module
82235         'getusershell'.
82236         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
82237         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
82238         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
82239         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
82240         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
82241         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
82242         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
82243         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
82244         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
82245         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
82246         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
82247         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
82248         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
82249         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
82251 2008-10-17  Bruno Haible  <bruno@clisp.org>
82253         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
82254         HP-UX and IRIX, use -0.0L.
82255         * tests/test-ceill.c (minus_zero): Likewise.
82256         * tests/test-floorl.c (minus_zero): Likewise.
82257         * tests/test-frexpl.c (minus_zero): Likewise.
82258         * tests/test-isnan.c (minus_zerol): Likewise.
82259         * tests/test-isnanl.h (minus_zero): Likewise.
82260         * tests/test-ldexpl.c (minus_zero): Likewise.
82261         * tests/test-roundl.c (minus_zero): Likewise.
82262         * tests/test-signbit.c (minus_zerol): Likewise.
82263         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
82264         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
82265         * tests/test-truncl.c (minus_zero): Likewise.
82266         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
82267         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
82268         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
82269         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
82271 2008-10-17  Bruno Haible  <bruno@clisp.org>
82273         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
82274         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
82275         that it gets activated only for gcc >= 3.0.
82276         * lib/dirent.in.h: Likewise.
82277         * lib/errno.in.h: Likewise.
82278         * lib/fcntl.in.h: Likewise.
82279         * lib/float.in.h: Likewise.
82280         * lib/iconv.in.h: Likewise.
82281         * lib/inttypes.in.h: Likewise.
82282         * lib/locale.in.h: Likewise.
82283         * lib/math.in.h: Likewise.
82284         * lib/netdb.in.h: Likewise.
82285         * lib/netinet_in.in.h: Likewise.
82286         * lib/search.in.h: Likewise.
82287         * lib/signal.in.h: Likewise.
82288         * lib/spawn.in.h: Likewise.
82289         * lib/stdarg.in.h: Likewise.
82290         * lib/stdint.in.h: Likewise.
82291         * lib/stdio.in.h: Likewise.
82292         * lib/stdlib.in.h: Likewise.
82293         * lib/string.in.h: Likewise.
82294         * lib/strings.in.h: Likewise.
82295         * lib/sys_file.in.h: Likewise.
82296         * lib/sys_ioctl.in.h: Likewise.
82297         * lib/sys_select.in.h: Likewise.
82298         * lib/sys_socket.in.h: Likewise.
82299         * lib/sys_stat.in.h: Likewise.
82300         * lib/sys_time.in.h: Likewise.
82301         * lib/sysexits.in.h: Likewise.
82302         * lib/time.in.h: Likewise.
82303         * lib/unistd.in.h: Likewise.
82304         * lib/wchar.in.h: Likewise.
82305         * lib/wctype.in.h: Likewise.
82306         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
82308 2008-10-17  Jim Meyering  <meyering@redhat.com>
82310         ignore-value: don't depend on inline module
82311         * modules/ignore-value (Depends-on): Remove 'inline'.
82312         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
82313         Suggestion from Bruno Haible.
82315 2008-10-17  Bruno Haible  <bruno@clisp.org>
82317         New implementation of condition variables for Win32.
82318         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
82319         (gl_linked_waitqueue_t): New type.
82320         (gl_cond_t): Use it.
82321         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
82322         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
82323         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
82324         (glthread_cond_init_func, glthread_cond_wait_func,
82325         glthread_cond_timedwait_func, glthread_cond_signal_func,
82326         glthread_cond_broadcast_func, glthread_cond_destroy_func):
82327         Reimplemented on the basis of gl_linked_waitqueue_t.
82328         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
82329         gl_waitqueue_t.
82330         (gl_rwlock_t): Update.
82331         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
82333 2008-10-17  Simon Josefsson  <simon@josefsson.org>
82335         * modules/recvfrom (Depends-on): Add dependency on getpeername.
82336         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
82338 2008-10-17  Jim Meyering  <meyering@redhat.com>
82340         ignore-value: new module
82341         * modules/ignore-value: New file.
82342         * lib/ignore-value.h: New file.
82343         * MODULES.html.sh (Compiler warning management): New section,
82344         just for this module.  More to come.
82346 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
82348         open-safer.c: avoid 'signed and unsigned in conditional...' warning
82349         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
82350         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
82352 2008-10-16  Jim Meyering  <meyering@redhat.com>
82354         openat-die.c: avoid 'no previous prototype' warning
82355         * lib/openat-die.c: Include "openat.h".
82356         Reported by Reuben Thomas <rrt@sc3d.org>.
82358 2008-10-16  Simon Josefsson  <simon@josefsson.org>
82360         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
82361         * lib/netdb.in.h: Fix typo.
82362         Reported by Bruno Haible  <bruno@clisp.org>
82364         * lib/netdb.in.h: Include sys/socket.h for platforms without
82365         netdb.h, to get structures like hostent on MinGW.
82366         * modules/netdb (Depends-on): Add sys_socket.
82368 2008-10-15  Simon Josefsson  <simon@josefsson.org>
82370         * modules/netdb, modules/netdb-tests: New file.
82371         * m4/netdb_h.m4: New file.
82372         * lib/netdb.in.h: Add, currently just an empty file pending
82373         definitions.
82374         * tests/test-netdb.c: New file.
82375         * doc/posix-headers/netdb.texi: Mention that we replace it if
82376         needed.
82377         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
82378         netdb.
82380 2008-10-15  Simon Josefsson  <simon@josefsson.org>
82382         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
82383         with code.
82385 2008-10-13  Bruno Haible  <bruno@clisp.org>
82387         * lib/glthread/cond.c (glthread_cond_wait_func,
82388         glthread_cond_timedwait_func): Add a comment.
82390 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
82392         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
82393         * tests/test-select.c: Likewise,
82395 2008-10-13  Bruno Haible  <bruno@clisp.org>
82397         * lib/glthread/cond.c (glthread_cond_wait_func,
82398         glthread_cond_timedwait_func): Fix variable name.
82399         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
82401 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
82403         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
82404         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
82405         struct sockaddr.sa_len.
82406         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
82408 2008-10-13  Simon Josefsson  <simon@josefsson.org>
82410         * build-aux/pmccabe2html: Add css and css_url parameters.
82412 2008-10-12  Bruno Haible  <bruno@clisp.org>
82414         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
82415         calling aclx_get.
82416         Reported by Rainer Tammer <tammer@tammer.net>.
82418 2008-10-12  Bruno Haible  <bruno@clisp.org>
82420         Use msvcrt aware primitives for creation/termination of Win32 threads.
82421         * lib/glthread/thread.c: Include <process.h>.
82422         (glthread_create_func): Use _beginthreadex instead of CreateThread.
82423         (wrapper_func): Update signature.
82424         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
82426 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
82427             Bruno Haible  <bruno@clisp.org>
82429         Provide a Win32 implementation of the 'cond' module.
82430         * lib/glthread/cond.h [USE_WIN32]: New implementation.
82431         * lib/glthread/cond.c (glthread_cond_init_func,
82432         glthread_cond_wait_func, glthread_cond_timedwait_func,
82433         glthread_cond_signal_func, glthread_cond_broadcast_func,
82434         glthread_cond_destroy_func) [USE_WIN32]: New functions.
82435         * modules/cond (Dependencies): Add gettimeofday.
82437 2008-10-11  Bruno Haible  <bruno@clisp.org>
82439         Make sleep work on older versions of mingw.
82440         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
82441         only whether it exists.
82442         * doc/posix-functions/sleep.texi: Mention the problem with older
82443         versions of mingw.
82445 2008-10-11  Bruno Haible  <bruno@clisp.org>
82447         New module 'shutdown'.
82448         * modules/shutdown: New file.
82449         * lib/sys_socket.in.h (shutdown): New declaration.
82450         * lib/winsock.c (shutdown): New function.
82451         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
82452         GNULIB_SHUTDOWN.
82453         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
82454         * doc/posix-functions/shutdown.texi: Document the new module.
82456 2008-10-11  Jim Meyering  <meyering@redhat.com>
82458         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
82460 2008-10-11  Bruno Haible  <bruno@clisp.org>
82462         New module 'fclose'.
82463         * modules/fclose: New file.
82464         * lib/stdio.in.h (fclose): New declaration.
82465         * lib/fclose.c: New file.
82466         * m4/fclose.m4: New file.
82467         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
82468         REPLACE_FCLOSE.
82469         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
82470         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
82471         REPLACE_FCLOSE.
82472         * modules/close (Depends-on): fclose.
82473         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
82475 2008-10-11  Bruno Haible  <bruno@clisp.org>
82477         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
82478         set errno and don't call _close.
82480 2008-10-10  Bruno Haible  <bruno@clisp.org>
82482         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
82483         ACL, not afterwards. Fixes test failure on Cygwin.
82485 2008-10-09  Ben Pfaff  <blp@gnu.org>
82487         * build-aux/announce-gen: Fix gnulib version related part of usage
82488         message.  Die with a useful error message if no tarballs are
82489         found.
82491 2008-10-10  Jim Meyering  <meyering@redhat.com>
82493         bootstrap: use git's --depth=N option only if it's supported
82494         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
82495         recognize the --depth option.  Reported by Pádraig Brady.
82497 2008-10-09  Bruno Haible  <bruno@clisp.org>
82499         New module 'ioctl'.
82500         * modules/ioctl: New file.
82501         * lib/sys_socket.in.h (ioctl): Remove declaration.
82502         * lib/winsock.c: Include <sys/ioctl.h>.
82503         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
82504         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
82505         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
82506         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
82507         * doc/posix-functions/ioctl.texi: Mention the new module.
82509 2008-10-09  Bruno Haible  <bruno@clisp.org>
82511         New module 'sys_ioctl'.
82512         * lib/sys_ioctl.in.h: New file.
82513         * m4/sys_ioctl_h.m4: New file.
82514         * modules/sys_ioctl: New file.
82515         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
82517 2008-10-09  Bruno Haible  <bruno@clisp.org>
82519         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
82520         * lib/winsock.c: Include <stdarg.h>.
82521         (rpl_ioctl): Change to second argument 'int' and then varargs.
82523 2008-10-09  Bruno Haible  <bruno@clisp.org>
82525         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
82526         when the sys_socket module is present and the system has <winsock2.h>.
82528 2008-10-09  Bruno Haible  <bruno@clisp.org>
82530         * doc/posix-functions/close.texi: Mention module 'close' instead of
82531         module 'sys_socket'.
82533 2008-10-09  Bruno Haible  <bruno@clisp.org>
82535         * doc/glibc-headers/sys_ioctl.texi: New file.
82536         * doc/gnulib.texi: Include it.
82538 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
82539             Bruno Haible  <bruno@clisp.org>
82541         Combine the two replacements of 'close'.
82542         * lib/sys_socket.in.h (close): Define to a reminder to include
82543         <unistd.h>.
82544         (_gl_close_fd_maybe_socket): New declaration.
82545         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
82546         * lib/winsock.c (close): Remove undefinition.
82547         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
82548         needed for the gnulib module 'close'.
82549         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
82550         define to an error symbol or to a warning, if suitable.
82551         * lib/close.c: Include <sys/socket.h>.
82552         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
82553         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
82554         UNISTD_H_HAVE_WINSOCK2_H.
82555         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
82556         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
82557         UNISTD_H_HAVE_WINSOCK2_H.
82558         * modules/sys_socket (Files): Add m4/unistd_h.m4.
82559         (configure.ac): Set a module indicator.
82560         (Makefile.am): Substitute GNULIB_CLOSE.
82561         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
82562         * modules/poll-tests (Depends-on): Add close.
82563         * modules/select-tests (Depends-on): Likewise.
82565 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
82566             Bruno Haible  <bruno@clisp.org>
82568         New module 'close'.
82569         * modules/close: New file.
82570         * lib/unistd.in.h (close): Move declaration out of the
82571         FCHDIR_REPLACEMENT scope.
82572         (_gl_unregister_fd): New declaration.
82573         * lib/close.c: New file.
82574         * lib/fchdir.c (rpl_close): Remove function.
82575         * m4/close.m4: New file.
82576         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
82577         close.
82578         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
82579         REPLACE_CLOSE.
82580         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
82581         REPLACE_CLOSE.
82582         * modules/fchdir (Depends-on): Add close.
82584 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
82585             Bruno Haible  <bruno@clisp.org>
82587         * lib/fcntl.in.h (open): Simplify conditionals.
82588         (_gl_register_fd): New declaration.
82589         * lib/fchdir.c (rpl_open): Remove function.
82590         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
82591         also.
82592         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
82593         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
82594         open.
82596 2008-10-09  Jim Meyering  <meyering@redhat.com>
82598         GNUmakefile: use the more name-space-friendly "_version"
82599         * top/GNUmakefile (_dummy): Update.
82600         (_version): Rename from "version".
82602 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
82603             Bruno Haible  <bruno@clisp.org>
82605         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
82606         rpl_close.
82607         (_gl_register_fd): New function, extracted from rpl_open.
82608         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
82609         (rpl_open, rpl_opendir): Use _gl_register_fd.
82611 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
82613         Fix organization of 'open' replacement.
82614         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
82615         (gl_FUNC_OPEN): Use it.
82616         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
82618 2008-10-08  Bruno Haible  <bruno@clisp.org>
82620         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
82622 2008-10-08  Simon Josefsson  <simon@josefsson.org>
82624         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
82625         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
82626         listen).
82628 2008-10-08  Eric Blake  <ebb9@byu.net>
82630         GNUmakefile: add 'make version' target
82631         * top/GNUmakefile (_curr-ver): Split version update rules...
82632         (version): ...into a target.
82634 2008-10-07  Bruno Haible  <bruno@clisp.org>
82636         Use a more portable replacement expression for -0.0L.
82637         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
82638         instead of -0.0L. Fix m4 quotation.
82640         * tests/test-signbit.c: Include <float.h>.
82641         (minus_zero): New variable.
82642         (test_signbitl): Use minus_zero instead of -zero.
82643         * modules/signbit-tests (Depends-on): Add float.
82645         * tests/test-ceill.c: Include <float.h>.
82646         (zero): Remove variable.
82647         (minus_zero): New variable.
82648         (main): Use minus_zero instead of -zero.
82649         * modules/ceill-tests (Depends-on): Add float.
82651         * tests/test-floorl.c: Include <float.h>.
82652         (zero): Remove variable.
82653         (minus_zero): New variable.
82654         (main): Use minus_zero instead of -zero.
82655         * modules/floorl-tests (Depends-on): Add float.
82657         * tests/test-roundl.c: Include <float.h>.
82658         (zero): Remove variable.
82659         (minus_zero): New variable.
82660         (main): Use minus_zero instead of -zero.
82661         * modules/roundl-tests (Depends-on): Add float.
82663         * tests/test-truncl.c: Include <float.h>.
82664         (zero): Remove variable.
82665         (minus_zero): New variable.
82666         (main): Use minus_zero instead of -zero.
82667         * modules/truncl-tests (Depends-on): Add float.
82669         * tests/test-frexpl.c (zero): Remove variable.
82670         (minus_zero): New variable.
82671         (main): Use minus_zero instead of -zero.
82672         * modules/frexpl-tests (Depends-on): Add float.
82674         * tests/test-isnan.c (zerol): Remove variable.
82675         (minus_zerol): New variable.
82676         (test_long_double): Use minus_zerol instead of -zerol.
82677         * modules/isnan-tests (Depends-on): Add float.
82679         * tests/test-isnanl.h (zero): Remove variable.
82680         (minus_zero): New variable.
82681         (main): Use minus_zero instead of -zero.
82682         * modules/isnanl-nolibm-tests (Depends-on): Add float.
82683         * modules/isnanl-tests (Depends-on): Add float.
82685         * tests/test-ldexpl.c (zero): Remove variable.
82686         (minus_zero): New variable.
82687         (main): Use minus_zero instead of -zero.
82688         * modules/ldexpl-tests (Depends-on): Add float.
82690         * tests/test-snprintf-posix.h (zerol): Remove variable.
82691         (minus_zerol): New variable.
82692         (test_function): Use minus_zerol instead of -zerol.
82693         * modules/snprintf-posix-tests (Depends-on): Add float.
82694         * modules/vsnprintf-posix-tests (Depends-on): Add float.
82696         * tests/test-sprintf-posix.h (zerol): Remove variable.
82697         (minus_zerol): New variable.
82698         (test_function): Use minus_zerol instead of -zerol.
82699         * modules/sprintf-posix-tests (Depends-on): Add float.
82700         * modules/vsprintf-posix-tests (Depends-on): Add float.
82702         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
82703         (minus_zerol): New variable.
82704         (test_function): Use minus_zerol instead of -zerol.
82705         * modules/vasnprintf-posix-tests (Depends-on): Add float.
82707         * tests/test-vasprintf-posix.c (zerol): Remove variable.
82708         (minus_zerol): New variable.
82709         (test_function): Use minus_zerol instead of -zerol.
82710         * modules/vasprintf-posix-tests (Depends-on): Add float.
82712 2008-10-07  Simon Josefsson  <simon@josefsson.org>
82714         * MODULES.html.sh (Support for building documentation): Mention
82715         pmccabe2html.  Sort entries.
82717         Add pmccabe2html module, from gnupdf.
82718         * build-aux/pmccabe.css: New file.
82719         * build-aux/pmccabe2html: New file.
82720         * m4/pmccabe2html.m4: New file.
82721         * modules/pmccabe2html: New file.
82723 2008-10-07  Richard W.M. Jones  <rjones@redhat.com>
82725         flock: new module
82726         * MODULES.html.sh: Add to list of modules.
82727         * lib/flock.c: flock implementation for Windows and Unix systems
82728         which have fcntl.
82729         * doc/glibc-functions/flock.texi: Update documentation.
82730         * lib/sys_file.in.h: <sys/file.h> header file.
82731         * m4/flock.m4: M4 macros.
82732         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
82733         * modules/flock: flock module.
82734         * modules/flock-tests: flock tests module.
82735         * modules/sys_file: sys/file.h module.
82736         * tests/test-flock.c: test suite for flock.
82738 2008-10-06  Jim Meyering  <meyering@redhat.com>
82740         bootstrap: check for LT_INIT more portably still ;-)
82741         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
82742         Spotted by Bruno Haible.
82744 2008-10-06  Eric Blake  <ebb9@byu.net>
82746         test-signbit: avoid tripping Irix cc bug on -0.0L
82747         * tests/test-signbit.c (minus_zerol): Delete, and replace with
82748         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
82749         entire testsuite consistent and avoids an Irix 6.2 bug.
82751 2008-10-05  Bruno Haible  <bruno@clisp.org>
82752             Jim Meyering  <jim@meyering.net>
82754         Add an option for ignoring EPIPE during close_stdout.
82755         * lib/closeout.h: Include <stdbool.h>.
82756         (close_stdout_set_ignore_EPIPE): New declaration.
82757         * lib/closeout.c: Include <stdbool.h>.
82758         (ignore_EPIPE): New variable.
82759         (close_stdout_set_ignore_EPIPE): New function.
82760         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
82761         * lib/close-stream.c (close_stream): Mention the possible EPIPE
82762         failure.
82763         * modules/closeout (Depends-on): Add stdbool.
82765 2008-10-05  Bruno Haible  <bruno@clisp.org>
82767         * modules/accept: New file.
82768         * modules/bind: New file.
82769         * modules/connect: New file.
82770         * modules/getpeername: New file.
82771         * modules/getsockname: New file.
82772         * modules/getsockopt: New file.
82773         * modules/listen: New file.
82774         * modules/recv: New file.
82775         * modules/recvfrom: New file.
82776         * modules/send: New file.
82777         * modules/sendto: New file.
82778         * modules/setsockopt: New file.
82779         * modules/socket: New file.
82780         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
82781         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
82782         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
82783         the particular module is requested. Add a link warning when the
82784         particular module is not requested.
82785         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
82786         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
82787         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
82788         the particular module is requested.
82789         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
82790         gl_SYS_SOCKET_H_DEFAULTS): New macros.
82791         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
82792         * modules/sys_socket (Depends-on): Add link-warning.
82793         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
82794         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
82795         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
82796         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
82797         GL_LINK_WARNING.
82798         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
82799         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
82800         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
82801         * doc/posix-functions/getpeername.texi: Mention the new module
82802         'getpeername'.
82803         * doc/posix-functions/getsockname.texi: Mention the new module
82804         'getsockname'.
82805         * doc/posix-functions/getsockopt.texi: Mention the new module
82806         'getsockopt'.
82807         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
82808         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
82809         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
82810         * doc/posix-functions/send.texi: Mention the new module 'send'.
82811         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
82812         * doc/posix-functions/setsockopt.texi: Mention the new module
82813         'setsockopt'.
82814         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
82815         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
82816         listen, connect, accept.
82817         * modules/select-tests (Depends-on): Likewise.
82819 2008-10-05  Bruno Haible  <bruno@clisp.org>
82821         * lib/winsock.c (strerror): Remove unused #undef.
82822         (rpl_close): Remove unused local variable.
82824         * modules/sys_socket (Depends-on); Add errno.
82826 2008-10-05  Bruno Haible  <bruno@clisp.org>
82828         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
82829         (select): Add a link warning when the 'select' module is not used.
82830         * modules/sys_select (Depends-on): Add link-warning.
82831         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
82832         Suggested by Paolo Bonzini.
82834 2008-10-05  Jim Meyering  <meyering@redhat.com>
82836         bootstrap: check for LT_INIT more portably
82837         * build-aux/bootstrap: Avoid using grep -E, since it's not
82838         portable enough.  Suggestion from Bruno Haible.
82840 2008-10-05  Bruno Haible  <bruno@clisp.org>
82842         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
82843         as being fixed by gnulib.
82845 2008-10-05  Bruno Haible  <bruno@clisp.org>
82847         * modules/select-tests: New file, mostly copied from
82848         modules/sys_select-tests.
82849         * tests/test-select.c: New file, mostly copied from
82850         tests/test-sys_select.c.
82851         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
82852         * modules/sys_select-tests (Depends-on): Remove all dependencies.
82853         (Makefile.am): Remove test_sys_select_LDADD.
82855         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
82856         to an undefined symbol, for an error message.
82857         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
82858         (gl_SYS_SELECT_H_DEFAULTS): New macro.
82859         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
82860         winsock-select.c here.
82861         * modules/sys_select (Files): Remove lib/winsock-select.c.
82862         (Depends-on): Remove alloca.
82863         (Makefile.am): Substitute GNULIB_SELECT.
82864         * modules/select: New file.
82865         * doc/posix-functions/select.texi: Update.
82867 2008-10-05  Bruno Haible  <bruno@clisp.org>
82869         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
82870         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
82871         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
82872         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
82873         getdtablesize.
82874         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
82875         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
82877 2008-10-05  Bruno Haible  <bruno@clisp.org>
82879         * modules/getdtablesize-tests: New file.
82880         * tests/test-getdtablesize.c: New file.
82882         New module 'getdtablesize'.
82883         * lib/unistd.in.h (getdtablesize): New declaration.
82884         * lib/getdtablesize.c: New file.
82885         * m4/getdtablesize.m4: New file.
82886         * modules/getdtablesize: New file.
82887         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
82888         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
82889         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
82890         HAVE_GETDTABLESIZE.
82891         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
82893 2008-10-05  Bruno Haible  <bruno@clisp.org>
82895         * modules/sched (Makefile.am): Fix typo.
82896         Reported by Simon Josefsson.
82898 2008-10-05  Jim Meyering  <meyering@redhat.com>
82900         bootstrap: check for LT_INIT, too
82901         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
82902         are deprecated.  Suggestion from Ralf Wildenhues.
82904 2008-10-05  Bruno Haible  <bruno@clisp.org>
82906         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
82907         overriding them by ours.
82908         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
82910 2008-10-05  Jim Meyering  <meyering@redhat.com>
82912         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
82913         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
82914         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
82916 2008-10-04  Bruno Haible  <bruno@clisp.org>
82918         * modules/dup2 (License): Change to LGPLv2+.
82919         * modules/sleep (License): Likewise.
82920         * modules/perror (License): Likewise.
82921         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
82922         Blake.
82923         * modules/signal (License): Likewise.
82924         * modules/sigprocmask (License): Likewise.
82925         * modules/raise (License): Change to LGPLv2+, with approval by Jim
82926         Meyering.
82928 2008-10-04  Bruno Haible  <bruno@clisp.org>
82930         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
82931         Reported by Rainer Tammer <tammer@tammer.net>.
82933 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
82934             Bruno Haible  <bruno@clisp.org>
82936         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
82937         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
82938         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
82940 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
82942         filevercmp: new module
82943         * lib/filevercmp.h: New function filevercmp comparing version strings.
82944         * lib/filevercmp.c: Implementation of filevercmp function.
82945         * modules/filevercmp: Module metadata.
82946         * tests/test-filevercmp.c: Unit test for new module.
82947         * modules/filevercmp-tests: Unit test metadata.
82948         * MODULES.html.sh: Add filevercmp module.
82950 2008-10-03  Bruno Haible  <bruno@clisp.org>
82952         * lib/c-ctype.h: Add comment.
82953         Reported by Jim Meyering.
82955 2008-10-02  Bruno Haible  <bruno@clisp.org>
82957         * modules/posix_spawn-internal (Depends-on): Add 'open'.
82959 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
82961         * build-aux/bootstrap: Allow renaming bootstrap, and change the
82962         name of bootstrap.conf accordingly.
82964 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
82966         * build-aux/bootstrap: Install git-merge-changelog configuration
82967         items into .gitconfig if needed.
82969 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
82971         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
82972         git repository, and initialize/update it accordingly.
82974 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
82976         * modules/fsync-tests: New file.
82977         * tests/test-fsync.c: New file.
82979         New module 'fsync'.
82980         * lib/fsync.c: New file.
82981         * m4/fsync.m4: New file.
82982         * modules/fsync: New file.
82983         * lib/unistd.in.h (fsync): New declaration.
82984         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
82985         GNULIB_FSYNC and HAVE_FSYNC.
82986         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
82987         * MODULES.html.sh (posix_functions): Add fsync.
82988         * doc/posix-functions/fsync.texi: Mention the new module.
82990 2008-10-02  Jim Meyering  <meyering@redhat.com>
82992         fts.c: sync with similar code from coreutils' remove.c
82993         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
82994         Guard also with "#if defined __linux__", since for now at least,
82995         this code is Linux-kernel-specific.
82997 2008-10-02  Jim Meyering  <meyering@redhat.com>
82999         fts: bug fixes
83000         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
83001         Include <sys/vfs.h>, not <sys/statfs.h>.
83003         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
83004         Include <sys/vfs.h>, not <sys/statfs.h>.
83006 2008-10-01  Bruno Haible  <bruno@clisp.org>
83008         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
83009         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
83010         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
83011         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
83012         * doc/posix-functions/posix_spawnp.texi: Likewise.
83013         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
83014         whether posix_spawn actually works.
83015         * m4/pipe.m4 (gl_PIPE): Likewise.
83016         * modules/execute (Files): Add m4/posix_spawn.m4.
83017         * modules/pipe (Files): Add m4/posix_spawn.m4.
83018         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
83020 2008-10-01  Jim Meyering  <meyering@redhat.com>
83022         remove trailing spaces
83023         * NEWS: Likewise.
83024         * lib/poll.c (poll): Likewise.
83025         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
83026         * lib/winsock.c (rpl_close): Likewise.
83027         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
83028         * modules/yield: Likewise.
83029         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
83030         * tests/test-sys_select.c (connect_to_socket): Likewise.
83032         fts.c: adjust a new interface to be more generally useful
83033         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
83034         (fts_build): Adjust caller.
83036 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83038         * modules/cond-tests: New file.
83039         * tests/test-cond.c: New file.
83041 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83042             Bruno Haible  <bruno@clisp.org>
83044         * modules/cond (Dependencies): Add errno, time.
83045         * lib/glthread/cond.h: Include <time.h>.
83046         (gl_cond_define, gl_cond_define_initialized): Use the same definition
83047         across platforms.
83049 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83050             Bruno Haible  <bruno@clisp.org>
83052         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
83054 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83055             Bruno Haible  <bruno@clisp.org>
83057         * modules/tls-tests (Depends-on): Add thread, yield.
83058         (configure.ac): Remove all checks.
83059         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
83060         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
83061         gl_thread_self): Remove definitions. Include glthread/thread.h and
83062         glthread/yield.h instead.
83063         (test_tls): Pass an additional NULL argument to gl_thread_join.
83065 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83066             Bruno Haible  <bruno@clisp.org>
83068         * modules/lock-tests (Depends-on): Add thread, yield.
83069         (configure.ac): Remove all checks.
83070         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
83071         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
83072         gl_thread_self): Remove definitions. Include glthread/thread.h and
83073         glthread/yield.h instead.
83074         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
83075         additional NULL argument to gl_thread_join.
83077 2008-09-30  Bruno Haible  <bruno@clisp.org>
83079         Fix the Win32 implementation of the 'thread' module.
83080         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
83081         pointer type.
83082         (gl_thread_self): Invoke gl_thread_self_func.
83083         (gl_thread_self_func): New declaration.
83084         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
83085         (do_init_self_key, init_self_key): New functions.
83086         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
83087         Remove some fields.
83088         (running_threads, running_lock): Remove variables.
83089         (get_current_thread_handle): New function.
83090         (gl_thread_self_func, wrapper_func, glthread_create_func,
83091         glthread_join_func, gl_thread_exit_func): Largely rewritten and
83092         simplified.
83094 2008-09-30  Bruno Haible  <bruno@clisp.org>
83096         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
83097         files.
83099 2008-09-30  Jim Meyering  <meyering@redhat.com>
83101         fts.m4: correct the test for statfs.f_type
83102         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
83103         when checking for statfs.f_type.
83105 2008-09-15  Simon Josefsson  <simon@josefsson.org>
83107         tests: avoid some compiler warnings
83108         * tests/test-memchr.c (main): Pass NULL indirectly.
83109         * tests/test-getdate.c (main): Remove unused variable 'ret'.
83111 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
83113         getdate.y: disallow countable dayshifts like "4 yesterday ago"
83114         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
83115         exactly specified dayshifts.
83116         (dayshift): New rule.
83117         (rel): Add dayshift.
83118         (relative_time_table) [tomorrow, yesterday, today, now]:
83119         Use tDAY_SHIFT in place of tDAY_UNIT.
83120         * tests/test-getdate.c: Add tests for now-disallowed countable
83121         dayshifts, e.g., "4 yesterday ago".
83123 2008-09-29  Bruno Haible  <bruno@clisp.org>
83125         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
83126         * tests/test-posix_spawn1.in.sh: Renamed from
83127         tests/test-posix_spawn.in.sh.
83128         * tests/test-posix_spawn2.c: New file.
83129         * tests/test-posix_spawn2.in.sh: New file.
83130         * modules/posix_spawnp-tests (Files): Update.
83131         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
83133 2008-09-29  Bruno Haible  <bruno@clisp.org>
83135         Propagate effects of putenv/setenv/unsetenv to child processes.
83136         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
83137         * lib/pipe.c (create_pipe): Likewise.
83139 2008-09-29  Bruno Haible  <bruno@clisp.org>
83141         Enable use of shell scripts as executables in mingw.
83142         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
83143         run the program as a shell script.
83144         * lib/pipe.c (create_pipe): Likewise.
83145         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
83146         resulting array.
83148 2008-09-29  Eric Blake  <ebb9@byu.net>
83150         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
83152 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
83154         * doc/posix-functions/accept.texi: Update mingw problems.
83155         * doc/posix-functions/bind.texi: Update mingw problems.
83156         * doc/posix-functions/close.texi: Update mingw problems.
83157         * doc/posix-functions/connect.texi: Update mingw problems.
83158         * doc/posix-functions/getpeername.texi: Update mingw problems.
83159         * doc/posix-functions/getsockname.texi: Update mingw problems.
83160         * doc/posix-functions/getsockopt.texi: Update mingw problems.
83161         * doc/posix-functions/ioctl.texi: Update mingw problems.
83162         * doc/posix-functions/listen.texi: Update mingw problems.
83163         * doc/posix-functions/recv.texi: Update mingw problems.
83164         * doc/posix-functions/recvfrom.texi: Update mingw problems.
83165         * doc/posix-functions/select.texi: Update mingw problems.
83166         * doc/posix-functions/send.texi: Update mingw problems.
83167         * doc/posix-functions/sendto.texi: Update mingw problems.
83168         * doc/posix-functions/setsockopt.texi: Update mingw problems.
83169         * doc/posix-functions/socket.texi: Update mingw problems.
83171 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
83172             Bruno Haible  <bruno@clisp.org>
83174         * lib/sys_select.in.h: Include sys/time.h.
83175         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
83176         * modules/sys_select: Depend on sys_time.
83177         * tests/test-sys_select.c: Test that sys/select.h defines struct
83178         timeval fully.
83180 2008-09-29  Bruno Haible  <bruno@clisp.org>
83182         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
83183         * lib/sys_select.in.h: Likewise.
83185 2008-09-29  Bruno Haible  <bruno@clisp.org>
83187         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
83189 2008-09-29  Bruno Haible  <bruno@clisp.org>
83191         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
83192         Set LIBSOCKET instead of augmenting LIBS.
83193         * modules/sockets (Link): New section.
83194         * modules/sockets-tests (test_sockets_LDADD): New variable.
83195         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
83196         * modules/poll-tests (test_poll_LDADD): New variable.
83197         * NEWS: Document the change.
83199 2008-09-29  Bruno Haible  <bruno@clisp.org>
83201         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
83202         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
83203         ARPA_INET_H directly.
83204         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
83206 2008-09-28  Bruno Haible  <bruno@clisp.org>
83208         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
83209         from gl_HEADER_SYS_SOCKET.
83210         (gl_HEADER_SYS_SOCKET): Invoke it.
83211         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
83213 2008-09-28  Bruno Haible  <bruno@clisp.org>
83215         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
83216         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
83217         Needed on OSF/1 4.0.
83219 2008-09-28  Bruno Haible  <bruno@clisp.org>
83221         Override open more carefully.
83222         * lib/open.c (orig_open): New function.
83223         (rpl_open): Use orig_open instead of open.
83224         * lib/fcntl.in.h: Add special invocation convention.
83225         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
83226         (gl_FUNC_OPEN): Invoke it.
83228         Override freopen more carefully.
83229         * lib/freopen.c (orig_freopen): New function.
83230         (rpl_freopen): Use orig_freopen instead of freopen.
83231         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
83232         (gl_FUNC_FREOPEN): Invoke it.
83234         Override fopen more carefully.
83235         * lib/fopen.c (orig_fopen): New function.
83236         (rpl_fopen): Use orig_fopen instead of fopen.
83237         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
83238         (gl_FUNC_FOPEN): Invoke it.
83239         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
83241 2008-09-28  Bruno Haible  <bruno@clisp.org>
83243         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
83244         SIGPIPE.
83246 2008-09-28  Bruno Haible  <bruno@clisp.org>
83248         * tests/test-sigaction.c (handler, main): Disable the check whether
83249         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
83250         glibc systems with LinuxThreads.
83252 2008-09-28  Bruno Haible  <bruno@clisp.org>
83254         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
83256         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
83257         with AIX xlc.
83258         * lib/fcntl.in.h (open): Likewise.
83259         Reported by Rainer Tammer <tammer@tammer.net>.
83261 2008-09-28  Bruno Haible  <bruno@clisp.org>
83263         * modules/posix_spawnp-tests: New file.
83264         * tests/test-posix_spawn.c: New file.
83265         * tests/test-posix_spawn.in.sh: New file.
83267         New module 'posix_spawnp'.
83268         * modules/posix_spawnp: New file.
83269         * lib/spawnp.c: New file, from GNU libc with modifications.
83270         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
83272         New module 'posix_spawn'.
83273         * modules/posix_spawn: New file.
83274         * lib/spawn.c: New file, from GNU libc with modifications.
83275         * doc/posix-functions/posix_spawn.texi: Mention the new module.
83277         New module 'posix_spawnattr_destroy'.
83278         * modules/posix_spawnattr_destroy: New file.
83279         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
83280         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
83281         module.
83283         New module 'posix_spawnattr_setsigmask'.
83284         * modules/posix_spawnattr_setsigmask: New file.
83285         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
83286         modifications.
83287         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
83288         new module.
83290         New module 'posix_spawnattr_getsigmask'.
83291         * modules/posix_spawnattr_getsigmask: New file.
83292         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
83293         modifications.
83294         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
83295         new module.
83297         New module 'posix_spawnattr_setsigdefault'.
83298         * modules/posix_spawnattr_setsigdefault: New file.
83299         * lib/spawnattr_setdefault.c: New file, from GNU libc with
83300         modifications.
83301         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
83302         new module.
83304         New module 'posix_spawnattr_getsigdefault'.
83305         * modules/posix_spawnattr_getsigdefault: New file.
83306         * lib/spawnattr_getdefault.c: New file, from GNU libc with
83307         modifications.
83308         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
83309         new module.
83311         New module 'posix_spawnattr_setschedpolicy'.
83312         * modules/posix_spawnattr_setschedpolicy: New file.
83313         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
83314         modifications.
83315         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
83316         new module.
83318         New module 'posix_spawnattr_getschedpolicy'.
83319         * modules/posix_spawnattr_getschedpolicy: New file.
83320         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
83321         modifications.
83322         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
83323         new module.
83325         New module 'posix_spawnattr_setschedparam'.
83326         * modules/posix_spawnattr_setschedparam: New file.
83327         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
83328         modifications.
83329         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
83330         new module.
83332         New module 'posix_spawnattr_getschedparam'.
83333         * modules/posix_spawnattr_getschedparam: New file.
83334         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
83335         modifications.
83336         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
83337         new module.
83339         New module 'posix_spawnattr_setpgroup'.
83340         * modules/posix_spawnattr_setpgroup: New file.
83341         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
83342         modifications.
83343         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
83344         module.
83346         New module 'posix_spawnattr_getpgroup'.
83347         * modules/posix_spawnattr_getpgroup: New file.
83348         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
83349         modifications.
83350         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
83351         module.
83353         New module 'posix_spawnattr_setflags'.
83354         * modules/posix_spawnattr_setflags: New file.
83355         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
83356         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
83357         module.
83359         New module 'posix_spawnattr_getflags'.
83360         * modules/posix_spawnattr_getflags: New file.
83361         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
83362         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
83363         module.
83365         New module 'posix_spawnattr_init'.
83366         * modules/posix_spawnattr_init: New file.
83367         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
83368         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
83369         module.
83371         New module 'posix_spawn_file_actions_destroy'.
83372         * modules/posix_spawn_file_actions_destroy: New file.
83373         * lib/spawn_faction_destroy.c: New file, from GNU libc with
83374         modifications.
83375         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
83376         the new module.
83378         New module 'posix_spawn_file_actions_addopen'.
83379         * modules/posix_spawn_file_actions_addopen: New file.
83380         * lib/spawn_faction_addopen.c: New file, from GNU libc with
83381         modifications.
83382         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
83383         the new module.
83385         New module 'posix_spawn_file_actions_adddup2'.
83386         * modules/posix_spawn_file_actions_adddup2: New file.
83387         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
83388         modifications.
83389         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
83390         the new module.
83392         New module 'posix_spawn_file_actions_addclose'.
83393         * modules/posix_spawn_file_actions_addclose: New file.
83394         * lib/spawn_faction_addclose.c: New file, from GNU libc with
83395         modifications.
83396         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
83397         the new module.
83399         New module 'posix_spawn_file_actions_init'.
83400         * modules/posix_spawn_file_actions_init: New file.
83401         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
83402         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
83403         new module.
83405         New module 'posix_spawn-internal'.
83406         * modules/posix_spawn-internal: New file.
83407         * lib/spawn_int.h: New file, from GNU libc with modifications.
83408         * lib/spawni.c: New file, from GNU libc with modifications.
83409         * m4/posix_spawn.m4: New file.
83411         New module 'spawn'.
83412         * modules/spawn: New file.
83413         * lib/spawn.in.h: New file, from GNU libc with modifications.
83414         * m4/spawn_h.m4: New file.
83415         * doc/posix-headers/spawn.texi: Mention the new module.
83417 2008-09-28  Bruno Haible  <bruno@clisp.org>
83419         * modules/sched-tests: New file.
83420         * tests/test-sched.c: New file.
83422         New module 'sched'.
83423         * modules/sched: New file.
83424         * lib/sched.in.h: New file.
83425         * m4/sched_h.m4: New file.
83426         * doc/posix-headers/sched.texi: Mention the new module.
83428 2008-09-27  Eric Blake  <ebb9@byu.net>
83430         Fix previous patch, and tweak references to $0.
83431         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
83432         (func_version, func_gnulib_dir): Don't call this program
83433         gnulib-tool.
83434         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
83435         with using $0 in function.
83436         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
83437         (func_fatal_error): Reuse the name the user invoked us with.
83439 2008-09-27  Bruno Haible  <bruno@clisp.org>
83441         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
83442         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
83443         (gl_ICONV_H): Not here.
83444         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
83445         instead of assigning ICONV_H directly.
83447         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
83448         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
83449         WCHAR_H directly.
83451 2008-09-27  Bruno Haible  <bruno@clisp.org>
83453         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
83454         * modules/arpa_inet (Depends-on): Add link-warning.
83455         (Makefile.am): Insert the definition of GL_LINK-WARNING.
83456         * modules/unistd (Makefile.am): Likewise.
83458 2008-09-26  Bruno Haible  <bruno@clisp.org>
83460         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
83461         variables.
83462         (func_version): Essentially copied from gnulib-tool.
83463         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
83464         func_readlink): Copied from gnulib-tool.
83466 2008-09-26  Bruno Haible  <bruno@clisp.org>
83468         * gnulib-tool (func_version): Change directory to $gnulib_dir before
83469         invoking git-version-gen.
83471 2008-09-26  Bruno Haible  <bruno@clisp.org>
83473         * posix-modules: Update to directory names changed on 2008-01-19.
83474         Remove commas in output before splitting into words. No more need to
83475         avoid 'ftruncate' since 2007-02-19.
83477 2008-09-26  Bruno Haible  <bruno@clisp.org>
83479         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
83481 2008-09-26  Bruno Haible  <bruno@clisp.org>
83483         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
83484         * modules/fwriteerror (Depends-on): Add errno.
83486 2008-09-26  Bruno Haible  <bruno@clisp.org>
83488         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
83489         * tests/test-vc-list-files-cvs.sh: Likewise.
83491 2008-09-26  Bruno Haible  <bruno@clisp.org>
83493         * doc/posix-headers/sys_resource.texi: Reorder items.
83495 2008-09-26  Jim Meyering  <meyering@redhat.com>
83497         fts: tweak inode comparison function
83498         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
83499         inode numbers, as documented.
83501         fts: sort dirent entries on inode number before traversing
83502         This avoids a quadratic, seek-related performance penalty when
83503         operating on a directory containing many entries (measurable at 10k;
83504         3.5 hours at 2 million entries with a cold cache) on certain types
83505         of file systems, including ext3 and ext4, but not tmpfs.
83506         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
83507         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
83508         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
83509         (fs_handles_readdir_ordered_dirents_efficiently): New function.
83510         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
83511         (fts_build): Set the stat.st_ino member from D_INO.
83512         If it is likely to be useful, sort dirent entries on inode number.
83514         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
83515         and the struct statfs.f_type member.
83516         * modules/fts (Depends-on): Add d-ino.
83518 2008-09-26  Bruno Haible  <bruno@clisp.org>
83520         * modules/sigpipe-die (Depends-on): Add sigpipe.
83522         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
83523         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
83524         and GNULIB_STDIO_H_SIGPIPE are set.
83525         * lib/stdio-write.c: New file.
83526         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
83527         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
83528         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
83529         REPLACE_STDIO_WRITE_FUNCS.
83530         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
83531         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
83532         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
83533         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
83534         * modules/stdio (Files): Add lib/stdio-write.c.
83535         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
83536         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
83537         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
83538         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
83539         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
83540         REPLACE_FPRINTF_POSIX.
83541         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
83542         REPLACE_PRINTF_POSIX.
83543         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
83544         REPLACE_VFPRINTF_POSIX.
83545         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
83546         REPLACE_VPRINTF_POSIX.
83547         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
83548         SIGPIPE issue.
83549         * doc/posix-functions/fputc.texi: Likewise.
83550         * doc/posix-functions/fputs.texi: Likewise.
83551         * doc/posix-functions/fwrite.texi: Likewise.
83552         * doc/posix-functions/printf.texi: Likewise.
83553         * doc/posix-functions/putc.texi: Likewise.
83554         * doc/posix-functions/putchar.texi: Likewise.
83555         * doc/posix-functions/puts.texi: Likewise.
83556         * doc/posix-functions/vfprintf.texi: Likewise.
83557         * doc/posix-functions/vprintf.texi: Likewise.
83559         * modules/safe-write (Depends-on): Add write.
83561         * modules/sigpipe-tests: New file.
83562         * tests/test-sigpipe.c: New file.
83563         * tests/test-sigpipe.sh: New file.
83565         * modules/write: New file.
83566         * lib/unistd.in.h: Include <sys/types.h>.
83567         (write): New declaration.
83568         * lib/write.c: New file.
83569         * m4/write.m4: New file.
83570         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
83571         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
83572         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
83573         GNULIB_WRITE, REPLACE_WRITE.
83574         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
83575         and the SIGPIPE issue.
83577         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
83578         (raise): New declaration.
83579         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
83580         (ext_signal): New function.
83581         (rpl_raise): New function.
83582         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
83583         GNULIB_SIGNAL_H_SIGPIPE.
83584         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
83585         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
83587         * modules/sigpipe: New file.
83588         * m4/sigpipe.m4: New file.
83590 2008-09-25  Derek Price  <derek@ximbiot.com>
83591             Bruno Haible  <bruno@clisp.org>
83593         * gnulib-tool (func_import): Report all license incompatibilities, not
83594         just the first one.
83596 2008-09-25  Bruno Haible  <bruno@clisp.org>
83598         * gnulib-tool (func_import): When computing the edits, consider not
83599         only the Makefile.ams that exist but also those that will be generated.
83601 2008-09-25  Simon Josefsson  <simon@josefsson.org>
83603         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
83604         fixes gnulib-tool --test warning about duplicate dependency.
83606 2008-09-25  Bruno Haible  <bruno@clisp.org>
83608         * gnulib-tool: Don't ask the user to perform edits in the generated
83609         Makefile.ams.
83610         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
83611         apply to the Makefile.am being generated.
83612         (func_emit_tests_Makefile_am): Execute edits that apply to the
83613         Makefile.am being generated.
83614         (func_import): Setup list of Makefile.am edits before emitting the
83615         Makefile.ams, not at the end.
83616         (func_create_testdir): Update.
83617         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
83619 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83621         * gnulib-tool (func_import): Store the --tests-base option in the
83622         comment in gnulib-cache.m4.
83624 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
83626         * NEWS: Document increased portability that sys_select now provides.
83628         * lib/sys_select.in.h: Install select wrapper.
83629         * lib/sys_socket.in.h: Use more descriptive name when there is no
83630         select wrapper.
83631         * lib/winsock-select.c: New.
83632         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
83633         Require gl_HEADER_SYS_SOCKET.
83634         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
83635         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
83636         * tests/test-sys_select.c: Add functional tests.
83638 2008-09-24  Eric Blake  <ebb9@byu.net>
83640         open, fopen: close fd leak in last patch
83641         * lib/open.c (rpl_open): Close fd before returning error.
83642         * lib/fopen.c (rpl_fopen): Close fd before returning error.
83643         * doc/posix-functions/open.texi (open): Document that Irix also
83644         has the bug.
83645         * doc/posix-functions/fopen.texi (fopen): Likewise.
83646         Reported by Paolo Bonzini.
83648 2008-09-24  Bruno Haible  <bruno@clisp.org>
83650         Ensure that a filename ending in a slash cannot be used to access a
83651         non-directory.
83652         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
83653         to check whether it's really a directory.
83654         * lib/fopen.c: Include fcntl.h, unistd.h.
83655         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
83656         and fdopen().
83657         * modules/fopen (Depends-on): Add unistd.
83658         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
83659         * tests/test-fopen.c (main): Likewise.
83660         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
83661         * doc/posix-functions/fopen.texi: Likewise.
83662         Reported by Eric Blake.
83664 2008-09-23  Eric Blake  <ebb9@byu.net>
83666         c-stack: avoid compiler optimizations when provoking overflow
83667         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
83668         recursion harder to optimize, to ensure a stack overflow occurs.
83669         * tests/test-c-stack.c (recurse): Likewise.
83670         Borrowed from libsigsegv.
83672         c-stack: work around Irix sigaltstack bug
83673         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
83674         whether sigaltstack uses wrong end of stack_t (copied in part from
83675         libsigsegv).
83676         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
83677         Irix bug, without requiring an over-allocation.
83678         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
83679         bug.
83681         fopen: document mingw bug on directories
83682         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
83683         not allowing a stream visiting a directory, even though reading
83684         from such a stream is not portable.
83686 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
83688         * lib/poll.c: Rewrite.
83689         * modules/poll: Depend on alloca.
83691 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
83693         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
83694         instead define prototypes for a full set of wrappers.  Ensure
83695         that Cygwin does not use the compatibility code, which is only
83696         for MinGW.
83697         * lib/winsock.c: New.
83698         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
83699         * modules/sys_socket: Add lib/winsock.c.
83701         * modules/poll-tests: Add errno and perror.
83702         * tests/test-poll.c: Use ioctl, not ioctlsocket.
83704 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
83706         * tests/test-poll.c: Downgrade minimum needed Winsock version.
83708 2008-09-23  Bruno Haible  <bruno@clisp.org>
83710         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
83711         * doc/glibc-functions/*: Likewise.
83713 2008-09-23  Simon Josefsson  <simon@josefsson.org>
83715         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
83716         success.
83718 2008-09-22  Eric Blake  <ebb9@byu.net>
83719             Bruno Haible  <bruno@clisp.org>
83721         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
83722         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
83723         supply %A but mishandle pseudo-NaN.
83724         Reported by Simon Josefsson.
83726 2008-09-21  Bruno Haible  <bruno@clisp.org>
83728         * tests/test-lock.c (main): Tweak skip message.
83729         * tests/test-tls.c (main): Likewise.
83731 2008-09-21  Bruno Haible  <bruno@clisp.org>
83733         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
83734         whether 'struct sigaction' has sa_sigaction here...
83735         (gl_PREREQ_SIG_HANDLER_H): ... not here.
83736         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
83738 2008-09-21  Bruno Haible  <bruno@clisp.org>
83740         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
83741         section.
83742         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
83743         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
83744         the new section.
83745         (Support for obsolete systems lacking POSIX:2001): New section.
83746         (String handling <string.h>): Move strdup to the new section.
83747         Suggested by Simon Josefsson and Paolo Bonzini.
83749 2008-09-21  Bruno Haible  <bruno@clisp.org>
83751         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
83752         exponents in %e and %g results on 'long double'. Needed for mingw's
83753         improved *printf functions.
83754         * tests/test-vasprintf-posix.c (test_function): Likewise.
83755         * tests/test-snprintf-posix.h (test_function): Likewise.
83756         * tests/test-sprintf-posix.h (test_function): Likewise.
83757         Reported by Eric Blake.
83759 2008-09-21  Bruno Haible  <bruno@clisp.org>
83761         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
83762         * tests/test-sprintf-posix.h (test_function): Likewise.
83764 2008-09-21  Bruno Haible  <bruno@clisp.org>
83766         * modules/getpass (Depends-on): Add strdup-posix.
83768         New module 'strdup-posix'.
83769         * modules/strdup-posix: New file.
83770         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
83771         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
83772         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
83773         REPLACE_STRDUP.
83774         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
83775         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
83776         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
83777         strdup-posix.
83779         * modules/strdup (Depends-on): Remove malloc-posix.
83781 2008-09-20  Bruno Haible  <bruno@clisp.org>
83783         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
83784         Wildenhues.
83786 2008-09-20  Bruno Haible  <bruno@clisp.org>
83788         Ensure that wint_t gets defined on IRIX 5.3.
83789         * lib/wchar.in.h (wint_t): Define if not defined by the system.
83790         * lib/wctype.in.h (wint_t): Likewise.
83791         (__wctype_wint_t): Remove type.
83792         (isw*): Use wint_t instead of __wctype_wint_t.
83793         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
83794         * modules/wchar (Files): Add m4/wint_t.m4.
83795         (Makefile.am): Substitute HAVE_WINT_T.
83796         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
83797         * tests/test-wctype.c: Check that wint_t is defined.
83798         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
83799         * doc/posix-headers/wctype.texi: Likewise.
83800         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
83802 2008-09-18  Bruno Haible  <bruno@clisp.org>
83804         * gnulib-tool (func_exit): Update comment.
83806 2008-09-18  Simon Josefsson  <simon@josefsson.org>
83808         * modules/getaddrinfo (Depends-on): Remove strdup, this module
83809         assumes strdup exists and does not depend on strdup to return
83810         ENOMEM on out of memory conditions.
83812 2008-09-18  Bruno Haible  <bruno@clisp.org>
83814         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
83815         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
83816         digits for the exponent.
83818 2008-09-18  Jim Meyering  <meyering@redhat.com>
83819             Bruno Haible  <bruno@clisp.org>
83821         * lib/vasnprintf.c (decimal_point_char): Define also if
83822         NEED_PRINTF_INFINITE_LONG_DOUBLE.
83824 2008-09-16  Bruno Haible  <bruno@clisp.org>
83825         and Eric Blake  <ebb9@byu.net>
83827         vasnprintf: support Irix 5.3
83828         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
83829         that mishandle long double infinity.
83830         Reported by Tom G. Christensen.
83832 2008-09-16  Bruno Haible  <bruno@clisp.org>
83834         * doc/glibc-functions/scandir.texi: Mention the function is missing on
83835         Solaris 9.
83836         * doc/glibc-functions/alphasort.texi: Likewise.
83837         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
83839 2008-09-16  Jim Meyering  <meyering@redhat.com>
83841         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
83842         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
83843         a umask modification leak out of a subshell.  Otherwise, the
83844         opensolaris /bin/sh would be accepted and thus cause unwarranted
83845         failures in the coreutils test suite.
83847 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
83849         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
83850         to succeed.
83852 2008-09-16  Jim Meyering  <meyering@redhat.com>
83854         avoid spurious test failure when library is built without ACL support
83855         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
83856         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
83857         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
83858         * tests/test-copy-acl.sh: Likewise.
83860 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83862         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
83863         based on character occurrence counts.
83865 2008-09-15  Eric Blake  <ebb9@byu.net>
83867         tests: avoid some compiler warnings
83868         * tests/test-memchr.c (main): Pass NULL indirectly.
83869         * tests/test-closein.c (main): Avoid unused variable.
83871 2008-09-15  Bruno Haible  <bruno@clisp.org>
83873         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
83874         are missing on OpenBSD 4.0 individually.
83875         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
83877 2008-09-15  Bruno Haible  <bruno@clisp.org>
83879         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
83880         * doc/posix-functions/strerror.texi: Mention also Cygwin.
83881         * doc/posix-functions/perror.texi: Likewise.
83882         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
83883         is missing.
83884         Reported by Eric Blake.
83886         * lib/errno.in.h: Use replacement values >= 2000.
83887         Reported by Eric Blake.
83889 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83891         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
83892         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
83893         limit.
83894         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
83895         compareseq was aborted.
83897 2008-09-14  Bruno Haible  <bruno@clisp.org>
83899         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
83900         yvec_edit_count.
83901         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
83902         (fstrcmp_bounded): Simplify result computation accordingly.
83904 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83906         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
83907         (fstrcmp): Define in terms of fstrcmp_bounded.
83908         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
83909         lower_bound argument.
83910         Return quickly if the result is certainly < lower_bound.
83911         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
83913 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83915         * lib/diffseq.h (EARLY_ABORT): New macro.
83916         (compareseq): Change return type to bool. Return true when EARLY_ABORT
83917         evaluates to true.
83919 2008-09-14  Bruno Haible  <bruno@clisp.org>
83921         * modules/perror-tests: New file.
83922         * tests/test-perror.sh: New file.
83923         * tests/test-perror.c: New file.
83925         New module 'perror'.
83926         * lib/stdio.in.h (perror): New declaration.
83927         * lib/perror.c: New file.
83928         * m4/perror.m4: New file.
83929         * modules/perror: New file.
83930         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
83931         * doc/posix-functions/perror.texi: Mention the perror module.
83932         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
83933         REPLACE_PERROR.
83934         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
83935         REPLACE_PERROR.
83937 2008-09-14  Bruno Haible  <bruno@clisp.org>
83939         * modules/stdio (Makefile.am): Reorder to match the order in
83940         lib/stdio.in.h.
83941         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
83943 2008-09-13  Bruno Haible  <bruno@clisp.org>
83945         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
83947 2008-09-13  Bruno Haible  <bruno@clisp.org>
83949         Extend strerror to cover the added errno values.
83950         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
83951         (rpl_strerror): Provide error messages for the added errno values and
83952         for the WSA* values.
83953         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
83954         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
83955         strerror.
83956         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
83957         * modules/strerror (Depends-on): Add errno.
83958         * doc/posix-functions/strerror.texi: Document the change.
83959         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
83960         and EOVERFLOW.
83962 2008-09-13  Bruno Haible  <bruno@clisp.org>
83964         * modules/EOVERFLOW: Remove file.
83965         * m4/eoverflow.m4: Remove file.
83966         * modules/EOVERFLOW-tests: Remove file.
83967         * tests/test-EOVERFLOW.c: Remove file.
83968         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
83969         * modules/ftell (Depends-on): Likewise.
83970         * modules/getdelim (Depends-on): Likewise.
83971         * modules/getugroups (Depends-on): Likewise.
83972         * modules/poll (Depends-on): Likewise.
83973         * modules/snprintf (Depends-on): Likewise.
83974         * modules/sprintf-posix (Depends-on): Likewise.
83975         * modules/vasnprintf (Depends-on): Likewise.
83976         * modules/vasprintf (Depends-on): Likewise.
83977         * modules/vfprintf-posix (Depends-on): Likewise.
83978         * modules/vsnprintf (Depends-on): Likewise.
83979         * modules/vsprintf-posix (Depends-on): Likewise.
83980         * modules/xvasprintf (Depends-on): Likewise.
83981         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
83982         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
83983         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
83984         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
83985         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
83986         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
83987         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
83988         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
83989         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
83990         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
83991         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
83992         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
83993         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
83994         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
83995         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
83996         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
83997         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
83998         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
83999         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
84000         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
84001         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
84002         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
84003         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
84004         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
84005         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
84006         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
84007         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
84008         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
84009         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
84010         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
84011         * MODULES.html.sh: Remove EOVERFLOW.
84012         * NEWS: Mention the change.
84014 2008-09-13  Bruno Haible  <bruno@clisp.org>
84016         * modules/errno-tests: New file.
84017         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
84019         * lib/errno.in.h: New file.
84020         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
84021         * modules/errno: New file.
84022         * doc/posix-headers/errno.texi: Update documentation.
84023         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
84025 2008-09-13  Bruno Haible  <bruno@clisp.org>
84027         * tests/test-poll.c: Use #if for native Windows, rather than testing
84028         __MSVCRT__.
84030 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
84031             Bruno Haible  <bruno@clisp.org>
84033         * lib/glob.c: Don't include <pwd.h> on native Windows.
84034         (WINDOWS32): New macro.
84035         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
84037 2008-09-13  Bruno Haible  <bruno@clisp.org>
84039         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
84040         (ETIMEDOUT): Remove macro.
84041         (glthread_cond_timedwait_multithreaded): New declaration.
84042         (glthread_cond_timedwait): Use it.
84043         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
84044         (glthread_cond_timedwait_multithreaded): New function.
84046 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
84048         * modules/poll-tests: Do not check for io.h.
84049         * tests/test-poll.c: Check for __MSVCRT__ instead.
84051 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
84053         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
84054         * modules/poll-tests: Add inet_pton, stdbool, sockets.
84055         * tests/test-poll.c: Use them.  Use _pipe on Windows.
84057 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
84059         * modules/poll-tests: New.
84060         * tests/test-poll.c: New.
84062 2008-09-12  Eric Blake  <ebb9@byu.net>
84064         frexp: test for NetBSD failure on -0.0
84065         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
84066         not all, bugs from NetBSD 3.0 have been fixed.
84067         * doc/posix-functions/frexp.texi (frexp): Document bug.
84068         Reported by Thomas Klausner.
84070         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
84071         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
84072         literal -0.0.
84073         Reported by Jonathan C. Patschke <jp@centtech.com>.
84075 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
84077         * lib/glthread/cond.h: Use dummy implementation also if
84078         USE_WIN32_THREADS.
84080 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
84082         * modules/fnmatch-posix (License): Change to LGPLv2+.
84083         * modules/fnmatch-gnu (License): Likewise.
84085 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
84087         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
84089 2008-09-11  Jim Meyering  <meyering@redhat.com>
84091         * users.txt: Add gtk-vnc.
84093 2008-09-08  Simon Josefsson  <simon@josefsson.org>
84095         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
84096         rotate amounts.
84098         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
84099         required for 16-bit and 8-bit rotates.
84100         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
84101         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
84102         UINT8_MAX instead of hard-coded constants.
84103         Suggested by Paul Eggert.
84105 2008-09-07  Bruno Haible  <bruno@clisp.org>
84107         * tests/test-striconveh.c (main): Check behaviour when converting from
84108         UTF-7.
84110         Make striconveh work better with stateful encodings.
84111         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
84112         that iconv does not increment the inptr when returning -1/EINVAL.
84114 2008-09-07  Bruno Haible  <bruno@clisp.org>
84116         * build-aux/config.rpath: Update according to libtool-2.2.6.
84117         * build-aux/config.libpath: Likewise.
84119 2008-09-06  Bruno Haible  <bruno@clisp.org>
84121         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
84122         * lib/freadptr.c (freadptr): Likewise.
84123         * lib/freadseek.c (freadptrinc): Likewise.
84124         Reported by Simon Josefsson.
84126 2008-09-06  Bruno Haible  <bruno@clisp.org>
84128         * modules/freadptr (License): Change to LGPLv2+.
84129         * modules/freadseek (License): Likewise.
84130         Suggested by Eric Blake.
84132         * modules/memchr2 (License): Change to LGPLv2+.
84133         Approved by Eric Blake.
84135 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84136             Bruno Haible  <bruno@clisp.org>
84138         Make gnulib-tool work with native 'sed' on AIX.
84139         * gnulib-tool (sed_noop): New variable.
84140         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
84141         func_add_or_update, func_create_testdir): Use it to initialize sed
84142         script variables.
84143         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
84145 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
84146             Bruno Haible  <bruno@clisp.org>
84148         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
84149         also works after #include directives.
84151 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
84153         getdate.y: reject an out-of-range timezone value
84154         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
84155         the range [-24...+24].  When specified with only one or two digits,
84156         * tests/test-getdate.c: Tests for the fix.
84157         * doc/getdate.texi: Document this change.
84159 2008-09-03  Bruno Haible  <bruno@clisp.org>
84161         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
84163 2008-09-02  Simon Josefsson  <simon@josefsson.org>
84165         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
84166         <bruce.korb@gmail.com> with ideas from Ben Pfaff
84167         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
84168         Blake <ebb9@byu.net>.
84170         * tests/test-bitrotate.c: Add more test vectors.
84172 2008-09-02  Eric Blake  <ebb9@byu.net>
84174         vasnprintf-posix: handle large precision via %.*d
84175         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
84176         when handling it ourselves.
84177         * tests/test-vasnprintf-posix.c (test_function): Add test.
84178         * tests/test-snprintf-posix.h (test_function): Likewise.
84179         * tests/test-sprintf-posix.h (test_function): Likewise.
84180         * tests/test-vasprintf-posix.c (test_function): Likewise.
84181         Reported by Alain Guibert.
84183 2008-09-01  Eric Blake  <ebb9@byu.net>
84185         c-stack: make configure-time check more robust
84186         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
84187         successful sigaction call.
84188         Reported by Tom G. Christensen.
84190 2008-09-01  Bruno Haible  <bruno@clisp.org>
84192         New module 'findprog-lgpl'.
84193         * modules/findprog-lgpl: New file.
84194         * lib/findprog-lgpl.c: New file.
84195         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
84196         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
84197         to decide whether to use strdup or xstrdup, concatenated_filename or
84198         xconcatenated_filename.
84200 2008-09-01  Bruno Haible  <bruno@clisp.org>
84202         Split module 'concat-filename' into 'concat-filename' (LGPL) and
84203         'xconcat-filename' (GPL).
84204         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
84205         (License): Change to LGPLv2+.
84206         * modules/xconcat-filename: New file.
84207         * lib/concat-filename.h (concatenated_filename): Change specification.
84208         (xconcatenated_filename): New declaration.
84209         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
84210         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
84211         memory situations.
84212         * lib/xconcat-filename.c: New file.
84213         * NEWS: Mention the change.
84214         * lib/findprog.c: Include concat-filename.h, not filename.h.
84215         (find_in_path): Use xconcatenated_filename instead of
84216         concatenated_filename.
84217         * lib/javacomp.c: Include concat-filename.h, not filename.h.
84218         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
84219         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
84220         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
84221         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
84222         instead of concatenated_filename.
84223         * lib/javaexec.c: Include concat-filename.h, not filename.h.
84224         (execute_java_class): Use xconcatenated_filename instead of
84225         concatenated_filename.
84226         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
84227         * modules/javacomp (Depends-on): Likewise.
84228         * modules/javaexec (Depends-on): Likewise.
84230 2008-09-01  Bruno Haible  <bruno@clisp.org>
84232         Split module 'filename' into 'filename' and 'concat-filename'.
84233         * modules/filename: Keep only lib/filename.h.
84234         (License): Change to LGPLv2+.
84235         * modules/concat-filename: New file, extracted from modules/filename.
84236         * lib/filename.h (concatenated_filename): Remove declaration.
84237         * lib/concat-filename.h: New file, extracted from lib/filename.h.
84238         * lib/concat-filename.c: Include concat-filename.h.
84239         * NEWS: Mention the change.
84241 2008-09-01  Simon Josefsson  <simon@josefsson.org>
84243         * lib/bitrotate.h (rotl8, rotr8): Add.
84245         * modules/bitrotate (configure.ac): Need
84246         AC_REQUIRE([AC_C_INLINE]).
84247         (Description): Mention stdint.h.  Reported by Bruno Haible
84248         <bruno@clisp.org>.
84250         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
84251         Paolo Bonzini <bonzini@gnu.org>.
84253 2008-08-31  Bruno Haible  <bruno@clisp.org>
84255         Assume Solaris specific bi-arch conventions on Solaris systems.
84256         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
84257         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
84258         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
84259         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
84260         like acl_libdirstem.
84261         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
84262         acl_libdirstem.
84263         * NEWS: Mention the change.
84264         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
84266 2008-08-31  Jim Meyering  <meyering@redhat.com>
84268         * lib/strftime.h: Add comments describing the two added arguments.
84270         remove duplicate #include directives
84271         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
84272         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
84274 2008-08-31  Bruno Haible  <bruno@clisp.org>
84276         New module 'sigpipe-die'.
84277         * modules/sigpipe-die: New file.
84278         * lib/sigpipe-die.h: New file.
84279         * lib/sigpipe-die.c: New file.
84280         * MODULES.html.sh (Signal handling): Add sigpipe-die.
84282 2008-08-31  Bruno Haible  <bruno@clisp.org>
84284         Don't override previously installed signal handlers.
84285         * lib/fatal-signal.c (saved_sigactions): New variable.
84286         (uninstall_handlers): Reset the signal to the saved handler, not
84287         to SIG_DFL (except when ignored).
84288         (install_handlers): Save the previous handlers.
84290 2008-08-30  Bruno Haible  <bruno@clisp.org>
84292         * gnulib-tool (func_reset_sigpipe): New function.
84293         (func_get_automake_snippet, func_modules_transitive_closure,
84294         func_import): Invoke it before a join command that reads from stdin,
84295         to avoid "echo: write error: Broken pipe" error messages on stderr.
84296         Reported by Sam Steingold <sds@gnu.org>.
84298 2008-08-30  Bruno Haible  <bruno@clisp.org>
84300         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
84301         Code copied from m4/open.m4.
84302         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
84303         access and the filename ends in a slash. Code copied from lib/open.c.
84304         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
84305         * tests/test-fopen.c (main): Check against bug with trailing slash.
84307 2008-08-29  Bruno Haible  <bruno@clisp.org>
84309         Avoid some "gcc -pedantic" warnings.
84310         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
84311         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
84312         * lib/dirent.in.h: Likewise.
84313         * lib/fcntl.in.h: Likewise.
84314         * lib/float.in.h: Likewise.
84315         * lib/iconv.in.h: Likewise.
84316         * lib/inttypes.in.h: Likewise.
84317         * lib/locale.in.h: Likewise.
84318         * lib/math.in.h: Likewise.
84319         * lib/netinet_in.in.h: Likewise.
84320         * lib/search.in.h: Likewise.
84321         * lib/signal.in.h: Likewise.
84322         * lib/stdarg.in.h: Likewise.
84323         * lib/stdint.in.h: Likewise.
84324         * lib/stdio.in.h: Likewise.
84325         * lib/stdlib.in.h: Likewise.
84326         * lib/string.in.h: Likewise.
84327         * lib/strings.in.h: Likewise.
84328         * lib/sys_select.in.h: Likewise.
84329         * lib/sys_socket.in.h: Likewise.
84330         * lib/sys_stat.in.h: Likewise.
84331         * lib/sys_time.in.h: Likewise.
84332         * lib/sysexits.in.h: Likewise.
84333         * lib/time.in.h: Likewise.
84334         * lib/unistd.in.h: Likewise.
84335         * lib/wchar.in.h: Likewise.
84336         * lib/wctype.in.h: Likewise.
84337         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
84338         * modules/fchdir (Makefile.am): Likewise.
84339         * modules/fcntl (Makefile.am): Likewise.
84340         * modules/float (Makefile.am): Likewise.
84341         * modules/iconv_open (Makefile.am): Likewise.
84342         * modules/inttypes (Makefile.am): Likewise.
84343         * modules/locale (Makefile.am): Likewise.
84344         * modules/math (Makefile.am): Likewise.
84345         * modules/netinet_in (Makefile.am): Likewise.
84346         * modules/search (Makefile.am): Likewise.
84347         * modules/signal (Makefile.am): Likewise.
84348         * modules/stdarg (Makefile.am): Likewise.
84349         * modules/stdint (Makefile.am): Likewise.
84350         * modules/stdio (Makefile.am): Likewise.
84351         * modules/stdlib (Makefile.am): Likewise.
84352         * modules/string (Makefile.am): Likewise.
84353         * modules/strings (Makefile.am): Likewise.
84354         * modules/sys_select (Makefile.am): Likewise.
84355         * modules/sys_socket (Makefile.am): Likewise.
84356         * modules/sys_stat (Makefile.am): Likewise.
84357         * modules/sys_time (Makefile.am): Likewise.
84358         * modules/sysexits (Makefile.am): Likewise.
84359         * modules/time (Makefile.am): Likewise.
84360         * modules/unistd (Makefile.am): Likewise.
84361         * modules/wchar (Makefile.am): Likewise.
84362         * modules/wctype (Makefile.am): Likewise.
84363         Reported by Reuben Thomas <rrt@sc3d.org>.
84365 2008-08-29  Bruno Haible  <bruno@clisp.org>
84367         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
84368         any more.
84370 2008-08-29  Simon Josefsson  <simon@josefsson.org>
84372         * MODULES.html.sh (Misc): Add bitrotate.
84374         * modules/bitrotate: New file.
84376         * lib/bitrotate.h: New file.
84378         * modules/bitrotate-tests: New file.
84380         * tests/test-bitrotate.c: New file.
84382         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
84383         on the bitrotate module.
84385         * lib/arctwo.c: Use new bitrotate module.
84387 2008-08-29  Jim Meyering  <meyering@redhat.com>
84389         bootstrap: merge changes from coreutils
84390         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
84391         of copied files.  Remove a kludge, now that this is fixed.
84392         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
84393         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
84394         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
84396 2008-08-29  Bruno Haible  <bruno@clisp.org>
84398         * MODULES.html.sh: Remove --cvs-urls option.
84400 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
84402         maint.mk: adjust to file name change
84403         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
84405 2008-08-28  Jim Meyering  <meyering@redhat.com>
84407         * modules/getndelim2 (License): Relicense to LGPLv2+.
84408         Approved by Richard Stallman for the version of 1995, and by
84409         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
84411 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
84413         * lib/getdelim.c (flockfile, funlockfile): Make all of them
84414         dummy if one is not available.  Do not touch them if
84415         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
84416         (getc_maybe_unlocked): New.
84417         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
84419 2008-08-26  Eric Blake  <ebb9@byu.net>
84421         doc/INSTALL: resync from autoconf
84422         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
84423         (INSTALL_PRELUDE): Delete; this is done more efficiently by
84424         moving...
84425         * install.texi [!autoconf]: ...here.  Resync from autoconf.
84426         * INSTALL: Regenerate.
84427         * INSTALL.ISO: New file.
84428         * INSTALL.UTF-8: Likewise.
84430 2008-08-26  Jim Meyering  <meyering@redhat.com>
84432         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
84433         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
84434         these definitions conditional, so that they may be overridden, too.
84436 2008-08-26  Bruno Haible  <bruno@clisp.org>
84438         Generate INSTALL file variants with prettier quotes.
84439         * doc/Makefile (INSTALL_PRELUDE): New macro.
84440         (INSTALL): Use it.
84441         (INSTALL.ISO, INSTALL.UTF-8): New rules.
84443 2008-08-26  Bruno Haible  <bruno@clisp.org>
84445         Run makeinfo in an English locale.
84446         * doc/Makefile (MAKEINFO): New variable.
84448 2008-08-26  Bruno Haible  <bruno@clisp.org>
84450         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
84451         Suggested by Eric Blake.
84453 2008-08-25  Bruno Haible  <bruno@clisp.org>
84455         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
84457 2008-08-25  Eric Blake  <ebb9@byu.net>
84459         c-stack: test that stack overflow can be caught
84460         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
84461         that platform allows handling stack overflow; at least OS/2 EMX
84462         has sigaltstack, but crashes before transferring control to
84463         handler on stack overflow.
84464         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
84465         check for HAVE_STACK_OVERFLOW_HANDLING.
84466         Reported by Elbert Pol.
84468 2008-08-25  Bruno Haible  <bruno@clisp.org>
84470         * doc/posix-functions/strftime.texi: Fix description of strftime
84471         module.
84473 2008-08-24  Bruno Haible  <bruno@clisp.org>
84475         * tests/uniwidth/test-uc_width2.c: New file.
84476         * tests/uniwidth/test-uc_width2.sh: New file.
84477         * modules/uniwidth/width-tests (Files): Add the new files.
84478         (TESTS): Add uniwidth/test-uc_width2.sh.
84479         (TESTS_ENVIRONMENT): New variable.
84480         (check_PROGRAMS): Add test-uc_width2.
84481         (test_uc_width2_SOURCES): New variable.
84483         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
84484         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
84485         not 0x00AB.
84486         Reported by Alexander V. Lukyanov <lav@netis.ru>.
84488 2008-08-22  Eric Blake  <ebb9@byu.net>
84490         test-lock, test-tls: mention why a test is skipped
84491         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
84492         skipped.
84493         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
84495         count-one-bits: relax license
84496         * modules/count-one-bits (License): Relicense to LGPLv2+.
84497         Suggested by Ludovic Courtès, approved by Ben Pfaff.
84499 2008-08-22  Andreas Schwab  <schwab@suse.de>
84501         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
84502         Remove spurious space in assignment.
84504 2008-08-21  Simon Josefsson  <simon@josefsson.org>
84506         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
84507         Paul Eggert <eggert@CS.UCLA.EDU>.
84509 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
84511         * modules/gettext: Add m4/threadlib.m4.
84513 2008-08-19  Eric Blake  <ebb9@byu.net>
84515         test-c-stack: fix compilation failure on FreeBSD 5.0
84516         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
84517         headers before <sys/resource.h>.
84518         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
84519         the bug.
84520         Reported by Nelson H. F. Beebe.
84522         strverscmp: migrate from "strverscmp.h" to <string.h>
84523         * modules/string (Makefile.am): Add new hooks.
84524         * modules/strverscmp (Files): Remove strverscmp.h.
84525         (Depends-on): Add string.
84526         (configure.ac): Add indicator.
84527         (Include): Mention new header.
84528         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
84529         defaults.
84530         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
84531         results.
84532         * lib/strverscmp.h: Delete.
84533         * lib/string.in.h (strverscmp): Provide declaration, when needed.
84534         * tests/test-strverscmp.c (includes): Adjust client.
84535         * lib/check-version.c (includes): Likewise.
84536         * NEWS: Document the change.
84538         strverscmp: add unit test
84539         * modules/strverscmp-tests: New file.
84540         * tests/test-strverscmp.c: Likewise.
84542 2008-08-19  Simon Josefsson  <simon@josefsson.org>
84544         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
84545         regarding Windows crypto stuff, from Mono.
84547 2008-08-19  Adam Strzelecki  <ono@java.pl>  (tiny change)
84549         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
84550         if present, for intel RND.  Return error on failures.
84552 2008-08-18  Ben Pfaff  <blp@gnu.org>
84554         gitlog-to-changelog: give better diagnostic for failed pipe-open
84555         * build-aux/gitlog-to-changelog: Improve error message: suggest
84556         that the version of Git may be too old.
84558 2008-08-18  Simon Josefsson  <simon@josefsson.org>
84560         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
84561         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
84563 2008-08-18  Bruno Haible  <bruno@clisp.org>
84565         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
84566         pthread_in_use().
84568 2008-08-18  Bruno Haible  <bruno@clisp.org>
84570         * lib/glthread/threadlib.c: Include <pthread.h>.
84572 2008-08-18  Bruno Haible  <bruno@clisp.org>
84574         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
84575         glthread_recursive_lock_* macros.
84576         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
84577         Fix syntax error.
84579 2008-08-18  Bruno Haible  <bruno@clisp.org>
84581         * lib/glthread/thread.c: Avoid forcing a context switch right after
84582         thread creation.
84584 2008-08-17  Bruno Haible  <bruno@clisp.org>
84586         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
84587         * lib/glthread/thread.h: Provide Win32 specific implementation.
84588         * modules/thread (Files): Add lib/glthread/thread.c.
84589         (Depends-on): Add lock.
84590         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
84592 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
84594         New module 'yield'.
84595         * modules/yield: New file.
84596         * lib/glthread/yield.h: New file.
84597         * m4/yield.m4: New file.
84598         * MODULES.html.sh (Multithreading): Add yield.
84600 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
84602         New module 'thread'.
84603         * modules/thread: New file.
84604         * lib/glthread/thread.h: New file.
84605         * m4/thread.m4: New file.
84606         * MODULES.html.sh (Multithreading): Add thread.
84608 2008-08-17  Bruno Haible  <bruno@clisp.org>
84610         * lib/glthread/lock.h: Include <stdlib.h> always.
84611         * lib/glthread/tls.h: Likewise.
84612         * lib/glthread/cond.h: Likewise.
84614 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
84616         New module 'cond'.
84617         * modules/cond: New file.
84618         * lib/glthread/cond.h: New file.
84619         * lib/glthread/cond.c: New file.
84620         * m4/cond.m4: New file.
84621         * MODULES.html.sh (Multithreading): Add cond.
84623 2008-08-16  Eric Blake  <ebb9@byu.net>
84625         c-stack: fix regression on Irix 5.3 from 2008-06-21
84626         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
84627         sa_sigaction...
84628         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
84629         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
84630         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
84631         * modules/signal (Makefile.am): Use the value.
84632         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
84633         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
84634         * doc/posix-headers/signal.texi (signal.h): Document this
84635         portability issue.
84636         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
84637         Reported by Tom G. Christensen.
84639 2008-08-17  Bruno Haible  <bruno@clisp.org>
84641         New module 'threadlib'.
84642         * modules/threadlib: New file.
84643         * lib/glthread/threadlib.c: New file, extracted from
84644         lib/glthread/lock.c.
84645         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
84646         functions.
84647         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
84648         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
84649         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
84650         macros.
84651         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
84652         (gl_DISABLE_THREADS): Remove macro.
84653         * modules/lock (Files): Remove build-aux/config.rpath.
84654         (Depends-on): Remove havelib. Add threadlib.
84655         (configure.ac-early): Remove section.
84656         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
84657         * modules/tls (Depends-on): Remove lock. Add threadlib.
84658         (Link): New section, copied from threadlib.
84659         * MODULES.html.sh (Multithreading): Add threadlib.
84661 2008-08-14  Bruno Haible  <bruno@clisp.org>
84663         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
84664         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
84665         glthread_rwlock_unlock, glthread_rwlock_destroy,
84666         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
84667         glthread_recursive_lock_destroy): Define as macros always.
84668         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
84669         glthread_lock_lock.
84670         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
84671         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
84672         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
84673         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
84674         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
84675         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
84676         (glthread_recursive_lock_lock_func): Renamed from
84677         glthread_recursive_lock_lock.
84678         (glthread_recursive_lock_unlock_func): Renamed from
84679         glthread_recursive_lock_unlock.
84680         (glthread_recursive_lock_destroy_func): Renamed from
84681         glthread_recursive_lock_destroy.
84683 2008-08-14  Bruno Haible  <bruno@clisp.org>
84685         * lib/glthread/lock.h: Renamed from lib/lock.h.
84686         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
84687         * lib/glthread/tls.h: Renamed from lib/tls.h.
84688         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
84689         * lib/fstrcmp.c: Update includes.
84690         * lib/strsignal.c: Update includes.
84691         * modules/lock (Files, Makefile.am): Update.
84692         (Include): Change to "glthread/lock.h".
84693         * modules/tls (Files, Makefile.am): Update.
84694         (Include): Change to "glthread/tls.h".
84695         * tests/test-lock.c: Update includes.
84696         * tests/test-tls.c: Update includes.
84697         * NEWS: Mention the renamed header files.
84699 2008-08-11  Jim Meyering  <meyering@redhat.com>
84701         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
84703 2008-08-11  Eric Blake  <ebb9@byu.net>
84705         test-c-stack: avoid C99-ism
84706         * tests/test-c-stack.c (main): Fix whitespace, move declaration
84707         before statement.
84708         Reported by Alain Guibert.
84710 2008-08-10  Jim Meyering  <meyering@redhat.com>
84712         ensure that return value of uinttostr et al are not ignored
84713         * lib/inttostr.h (__GNUC_PREREQ): Define.
84714         (__attribute_warn_unused_result__): Define.
84715         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
84717 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
84719         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
84720         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
84722 2008-08-07  Jim Meyering  <meyering@redhat.com>
84724         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
84726         * modules/mkstemp (License): Relicense under LGPLv2+.
84727         * modules/tempname (License): Likewise.
84729 2008-08-06  Bruno Haible  <bruno@clisp.org>
84731         * lib/poll.c (poll): Further micro-optimization.
84733 2008-08-06  Jim Meyering  <meyering@redhat.com>
84735         inet_pton.c: use locale-independent tolower
84736         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
84737         (inet_pton6): Use c_tolower rather than tolower.
84738         * modules/inet_pton (Depends-on): Add c-ctype.
84740 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
84742         * lib/poll.c (poll): Avoid division when timeout is 0, cache
84743         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
84745 2008-08-06  Jim Meyering  <meyering@redhat.com>
84747         * modules/inet_pton (License): Relicense under LGPLv2+.
84749 2008-08-03  Bruno Haible  <bruno@clisp.org>
84751         Additional non-aborting API for lock and tls.
84752         * lib/lock.h: Include <errno.h>.
84753         (glthread_lock_init): New macro/function.
84754         (gl_lock_init): Define as wrapper around glthread_lock_init.
84755         (glthread_lock_lock): New macro/function.
84756         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
84757         (glthread_lock_unlock): New macro/function.
84758         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
84759         (glthread_lock_destroy): New macro/function.
84760         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
84761         (glthread_rwlock_init): New macro/function.
84762         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
84763         (glthread_rwlock_rdlock): New macro/function.
84764         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
84765         (glthread_rwlock_wrlock): New macro/function.
84766         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
84767         (glthread_rwlock_unlock): New macro/function.
84768         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
84769         (glthread_rwlock_destroy): New macro/function.
84770         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
84771         (glthread_recursive_lock_init): New macro/function.
84772         (gl_recursive_lock_init): Define as wrapper around
84773         glthread_recursive_lock_init.
84774         (glthread_recursive_lock_lock): New macro/function.
84775         (gl_recursive_lock_lock): Define as wrapper around
84776         glthread_recursive_lock_lock.
84777         (glthread_recursive_lock_unlock): New macro/function.
84778         (gl_recursive_lock_unlock): Define as wrapper around
84779         glthread_recursive_lock_unlock.
84780         (glthread_recursive_lock_destroy): New macro/function.
84781         (gl_recursive_lock_destroy): Define as wrapper around
84782         glthread_recursive_lock_destroy.
84783         (glthread_once): New macro/function.
84784         (gl_once): Define as wrapper around glthread_once.
84785         Update function declarations.
84786         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
84787         glthread_rwlock_init. Return error code.
84788         (glthread_rwlock_rdlock_multithreaded): Renamed from
84789         glthread_rwlock_rdlock. Return error code.
84790         (glthread_rwlock_wrlock_multithreaded): Renamed from
84791         glthread_rwlock_wrlock. Return error code.
84792         (glthread_rwlock_unlock_multithreaded): Renamed from
84793         glthread_rwlock_unlock. Return error code.
84794         (glthread_rwlock_destroy_multithreaded): Renamed from
84795         glthread_rwlock_destroy. Return error code.
84796         (glthread_recursive_lock_init_multithreaded): Renamed from
84797         glthread_recursive_lock_init. Return error code.
84798         (glthread_recursive_lock_lock_multithreaded): Renamed from
84799         glthread_recursive_lock_lock. Return error code.
84800         (glthread_recursive_lock_unlock_multithreaded): Renamed from
84801         glthread_recursive_lock_unlock. Return error code.
84802         (glthread_recursive_lock_destroy_multithreaded): Renamed from
84803         glthread_recursive_lock_destroy. Return error code.
84804         (glthread_once_call): Make static.
84805         (glthread_once_multithreaded): Renamed from glthread_once.
84806         * lib/tls.h: Include <errno.h>.
84807         (glthread_tls_key_init): New macro/function.
84808         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
84809         (glthread_tls_set): New macro/function.
84810         (gl_tls_set): Define as wrapper around glthread_tls_set.
84811         (glthread_tls_key_destroy): New macro/function.
84812         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
84813         Update function declarations.
84814         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
84815         glthread_tls_get.
84816         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
84818 2008-08-04  Eric Blake  <ebb9@byu.net>
84820         gnumakefile: use space, not TAB, outside of targets
84821         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
84823 2008-08-02  Jim Meyering  <meyering@redhat.com>
84825         getdate.y: avoid locale-dependent date parsing failure
84826         In Turkish locales, getdate would fail to recognize keywords
84827         containing a lowercase "i".  The solution is not to rely on
84828         locale-sensitive case-conversion.
84829         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
84830         (lookup_word): Use c_toupper in place of toupper.
84831         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
84832         Reported by Vefa Bicakci <bicave@superonline.com> in
84833         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
84834         * modules/getdate (Depends-on): Add c-ctype.
84836 2008-08-02  Bruno Haible  <bruno@clisp.org>
84838         * gnulib-tool (func_import): When updating or creating a .gitignore
84839         file, prepend each added line with a slash, and ignore leading slashes
84840         from the existing lines.
84841         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
84843 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84845         Portability fix for GNU make 3.79.1.
84846         * top/GNUmakefile: Avoid 'else COND', which older GNU make
84847         versions do not understand.
84849 2008-08-01  Bruno Haible  <bruno@clisp.org>
84851         Work around bug of HP-UX 10.20 cc with -0.0 literal.
84852         * tests/test-isnanf.h (zero): New variable.
84853         (main): Avoid literal -0.0f.
84854         * tests/test-isnand.h (zero): New variable.
84855         (main): Avoid literal -0.0.
84856         * tests/test-isnanl.h (zero): New variable.
84857         (main): Avoid literal -0.0L.
84858         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
84859         (test_float, test_double, test_long_double): Avoid literals -0.0f,
84860         -0.0, -0.0L.
84861         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
84862         (test_signbitd): Avoid literal -0.0.
84863         (test_signbitl): Avoid literal -0.0L.
84864         * tests/test-ceilf1.c (zero): New variable.
84865         (main): Avoid literal -0.0f.
84866         * tests/test-ceill.c (zero): New variable.
84867         (main): Avoid literal -0.0L.
84868         * tests/test-floorf1.c (zero): New variable.
84869         (main): Avoid literal -0.0f.
84870         * tests/test-floorl.c (zero): New variable.
84871         (main): Avoid literal -0.0L.
84872         * tests/test-roundf1.c (zero): New variable.
84873         (main): Avoid literal -0.0f.
84874         * tests/test-round1.c (zero): New variable.
84875         (main): Avoid literal -0.0.
84876         * tests/test-roundl.c (zero): New variable.
84877         (main): Avoid literal -0.0L.
84878         * tests/test-truncf1.c (zero): New variable.
84879         (main): Avoid literal -0.0f.
84880         * tests/test-trunc1.c (zero): New variable.
84881         (main): Avoid literal -0.0.
84882         * tests/test-truncl.c (zero): New variable.
84883         (main): Avoid literal -0.0L.
84884         * tests/test-frexp.c (zero): New variable.
84885         (main): Avoid literal -0.0.
84886         * tests/test-frexpl.c (zero): New variable.
84887         (main): Avoid literal -0.0L.
84888         * tests/test-ldexpl.c (zero): New variable.
84889         (main): Avoid literal -0.0L.
84890         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
84891         (zerod, zerol): New variables.
84892         (test_function): Avoid literals -0.0, -0.0L.
84893         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
84894         (zerod, zerol): New variables.
84895         (test_function): Avoid literals -0.0, -0.0L.
84896         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
84897         (zerod, zerol): New variables.
84898         (test_function): Avoid literals -0.0, -0.0L.
84899         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
84900         (zerod, zerol): New variables.
84901         (test_function): Avoid literals -0.0, -0.0L.
84902         * tests/test-strtod.c (zero): New variable.
84903         (main): Avoid literal -0.0.
84904         Reported by Jonathan C. Patschke <jp@centtech.com>.
84906 2008-07-31  Jim Meyering  <meyering@redhat.com>
84908         sha256.h: correct definition of SHA224_DIGEST_SIZE
84909         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
84910         Reported by Paulie Pena IV <paulie4@gmail.com>.
84911         Define as 224 / 8, rather than as a literal.
84912         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
84913         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
84914         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
84916 2008-07-31  Bruno Haible  <bruno@clisp.org>
84918         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
84919         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
84920         Reported by Jonathan Patschke <jp@centtech.com>.
84922 2008-07-31  Bruno Haible  <bruno@clisp.org>
84924         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
84925         Reported by Paolo Bonzini <bonzini@gnu.org>.
84927 2008-07-30  Eric Blake  <ebb9@byu.net>
84929         test-strtod: allow compilation without -lm
84930         * tests/test-strtod.c (main): Avoid link dependence on fabs.
84931         Reported by Dennis Clarke <blastwave@gmail.com>.
84933 2008-07-28  Jim Meyering  <meyering@redhat.com>
84935         bootstrap: work also when there are no .po files in po/
84936         * build-aux/bootstrap (update_po_files): Complete the change
84937         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
84939 2008-07-27  Jim Meyering  <meyering@redhat.com>
84941         * users.txt: Add zile.
84943 2008-07-26  Ben Pfaff  <blp@gnu.org>
84945         Add missing dependencies on new m4/exponent[fdl].m4 files.
84946         * modules/isnanf-nolibm: Add m4/exponentf.m4.
84947         * modules/isnand-nolibm: Add m4/exponentd.m4.
84948         * modules/isnanl-nolibm: Add m4/exponentl.m4.
84949         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
84950         m4/isnan[fdl].m4, because the macros actually used moved.
84951         Reported by Jim Meyering.
84953 2008-07-14  Ben Pfaff  <blp@gnu.org>
84955         Add isinf module.
84956         * lib/isinf.c: New file.
84957         * lib/math.in.h: Define isinf macro if we have decided to replace
84958         it.
84959         * m4/isinf.m4: New file.
84960         * m4/math_h.m4: Initialize and substitute variables for isinf
84961         module.
84962         * modules/isinf: New file.
84963         * modules/isinf-tests: New file.
84964         * modules/math: Add substitutions for new module.
84965         * tests/test-isinf.c: New file.
84966         * doc/posix-functions/isinf.texi: Mention new module.
84967         * MODULES.html.sh: Mention new module.
84969 2008-07-14  Ben Pfaff  <blp@gnu.org>
84971         Factor out some macros for use by additional modules.
84972         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
84973         exponentf.m4.
84974         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
84975         exponentd.m4.
84976         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
84977         file exponentl.m4.
84978         * m4/exponentf.m4: New file.
84979         * m4/exponentd.m4: New file.
84980         * m4/exponentl.m4: New file.
84981         * modules/isnanf: Use new file m4/exponentf.m4.
84982         * modules/isnand: Use new file m4/exponentd.m4.
84983         * modules/isnanl: Use new file m4/exponentl.m4.
84985 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
84987         mktime.c: normalize tp->tm_isdst value to -1/0/1.
84988         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
84989         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
84990         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
84992         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
84993         readlink on platforms without PATH_MAX.
84995 2008-07-21  Eric Blake  <ebb9@byu.net>
84997         Warn, not fail, on stale version.
84998         * top/GNUmakefile (_curr-ver): Tone down previous patch.
85000         Don't allow installation with stale devel version number.
85001         * top/GNUmakefile (_is-install-target): New macro.
85002         (_curr-ver): Forbid installation with stale version number.
85004 2008-07-20  Bruno Haible  <bruno@clisp.org>
85006         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
85007         TESTS_ENVIRONMENT.
85008         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
85010 2008-07-20  Bruno Haible  <bruno@clisp.org>
85012         * lib/c-stack.h (c_stack_action): Add documentation.
85013         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
85015 2008-07-20  Bruno Haible  <bruno@clisp.org>
85017         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
85018         * modules/readlink (License): Likewise.
85020 2008-07-17  Eric Blake  <ebb9@byu.net>
85022         * modules/c-stack (Link): Fix typo.
85024         Make c-stack use libsigsegv, when available.
85025         * modules/c-stack (Depends-on): Add libsigsegv.
85026         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
85027         needed.
85028         * lib/c-stack.c (SIGSTKSZ): Define fallback.
85029         (segv_handler, overflow_handler, c_stack_action)
85030         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
85031         implementation when libsigsegv is available, but only when using
85032         the library is necessary.
85033         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
85034         comment, explaining why XSI check fails on Linux.
85035         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
85036         * tests/test-c-stack2.sh: Tweak skip message.
85037         * NEWS: Document new link-time requirements.
85039 2008-07-16  Eric Blake  <ebb9@byu.net>
85041         c-stack: Expose false positives when not using libsigsegv.
85042         * modules/c-stack-tests (Files): Expand test.
85043         * tests/test-c-stack.c (main): Add means to conditionally trigger
85044         non-overflow SIGSEGV.
85045         * tests/test-c-stack2.sh: New file.
85047 2008-07-14  Bruno Haible  <bruno@clisp.org>
85049         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
85050         Reported by Eric Blake.
85052 2008-07-14  Sam Steingold  <sds@gnu.org>
85053             Bruno Haible  <bruno@clisp.org>
85055         New module libsigsegv.
85056         * modules/libsigsegv: New file.
85057         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
85058         modifications.
85059         * MODULES.html.sh (Signal handling): New section.
85061 2008-07-14  Bruno Haible  <bruno@clisp.org>
85063         * modules/unictype/ctype-* (Description): Add the word "function".
85064         Improves the resulting doc in MODULES.html.
85066 2008-07-12  Ben Pfaff  <blp@gnu.org>
85068         Add longlong module.
85069         * modules/longlong: New file.
85071 2008-07-12  Bruno Haible  <bruno@clisp.org>
85073         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
85074         to empty.
85076 2008-07-10  Ben Pfaff  <blp@gnu.org>
85078         Add isnan module.
85079         * doc/posix-functions/isnan.texi: Mention new module.
85080         * lib/math.in.h: Define isnan macro if we have decided to replace
85081         it.
85082         * m4/isnan.m4: New file.
85083         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
85084         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
85085         also.
85086         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
85087         redundancy.
85088         * m4/math_h.m4: Initialize and substitute variables for isnan
85089         module.
85090         * modules/isnan: New file.
85091         * modules/isnan-tests: New file.
85092         * modules/math: Add substitutions for new module.
85093         * tests/test-isnan.c: New file.
85094         * MODULES.html.sh: Mention new module.
85096 2008-07-10  Ben Pfaff  <blp@gnu.org>
85098         Add isnanf module.
85099         * lib/isnanf.m4: New file.
85100         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
85101         (gl_HAVE_ISNANF_IN_LIBM): New macro.
85102         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
85103         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
85104         * modules/isnanf: New file.
85105         * modules/isnanf-tests: New file.
85106         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
85107         files.
85108         * tests/test-isnanf-nolibm.c: factored most of its contents into
85109         new file tests/test-isnanf.h.
85110         * tests/test-isnanf.h: New file.
85111         * tests/test-isnanf.c: New file.
85112         * MODULES.html.sh: Mention new module.
85113         * doc/glibc-functions/isnanf.texi: Mention new module.
85115 2008-07-10  Ben Pfaff  <blp@gnu.org>
85117         Add isnand module.
85118         * lib/isnand.h: New file.
85119         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
85120         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
85121         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
85122         functionality also.
85123         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
85124         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
85125         (gl_HAVE_ISNAND_IN_LIBM): New macro.
85126         * modules/isnand: New file.
85127         * modules/isnand-tests: New file.
85128         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
85129         files.
85130         * tests/test-isnand-nolibm.c: factored most of its contents into
85131         new file tests/test-isnand.h.
85132         * tests/test-isnand.h: New file.
85133         * tests/test-isnand.c: New file.
85134         * MODULES.html.sh: Mention new module.
85136 2008-07-10  Ben Pfaff  <blp@gnu.org>
85138         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
85139         * lib/isnand.h: Rename lib/isnand-nolibm.h.
85140         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
85141         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
85142         * modules/isnanf-nolibm: Update references to renamed files.
85143         * modules/isnand-nolibm: Likewise.
85144         * modules/isnanf-nolibm-tests: Likewise.
85145         * modules/isnand-nolibm-tests: Likewise.
85146         * lib/frexp.c: Likewise.
85147         * lib/isfinite.c: Likewise.
85148         * lib/signbitd.c: Likewise.
85149         * lib/signbitf.c: Likewise.
85150         * lib/vasnprintf.c: Likewise.
85151         * tests/test-ceilf1.c: Likewise.
85152         * tests/test-ceilf2.c: Likewise.
85153         * tests/test-floorf1.c: Likewise.
85154         * tests/test-floorf2.c: Likewise.
85155         * tests/test-frexp.c: Likewise.
85156         * tests/test-round1.c: Likewise.
85157         * tests/test-round2.c: Likewise.
85158         * tests/test-roundf1.c: Likewise.
85159         * tests/test-strtod.c: Likewise.
85160         * tests/test-trunc1.c: Likewise.
85161         * tests/test-trunc2.c: Likewise.
85162         * tests/test-truncf1.c: Likewise.
85163         * tests/test-truncf2.c: Likewise.
85164         * NEWS: Mention the renamed header files.
85166 2008-07-11  Jim Meyering  <meyering@redhat.com>
85168         vc-list-files: make the last-resort awk code more portable
85169         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
85170         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
85171         does not support it.
85173 2008-07-10  Eric Blake  <ebb9@byu.net>
85175         Work with tar's bootstrap.
85176         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
85177         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
85178         an m4 comment.
85180 2008-07-09  Jim Meyering  <meyering@redhat.com>
85182         posix-shell.m4: fix typo that made this test malfunction
85183         * m4/posix-shell.m4: Remove capitalization in variable name.
85185 2008-07-08  Bruno Haible  <bruno@clisp.org>
85187         * m4/onceonly.m4: Update comments.
85188         Reported by Ben Pfaff <blp@cs.stanford.edu>.
85190 2008-07-04  Jim Meyering  <meyering@redhat.com>
85192         * users.txt: Add vc-dwim.
85193         (bison, coreutils): Use the gitweb URL.
85195 2008-07-03  Jim Meyering  <meyering@redhat.com>
85197         * users.txt: Add libffcall.  From Sam Steingold.
85199 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
85201         getdate.y: do not ignore TZ with relative day, month or year offset
85202         * lib/getdate.y (get_date): Move the tz-handling block to follow the
85203         relative-date-handling, since otherwise, the latter would clobber the
85204         sole output (an updated Start value) of the tz-handling block.
85205         * tests/test-getdate.c: Tests for the fix
85207 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85209         Recognize 'foo_LIBRARIES += libgnu.a'.
85210         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
85211         makefile snippet has already specified an installation location,
85212         also using '+='.
85214 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
85216         getdate.y: factor out common actions
85217         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
85218         Use them in place of open-coded actions.
85220 2008-07-01  Simon Josefsson  <simon@josefsson.org>
85222         Add self-test for getdate module.
85223         * modules/getdate-tests: New file.
85224         * tests/test-getdate.c: New file.
85226 2008-06-29  Bruno Haible  <bruno@clisp.org>
85228         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
85229         .gitignore.
85230         Reported by Sylvain Beucler <beuc@beuc.net>.
85232 2008-06-29  Bruno Haible  <bruno@clisp.org>
85234         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
85235         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
85237 2008-06-29  Bruno Haible  <bruno@clisp.org>
85239         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
85240         EXTRA_DIST.
85241         Reported by Sylvain Beucler <beuc@beuc.net>.
85243 2008-06-26  Jim Meyering  <meyering@redhat.com>
85245         make several modules depend on the "open" module
85246         This provides slightly increased consistency when opening-for-write
85247         the name of a non-directory spelled with a trailing slash.
85248         * modules/chdir-safer: Likewise.
85249         * modules/chown: Likewise.
85250         * modules/clean-temp: Likewise.
85251         * modules/copy-file: Likewise.
85252         * modules/fchdir: Likewise.
85253         * modules/fcntl-safer: Likewise.
85254         * modules/pipe: Likewise.
85255         * modules/utime: Likewise.
85256         Prompted by Eric Blake and Bruno Haible.
85258 2008-06-24  Andreas Schwab  <schwab@suse.de>
85260         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
85261         literals can be used as initializers for global variables.
85263 2008-06-23  Eric Blake  <ebb9@byu.net>
85265         Make gnulib-cache.m4 easier to diff.
85266         * gnulib-tool (func_import): Allow newlines when reading cached
85267         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
85269 2008-06-23  Bruno Haible  <bruno@clisp.org>
85271         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
85272         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
85273         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
85274         m4/signalblocking.m4.
85275         (gl_PREREQ_SIGACTION): Don't invoke it.
85276         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
85277         gl_PREREQ_SIG_HANDLER_H.
85278         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
85279         Don't check for sigaction here.
85281 2008-06-23  Bruno Haible  <bruno@clisp.org>
85283         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
85284         (install_handlers): Don't set the SA_RESETHAND flag.
85286 2008-06-23  Bruno Haible  <bruno@clisp.org>
85288         * m4/sigaction.m4: Comment fixes.
85289         * lib/signal.in.h: Likewise.
85291 2008-06-23  Eric Blake  <ebb9@byu.net>
85293         Fix typo.
85294         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
85296         Avoid SA_ namespace.
85297         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
85298         Reported by Ralf Wildenhues.
85300         Avoid test failure due to SA_RESTORER.
85301         * tests/test-sigaction.c (SA_MASK): New macro.
85302         (main): Avoid failing due to extension flags being set.
85303         Reported by Jim Meyering.
85305         Revert use of sig-handler.h in sigprocmask.c.
85306         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
85307         it requires the existence of struct sigaction.
85308         * lib/sigprocmask.c (handler_t): Restore typedef.
85309         (rpl_signal, old_handlers): Use local type.
85311 2008-06-22  Bruno Haible  <bruno@clisp.org>
85313         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
85314         conditionally.
85315         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
85317 2008-06-22  Bruno Haible  <bruno@clisp.org>
85319         * doc/posix-functions/siginterrupt.texi: Move note.
85321         * lib/signal.in.h (SA_RESTART): New macro.
85322         * lib/sigaction.c: Update comment.
85324         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
85326         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
85327         (gl_PREREQ_SIGPROCMASK): Invoke it.
85328         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
85330         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
85332         * lib/sigprocmask.c: Update a comment.
85334 2008-06-21  Eric Blake  <ebb9@byu.net>
85336         Use sigaction module rather than signal().
85337         * modules/c-stack (Depends-on): Add sigaction.
85338         * modules/fatal-signal (Depends-on): Likewise.
85339         * modules/nanosleep (Depends-on): Likewise.
85340         * modules/sigprocmask (Files): Add sig-handler.h.
85341         * modules/sigaction (Files): Likewise.
85342         * lib/sig-handler.h (get_handler): New file, suggested by Paul
85343         Eggert.
85344         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
85345         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
85346         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
85347         (init_fatal_signals): Likewise.
85348         * lib/nanosleep.c (rpl_nanosleep): Likewise.
85349         (siginterrupt): Delete fallback.
85350         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
85351         instead.
85352         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
85353         siginterrupt.
85355         New module sigaction, for mingw.
85356         * modules/sigaction: New module...
85357         * modules/sigaction-tests: ...and its test.
85358         * m4/sigaction.m4: New file.
85359         * lib/sigaction.c: Likewise.
85360         * tests/test-sigaction.c: Likewise.
85361         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
85362         * modules/signal (Makefile.am): Likewise.
85363         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
85364         needed.
85365         * doc/posix-headers/signal.texi (signal.h): Mention provided
85366         types.
85367         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
85368         that sigaction is preferable.
85369         * doc/posix-functions/sigaction.texi (sigaction): Mention new
85370         module.
85371         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85372         sigaction.
85374         Improve robustness of sigprocmask by overriding signal.
85375         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
85376         is in use.
85377         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
85378         (SIGKILL, SIGSTOP): Provide fallbacks.
85379         (rpl_signal): Implement.
85380         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
85381         signal can be called inside handlers.
85383         Fix nanosleep module on mingw.
85384         * modules/nanosleep (Depends-on): Add sys_select.
85385         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
85387         Fix licensing of sigprocmask.
85388         * modules/raise (License): Relicense as LGPL.
85390 2008-06-21  Bruno Haible  <bruno@clisp.org>
85392         * lib/propername.c (proper_name_utf8): Don't use the transliterated
85393         result if it contains question marks.
85394         Reported by Michael Geng <linux@michaelgeng.de>.
85396 2008-06-19  Bruno Haible  <bruno@clisp.org>
85398         Fix CVS-ism.
85399         * doc/gnulib.texi: Include updated-stamp.texi.
85400         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
85401         (updated-stamp.texi): New rule.
85402         (gnulib.info): Depend on it.
85403         * doc/.gitignore: Add updated-stamp.texi.
85404         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
85406 2008-06-19  Bruno Haible  <bruno@clisp.org>
85408         * doc/Makefile (gnulib.info): Update and simplify dependencies.
85409         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
85411 2008-06-19  Eric Blake  <ebb9@byu.net>
85413         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
85414         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
85415         Reported by Stepan Kasal.
85417 2008-06-18  Bruno Haible  <bruno@clisp.org>
85419         * lib/fatal-signal.c (init_fatal_signals): Add comment.
85420         Reported by Eric Blake.
85422 2008-06-18  Eric Blake  <ebb9@byu.net>
85424         Work around cygwin 1.5.25 strsignal bug.
85425         * tests/test-strsignal.c: Allow for const char *.
85426         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
85428 2008-06-18  Simon Josefsson  <simon@josefsson.org>
85430         * users.txt: Update URL to article and add author/date
85431         information.
85433 2008-06-17  Bruno Haible  <bruno@clisp.org>
85435         New macro gl_DISABLE_THREADS.
85436         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
85437         if the user did not pass --enable-threads or --disable-threads option.
85438         (gl_DISABLE_THREADS): New macro.
85439         Reported by Eric Blake <ebb9@byu.net>.
85441 2008-06-17  Bruno Haible  <bruno@clisp.org>
85443         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
85444         when the macro ignores it.
85445         Based on a patch by Eric Blake <ebb9@byu.net>.
85447 2008-06-17  Bruno Haible  <bruno@clisp.org>
85449         * modules/tls (License): Change to LGPLv2+.
85450         Reported by Eric Blake.
85452 2008-06-17  Eric Blake  <ebb9@byu.net>
85454         Simplify c-stack prerequisites.
85455         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
85456         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
85457         no longer requires <ucontext.h> to exist.  Optimize setrlimit
85458         check.
85459         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
85460         <sys/resource.h>.
85462         Move c-stack test into testsuite.
85463         * modules/c-stack-tests: New file.
85464         * lib/c-stack.c [DEBUG]: Move test program...
85465         * tests/test-c-stack.c: ...into this new file.  Skip rather than
85466         fail test if sigaltstack is lacking.
85467         * tests/test-c-stack.sh: New driver file.
85469 2008-06-16  Eric Blake  <ebb9@byu.net>
85471         Use raise module consistently.
85472         * modules/fatal-signal (Depends-on): Add raise.
85473         * modules/sigprocmask (Depends-on): Likewise.
85474         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
85475         * lib/sigprocmask.c (sigprocmask): Likewise.
85476         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
85477         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
85479         Fix compliance bug in sigpending.
85480         * lib/sigprocmask.c (sigpending): Return pending array via
85481         parameter, not return value.
85483 2008-06-14  Eric Blake  <ebb9@byu.net>
85485         Improve obstack-printf test code.
85486         * tests/test-obstack-printf.c (test_function): Fix comment, and
85487         simplify usage of obstack_* in macros.  Add a test for coverage.
85488         Reported by Bruno Haible.
85490 2008-06-14  Bruno Haible  <bruno@clisp.org>
85492         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
85493         array size as a constant, not as a const variable.
85494         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
85495         AC_USE_SYSTEM_EXTENSIONS.
85496         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
85497         Test whether the obstack_printf function actually exists.
85498         * modules/obstack-printf (Depends-on): Add extensions.
85499         (Include): Remove obstack.h.
85500         * modules/obstack-printf-posix (Depends-on): Add extensions.
85501         (Include): Remove obstack.h.
85503 2008-06-13  Eric Blake  <ebb9@byu.net>
85505         Add obstack-printf and obstack-printf-posix modules.
85506         * modules/obstack-printf: New file.
85507         * modules/obstack-printf-posix: Likewise.
85508         * MODULES.html.sh (Misc): Mention them.
85509         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
85510         Likewise.
85511         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
85512         Likewise.
85513         * modules/stdio (Makefile.am): Accomodate new modules.
85514         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
85515         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
85516         Declare.
85517         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
85518         functions.
85519         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
85520         (gl_REPLACE_OBSTACK_PRINTF): New macros
85521         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
85522         * tests/test-obstack-printf.c: New file.
85523         * modules/obstack-printf-tests: Likewise.
85524         * modules/obstack-printf-posix-tests: Likewise.
85526 2008-06-11  Bruno Haible  <bruno@clisp.org>
85528         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
85529         * lib/open.c: Include errno.h.
85530         (open): Fail when attempting to write to a file that has a trailing
85531         slash.
85532         * tests/test-open.c (main): Test against trailing slash bug.
85533         * doc/posix-functions/open.texi: Mention the trailing slash bug.
85535 2008-06-10  Bruno Haible  <bruno@clisp.org>
85537         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
85538         for $? to work inside the trap command, with various /bin/sh-s.
85539         * tests/test-vc-list-files-cvs.sh: Likewise.
85541 2008-06-10  Bruno Haible  <bruno@clisp.org>
85543         * lib/acl-internal.h: Don't include gettext.h here.
85544         * lib/set-mode-acl.c: Include gettext.h here.
85545         * lib/copy-acl.c: Likewise.
85547 2008-06-10  Bruno Haible  <bruno@clisp.org>
85549         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
85550         * lib/wait-process.c (wait_subprocess): Likewise.
85551         * lib/execute.h (execute): Add termsigp argument.
85552         * lib/execute.c (execute): Likewise.
85553         * lib/csharpcomp.c (compile_csharp_using_pnet,
85554         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
85555         * lib/csharpexec.c (execute_csharp_using_pnet,
85556         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
85557         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
85558         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
85559         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
85560         is_jikes_present): Update.
85561         * lib/javaexec.c (execute_java_class): Update.
85562         * lib/javaversion.c (execute_and_read_line): Update.
85563         * NEWS: Document the changes.
85564         Reported by Eric Blake.
85566 2008-06-10  Eric Blake  <ebb9@byu.net>
85568         Add missing include.
85569         * tests/test-strstr.c (includes): Add <signal.h>.
85570         * tests/test-strcasestr.c (includes): Likewise.
85571         * tests/test-memmem.c (includes): Likewise.
85573 2008-06-10  Bruno Haible  <bruno@clisp.org>
85575         * lib/wait-process.c (wait_subprocess): Add an assertion.
85577 2008-06-10  Bruno Haible  <bruno@clisp.org>
85579         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
85581 2008-06-10  Bruno Haible  <bruno@clisp.org>
85583         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
85584         using alarm().
85585         * tests/test-strcasestr.c (main): Likewise.
85586         * tests/test-strstr.c (main): Likewise.
85588 2008-06-09  Bruno Haible  <bruno@clisp.org>
85590         Work around the Solaris 10 ACE ACLs ABI change.
85591         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
85592         declare if ACL_NO_TRIVIAL is present.
85593         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
85594         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
85595         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
85596         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
85597         define if ACL_NO_TRIVIAL is present.
85598         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
85599         and use the current ABI.
85600         (file_has_acl): Use same #if condition as elsewhere.
85601         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
85602         in use, and use the current ABI.
85603         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
85604         Reported by Jim Meyering.
85606 2008-06-09  Eric Blake  <ebb9@byu.net>
85608         Work around environments that (stupidly) ignore SIGALRM.
85609         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
85610         before using alarm().
85611         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
85612         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
85613         Reported by Ian Beckwith <ianb@erislabs.net>.
85615         Produce autobuild blurb earlier in log.
85616         * modules/autobuild (configure.ac-early): Move AB_INIT here.
85618 2008-06-09  Jim Meyering  <meyering@redhat.com>
85619         and Ondřej Vašík  <ovasik@redhat.com>
85621         utimens.c: correct kernel bug work-around
85622         Ondřej Vašík found that the invalid return value of 280 indicates
85623         failure, not success, and the kernel bug we're trying to work
85624         around affects not just the utimensat call, but also the fallback
85625         futimens call.
85626         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
85627         not success.
85628         [HAVE_FUTIMENS]: Use the same work-around, here.
85630 2008-06-09  Jim Meyering  <meyering@redhat.com>
85632         add more guards around definition of ACE_-related code
85633         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
85634         ALLOW and ACE_OWNER are also defined.
85636 2008-06-08  Bruno Haible  <bruno@clisp.org>
85638         * lib/acl-internal.h: Add me as co-author.
85639         * lib/file-has-acl.c: Likewise.
85640         * lib/set-mode-acl.c: Likewise.
85641         * lib/copy-acl.c: Likewise.
85643 2008-06-08  Bruno Haible  <bruno@clisp.org>
85645         Add support for AIX ACLs.
85646         * lib/acl-internal.h (acl_nontrivial): New declaration.
85647         * lib/file-has-acl.c (acl_nontrivial): New function.
85648         (file_has_acl): Add implementation using AIX 4 ACL API.
85649         * lib/set-mode-acl.c (qset_acl): Likewise.
85650         * lib/copy-acl.c (qcopy_acl): Likewise.
85652 2008-06-08  Bruno Haible  <bruno@clisp.org>
85654         Add support for HP-UX ACLs.
85655         * lib/acl-internal.h (acl_nontrivial): New declaration.
85656         * lib/file-has-acl.c (acl_nontrivial): New function.
85657         (file_has_acl): Add implementation using HP-UX 11 ACL API.
85658         * lib/set-mode-acl.c (qset_acl): Likewise.
85659         * lib/copy-acl.c (qcopy_acl): Likewise.
85661 2008-06-08  Bruno Haible  <bruno@clisp.org>
85663         Add support for Cygwin ACLs.
85664         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
85665         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
85666         the chmod_or_fchmod call.
85667         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
85669 2008-06-08  Bruno Haible  <bruno@clisp.org>
85671         Fix bug with setuid modes in Solaris 10+ code.
85672         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
85673         succeeded, when the mode contains some special bits.
85675 2008-06-08  Bruno Haible  <bruno@clisp.org>
85677         Add support for Solaris 7..10 ACLs.
85678         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
85679         declarations.
85680         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
85681         functions.
85682         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
85683         * lib/set-mode-acl.c (qset_acl): Likewise.
85684         * lib/copy-acl.c (qcopy_acl): Likewise.
85686 2008-06-08  Bruno Haible  <bruno@clisp.org>
85688         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
85689         declaration.
85690         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
85691         (acl_access_nontrivial): Remove MacOS X case.
85692         (file_has_acl): Use acl_extended_nontrivial.
85693         * lib/copy-acl.c (qcopy_acl): Likewise.
85695 2008-06-08  Bruno Haible  <bruno@clisp.org>
85697         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
85699 2008-06-08  Jim Meyering  <meyering@redhat.com>
85701         * modules/acl (Maintainer): Add Bruno Haible.
85703 2008-06-07  Bruno Haible  <bruno@clisp.org>
85705         Improve support for Tru64 ACLs.
85706         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
85707         ACL on OSF/1.
85709 2008-06-07  Bruno Haible  <bruno@clisp.org>
85711         Add support for MacOS X ACLs.
85712         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
85713         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
85714         * lib/set-mode-acl.c (qset_acl): Likewise.
85715         * lib/copy-acl.c (qcopy_acl): Likewise.
85717 2008-06-07  Bruno Haible  <bruno@clisp.org>
85719         Fix memory leak introduced on 2008-05-22.
85720         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
85721         use.
85723 2008-06-07  Bruno Haible  <bruno@clisp.org>
85725         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
85726         to construct an empty ACL.
85728 2008-06-07  Bruno Haible  <bruno@clisp.org>
85730         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
85731         precisely.
85732         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
85734 2008-06-07  Bruno Haible  <bruno@clisp.org>
85736         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
85737         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
85739 2008-06-07  Bruno Haible  <bruno@clisp.org>
85741         * doc/posix-functions/_setjmp.texi: Explain the use of this function
85742         regardless of POSIX.
85743         * doc/posix-functions/_longjmp.texi: Likewise.
85744         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
85745         SystemV platform in this case.
85747 2008-06-06  Eric Blake  <ebb9@byu.net>
85749         Document abort() bugs.
85750         * doc/posix-functions/abort.texi (abort): Mention anomalies.
85752         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
85753         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
85754         sigsetjmp.
85755         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
85756         siglongjmp, but only as a macro.
85757         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
85758         is obsolete.
85759         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
85761         Tweak documentation to cover cygwin argz bugs.
85762         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
85763         argz bug fix; no code change needed since no cygwin releases
85764         occurred between the last fix and the bug being tested.
85765         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
85766         module and recently fixed cygwin bugs.
85767         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
85768         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
85769         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
85770         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
85771         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
85772         Likewise.
85773         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
85774         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
85775         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
85776         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
85777         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
85778         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
85779         Likewise.
85781         Avoid gcc warning on cygwin.
85782         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
85783         !ACL_NO_TRIVIAL]: Avoid unused variable.
85785 2008-06-05  Eric Blake  <ebb9@byu.net>
85787         Be tolerant of UNKNOWN version in gnulib-tool test dir.
85788         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
85789         git-version-gen fails to come up with a version.
85790         Reported by Simon Josefsson.
85792 2008-06-05  Jim Meyering  <meyering@redhat.com>
85793             Paul Eggert  <eggert@cs.ucla.edu>
85795         utimens.c: work around a probable Linux kernel bug
85796         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
85797         appears to be a kernel bug that causes utimensat to return 280
85798         instead of 0, indicating success.
85800 2008-06-04  Bruno Haible  <bruno@clisp.org>
85802         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
85803         2008-06-01 commit.
85805 2008-06-04  Bruno Haible  <bruno@clisp.org>
85807         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
85808         * lib/file-has-acl.c (acl_access_nontrivial): New function.
85809         (file_has_acl): Use it. Save errno afterwards.
85810         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
85812 2008-06-03  Bruno Haible  <bruno@clisp.org>
85814         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
85815         draft code. Simplify #ifs.
85816         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
85817         Put Solaris code after POSIX-draft code. Fix comments regarding
85818         Solaris 10, HP-UX. Mention Cygwin.
85819         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
85821 2008-06-03  Eric Blake  <ebb9@byu.net>
85823         Provide fallback for older kernels.
85824         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
85825         Provide runtime fallback if kernel lacks support.
85826         Reported by Mike Frysinger.
85828 2008-06-02  Bruno Haible  <bruno@clisp.org>
85830         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
85831         it exists.
85833 2008-06-02  Bruno Haible  <bruno@clisp.org>
85835         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
85836         * lib/copy-acl.c (qcopy_acl): Update comment.
85838 2008-06-02  Bruno Haible  <bruno@clisp.org>
85840         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
85841         like ACL APIs.
85843 2008-06-02  Bruno Haible  <bruno@clisp.org>
85845         * tests/test-file-has-acl.sh: Use different code for Cygwin.
85846         * tests/test-set-mode-acl.sh: Likewise.
85847         * tests/test-copy-acl.sh: Likewise.
85848         * tests/test-copy-file.sh: Likewise.
85850 2008-06-02  Bruno Haible  <bruno@clisp.org>
85852         * tests/test-file-has-acl.sh: Remove unused code.
85854 2008-06-01  Bruno Haible  <bruno@clisp.org>
85856         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
85857         (copy_acl): Just a wrapper around qcopy_acl that emits the error
85858         messages.
85859         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
85861 2008-06-01  Bruno Haible  <bruno@clisp.org>
85863         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
85864         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
85865         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
85866         APIs.
85867         * modules/acl-tests (configure.ac): Remove tests now contained in
85868         m4/acl.m4.
85870 2008-06-02  Jim Meyering  <meyering@redhat.com>
85872         announce-gen: use a better key-server host name
85873         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
85874         it may be more consistently reliable.  Suggested by Werner Koch
85875         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
85877 2008-06-01  Bruno Haible  <bruno@clisp.org>
85879         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
85880         Reported by Voroskoi Andras <voroskoi@gmail.com>.
85882 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
85884         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
85886 2008-06-01  Bruno Haible  <bruno@clisp.org>
85888         New ACL tests.
85889         * tests/test-file-has-acl.sh: New file.
85890         * tests/test-file-has-acl.c: New file.
85891         * tests/test-set-mode-acl.sh: New file.
85892         * tests/test-set-mode-acl.c: New file.
85893         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
85894         * tests/test-copy-acl.c: New file.
85895         * modules/acl-tests: New file, based on modules/copy-file-tests.
85896         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
85897         (Depends-on): Add acl-tests.
85898         (configure.ac): Remove checks.
85899         (Makefile.am): Don't create test-sameacls program here any more.
85901 2008-06-01  Bruno Haible  <bruno@clisp.org>
85903         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
85904         * tests/test-sameacls.c: Include progname.h.
85905         (main): Invoke set_program_name. Portability fixes for MacOS X,
85906         Solaris, HP-UX.
85908 2008-06-01  Bruno Haible  <bruno@clisp.org>
85910         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
85911         function.
85912         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
85914 2008-06-01  Bruno Haible  <bruno@clisp.org>
85916         * modules/rpmatch (Depends-on): Add strdup.
85918 2008-06-01  Bruno Haible  <bruno@clisp.org>
85920         * lib/pipe.c: Include unistd-safer.h.
85921         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
85922         * modules/pipe (Depends-on): Add unistd-safer.
85924 2008-05-30  Simon Josefsson  <simon@josefsson.org>
85926         * modules/autobuild (configure.ac): Call AB_INIT.
85928 2008-05-30  Simon Josefsson  <simon@josefsson.org>
85930         * tests/test-getaddrinfo.c: Don't print debug messages by default.
85931         Suggested by Bruno Haible <bruno@clisp.org>.
85933 2008-05-30  Simon Josefsson  <simon@josefsson.org>
85935         * tests/test-base64.c: Cast size_t to unsigned long when invoking
85936         printf.  Use %lu instead of %d.  Reported by Bruno Haible
85937         <bruno@clisp.org>.
85939 2008-05-29  Eric Blake  <ebb9@byu.net>
85941         Prefer new POSIX 200x interfaces over futimesat.
85942         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
85943         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
85944         when available.
85945         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
85947 2008-05-28  Bruno Haible  <bruno@clisp.org>
85949         * modules/stpcpy (License): Change to LGPLv2+.
85950         Requested by David Lutterkort <dlutter@redhat.com>.
85952 2008-05-27  Bruno Haible  <bruno@clisp.org>
85954         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
85955         current mingw.
85956         Reported by Jose E. Marchesi <jemarch@gnu.org>.
85958 2008-05-27  Bruno Haible  <bruno@clisp.org>
85960         * modules/iconv_open (Link): New section, from module 'iconv'.
85961         * modules/striconv (Link): Likewise.
85962         * modules/striconveh (Link): Likewise.
85963         * modules/xstriconv (Link): Likewise.
85964         * modules/unicodeio (Link): Likewise.
85965         * modules/propername (Link): Likewise.
85966         Reported by Jim Meyering.
85968 2008-05-26  Jim Meyering  <meyering@redhat.com>
85970         sha256: do not artificially restrict buffer length to be < 2^32
85971         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
85972         uint32_t to size_t.
85973         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
85974         to match.
85976         avoid unaligned access errors, e.g., on sparc
85977         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
85978         direct access through a possibly-unaligned uint64* pointer.
85979         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
85980         direct access through a possibly-unaligned uint32* pointer.
85981         Prompted by this patch from Tom "spot" Callaway:
85982         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
85984         sha512.c: fix typo in comment
85985         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
85987 2008-05-25  Bruno Haible  <bruno@clisp.org>
85989         * lib/set-mode-acl.c: Renamed from lib/acl.c.
85990         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
85991         (Makefile.am): Update lib_SOURCES.
85993 2008-05-25  Bruno Haible  <bruno@clisp.org>
85995         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
85997 2008-05-25  Jim Meyering  <meyering@redhat.com>
85999         useless-if-before-free: freed expr may have white-space differences
86000         * build-aux/useless-if-before-free: Recognize cases in which the
86001         freed expression differs from the tested one in embedded white
86002         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
86003         $1 was used, so we can't make any regexp shy.  Improved tests now
86004         detect this.
86006         useless-if-before-free: accept white space in the expression.
86007         * build-aux/useless-if-before-free: For now, any white space
86008         in the expression must be identical in the free argument.
86010         useless-if-before-free: efficiency tweak
86011         * build-aux/useless-if-before-free: Make the expression-matching
86012         regexp "shy".
86013         Make the *outer* regexp shy, not the expr-matching one.
86015         update code-in-comment to accept cast of free arg
86016         * build-aux/useless-if-before-free: Update regexp.
86018 2008-05-25  Bruno Haible  <bruno@clisp.org>
86020         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
86021         * modules/copy-file-tests (Files, Makefile.am): Update.
86022         * tests/test-copy-file.c (func_test_copy): Update.
86024 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
86026         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
86028 2008-05-23  Bruno Haible  <bruno@clisp.org>
86030         Improve support for ACLs on OSF/1.
86031         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
86032         Remove fallback for unknown flavors of ACLs.
86034 2008-05-22  Bruno Haible  <bruno@clisp.org>
86036         Add support for ACLs on OSF/1.
86037         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
86038         replacements.
86039         (acl_free_text): New macro fallback.
86040         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
86041         acl_free.
86042         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
86043         acl_free_text function. Require AC_C_INLINE.
86045 2008-05-22  Bruno Haible  <bruno@clisp.org>
86047         Make copy_acl work on MacOS X 10.5.
86048         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
86049         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
86050         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
86051         If MODE_INSIDE_ACL, don't assume that every system has the same text
86052         representation for ACLs as FreeBSD.
86053         * lib/copy-acl.c (copy_acl): Add support for platforms with
86054         !MODE_INSIDE_ACL.
86055         * lib/file-has-acl.c (file_has_acl): Likewise.
86056         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
86057         FreeBSD, MacOS X, or IRIX, respectively.
86059 2008-05-22  Bruno Haible  <bruno@clisp.org>
86061         * lib/acl.h: Don't include <sys/acl.h>.
86062         (GETACLCNT): Move fallback to lib/acl-internal.h.
86063         * lib/acl-internal.h: Include <sys/acl.h> here.
86064         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
86066 2008-05-22  Bruno Haible  <bruno@clisp.org>
86068         Split off copy_acl function to separate file.
86069         * lib/copy-acl.c: New file, extracted from lib/acl.c.
86070         * lib/acl.c (copy_acl): Moved function to separate file.
86071         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
86072         * modules/acl (Files): Add lib/copy-acl.c.
86073         (Makefiles.am): Augment lib_SOURCES.
86075 2008-05-22  Bruno Haible  <bruno@clisp.org>
86077         * modules/copy-file-tests: New file.
86078         * tests/test-copy-file.sh: New file.
86079         * tests/test-copy-file.c: New file.
86080         * tests/test-copy-file-sameacls.c: New file.
86082 2008-05-22  Eric Blake  <ebb9@byu.net>
86084         Avoid gcc warning.
86085         * tests/test-memcmp.c (main): Pass NULL indirectly.
86087 2008-05-21  Bruno Haible  <bruno@clisp.org>
86089         Add reference doc about ACLs.
86090         * doc/acl-resources.txt: New file.
86091         * doc/acl-cygwin.txt: New file.
86093 2008-05-21  Bruno Haible  <bruno@clisp.org>
86095         Avoid one more warning from gcc.
86096         * lib/vasnprintf.c (IF_LINT): Update comments.
86097         (VASNPRINTF): Use it also for the 'prefix' array initializer.
86099 2008-05-21  Jim Meyering  <meyering@redhat.com>
86101         avoid a warning from gcc
86102         * lib/vasnprintf.c (IF_LINT): Define.
86103         (scale10_round_decimal_long_double):
86104         Use it to avoid a "may be used uninitialized" warning.
86105         (scale10_round_decimal_double): Likewise.
86107 2008-05-21  Simon Josefsson  <simon@josefsson.org>
86109         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
86110         declared.
86112 2008-05-20  Bruno Haible  <bruno@clisp.org>
86114         * tests/test-memcmp.c (main): Test also the sign of the result. Test
86115         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
86117 2008-05-20  Simon Josefsson  <simon@josefsson.org>
86119         * modules/memcmp-tests: New file.
86120         * tests/test-memcmp.c: New file.
86122 2008-05-19  Bruno Haible  <bruno@clisp.org>
86124         * modules/propername (Notice, configure.ac): Put quoted "..." into
86125         --keyword option.
86126         * lib/propername.h: Update comments accordingly.
86127         Reported by Eric Blake.
86129 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
86131         * modules/getpass-gnu (Depends-on): Add fseeko.
86133 2008-05-19  Simon Josefsson  <simon@josefsson.org>
86135         * modules/base64-tests: New file.
86137 2008-05-19  Bo Borgerson  <gigabo@gmail.com>
86139         * lib/base64.c (base64_decode_ctx): If a decode context structure
86140         was passed in use it to ignore newlines.  If a context structure
86141         was _not_ passed in, continue to treat newlines as garbage (this
86142         is the historical behavior).  Formerly base64_decode.
86143         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
86144         takes a decode context structure.
86145         * lib/base64.h (base64_decode): Macro for four-argument calls.
86146         (base64_decode_alloc): Likewise.
86147         * lib/base64.c (base64_decode_ctx): If a decode context structure
86148         was passed in use it to ignore newlines.  If a context structure
86149         was _not_ passed in, continue to treat newlines as garbage (this
86150         is the historical behavior).  Formerly base64_decode.
86151         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
86152         takes a decode context structure.
86153         * lib/base64.h (base64_decode): Macro for four-argument calls.
86154         (base64_decode_alloc): Likewise.
86156 2008-05-19  Jim Meyering  <meyering@redhat.com>
86158         avoid a warning from gcc
86159         * lib/trim.c (IF_LINT): Define.
86160         (trim2): Use it to avoid a "may be used uninitialized" warning.
86162         Fix doc typo.
86163         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
86165 2008-05-19  Bruno Haible  <bruno@clisp.org>
86167         * doc/glibc-functions/getpass.texi: Document limits of other
86168         implementations.
86170 2008-05-19  Simon Josefsson  <simon@josefsson.org>
86171             Bruno Haible <bruno@clisp.org>
86173         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
86175 2008-05-18  Bruno Haible  <bruno@clisp.org>
86177         * modules/propername: New file, from GNU gettext.
86178         * lib/propername.h: New file, from GNU gettext.
86179         * lib/propername.c: New file, from GNU gettext.
86180         * MODULES.html.sh (Internationalization functions): Add propername.
86182 2008-05-16  Jim Meyering  <meyering@redhat.com>
86183             Bruno Haible  <bruno@clisp.org>
86185         Avoid some warnings from "gcc -Wshadow".
86186         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
86188 2008-05-15  Eric Blake  <ebb9@byu.net>
86190         Extend previous patch to cygwin 1.7.0.
86191         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
86192         fast implementation in cygwin >= 1.7.0.
86193         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
86194         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
86196 2008-05-15  Bruno Haible  <bruno@clisp.org>
86198         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
86199         implementation in glibc >= 2.9.
86200         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
86201         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
86203 2008-05-15  Bruno Haible  <bruno@clisp.org>
86205         * MODULES.html.sh (Internationalization functions): Remove linebreak.
86206         (Unicode string functions): Add unilbrk/*.
86207         Reported by Karl Berry.
86209 2008-05-15  Eric Blake  <ebb9@byu.net>
86211         Fix violation of <stdbool.h> replacement in regex.
86212         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
86213         * lib/regexec.c (re_search_internal): Likewise.
86214         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
86216 2008-05-15  Jim Meyering  <meyering@redhat.com>
86218         avoid distracting test output when git or cvs is not found
86219         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
86220         * tests/test-vc-list-files-git.sh: Likewise.
86222 2008-05-15  Eric Blake  <ebb9@byu.net>
86224         Glibc finally accepted the memmem speedup code, bugzilla #5514.
86225         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
86226         glibc version.
86227         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
86228         * doc/posix-functions/strstr.texi (strstr): Likewise.
86229         * lib/str-two-way.h (MAX): Sychronize with glibc.
86231 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
86233         * lib/regcomp.c (optimize_utf8): Add a note on why we test
86234         opr.ctx_type.
86235         (calc_first): Initialize constraint field.
86236         (duplicate_node_closure): Use it instead of special casing ANCHORS.
86237         Fix grammar.
86238         (duplicate_node): Merge constraint field for all node types.
86239         (calc_eclosure_iter): Look at constraint field for all node types.
86240         * lib/regex_internal.c (create_cd_newstate): Don't look at
86241         opr.ctx_type.
86243 2008-05-14  Bruno Haible  <bruno@clisp.org>
86245         Help GCC to do better code generation.
86246         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
86247         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
86248         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
86249         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
86250         Declare with attribute 'malloc' if supported.
86252 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
86254         use "echo STR|wc -c" rather than unportable "expr length STR"
86255         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
86256         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
86258 2008-05-14  Jim Meyering  <meyering@redhat.com>
86260         use dd ibs=$n count=1 ... rather than less-portable head -c$n
86261         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
86262         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
86263         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
86264         via Collin Lasse.
86266 2008-05-14  Eric Blake  <ebb9@byu.net>
86268         Avoid quadratic growth in gl_LIBSOURCES.
86269         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
86270         Suggested by Bruno Haible.
86272         Test xmemdup0.
86273         * modules/xmemdup0-tests: New file.
86274         * tests/test-xmemdup0.c: Likewise.
86276 2008-05-13  Eric Blake  <ebb9@byu.net>
86278         Split xmemdup0 into its own module.
86279         * modules/xmemdup0: New file.
86280         * lib/xmemdup0.h: Likewise.
86281         * lib/xmemdup0.c: Likewise.
86282         * MODULES.html.sh (Memory management functions): Add xmemdup0.
86283         * lib/xalloc.h (xmemdup0): Remove.
86284         * lib/xmalloc.c (xmemdup0): Likewise.
86286 2008-05-13  Eric Blake  <ebb9@byu.net>
86287             Bruno Haible  <bruno@clisp.org>
86289         Reduce number of forks required during autoconf.
86290         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
86291         and gl_LIBSOURCES_DIR.
86292         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
86293         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
86294         m4_syscmd per file.
86295         <m4_foreach_w>: Move...
86296         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
86298 2008-05-13  Eric Blake  <ebb9@byu.net>
86300         * gnulib-tool: Fix various comment typos.
86302 2008-05-12  Bruno Haible  <bruno@clisp.org>
86304         Tailor the linebreaking algorithm.
86305         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
86307 2008-05-12  Bruno Haible  <bruno@clisp.org>
86309         Update to Unicode 5.0.0.
86310         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
86311         LBP_JV, LBP_JT. Redistribute values.
86312         (unilbrk_table): Change size.
86313         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
86314         Unicode TR#14 rev. 22.
86315         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
86316         LBP_JV, LBP_JT. Redistribute values.
86317         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
86318         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
86319         Update.
86320         * lib/unilbrk/lbrkprop1.h: Regenerated.
86321         * lib/unilbrk/lbrkprop2.h: Regenerated.
86322         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
86323         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
86324         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
86325         Likewise.
86326         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
86327         Likewise.
86328         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
86329         result.
86330         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
86331         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
86332         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
86333         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
86334         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
86335         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
86337 2008-05-11  Bruno Haible  <bruno@clisp.org>
86339         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
86341 2008-05-11  Bruno Haible  <bruno@clisp.org>
86343         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
86344         * modules/unilbrk/gen-lbrk: New file.
86346 2008-05-11  Bruno Haible  <bruno@clisp.org>
86348         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
86349         * m4/sha512.m4 (gl_SHA512): Likewise.
86351 2008-05-11  Jim Meyering  <meyering@redhat.com>
86353         New modules: crypto/sha256, crypto/sha512 (from coreutils)
86354         * modules/crypto/sha256: New file.
86355         * modules/crypto/sha512: Likewise.
86356         * lib/sha256.c: Likewise.
86357         * lib/sha256.h: Likewise.
86358         * lib/sha512.c: Likewise.
86359         * lib/sha512.h: Likewise.
86360         * lib/u64.h: Likewise.
86361         * m4/sha256.m4: Likewise.
86362         * m4/sha512.m4: Likewise.
86363         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
86365 2008-05-10  Bruno Haible  <bruno@clisp.org>
86367         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
86368         (Input/Output <stdio.h>): Add xprintf.
86369         (Signal handling <signal.h>): Add strsignal.
86370         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
86371         (Core language properties): Add func.
86372         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
86373         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
86374         strings.
86375         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
86376         (Input/output): New section.
86377         (File system functions): Add openat-die, stat-macros.
86378         (Networking functions): Add sockets.
86379         (Unicode string functions): Add unictype/*.
86380         (Support for building libraries and executables): Add gperf.
86381         (Support for building documentation): Add agpl-3.0.
86382         (Misc): Add nocrash.
86384 2008-05-10  Bruno Haible  <bruno@clisp.org>
86386         * modules/unictype/gen-ctype: New file.
86388 2008-05-10  Jim Meyering  <meyering@redhat.com>
86390         Make chdir-safer.c more efficient on a system with no symlinks.
86391         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
86392         also if ELOOP is zero.  Suggested by Bruno Haible.
86394         Make chdir-safer.c slightly safer.
86395         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
86396         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
86398         Avoid compile failure on systems without ELOOP (like mingw).
86399         * lib/chdir-safer.c (ELOOP): Define if not already defined.
86400         Reported by Bruno Haible.
86402 2008-05-10  Bruno Haible  <bruno@clisp.org>
86404         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
86405         (is_utf8_encoding): Use a case-insensitive comparison.
86406         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
86407         streq.
86409 2008-05-10  Bruno Haible  <bruno@clisp.org>
86411         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
86412         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
86413         * lib/unilbrk/ulc-common.h (iconv_string_length,
86414         iconv_string_keeping_offsets): Remove declarations.
86415         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
86416         Don't include <iconv.h>, streq.h, xsize.h.
86417         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
86418         conversion.
86419         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
86420         <iconv.h>, streq.h, xsize.h.
86421         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
86422         conversion.
86423         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
86424         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
86425         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
86426         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
86428 2008-05-10  Bruno Haible  <bruno@clisp.org>
86430         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
86431         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
86433         * modules/unilbrk/u32-width-linebreaks-tests: New file.
86434         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
86436         * modules/unilbrk/u16-width-linebreaks-tests: New file.
86437         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
86439         * modules/unilbrk/u8-width-linebreaks-tests: New file.
86440         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
86442         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
86443         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
86445         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
86446         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
86448         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
86449         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
86451         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
86452         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
86454 2008-05-10  Bruno Haible  <bruno@clisp.org>
86456         Split up 'linebreak' module.
86457         * lib/unilbrk.h: New file, based on lib/linebreak.h.
86458         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
86459         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
86460         modifications.
86461         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
86462         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
86463         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
86464         lib/linebreak.c.
86465         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
86466         lib/linebreak.c.
86467         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
86468         lib/linebreak.c.
86469         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
86470         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
86471         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
86472         lib/linebreak.c.
86473         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
86474         lib/linebreak.c.
86475         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
86476         lib/linebreak.c.
86477         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
86478         lib/linebreak.c.
86479         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
86480         lib/linebreak.c.
86481         * modules/unilbrk/base: New file.
86482         * modules/unilbrk/tables: New file.
86483         * modules/unilbrk/u8-possible-linebreaks: New file.
86484         * modules/unilbrk/u16-possible-linebreaks: New file.
86485         * modules/unilbrk/u32-possible-linebreaks: New file.
86486         * modules/unilbrk/ulc-common: New file.
86487         * modules/unilbrk/ulc-possible-linebreaks: New file.
86488         * modules/unilbrk/u8-width-linebreaks: New file.
86489         * modules/unilbrk/u16-width-linebreaks: New file.
86490         * modules/unilbrk/u32-width-linebreaks: New file.
86491         * modules/unilbrk/ulc-width-linebreaks: New file.
86492         * lib/linebreak.h: Remove file.
86493         * lib/linebreak.c: Remove file.
86494         * m4/linebreak.m4: Remove file.
86495         * modules/linebreak: Remove file.
86496         * NEWS: Mention the changes.
86498 2008-05-09  Eric Blake  <ebb9@byu.net>
86500         Add xmemdup0.
86501         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
86502         implementation.
86503         * lib/xmalloc.c (xmemdup0): New C implementation.
86505 2008-05-08  Bruno Haible  <bruno@clisp.org>
86507         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
86509 2008-05-07  Eric Blake  <ebb9@byu.net>
86511         Support cross-compilation of <wctype.h>.
86512         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
86513         AC_CACHE_CHECK.
86515 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
86517         * build-aux/vc-list-files: Add support for bzr.
86519 2008-05-03  Jim Meyering  <meyering@redhat.com>
86521         avoid failed assertion with tight malloc
86522         * tests/test-getndelim2.c: Correct an off-by-one assertion.
86524 2008-05-03  Simon Josefsson  <simon@josefsson.org>
86526         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
86527         are needed from arpa/inet.h.
86528         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
86529         Reported by Bruno Haible.
86531 2008-05-02  Jim Meyering  <meyering@redhat.com>
86533         avoid compilation error on FreeBSD 6
86534         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
86536 2008-05-01  Jim Meyering  <meyering@redhat.com>
86538         useless-if-before-free: correct --help's exit status description
86539         * build-aux/useless-if-before-free (usage): Like grep, exit 0
86540         for one or more matches, etc.  Reported by Bruno Haible.
86542         vc-list-files: make the stand-alone gnulib test work
86543         * modules/vc-list-files-tests (configure.ac):
86544         Define and AC_SUBST abs_aux_dir.
86545         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
86546         $(abs_top_srcdir) to each script and having each of them
86547         duplicate the work of setting PATH, set PATH here, using
86548         the new variable, abs_aux_dir instead.
86549         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
86550         * tests/test-vc-list-files-git.sh: Likewise.
86551         Reported by Bruno Haible.
86553 2008-05-01  Bruno Haible  <bruno@clisp.org>
86555         * lib/getndelim2.c (getndelim2): Fix newsize computation during
86556         reallocation. Rename 'done' to 'found_delimiter'.
86558 2008-05-01  Jim Meyering  <meyering@redhat.com>
86560         vc-list-files: accommodate /bin/sh like the one from Solaris 10
86561         * build-aux/vc-list-files: Use `...`, not $(...).
86563 2008-04-30  Jim Meyering  <meyering@redhat.com>
86565         add tests for vc-list-files
86566         * modules/vc-list-files-tests: New module.
86567         * tests/test-vc-list-files-cvs.sh: New file.
86568         * tests/test-vc-list-files-git.sh: New file.
86570         avoid a warning from gcc
86571         * lib/getndelim2.c (IF_LINT): Define.
86572         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
86574         vc-list-files: work properly with build-aux/cvsu, too
86575         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
86576         to all cvs-based clauses.
86578         vc-list-files: work properly in the CVS+awk case, too
86579         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
86581         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
86582         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
86583         take more than one file argument, so .  Add quotes, just in case $dir
86584         ever contains a shell meta-character.  Prompted by Soren Hansen in
86585         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
86587 2008-04-29  Eric Blake  <ebb9@byu.net>
86589         Optimize getndelim2 to use block operations when possible.
86590         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
86591         freadseek, and memchr2.
86592         * lib/getndelim2.c (getndelim2): Use them for block reads.
86594 2008-04-29  Bruno Haible  <bruno@clisp.org>
86596         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
86597         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
86598         * modules/inet_ntop (Depends-on): Add extensions.
86599         * modules/inet_pton (Depends-on): Likewise.
86600         Reported by Simon Josefsson.
86602 2008-04-29  Jim Meyering  <meyering@redhat.com>
86604         When the is more than one match in a block, match all of them.
86605         * build-aux/useless-if-before-free: Iterate through each block
86606         until there are no more matches.
86608         Fix broken useless-if-before-free script.
86609         * build-aux/useless-if-before-free: Fix typo: missing "?" after
86610         the expression to match cast of argument to free-like function.
86612 2008-04-29  Eric Blake  <ebb9@byu.net>
86614         Use new header.
86615         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
86617 2008-04-29  Jim Meyering  <meyering@redhat.com>
86619         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
86620         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
86621         by gnulib to exist and to declare e.g., inet_ntop.
86622         Don't include "inet_ntop.h", now removed.
86624         * m4/arpa_inet_h.m4: Remove trailing blanks.
86626 2008-04-29  Eric Blake  <ebb9@byu.net>
86628         Silence valgrind on safe reads beyond potential array bounds.
86629         * lib/rawmemchr.valgrind: New file.
86630         * lib/strchrnul.valgrind: Likewise.
86631         * modules/rawmemchr (Files): Distribute new file.
86632         * modules/strchrnul (Files): Likewise.
86633         Suggested by Bruno Haible.
86635 2008-04-29  Bruno Haible  <bruno@clisp.org>
86637         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
86638         (inet_ntop, inet_pton): Change portability warning's wording.
86639         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
86640         Invoke gl_CHECK_NEXT_HEADERS.
86641         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
86642         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
86643         set ARPA_INET_H.
86644         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
86645         * modules/arpa_inet (Description): No longer only for systems that
86646         lack it.
86647         (Depends-on): Add include_next.
86648         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
86649         HAVE_ARPA_INET_H.
86651 2008-04-29  Jim Meyering  <meyering@redhat.com>
86653         * modules/mkdir (License): Re-license as LGPLv2+.
86655 2008-04-29  Bruno Haible  <bruno@clisp.org>
86657         * modules/rawmemchr (Maintainer): Set to Eric.
86658         * modules/strchrnul (Maintainer): Likewise.
86660 2008-04-29  Simon Josefsson  <simon@josefsson.org>
86662         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
86663         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
86665         * modules/arpa_inet (arpa/inet.h): Use them.
86667 2008-04-28  Eric Blake  <ebb9@byu.net>
86669         Test getndelim2.
86670         * modules/getndelim2-tests: New file.
86671         * tests/test-getndelim2.c: Likewise.
86672         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
86673         stream.
86674         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
86676         * MODULES.html.sh: Document new module.
86678 2008-04-20  Bruno Haible  <bruno@clisp.org>
86680         * lib/c-stack.c (die): Use raise.
86681         * modules/c-stack (Depends-on): Add raise.
86683 2008-04-28  Bruno Haible  <bruno@clisp.org>
86685         Expect rpmatch to be declared.
86686         * lib/yesno.c (rpmatch): Remove declaration.
86688         Declare rpmatch.
86689         * lib/stdlib.in.h (rpmatch): New declaration.
86690         * lib/rpmatch.c: Include <stdlib.h> first.
86691         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
86692         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
86693         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
86694         HAVE_RPMATCH.
86695         * modules/rpmatch (Depends-on): Add stdlib, extensions.
86696         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
86697         (Include): Set to <stdlib.h>.
86698         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
86699         HAVE_RPMATCH.
86700         * NEWS: Document the change.
86702 2008-04-28  Bruno Haible  <bruno@clisp.org>
86704         Change rpmatch to use nl_langinfo when appropriate.
86705         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
86706         (N_): New macro.
86707         (localized_pattern): New function/macro.
86708         (try): Remove match, nomatch arguments. Copy the pattern into safe
86709         memory before caching it.
86710         (rpmatch): Use localized_pattern. Add translator comments.
86711         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
86712         Suggested by Eric Blake.
86713         * modules/rpmatch (Depends-on): Add stdbool.
86715 2008-04-28  Eric Blake  <ebb9@byu.net>
86717         Add rawmemchr module, matching glibc.
86718         * modules/string (Makefile.am): New indicator.
86719         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
86720         * lib/string.in.h (rawmemchr): Declare when appropriate.
86721         * modules/rawmemchr: New file.
86722         * m4/rawmemchr.m4: Likewise.
86723         * lib/rawmemchr.c: Likewise.
86724         * modules/rawmemchr-tests: Likewise.
86725         * tests/test-rawmemchr.c: Likewise.
86726         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
86727         module.
86728         * modules/strchrnul (Depends-on): Add rawmemchr.
86729         * lib/strchrnul.c (strchrnul): Optimize a corner case.
86731         Whitespace cleanup.
86732         * tests/test-strchrnul.c: Reindent.
86733         * lib/strchrnul.c: Likewise.
86735         Optimize and test strchrnul.
86736         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
86737         * modules/strchrnul-tests: New file.
86738         * tests/test-strchrnul.c: Likewise.
86740         Remove intprops dependency.
86741         * modules/memchr (Depends-on): Remove intprops.
86742         * modules/memrchr (Depends-on): Likewise.
86743         * modules/memchr2 (Depends-on): Likewise.
86744         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
86745         * lib/memrchr.c (__memrchr): Likewise.
86746         * lib/memrchr2.c (memchr2): Likewise.
86747         Reported by Simon Josefsson.
86749 2008-04-28  Simon Josefsson  <simon@josefsson.org>
86751         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
86752         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
86754 2008-04-28  Simon Josefsson  <simon@josefsson.org>
86756         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
86758         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
86760         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
86762         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
86763         declarations.
86764         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
86766         * m4/inet_pton.m4: Don't check for header files.
86768         * m4/inet_ntop.m4: Don't check for header files.
86770 2008-04-28  Simon Josefsson  <simon@josefsson.org>
86772         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
86773         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
86774         trigger for cygwin).
86775         Reported by Bruno Haible  <bruno@clisp.org>.
86777 2008-04-28  Bruno Haible  <bruno@clisp.org>
86779         * doc/posix-functions/strdup.texi: Mention mingw problem.
86781 2008-04-27  Bruno Haible  <bruno@clisp.org>
86783         * modules/stat-time-tests (Depends-on): Add sleep.
86784         * tests/test-stat-time.c (force_unlink): New function.
86785         (cleanup): Use it.
86786         (test_mtime): Remove the ctime related tests.
86787         (test_ctime): New function, containing the ctime related tests.
86788         (main): Call test_ctime, except on native Windows platforms.
86790 2008-04-27  Bruno Haible  <bruno@clisp.org>
86792         * lib/rpmatch.c (rpmatch): Add some comments.
86793         Reported by James Youngman <jay@gnu.org>.
86795 2008-04-27  Bruno Haible  <bruno@clisp.org>
86797         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
86798         quiet NaNs.
86800 2008-04-27  Bruno Haible  <bruno@clisp.org>
86802         Make test-yesno.sh work on mingw.
86803         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
86804         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
86805         (main): Set stdin to binary mode.
86806         * modules/yesno-tests (Depends-on): Add binary-io.
86808 2008-04-27  Bruno Haible  <bruno@clisp.org>
86810         Fix 'isfinite' on x86, x86_64, ia64 platforms.
86811         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
86812         argument that lie outside the IEEE 854 domain.
86813         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
86814         (gl_ISFINITE): Use it.
86815         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
86817 2008-04-27  Bruno Haible  <bruno@clisp.org>
86819         Allow local renaming in config.h.
86820         * lib/memrchr.c (memrchr): Don't undefine outside libc.
86822 2008-04-27  Bruno Haible  <bruno@clisp.org>
86824         * lib/memchr.c (__memchr): Change type of 'i'.
86825         * lib/memchr2.c (memchr2): Likewise.
86827 2008-04-26  Eric Blake  <ebb9@byu.net>
86828         and Bruno Haible  <bruno@clisp.org>
86830         Optimize and test memrchr.
86831         * modules/memrchr (Depends-on): Add intprops.
86832         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
86833         * modules/memrchr-tests: New file.
86834         * tests/test-memrchr.c: New file.
86836 2008-04-26  Bruno Haible  <bruno@clisp.org>
86838         Add tentative support for DragonFly BSD.
86839         * lib/stdio-impl.h: Add macros for DragonFly BSD.
86840         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
86841         fp.
86842         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
86843         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
86844         * lib/fpurge.c (fpurge): Likewise.
86845         * lib/freadable.c (freaadable): Likewise.
86846         * lib/freadahead.c (freadahead): Likewise.
86847         * lib/freading.c (freading): Likewise.
86848         * lib/freadptr.c (freadptr): Likewise.
86849         * lib/freadseek.c (freadptrinc): Likewise.
86850         * lib/fseeko.c (fseeko): Likewise.
86851         * lib/fseterr.c (fseterr): Likewise.
86852         * lib/fwritable.c (fwritable): Likewise.
86853         * lib/fwriting.c (fwriting): Likewise.
86855 2008-04-26  Bruno Haible  <bruno@clisp.org>
86857         * lib/stdio-impl.h: New file.
86858         * lib/fbufmode.c: Include stdio-impl.h.
86859         (fbufmode): Use fp_, remove redundant #defines.
86860         * lib/fflush.c: Include stdio-impl.h.
86861         (clear_ungetc_buffer): Remove redundant #defines.
86862         * lib/fpurge.c: Include stdio-impl.h.
86863         (fpurge): Remove redundant #defines.
86864         * lib/freadable.c: Include stdio-impl.h.
86865         (freadable): Remove redundant #defines.
86866         * lib/freadahead.c: Include stdio-impl.h.
86867         (freadahead): Remove redundant #defines.
86868         * lib/freading.c: Include stdio-impl.h.
86869         (freading): Remove redundant #defines.
86870         * lib/freadptr.c: Include stdio-impl.h.
86871         (freadptr): Remove redundant #defines.
86872         * lib/freadseek.c: Include stdio-impl.h.
86873         (freadptrinc): Remove redundant #defines.
86874         * lib/fseeko.c: Include stdio-impl.h.
86875         (rpl_fseeko): Remove redundant #defines.
86876         * lib/fseterr.c: Include stdio-impl.h.
86877         (fseterr): Remove redundant #defines.
86878         * lib/fwritable.c: Include stdio-impl.h.
86879         (fwritable: Remove redundant #defines.
86880         * lib/fwriting.c: Include stdio-impl.h.
86881         (fwriting): Remove redundant #defines.
86882         * modules/fbufmode (Files): Add lib/stdio-impl.h.
86883         * modules/fflush (Files): Likewise.
86884         * modules/fpurge (Files): Likewise.
86885         * modules/freadable (Files): Likewise.
86886         * modules/freadahead (Files): Likewise.
86887         * modules/freading (Files): Likewise.
86888         * modules/freadptr (Files): Likewise.
86889         * modules/freadseek (Files): Likewise.
86890         * modules/fseeko (Files): Likewise.
86891         * modules/fseterr (Files): Likewise.
86892         * modules/fwritable (Files): Likewise.
86893         * modules/fwriting (Files): Likewise.
86895 2008-04-26  Bruno Haible  <bruno@clisp.org>
86897         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
86898         restore_seek_optimization, update_fpos_cache): New functions, extracted
86899         from rpl_fflush.
86900         (rpl_fflush): Use them.
86901         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
86902         (gl_REPLACE_FFLUSH): Use it.
86904 2008-04-26  Bruno Haible  <bruno@clisp.org>
86906         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
86907         on Solaris.
86908         * tests/test-xstrtoimax.sh: Likewise.
86909         * tests/test-xstrtoumax.sh: Likewise.
86910         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
86912 2008-04-26  Bruno Haible  <bruno@clisp.org>
86914         * modules/memchr-tests: New file.
86915         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
86917 2008-04-26  Eric Blake  <ebb9@byu.net>
86918             Bruno Haible  <bruno@clisp.org>
86920         * lib/memchr.c: Include intprops.h.
86921         (__memchr): Optimize parallel detection of matching bytes. Rename local
86922         variables. Add explanatory comments.
86924 2008-04-26  Bruno Haible  <bruno@clisp.org>
86926         Fix module 'memchr', broken since 2000-10-28.
86927         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
86929 2008-04-26  Bruno Haible  <bruno@clisp.org>
86931         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
86932         comments.
86934 2008-04-25  Eric Blake  <ebb9@byu.net>
86936         Use native fstatat on cygwin 1.7.0.
86937         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
86938         first.
86940 2008-04-23  Eric Blake  <ebb9@byu.net>
86942         Improve memchr2 performance.
86943         * lib/memchr2.c (memchr2): Further optimize parallel detection of
86944         NUL bytes.
86945         * modules/memchr2 (Depends-on): Use intprops.h.
86947 2008-04-23  Simon Josefsson  <simon@josefsson.org>
86949         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
86950         an inline function instead of a CPP macro.  Patch by Ben Pfaff
86951         <blp@cs.stanford.edu>.
86953 2008-04-23  Simon Josefsson  <simon@josefsson.org>
86955         * lib/arpa_inet.in.h: New file.
86957         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
86958         (Makefile.am): Sed in substitute header file.
86960         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
86961         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
86963         * modules/inet_ntop (configure.ac): Use
86964         gl_ARPA_INET_MODULE_INDICATOR.
86966         * modules/inet_pton (configure.ac): Use
86967         gl_ARPA_INET_MODULE_INDICATOR.
86969 2008-04-22  Jim Meyering  <meyering@redhat.com>
86971         * modules/verify (License): Re-license as LGPLv2+.
86973 2008-04-22  Simon Josefsson  <simon@josefsson.org>
86975         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
86976         parameter to void* as per POSIX standard (MinGW uses char*).
86978 2008-04-21  Bruno Haible  <bruno@clisp.org>
86980         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
86981         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
86982         Define to replacements if REPLACE_ISWCNTRL is 1.
86983         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
86984         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
86985         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
86986         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
86987         what it fixes.
86988         * doc/posix-functions/iswalpha.texi: Likewise.
86989         * doc/posix-functions/iswblank.texi: Likewise.
86990         * doc/posix-functions/iswcntrl.texi: Likewise.
86991         * doc/posix-functions/iswdigit.texi: Likewise.
86992         * doc/posix-functions/iswgraph.texi: Likewise.
86993         * doc/posix-functions/iswlower.texi: Likewise.
86994         * doc/posix-functions/iswprint.texi: Likewise.
86995         * doc/posix-functions/iswpunct.texi: Likewise.
86996         * doc/posix-functions/iswspace.texi: Likewise.
86997         * doc/posix-functions/iswupper.texi: Likewise.
86998         * doc/posix-functions/iswxdigit.texi: Likewise.
86999         Reported by Alain Guibert.
87001 2008-04-21  Bruno Haible  <bruno@clisp.org>
87003         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
87004         Patch by Alain Guibert.
87006 2008-04-21  Bruno Haible  <bruno@clisp.org>
87008         Fix test failures on mingw.
87009         * tests/test-xstrtol.c (print_no_progname): New function.
87010         (main): Install it in error_print_progname hook.
87011         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
87012         * tests/test-xstrtoimax.sh: Likewise.
87013         * tests/test-xstrtoumax.sh: Likewise.
87015 2008-04-21  Bruno Haible  <bruno@clisp.org>
87017         Fix test failure on mingw.
87018         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
87020 2008-04-21  Bruno Haible  <bruno@clisp.org>
87022         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
87023         Actually assign a value.
87025 2008-04-20  Bruno Haible  <bruno@clisp.org>
87027         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
87028         take 2.
87029         * lib/canonicalize.c (canonicalize_file_name): Elide if the
87030         'canonicalize-lgpl' module is also used.
87031         * lib/canonicalize-lgpl.c: Undo last change.
87032         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
87034 2008-04-20  Bruno Haible  <bruno@clisp.org>
87036         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
87037         config.h. Provide _mkdir based fallback for mingw.
87038         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
87039         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
87040         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
87041         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
87042         rather than defining mkdir in config.h.
87043         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
87044         (gl_SYS_STAT_H_DEFAULTS): New macro.
87045         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
87046         HAVE_IO_H any more.
87047         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
87048         HAVE_DECL_MKDIR and HAVE_IO_H.
87050 2008-04-20  Bruno Haible  <bruno@clisp.org>
87052         * lib/isapipe.c: Port to native Windows platforms.
87054 2008-04-20  Bruno Haible  <bruno@clisp.org>
87056         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
87058 2008-04-21  Eric Blake  <ebb9@byu.net>
87060         Work around preprocessors that don't handle UINTMAX_MAX.
87061         * lib/memchr2.c (memchr2): Avoid embedded #if.
87062         Reported by Alain Guibert, fix suggested by Bruno Haible.
87064 2008-04-21  Simon Josefsson  <simon@josefsson.org>
87066         * doc/posix-functions/strftime.texi (strftime): Explain better
87067         Windows incompatibility.  Suggested by Micah Cowan
87068         <micah@cowan.name>.
87070 2008-04-20  Bruno Haible  <bruno@clisp.org>
87072         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
87073         unistr/u8-mblen.
87075 2008-04-20  Bruno Haible  <bruno@clisp.org>
87077         Fix test failure on platforms with non-GNU iconv.
87078         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
87079         (U_TO_U8): Use it, rather than u16_to_u8.
87080         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
87081         units at the end of the input string.
87082         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
87084 2008-04-20  Bruno Haible  <bruno@clisp.org>
87086         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
87087         when the resulting length is 0.
87088         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
87090 2008-04-20  Bruno Haible  <bruno@clisp.org>
87092         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
87093         works.
87094         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
87096 2008-04-20  Bruno Haible  <bruno@clisp.org>
87098         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
87099         * modules/tsearch-tests (configure.ac): Test for initstate function.
87101 2008-04-20  Bruno Haible  <bruno@clisp.org>
87103         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
87104         for nlink_t if missing.
87105         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
87107 2008-04-19  Bruno Haible  <bruno@clisp.org>
87109         Work around snprintf bug on Linux libc5.
87110         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
87111         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
87112         gl_SNPRINTF_SIZE1.
87113         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
87114         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
87115         that test failed.
87116         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
87117         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
87118         * modules/snprintf (Files): Add m4/printf.m4.
87119         * modules/vsnprintf (Files): Likewise.
87120         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
87121         * doc/posix-functions/vsnprintf.texi: Likewise.
87123 2008-04-19  Bruno Haible  <bruno@clisp.org>
87125         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
87126         from 0.0058 to less than 10^-7.
87128 2008-04-19  Bruno Haible  <bruno@clisp.org>
87130         Fix rounding when a precision is given.
87131         * lib/vasnprintf.c (is_borderline): New function.
87132         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
87133         9...9x.
87134         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
87135         %e, %g.
87136         * tests/test-vasprintf-posix.c (test_function): Likewise.
87137         * tests/test-snprintf-posix.h (test_function): Likewise.
87138         * tests/test-sprintf-posix.h (test_function): Likewise.
87139         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
87140         * tests/test-printf-posix.h (test_function): Likewise.
87141         * tests/test-printf-posix.output: Update.
87142         Reported by John Darrington <john@darrington.wattle.id.au> via
87143         Ben Pfaff <blp@cs.stanford.edu>.
87145 2008-04-18  Simon Josefsson  <simon@josefsson.org>
87147         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
87148         Suggested by Bruno Haible <bruno@clisp.org>.
87150 2008-04-17  Bruno Haible  <bruno@clisp.org>
87152         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
87153         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
87154         implementation.
87155         Patch by Bruce Merry <bmerry@gmail.com>.
87157 2008-04-17  Simon Josefsson  <simon@josefsson.org>
87159         * doc/posix-functions/strftime.texi (strftime): Mention that %e
87160         doesn't work under Windows.
87162 2008-04-16  Bruno Haible  <bruno@clisp.org>
87164         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
87165         New macros.
87166         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
87167         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
87168         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
87169         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
87170         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
87171         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
87172         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
87173         macros.
87174         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
87175         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
87176         Northern Sotho, Uighur.
87178 2008-04-16  Bruno Haible  <bruno@clisp.org>
87180         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
87181         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
87182         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
87183         Reported by Daniel Bergström <daniel@octocode.com>.
87185 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
87186             Bruno Haible  <bruno@clisp.org>
87188         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
87189         function.
87190         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
87191         New functions, mostly extracted from gl_locale_name_default.
87192         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
87194 2008-04-16  Eric Blake  <ebb9@byu.net>
87196         Adjust strtod detection to catch glibc 2.7 bug.
87197         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
87198         Reported by John Gatewood Ham.
87200 2008-04-16  Bruno Haible  <bruno@clisp.org>
87202         Add tentative support for Linux libc5.
87203         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
87204         * lib/fpurge.c (fpurge): Likewise.
87205         * lib/freadable.c (freadable): Likewise.
87206         * lib/freadahead.c (freadahead): Likewise.
87207         * lib/freading.c (freading): Likewise.
87208         * lib/freadptr.c (freadptr): Likewise.
87209         * lib/freadseek.c (freadptrinc): Likewise.
87210         * lib/fseeko.c (rpl_fseeko): Likewise.
87211         * lib/fseterr.c (fseterr): Likewise.
87212         * lib/fwritable.c (fwritable): Likewise.
87213         * lib/fwriting.c (fwriting): Likewise.
87214         Reported by Alain Guibert <alguibert+bts@free.fr>.
87216 2008-04-15  Bruno Haible  <bruno@clisp.org>
87218         * modules/mathl (configure.ac): Define module indicator.
87220 2008-04-15  Bruno Haible  <bruno@clisp.org>
87222         * lib/logl.c (logl): Remove unused variables.
87224 2008-04-15  Bruno Haible  <bruno@clisp.org>
87226         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
87227         fails.
87229 2008-04-15  Bruno Haible  <bruno@clisp.org>
87231         * lib/trim.c (trim2): Fix argument of isspace() macro.
87233 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
87235         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
87236         to 0.
87237         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
87239 2008-04-14  Bruno Haible  <bruno@clisp.org>
87241         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
87242         AC_LANG_PROGRAM argument.
87243         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
87244         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
87245         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
87246         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
87247         * m4/math_h.m4 (gl_MATH_H): Likewise.
87248         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
87249         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
87250         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
87251         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
87252         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
87253         * m4/regex.m4 (gl_REGEX): Likewise.
87254         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
87255         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
87256         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
87257         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
87258         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
87259         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
87260         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
87261         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
87263 2008-04-14  Jim Meyering  <meyering@redhat.com>
87265         test-strtod: fix typos: s/abs/fabs/
87266         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
87268 2008-04-13  Bruno Haible  <bruno@clisp.org>
87270         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
87271         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
87272         module is also used and while not building the reloc-wrapper.
87274 2008-04-13  Bruno Haible  <bruno@clisp.org>
87276         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
87278 2008-04-13  Bruno Haible  <bruno@clisp.org>
87280         Fix AIX compilation failure introduced on 2008-04-02.
87281         * tests/test-frexp.c (exp): Undefine before redefining.
87282         * tests/test-frexpl.c (exp): Likewise.
87284 2008-04-13  Bruno Haible  <bruno@clisp.org>
87286         Work around a HP-UX stdio bug.
87287         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
87288         * tests/test-ftello.c (main): Likewise.
87289         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
87290         * doc/posix-functions/ftello.texi: Likewise.
87292 2008-04-13  Bruno Haible  <bruno@clisp.org>
87294         Make test-signbit pass on HP-UX/hppa.
87295         * tests/test-signbit.c (minus_zerol): New variable.
87296         (test_signbitl): Use it.
87298 2008-04-13  Bruno Haible  <bruno@clisp.org>
87300         Make truncl work on OSF/1 4.0.
87301         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
87302         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
87303         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
87304         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
87305         HAVE_DECL_TRUNCL.
87306         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
87307         HAVE_DECL_TRUNCL.
87308         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
87310 2008-04-13  Bruno Haible  <bruno@clisp.org>
87312         * lib/unictype.h: Remove trailing comma from enumeration definitions.
87314 2008-04-13  Bruno Haible  <bruno@clisp.org>
87316         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
87317         expression, so as to avoid HP-UX 11 cc compiler bug.
87319 2008-04-13  Bruno Haible  <bruno@clisp.org>
87321         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
87323 2008-04-13  Bruno Haible  <bruno@clisp.org>
87325         * lib/git-merge-changelog.c: Remove empty declaration outside of
87326         functions.
87328 2008-04-13  Bruno Haible  <bruno@clisp.org>
87330         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
87332 2008-04-13  Bruno Haible  <bruno@clisp.org>
87334         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
87335         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
87336         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
87337         also if it exists but lacks definitions of the SHUT_* macros.
87338         * modules/sys_socket (Description): Update.
87339         Reported by Elbert Pol <e.pol@chello.nl>.
87341 2008-04-13  Bruno Haible  <bruno@clisp.org>
87343         * lib/localcharset.c (OS2): Don't redefine if already defined.
87344         Reported by Elbert Pol <e.pol@chello.nl>.
87346 2008-04-13  Bruno Haible  <bruno@clisp.org>
87348         * lib/binary-io.h [__EMX__]: Include <io.h>.
87349         Reported by Elbert Pol <e.pol@chello.nl>.
87351 2008-04-12  Bruno Haible  <bruno@clisp.org>
87353         * lib/fpucw.h: Enable the definitions also for x86_64.
87354         Needed for NetBSD/x86_64.
87355         Reported by Thomas Klausner <tk@giga.or.at>.
87357 2008-04-12  Bruno Haible  <bruno@clisp.org>
87359         * tests/test-strtod.c: Include isnand.h.
87360         (main): Use isnand instead of isnan.
87361         Reported by Jim Meyering.
87363 2008-04-12  Bruno Haible  <bruno@clisp.org>
87365         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
87366         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
87368 2008-04-12  Jim Meyering  <meyering@redhat.com>
87370         * m4/math_h.m4 (gl_MATH_H): Fix typos.
87372 2008-04-12  Bruno Haible  <bruno@clisp.org>
87374         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
87375         Reported by Elbert Pol <e.pol@chello.nl>.
87377 2008-04-12  Eric Blake  <ebb9@byu.net>
87379         Work around Solaris 10 math.h bug.
87380         * m4/math_h.m4 (gl_MATH_H): Check for bug.
87381         (gl_MATH_H_DEFAULTS): Set up default.
87382         * modules/math (Makefile.am): Replace new indicators.
87383         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
87384         * tests/test-math.c (main): Test this.
87385         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
87386         * doc/posix-headers/math.texi (math.h): Mention bug.
87387         Reported by Nelson H. F. Beebe and Jim Meyering.
87389 2008-04-11  Bruno Haible  <bruno@clisp.org>
87391         Adapt to future versions of Apple GCC.
87392         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
87393         Reported by Peter O'Gorman <peter@pogma.com>.
87395 2008-04-11  Bruno Haible  <bruno@clisp.org>
87397         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
87399 2008-04-11  Bruno Haible  <bruno@clisp.org>
87401         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
87403         * modules/getaddrinfo-tests (Makefile.am): Define
87404         test_getaddrinfo_LDADD.
87406 2008-04-11  Bruno Haible  <bruno@clisp.org>
87408         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
87409         (init): Fix syntax error.
87410         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
87411         is declared.
87413 2008-04-11  Bruno Haible  <bruno@clisp.org>
87415         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
87416         * modules/glob (Depends-on): Add stdbool.
87418 2008-04-11  Bruno Haible  <bruno@clisp.org>
87420         * lib/trim.c: Include <string.h>.
87422 2008-04-11  Eric Blake  <ebb9@byu.net>
87424         Avoid compile failure on OS/2.
87425         * lib/regex_internal.h (internal_function): Disable optimization
87426         on OS/2 (__EMX__), where it caused compiler error.
87427         Reported by Elbert Pol.
87429 2008-04-11  Bruno Haible  <bruno@clisp.org>
87431         Flush the standard error stream before aborting. Needed on mingw.
87432         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
87433         * tests/test-array_list.c (ASSERT): Likewise.
87434         * tests/test-array_oset.c (ASSERT): Likewise.
87435         * tests/test-avltree_list.c (ASSERT): Likewise.
87436         * tests/test-avltree_oset.c (ASSERT): Likewise.
87437         * tests/test-avltreehash_list.c (ASSERT): Likewise.
87438         * tests/test-binary-io.c (ASSERT): Likewise.
87439         * tests/test-byteswap.c (ASSERT): Likewise.
87440         * tests/test-c-ctype.c (ASSERT): Likewise.
87441         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
87442         * tests/test-c-strcasestr.c (ASSERT): Likewise.
87443         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
87444         * tests/test-c-strstr.c (ASSERT): Likewise.
87445         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
87446         * tests/test-canonicalize.c (ASSERT): Likewise.
87447         * tests/test-carray_list.c (ASSERT): Likewise.
87448         * tests/test-ceilf1.c (ASSERT): Likewise.
87449         * tests/test-ceilf2.c (ASSERT): Likewise.
87450         * tests/test-ceill.c (ASSERT): Likewise.
87451         * tests/test-count-one-bits.c (ASSERT): Likewise.
87452         * tests/test-fbufmode.c (ASSERT): Likewise.
87453         * tests/test-fflush2.c (ASSERT): Likewise.
87454         * tests/test-floorf1.c (ASSERT): Likewise.
87455         * tests/test-floorf2.c (ASSERT): Likewise.
87456         * tests/test-floorl.c (ASSERT): Likewise.
87457         * tests/test-fopen.c (ASSERT): Likewise.
87458         * tests/test-fpending.c (ASSERT): Likewise.
87459         * tests/test-fprintf-posix.c (ASSERT): Likewise.
87460         * tests/test-fpurge.c (ASSERT): Likewise.
87461         * tests/test-freadable.c (ASSERT): Likewise.
87462         * tests/test-freadahead.c (ASSERT): Likewise.
87463         * tests/test-freading.c (ASSERT): Likewise.
87464         * tests/test-freadptr.c (ASSERT): Likewise.
87465         * tests/test-freadptr2.c (ASSERT): Likewise.
87466         * tests/test-freadseek.c (ASSERT): Likewise.
87467         * tests/test-freopen.c (ASSERT): Likewise.
87468         * tests/test-frexp.c (ASSERT): Likewise.
87469         * tests/test-frexpl.c (ASSERT): Likewise.
87470         * tests/test-fseek.c (ASSERT): Likewise.
87471         * tests/test-fseeko.c (ASSERT): Likewise.
87472         * tests/test-fstrcmp.c (ASSERT): Likewise.
87473         * tests/test-ftell.c (ASSERT): Likewise.
87474         * tests/test-ftello.c (ASSERT): Likewise.
87475         * tests/test-func.c (ASSERT): Likewise.
87476         * tests/test-fwritable.c (ASSERT): Likewise.
87477         * tests/test-fwriting.c (ASSERT): Likewise.
87478         * tests/test-getdelim.c (ASSERT): Likewise.
87479         * tests/test-getline.c (ASSERT): Likewise.
87480         * tests/test-i-ring.c (ASSERT): Likewise.
87481         * tests/test-iconv-utf.c (ASSERT): Likewise.
87482         * tests/test-iconv.c (ASSERT): Likewise.
87483         * tests/test-isfinite.c (ASSERT): Likewise.
87484         * tests/test-isnand.c (ASSERT): Likewise.
87485         * tests/test-isnanf.c (ASSERT): Likewise.
87486         * tests/test-isnanl.h (ASSERT): Likewise.
87487         * tests/test-ldexpl.c (ASSERT): Likewise.
87488         * tests/test-linked_list.c (ASSERT): Likewise.
87489         * tests/test-linkedhash_list.c (ASSERT): Likewise.
87490         * tests/test-localename.c (ASSERT): Likewise.
87491         * tests/test-lseek.c (ASSERT): Likewise.
87492         * tests/test-mbscasecmp.c (ASSERT): Likewise.
87493         * tests/test-mbscasestr1.c (ASSERT): Likewise.
87494         * tests/test-mbscasestr2.c (ASSERT): Likewise.
87495         * tests/test-mbscasestr3.c (ASSERT): Likewise.
87496         * tests/test-mbscasestr4.c (ASSERT): Likewise.
87497         * tests/test-mbschr.c (ASSERT): Likewise.
87498         * tests/test-mbscspn.c (ASSERT): Likewise.
87499         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
87500         * tests/test-mbspbrk.c (ASSERT): Likewise.
87501         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
87502         * tests/test-mbsrchr.c (ASSERT): Likewise.
87503         * tests/test-mbsspn.c (ASSERT): Likewise.
87504         * tests/test-mbsstr1.c (ASSERT): Likewise.
87505         * tests/test-mbsstr2.c (ASSERT): Likewise.
87506         * tests/test-mbsstr3.c (ASSERT): Likewise.
87507         * tests/test-memchr2.c (ASSERT): Likewise.
87508         * tests/test-memmem.c (ASSERT): Likewise.
87509         * tests/test-open.c (ASSERT): Likewise.
87510         * tests/test-printf-frexp.c (ASSERT): Likewise.
87511         * tests/test-printf-frexpl.c (ASSERT): Likewise.
87512         * tests/test-printf-posix.c (ASSERT): Likewise.
87513         * tests/test-quotearg.c (ASSERT): Likewise.
87514         * tests/test-rbtree_list.c (ASSERT): Likewise.
87515         * tests/test-rbtree_oset.c (ASSERT): Likewise.
87516         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
87517         * tests/test-round1.c (ASSERT): Likewise.
87518         * tests/test-roundf1.c (ASSERT): Likewise.
87519         * tests/test-roundl.c (ASSERT): Likewise.
87520         * tests/test-signbit.c (ASSERT): Likewise.
87521         * tests/test-sleep.c (ASSERT): Likewise.
87522         * tests/test-snprintf-posix.c (ASSERT): Likewise.
87523         * tests/test-snprintf.c (ASSERT): Likewise.
87524         * tests/test-sprintf-posix.c (ASSERT): Likewise.
87525         * tests/test-stat-time.c (ASSERT): Likewise.
87526         * tests/test-strcasestr.c (ASSERT): Likewise.
87527         * tests/test-strerror.c (ASSERT): Likewise.
87528         * tests/test-striconv.c (ASSERT): Likewise.
87529         * tests/test-striconveh.c (ASSERT): Likewise.
87530         * tests/test-striconveha.c (ASSERT): Likewise.
87531         * tests/test-strsignal.c (ASSERT): Likewise.
87532         * tests/test-strstr.c (ASSERT): Likewise.
87533         * tests/test-strtod.c (ASSERT): Likewise.
87534         * tests/test-trunc1.c (ASSERT): Likewise.
87535         * tests/test-trunc2.c (ASSERT): Likewise.
87536         * tests/test-truncf1.c (ASSERT): Likewise.
87537         * tests/test-truncf2.c (ASSERT): Likewise.
87538         * tests/test-truncl.c (ASSERT): Likewise.
87539         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
87540         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
87541         * tests/test-vasnprintf.c (ASSERT): Likewise.
87542         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
87543         * tests/test-vasprintf.c (ASSERT): Likewise.
87544         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
87545         * tests/test-vprintf-posix.c (ASSERT): Likewise.
87546         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
87547         * tests/test-vsnprintf.c (ASSERT): Likewise.
87548         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
87549         * tests/test-wcwidth.c (ASSERT): Likewise.
87550         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
87551         * tests/test-xprintf-posix.c (ASSERT): Likewise.
87552         * tests/test-xvasprintf.c (ASSERT): Likewise.
87553         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
87554         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
87555         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
87556         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
87557         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
87558         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
87559         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
87560         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
87561         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
87562         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
87563         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
87564         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
87565         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
87566         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
87567         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
87568         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
87569         * tests/unictype/test-block_list.c (ASSERT): Likewise.
87570         * tests/unictype/test-block_of.c (ASSERT): Likewise.
87571         * tests/unictype/test-block_test.c (ASSERT): Likewise.
87572         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
87573         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
87574         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
87575         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
87576         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
87577         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
87578         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
87579         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
87580         * tests/unictype/test-combining.c (ASSERT): Likewise.
87581         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
87582         * tests/unictype/test-digit.c (ASSERT): Likewise.
87583         * tests/unictype/test-mirror.c (ASSERT): Likewise.
87584         * tests/unictype/test-numeric.c (ASSERT): Likewise.
87585         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
87586         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
87587         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
87588         * tests/unictype/test-scripts.c (ASSERT): Likewise.
87589         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
87590         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
87591         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
87592         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
87593         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
87594         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
87595         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
87596         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
87597         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
87598         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
87599         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
87600         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
87601         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
87602         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
87603         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
87604         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
87605         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
87606         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
87607         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
87608         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
87609         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
87610         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
87611         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
87612         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
87613         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
87614         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
87615         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
87616         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
87617         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
87618         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
87619         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
87620         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
87621         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
87622         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
87623         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
87624         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
87625         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
87626         Reported by Eric Blake.
87628 2008-04-11  Bruno Haible  <bruno@clisp.org>
87630         * lib/wchar.in.h: Tweak comment.
87632 2008-04-11  Bruno Haible  <bruno@clisp.org>
87634         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
87635         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
87636         gl_COMMON.
87637         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
87639 2008-04-11  Bruno Haible  <bruno@clisp.org>
87641         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
87643 2008-04-11  Simon Josefsson  <simon@josefsson.org>
87645         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
87646         of attempting to use non-existing /dev/*random.  Based on patch
87647         from Adam Strzelecki <ono@java.pl> in
87648         <http://lists.gnu.org/r/help-gsasl/2008-02/msg00000.html>.
87650 2008-04-08  Bruno Haible  <bruno@clisp.org>
87652         Add tentative support for emx+gcc.
87653         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
87654         * lib/fpurge.c (fpurge): Likewise.
87655         * lib/freadable.c (freadable): Likewise.
87656         * lib/freadahead.c (freadahead): Likewise.
87657         * lib/freading.c (freading): Likewise.
87658         * lib/freadptr.c (freadptr): Likewise.
87659         * lib/freadseek.c (freadptrinc): Likewise.
87660         * lib/fseeko.c (rpl_fseeko): Likewise.
87661         * lib/fseterr.c (fseterr): Likewise.
87662         * lib/fwritable.c (fwritable): Likewise.
87663         * lib/fwriting.c (fwriting): Likewise.
87664         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
87666 2008-04-09  Eric Blake  <ebb9@byu.net>
87668         Avoid some autoconf warnings.
87669         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
87670         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
87671         * m4/afs.m4 (gl_AFS): Likewise.
87672         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
87673         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
87674         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
87675         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
87676         (gl_INTEGER_TYPE_SUFFIX): Likewise.
87677         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
87678         (AC_CHECK_DECLS_ONCE): Likewise.
87679         Rename file...
87680         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
87681         gnulib-tool requires autoconf 2.59 or better.
87682         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
87684 2008-04-08  Eric Blake  <ebb9@byu.net>
87686         Use 'git describe --match' if present (added in git 1.5.5).
87687         * build-aux/git-version-gen: Limit result to tags that match 'v*'
87688         if possible.
87690 2008-04-08  Bruno Haible  <bruno@clisp.org>
87692         Add tentative support for OpenServer.
87693         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
87694         _ptr, _cnt.
87695         * lib/fpurge.c (fpurge): Likewise.
87696         * lib/freadable.c (freadable): Likewise.
87697         * lib/freadahead.c (freadahead): Likewise.
87698         * lib/freading.c (freading): Likewise.
87699         * lib/freadptr.c (freadptr): Likewise.
87700         * lib/freadseek.c (freadptrinc): Likewise.
87701         * lib/fseeko.c (rpl_fseeko): Likewise.
87702         * lib/fseterr.c (fseterr): Likewise.
87703         * lib/fwritable.c (fwritable): Likewise.
87704         * lib/fwriting.c (fwriting): Likewise.
87705         Reported by Roger Cornelius <rac@tenzing.org> and
87706         Brian K. White <brian@aljex.com>.
87708 2008-04-06  Jim Meyering  <meyering@redhat.com>
87710         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
87712 2008-04-06  Bruno Haible  <bruno@clisp.org>
87714         Avoid possible error with non-ASCII bytes in UTF-8 locales.
87715         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
87716         * tests/test-printf-posix.sh: Likewise.
87717         * tests/test-vfprintf-posix.sh: Likewise.
87718         * tests/test-vprintf-posix.sh: Likewise.
87719         * tests/test-xprintf-posix.sh: Likewise.
87721 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87723         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
87724         hide error from 'ls', needed on OS/2.
87725         Report by Elbert Pol <elbert.pol@gmail.com>.
87727 2008-04-04  Eric Blake  <ebb9@byu.net>
87729         Make test-fseeko.c failures meaningful.
87730         * tests/test-fseeko.c: Print line number on failure.
87731         * tests/test-fseek.c: Likewise.
87732         Reported by Nelson H. F. Beebe.
87734         Improve strtod bug detection check.
87735         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
87736         required for Solaris 10.
87737         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
87739 2008-04-04  Bruno Haible  <bruno@clisp.org>
87741         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
87742         by m4/setenv.m4.
87744 2008-04-03  Eric Blake  <ebb9@byu.net>
87746         Ensure sane .version contents.
87747         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
87748         version string.
87749         * build-aux/git-version-gen: Improve documentation.
87751         Make GNU make output nicer.
87752         * top/GNUmakefile [!_have-Makefile]: Add dependency on
87753         MAKECMDGOALS to enforce message for all command line targets.  Set
87754         srcdir for use in maint.mk.
87756         Another maintainer tweak.
87757         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
87758         a target that regenerates version.
87760 2008-04-03  Jim Meyering  <meyering@redhat.com>
87762         vc-list-files: don't cause coreutils "make po-check" failure
87763         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
87765 2008-04-03  Eric Blake  <ebb9@byu.net>
87767         Allow VPATH usage of vc-list-files.
87768         * build-aux/vc-list-files (scriptversion): Add timestamp.
87769         (options): Add --help, --version, -C.
87770         (CVS): Support installed cvsu.
87772 2008-04-02  Bruno Haible  <bruno@clisp.org>
87774         Avoid some "statement with no effect" warnings from gcc.
87775         * tests/test-wctype.c (main): Explicitly ignore unused values.
87776         Reported by Jim Meyering.
87778 2008-04-02  Jim Meyering  <meyering@redhat.com>
87780         Avoid some warnings from "gcc -Wshadow".
87781         * tests/test-frexp.c (exp): Define to a different identifier.
87782         * tests/test-frexpl.c (exp): Likewise.
87784 2008-04-03  Jim Meyering  <meyering@redhat.com>
87786         bootstrap: remove dangling *.[ch] symlinks from lib
87787         * build-aux/bootstrap [dangling symlink removal]: Move find's
87788         -depth option to precede all others, to avoid a warning.
87789         Remove *.[ch] files too, and from "$source_base" (usually lib/).
87791 2008-04-02  Bruno Haible  <bruno@clisp.org>
87793         Avoid some warnings from "gcc -Wshadow".
87794         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
87795         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
87796         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
87797         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
87798         Reported by Jim Meyering.
87800 2008-04-01  Bruno Haible  <bruno@clisp.org>
87802         Fix test to work on IRIX 6.5 with cc.
87803         * tests/test-math.c (numeric_equal): New function.
87804         (main): Use it.
87806 2008-04-01  Bruno Haible  <bruno@clisp.org>
87808         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
87810 2008-04-01  Bruno Haible  <bruno@clisp.org>
87812         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
87813         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
87814         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
87815         (Depends-on): Remove math.
87817         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
87818         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
87819         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
87820         (Depends-on): Remove math.
87822         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
87823         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
87824         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
87825         (Depends-on): Remove math.
87826         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
87827         (Depends-on): Remove math.
87829         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
87830         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
87831         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
87832         (Depends-on): Remove math.
87833         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
87834         (Depends-on): Remove math.
87836         * tests/test-round1.c: Include nan.h.
87837         (main): Use NaNd instead of NAN.
87838         * modules/round-tests (Files): Add tests/nan.h.
87840         * tests/test-trunc1.c: Include nan.h.
87841         (main): Use NaNd instead of NAN.
87842         * modules/trunc-tests (Files): Add tests/nan.h.
87844         * tests/test-roundf1.c: Include nan.h.
87845         (main): Use NaNf instead of NAN.
87846         * modules/roundf-tests (Files): Add tests/nan.h.
87848         * tests/test-truncf1.c: Include nan.h.
87849         (main): Use NaNf instead of NAN.
87850         * modules/truncf-tests (Files): Add tests/nan.h.
87852         * tests/test-ceilf1.c: Include nan.h.
87853         (main): Use NaNf instead of NAN.
87854         * modules/ceilf-tests (Files): Add tests/nan.h.
87856         * tests/test-floorf1.c: Include nan.h.
87857         (main): Use NaNf instead of NAN.
87858         * modules/floorf-tests (Files): Add tests/nan.h.
87860         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
87861         (main): Use NaNf instead of NAN.
87862         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
87864         * tests/test-isnand.c: Include nan.h instead of <math.h>.
87865         (main): Use NaNd instead of NAN.
87866         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
87868         * tests/test-frexp.c: Include nan.h.
87869         (main): Use NaNd instead of NAN.
87870         * modules/frexp-tests (Files): Add tests/nan.h.
87872         * lib/isnan.c: Don't include <math.h>.
87873         (FUNC): Don't use NAN macro.
87874         * modules/isnand-nolibm (Depends-on): Remove math.
87875         * modules/isnanf-nolibm (Depends-on): Remove math.
87876         * modules/isnanl (Depends-on): Remove math.
87877         * modules/isnanl-nolibm (Depends-on): Remove math.
87879         * tests/nan.h: New file.
87881 2008-04-01  Eric Blake  <ebb9@byu.net>
87883         Fix typos.
87884         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
87885         values to be the right type.
87887         For now, cater to gnulib strtod inaccuracies.
87888         * tests/test-strtod.c (main): Allow 1-ulp error on expected
87889         fractional results.  While not as nice from a QoI perspective, it
87890         is a quicker patch than correctly implementing decimal to binary
87891         rounding.
87893 2008-03-31  Eric Blake  <ebb9@byu.net>
87895         Guarantee a definition of NAN.
87896         * lib/math.in.h (NAN): Define if missing.
87897         * tests/test-math.c (main): Test it.
87898         * doc/posix-headers/math.texi (math.h): Document this.
87899         * lib/isnan.c (rpl_isnand): Use it.
87900         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
87901         * tests/test-floorf1.c (NaN): Likewise.
87902         * tests/test-frexp.c (NaN): Likewise.
87903         * tests/test-isnand.c (NaN): Likewise.
87904         * tests/test-isnanf.c (NaN): Likewise.
87905         * tests/test-round1.c (NaN): Likewise.
87906         * tests/test-roundf1.c (NaN): Likewise.
87907         * tests/test-snprintf-posix.h (NaN): Likewise.
87908         * tests/test-sprintf-posix.h (NaN): Likewise.
87909         * tests/test-trunc1.c (NaN): Likewise.
87910         * tests/test-truncf1.c (NaN): Likewise.
87911         * tests/test-vasnprintf-posix.c (NaN): Likewise.
87912         * tests/test-vasprintf-posix.c (NaN): Likewise.
87913         * modules/isnand-nolibm (Depends-on): Add math.
87914         * modules/isnanf-nolibm (Depends-on): Likewise.
87915         * modules/isnanl (Depends-on): Likewise.
87916         * modules/isnanl-nolibm (Depends-on): Likewise.
87917         * modules/snprintf-posix-tests (Depends-on): Likewise.
87918         * modules/sprintf-posix-tests (Depends-on): Likewise.
87919         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
87920         * modules/vsprintf-posix-tests (Depends-on): Likewise.
87921         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
87922         * modules/vasprintf-posix-tests (Depends-on): Likewise.
87924 2008-03-31  Bruno Haible  <bruno@clisp.org>
87926         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
87927         * doc/posix-functions/strtod.texi: Likewise.
87929 2008-03-31  Bruno Haible  <bruno@clisp.org>
87931         * tests/test-strtod.c (main): Don't use C99 syntax.
87933 2008-03-31  Bruno Haible  <bruno@clisp.org>
87935         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
87936         Reported by Eric Blake.
87938 2008-03-31  Jim Meyering  <meyering@redhat.com>
87940         Don't compare actual signbit return values.
87941         * tests/test-strtod.c (main): Rather, compare only their
87942         zero/non-zero nature.
87944 2008-03-31  Eric Blake  <ebb9@byu.net>
87946         More strtod documentation.
87947         * doc/posix-functions/strtod.texi (strtod): Interpret more test
87948         failures as distinct bugs.
87950 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
87952         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
87953         Problem reported by Erik Benada in
87954         <http://lists.gnu.org/r/bug-gnulib/2008-03/msg00249.html>.
87956 2008-03-30  Bruno Haible  <bruno@clisp.org>
87958         * tests/test-strtod.c: Add comments about which assertion fails on which
87959         platform.
87960         * doc/posix-functions/strtod.texi: Add info about many more platforms.
87962 2008-03-30  Eric Blake  <ebb9@byu.net>
87964         Test signbit behavior on zeros.
87965         * tests/test-signbit.c (test_signbitf): Add tests for zero.
87966         (test_signbitd, test_signbitl): Likewise.
87968         More strtod touchups.
87969         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
87970         sign of negative underflow, for now.  Use .5, not .1.
87971         * doc/posix-functions/strtod.texi (strtod): Mention these
87972         limitations.
87973         Reported by Jim Meyering.
87975 2008-03-30  Bruno Haible  <bruno@clisp.org>
87977         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
87978         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
87980 2008-03-30  Bruno Haible  <bruno@clisp.org>
87982         Avoid failure when attempting to return empty iconv results on some
87983         platforms.
87984         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
87985         allocation, don't report ENOMEM when the resulting string is empty.
87987 2008-03-30  Bruno Haible  <bruno@clisp.org>
87989         Fix buffer overrun.
87990         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
87991         Don't consider the width for tmp_length. Check count against tmp_length
87992         before doing the padding. Ensure enough allocation during padding.
87994 2008-03-30  Eric Blake  <ebb9@byu.net>
87996         strtod touchups.
87997         * lib/strtod.c (strtod): Avoid compiler warnings.
87998         Reported by Jim Meyering.
88000 2008-03-30  Bruno Haible  <bruno@clisp.org>
88002         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
88003         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
88004         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
88005         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
88006         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
88007         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
88008         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
88009         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
88011         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
88012         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
88013         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
88014         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
88015         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
88016         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
88017         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
88018         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
88020         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
88021         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
88022         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
88023         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
88024         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
88025         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
88026         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
88027         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
88029         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
88030         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
88032         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
88033         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
88035         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
88036         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
88038         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
88039         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
88040         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
88042         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
88043         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
88044         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
88046         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
88047         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
88048         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
88050         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
88051         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
88052         * modules/vasprintf (Depends-on): Add EOVERFLOW.
88054         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
88055         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
88056         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
88057         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
88058         (Depends-on): Add EOVERFLOW.
88059         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
88060         (Depends-on): Add EOVERFLOW.
88061         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
88062         (Depends-on): Add EOVERFLOW.
88063         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
88064         (Depends-on): Add EOVERFLOW.
88065         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
88066         (Depends-on): Add EOVERFLOW.
88067         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
88068         (Depends-on): Add EOVERFLOW.
88069         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
88070         (Depends-on): Add EOVERFLOW.
88071         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
88072         (Depends-on): Add EOVERFLOW.
88074         * lib/sprintf.c (EOVERFLOW): Remove fallback.
88075         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
88076         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
88078         * lib/snprintf.c (EOVERFLOW): Remove fallback.
88079         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
88080         * modules/snprintf (Depends-on): Add EOVERFLOW.
88082         * lib/poll.c (EOVERFLOW): Remove fallback.
88083         * modules/poll (Depends-on): Add EOVERFLOW.
88085         * lib/getugroups.c (EOVERFLOW): Remove fallback.
88086         * modules/getugroups (Depends-on): Add EOVERFLOW.
88088         * lib/getdelim.c (EOVERFLOW): Remove fallback.
88089         * modules/getdelim (Depends-on): Add EOVERFLOW.
88091         * lib/ftell.c (EOVERFLOW): Remove fallback.
88092         * modules/ftell (Depends-on): Add EOVERFLOW.
88094         * lib/fprintf.c (EOVERFLOW): Remove fallback.
88095         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
88096         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
88098         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
88100         * modules/EOVERFLOW-tests: New file.
88101         * tests/test-EOVERFLOW.c: New file.
88103         * modules/EOVERFLOW: New file.
88104         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
88106 2008-03-30  Bruno Haible  <bruno@clisp.org>
88108         Fix bug introduced on 2007-06-10.
88109         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
88110         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
88112 2008-03-30  Bruno Haible  <bruno@clisp.org>
88114         Improve freadseek's efficiency after ungetc.
88115         * lib/freadseek.c: Include freadahead.h.
88116         (freadptrinc): New function, extracted from freadseek.
88117         (freadseek): Use it in a loop. Use freadahead to determine the number
88118         of loop iterations.
88119         * modules/freadseek (Depends-on): Add freadahead.
88120         (configure.ac): Require AC_C_INLINE.
88122 2008-03-30  Bruno Haible  <bruno@clisp.org>
88124         * lib/freadseek.c (freadseek): Don't ignore the return value of
88125         freadptr.
88127 2008-03-29  Eric Blake  <ebb9@byu.net>
88129         Add hex float support.
88130         * modules/strtod (Depends-on): Add c-ctype.
88131         (Link): Mention POW_LIB.
88132         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
88133         whitespace between 'e' and exponent.
88134         * tests/test-strtod.c (main): Enable hex float tests.
88135         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
88136         now provides.
88138         Document various strtod bugs, with some fixes.
88139         * doc/posix-functions/strtod.texi (strtod): Document bugs with
88140         "-0x", "inf", "nan", and hex constants.
88141         * doc/posix-functions/atof.texi (atof): Likewise.
88142         * modules/stdlib (Makefile.am): Support strtod.
88143         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
88144         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
88145         detect additional strtod bugs.
88146         * lib/stdlib.in.h (rpl_strtod): Add declarations.
88147         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
88148         bool where appropriate.  Parse 'inf' and 'nan'.
88149         * tests/test-strtod.c: New file.
88150         * modules/strtod (Depends-on): Add stdbool, stdlib.
88151         (configure.ac): Turn on module indicator.
88152         * modules/strtod-tests: New module.
88154 2008-03-29  Eric Blake  <ebb9@byu.net>
88156         Fix ftell on mingw.
88157         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
88158         * modules/ftell-tests (Depends-on): Add binary-io.
88159         * modules/ftello-tests (Depends-on): Likewise.
88160         * tests/test-ftell.c (main): Enhance test to cover behavior after
88161         ungetc.  Enforce binary mode.
88162         * tests/test-ftello.c (main): Likewise.
88164         Pass test-freadseek on cygwin.
88165         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
88166         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
88167         ungetc buffer.
88169         * tests/test-fflush2.c (main): Fix typo.
88171 2008-03-29  Bruno Haible  <bruno@clisp.org>
88173         * tests/test-fflush2.c (main): Temporarily disable the contents of
88174         this test.
88175         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
88176         Reported by Eric Blake.
88178 2008-03-28  Simon Josefsson  <simon@josefsson.org>
88180         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
88181         (GC_SHA224_DIGEST_SIZE): Add.
88183         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
88184         (gc_hash_digest_length): Likewise.
88185         (gc_hash_buffer): Likewise.
88187 2008-03-25  Bruno Haible  <bruno@clisp.org>
88189         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
88190         detail which gettext release to use.
88191         Reported by Simon Josefsson.
88193 2008-03-26  Jim Meyering  <meyering@redhat.com>
88195         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
88196         * modules/gnumakefile (clean-GNUmakefile): Also, use
88197         test ... && ... || : syntax rather than if-then ... fi.
88199         gnumakefile: Don't double-quote-expand $(VPATH) value.
88200         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
88202 2008-03-24  Eric Blake  <ebb9@byu.net>
88204         Alter GNUmakefile to install into top directory.
88205         * modules/maintainer-makefile: Split, and add dependency...
88206         * modules/gnumakefile: to this new module.
88207         * build-aux/GNUmakefile: Move...
88208         * top/GNUmakefile: ...here.
88209         * build-aux/maint.mk: Move...
88210         * top/maint.mk: ...here.
88211         * MODULES.html.sh (Support for maintaining...): Document new
88212         module.
88214 2008-03-23  Bruno Haible  <bruno@clisp.org>
88216         * gnulib-tool: New options --vc-files, --no-vc-files.
88217         (func_usage): Document them.
88218         (vc_files): New variable.
88219         (func_import): Consider vc_files.
88220         (func_create_testdir): Set vc_files to empty.
88221         Suggested by Jim Meyering and Karl Berry.
88223 2008-03-23  Bruno Haible  <bruno@clisp.org>
88225         Fix regex compilation error on HP-UX 11.
88226         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
88227         * modules/regex (Files): Add m4/mbstate_t.m4.
88228         Reported by Ton Voon <ton.voon@altinity.com>.
88230 2008-03-23  Bruno Haible  <bruno@clisp.org>
88232         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
88234 2008-03-23  Eric Blake  <ebb9@byu.net>
88235             Bruno Haible  <bruno@clisp.org>
88237         Install files from top/ in the destination directory.
88238         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
88239         augmentation also for the files from top/.
88240         (func_import, func_create_testdir): Rewrite file names:
88241         top/filename -> filename.
88243 2008-03-23  Bruno Haible  <bruno@clisp.org>
88245         Tweak "gnulib --version" output.
88246         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
88248 2008-03-23  Bruno Haible  <bruno@clisp.org>
88250         Tweak "gnulib --version" output.
88251         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
88252         rather than contents of ChangeLog, when possible.
88254 2008-03-21  Eric Blake  <ebb9@byu.net>
88256         More --version tweaks.
88257         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
88258         date of last ChangeLog entry.
88260 2008-03-21  Jim Meyering  <meyering@redhat.com>
88262         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
88264 2008-03-20  Eric Blake  <ebb9@byu.net>
88266         VPATH fix.
88267         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
88269 2008-03-20  Simon Josefsson  <simon@josefsson.org>
88271         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
88272         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
88274 2008-03-20  Eric Blake  <ebb9@byu.net>
88276         Sync GNUmakefile with coreutils.
88277         * build-aux/GNUmakefile (have-Makefile): Rename...
88278         (_have-Makefile): ...to this, for namespace consideration.
88279         (GNUmakefile.cfg): Include, if present.
88280         (_autoreconf): Define a default.
88281         (_is-dist-target): New rule for rebuilds to pick up intra-release
88282         version.
88283         (maint-cfg.mk): Rename...
88284         (cfg.mk): ...to this.
88286 2008-03-18  Jim Meyering  <meyering@redhat.com>
88288         New script and module: mktempd
88289         * MODULES.html.sh (maint+release support): Add mktempd.
88290         * build-aux/mktempd: New file.
88291         * modules/mktempd: New file.
88293 2008-03-15  Jim Meyering  <meyering@redhat.com>
88295         Undo last change.
88296         * lib/sha1.c, lib/md5.c: 63 != ~63.
88297         Reported by Andreas Schwab.
88299         sha1.c, md5.c: Hoist a redundant expression.
88300         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
88301         "ctx->buflen" only once, before calling *_process_block.
88302         * lib/md5.c (md5_process_bytes): Likewise.
88304 2008-03-14  Eric Blake  <ebb9@byu.net>
88306         Bump copyright year in files generated by gnulib-tool.
88307         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
88308         gnulib-tool, rather than hard-coding it.
88310         Fix 'gnulib-tool --version' output to work with git.
88311         * gnulib-tool (func_gnulib_dir): New function, extracted from...
88312         (startup): ...here.
88313         (func_version): Use it to invoke git-version-gen, rather than
88314         relying on CVS keyword expansion.  Modernize wording.
88315         (cvsdatestamp, last_checkin_date, version): Kill unused
88316         variables.
88318 2008-03-12  Jim Meyering  <meyering@redhat.com>
88320         Recognize optional cast of the argument to free.
88321         * build-aux/useless-if-before-free: Update regexps.
88323         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
88325 2008-03-11  Bruno Haible  <bruno@clisp.org>
88327         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
88328         by a single package.
88329         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
88330         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
88331         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
88332         Reported by Sam Steingold <sds@gnu.org>.
88334 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
88336         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
88337         repositories.
88339 2008-03-11  Bruno Haible  <bruno@clisp.org>
88341         Avoid conflicts between local macro definitions.
88342         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
88343         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
88345 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
88346             Bruno Haible  <bruno@clisp.org>
88348         Make va_copy work with some version of xlc on AIX 5.1.
88349         * lib/stdarg.in.h: New file.
88350         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
88351         On AIX, use a <stdarg.h> file substitute.
88352         * modules/stdarg (Files): Add lib/stdarg.in.h.
88353         (Depends-on): Add include_next.
88354         (Makefile.am): Build a stdarg.h substitute if requested.
88355         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
88357 2008-03-10  Bruno Haible  <bruno@clisp.org>
88359         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
88360         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
88361         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
88363 2008-03-10  Bruno Haible  <bruno@clisp.org>
88365         * modules/stdlib (Depends-on): Add include_next, remove
88366         absolute-header.
88368 2008-03-09  Bruno Haible  <bruno@clisp.org>
88370         * lib/freadahead.h (freadahead): Document more precisely.
88371         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
88372         the sum of both buffer sizes.
88373         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
88374         * NEWS: Document the change.
88376 2008-03-09  Bruno Haible  <bruno@clisp.org>
88378         Extend freadptr to return also the buffer size.
88379         * lib/freadptr.h (freadptr): Add sizep argument.
88380         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
88381         (freadptr): Add sizep argument. Determine buffer size like freadahead
88382         does.
88383         * tests/test-freadptr.c: Don't include freadahead.h.
88384         (main): Adapt for new calling convention of freadptr.
88385         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
88386         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
88387         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
88388         tests/test-freadptr2.sh.
88389         (Depends): Remove freadahead.
88390         (TESTS): Add test-freadptr2.sh.
88391         (check_PROGRAMS): Add test-freadptr2.
88393 2008-03-09  Bruno Haible  <bruno@clisp.org>
88395         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
88396         Report and solution by Simon Josefsson.
88398 2008-03-06  Bruno Haible  <bruno@clisp.org>
88400         Make fflush after ungetc work on BSD platforms.
88401         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
88402         * tests/test-fflush2.c: New file.
88403         * tests/test-fflush2.sh: New file.
88404         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
88405         tests/test-fflush2.c.
88406         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
88407         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
88409 2008-03-06  Eric Blake  <ebb9@byu.net>
88411         Likewise for ftello.
88412         * modules/ftello (Dependencies): Add extensions.
88413         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
88415 2008-03-06  Bruno Haible  <bruno@clisp.org>
88417         * modules/fseeko (Dependencies): Add extensions.
88418         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
88419         Needed on glibc systems.
88421 2008-03-06  Bruno Haible  <bruno@clisp.org>
88423         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
88424         email address.
88425         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
88427 2008-03-06  Bruno Haible  <bruno@clisp.org>
88429         * users.txt: Add libgnupdf.
88431 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
88433         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
88434         (Header File Substitutes, Function Substitutes,
88435         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
88436         (Build robot for gnulib): Fix typo.
88438 2008-03-06  Bruno Haible  <bruno@clisp.org>
88440         * doc/gnulib-tool.texi (VCS Issues): Small updates.
88441         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
88443 2008-03-06  Bruno Haible  <bruno@clisp.org>
88445         * doc/func.texi: New file, extracted from doc/gnulib.texi.
88446         * doc/gnulib.texi: Include it.
88448 2008-03-06  Simon Josefsson  <simon@josefsson.org>
88450         * modules/func (License): Change license to unlimited; there was
88451         no LGPL parts in the module anyway.
88453 2008-03-06  Simon Josefsson  <simon@josefsson.org>
88455         * modules/__func__: Renamed to modules/func.
88456         * modules/__func__-tests: Renamed to modules/func-tests.
88457         * tests/test-__func__.c: Renamed to tests/test-func.c.
88458         * m4/__func__.m4: Renamed to m4/func.m4.
88459         * doc/gnulib.texi (__func__): Section renamed to func.
88460         Suggested by Eric Blake <ebb9@byu.net>.
88462 2008-03-06  Simon Josefsson  <simon@josefsson.org>
88464         * doc/gnulib.texi (__func__): Use C99 terminology when talking
88465         about __func__.  Make example self-contained.  Suggested by Eric
88466         Blake <ebb9@byu.net>.
88468         * tests/test-__func__.c (main): Avoid extraneous () around __func.
88469         Suggested by Eric Blake <ebb9@byu.net>.
88471 2008-03-06  Simon Josefsson  <simon@josefsson.org>
88473         * modules/__func__: New file.
88474         * modules/__func__-tests: New file.
88475         * tests/test-__func__.c: New file.
88476         * m4/__func__.m4: New file.
88477         * doc/gnulib.texi (__func__): Document __func__ module.
88479 2008-03-05  Simon Josefsson  <simon@josefsson.org>
88481         * modules/byteswap (License): Re-license as LGPLv2+.
88483 2008-03-05  Simon Josefsson  <simon@josefsson.org>
88485         * doc/Makefile: Add pdf target.
88487 2008-03-05  Simon Josefsson  <simon@josefsson.org>
88489         * modules/inline (License): Use 'unlimited', since there are only
88490         *.m4 files in this module.
88492 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
88493             Bruno Haible  <bruno@clisp.org>
88495         Add support for HP C 7.1 on OpenVMS 8.3.
88496         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
88498 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
88500         Update VMS specifics.
88501         * lib/getopt.c [VMS]: Remove include of unixlib.h.
88503 2008-03-02  Jim Meyering  <meyering@redhat.com>
88505         Remove the last dependency on the "free" module.
88506         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
88507         Reported by Bob Proulx.
88509         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
88511         Remove useless "if" tests before free.  Deprecate "free" module.
88512         * doc/posix-functions/free.texi: Mention that this
88513         module is no longer useful.
88514         * modules/free (Notice): Say this module is obsolete.
88515         * modules/readutmp (Depends-on): Remove free.
88516         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
88517         * lib/putenv.c (putenv): Likewise.
88518         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
88519         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
88520         * tests/test-c-strcasestr.c (main): Likewise.
88521         * tests/test-c-strstr.c (main): Likewise.
88522         * tests/test-mbscasestr1.c (main): Likewise.
88523         * tests/test-mbscasestr2.c (main): Likewise.
88524         * tests/test-mbsstr1.c (main): Likewise.
88525         * tests/test-mbsstr2.c (main): Likewise.
88526         * tests/test-memmem.c (main): Likewise.
88527         * tests/test-strcasestr.c (main): Likewise.
88528         * tests/test-striconv.c (main): Likewise.
88529         * tests/test-striconveh.c (main): Likewise.
88530         * tests/test-striconveha.c (main): Likewise.
88531         * tests/test-strstr.c (main): Likewise.
88533         * build-aux/git-version-gen: Adjust a comment and the Usage string.
88535         bootstrap: sync from coreutils again
88536         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
88538 2008-03-01  Jim Meyering  <meyering@redhat.com>
88540         bootstrap: sync from coreutils
88541         * build-aux/bootstrap (update_po_files): Copy a .po file into place
88542         also when the target doesn't exist.
88544 2008-03-01  Eric Blake  <ebb9@byu.net>
88546         Fix bugs in last patch.
88547         * lib/memchr2.c (memchr2): Fix typo.
88548         * tests/test-memchr2.c: Test previous bug, and don't use GNU
88549         extension.
88550         Reported by Bruce Korb.
88552         New module 'memchr2'.
88553         * modules/memchr2: New file.
88554         * modules/memchr2-tests: Likewise.
88555         * lib/memchr2.h: Likewise.
88556         * lib/memchr2.c: Likewise, based on memchr.c.
88557         * tests/test-memchr2.c: New test.
88558         * MODULES.html.sh (String handling): Add memchr2.
88560 2008-02-29  Bruno Haible  <bruno@clisp.org>
88562         * modules/freadseek-tests: New file.
88563         * tests/test-freadseek.sh: New file.
88564         * tests/test-freadseek.c: New file.
88566         New module 'freadseek'.
88567         * modules/freadseek: New file.
88568         * lib/freadseek.h: New file.
88569         * lib/freadseek.c: New file.
88570         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
88572 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
88574         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
88575         wydawca.
88577         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
88578         program_invocation_name and program_invocation_short_name are
88579         present.
88581 2008-02-28  Bruno Haible  <bruno@clisp.org>
88583         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
88584         * tests/test-freadptr.sh: Also test non-seekable stdin.
88586 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
88588         * build-aux/bootstrap (source_base, m4_base)
88589         (doc_base, tests_base): New variables.
88590         (gnulib_tool_options): Do not hardcode base directories, use
88591         the above variables instead.
88593 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
88595         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
88597 2008-02-28  Bruno Haible  <bruno@clisp.org>
88599         * modules/freadptr-tests: New file.
88600         * tests/test-freadptr.sh: New file.
88601         * tests/test-freadptr.c: New file.
88603         New module 'freadptr'.
88604         * modules/freadptr: New file.
88605         * lib/freadptr.h: New file.
88606         * lib/freadptr.c: New file.
88607         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
88609 2008-02-26  Karl Berry  <karl@freefriends.org>
88611         Sync from Libtool:
88612         * libltdl/argz.c (argz_add, argz_count): New functions.
88613         * libltdl/argz.in.h: Declare them.
88614         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
88616 2008-02-22  Bruno Haible  <bruno@clisp.org>
88618         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
88619         is a pointer type.  Needed for HP-UX 10.
88620         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
88621         * doc/posix-functions/gmtime_r.texi: Likewise.
88622         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
88624 2008-02-24  Bruno Haible  <bruno@clisp.org>
88626         * modules/environ-tests: New file.
88627         * tests/test-environ.c: New file.
88629         New module 'environ'.
88630         * modules/environ: New file.
88631         * lib/unistd.in.h (environ): New declaration.
88632         * m4/environ.m4: New file.
88633         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
88634         after use.
88635         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
88636         HAVE_DECL_ENVIRON.
88637         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
88638         HAVE_DECL_ENVIRON.
88639         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
88640         wrong claim that 'environ' is missing on some systems.
88641         * modules/execute (Depends-on): Add environ.
88642         * lib/execute.c (environ): Remove fallback declaration.
88643         * modules/pipe (Depends-on): Add environ.
88644         * lib/pipe.c (environ): Remove fallback declaration.
88645         * modules/setenv (Depends-on): Add environ.
88646         * lib/setenv.c (environ): Remove fallback declaration.
88647         * modules/unsetenv (Depends-on): Add environ.
88648         * lib/unsetenv.c (environ): Remove fallback declaration.
88649         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
88650         m4/environ.m4.
88651         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
88652         (gl_PREREQ_UNSETENV): Likewise.
88654 2008-02-24  Bruno Haible  <bruno@clisp.org>
88656         * doc/posix-functions/environ.texi: Document the MacOS X problem.
88658 2008-02-20  Bob Proulx  <bob@proulx.com>
88660         Enable use of older two part flavor 'git describe'.
88661         * build-aux/git-version-gen: If using the older two part flavor of
88662         git version then recreate the third part now present in the
88663         newer three part flavor of git describe.
88665 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
88667         * lib/fts.c (fts_build): Typo correction to comment.
88669 2008-02-17  Bruno Haible  <bruno@clisp.org>
88671         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
88672         generating no-op conflicts.
88674 2008-02-17  Bruno Haible  <bruno@clisp.org>
88676         Speed up by 10%.
88677         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
88678         result_entries, rather than an index-based loop.
88680 2008-02-17  Bruno Haible  <bruno@clisp.org>
88682         Speed up by 25%.
88683         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
88684         'hashcode_cached'.
88685         (entry_create): New function.
88686         (entry_hashcode): Use the cached hashcode if possible.
88687         (read_changelog_file, try_split_merged_entry): Use entry_create.
88689 2008-02-17  Bruno Haible  <bruno@clisp.org>
88691         Speed up from O(n^2) to O(n) for long ChangeLog files.
88692         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
88693         (read_changelog_file): Change implementation of entries_reversed list
88694         to rbtreehash.
88695         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
88697 2008-02-17  Bruno Haible  <bruno@clisp.org>
88699         New option --split-merged-entry.
88700         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
88701         (find_paragraph_end, try_split_merged_entry): New functions.
88702         (long_options): Add option --split-merged-entry.
88703         (usage): Document option --split-merged-entry.
88704         (main): Implement option --split-merged-entry.
88705         Reported by Eric Blake.
88707 2008-02-17  Bruno Haible  <bruno@clisp.org>
88709         * lib/git-merge-changelog.c: Include c-strstr.h.
88710         (main): Support the "git pull --rebase" situation.
88711         * modules/git-merge-changelog (Depends-on): Add c-strstr.
88712         Reported by Eric Blake.
88714 2008-02-16  Eric Blake  <ebb9@byu.net>
88716         Avoid doubling \ in common case of "c-maybe" quoting style.
88717         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
88718         eliding outer quotes.
88719         * lib/quotearg.h: Document this.
88720         * tests/test-quotearg.c (result_strings, inputs, results_g)
88721         (flag_results, locale_results): Test it by adding a new string to
88722         each test group.
88723         (compare_strings): Test new string.
88725 2008-02-13  Eric Blake  <ebb9@byu.net>
88727         Avoid trigraph quoting in default output.
88728         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
88729         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
88730         unless explicitly requested.
88731         * tests/test-quotearg.c (flag_results, main): Add additional tests.
88733 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
88735         Don't rely on signed integer overflowing to negative value.
88736         * lib/getugroups.c (getugroups): Include <limits.h>.
88737         Instead, compare against INT_MAX, and increment only if the test passes.
88739 2008-02-13  Jim Meyering  <meyering@redhat.com>
88740         and Eric Blake  <ebb9@byu.net>
88742         Avoid shadowing warning and compile errors on Linux.
88743         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
88744         forwarding macros on Linux.
88745         (dcgettext): Define a stub, for Linux.
88746         (results_g, main): Avoid warnings.
88748 2008-02-12  Eric Blake  <ebb9@byu.net>
88750         Silence warning in last patch.
88751         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
88753         Quotearg part 4: add tests, fix c-maybe colon quoting.
88754         * lib/quotearg.h: Improve documentation.
88755         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
88756         escapes when adding outer quotes.  When quoting trigraphs, use
88757         valid C notation.  When quoting NUL, omit extra characters if next
88758         character is not digit.  Alter prototype.
88759         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
88760         callers.
88761         * modules/quotearg-tests: New module.
88762         * tests/test-quotearg.c: New test.
88764 2008-02-07  Eric Blake  <ebb9@byu.net>
88766         Quotearg part 3: add flag to control outer quote elision.
88767         * lib/quotearg.h (c_maybe_quoting_style): New style.
88768         (enum quoting_flags): Better documentation of flags.
88769         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
88770         c-maybe style.
88771         (quotearg_buffer_restyled): Handle new flag to elide outer
88772         quotes.
88774         Quotearg part 2: add flag that can control NUL elision.
88775         * lib/quotearg.h (set_quoting_flags): New prototype.
88776         * lib/quotearg.c (struct quoting_options): Add flag field.
88777         (set_quoting_flags): New function.
88778         (quotearg_buffer_restyled): Add flags parameter.
88779         (quotearg_alloc_mem): Set the flag if length cannot be returned.
88780         (quotearg_n_options): Set the flag, since length cannot be
88781         returned.
88782         (quoting_options_from_style): Default flags correctly.
88784         Quotearg part 1: more wrappers, restore quotearg_char state.
88785         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
88786         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
88787         (quotearg_colon_mem): New wrappers.
88788         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
88789         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
88790         functions.
88791         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
88792         (quotearg_colon_mem): New functions.
88794 2008-02-11  Bruno Haible  <bruno@clisp.org>
88796         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
88797         library in the current directory: it does not work with parallel make.
88798         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
88800 2008-02-11  Bruno Haible  <bruno@clisp.org>
88802         * .gitattributes: New file.
88804 2008-02-11  Jim Meyering  <meyering@redhat.com>
88806         useless-if-before-free: Fix reversed exit values.
88807         * build-aux/useless-if-before-free: Use correct values
88808         for EXIT_MATCH and EXIT_NO_MATCH.
88810         * build-aux/useless-if-before-free: Close stdout carefully.
88812 2008-02-10  Bruno Haible  <bruno@clisp.org>
88814         New module 'git-merge-changelog'.
88815         * modules/git-merge-changelog: New file.
88816         * lib/git-merge-changelog.c: New file.
88818 2008-02-10  Jim Meyering  <meyering@redhat.com>
88820         useless-if-before-free: New option: --list (-l).
88822         useless-if-before-free: Don't exit immediately upon open failure.
88823         * build-aux/useless-if-before-free: Exit 2 for errors.
88824         Upon failure to open a file, don't exit immediately.
88825         Rather, just warn and continue with any remaining files.
88827 2008-02-10  Bruno Haible  <bruno@clisp.org>
88829         New abstract list operation 'node_set_value'.
88830         * lib/gl_list.h (gl_list_node_set_value): New function.
88831         (struct gl_list_implementation): New field node_set_value.
88832         * lib/gl_list.c (gl_list_node_set_value): New function.
88833         * lib/gl_array_list.c (gl_array_node_set_value): New function.
88834         (gl_array_list_implementation): Update.
88835         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
88836         (gl_carray_list_implementation): Update.
88837         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
88838         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
88839         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
88840         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
88841         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
88842         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
88843         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
88844         Update.
88845         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
88846         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
88847         (gl_sublist_list_implementation): Update.
88849 2008-02-10  Bruno Haible  <bruno@clisp.org>
88851         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
88852         Needed when ELEMENT is #defined to 'some_type *'.
88854 2008-02-10  Jim Meyering  <meyering@redhat.com>
88856         New script and module: useless-if-before-free
88857         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
88858         * build-aux/useless-if-before-free: New file.
88859         * modules/useless-if-before-free: New file.
88861         * build-aux/gitlog-to-changelog: Use committer date, not author date.
88863         xstrtol_error: Fix typo.
88864         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
88865         s/exit_failure/exit_status/.
88867 2008-02-09  Jim Meyering  <meyering@redhat.com>
88869         New script and module: gitlog-to-changelog
88870         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
88871         * modules/gitlog-to-changelog: New file.
88872         * build-aux/gitlog-to-changelog: New file.
88874 2008-02-08  Jim Meyering  <meyering@redhat.com>
88876         Avoid two "parameter unused" warnings.
88877         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
88878         Mark "st" as used.
88880         Use "git COMMAND", not "git-COMMAND".
88881         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
88882         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
88883         * build-aux/git-version-gen: Use "git status", not "git-status".
88885 2008-02-07  Bruno Haible  <bruno@clisp.org>
88887         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
88888         Avoids a crash on Windows Vista.
88889         Reported by Adam Strzelecki <ono@java.pl> via
88890         Simon Josefsson <simon@josefsson.org>.
88892 2008-02-06  Bruno Haible  <bruno@clisp.org>
88894         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
88895         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
88896         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
88897         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
88898         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
88899         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
88900         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
88901         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
88902         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
88903         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
88904         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
88905         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
88906         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
88907         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
88908         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
88909         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
88910         left-adjust flag.
88911         * tests/test-snprintf-posix.h (test_function): Likewise.
88912         * tests/test-sprintf-posix.h (test_function): Likewise.
88913         * tests/test-vasprintf-posix.c (test_function): Likewise.
88914         * doc/posix-functions/fprintf.texi: Update.
88915         * doc/posix-functions/printf.texi: Update.
88916         * doc/posix-functions/snprintf.texi: Update.
88917         * doc/posix-functions/sprintf.texi: Update.
88918         * doc/posix-functions/vfprintf.texi: Update.
88919         * doc/posix-functions/vprintf.texi: Update.
88920         * doc/posix-functions/vsnprintf.texi: Update.
88921         * doc/posix-functions/vsprintf.texi: Update.
88922         Reported by Peter Fales <psfales@alcatel-lucent.com>.
88924 2008-02-06  Bruno Haible  <bruno@clisp.org>
88926         Fix bug introduced on 2008-01-26.
88927         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
88929 2008-02-06  Bruno Haible  <bruno@clisp.org>
88931         Fix bug introduced on 2007-06-10.
88932         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
88933         !NEED_PRINTF_FLAG_ZERO.
88935 2008-02-05  Peter O'Gorman  <pogma@thewrittenword.com>
88937         getloadavg: use libperfstat on AIX5
88938         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
88940 2008-02-03  Bruno Haible  <bruno@clisp.org>
88942         * lib/diffseq.h: Add comments about required #includes.
88943         Reported by Michael Biggs <gnulib@doubleplum.net>.
88945 2008-02-01  Bruno Haible  <bruno@clisp.org>
88947         * users.txt: Add gnuit.
88949 2008-01-31  Bruno Haible  <bruno@clisp.org>
88951         * lib/md4.c (set_uint32): Mark as inline.
88952         * lib/md5.c (set_uint32): Likewise.
88953         * lib/sha1.c (set_uint32): Likewise.
88954         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
88955         * m4/md5.m4 (gl_MD5): Likewise.
88956         * m4/sha1.m4 (gl_SHA1): Likewise.
88958 2008-01-31  Jim Meyering  <meyering@redhat.com>
88960         Use "sizeof VAR", rather than a literal "4".
88961         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
88962         * lib/md4.c (md4_read_ctx): Likewise.
88963         * lib/sha1.c (sha1_read_ctx): Likewise.
88965 2008-01-31  Simon Josefsson  <simon@josefsson.org>
88967         * tests/test-sha1.c: New file, based on test-md5.c.
88969         * modules/crypto/sha1-tests: New file.
88971 2008-01-31  Simon Josefsson  <simon@josefsson.org>
88973         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
88975 2008-01-31  Jim Meyering  <meyering@redhat.com>
88977         Prefer "sizeof v" over the equivalent "4".
88978         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
88979         * lib/md5.c (set_uint32): Likewise.
88980         * lib/sha1.c (set_uint32): Likewise.
88982 2008-01-31  Simon Josefsson  <simon@josefsson.org>
88984         * lib/sha1.c (set_uint32): Mark function as static.
88986 2008-01-31  Simon Josefsson  <simon@josefsson.org>
88988         md2: clarify comments to say that alignment is not required.
88989         * lib/md2.h: Remove warning about alignment in comment.
88990         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
88991         never been required.
88993 2008-01-31  Simon Josefsson  <simon@josefsson.org>
88995         md4: adapt alignment constraint fix from sha1.
88996         * lib/md4.c (set_uint32): New function, from sha1.c
88997         (md4_read_ctx): Use it.
88998         (md4_finish_ctx): Doc fix.
88999         * lib/md4.h: Doc fix.
89001 2008-01-31  Simon Josefsson  <simon@josefsson.org>
89003         md5: adapt alignment constraint fix from sha1.
89004         * lib/md5.c (set_uint32): New function, from sha1.c
89005         (md5_read_ctx): Use it.
89006         (md5_finish_ctx): Doc fix.
89007         * lib/md5.h: Doc fix.
89009 2008-01-30  Peter Palfrader  <weasel@debian.org>
89011         sha1: remove the result buffer alignment constraint
89012         * lib/sha1.c (set_uint32): New function.
89013         (sha1_read_ctx): Rewrite to remove the result buffer alignment
89014         constraint.
89015         (sha1_finish_ctx): Remove comment warning about alignment constraint.
89016         * lib/sha1.h: Likewise.
89018 2008-01-30  Andreas Schwab  <schwab@suse.de>
89019             Bruno Haible  <bruno@clisp.org>
89021         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
89022         correct definition of LDBL_MIN_EXP.
89024 2008-01-30  Karl Berry  <karl@gnu.org>
89026         * config/srclist-update: try to preserve x bit on updates.
89027         * config/srclistvars.sh: update for karl.
89029 2008-01-29  Jim Meyering  <meyering@redhat.com>
89031         vasnprintf.c: Avoid warning about unused label
89032         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
89033         "overflow" label definition and associated code with the
89034         same cpp condition that guards the sole use of that label.
89036 2008-01-26  Bruno Haible  <bruno@clisp.org>
89038         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
89039         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
89040         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
89041         * lib/isnanl-nolibm.h (isnanl): Likewise.
89042         Reported by Paul Eggert <eggert@cs.ucla.edu>.
89044 2008-01-26  Bruno Haible  <bruno@clisp.org>
89046         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
89047         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
89049 2008-01-26  Bruno Haible  <bruno@clisp.org>
89051         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
89052         GCC >= 4.0 built-in.
89053         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
89055 2008-01-26  Bruno Haible  <bruno@clisp.org>
89057         Rename isnan, applicable to 'double' only, to isnand.
89058         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
89059         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
89060         (configure.ac): Update.
89061         (Include): Replace "isnan.h" with "isnand.h".
89062         * m4/isnand.m4: Renamed from m4/isnan.m4.
89063         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
89064         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
89065         instead of isnan.c.
89066         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
89067         instead of HAVE_ISNAN_IN_LIBC.
89068         (isnand): Renamed from isnan.
89069         * lib/isnand.c: New file.
89070         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
89071         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
89072         (Makefile.am): Update.
89073         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
89074         Include isnand.h instead of isnan.h.
89075         (main): Test isnand instead of isnan.
89076         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
89077         isnan-nolibm.
89078         * modules/frexp (Depends-on): Likewise.
89079         * modules/frexp-tests (Depends-on): Likewise.
89080         * modules/frexp-nolibm (Depends-on): Likewise.
89081         * modules/frexp-nolibm-tests (Depends-on): Likewise.
89082         * modules/isfinite (Depends-on): Likewise.
89083         * modules/round-tests (Depends-on): Likewise.
89084         * modules/signbit (Depends-on): Likewise.
89085         * modules/signbit-tests (Depends-on): Likewise.
89086         * modules/snprintf-posix (Depends-on): Likewise.
89087         * modules/sprintf-posix (Depends-on): Likewise.
89088         * modules/trunc-tests (Depends-on): Likewise.
89089         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
89090         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
89091         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
89092         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
89093         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
89094         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
89095         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
89096         * modules/vasnprintf-posix (Depends-on): Likewise.
89097         * modules/vasprintf-posix (Depends-on): Likewise.
89098         * modules/vfprintf-posix (Depends-on): Likewise.
89099         * modules/vsnprintf-posix (Depends-on): Likewise.
89100         * modules/vsprintf-posix (Depends-on): Likewise.
89101         * lib/frexp.c: Include isnand.h instead of isnan.h.
89102         (ISNAN): Set to isnand instead of isnan.
89103         * lib/isfinite.c: Include isnand.h instead of isnan.h.
89104         (gl_isfinited): Use isnand instead of isnan.
89105         * lib/signbitd.c: Include isnand.h instead of isnan.h.
89106         (gl_signbitd): Use isnand instead of isnan.
89107         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
89108         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
89109         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
89110         (main): Use isnand instead of isnan.
89111         * tests/test-round1.c: Include isnand.h.
89112         (main): Use isnand instead of isnan.
89113         * tests/test-round2.c: Include isnand.h instead of isnan.h.
89114         (ISNAN): Set to isnand instead of isnan.
89115         * tests/test-trunc1.c: Include isnand.h.
89116         (main): Use isnand instead of isnan.
89117         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
89118         (equal): Use isnand instead of isnan.
89119         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
89120         isnand-nolibm.
89121         * NEWS: Mention the change.
89123 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
89124             Bruno Haible  <bruno@clisp.org>
89126         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
89127         the GCC builtins for signbits are present and set
89128         REPLACE_SIGNBIT_USING_GCC if so.
89129         * lib/math.in.h (signbit): Define using GCC builtins if
89130         REPLACE_SIGNBIT_USING_GCC is set.
89131         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
89132         REPLACE_SIGNBIT_USING_GCC.
89133         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
89135 2008-01-25  Jim Meyering  <meyering@redhat.com>
89137         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
89138         * lib/poll.c: Include <config.h>, not "config.h".
89139         * tests/test-getaddrinfo.c: Likewise.
89141 2008-01-25  Simon Josefsson  <simon@josefsson.org>
89143         * modules/sockets-tests: New file.
89145 2008-01-24  Simon Josefsson  <simon@josefsson.org>
89147         * modules/sockets: New module, can be used to call WSA_Startup and
89148         WSA_Cleanup when needed.
89150         * lib/sockets.h, lib/sockets.c: New files.
89152         * m4/sockets.m4: New file.
89154         * tests/test-sockets.c: New file.
89156 2008-01-19  Bruno Haible  <bruno@clisp.org>
89158         * doc/posix-headers: Renamed from doc/headers.
89159         * doc/posix-functions: Renamed from doc/functions.
89160         * doc/gnulib.texi: Update.
89162 2008-01-19  Bruno Haible  <bruno@clisp.org>
89164         * doc/glibc-functions/strcasestr.texi: Include contents of
89165         doc/functions/strcasestr.texi, fixing the list of platforms.
89166         * doc/functions/strcasestr.texi: Remove file.
89168 2008-01-19  Bruno Haible  <bruno@clisp.org>
89170         * doc/glibc-functions/memmem.texi: Include contents of
89171         doc/functions/memmem.texi.
89172         * doc/functions/memmem.texi: Remove file.
89174 2008-01-18  Bruno Haible  <bruno@clisp.org>
89176         * doc/glibc-functions/*.texi: New files.
89177         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
89178         to use the new files.
89180 2008-01-17  Bruno Haible  <bruno@clisp.org>
89182         * tests/test-gethostname.c (main): Fix printf statement.
89184 2008-01-17  Simon Josefsson  <simon@josefsson.org>
89186         * modules/gethostname-tests: New file.
89188         * tests/test-gethostname.c: New file.
89190 2008-01-17  Simon Josefsson  <simon@josefsson.org>
89192         * lib/gethostname.c: Include string.h unconditionally, strncpy is
89193         used by the UNAME case.  Reported by Bruno Haible
89194         <bruno@clisp.org>.
89196 2008-01-17  Eric Blake  <ebb9@byu.net>
89198         Convert c-strcasestr to be more efficient.
89199         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
89200         (Depends-on): Add c-strcase, remove malloca, strnlen.
89201         * tests/test-c-strcasestr.c (main): Enhance test.
89202         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
89204 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
89206         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
89207         Use it in creating po/Makevars.
89209 2008-01-15  Simon Josefsson  <simon@josefsson.org>
89211         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
89212         Applications that requires it should initialize libgcrypt
89213         manually.
89215 2008-01-16  Simon Josefsson  <simon@josefsson.org>
89217         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
89219 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
89221         Fix problem with getdate on mingw32 reported by Simon Josefsson
89222         in <http://lists.gnu.org/r/bug-gnulib/2008-01/msg00192.html>.
89223         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
89224         tzname", when deciding whether to declare tzname.
89225         * lib/strftime.c (tzname): Likewise.
89227 2008-01-15  Bruno Haible  <bruno@clisp.org>
89229         Work around a MacOS X 10.5 bug in frexpl().
89230         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
89231         * doc/functions/frexpl.texi: Document the bug.
89232         Reported by Elias Pipping <pipping@gentoo.org>.
89234 2008-01-14  Eric Blake  <ebb9@byu.net>
89236         Touch up previous patch.
89237         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
89238         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
89240         Convert strcasestr module to use Two-Way algorithm.
89241         * modules/strcasestr-simple: New module, based on the old
89242         strcasestr, but with Two-Way rather than KMP.
89243         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
89244         * lib/string.in.h (rpl_strcasestr): Declare.
89245         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
89246         performance.
89247         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
89248         * modules/string (Makefile.am): Support strcasestr.
89249         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
89250         * modules/strcasestr-tests (Depends-on): Check for alarm.
89251         * tests/test-strcasestr.c: Augment test.
89252         * lib/str-two-way.h: Clean up stray macro.
89253         * NEWS: Document new module.
89254         * MODULES.html.sh (string handling): Likewise.
89255         * doc/functions/strcasestr.texi: New file.
89256         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
89257         here, since it is not a POSIX function.
89259 2008-01-14  Colin Watson  <cjwatson@debian.org>
89260             Bruno Haible  <bruno@clisp.org>
89262         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
89263         works fine; if not, set REPLACE_STRSIGNAL.
89264         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
89265         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
89266         REPLACE_STRSIGNAL.
89267         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
89268         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
89269         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
89271 2008-01-14  Bruno Haible  <bruno@clisp.org>
89273         * modules/strsignal (Include): Change to <string.h>.
89275 2008-01-14  Colin Watson  <cjwatson@debian.org>
89277         * modules/argp (Notice): Add a notice recommending to change
89278         XGETTEXT_OPTIONS.
89279         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
89281 2008-01-13  Colin Watson  <cjwatson@debian.org>
89283         * modules/strsignal-tests: New file.
89284         * tests/test-strsignal.c: New file.
89286         * lib/strsignal.c: New file, from glibc with modifications.
89287         * lib/siglist.h: New file, from glibc with modifications.
89288         * lib/string.in.h (strsignal): New declaration.
89289         * m4/strsignal.m4: New file.
89290         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
89291         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
89292         * modules/strsignal: New file.
89293         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
89294         HAVE_DECL_STRSIGNAL.
89296 2008-01-13  Bruno Haible  <bruno@clisp.org>
89298         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
89299         locale encoding is not ASCII. Needed for OpenBSD 4.0.
89300         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
89301         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
89303 2008-01-13  Bruno Haible  <bruno@clisp.org>
89305         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
89306         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
89307         * lib/argp.h (__attribute__): Likewise.
89308         * lib/c-stack.c (__attribute__): Likewise.
89309         * lib/error.h (__attribute__): Likewise.
89310         * lib/fts.c (__attribute__): Likewise.
89311         * lib/openat.h (__attribute__): Likewise.
89312         * lib/stdio.in.h (__attribute__): Likewise.
89313         * lib/string.in.h (__attribute__): Likewise.
89314         * lib/utimens.c (__attribute__): Likewise.
89315         * lib/vasnprintf.h (__attribute__): Likewise.
89316         * lib/xalloc.h (__attribute__): Likewise.
89317         * lib/xprintf.h (__attribute__): Likewise.
89318         * lib/xstrtol.h (__attribute__): Likewise.
89319         * lib/xvasprintf.h (__attribute__): Likewise.
89321 2008-01-12  Bruno Haible  <bruno@clisp.org>
89323         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
89324         * doc/glibc-headers/a.out.texi: New file.
89325         * doc/glibc-headers/aliases.texi: New file.
89326         * doc/glibc-headers/alloca.texi: New file.
89327         * doc/glibc-headers/ar.texi: New file.
89328         * doc/glibc-headers/argp.texi: New file.
89329         * doc/glibc-headers/argz.texi: New file.
89330         * doc/glibc-headers/byteswap.texi: New file.
89331         * doc/glibc-headers/crypt.texi: New file.
89332         * doc/glibc-headers/endian.texi: New file.
89333         * doc/glibc-headers/envz.texi: New file.
89334         * doc/glibc-headers/err.texi: New file.
89335         * doc/glibc-headers/error.texi: New file.
89336         * doc/glibc-headers/execinfo.texi: New file.
89337         * doc/glibc-headers/fpu_control.texi: New file.
89338         * doc/glibc-headers/fstab.texi: New file.
89339         * doc/glibc-headers/fts.texi: New file.
89340         * doc/glibc-headers/getopt.texi: New file.
89341         * doc/glibc-headers/ieee754.texi: New file.
89342         * doc/glibc-headers/ifaddrs.texi: New file.
89343         * doc/glibc-headers/libintl.texi: New file.
89344         * doc/glibc-headers/mcheck.texi: New file.
89345         * doc/glibc-headers/mntent.texi: New file.
89346         * doc/glibc-headers/obstack.texi: New file.
89347         * doc/glibc-headers/paths.texi: New file.
89348         * doc/glibc-headers/printf.texi: New file.
89349         * doc/glibc-headers/pty.texi: New file.
89350         * doc/glibc-headers/resolv.texi: New file.
89351         * doc/glibc-headers/shadow.texi: New file.
89352         * doc/glibc-headers/sysexits.texi: New file.
89353         * doc/glibc-headers/ttyent.texi: New file.
89355 2008-01-12  Jim Meyering  <meyering@redhat.com>
89357         announce-gen: emit Gnulib's git-based version string.
89358         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
89359         New option --gnulib-version=V, where V is expected to be
89360         the output of running git describe in the gnulib directory.
89361         (get_tool_versions): Request feedback on xdelta.  I suspect it's
89362         not useful, and plan to stop publishing an xdelta file with each
89363         coreutils release.
89365         * build-aux/announce-gen: Also check for lzma-compressed files.
89367 2008-01-11  Bruno Haible  <bruno@clisp.org>
89369         * tests/test-memmem.c (main): Increase maximum allowed time.
89370         * tests/test-strstr.c (main): Likewise.
89372 2008-01-11  Bruno Haible  <bruno@clisp.org>
89374         * doc/functions/memmem.texi: Add more precisions about platforms.
89375         * doc/functions/strstr.texi: Likewise.
89377 2008-01-10  Eric Blake  <ebb9@byu.net>
89379         * m4/strstr.m4: Delete cruft from copy-n-paste.
89380         Reported by Bruno Haible.
89382 2008-01-10  Bruno Haible  <bruno@clisp.org>
89384         Make c-strstr rely on strstr.
89385         * lib/c-strstr.c: Don't include str-kmp.h.
89386         (c_strstr): Define in terms of strstr.
89387         * modules/c-strstr (Files): Remove lib/str-kmp.h.
89388         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
89390 2008-01-10  Bruno Haible  <bruno@clisp.org>
89392         * doc/gnulib.texi (String Functions in C Locale): New section.
89393         * doc/c-ctype.texi: New file.
89394         * doc/c-strcase.texi: New file.
89395         * doc/c-strcaseeq.texi: New file.
89396         * doc/c-strcasestr.texi: New file.
89397         * doc/c-strstr.texi: New file.
89398         * doc/c-strtod.texi: New file.
89399         * doc/c-strtold.texi: New file.
89401 2008-01-10  Eric Blake  <ebb9@byu.net>
89403         * lib/relocatable.h: Fix a comment.
89405 2008-01-10  Eric Blake  <ebb9@byu.net>
89407         Share two-way algorithm.
89408         * lib/str-two-way.h: New file, merged from...
89409         * lib/memmem.c: ...here...
89410         * lib/strstr.c: ...and here.
89411         * modules/memmem (Files): Use it.
89412         * modules/strstr (Files): Likewise.
89414         Avoid quadratic strstr implementations.
89415         * lib/strstr.c: New file.
89416         * m4/strstr.m4: Likewise.
89417         * modules/strstr: Likewise.
89418         * modules/strstr-tests: Likewise.
89419         * tests/test-strstr.c: Likewise.
89420         * lib/string.in.h (rpl_strstr): Declare.
89421         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
89422         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
89423         * modules/string (Makefile.am): Likewise.
89424         * MODULES.html.sh (string handling): Mention new module.
89425         * doc/functions/strstr.texi (strstr): Document the bug.
89427 2008-01-10  Bruno Haible  <bruno@clisp.org>
89429         * lib/relocatable.h (relocate): State whether result is freshly
89430         allocated or not.
89431         * lib/relocatable.c (relocate): Return a freshly allocated string
89432         instead of a pointer to a privately held string.
89433         Reported by Sylvain Beucler <beuc@gnu.org>.
89435 2008-01-10  Colin Watson  <cjwatson@debian.org>
89437         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
89438         s/S_ISNLK/S_ISLNK/.
89440 2008-01-09  Bruno Haible  <bruno@clisp.org>
89442         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
89443         and other files.
89444         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
89445         if it's only a guess.
89446         * modules/memmem: Simplify by depending on memmem-simple.
89448 2008-01-09  Bruno Haible  <bruno@clisp.org>
89450         Work around OpenBSD 4.0 tdelete() bug.
89451         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
89452         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
89453         macros and don't redefine the enum values.
89454         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
89455         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
89456         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
89458 2008-01-09  Bruno Haible  <bruno@clisp.org>
89460         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
89461         (main): Don't perform the tests if setlocale did not install a UTF-8
89462         locale. Needed on OpenBSD 4.0.
89463         * modules/wcwidth-tests (Depends-on): Add localcharset.
89465 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
89467         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
89468         See <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00149.html>.
89469         * NEWS: announce this.
89470         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
89472 2008-01-09  Simon Josefsson  <simon@josefsson.org>
89473         and Eric Blake  <ebb9@byu.net>
89475         Add memmem-simple module.
89476         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
89477         (gl_FUNC_MEMMEM): Separate performance from presence checks.
89478         * modules/memmem-simple: New file.
89479         * modules/memmem (Description): Tweak.
89480         * MODULES.html.sh (string handling): Mention new module.
89481         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
89482         addressed by memmem-simple.
89483         * NEWS: Document the difference.
89485 2008-01-09  Eric Blake  <ebb9@byu.net>
89487         Give gcc some memmem optimization hints.
89488         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
89489         (strcasestr): Declare as pure.
89490         * modules/memmem (Maintainer): Claim my implementation.
89492 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89494         Support AIX 6.1 and higher.
89495         * build-aux/config.libpath: Likewise.
89496         * build-aux/config.rpath: Likewise.
89498 2008-01-08  Jim Meyering  <meyering@redhat.com>
89499             Bruno Haible  <bruno@clisp.org>
89501         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
89502         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
89503         Reported by Peter Fales in
89504         <http://lists.gnu.org/r/bug-coreutils/2007-12/msg00148.html>.
89506 2008-01-08  Bruno Haible  <bruno@clisp.org>
89508         * modules/unictype/category-of (Depends-on): Add
89509         unictype/category-none.
89510         * modules/unictype/category-and-tests (Depends-on): Add
89511         unictype/category-{L,N,Lu,Nd}.
89512         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
89513         * modules/unictype/category-or-tests (Depends-on): Add
89514         unictype/category-{L,N}.
89515         * modules/unictype/category-name-tests (Depends-on): Add
89516         unictype/category-{Z,Nl}.
89517         Reported by Simon Josefsson.
89519 2008-01-08  Bruno Haible  <bruno@clisp.org>
89521         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
89522         convention better.
89523         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
89524         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
89525         Reported by Peter Miller <millerp@canb.auug.org.au>.
89527 2008-01-08  Eric Blake  <ebb9@byu.net>
89529         Rewrite memmem to guarantee linear complexity without malloc.
89530         * lib/memmem.c (memmem): Use Two-Way rather than
89531         Knuth-Morris-Pratt, to allow O(1) space usage.
89532         (critical_factorization, two_way_short_needle)
89533         (two_way_long_needle): New functions.
89534         (knuth_morris_pratt): Delete.
89535         * modules/memmem (Depends-on): No longer need malloca or stdbool.
89536         Add stdint.
89537         * tests/test-memmem.c (main): Add tests for periodic needle and
89538         sublinear performance.
89539         * doc/functions/memmem.texi (memmem): Document other deficiencies
89540         in cygwin and older glibc.
89542 2008-01-08  Bruno Haible  <bruno@clisp.org>
89544         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
89545         augmentation.
89547 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
89549         Add a configure time option: --disable-acl.
89550         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
89551         AC_ARG_ENABLE(acl).
89553 2008-01-06  Simon Josefsson  <simon@josefsson.org>
89555         * tests/test-localename.c: Don't include obsolete "setenv.h".
89557         * modules/localename-tests (Depends-on): Need unsetenv.
89559 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89561         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
89563 2008-01-06  Colin Watson  <cjwatson@debian.org>
89565         * users.txt: Add man-db.
89567 2008-01-07  Bruno Haible  <bruno@clisp.org>
89569         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
89570         previous section name.
89572 2008-01-07  Bruno Haible  <bruno@clisp.org>
89574         * lib/progname.c (set_program_name): Don't strip off a leading
89575         "lt-" prefix outside a .libs directory.
89576         Suggested by Paul Eggert.
89578 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
89579             Bruno Haible  <bruno@clisp.org>
89581         Improve memory cleanup in 'relocatable' module.
89582         * lib/relocatable.h (compute_curr_prefix): Change return type to
89583         'char *'.
89584         * lib/relocatable.c (compute_curr_prefix): Change return type to
89585         'char *'. Free curr_installdir after use.
89586         (relocate): Free curr_prefix_better after use.
89587         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
89589 2008-01-01  Bruno Haible  <bruno@clisp.org>
89591         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
89592         failure on older glibc systems.
89593         Reported by Peter Fales <psfales@alcatel-lucent.com>.
89595 2008-01-05  Eric Blake  <ebb9@byu.net>
89597         Avoid quadratic system memmem.
89598         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
89599         Reported by Ralf Wildenhues.
89601         Fix memmem test for mingw.
89602         * modules/memmem-tests (configure.ac): Check for alarm.
89603         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
89604         it.
89605         * doc/functions/memmem.texi: New file.
89606         * doc/gnulib.texi (Function Substitutes): Add memmem.
89607         Reported by Bruno Haible.
89609 2008-01-04  Bruno Haible  <bruno@clisp.org>
89611         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
89612         Require gl_HEADER_STRINGS_H_DEFAULTS, not
89613         gl_HEADER_STRING_H_DEFAULTS.
89615 2008-01-04  Eric Blake  <ebb9@byu.net>
89617         Shorten duration of memmem test.
89618         * tests/test-memmem.c (main): Use alarm to declare failure if test
89619         is taking too long.
89620         Reported by Ralf Wildenhues.
89622 2007-12-21  Simon Josefsson  <simon@josefsson.org>
89624         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
89625         string, needed by strerror.
89627 2008-01-03  Colin Watson  <cjwatson@debian.org>
89628             Bruno Haible  <bruno@clisp.org>
89630         * doc/gnulib-tool.texi (Localization): New section.
89632 2008-01-02  Bruno Haible  <bruno@clisp.org>
89634         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
89635         variables to 'unsigned char *' type.
89636         Reported by Paul Eggert.
89638 2008-01-02  Jim Meyering  <jim@meyering.net>
89640         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
89642 2007-12-31  Jim Meyering  <jim@meyering.net>
89644         Avoid use of private FTS type name.
89645         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
89647 2007-12-30  Karl Berry  <karl@gnu.org>
89649         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
89650         work around defect in Texinfo and/or the standalone Info browser.
89652 2007-12-30  Bruno Haible  <bruno@clisp.org>
89654         Unify 5 copies of the KMP code.
89655         * lib/str-kmp.h: New file.
89656         * lib/c-strcasestr.c: Include str-kmp.h.
89657         (knuth_morris_pratt): Remove function.
89658         (c_strcasestr): Update.
89659         * lib/c-strstr.c: Include str-kmp.h.
89660         (knuth_morris_pratt): Remove function.
89661         (c_strcasestr): Update.
89662         * lib/mbscasestr.c: Include str-kmp.h.
89663         (knuth_morris_pratt_unibyte): Remove function.
89664         * lib/mbsstr.c: Include str-kmp.h.
89665         (knuth_morris_pratt_unibyte): Remove function.
89666         * lib/strcasestr.c: Include str-kmp.h.
89667         (knuth_morris_pratt): Remove function.
89668         (strcasestr): Update.
89669         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
89670         * modules/c-strstr (Files): Likewise.
89671         * modules/mbscasestr (Files): Likewise.
89672         * modules/mbsstr (Files): Likewise.
89673         * modules/strcasestr (Files): Likewise.
89674         Suggested by Paul Eggert.
89676 2007-12-30  Bruno Haible  <bruno@clisp.org>
89678         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
89679         defined.
89681 2007-12-30  Bruno Haible  <bruno@clisp.org>
89683         * lib/xmalloca.h: Include xalloc.h.
89684         (xnmalloca): New macro.
89686 2007-12-30  Bruno Haible  <bruno@clisp.org>
89688         * lib/malloca.h (nmalloca): New macro.
89689         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
89690         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
89691         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
89692         knuth_morris_pratt_multibyte): Likewise.
89693         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
89694         knuth_morris_pratt_multibyte): Likewise.
89695         * lib/memmem.c (knuth_morris_pratt): Likewise.
89696         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
89698 2007-12-25  Bruno Haible  <bruno@clisp.org>
89700         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
89701         * lib/glob.c: Don't include openat.h.
89702         (link_exists2_p): Add back the code that deals with the
89703         !GLOB_ALTDIRFUNC case.
89704         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
89705         let it do the filename concatenation.
89706         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
89707         * modules/glob (Depends-on): Remove openat.
89709 2007-12-31  Bruno Haible  <bruno@clisp.org>
89711         * modules/dirfd (License): Change to LGPLv2+.
89712         Approved by Jim Meyering.
89714 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
89716         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
89717         when multiplying M by sizeof (size_t).
89719 2007-12-10  Martin Lambers  <marlam@marlam.de>
89721         Override getpagesize on mingw.
89722         * lib/getpagesize.c: New file.
89723         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
89724         * modules/getpagesize (Files): Add lib/getpagesize.c.
89725         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
89726         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
89727         REPLACE_GETPAGESIZE.
89728         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
89730 2007-12-25  Bruno Haible  <bruno@clisp.org>
89732         * modules/localcharset (Notice): New field.
89733         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
89734         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
89736 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
89737             Bruno Haible  <bruno@clisp.org>
89739         Avoid using the syntax symbol() in formatted documentation.
89740         * MODULES.html.sh (func_module): When replacing symbol() with a
89741         hyperlink, remove the parentheses. Show an error if some remain.
89742         Recognize and render the '...' syntax.
89743         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
89744         Rework. Add paragraph about GCC's inlining.
89745         * doc/alloca.texi: Likewise.
89746         * doc/error.texi: Remove parentheses from symbol reference.
89747         * doc/gnulib-intro.texi: Likewise.
89748         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
89749         * modules/fnmatch (Description): Reword to say "the ... function".
89750         * modules/full-read (Description): Likewise.
89751         * modules/full-write (Description): Likewise.
89752         * modules/safe-read (Description): Likewise.
89753         * modules/safe-write (Description): Likewise.
89754         * modules/strchrnul (Description): Likewise.
89755         * modules/trim (Description): Likewise.
89756         * modules/error (Description): Remove parentheses from symbol
89757         references.
89758         * modules/verror (Description): Likewise.
89759         Reported by Karl Berry.
89761 2007-12-25  Bruno Haible  <bruno@clisp.org>
89763         Fixup after 2007-10-16 commit.
89764         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
89766 2007-12-24  Bruno Haible  <bruno@clisp.org>
89768         Make --enable-relocatable work with DESTDIR.
89769         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
89770         to compute installdir from destprog.
89771         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
89772         also set the RELOC_DESTDIR variable.
89773         Reported by Левашев Иван <octagram@bluebottle.com>.
89775 2007-12-24  Bruno Haible  <bruno@clisp.org>
89777         Fix link error due to xalloc_die().
89778         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
89779         of xreadlink.
89780         * lib/relocwrapper.c: Update comments.
89781         * build-aux/install-reloc: Remove xreadlink.c from file list.
89782         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
89783         xreadlink.c.
89784         Reported by Левашев Иван <octagram@bluebottle.com>.
89786 2007-12-24  Bruno Haible  <bruno@clisp.org>
89788         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
89789         * lib/setenv.h: Remove file.
89790         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
89791         lib/setenv.h.
89792         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
89793         (Depends-on): Add stdlib.
89794         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
89795         gl_FUNC_UNSETENV.
89796         (Include): Replace setenv.h with <stdlib.h>.
89797         * modules/unsetenv: New file.
89798         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
89799         * lib/unsetenv.c: Include <stdlib.h> first.
89800         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
89801         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
89802         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
89803         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
89804         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
89805         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
89806         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
89807         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
89808         * doc/functions/unsetenv.texi: Update.
89809         * modules/xsetenv (Depends-on): Add unsetenv.
89810         * modules/getdate (Depends-on): Likewise.
89811         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
89812         * lib/xsetenv.c: Don't include setenv.h.
89813         * lib/getdate.y: Likewise.
89814         * lib/relocwrapper.c: Likewise.
89815         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
89816         (Depends-on): Add stdlib.
89817         * NEWS: Mention the changes.
89818         Reported by Левашев Иван <octagram@bluebottle.com>.
89820 2007-12-23  Bruno Haible  <bruno@clisp.org>
89822         * lib/memmem.c (memmem): Use lowercase variable names. Tab
89823         indentation.
89825 2007-12-23  Bruno Haible  <bruno@clisp.org>
89827         * lib/c-strcasestr.c: Add more comments.
89828         * lib/c-strstr.c: Likewise.
89829         * lib/mbscasestr.c: Likewise.
89830         * lib/mbsstr.c: Likewise.
89831         * lib/strcasestr.c: Likewise.
89832         * lib/memmem.c: Likewise.
89834 2007-12-23  Bruno Haible  <bruno@clisp.org>
89836         * tests/test-memmem.c: Include <string.h> first.
89838 2007-12-22  Bruno Haible  <bruno@clisp.org>
89840         * gnulib-tool (func_create_testdir): Change $auxdir while generating
89841         the contents of $testsbase.
89842         Reported by Ralf Wildenhues.
89844 2007-12-22  Bruno Haible  <bruno@clisp.org>
89846         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
89847         two variables local_ldadd_before, local_ldadd_last.
89849 2007-12-20  Eric Blake  <ebb9@byu.net>
89851         Work around circular library issue when cross-compiling.
89852         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
89853         that progname.o does not need to pull in rpl_memcmp.
89855 2007-12-19  Eric Blake  <ebb9@byu.net>
89857         Fix memmem to avoid O(n^2) worst-case complexity.
89858         * lib/memmem.c (knuth_morris_pratt): New function.
89859         (memmem): Use it if first few naive iterations fail.
89860         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
89861         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
89862         * modules/memchr (License): Likewise.
89863         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
89864         malloca.
89865         * tests/test-memmem.c: Rewrite, borrowing ideas from
89866         test-mbsstr1.c; the old version wouldn't even compile!
89867         * modules/memmem-tests: New file.
89868         * lib/string.in.h (rpl_memmem): Add declaration.
89869         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
89870         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
89871         REPLACE_MEMMEM.
89873 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
89875         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
89876         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
89877         before any system include files, and undef after them all.  This
89878         should fix a problem on VMS reported by John E. Malmberg in
89879         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00118.html>.
89881 2007-12-17  Eric Blake  <ebb9@byu.net>
89883         Revert addition of verify, for BSD/OS.
89884         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
89885         can't handle large files, for the sake of obsolete platforms.
89886         * modules/fseeko (Depends-on): Remove verify.
89887         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
89888         * doc/functions/ftello.texi (ftello): Likewise.
89889         * doc/functions/fgetpos.texi (fgetpos): Likewise.
89890         Reported by Larry Jones.
89892 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
89894         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
89895         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
89897 2007-12-17  Jim Meyering  <meyering@redhat.com>
89899         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
89900         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
89901         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
89902         * modules/getcwd (Depends-on): Add openat.
89903         Reported by Petr Salinger.
89905 2007-12-17  Bruno Haible  <bruno@clisp.org>
89907         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
89908         avoid a segmentation fault of the configure test on x86_64 systems.
89910 2007-12-15  Jim Meyering  <meyering@redhat.com>
89912         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
89914 2007-12-13  Eric Blake  <ebb9@byu.net>
89916         Another fseek test.
89917         * tests/test-fseek.c (main): Also test ungetc handling.
89918         * tests/test-fseeko.c (main): Likewise.
89919         * modules/fseeko (Depends-on): Add verify.
89920         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
89921         large.
89922         Reported by Larry Jones.
89924         Fix fseeko on mingw.
89925         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
89926         seek.
89928         Beef up fseek tests.
89929         * tests/test-fseek.c (main): Also test eof handling.
89930         * tests/test-fseeko.c (main): Likewise.
89931         Reported by Larry Jones.
89933 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
89935         Fix fseeko on BSD-based platforms.
89936         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
89937         successful seek.
89939 2007-12-12  Eric Blake  <ebb9@byu.net>
89941         Allow circular dependency of separate libtests.a
89942         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
89943         when use_libtests.
89945 2007-12-11  Eric Blake  <ebb9@byu.net>
89947         Fix bug with -0.0L in previous patch.
89948         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
89949         * tests/test-isnan.c (main): Also test on zeroes.
89950         * tests/test-isnanf.c (main): Likewise.
89951         * tests/test-isnanl.h (main): Likewise.
89953         Detect pseudo-denormals on x86 even when cross-compiling.
89954         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
89955         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
89956         invalid bit patterns that happen to satisfy ==.
89958         Avoid link failures with separate libtests.a.
89959         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
89960         last, to satisfy circular dependencies.
89962 2007-12-11  Eric Blake  <ebb9@byu.net>
89963         and Bruno Haible  <bruno@clisp.org>
89965         Fix OpenBSD 4.0 <float.h> handling of long double.
89966         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
89967         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
89968         * doc/headers/float.texi (float.h): Document OpenBSD bug.
89970 2007-12-11  Jim Meyering  <meyering@redhat.com>
89972         * users.txt: Add libvirt.
89974         Support versions of autoconf prior to 2.59c.
89975         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
89976         if it is not already defined.
89978 2007-12-09  Bruno Haible  <bruno@clisp.org>
89980         Let 'gnulib-tool --import' collect sources needed for the tests in
89981         tests/ rather than in lib/.
89982         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
89983         argument. If true, add rules to generate libtests.a, and put libtests.a
89984         into $(LDADD). Consider source files in subdirectories and set
89985         uses_subdirs.
89986         (func_emit_initmacro_start, func_emit_initmacro_end,
89987         func_emit_initmacro_done): Pass all arguments explicitly.
89988         (func_import): Determine two module lists main_modules,
89989         testsrelated_modules. Determine use_libtests. Determine two variables
89990         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
89991         instead of just sed_transform_lib_file. Determine two variables
89992         main_files and testsrelated_files. Compute 'files' as the union of
89993         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
89994         func_add_or_update. In the generated gnulib-comp.m4, collect the
89995         object files for tests/ in different variables than those for lib/.
89996         Substitute LIBTESTS_LIBDEPS.
89997         (func_create_testdir): Combine the uses_subdirs results from
89998         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
90000 2007-12-09  Bruno Haible  <bruno@clisp.org>
90002         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
90003         the build-aux directory.
90005 2007-12-09  Bruno Haible  <bruno@clisp.org>
90007         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
90008         introduced on 2006-09-09.
90010 2007-12-07  Jim Meyering  <meyering@redhat.com>
90012         Let these macros work also with autoconf-2.59.
90013         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
90014         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
90015         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
90017 2007-12-06  Jim Meyering  <meyering@redhat.com>
90019         Avoid a configure-time syntax error in gl_FUNC_ACL.
90020         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
90021         function in each branch, before testing the cache variable.
90023 2007-12-04  Eric Blake  <ebb9@byu.net>
90025         Make scripts executable.
90026         * build-aux/config.guess: Add execute permissions.
90027         * build-aux/config.sub: Likewise.
90028         * build-aux/gendocs.sh: Likewise.
90030         Fix frexp on mingw.
90031         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
90032         cross-compiling.
90033         * doc/functions/frexp.texi (frexp): Document the bug.
90035         Make cygwin fseeko check more reliable.
90036         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
90037         version numbers, rather than unrelated feature check.
90038         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
90039         * doc/functions/ftello.texi (ftello): Likewise.
90040         Reported by Bruno Haible.
90042         * m4/strerror.m4: Bump version number.
90044 2007-12-03  Bruno Haible  <bruno@clisp.org>
90046         * doc/functions/mprotect.texi: Mention the mingw problem.
90048 2007-12-03  Eric Blake  <ebb9@byu.net>
90050         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
90051         REPLACE_STRERROR is initialized before this macro.
90053 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
90055         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
90056         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
90057         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
90058         put -lsec in even for programs other than 'ls'.  This fixes a problem
90059         for gettext reported by Bruno Haible in
90060         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00007.html>.
90061         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
90062         Add support for Solaris 10.  This isn't efficient, but should get the
90063         job done for now.
90065 2007-12-03  James Youngman  <jay@gnu.org>
90067         * doc/regexprops-generic.texi: change "an close-group" to "a
90068         close-group" and "illegal" to "not allowed".
90070 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90072         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
90073         pr_byname.h. Needed for the rare case when the maintainer has done
90074         "make maintainer-clean" in the source directory and then attempts a
90075         build outside the source directory.
90076         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
90077         scripts_byname.h.
90079 2007-12-02  Martin Lambers  <marlam@marlam.de>
90080             Bruno Haible  <bruno@clisp.org>
90082         * lib/getpagesize.h: Remove file.
90083         * lib/unistd.in.h: Include declaration of getpagesize here.
90084         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
90085         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
90086         HAVE_SYS_PARAM_H.
90087         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
90088         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
90089         * modules/getpagesize (Files): Remove lib/getpagesize.h.
90090         (Depends-on): Add unistd.
90091         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
90092         (Include): Use <unistd.h> instead of getpagesize.h.
90093         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
90094         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
90095         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
90096         gl_GETPAGESIZE invocation, already handled by module dependency.
90097         * lib/pagealign_alloc.c: Don't include getpagesize.h.
90099 2007-12-02  Bruno Haible  <bruno@clisp.org>
90101         * modules/strings-tests: New file.
90102         * tests/test-strings.c: New file.
90104         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
90105         * lib/strings.in.h: New file.
90106         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
90107         * m4/strings_h.m4: New file.
90108         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
90109         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
90110         * modules/strings: New file.
90111         * modules/string (Makefile.am): Update.
90112         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
90113         Reported by Karl Berry.
90115 2007-12-01  Eric Blake  <ebb9@byu.net>
90117         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
90118         accommodate fix in cygwin 1.5.25.
90120 2007-12-01  Jim Meyering  <meyering@redhat.com>
90122         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
90123         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
90124         that would inhibit utf8-optimization of a regexp containing line-
90125         or buffer-anchors, e.g., `^', `$'.
90127 2007-11-30  Bruno Haible  <bruno@clisp.org>
90129         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
90130         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
90131         glthread_recursive_lock_init.
90132         * lib/lock.c (glthread_recursive_lock_init)
90133         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
90134         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
90136 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
90138         New function qset_acl, like set_acl but with syscall semantics.
90139         * lib/acl.h (qset_acl): New decl.
90140         * lib/acl.c (qset_acl): New function.
90141         (set_acl): Use new function.  Use more-consistent diagnostics.
90143 2007-11-28  Jim Meyering  <meyering@redhat.com>
90145         * modules/physmem (License): Change from GPL to LGPLv2+.
90147 2007-11-26  Bruno Haible  <bruno@clisp.org>
90149         * lib/vasnprintf.c (decode_long_double): Don't abort if the
90150         'long double' type has excess precision.
90151         Reported by Jim Meyering in
90152         <http://lists.gnu.org/r/bug-gnulib/2007-11/msg00120.html>.
90154 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90156         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
90157         Sync from <http://gnu.org/licenses>.
90158         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
90159         with license text from same location.
90160         * doc/maintain.texi, doc/standards.texi:  Sync from
90161         <http://savannah.gnu.org/projects/gnustandards>.
90163 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
90164         and Jim Meyering  <meyering@redhat.com>
90166         Adjust getdate' grammar to accept a slightly more regular language.
90167         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
90168         Before, the former was rejected.
90169         * lib/getdate.y (digits_to_date_time): New function, factored
90170         out of ...
90171         (number): ...here.  Just call digits_to_date_time.
90172         (hybrid): New non-terminal to handle an <unsigned number,
90173         signed relative offset> sequence consistently.
90175 2007-11-18  Jim Meyering  <meyering@redhat.com>
90177         Pull my changes from coreutils:
90178         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
90179         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
90180         use of $gnulib_tool_option_extras, so that it's separated from the
90181         preceding argument.
90183         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
90184         * build-aux/bootstrap (cp_mark_as_generated): Create any required
90185         parent destination directories before copying a file into place.
90187 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
90189         bootstrap: work also with 4-argument variant of AC_INIT
90190         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
90192 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
90194         Port test-getaddrinfo to Solaris.
90195         Problem reported by Bruno Haible in
90196         <http://lists.gnu.org/r/bug-gnulib/2007-03/msg00171.html>.
90197         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
90198         explanation of setting 'hints'.
90199         Don't reject an implementation merely because it returns EAI_SERVICE.
90200         (EAI_SERVICE): Define to 0 if not defined.
90202 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
90204         The license of gnu-make and posix-shell is now "GPLed build tool".
90205         * modules/gnu-make (License): Likewise.
90206         * modules/posix-shell (License): Likewise.
90208         New module posix-shell, for determining a POSIX shell
90209         or perhaps something that is close enough to a POSIX shell.
90210         * m4/posix-shell.m4: New file.
90211         * modules/posix-shell: New file.
90213         * MODULES.html.sh: Mention new module.
90215         New module gnu-make, for determining whether we're using GNU Make.
90216         * m4/gnu-make.m4: New file.
90217         * modules/gnu-make: New file.
90218         * MODULES.html.sh: Mention new module.
90220 2007-11-14  Jim Meyering  <meyering@redhat.com>
90222         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
90223         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
90224         use this macro to create a function _definition_.
90225         Remove useless "#undef ARGMATCH_DIE".
90227 2007-11-14  Bruno Haible  <bruno@clisp.org>
90229         * lib/config.charset: Update for OpenBSD 4.1.
90230         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
90232 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
90234         Document 64-bit #if problems in stdint.texi.
90235         * doc/headers/stdint.texi (stdint.h): Mention problems with
90236         64-bit-#if, and how to work around them.
90238         Don't insist on 'long long int' support in the preprocessor.  It
90239         breaks too many things.  For example, PRIdMAX still uses a 'long
90240         long int' format with the latest Sun compiler, even though
90241         HAVE_LONG_LONG_INT isn't defined due to that compiler's
90242         preprocessor problem.  This causes the latest coreutils to dump
90243         core on Solaris 10 sparc with the Sun C compiler.
90244         Instead, fix the 2007-10-16 problem in a different way, by evaluating
90245         the troublesome expressions at configure-time, not at #if-time.
90246         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
90247         preprocessor.
90248         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
90249         compile-time C checks, done at 'configure'-time.
90250         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
90251         * modules/inttypes (Makefile): Substitute the new symbols that
90252         gl_INTTYPES_H now generates.
90253         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
90255 2007-11-12  Bruno Haible  <bruno@clisp.org>
90257         Tests for Unicode character classification functions.
90259         * modules/unictype/bidicategory-byname-tests: New file.
90260         * modules/unictype/bidicategory-name-tests: New file.
90261         * modules/unictype/bidicategory-of-tests: New file.
90262         * modules/unictype/bidicategory-test-tests: New file.
90263         * modules/unictype/block-list-tests: New file.
90264         * modules/unictype/block-of-tests: New file.
90265         * modules/unictype/block-test-tests: New file.
90266         * modules/unictype/category-C-tests: New file.
90267         * modules/unictype/category-Cc-tests: New file.
90268         * modules/unictype/category-Cf-tests: New file.
90269         * modules/unictype/category-Cn-tests: New file.
90270         * modules/unictype/category-Co-tests: New file.
90271         * modules/unictype/category-Cs-tests: New file.
90272         * modules/unictype/category-L-tests: New file.
90273         * modules/unictype/category-Ll-tests: New file.
90274         * modules/unictype/category-Lm-tests: New file.
90275         * modules/unictype/category-Lo-tests: New file.
90276         * modules/unictype/category-Lt-tests: New file.
90277         * modules/unictype/category-Lu-tests: New file.
90278         * modules/unictype/category-M-tests: New file.
90279         * modules/unictype/category-Mc-tests: New file.
90280         * modules/unictype/category-Me-tests: New file.
90281         * modules/unictype/category-Mn-tests: New file.
90282         * modules/unictype/category-N-tests: New file.
90283         * modules/unictype/category-Nd-tests: New file.
90284         * modules/unictype/category-Nl-tests: New file.
90285         * modules/unictype/category-No-tests: New file.
90286         * modules/unictype/category-P-tests: New file.
90287         * modules/unictype/category-Pc-tests: New file.
90288         * modules/unictype/category-Pd-tests: New file.
90289         * modules/unictype/category-Pe-tests: New file.
90290         * modules/unictype/category-Pf-tests: New file.
90291         * modules/unictype/category-Pi-tests: New file.
90292         * modules/unictype/category-Po-tests: New file.
90293         * modules/unictype/category-Ps-tests: New file.
90294         * modules/unictype/category-S-tests: New file.
90295         * modules/unictype/category-Sc-tests: New file.
90296         * modules/unictype/category-Sk-tests: New file.
90297         * modules/unictype/category-Sm-tests: New file.
90298         * modules/unictype/category-So-tests: New file.
90299         * modules/unictype/category-Z-tests: New file.
90300         * modules/unictype/category-Zl-tests: New file.
90301         * modules/unictype/category-Zp-tests: New file.
90302         * modules/unictype/category-Zs-tests: New file.
90303         * modules/unictype/category-and-not-tests: New file.
90304         * modules/unictype/category-and-tests: New file.
90305         * modules/unictype/category-byname-tests: New file.
90306         * modules/unictype/category-name-tests: New file.
90307         * modules/unictype/category-none-tests: New file.
90308         * modules/unictype/category-of-tests: New file.
90309         * modules/unictype/category-or-tests: New file.
90310         * modules/unictype/category-test-withtable-tests: New file.
90311         * modules/unictype/combining-class-tests: New file.
90312         * modules/unictype/ctype-alnum-tests: New file.
90313         * modules/unictype/ctype-alpha-tests: New file.
90314         * modules/unictype/ctype-blank-tests: New file.
90315         * modules/unictype/ctype-cntrl-tests: New file.
90316         * modules/unictype/ctype-digit-tests: New file.
90317         * modules/unictype/ctype-graph-tests: New file.
90318         * modules/unictype/ctype-lower-tests: New file.
90319         * modules/unictype/ctype-print-tests: New file.
90320         * modules/unictype/ctype-punct-tests: New file.
90321         * modules/unictype/ctype-space-tests: New file.
90322         * modules/unictype/ctype-upper-tests: New file.
90323         * modules/unictype/ctype-xdigit-tests: New file.
90324         * modules/unictype/decimal-digit-tests: New file.
90325         * modules/unictype/digit-tests: New file.
90326         * modules/unictype/mirror-tests: New file.
90327         * modules/unictype/numeric-tests: New file.
90328         * modules/unictype/property-alphabetic-tests: New file.
90329         * modules/unictype/property-ascii-hex-digit-tests: New file.
90330         * modules/unictype/property-bidi-arabic-digit-tests: New file.
90331         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
90332         * modules/unictype/property-bidi-block-separator-tests: New file.
90333         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
90334         * modules/unictype/property-bidi-common-separator-tests: New file.
90335         * modules/unictype/property-bidi-control-tests: New file.
90336         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
90337         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
90338         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
90339         * modules/unictype/property-bidi-european-digit-tests: New file.
90340         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
90341         * modules/unictype/property-bidi-left-to-right-tests: New file.
90342         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
90343         * modules/unictype/property-bidi-other-neutral-tests: New file.
90344         * modules/unictype/property-bidi-pdf-tests: New file.
90345         * modules/unictype/property-bidi-segment-separator-tests: New file.
90346         * modules/unictype/property-bidi-whitespace-tests: New file.
90347         * modules/unictype/property-byname-tests: New file.
90348         * modules/unictype/property-combining-tests: New file.
90349         * modules/unictype/property-composite-tests: New file.
90350         * modules/unictype/property-currency-symbol-tests: New file.
90351         * modules/unictype/property-dash-tests: New file.
90352         * modules/unictype/property-decimal-digit-tests: New file.
90353         * modules/unictype/property-default-ignorable-code-point-tests: New file.
90354         * modules/unictype/property-deprecated-tests: New file.
90355         * modules/unictype/property-diacritic-tests: New file.
90356         * modules/unictype/property-extender-tests: New file.
90357         * modules/unictype/property-format-control-tests: New file.
90358         * modules/unictype/property-grapheme-base-tests: New file.
90359         * modules/unictype/property-grapheme-extend-tests: New file.
90360         * modules/unictype/property-grapheme-link-tests: New file.
90361         * modules/unictype/property-hex-digit-tests: New file.
90362         * modules/unictype/property-hyphen-tests: New file.
90363         * modules/unictype/property-id-continue-tests: New file.
90364         * modules/unictype/property-id-start-tests: New file.
90365         * modules/unictype/property-ideographic-tests: New file.
90366         * modules/unictype/property-ids-binary-operator-tests: New file.
90367         * modules/unictype/property-ids-trinary-operator-tests: New file.
90368         * modules/unictype/property-ignorable-control-tests: New file.
90369         * modules/unictype/property-iso-control-tests: New file.
90370         * modules/unictype/property-join-control-tests: New file.
90371         * modules/unictype/property-left-of-pair-tests: New file.
90372         * modules/unictype/property-line-separator-tests: New file.
90373         * modules/unictype/property-logical-order-exception-tests: New file.
90374         * modules/unictype/property-lowercase-tests: New file.
90375         * modules/unictype/property-math-tests: New file.
90376         * modules/unictype/property-non-break-tests: New file.
90377         * modules/unictype/property-not-a-character-tests: New file.
90378         * modules/unictype/property-numeric-tests: New file.
90379         * modules/unictype/property-other-alphabetic-tests: New file.
90380         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
90381         * modules/unictype/property-other-grapheme-extend-tests: New file.
90382         * modules/unictype/property-other-id-continue-tests: New file.
90383         * modules/unictype/property-other-id-start-tests: New file.
90384         * modules/unictype/property-other-lowercase-tests: New file.
90385         * modules/unictype/property-other-math-tests: New file.
90386         * modules/unictype/property-other-uppercase-tests: New file.
90387         * modules/unictype/property-paired-punctuation-tests: New file.
90388         * modules/unictype/property-paragraph-separator-tests: New file.
90389         * modules/unictype/property-pattern-syntax-tests: New file.
90390         * modules/unictype/property-pattern-white-space-tests: New file.
90391         * modules/unictype/property-private-use-tests: New file.
90392         * modules/unictype/property-punctuation-tests: New file.
90393         * modules/unictype/property-quotation-mark-tests: New file.
90394         * modules/unictype/property-radical-tests: New file.
90395         * modules/unictype/property-sentence-terminal-tests: New file.
90396         * modules/unictype/property-soft-dotted-tests: New file.
90397         * modules/unictype/property-space-tests: New file.
90398         * modules/unictype/property-terminal-punctuation-tests: New file.
90399         * modules/unictype/property-test-tests: New file.
90400         * modules/unictype/property-titlecase-tests: New file.
90401         * modules/unictype/property-unassigned-code-value-tests: New file.
90402         * modules/unictype/property-unified-ideograph-tests: New file.
90403         * modules/unictype/property-uppercase-tests: New file.
90404         * modules/unictype/property-variation-selector-tests: New file.
90405         * modules/unictype/property-white-space-tests: New file.
90406         * modules/unictype/property-xid-continue-tests: New file.
90407         * modules/unictype/property-xid-start-tests: New file.
90408         * modules/unictype/property-zero-width-tests: New file.
90409         * modules/unictype/scripts-tests: New file.
90410         * modules/unictype/syntax-c-ident-tests: New file.
90411         * modules/unictype/syntax-c-whitespace-tests: New file.
90412         * modules/unictype/syntax-java-ident-tests: New file.
90413         * modules/unictype/syntax-java-whitespace-tests: New file.
90414         * tests/unictype/test-bidi_byname.c: New file.
90415         * tests/unictype/test-bidi_name.c: New file.
90416         * tests/unictype/test-bidi_of.c: New file.
90417         * tests/unictype/test-bidi_test.c: New file.
90418         * tests/unictype/test-block_list.c: New file.
90419         * tests/unictype/test-block_of.c: New file.
90420         * tests/unictype/test-block_test.c: New file.
90421         * tests/unictype/test-categ_and.c: New file.
90422         * tests/unictype/test-categ_and_not.c: New file.
90423         * tests/unictype/test-categ_byname.c: New file.
90424         * tests/unictype/test-categ_name.c: New file.
90425         * tests/unictype/test-categ_none.c: New file.
90426         * tests/unictype/test-categ_of.c: New file.
90427         * tests/unictype/test-categ_or.c: New file.
90428         * tests/unictype/test-categ_test_withtable.c: New file.
90429         * tests/unictype/test-combining.c: New file.
90430         * tests/unictype/test-decdigit.c: New file.
90431         * tests/unictype/test-digit.c: New file.
90432         * tests/unictype/test-mirror.c: New file.
90433         * tests/unictype/test-numeric.c: New file.
90434         * tests/unictype/test-pr_byname.c: New file.
90435         * tests/unictype/test-pr_test.c: New file.
90436         * tests/unictype/test-predicate-part1.h: New file.
90437         * tests/unictype/test-predicate-part2.h: New file.
90438         * tests/unictype/test-scripts.c: New file.
90439         * tests/unictype/test-sy_c_ident.c: New file.
90440         * tests/unictype/test-sy_java_ident.c: New file.
90442         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
90443         for Unicode 5.0.0.
90444         * tests/unictype/test-categ_Cc.c: Likewise.
90445         * tests/unictype/test-categ_Cf.c: Likewise.
90446         * tests/unictype/test-categ_Cn.c: Likewise.
90447         * tests/unictype/test-categ_Co.c: Likewise.
90448         * tests/unictype/test-categ_Cs.c: Likewise.
90449         * tests/unictype/test-categ_L.c: Likewise.
90450         * tests/unictype/test-categ_Ll.c: Likewise.
90451         * tests/unictype/test-categ_Lm.c: Likewise.
90452         * tests/unictype/test-categ_Lo.c: Likewise.
90453         * tests/unictype/test-categ_Lt.c: Likewise.
90454         * tests/unictype/test-categ_Lu.c: Likewise.
90455         * tests/unictype/test-categ_M.c: Likewise.
90456         * tests/unictype/test-categ_Mc.c: Likewise.
90457         * tests/unictype/test-categ_Me.c: Likewise.
90458         * tests/unictype/test-categ_Mn.c: Likewise.
90459         * tests/unictype/test-categ_N.c: Likewise.
90460         * tests/unictype/test-categ_Nd.c: Likewise.
90461         * tests/unictype/test-categ_Nl.c: Likewise.
90462         * tests/unictype/test-categ_No.c: Likewise.
90463         * tests/unictype/test-categ_P.c: Likewise.
90464         * tests/unictype/test-categ_Pc.c: Likewise.
90465         * tests/unictype/test-categ_Pd.c: Likewise.
90466         * tests/unictype/test-categ_Pe.c: Likewise.
90467         * tests/unictype/test-categ_Pf.c: Likewise.
90468         * tests/unictype/test-categ_Pi.c: Likewise.
90469         * tests/unictype/test-categ_Po.c: Likewise.
90470         * tests/unictype/test-categ_Ps.c: Likewise.
90471         * tests/unictype/test-categ_S.c: Likewise.
90472         * tests/unictype/test-categ_Sc.c: Likewise.
90473         * tests/unictype/test-categ_Sk.c: Likewise.
90474         * tests/unictype/test-categ_Sm.c: Likewise.
90475         * tests/unictype/test-categ_So.c: Likewise.
90476         * tests/unictype/test-categ_Z.c: Likewise.
90477         * tests/unictype/test-categ_Zl.c: Likewise.
90478         * tests/unictype/test-categ_Zp.c: Likewise.
90479         * tests/unictype/test-categ_Zs.c: Likewise.
90480         * tests/unictype/test-ctype_alnum.c: Likewise.
90481         * tests/unictype/test-ctype_alpha.c: Likewise.
90482         * tests/unictype/test-ctype_blank.c: Likewise.
90483         * tests/unictype/test-ctype_cntrl.c: Likewise.
90484         * tests/unictype/test-ctype_digit.c: Likewise.
90485         * tests/unictype/test-ctype_graph.c: Likewise.
90486         * tests/unictype/test-ctype_lower.c: Likewise.
90487         * tests/unictype/test-ctype_print.c: Likewise.
90488         * tests/unictype/test-ctype_punct.c: Likewise.
90489         * tests/unictype/test-ctype_space.c: Likewise.
90490         * tests/unictype/test-ctype_upper.c: Likewise.
90491         * tests/unictype/test-ctype_xdigit.c: Likewise.
90492         * tests/unictype/test-decdigit.h: Likewise.
90493         * tests/unictype/test-digit.h: Likewise.
90494         * tests/unictype/test-numeric.h: Likewise.
90495         * tests/unictype/test-pr_alphabetic.c: Likewise.
90496         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
90497         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
90498         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
90499         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
90500         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
90501         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
90502         * tests/unictype/test-pr_bidi_control.c: Likewise.
90503         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
90504         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
90505         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
90506         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
90507         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
90508         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
90509         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
90510         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
90511         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
90512         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
90513         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
90514         * tests/unictype/test-pr_combining.c: Likewise.
90515         * tests/unictype/test-pr_composite.c: Likewise.
90516         * tests/unictype/test-pr_currency_symbol.c: Likewise.
90517         * tests/unictype/test-pr_dash.c: Likewise.
90518         * tests/unictype/test-pr_decimal_digit.c: Likewise.
90519         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
90520         * tests/unictype/test-pr_deprecated.c: Likewise.
90521         * tests/unictype/test-pr_diacritic.c: Likewise.
90522         * tests/unictype/test-pr_extender.c: Likewise.
90523         * tests/unictype/test-pr_format_control.c: Likewise.
90524         * tests/unictype/test-pr_grapheme_base.c: Likewise.
90525         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
90526         * tests/unictype/test-pr_grapheme_link.c: Likewise.
90527         * tests/unictype/test-pr_hex_digit.c: Likewise.
90528         * tests/unictype/test-pr_hyphen.c: Likewise.
90529         * tests/unictype/test-pr_id_continue.c: Likewise.
90530         * tests/unictype/test-pr_id_start.c: Likewise.
90531         * tests/unictype/test-pr_ideographic.c: Likewise.
90532         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
90533         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
90534         * tests/unictype/test-pr_ignorable_control.c: Likewise.
90535         * tests/unictype/test-pr_iso_control.c: Likewise.
90536         * tests/unictype/test-pr_join_control.c: Likewise.
90537         * tests/unictype/test-pr_left_of_pair.c: Likewise.
90538         * tests/unictype/test-pr_line_separator.c: Likewise.
90539         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
90540         * tests/unictype/test-pr_lowercase.c: Likewise.
90541         * tests/unictype/test-pr_math.c: Likewise.
90542         * tests/unictype/test-pr_non_break.c: Likewise.
90543         * tests/unictype/test-pr_not_a_character.c: Likewise.
90544         * tests/unictype/test-pr_numeric.c: Likewise.
90545         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
90546         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
90547         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
90548         * tests/unictype/test-pr_other_id_continue.c: Likewise.
90549         * tests/unictype/test-pr_other_id_start.c: Likewise.
90550         * tests/unictype/test-pr_other_lowercase.c: Likewise.
90551         * tests/unictype/test-pr_other_math.c: Likewise.
90552         * tests/unictype/test-pr_other_uppercase.c: Likewise.
90553         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
90554         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
90555         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
90556         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
90557         * tests/unictype/test-pr_private_use.c: Likewise.
90558         * tests/unictype/test-pr_punctuation.c: Likewise.
90559         * tests/unictype/test-pr_quotation_mark.c: Likewise.
90560         * tests/unictype/test-pr_radical.c: Likewise.
90561         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
90562         * tests/unictype/test-pr_soft_dotted.c: Likewise.
90563         * tests/unictype/test-pr_space.c: Likewise.
90564         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
90565         * tests/unictype/test-pr_titlecase.c: Likewise.
90566         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
90567         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
90568         * tests/unictype/test-pr_uppercase.c: Likewise.
90569         * tests/unictype/test-pr_variation_selector.c: Likewise.
90570         * tests/unictype/test-pr_white_space.c: Likewise.
90571         * tests/unictype/test-pr_xid_continue.c: Likewise.
90572         * tests/unictype/test-pr_xid_start.c: Likewise.
90573         * tests/unictype/test-pr_zero_width.c: Likewise.
90574         * tests/unictype/test-sy_c_whitespace.c: Likewise.
90575         * tests/unictype/test-sy_java_whitespace.c: Likewise.
90577 2007-11-12  Bruno Haible  <bruno@clisp.org>
90579         Unicode character classification functions.
90580         * lib/unictype.h: New file.
90581         * modules/unictype/base: New file.
90582         * modules/unictype/category-L: New file.
90583         * modules/unictype/category-Lu: New file.
90584         * modules/unictype/category-Ll: New file.
90585         * modules/unictype/category-Lt: New file.
90586         * modules/unictype/category-Lm: New file.
90587         * modules/unictype/category-Lo: New file.
90588         * modules/unictype/category-M: New file.
90589         * modules/unictype/category-Mn: New file.
90590         * modules/unictype/category-Mc: New file.
90591         * modules/unictype/category-Me: New file.
90592         * modules/unictype/category-N: New file.
90593         * modules/unictype/category-Nd: New file.
90594         * modules/unictype/category-Nl: New file.
90595         * modules/unictype/category-No: New file.
90596         * modules/unictype/category-P: New file.
90597         * modules/unictype/category-Pc: New file.
90598         * modules/unictype/category-Pd: New file.
90599         * modules/unictype/category-Ps: New file.
90600         * modules/unictype/category-Pe: New file.
90601         * modules/unictype/category-Pi: New file.
90602         * modules/unictype/category-Pf: New file.
90603         * modules/unictype/category-Po: New file.
90604         * modules/unictype/category-S: New file.
90605         * modules/unictype/category-Sm: New file.
90606         * modules/unictype/category-Sc: New file.
90607         * modules/unictype/category-Sk: New file.
90608         * modules/unictype/category-So: New file.
90609         * modules/unictype/category-Z: New file.
90610         * modules/unictype/category-Zs: New file.
90611         * modules/unictype/category-Zl: New file.
90612         * modules/unictype/category-Zp: New file.
90613         * modules/unictype/category-C: New file.
90614         * modules/unictype/category-Cc: New file.
90615         * modules/unictype/category-Cf: New file.
90616         * modules/unictype/category-Cs: New file.
90617         * modules/unictype/category-Co: New file.
90618         * modules/unictype/category-Cn: New file.
90619         * modules/unictype/category-or: New file.
90620         * modules/unictype/category-of: New file.
90621         * modules/unictype/category-test: New file.
90622         * modules/unictype/category-test-withtable: New file.
90623         * modules/unictype/category-byname: New file.
90624         * modules/unictype/category-none: New file.
90625         * modules/unictype/category-and: New file.
90626         * modules/unictype/category-and-not: New file.
90627         * modules/unictype/category-name: New file.
90628         * modules/unictype/combining-class: New file.
90629         * modules/unictype/category-all: New file.
90630         * modules/unictype/bidicategory-all: New file.
90631         * modules/unictype/bidicategory-byname: New file.
90632         * modules/unictype/bidicategory-name: New file.
90633         * modules/unictype/bidicategory-of: New file.
90634         * modules/unictype/bidicategory-test: New file.
90635         * modules/unictype/decimal-digit: New file.
90636         * modules/unictype/digit: New file.
90637         * modules/unictype/numeric: New file.
90638         * modules/unictype/mirror: New file.
90639         * modules/unictype/property-white-space: New file.
90640         * modules/unictype/property-alphabetic: New file.
90641         * modules/unictype/property-other-alphabetic: New file.
90642         * modules/unictype/property-not-a-character: New file.
90643         * modules/unictype/property-default-ignorable-code-point: New file.
90644         * modules/unictype/property-other-default-ignorable-code-point: New
90645         file.
90646         * modules/unictype/property-deprecated: New file.
90647         * modules/unictype/property-logical-order-exception: New file.
90648         * modules/unictype/property-variation-selector: New file.
90649         * modules/unictype/property-private-use: New file.
90650         * modules/unictype/property-unassigned-code-value: New file.
90651         * modules/unictype/property-uppercase: New file.
90652         * modules/unictype/property-other-uppercase: New file.
90653         * modules/unictype/property-lowercase: New file.
90654         * modules/unictype/property-other-lowercase: New file.
90655         * modules/unictype/property-titlecase: New file.
90656         * modules/unictype/property-soft-dotted: New file.
90657         * modules/unictype/property-id-start: New file.
90658         * modules/unictype/property-other-id-start: New file.
90659         * modules/unictype/property-id-continue: New file.
90660         * modules/unictype/property-other-id-continue: New file.
90661         * modules/unictype/property-xid-start: New file.
90662         * modules/unictype/property-xid-continue: New file.
90663         * modules/unictype/property-pattern-white-space: New file.
90664         * modules/unictype/property-pattern-syntax: New file.
90665         * modules/unictype/property-join-control: New file.
90666         * modules/unictype/property-grapheme-base: New file.
90667         * modules/unictype/property-grapheme-extend: New file.
90668         * modules/unictype/property-other-grapheme-extend: New file.
90669         * modules/unictype/property-grapheme-link: New file.
90670         * modules/unictype/property-bidi-control: New file.
90671         * modules/unictype/property-bidi-left-to-right: New file.
90672         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
90673         * modules/unictype/property-bidi-arabic-right-to-left: New file.
90674         * modules/unictype/property-bidi-european-digit: New file.
90675         * modules/unictype/property-bidi-eur-num-separator: New file.
90676         * modules/unictype/property-bidi-eur-num-terminator: New file.
90677         * modules/unictype/property-bidi-arabic-digit: New file.
90678         * modules/unictype/property-bidi-common-separator: New file.
90679         * modules/unictype/property-bidi-block-separator: New file.
90680         * modules/unictype/property-bidi-segment-separator: New file.
90681         * modules/unictype/property-bidi-whitespace: New file.
90682         * modules/unictype/property-bidi-non-spacing-mark: New file.
90683         * modules/unictype/property-bidi-boundary-neutral: New file.
90684         * modules/unictype/property-bidi-pdf: New file.
90685         * modules/unictype/property-bidi-embedding-or-override: New file.
90686         * modules/unictype/property-bidi-other-neutral: New file.
90687         * modules/unictype/property-hex-digit: New file.
90688         * modules/unictype/property-ascii-hex-digit: New file.
90689         * modules/unictype/property-ideographic: New file.
90690         * modules/unictype/property-unified-ideograph: New file.
90691         * modules/unictype/property-radical: New file.
90692         * modules/unictype/property-ids-binary-operator: New file.
90693         * modules/unictype/property-ids-trinary-operator: New file.
90694         * modules/unictype/property-zero-width: New file.
90695         * modules/unictype/property-space: New file.
90696         * modules/unictype/property-non-break: New file.
90697         * modules/unictype/property-iso-control: New file.
90698         * modules/unictype/property-format-control: New file.
90699         * modules/unictype/property-dash: New file.
90700         * modules/unictype/property-hyphen: New file.
90701         * modules/unictype/property-punctuation: New file.
90702         * modules/unictype/property-line-separator: New file.
90703         * modules/unictype/property-paragraph-separator: New file.
90704         * modules/unictype/property-quotation-mark: New file.
90705         * modules/unictype/property-sentence-terminal: New file.
90706         * modules/unictype/property-terminal-punctuation: New file.
90707         * modules/unictype/property-currency-symbol: New file.
90708         * modules/unictype/property-math: New file.
90709         * modules/unictype/property-other-math: New file.
90710         * modules/unictype/property-paired-punctuation: New file.
90711         * modules/unictype/property-left-of-pair: New file.
90712         * modules/unictype/property-combining: New file.
90713         * modules/unictype/property-composite: New file.
90714         * modules/unictype/property-decimal-digit: New file.
90715         * modules/unictype/property-numeric: New file.
90716         * modules/unictype/property-diacritic: New file.
90717         * modules/unictype/property-extender: New file.
90718         * modules/unictype/property-ignorable-control: New file.
90719         * modules/unictype/property-test: New file.
90720         * modules/unictype/property-byname: New file.
90721         * modules/unictype/property-all: New file.
90722         * modules/unictype/scripts: New file.
90723         * modules/unictype/scripts-all: New file.
90724         * modules/unictype/block-of: New file.
90725         * modules/unictype/block-test: New file.
90726         * modules/unictype/block-list: New file.
90727         * modules/unictype/block-all: New file.
90728         * modules/unictype/syntax-c-whitespace: New file.
90729         * modules/unictype/syntax-java-whitespace: New file.
90730         * modules/unictype/syntax-c-ident: New file.
90731         * modules/unictype/syntax-java-ident: New file.
90732         * modules/unictype/ctype-alnum: New file.
90733         * modules/unictype/ctype-alpha: New file.
90734         * modules/unictype/ctype-cntrl: New file.
90735         * modules/unictype/ctype-digit: New file.
90736         * modules/unictype/ctype-graph: New file.
90737         * modules/unictype/ctype-lower: New file.
90738         * modules/unictype/ctype-print: New file.
90739         * modules/unictype/ctype-punct: New file.
90740         * modules/unictype/ctype-space: New file.
90741         * modules/unictype/ctype-upper: New file.
90742         * modules/unictype/ctype-xdigit: New file.
90743         * modules/unictype/ctype-blank: New file.
90744         * lib/unictype/bidi_byname.c: New file.
90745         * lib/unictype/bidi_name.c: New file.
90746         * lib/unictype/bidi_of.c: New file.
90747         * lib/unictype/bidi_test.c: New file.
90748         * lib/unictype/bitmap.h: New file.
90749         * lib/unictype/block_test.c: New file.
90750         * lib/unictype/blocks.c: New file.
90751         * lib/unictype/categ_C.c: New file.
90752         * lib/unictype/categ_Cc.c: New file.
90753         * lib/unictype/categ_Cf.c: New file.
90754         * lib/unictype/categ_Cn.c: New file.
90755         * lib/unictype/categ_Co.c: New file.
90756         * lib/unictype/categ_Cs.c: New file.
90757         * lib/unictype/categ_L.c: New file.
90758         * lib/unictype/categ_Ll.c: New file.
90759         * lib/unictype/categ_Lm.c: New file.
90760         * lib/unictype/categ_Lo.c: New file.
90761         * lib/unictype/categ_Lt.c: New file.
90762         * lib/unictype/categ_Lu.c: New file.
90763         * lib/unictype/categ_M.c: New file.
90764         * lib/unictype/categ_Mc.c: New file.
90765         * lib/unictype/categ_Me.c: New file.
90766         * lib/unictype/categ_Mn.c: New file.
90767         * lib/unictype/categ_N.c: New file.
90768         * lib/unictype/categ_Nd.c: New file.
90769         * lib/unictype/categ_Nl.c: New file.
90770         * lib/unictype/categ_No.c: New file.
90771         * lib/unictype/categ_P.c: New file.
90772         * lib/unictype/categ_Pc.c: New file.
90773         * lib/unictype/categ_Pd.c: New file.
90774         * lib/unictype/categ_Pe.c: New file.
90775         * lib/unictype/categ_Pf.c: New file.
90776         * lib/unictype/categ_Pi.c: New file.
90777         * lib/unictype/categ_Po.c: New file.
90778         * lib/unictype/categ_Ps.c: New file.
90779         * lib/unictype/categ_S.c: New file.
90780         * lib/unictype/categ_Sc.c: New file.
90781         * lib/unictype/categ_Sk.c: New file.
90782         * lib/unictype/categ_Sm.c: New file.
90783         * lib/unictype/categ_So.c: New file.
90784         * lib/unictype/categ_Z.c: New file.
90785         * lib/unictype/categ_Zl.c: New file.
90786         * lib/unictype/categ_Zp.c: New file.
90787         * lib/unictype/categ_Zs.c: New file.
90788         * lib/unictype/categ_and.c: New file.
90789         * lib/unictype/categ_and_not.c: New file.
90790         * lib/unictype/categ_byname.c: New file.
90791         * lib/unictype/categ_name.c: New file.
90792         * lib/unictype/categ_none.c: New file.
90793         * lib/unictype/categ_of.c: New file.
90794         * lib/unictype/categ_or.c: New file.
90795         * lib/unictype/categ_test.c: New file.
90796         * lib/unictype/combining.c: New file.
90797         * lib/unictype/ctype_alnum.c: New file.
90798         * lib/unictype/ctype_alpha.c: New file.
90799         * lib/unictype/ctype_blank.c: New file.
90800         * lib/unictype/ctype_cntrl.c: New file.
90801         * lib/unictype/ctype_digit.c: New file.
90802         * lib/unictype/ctype_graph.c: New file.
90803         * lib/unictype/ctype_lower.c: New file.
90804         * lib/unictype/ctype_print.c: New file.
90805         * lib/unictype/ctype_punct.c: New file.
90806         * lib/unictype/ctype_space.c: New file.
90807         * lib/unictype/ctype_upper.c: New file.
90808         * lib/unictype/ctype_xdigit.c: New file.
90809         * lib/unictype/decdigit.c: New file.
90810         * lib/unictype/digit.c: New file.
90811         * lib/unictype/identsyntaxmap.h: New file.
90812         * lib/unictype/mirror.c: New file.
90813         * lib/unictype/numeric.c: New file.
90814         * lib/unictype/pr_alphabetic.c: New file.
90815         * lib/unictype/pr_ascii_hex_digit.c: New file.
90816         * lib/unictype/pr_bidi_arabic_digit.c: New file.
90817         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
90818         * lib/unictype/pr_bidi_block_separator.c: New file.
90819         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
90820         * lib/unictype/pr_bidi_common_separator.c: New file.
90821         * lib/unictype/pr_bidi_control.c: New file.
90822         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
90823         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
90824         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
90825         * lib/unictype/pr_bidi_european_digit.c: New file.
90826         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
90827         * lib/unictype/pr_bidi_left_to_right.c: New file.
90828         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
90829         * lib/unictype/pr_bidi_other_neutral.c: New file.
90830         * lib/unictype/pr_bidi_pdf.c: New file.
90831         * lib/unictype/pr_bidi_segment_separator.c: New file.
90832         * lib/unictype/pr_bidi_whitespace.c: New file.
90833         * lib/unictype/pr_byname.c: New file.
90834         * lib/unictype/pr_byname.gperf: New file.
90835         * lib/unictype/pr_combining.c: New file.
90836         * lib/unictype/pr_composite.c: New file.
90837         * lib/unictype/pr_currency_symbol.c: New file.
90838         * lib/unictype/pr_dash.c: New file.
90839         * lib/unictype/pr_decimal_digit.c: New file.
90840         * lib/unictype/pr_default_ignorable_code_point.c: New file.
90841         * lib/unictype/pr_deprecated.c: New file.
90842         * lib/unictype/pr_diacritic.c: New file.
90843         * lib/unictype/pr_extender.c: New file.
90844         * lib/unictype/pr_format_control.c: New file.
90845         * lib/unictype/pr_grapheme_base.c: New file.
90846         * lib/unictype/pr_grapheme_extend.c: New file.
90847         * lib/unictype/pr_grapheme_link.c: New file.
90848         * lib/unictype/pr_hex_digit.c: New file.
90849         * lib/unictype/pr_hyphen.c: New file.
90850         * lib/unictype/pr_id_continue.c: New file.
90851         * lib/unictype/pr_id_start.c: New file.
90852         * lib/unictype/pr_ideographic.c: New file.
90853         * lib/unictype/pr_ids_binary_operator.c: New file.
90854         * lib/unictype/pr_ids_trinary_operator.c: New file.
90855         * lib/unictype/pr_ignorable_control.c: New file.
90856         * lib/unictype/pr_iso_control.c: New file.
90857         * lib/unictype/pr_join_control.c: New file.
90858         * lib/unictype/pr_left_of_pair.c: New file.
90859         * lib/unictype/pr_line_separator.c: New file.
90860         * lib/unictype/pr_logical_order_exception.c: New file.
90861         * lib/unictype/pr_lowercase.c: New file.
90862         * lib/unictype/pr_math.c: New file.
90863         * lib/unictype/pr_non_break.c: New file.
90864         * lib/unictype/pr_not_a_character.c: New file.
90865         * lib/unictype/pr_numeric.c: New file.
90866         * lib/unictype/pr_other_alphabetic.c: New file.
90867         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
90868         * lib/unictype/pr_other_grapheme_extend.c: New file.
90869         * lib/unictype/pr_other_id_continue.c: New file.
90870         * lib/unictype/pr_other_id_start.c: New file.
90871         * lib/unictype/pr_other_lowercase.c: New file.
90872         * lib/unictype/pr_other_math.c: New file.
90873         * lib/unictype/pr_other_uppercase.c: New file.
90874         * lib/unictype/pr_paired_punctuation.c: New file.
90875         * lib/unictype/pr_paragraph_separator.c: New file.
90876         * lib/unictype/pr_pattern_syntax.c: New file.
90877         * lib/unictype/pr_pattern_white_space.c: New file.
90878         * lib/unictype/pr_private_use.c: New file.
90879         * lib/unictype/pr_punctuation.c: New file.
90880         * lib/unictype/pr_quotation_mark.c: New file.
90881         * lib/unictype/pr_radical.c: New file.
90882         * lib/unictype/pr_sentence_terminal.c: New file.
90883         * lib/unictype/pr_soft_dotted.c: New file.
90884         * lib/unictype/pr_space.c: New file.
90885         * lib/unictype/pr_terminal_punctuation.c: New file.
90886         * lib/unictype/pr_test.c: New file.
90887         * lib/unictype/pr_titlecase.c: New file.
90888         * lib/unictype/pr_unassigned_code_value.c: New file.
90889         * lib/unictype/pr_unified_ideograph.c: New file.
90890         * lib/unictype/pr_uppercase.c: New file.
90891         * lib/unictype/pr_variation_selector.c: New file.
90892         * lib/unictype/pr_white_space.c: New file.
90893         * lib/unictype/pr_xid_continue.c: New file.
90894         * lib/unictype/pr_xid_start.c: New file.
90895         * lib/unictype/pr_zero_width.c: New file.
90896         * lib/unictype/scripts.c: New file.
90897         * lib/unictype/sy_c_ident.c: New file.
90898         * lib/unictype/sy_c_whitespace.c: New file.
90899         * lib/unictype/sy_java_ident.c: New file.
90900         * lib/unictype/sy_java_whitespace.c: New file.
90902         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
90903         Unicode 5.0.0.
90904         * lib/unictype/blocks.h: Likewise.
90905         * lib/unictype/categ_C.h: Likewise.
90906         * lib/unictype/categ_Cc.h: Likewise.
90907         * lib/unictype/categ_Cf.h: Likewise.
90908         * lib/unictype/categ_Cn.h: Likewise.
90909         * lib/unictype/categ_Co.h: Likewise.
90910         * lib/unictype/categ_Cs.h: Likewise.
90911         * lib/unictype/categ_L.h: Likewise.
90912         * lib/unictype/categ_Ll.h: Likewise.
90913         * lib/unictype/categ_Lm.h: Likewise.
90914         * lib/unictype/categ_Lo.h: Likewise.
90915         * lib/unictype/categ_Lt.h: Likewise.
90916         * lib/unictype/categ_Lu.h: Likewise.
90917         * lib/unictype/categ_M.h: Likewise.
90918         * lib/unictype/categ_Mc.h: Likewise.
90919         * lib/unictype/categ_Me.h: Likewise.
90920         * lib/unictype/categ_Mn.h: Likewise.
90921         * lib/unictype/categ_N.h: Likewise.
90922         * lib/unictype/categ_Nd.h: Likewise.
90923         * lib/unictype/categ_Nl.h: Likewise.
90924         * lib/unictype/categ_No.h: Likewise.
90925         * lib/unictype/categ_P.h: Likewise.
90926         * lib/unictype/categ_Pc.h: Likewise.
90927         * lib/unictype/categ_Pd.h: Likewise.
90928         * lib/unictype/categ_Pe.h: Likewise.
90929         * lib/unictype/categ_Pf.h: Likewise.
90930         * lib/unictype/categ_Pi.h: Likewise.
90931         * lib/unictype/categ_Po.h: Likewise.
90932         * lib/unictype/categ_Ps.h: Likewise.
90933         * lib/unictype/categ_S.h: Likewise.
90934         * lib/unictype/categ_Sc.h: Likewise.
90935         * lib/unictype/categ_Sk.h: Likewise.
90936         * lib/unictype/categ_Sm.h: Likewise.
90937         * lib/unictype/categ_So.h: Likewise.
90938         * lib/unictype/categ_Z.h: Likewise.
90939         * lib/unictype/categ_Zl.h: Likewise.
90940         * lib/unictype/categ_Zp.h: Likewise.
90941         * lib/unictype/categ_Zs.h: Likewise.
90942         * lib/unictype/categ_of.h: Likewise.
90943         * lib/unictype/combining.h: Likewise.
90944         * lib/unictype/ctype_alnum.h: Likewise.
90945         * lib/unictype/ctype_alpha.h: Likewise.
90946         * lib/unictype/ctype_blank.h: Likewise.
90947         * lib/unictype/ctype_cntrl.h: Likewise.
90948         * lib/unictype/ctype_digit.h: Likewise.
90949         * lib/unictype/ctype_graph.h: Likewise.
90950         * lib/unictype/ctype_lower.h: Likewise.
90951         * lib/unictype/ctype_print.h: Likewise.
90952         * lib/unictype/ctype_punct.h: Likewise.
90953         * lib/unictype/ctype_space.h: Likewise.
90954         * lib/unictype/ctype_upper.h: Likewise.
90955         * lib/unictype/ctype_xdigit.h: Likewise.
90956         * lib/unictype/decdigit.h: Likewise.
90957         * lib/unictype/digit.h: Likewise.
90958         * lib/unictype/mirror.h: Likewise.
90959         * lib/unictype/numeric.h: Likewise.
90960         * lib/unictype/pr_alphabetic.h: Likewise.
90961         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
90962         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
90963         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
90964         * lib/unictype/pr_bidi_block_separator.h: Likewise.
90965         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
90966         * lib/unictype/pr_bidi_common_separator.h: Likewise.
90967         * lib/unictype/pr_bidi_control.h: Likewise.
90968         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
90969         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
90970         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
90971         * lib/unictype/pr_bidi_european_digit.h: Likewise.
90972         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
90973         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
90974         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
90975         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
90976         * lib/unictype/pr_bidi_pdf.h: Likewise.
90977         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
90978         * lib/unictype/pr_bidi_whitespace.h: Likewise.
90979         * lib/unictype/pr_combining.h: Likewise.
90980         * lib/unictype/pr_composite.h: Likewise.
90981         * lib/unictype/pr_currency_symbol.h: Likewise.
90982         * lib/unictype/pr_dash.h: Likewise.
90983         * lib/unictype/pr_decimal_digit.h: Likewise.
90984         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
90985         * lib/unictype/pr_deprecated.h: Likewise.
90986         * lib/unictype/pr_diacritic.h: Likewise.
90987         * lib/unictype/pr_extender.h: Likewise.
90988         * lib/unictype/pr_format_control.h: Likewise.
90989         * lib/unictype/pr_grapheme_base.h: Likewise.
90990         * lib/unictype/pr_grapheme_extend.h: Likewise.
90991         * lib/unictype/pr_grapheme_link.h: Likewise.
90992         * lib/unictype/pr_hex_digit.h: Likewise.
90993         * lib/unictype/pr_hyphen.h: Likewise.
90994         * lib/unictype/pr_id_continue.h: Likewise.
90995         * lib/unictype/pr_id_start.h: Likewise.
90996         * lib/unictype/pr_ideographic.h: Likewise.
90997         * lib/unictype/pr_ids_binary_operator.h: Likewise.
90998         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
90999         * lib/unictype/pr_ignorable_control.h: Likewise.
91000         * lib/unictype/pr_iso_control.h: Likewise.
91001         * lib/unictype/pr_join_control.h: Likewise.
91002         * lib/unictype/pr_left_of_pair.h: Likewise.
91003         * lib/unictype/pr_line_separator.h: Likewise.
91004         * lib/unictype/pr_logical_order_exception.h: Likewise.
91005         * lib/unictype/pr_lowercase.h: Likewise.
91006         * lib/unictype/pr_math.h: Likewise.
91007         * lib/unictype/pr_non_break.h: Likewise.
91008         * lib/unictype/pr_not_a_character.h: Likewise.
91009         * lib/unictype/pr_numeric.h: Likewise.
91010         * lib/unictype/pr_other_alphabetic.h: Likewise.
91011         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
91012         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
91013         * lib/unictype/pr_other_id_continue.h: Likewise.
91014         * lib/unictype/pr_other_id_start.h: Likewise.
91015         * lib/unictype/pr_other_lowercase.h: Likewise.
91016         * lib/unictype/pr_other_math.h: Likewise.
91017         * lib/unictype/pr_other_uppercase.h: Likewise.
91018         * lib/unictype/pr_paired_punctuation.h: Likewise.
91019         * lib/unictype/pr_paragraph_separator.h: Likewise.
91020         * lib/unictype/pr_pattern_syntax.h: Likewise.
91021         * lib/unictype/pr_pattern_white_space.h: Likewise.
91022         * lib/unictype/pr_private_use.h: Likewise.
91023         * lib/unictype/pr_punctuation.h: Likewise.
91024         * lib/unictype/pr_quotation_mark.h: Likewise.
91025         * lib/unictype/pr_radical.h: Likewise.
91026         * lib/unictype/pr_sentence_terminal.h: Likewise.
91027         * lib/unictype/pr_soft_dotted.h: Likewise.
91028         * lib/unictype/pr_space.h: Likewise.
91029         * lib/unictype/pr_terminal_punctuation.h: Likewise.
91030         * lib/unictype/pr_titlecase.h: Likewise.
91031         * lib/unictype/pr_unassigned_code_value.h: Likewise.
91032         * lib/unictype/pr_unified_ideograph.h: Likewise.
91033         * lib/unictype/pr_uppercase.h: Likewise.
91034         * lib/unictype/pr_variation_selector.h: Likewise.
91035         * lib/unictype/pr_white_space.h: Likewise.
91036         * lib/unictype/pr_xid_continue.h: Likewise.
91037         * lib/unictype/pr_xid_start.h: Likewise.
91038         * lib/unictype/pr_zero_width.h: Likewise.
91039         * lib/unictype/scripts.h: Likewise.
91040         * lib/unictype/scripts_byname.gperf: Likewise.
91041         * lib/unictype/sy_c_ident.h: Likewise.
91042         * lib/unictype/sy_c_whitespace.h: Likewise.
91043         * lib/unictype/sy_java_ident.h: Likewise.
91044         * lib/unictype/sy_java_whitespace.h: Likewise.
91046         * lib/unictype/Makefile: New file.
91047         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
91048         glibc.
91049         * lib/unictype/3level.h: New file, copied from glibc.
91050         * lib/unictype/3levelbit.h: New file.
91052 2007-11-11  Bruno Haible  <bruno@clisp.org>
91054         * modules/gperf: New file.
91055         * modules/iconv_open (Depends-on): Add it.
91056         (Makefile.am): Remove the GPERF definition.
91058 2007-11-11  Bruno Haible  <bruno@clisp.org>
91060         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
91061         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
91063 2007-11-11  Bruno Haible  <bruno@clisp.org>
91065         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
91066         (usage): Remove function.
91068 2007-11-11  Bruno Haible  <bruno@clisp.org>
91070         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
91071         gl_FUNC_CEILF_LIBS.
91072         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
91073         gl_FUNC_CEIL_LIBS.
91074         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
91075         gl_FUNC_CEILL_LIBS.
91076         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
91077         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
91078         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
91080 2007-11-11  Bruno Haible  <bruno@clisp.org>
91082         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
91083         roundf were declared but do not exist on functions.
91084         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
91085         roundl were declared but do not exist on functions.
91086         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
91087         HAVE_FLOORL_AND_CEILL, respectively.
91088         Needed for Sun C on Solaris 10.
91090 2007-11-11  Bruno Haible  <bruno@clisp.org>
91092         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
91093         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
91094         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
91095         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
91096         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
91097         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
91098         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
91099         HAVE_DECL_ROUNDF.
91100         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
91101         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
91102         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
91103         of HAVE_DECL_ROUND*.
91104         * modules/math (Makefile.am): Update.
91106 2007-11-10  Bruno Haible  <bruno@clisp.org>
91108         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
91109         ptrdiff_t as m4/intl.m4.
91111 2007-11-10  Jim Meyering  <meyering@redhat.com>
91113         Avoid link failure for the argmatch test.
91114         * tests/test-argmatch.c (usage): Define function to avoid a link
91115         failure: argmatch_die requires a usage function.
91117 2007-11-09  Bruno Haible  <bruno@clisp.org>
91119         * doc/functions/snprintf.texi: Mention BeOS deficiency.
91120         * doc/functions/vsnprintf.texi: Likewise.
91121         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
91122         with a size argument < 2.
91124 2007-11-09  Bruno Haible  <bruno@clisp.org>
91126         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
91127         buffer. Fixes an inefficiency introduced on 2007-11-03.
91129 2007-11-09  Bruno Haible  <bruno@clisp.org>
91131         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
91132         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
91134 2007-11-08  Jim Meyering  <meyering@redhat.com>
91136         Change cache variable name prefix "jm_" to "gl_" everywhere.
91137         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
91138         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
91139         * m4/uptime.m4: s/gl_/jm_/
91141 2007-11-07  Bruno Haible  <bruno@clisp.org>
91143         Update to GNU gettext 0.17.
91144         * m4/intl.m4: Update to GNU gettext 0.17.
91145         * m4/po.m4: Likewise.
91146         * modules/gettext (Files): Remove m4/ulonglong.m4.
91147         (configure.ac): Require gettext infrastructure from version 0.17.
91149 2007-11-06  Bruno Haible  <bruno@clisp.org>
91151         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
91152         symbolic values are not defined in a public header.
91153         * lib/freadable.c (freadable) [QNX]: Likewise.
91154         * lib/freadahead.c (freadahead) [QNX]: Likewise.
91155         * lib/freading.c (freading) [QNX]: Likewise.
91156         * lib/fseterr.c (fseterr) [QNX]: Likewise.
91157         * lib/fwritable.c (fwritable) [QNX]: Likewise.
91158         * lib/fwriting.c (fwriting) [QNX]: Likewise.
91159         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
91160         Reported by Alain Magloire.
91162         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
91164 2007-11-05  Bruno Haible  <bruno@clisp.org>
91166         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
91167         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
91168         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
91169         Reported by Eric Blake.
91171 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91172             Bruno Haible  <bruno@clisp.org>
91174         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
91175         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
91176         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
91177         (malloc): Undefine also before including <stdlib.h>.
91178         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
91179         Needed on OSF/1 4.0.
91181 2007-11-05  Jim Meyering  <meyering@redhat.com>
91183         git-version-gen: sync from coreutils.
91184         * build-aux/git-version-gen: Add comments.
91185         Change the first '-' to '.' in the snapshot version string,
91186         e.g., 6.9-377-08144 -> 6.9.377-08144
91187         Remove first parameter.
91188         Don't declare a version "-dirty" merely because a time
91189         stamp has changed.
91191 2007-11-04  Bruno Haible  <bruno@clisp.org>
91193         * lib/lock.h: Protect all macro definitions containing an 'if'
91194         statement through a "do { ... } while (0)".
91195         * lib/tls.h: Likewise.
91197 2007-11-04  Bruno Haible  <bruno@clisp.org>
91199         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
91201 2007-11-04  Bruno Haible  <bruno@clisp.org>
91203         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
91204         * modules/fprintf-posix (Depends-on): Add nocrash.
91205         * modules/snprintf-posix (Depends-on): Likewise.
91206         * modules/sprintf-posix (Depends-on): Likewise.
91207         * modules/vasnprintf-posix (Depends-on): Likewise.
91208         * modules/vasprintf-posix (Depends-on): Likewise.
91209         * modules/vfprintf-posix (Depends-on): Likewise.
91210         * modules/vsnprintf-posix (Depends-on): Likewise.
91211         * modules/vsprintf-posix (Depends-on): Likewise.
91212         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
91213         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
91214         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
91215         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
91216         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
91217         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
91218         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
91220 2007-11-04  Bruno Haible  <bruno@clisp.org>
91222         * modules/nocrash: New file.
91223         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
91224         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
91226 2007-11-04  Bruno Haible  <bruno@clisp.org>
91228         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
91229         precision handling.
91230         * tests/test-vasprintf-posix.c (test_function): Likewise.
91231         * tests/test-snprintf-posix.h (test_function): Likewise.
91232         * tests/test-sprintf-posix.h (test_function): Likewise.
91234         Fix *printf behaviour for large precisions on mingw and BeOS.
91235         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
91236         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
91237         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
91238         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
91239         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
91240         gl_PRINTF_PRECISION and test its result. Invoke
91241         gl_PREREQ_VASNPRINTF_PRECISION.
91242         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
91243         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
91244         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
91245         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
91246         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
91247         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
91248         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
91249         * doc/functions/fprintf.texi: Update.
91250         * doc/functions/printf.texi: Update.
91251         * doc/functions/snprintf.texi: Update.
91252         * doc/functions/sprintf.texi: Update.
91253         * doc/functions/vfprintf.texi: Update.
91254         * doc/functions/vprintf.texi: Update.
91255         * doc/functions/vsnprintf.texi: Update.
91256         * doc/functions/vsprintf.texi: Update.
91258 2007-11-04  Bruno Haible  <bruno@clisp.org>
91260         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
91262 2007-11-04  Bruno Haible  <bruno@clisp.org>
91264         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
91265         Reported by Sylvain Beucler <beuc@gnu.org>.
91267 2007-11-03  Bruno Haible  <bruno@clisp.org>
91269         * tests/test-fprintf-posix2.sh: New file.
91270         * tests/test-fprintf-posix2.c: New file.
91271         * modules/fprintf-posix-tests (Files): Add them.
91272         (TESTS): Add test-fprintf-posix2.sh.
91273         (configure.ac): Check for getrlimit and setrlimit.
91274         (check_PROGRAMS): Add test-fprintf-posix2.
91276         * tests/test-printf-posix2.sh: New file.
91277         * tests/test-printf-posix2.c: New file.
91278         * modules/printf-posix-tests (Files): Add them.
91279         (TESTS): Add test-printf-posix2.sh.
91280         (configure.ac): Check for getrlimit and setrlimit.
91281         (check_PROGRAMS): Add test-printf-posix2.
91283         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
91284         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
91285         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
91286         (decode_double): New function, copied from decode_long_double.
91287         (scale10_round_decimal_decoded): New function, extracted from
91288         scale10_round_decimal_long_double.
91289         (scale10_round_decimal_long_double): Use it.
91290         (scale10_round_decimal_double): New function.
91291         (floorlog10): New function.
91292         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
91293         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
91294         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
91295         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
91296         gl_PRINTF_ENOMEM and test its result. Invoke
91297         gl_PREREQ_VASNPRINTF_ENOMEM.
91298         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
91299         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
91300         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
91301         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
91302         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
91303         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
91304         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
91305         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
91306         * modules/snprintf-posix (Depends-on): Likewise.
91307         * modules/sprintf-posix (Depends-on): Likewise.
91308         * modules/vasnprintf-posix (Depends-on): Likewise.
91309         * modules/vasprintf-posix (Depends-on): Likewise.
91310         * modules/vfprintf-posix (Depends-on): Likewise.
91311         * modules/vsnprintf-posix (Depends-on): Likewise.
91312         * modules/vsprintf-posix (Depends-on): Likewise.
91313         * doc/functions/fprintf.texi: Update.
91314         * doc/functions/printf.texi: Update.
91315         * doc/functions/snprintf.texi: Update.
91316         * doc/functions/sprintf.texi: Update.
91317         * doc/functions/vfprintf.texi: Update.
91318         * doc/functions/vprintf.texi: Update.
91319         * doc/functions/vsnprintf.texi: Update.
91320         * doc/functions/vsprintf.texi: Update.
91322 2007-11-03  Bruno Haible  <bruno@clisp.org>
91324         * modules/frexp-nolibm-tests: New file.
91326         * modules/frexp-nolibm: New file.
91327         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
91329 2007-11-03  Bruno Haible  <bruno@clisp.org>
91331         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
91332         value is C99 compliant.
91333         Needed for OSF/1 5.1.
91335 2007-11-03  Bruno Haible  <bruno@clisp.org>
91337         Fix out-of-memory handling of vasnprintf.
91338         * lib/printf-parse.c: Include <errno.h>.
91339         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
91340         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
91341         is already set.
91343 2007-11-02  Eric Blake  <ebb9@byu.net>
91345         Fix tests on cygwin.
91346         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
91348 2007-11-01  Bruno Haible  <bruno@clisp.org>
91350         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
91351         warning.
91352         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
91353         needed for POSIX compatibility.
91355 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
91357         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
91358         for compatibility with GNU.
91360 2007-11-01  Bruno Haible  <bruno@clisp.org>
91362         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
91363         (putenv): Renamed from rpl_putenv. Change argument type from
91364         'const char *' to 'char *'.
91365         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
91366         of defining putenv in config.h, just set REPLACE_PUTENV.
91367         * modules/putenv (Depends-on): Add stdlib.
91368         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
91369         (Include): Use <stdlib.h>.
91370         * lib/stdlib.in.h (putenv): New declaration.
91371         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
91372         REPLACE_PUTENV.
91373         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
91374         REPLACE_PUTENV.
91375         Needed for MacOS X 10.5.0.
91376         Reported by Peter O'Gorman <peter@pogma.com>.
91378 2007-11-01  Jim Meyering  <meyering@redhat.com>
91380         Treat an empty date string exactly like "0".
91381         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
91382         if the remaining date string (to be parsed) is empty, use "0".
91383         Reported by Mischa Molhoek and discussed in this thread:
91384         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
91386 2007-10-31  Bruno Haible  <bruno@clisp.org>
91388         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
91389         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
91390         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
91391         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
91392         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
91393         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
91395 2007-10-31  Bruno Haible  <bruno@clisp.org>
91397         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
91398         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
91399         (AC_TYPE_LONG_LONG_INT): Use it.
91400         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
91401         it as well.
91402         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
91403         to m4/longlong.m4.
91404         * modules/stdint (Files): Remove m4/ulonglong.m4.
91405         * modules/strtoull (Files): Use m4/longlong.m4 instead of
91406         m4/ulonglong.m4.
91407         * modules/strtoumax (Files): Likewise.
91409 2007-10-30  Bruno Haible  <bruno@clisp.org>
91411         * modules/xvasprintf-posix: New file.
91412         Suggested by Eric Blake.
91414 2007-10-30  Bruno Haible  <bruno@clisp.org>
91416         * modules/xprintf-posix-tests: New file.
91417         * tests/test-xprintf-posix.sh: New file.
91418         * tests/test-xprintf-posix.c: New file.
91419         * tests/test-xfprintf-posix.c: New file.
91421         * modules/xprintf-posix: New file.
91423 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91425         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
91426         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
91427         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
91429 2007-10-29  Bruno Haible  <bruno@clisp.org>
91431         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
91432         contain the special marker '_cv_'.
91433         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
91434         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
91435         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
91436         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
91437         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
91438         Reported by Ralf Wildenhues.
91440 2007-10-29  Bruno Haible  <bruno@clisp.org>
91442         * gnulib-tool (func_import): When --lgpl is not specified, set
91443         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
91444         GPLv3.
91445         Reported by Simon Josefsson.
91447 2007-10-28  Bruno Haible  <bruno@clisp.org>
91449         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
91450         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
91451         HAVE_DECL_ISFINITE.
91452         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
91453         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
91454         HAVE_DECL_ISFINITE.
91456 2007-10-28  Bruno Haible  <bruno@clisp.org>
91458         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
91459         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
91461 2007-10-28  Bruno Haible  <bruno@clisp.org>
91463         Fix link errors with Sun C 5.0 on Solaris 10.
91464         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
91465         function is declared but not present in the compiler's libm.
91466         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
91467         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
91468         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
91469         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
91470         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
91471         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
91472         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
91473         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
91474         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
91475         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
91476         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
91477         HAVE_DECL_FLOORL.
91479 2007-10-28  Bruno Haible  <bruno@clisp.org>
91481         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
91482         gl_FUNC_FLOORL. Cache the result.
91483         (gl_FUNC_FLOORL): Use it.
91484         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
91485         gl_FUNC_CEILL. Cache the result.
91486         (gl_FUNC_CEILL): Use it.
91488         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
91489         gl_FUNC_FLOOR. Cache the result.
91490         (gl_FUNC_FLOOR): Use it.
91491         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
91492         gl_FUNC_CEIL. Cache the result.
91493         (gl_FUNC_CEIL): Use it.
91495         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
91496         gl_FUNC_FLOORF. Cache the result.
91497         (gl_FUNC_FLOORF): Use it.
91498         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
91499         gl_FUNC_CEILF. Cache the result.
91500         (gl_FUNC_CEILF): Use it.
91502 2007-10-28  Bruno Haible  <bruno@clisp.org>
91504         * gnulib-tool: Allow specifying the LGPL version number through
91505         --lgpl=2 or --lgpl=3.
91506         (func_usage): Document --lgpl with argument.
91507         Handle --lgpl=... arguments.
91508         (func_import): Recognize also gl_LGPL calls with an argument. When
91509         --lgpl=2 is used and the module's license is just LGPL, report an
91510         error. Set sed_transform_lib_file according to the lgpl variable. In
91511         the generated files, use --lgpl or gl_LGPL invocations with argument,
91512         if necessary.
91513         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
91514         an LGPv2+ license.
91515         * doc/gnulib-tool.texi (Modified imports): Update explanation of
91516         gl_LGPL macro.
91518 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91519             Bruno Haible  <bruno@clisp.org>
91521         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
91522         (u16_uctomb_aux): Likewise.
91523         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
91524         !HAVE_INLINE.
91525         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
91527 2007-10-28  Bruno Haible  <bruno@clisp.org>
91529         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
91530         Invoke AM_GETTEXT_OPTION if it exists.
91531         * modules/vasprintf: Likewise.
91532         * modules/verror: Likewise.
91533         * modules/xprintf: Likewise.
91534         * modules/xvasprintf: Likewise.
91536 2007-10-27  Ben Pfaff  <blp@gnu.org>
91538         * lib/math.in.h: Define isfinite macro and prototypes for
91539         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
91540         implementations.
91541         * m4/math_h.m4: New substitutions for isfinite module.
91542         * lib/isfinite.c: New file.
91543         * m4/isfinite.m4: New file.
91544         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
91545         * modules/isfinite: New file.
91546         * modules/isfinite-tests: New file.
91547         * tests/tests-isfinite.c: New file.
91548         * doc/functions/isfinite.texi: Mention isfinite module.
91549         * MODULES.html.sh: Mention new module.
91551 2007-10-27  Ben Pfaff  <blp@gnu.org>
91553         Ralf Wildenhues reported that Tru64 4.0D declares the round
91554         functions but does not have definitions.
91555         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
91556         cannot be found in any library, set the output variable to
91557         "missing" instead of "".
91558         * m4/round.m4: Also use our substitute if we cannot find round in
91559         any library, even if it is declared.
91560         * m4/roundf.m4: Likewise for roundf.
91561         * m4/roundl.m4: Likewise for roundl.
91562         * lib/math.in.h: Undefine roundf, round, roundl before defining
91563         their replacements, to allow for hypothetical systems where these
91564         may be defined as macros but not available in libraries.
91566 2007-10-27  Bruno Haible  <bruno@clisp.org>
91568         * doc/gnulib.texi: Invoke @firstparagraphindent.
91569         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
91570         changes in gnulib.
91571         (Source changes): New section.
91573 2007-10-26  Bruno Haible  <bruno@clisp.org>
91575         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
91576         borrowed from autoconf.
91578 2007-10-26  Bruno Haible  <bruno@clisp.org>
91580         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
91581         strerror returned the empty string. Needed on HP-UX 11.00.
91583 2007-10-24  Micah Cowan  <micah@cowan.name>
91585         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
91586         * build-aux/bootstrap: Remove support for now-unnecessary option,
91587         --cvs-user, and envvars CVS_USER, CVS_RSH.
91589 2007-10-24  Jim Meyering  <meyering@redhat.com>
91591         Avoid diagnostics from sha1sum when there is no cached checksum.
91592         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
91593         if the po.s1 file hasn't been created yet.
91595         * build-aux/bootstrap: Sync from coreutils:
91596         2007-10-24  Jim Meyering  <meyering@redhat.com>
91597         Get gnulib from the git repository, not from an obsolete cvs one.
91598         * build-aux/bootstrap: Suggestion from Micah Cowan.
91599         2007-10-04  Jim Meyering  <jim@meyering.net>
91600         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
91601         (update_po_files): Work also when there are no .po files in po/.
91603 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
91605         * README: Append ".git" to git and cg examples.
91606         Problem reported by Benoit Sigoure.
91608 2007-10-23  Micah Cowan  <micah@cowan.name>
91610         * users.txt: Add wget.
91612 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91614         Fix linking of some unistdio tests on FreeBSD.
91615         * modules/unistdio/u16-vsnprintf-tests
91616         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
91617         * modules/unistdio/u16-vsprintf-tests
91618         (test_u16_vsnprintf1_LDADD): Likewise.
91619         * modules/unistdio/u32-vsnprintf-tests
91620         (test_u32_vsnprintf1_LDADD): Likewise.
91621         * modules/unistdio/u32-vsprintf-tests
91622         (test_u32_vsprintf1_LDADD): Likewise.
91623         * modules/unistdio/u8-vsnprintf-tests
91624         (test_u8_vsnprintf1_LDADD): Likewise.
91625         * modules/unistdio/u8-vsprintf-tests
91626         (test_u8_vsprintf1_LDADD): Likewise.
91627         * modules/unistdio/ulc-vsnprintf-tests
91628         (test_ulc_vsnprintf1_LDADD): Likewise.
91629         * modules/unistdio/ulc-vsprintf-tests
91630         (test_ulc_vsprintf1_LDADD): Likewise.
91632         Fix linking of some uniconv tests on FreeBSD.
91633         * modules/uniconv/u16-conv-from-enc-tests
91634         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
91635         * modules/uniconv/u16-conv-to-enc-tests
91636         (test_u16_conv_to_enc_LDADD): Likewise.
91637         * modules/uniconv/u16-strconv-from-enc-tests
91638         (test_u16_strconv_from_enc_LDADD): Likewise.
91639         * modules/uniconv/u16-strconv-to-enc-tests
91640         (test_u16_strconv_to_enc_LDADD): Likewise.
91641         * modules/uniconv/u32-conv-from-enc-tests
91642         (test_u32_conv_from_enc_LDADD): Likewise.
91643         * modules/uniconv/u32-conv-to-enc-tests
91644         (test_u32_conv_to_enc_LDADD): Likewise.
91645         * modules/uniconv/u32-strconv-from-enc-tests
91646         (test_u32_strconv_from_enc_LDADD): Likewise.
91647         * modules/uniconv/u32-strconv-to-enc-tests
91648         (test_u32_strconv_to_enc_LDADD): Likewise.
91649         * modules/uniconv/u8-conv-from-enc-tests
91650         (test_u8_conv_from_enc_LDADD): Likewise.
91651         * modules/uniconv/u8-conv-to-enc-tests
91652         (test_u8_conv_to_enc_LDADD): Likewise.
91653         * modules/uniconv/u8-strconv-from-enc-tests
91654         (test_u8_strconv_from_enc_LDADD): Likewise.
91655         * modules/uniconv/u8-strconv-to-enc-tests
91656         (test_u8_strconv_to_enc_LDADD): Likewise.
91658 2007-10-22  Bruno Haible  <bruno@clisp.org>
91660         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
91661         size.
91663 2007-10-22  Eric Blake  <ebb9@byu.net>
91665         Tweak x*printf documentation.
91666         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
91667         variable name and comments.
91668         Suggested by Bruno Haible.
91670 2007-10-22  Bruno Haible  <bruno@clisp.org>
91672         * lib/acl.c (copy_acl): Fix file name in comment.
91674 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
91676         Fix Tru64 problem with stdbool.h.
91677         * lib/stdbool.in.h (false, true):
91678         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
91679         Don't declare as an enum in this situation; it runs afoul of Tru64.
91680         Problem reported by Steven M. Schweda in
91681         <http://lists.gnu.org/r/bug-autoconf/2007-10/msg00019.html>.
91683 2007-10-22  Eric Blake  <ebb9@byu.net>
91685         Also wrap vf?printf.
91686         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
91687         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
91688         (xvprintf, xvfprintf): New functions.
91690 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91692         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
91693         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
91695         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
91696         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
91698 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
91700         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
91701         by Bruno Haible.
91703 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91705         * lib/getloadavg.c
91706         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
91707         Undef `sys' after including sys/table.h, for Tru64 4.0D.
91709         * tests/test-i-ring.c: Work for C89.
91711 2007-10-22  Bruno Haible  <bruno@clisp.org>
91713         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
91714         -1u, in preprocessor expression, so that we don't test for the bug
91715         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
91716         <http://lists.gnu.org/r/bug-gnulib/2007-10/msg00329.html>.
91718 2007-10-22  Eric Blake  <ebb9@byu.net>
91720         * tests/test-yesno.sh: Silence stderr during test.
91722 2007-10-22  Simon Josefsson  <simon@josefsson.org>
91724         * modules/crypto/gc-camellia: New file.
91726         * m4/gc-camellia.m4: New file.
91728         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
91730         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
91732 2007-10-22  Simon Josefsson  <simon@josefsson.org>
91734         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
91735         --help to stdout.  Reported by sms@antinode.org (Steven
91736         M. Schweda).
91738 2007-10-22  Simon Josefsson  <simon@josefsson.org>
91740         * users.txt: Fix link to libksba.
91742 2007-10-21  Ben Pfaff  <blp@gnu.org>
91744         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
91745         round.c roundf implementation that depends on floorf and ceilf to
91746         be tested unconditionally.
91748 2007-10-21  Ben Pfaff  <blp@gnu.org>
91750         * m4/check-libm-func.m4: Removed.
91751         * m4/check-math-lib.m4: New file.
91752         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
91753         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
91754         definition and lack of AC_LIBOBJ([roundf]).
91755         * m4/roundl.m4: Ditto, and similarly for roundl.
91756         * modules/round: Reference new m4 file.
91757         * modules/roundf: Ditto.
91758         * modules/roundl: Ditto.
91759         * tests/test-round2.c (main): Use ROUND instead of round.
91760         Bug report from Bruno Haible.
91762 2007-10-21  Bruno Haible  <bruno@clisp.org>
91764         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
91765         context.
91767 2007-10-21  Bruno Haible  <bruno@clisp.org>
91769         * tests/test-wcwidth.c (main): Allow negative result for some control
91770         characters.
91772         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
91773         Needed on OSF/1 5.1.
91775 2007-10-21  Bruno Haible  <bruno@clisp.org>
91777         * tests/test-floorf1.c: Include isnanf.h.
91778         (main): Use isnanf() instead of isnan().
91779         * tests/test-ceilf1.c: Include isnanf.h.
91780         (main): Use isnanf() instead of isnan().
91781         * tests/test-truncf1.c: Include isnanf.h.
91782         (main): Use isnanf() instead of isnan().
91783         * tests/test-roundf1.c: Include isnanf.h.
91784         (main): Use isnanf() instead of isnan().
91786 2007-10-21  Eric Blake  <ebb9@byu.net>
91788         * users.txt: Update URL for m4.
91790 2007-10-21  Bruno Haible  <bruno@clisp.org>
91792         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
91794 2007-10-21  Bruno Haible  <bruno@clisp.org>
91796         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
91797         Git's management files if the CVS files are not present.
91799 2007-10-20  Bruno Haible  <bruno@clisp.org>
91801         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
91802         gcc-3.4.x.
91804 2007-10-20  Ben Pfaff  <blp@gnu.org>
91806         * lib/math.in.h: Declare round, roundf, roundl if we are providing
91807         implementations.
91808         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
91809         * lib/round.c: New file.
91810         * lib/roundf.c: New file.
91811         * lib/roundl.c: New file.
91812         * m4/round.m4: New file.
91813         * m4/roundf.m4: New file.
91814         * m4/roundl.m4: New file.
91815         * m4/check-libm-func-m4: New file.
91816         * modules/math: Replace round, roundf, roundl related @VARS@ in
91817         math.in.h.
91818         * modules/round: New file.
91819         * modules/round-tests: New file.
91820         * modules/roundf: New file.
91821         * modules/roundf-tests: New file.
91822         * modules/roundl: New file.
91823         * modules/roundl-tests: New file.
91824         * tests/test-round1.c: New file.
91825         * tests/test-round2.c: New file.
91826         * tests/test-roundf1.c: New file.
91827         * tests/test-roundf2.c: New file.
91828         * tests/test-roundl.c: New file.
91829         * doc/functions/round.texi: Mention round module.
91830         * doc/functions/roundf.texi: Mention roundf module.
91831         * doc/functions/roundl.texi: Mention roundl module.
91832         * MODULES.html.sh: Mention new modules.
91833         Thanks to Bruno Haible for suggestions.
91835 2007-10-20  Jim Meyering  <meyering@redhat.com>
91837         * lib/xprintf.c: Include <config.h> unconditionally.
91839         Change xprintf's license to GPL.
91840         * modules/xprintf (License): s/LGPL/GPL/, since this module
91841         depends on modules (exit and exitfail) which are GPL.
91842         Suggestion from Bruno Haible.
91844         xprintf fixes.
91845         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
91846         Use a clearer diagnostic.
91847         Patch from Bruno Haible.
91849 2007-10-20  Bruno Haible  <bruno@clisp.org>
91851         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
91852         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
91853         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
91855 2007-10-20  Bruno Haible  <bruno@clisp.org>
91857         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
91858         precision in the comparison result > x - 1 or similar.
91859         * tests/test-ceilf2.c (correct_result_p): Likewise.
91860         * tests/test-truncf2.c (correct_result_p): Likewise.
91861         * tests/test-trunc2.c (correct_result_p): Likewise.
91862         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
91864 2007-10-20  Bruno Haible  <bruno@clisp.org>
91866         * modules/ceil: New file.
91867         * m4/ceil.m4: New file.
91868         * doc/functions/ceil.texi: Mention the 'ceil' module.
91870 2007-10-20  Bruno Haible  <bruno@clisp.org>
91872         * modules/floor: New file.
91873         * m4/floor.m4: New file.
91874         * doc/functions/floor.texi: Mention the 'floor' module.
91876 2007-10-20  Bruno Haible  <bruno@clisp.org>
91878         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
91879         of %a.
91880         * modules/floorf-tests (Depends-on): Likewise.
91881         * modules/truncf-tests (Depends-on): Likewise.
91882         * modules/trunc-tests (Depends-on): Likewise.
91883         Reported by Ben Pfaff.
91885 2007-10-19  Jim Meyering  <meyering@redhat.com>
91887         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
91888         Don't bother testing specific errno values.  Just test ferror.
91890         New module: xprintf
91891         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
91893 2007-10-19  Bruno Haible  <bruno@clisp.org>
91895         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
91896         syntax.
91897         * modules/javaexec (Makefile.am): Likewise.
91898         * modules/relocatable-prog (Makefile.am): Likewise.
91899         Suggested by Jim Meyering.
91901 2007-10-18  Bruno Haible  <bruno@clisp.org>
91903         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
91904         Reported by Jim Meyering.
91906 2007-10-18  Eric Blake  <ebb9@byu.net>
91908         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
91910 2007-10-18  Bruno Haible  <bruno@clisp.org>
91912         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
91913         the format string into writable memory. Needed in Fortify conditions.
91915 2007-10-18  Colin Watson  <cjwatson@debian.org>  (tiny change)
91916             Bruno Haible  <bruno@clisp.org>
91918         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
91919         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
91920         * modules/trim (Depends-on): Add mbchar.
91921         (configure.ac): Add gl_FUNC_MBRTOWC.
91922         (Makefile.am): Augment lib_SOURCES.
91924 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
91926         Modify glob.c to use fstatat and dirfd, to simplify it.
91927         Suggested by Eric Blake.
91928         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
91929         Don't include <stdbool.h>; not used.
91930         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
91931         (link_exists_p): Simplify implementation, since we can now assume
91932         dirfd and fstatat.
91933         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
91935 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91937         * gnulib-tool (func_get_dependencies): Fix sed script to
91938         match only tests.
91940 2007-10-17  Bruno Haible  <bruno@clisp.org>
91942         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
91943         allow locale names without encoding suffix.
91944         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
91945         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
91947 2007-10-16  Bruno Haible  <bruno@clisp.org>
91949         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
91950         * lib/getgroups.c (getgroups): Likewise.
91951         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
91953 2007-10-16  Bruno Haible  <bruno@clisp.org>
91955         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
91956         * modules/malloc-posix (License): Likewise.
91957         * modules/realloc-posix (License): Likewise.
91958         * modules/calloc-posix (License): Likewise.
91959         * modules/intprops (License): Change from GPL to LGPL, with
91960         Paul Eggert's approval.
91962 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
91964         Merge glibc changes into lib/glob.c.
91966         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
91967         2007-10-15 04:59:03 UTC.  Here are the changes:
91969         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
91971         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
91973         * lib/glob.c: Add some branch prediction throughout.
91975         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
91977         [BZ #5103]
91978         * lib/glob.c (glob): Recognize patterns starting \/.
91980         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
91982         [BZ #3996]
91983         * lib/glob.c (attribute_hidden): Define if not defined.
91984         (glob): Unescape dirname, filename or username when needed and not
91985         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
91986         is NULL.  Handle unescaped [ in pattern without closing ].
91987         Don't pass GLOB_CHECK down to recursive glob for directories.
91988         (__glob_pattern_type): New function.
91989         (__glob_pattern_p): Implement using __glob_pattern_type.
91990         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
91991         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
91992         Remove unreachable code.
91994         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
91996         * lib/glob.c (glob_in_dir): Add some comments and asserts to
91997         explain why there are no leaks.
91999         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
92001         [BZ #3253]
92002         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
92003         time, rather allocate increasingly bigger arrays of pointers, if
92004         possible with alloca, if too large with malloc.
92006 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
92008         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
92009         Problem reported by H.Merijn Brand in
92010         <http://lists.gnu.org/r/bug-tar/2007-10/msg00018.html>.
92011         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
92012         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
92014 2007-10-15  Bruno Haible  <bruno@clisp.org>
92016         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
92017         with explicit rpl_ prefix.
92018         * lib/fopen.c (fopen): Likewise.
92019         * lib/freopen.c (freopen): Likewise.
92020         * lib/iconv.c (iconv): Likewise.
92021         * lib/iconv_close.c (iconv_close): Likewise.
92023 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92025         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
92027 2007-10-15  Bruno Haible  <bruno@clisp.org>
92029         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
92030         <stddef.h> instead of <stdlib.h> since we only need NULL.
92031         Reported by Ben Pfaff <blp@cs.stanford.edu>.
92033 2007-10-15  Bruno Haible  <bruno@clisp.org>
92035         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
92036         Replace paragraph talking about LIBOBJS.
92037         Reported by Colin Watson <cjwatson@debian.org>.
92039 2007-10-15  Bruno Haible  <bruno@clisp.org>
92041         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
92042         <stdlib.h> before using NULL.
92044 2007-10-15  Simon Josefsson  <simon@josefsson.org>
92046         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
92047         Reported by Albert Chin <china@thewrittenword.com>.
92049 2007-10-14  Bruno Haible  <bruno@clisp.org>
92051         * modules/iconv_open-utf-tests: New file.
92052         * tests/test-iconv-utf.c: New file.
92054         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
92055         * modules/iconv_open-utf: New file.
92056         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
92057         (iconv, iconv_close): New declarations.
92058         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
92059         be defined.
92060         (iconv_open): Add special handling of conversion between UTF-8 and
92061         UTF-{16,32}{BE,LE}.
92062         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
92063         * lib/iconv_close.c: New file.
92064         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
92065         gl_FUNC_ICONV_OPEN.
92066         (gl_FUNC_ICONV_OPEN): Use it.
92067         (gl_FUNC_ICONV_OPEN_UTF): New macro.
92068         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
92069         and REPLACE_ICONV_UTF.
92070         * modules/iconv_open (Depends-on): Add c-strcase.
92071         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
92072         ICONV_CONST.
92073         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
92075 2007-10-13  Albert Chin  <china@thewrittenword.com>
92076             Bruno Haible  <bruno@clisp.org>
92078         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
92079         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
92081 2007-10-13  Bruno Haible  <bruno@clisp.org>
92083         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
92084         defined, use the ISO C99 inline semantics.
92085         * lib/argp.h (ARGP_EI): Likewise.
92087 2007-10-13  Bruno Haible  <bruno@clisp.org>
92089         Handle 'inline' change in gcc 4.3.0.
92090         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
92091         argp_fmtstream_write, argp_fmtstream_set_lmargin,
92092         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
92093         argp_fmtstream_point): Disable 'extern' declaration if the function
92094         definition is going to be provided inline.
92095         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
92096         semantics, not the ISO C99 inline semantics.
92097         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
92098         'extern' declaration if the function definition is going to be provided
92099         inline.
92100         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
92101         the GNU C inline semantics, not the ISO C99 inline semantics. With
92102         GCC 4.2, avoid a warning.
92104 2007-10-13  Bruno Haible  <bruno@clisp.org>
92106         * lib/freading.h (freading): Enable the use of __freading for
92107         glibc >= 2.7.
92108         * lib/freading.c (freading): Likewise.
92110 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
92112         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
92113         "warning: C99 inline functions are not supported; using GNU89".
92115 2007-10-12  Bruno Haible  <bruno@clisp.org>
92117         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
92118         of 2.
92119         * tests/test-ceilf2.c: New file.
92120         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
92122         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
92123         * modules/ceilf-tests: Update.
92125 2007-10-12  Bruno Haible  <bruno@clisp.org>
92127         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
92128         of 2.
92129         * tests/test-floorf2.c: New file.
92130         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
92132         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
92133         * modules/floorf-tests: Update.
92135 2007-10-12  Bruno Haible  <bruno@clisp.org>
92137         * tests/test-trunc2.c: New file.
92138         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
92140         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
92141         * modules/trunc-tests: Update.
92143 2007-10-12  Bruno Haible  <bruno@clisp.org>
92145         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
92146         of 2.
92147         * tests/test-truncf2.c: New file.
92148         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
92150         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
92151         * modules/truncf-tests: Update.
92153 2007-10-11  Eric Blake  <ebb9@byu.net>
92155         Don't claim strerror is broken on Interix.
92156         * doc/functions/strerror.texi (strerror): Known broken systems are
92157         now Solaris 8, and not Interix.
92158         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
92159         Interix on cross-compile.
92160         Reported by Martin Koeppe in
92161         http://lists.gnu.org/r/bug-gnulib/2007-10/msg00005.html.
92163 2007-10-11  Bruno Haible  <bruno@clisp.org>
92165         * modules/i-ring-tests: New file.
92166         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
92167         instead of assert.
92169 2007-10-11  Bruno Haible  <bruno@clisp.org>
92171         * modules/filenamecat-tests: New file.
92172         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
92173         * lib/filenamecat.c: Remove test code.
92175 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
92177         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
92179         * lib/strerror.c: Include <string.h> always, to test interface,
92180         and to remove the need for the dummy.
92181         Include intprops.h to compute width instead of doing it ourselves
92182         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
92183         (strerror): Define it to return NULL if there's no system strerror.
92184         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
92185         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
92186         ancient pre-strerror Unix systems well any more.  Saying "unknown
92187         system error" is enough.
92188         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
92189         simpler strerror.c implementation.
92190         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
92191         Simplify the tests to reflect the simpler strerror implementation.
92192         * modules/strerror (Depends-on): Add intprops.
92194 2007-10-09  Eric Blake  <ebb9@byu.net>
92196         Silence test-fpending.
92197         * modules/fpending-tests (Files): Add wrapper script.
92198         * tests/test-fpending.sh: New file.
92200 2007-10-09  Bruno Haible  <bruno@clisp.org>
92202         * MODULES.html.sh (func_module): Don't create a hyperlink for
92203         function names like 'printf_frexp'.
92204         (Misc): Add crc, memxor.
92205         (Characteristics of floating types): New section.
92206         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
92207         isnanf-nolibm, signbit, trunc, truncf, truncl.
92208         (Enhancements for ISO C 99 functions): New subsection Input/output.
92209         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
92210         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
92211         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
92212         (Compatibility checks for POSIX:2001 functions): Add clock-time.
92213         (Enhancements for POSIX:2001 functions): Add chdir-long.
92214         (File system functions): Add areadlink, chdir-safer, read-file.
92215         Remove cycle-check.
92216         (File system as inode set): New section.
92217         (Date and time): Add gethrxtime.
92218         (Multithreading): Add openmp.
92219         (Internationalization functions): Add localename.
92220         (Unicode string functions): Add unistr/u*-mbsnlen.
92221         (Support for maintaining and releasing projects): Add git-version-gen.
92222         (Lone files): Remove directories.
92224 2007-10-08  Ben Pfaff  <blp@gnu.org>
92226         * lib/xmalloca.h: Fix typo in comment.
92228 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
92230         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
92231         when avoiding problems with integer overflow.  Use a portable test
92232         instead.
92234 2007-10-08  Simon Josefsson  <simon@josefsson.org>
92236         * modules/dummy (License): Change to LGPLv2+.
92237         * modules/float (License): Likewise
92238         * modules/realloc (License): Likewise
92239         * modules/stdlib (License): Likewise
92241 2007-10-07  Bruno Haible  <bruno@clisp.org>
92243         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
92244         * floor.c (TWO_MANT_DIG): Likewise.
92245         * ceil.c (TWO_MANT_DIG): Likewise.
92246         Reported by Ben Pfaff.
92248 2007-10-07  Bruno Haible  <bruno@clisp.org>
92250         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
92251         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
92252         * lib/frexp.c (FUNC): Likewise.
92253         * lib/printf-frexp.h (printf_frexp): Likewise.
92254         * lib/printf-frexpl.h (printf_frexpl): Likewise.
92255         * lib/printf-frexp.c (FUNC): Likewise.
92256         Suggested by Jim Meyering.
92258 2007-10-07  Jim Meyering  <meyering@redhat.com>
92260         Make xnanosleep's integer overflow test more robust.
92261         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
92262         so that gcc-4.3.0 doesn't optimize away this test for overflow.
92264 2007-10-07  Bruno Haible  <bruno@clisp.org>
92266         * NEWS: Mention the license change.
92268         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
92269         abbreviations in the modules files.
92271         Change copyright notice from GPLv2+ to GPLv3+.
92272         * README: Change copyright notice.
92273         * MODULES.html.sh: Likewise.
92274         * build-aux/bootstrap.conf: Likewise.
92275         * build-aux/config.libpath: Likewise.
92276         * build-aux/csharpcomp.sh.in: Likewise.
92277         * build-aux/csharpexec.sh.in: Likewise.
92278         * build-aux/install-reloc: Likewise.
92279         * build-aux/javacomp.sh.in: Likewise.
92280         * build-aux/javaexec.sh.in: Likewise.
92281         * build-aux/ldd.sh.in: Likewise.
92282         * build-aux/reloc-ldflags: Likewise.
92283         * build-aux/relocatable.sh.in: Likewise.
92284         * build-aux/x-to-1.in: Likewise.
92285         * check-module: Likewise.
92286         * config/srclistvars.sh: Likewise.
92287         * gnulib-tool: Likewise.
92288         * lib/acl-internal.h: Likewise.
92289         * lib/acl.c: Likewise.
92290         * lib/acl.h: Likewise.
92291         * lib/acl_entries.c: Likewise.
92292         * lib/areadlink-with-size.c: Likewise.
92293         * lib/areadlink.c: Likewise.
92294         * lib/areadlink.h: Likewise.
92295         * lib/argmatch.c: Likewise.
92296         * lib/argmatch.h: Likewise.
92297         * lib/argp-ba.c: Likewise.
92298         * lib/argp-eexst.c: Likewise.
92299         * lib/argp-fmtstream.c: Likewise.
92300         * lib/argp-fmtstream.h: Likewise.
92301         * lib/argp-fs-xinl.c: Likewise.
92302         * lib/argp-help.c: Likewise.
92303         * lib/argp-namefrob.h: Likewise.
92304         * lib/argp-parse.c: Likewise.
92305         * lib/argp-pin.c: Likewise.
92306         * lib/argp-pv.c: Likewise.
92307         * lib/argp-pvh.c: Likewise.
92308         * lib/argp-xinl.c: Likewise.
92309         * lib/argp.h: Likewise.
92310         * lib/at-func.c: Likewise.
92311         * lib/atanl.c: Likewise.
92312         * lib/backupfile.c: Likewise.
92313         * lib/backupfile.h: Likewise.
92314         * lib/basename.c: Likewise.
92315         * lib/binary-io.h: Likewise.
92316         * lib/byteswap.in.h: Likewise.
92317         * lib/c-stack.c: Likewise.
92318         * lib/c-stack.h: Likewise.
92319         * lib/c-strcasestr.c: Likewise.
92320         * lib/c-strcasestr.h: Likewise.
92321         * lib/c-strstr.c: Likewise.
92322         * lib/c-strstr.h: Likewise.
92323         * lib/c-strtod.c: Likewise.
92324         * lib/calloc.c: Likewise.
92325         * lib/canon-host.c: Likewise.
92326         * lib/canon-host.h: Likewise.
92327         * lib/canonicalize-lgpl.c: Likewise.
92328         * lib/canonicalize.c: Likewise.
92329         * lib/canonicalize.h: Likewise.
92330         * lib/ceil.c: Likewise.
92331         * lib/ceilf.c: Likewise.
92332         * lib/ceill.c: Likewise.
92333         * lib/chdir-long.c: Likewise.
92334         * lib/chdir-long.h: Likewise.
92335         * lib/chdir-safer.c: Likewise.
92336         * lib/chdir-safer.h: Likewise.
92337         * lib/chown.c: Likewise.
92338         * lib/classpath.c: Likewise.
92339         * lib/classpath.h: Likewise.
92340         * lib/clean-temp.c: Likewise.
92341         * lib/clean-temp.h: Likewise.
92342         * lib/cloexec.c: Likewise.
92343         * lib/close-stream.c: Likewise.
92344         * lib/closein.c: Likewise.
92345         * lib/closein.h: Likewise.
92346         * lib/closeout.c: Likewise.
92347         * lib/closeout.h: Likewise.
92348         * lib/concat-filename.c: Likewise.
92349         * lib/copy-file.c: Likewise.
92350         * lib/copy-file.h: Likewise.
92351         * lib/count-one-bits.h: Likewise.
92352         * lib/crc.c: Likewise.
92353         * lib/crc.h: Likewise.
92354         * lib/creat-safer.c: Likewise.
92355         * lib/csharpcomp.c: Likewise.
92356         * lib/csharpcomp.h: Likewise.
92357         * lib/csharpexec.c: Likewise.
92358         * lib/csharpexec.h: Likewise.
92359         * lib/cycle-check.c: Likewise.
92360         * lib/cycle-check.h: Likewise.
92361         * lib/diacrit.c: Likewise.
92362         * lib/diacrit.h: Likewise.
92363         * lib/diffseq.h: Likewise.
92364         * lib/dirchownmod.c: Likewise.
92365         * lib/dirent.in.h: Likewise.
92366         * lib/dirfd.c: Likewise.
92367         * lib/dirfd.h: Likewise.
92368         * lib/dirname.c: Likewise.
92369         * lib/dirname.h: Likewise.
92370         * lib/dummy.c: Likewise.
92371         * lib/dup-safer.c: Likewise.
92372         * lib/dup2.c: Likewise.
92373         * lib/eealloc.h: Likewise.
92374         * lib/error.c: Likewise.
92375         * lib/error.h: Likewise.
92376         * lib/euidaccess.c: Likewise.
92377         * lib/exclude.c: Likewise.
92378         * lib/exclude.h: Likewise.
92379         * lib/execute.c: Likewise.
92380         * lib/execute.h: Likewise.
92381         * lib/exitfail.c: Likewise.
92382         * lib/exitfail.h: Likewise.
92383         * lib/expl.c: Likewise.
92384         * lib/fatal-signal.c: Likewise.
92385         * lib/fatal-signal.h: Likewise.
92386         * lib/fbufmode.c: Likewise.
92387         * lib/fbufmode.h: Likewise.
92388         * lib/fchdir.c: Likewise.
92389         * lib/fchmodat.c: Likewise.
92390         * lib/fchownat.c: Likewise.
92391         * lib/fcntl--.h: Likewise.
92392         * lib/fcntl-safer.h: Likewise.
92393         * lib/fcntl.in.h: Likewise.
92394         * lib/fd-safer.c: Likewise.
92395         * lib/fflush.c: Likewise.
92396         * lib/file-has-acl.c: Likewise.
92397         * lib/file-set.c: Likewise.
92398         * lib/file-type.c: Likewise.
92399         * lib/file-type.h: Likewise.
92400         * lib/fileblocks.c: Likewise.
92401         * lib/filemode.c: Likewise.
92402         * lib/filemode.h: Likewise.
92403         * lib/filename.h: Likewise.
92404         * lib/filenamecat.c: Likewise.
92405         * lib/filenamecat.h: Likewise.
92406         * lib/findprog.c: Likewise.
92407         * lib/findprog.h: Likewise.
92408         * lib/float.in.h: Likewise.
92409         * lib/floor.c: Likewise.
92410         * lib/floorf.c: Likewise.
92411         * lib/floorl.c: Likewise.
92412         * lib/fopen-safer.c: Likewise.
92413         * lib/fopen.c: Likewise.
92414         * lib/fpending.c: Likewise.
92415         * lib/fpending.h: Likewise.
92416         * lib/fprintf.c: Likewise.
92417         * lib/fprintftime.h: Likewise.
92418         * lib/fpucw.h: Likewise.
92419         * lib/fpurge.c: Likewise.
92420         * lib/fpurge.h: Likewise.
92421         * lib/freadable.c: Likewise.
92422         * lib/freadable.h: Likewise.
92423         * lib/freadahead.c: Likewise.
92424         * lib/freadahead.h: Likewise.
92425         * lib/freading.c: Likewise.
92426         * lib/freading.h: Likewise.
92427         * lib/free.c: Likewise.
92428         * lib/freopen.c: Likewise.
92429         * lib/frexp.c: Likewise.
92430         * lib/frexpl.c: Likewise.
92431         * lib/fseek.c: Likewise.
92432         * lib/fseterr.c: Likewise.
92433         * lib/fseterr.h: Likewise.
92434         * lib/fstatat.c: Likewise.
92435         * lib/fstrcmp.c: Likewise.
92436         * lib/fstrcmp.h: Likewise.
92437         * lib/fsusage.c: Likewise.
92438         * lib/fsusage.h: Likewise.
92439         * lib/ftell.c: Likewise.
92440         * lib/ftello.c: Likewise.
92441         * lib/fts-cycle.c: Likewise.
92442         * lib/fts.c: Likewise.
92443         * lib/fts_.h: Likewise.
92444         * lib/full-read.c: Likewise.
92445         * lib/full-read.h: Likewise.
92446         * lib/full-write.c: Likewise.
92447         * lib/full-write.h: Likewise.
92448         * lib/fwritable.c: Likewise.
92449         * lib/fwritable.h: Likewise.
92450         * lib/fwriteerror.c: Likewise.
92451         * lib/fwriteerror.h: Likewise.
92452         * lib/fwriting.c: Likewise.
92453         * lib/fwriting.h: Likewise.
92454         * lib/gcd.c: Likewise.
92455         * lib/gcd.h: Likewise.
92456         * lib/getcwd.c: Likewise.
92457         * lib/getdate.h: Likewise.
92458         * lib/getdate.y: Likewise.
92459         * lib/getdomainname.c: Likewise.
92460         * lib/getdomainname.h: Likewise.
92461         * lib/getgroups.c: Likewise.
92462         * lib/gethostname.c: Likewise.
92463         * lib/gethrxtime.c: Likewise.
92464         * lib/gethrxtime.h: Likewise.
92465         * lib/getloadavg.c: Likewise.
92466         * lib/getndelim2.c: Likewise.
92467         * lib/getndelim2.h: Likewise.
92468         * lib/getnline.c: Likewise.
92469         * lib/getnline.h: Likewise.
92470         * lib/getopt.c: Likewise.
92471         * lib/getopt.in.h: Likewise.
92472         * lib/getopt1.c: Likewise.
92473         * lib/getopt_int.h: Likewise.
92474         * lib/getpagesize.h: Likewise.
92475         * lib/getsubopt.c: Likewise.
92476         * lib/gettime.c: Likewise.
92477         * lib/getugroups.c: Likewise.
92478         * lib/getugroups.h: Likewise.
92479         * lib/getusershell.c: Likewise.
92480         * lib/gl_anyavltree_list1.h: Likewise.
92481         * lib/gl_anyavltree_list2.h: Likewise.
92482         * lib/gl_anyhash_list1.h: Likewise.
92483         * lib/gl_anyhash_list2.h: Likewise.
92484         * lib/gl_anylinked_list1.h: Likewise.
92485         * lib/gl_anylinked_list2.h: Likewise.
92486         * lib/gl_anyrbtree_list1.h: Likewise.
92487         * lib/gl_anyrbtree_list2.h: Likewise.
92488         * lib/gl_anytree_list1.h: Likewise.
92489         * lib/gl_anytree_list2.h: Likewise.
92490         * lib/gl_anytree_oset.h: Likewise.
92491         * lib/gl_anytreehash_list1.h: Likewise.
92492         * lib/gl_anytreehash_list2.h: Likewise.
92493         * lib/gl_array_list.c: Likewise.
92494         * lib/gl_array_list.h: Likewise.
92495         * lib/gl_array_oset.c: Likewise.
92496         * lib/gl_array_oset.h: Likewise.
92497         * lib/gl_avltree_list.c: Likewise.
92498         * lib/gl_avltree_list.h: Likewise.
92499         * lib/gl_avltree_oset.c: Likewise.
92500         * lib/gl_avltree_oset.h: Likewise.
92501         * lib/gl_avltreehash_list.c: Likewise.
92502         * lib/gl_avltreehash_list.h: Likewise.
92503         * lib/gl_carray_list.c: Likewise.
92504         * lib/gl_carray_list.h: Likewise.
92505         * lib/gl_linked_list.c: Likewise.
92506         * lib/gl_linked_list.h: Likewise.
92507         * lib/gl_linkedhash_list.c: Likewise.
92508         * lib/gl_linkedhash_list.h: Likewise.
92509         * lib/gl_list.c: Likewise.
92510         * lib/gl_list.h: Likewise.
92511         * lib/gl_oset.c: Likewise.
92512         * lib/gl_oset.h: Likewise.
92513         * lib/gl_rbtree_list.c: Likewise.
92514         * lib/gl_rbtree_list.h: Likewise.
92515         * lib/gl_rbtree_oset.c: Likewise.
92516         * lib/gl_rbtree_oset.h: Likewise.
92517         * lib/gl_rbtreehash_list.c: Likewise.
92518         * lib/gl_rbtreehash_list.h: Likewise.
92519         * lib/gl_sublist.c: Likewise.
92520         * lib/gl_sublist.h: Likewise.
92521         * lib/group-member.c: Likewise.
92522         * lib/group-member.h: Likewise.
92523         * lib/hard-locale.c: Likewise.
92524         * lib/hard-locale.h: Likewise.
92525         * lib/hash-pjw.c: Likewise.
92526         * lib/hash-pjw.h: Likewise.
92527         * lib/hash-triple.c: Likewise.
92528         * lib/hash.c: Likewise.
92529         * lib/hash.h: Likewise.
92530         * lib/human.c: Likewise.
92531         * lib/human.h: Likewise.
92532         * lib/i-ring.c: Likewise.
92533         * lib/i-ring.h: Likewise.
92534         * lib/idcache.c: Likewise.
92535         * lib/imaxabs.c: Likewise.
92536         * lib/imaxdiv.c: Likewise.
92537         * lib/inet_pton.c: Likewise.
92538         * lib/inet_pton.h: Likewise.
92539         * lib/intprops.h: Likewise.
92540         * lib/inttostr.c: Likewise.
92541         * lib/inttostr.h: Likewise.
92542         * lib/inttypes.in.h: Likewise.
92543         * lib/isapipe.c: Likewise.
92544         * lib/isdir.c: Likewise.
92545         * lib/isnan.c: Likewise.
92546         * lib/isnan.h: Likewise.
92547         * lib/isnanf.c: Likewise.
92548         * lib/isnanf.h: Likewise.
92549         * lib/isnanl-nolibm.h: Likewise.
92550         * lib/isnanl.c: Likewise.
92551         * lib/isnanl.h: Likewise.
92552         * lib/javacomp.c: Likewise.
92553         * lib/javacomp.h: Likewise.
92554         * lib/javaexec.c: Likewise.
92555         * lib/javaexec.h: Likewise.
92556         * lib/javaversion.c: Likewise.
92557         * lib/javaversion.h: Likewise.
92558         * lib/javaversion.java: Likewise.
92559         * lib/lbrkprop.h: Likewise.
92560         * lib/lchmod.h: Likewise.
92561         * lib/lchown.c: Likewise.
92562         * lib/ldexpl.c: Likewise.
92563         * lib/linebreak.c: Likewise.
92564         * lib/linebreak.h: Likewise.
92565         * lib/linebuffer.c: Likewise.
92566         * lib/linebuffer.h: Likewise.
92567         * lib/locale.in.h: Likewise.
92568         * lib/logl.c: Likewise.
92569         * lib/long-options.c: Likewise.
92570         * lib/long-options.h: Likewise.
92571         * lib/lstat.c: Likewise.
92572         * lib/lstat.h: Likewise.
92573         * lib/math.in.h: Likewise.
92574         * lib/mbchar.c: Likewise.
92575         * lib/mbchar.h: Likewise.
92576         * lib/mbfile.h: Likewise.
92577         * lib/mbiter.h: Likewise.
92578         * lib/mbscasecmp.c: Likewise.
92579         * lib/mbscasestr.c: Likewise.
92580         * lib/mbschr.c: Likewise.
92581         * lib/mbscspn.c: Likewise.
92582         * lib/mbslen.c: Likewise.
92583         * lib/mbsncasecmp.c: Likewise.
92584         * lib/mbsnlen.c: Likewise.
92585         * lib/mbspbrk.c: Likewise.
92586         * lib/mbspcasecmp.c: Likewise.
92587         * lib/mbsrchr.c: Likewise.
92588         * lib/mbssep.c: Likewise.
92589         * lib/mbsspn.c: Likewise.
92590         * lib/mbsstr.c: Likewise.
92591         * lib/mbstok_r.c: Likewise.
92592         * lib/mbswidth.c: Likewise.
92593         * lib/mbswidth.h: Likewise.
92594         * lib/mbuiter.h: Likewise.
92595         * lib/memcasecmp.c: Likewise.
92596         * lib/memcasecmp.h: Likewise.
92597         * lib/memchr.c: Likewise.
92598         * lib/memcmp.c: Likewise.
92599         * lib/memcoll.c: Likewise.
92600         * lib/memcoll.h: Likewise.
92601         * lib/memcpy.c: Likewise.
92602         * lib/memrchr.c: Likewise.
92603         * lib/mkancesdirs.c: Likewise.
92604         * lib/mkdir-p.c: Likewise.
92605         * lib/mkdir-p.h: Likewise.
92606         * lib/mkdir.c: Likewise.
92607         * lib/mkdirat.c: Likewise.
92608         * lib/mkdtemp.c: Likewise.
92609         * lib/mkstemp-safer.c: Likewise.
92610         * lib/mkstemp.c: Likewise.
92611         * lib/modechange.c: Likewise.
92612         * lib/modechange.h: Likewise.
92613         * lib/mountlist.c: Likewise.
92614         * lib/mountlist.h: Likewise.
92615         * lib/mpsort.c: Likewise.
92616         * lib/nanosleep.c: Likewise.
92617         * lib/obstack.c: Likewise.
92618         * lib/obstack.h: Likewise.
92619         * lib/open-safer.c: Likewise.
92620         * lib/open.c: Likewise.
92621         * lib/openat-die.c: Likewise.
92622         * lib/openat-priv.h: Likewise.
92623         * lib/openat-proc.c: Likewise.
92624         * lib/openat.c: Likewise.
92625         * lib/openat.h: Likewise.
92626         * lib/pagealign_alloc.c: Likewise.
92627         * lib/pagealign_alloc.h: Likewise.
92628         * lib/physmem.c: Likewise.
92629         * lib/physmem.h: Likewise.
92630         * lib/pipe-safer.c: Likewise.
92631         * lib/pipe.c: Likewise.
92632         * lib/pipe.h: Likewise.
92633         * lib/posixtm.c: Likewise.
92634         * lib/posixtm.h: Likewise.
92635         * lib/posixver.c: Likewise.
92636         * lib/printf-frexp.c: Likewise.
92637         * lib/printf-frexp.h: Likewise.
92638         * lib/printf-frexpl.c: Likewise.
92639         * lib/printf-frexpl.h: Likewise.
92640         * lib/printf.c: Likewise.
92641         * lib/progname.c: Likewise.
92642         * lib/progname.h: Likewise.
92643         * lib/progreloc.c: Likewise.
92644         * lib/putenv.c: Likewise.
92645         * lib/quote.c: Likewise.
92646         * lib/quote.h: Likewise.
92647         * lib/quotearg.c: Likewise.
92648         * lib/quotearg.h: Likewise.
92649         * lib/raise.c: Likewise.
92650         * lib/readline.c: Likewise.
92651         * lib/readline.h: Likewise.
92652         * lib/readlink.c: Likewise.
92653         * lib/readtokens.c: Likewise.
92654         * lib/readtokens.h: Likewise.
92655         * lib/readtokens0.c: Likewise.
92656         * lib/readtokens0.h: Likewise.
92657         * lib/readutmp.c: Likewise.
92658         * lib/readutmp.h: Likewise.
92659         * lib/realloc.c: Likewise.
92660         * lib/relocwrapper.c: Likewise.
92661         * lib/rename-dest-slash.c: Likewise.
92662         * lib/rename.c: Likewise.
92663         * lib/rmdir.c: Likewise.
92664         * lib/rpmatch.c: Likewise.
92665         * lib/safe-read.c: Likewise.
92666         * lib/safe-read.h: Likewise.
92667         * lib/safe-write.c: Likewise.
92668         * lib/safe-write.h: Likewise.
92669         * lib/same-inode.h: Likewise.
92670         * lib/same.c: Likewise.
92671         * lib/same.h: Likewise.
92672         * lib/save-cwd.c: Likewise.
92673         * lib/save-cwd.h: Likewise.
92674         * lib/savedir.c: Likewise.
92675         * lib/savedir.h: Likewise.
92676         * lib/savewd.c: Likewise.
92677         * lib/savewd.h: Likewise.
92678         * lib/search.in.h: Likewise.
92679         * lib/setenv.c: Likewise.
92680         * lib/setenv.h: Likewise.
92681         * lib/settime.c: Likewise.
92682         * lib/sh-quote.c: Likewise.
92683         * lib/sh-quote.h: Likewise.
92684         * lib/sig2str.c: Likewise.
92685         * lib/sig2str.h: Likewise.
92686         * lib/signal.in.h: Likewise.
92687         * lib/signbitd.c: Likewise.
92688         * lib/signbitf.c: Likewise.
92689         * lib/signbitl.c: Likewise.
92690         * lib/sigprocmask.c: Likewise.
92691         * lib/sincosl.c: Likewise.
92692         * lib/sleep.c: Likewise.
92693         * lib/sprintf.c: Likewise.
92694         * lib/sqrtl.c: Likewise.
92695         * lib/stat-time.h: Likewise.
92696         * lib/stdio--.h: Likewise.
92697         * lib/stdio-safer.h: Likewise.
92698         * lib/stdlib--.h: Likewise.
92699         * lib/stdlib-safer.h: Likewise.
92700         * lib/stdlib.in.h: Likewise.
92701         * lib/stpcpy.c: Likewise.
92702         * lib/stpncpy.c: Likewise.
92703         * lib/strchrnul.c: Likewise.
92704         * lib/strcspn.c: Likewise.
92705         * lib/strerror.c: Likewise.
92706         * lib/strftime.c: Likewise.
92707         * lib/strftime.h: Likewise.
92708         * lib/striconveh.c: Likewise.
92709         * lib/striconveh.h: Likewise.
92710         * lib/striconveha.c: Likewise.
92711         * lib/striconveha.h: Likewise.
92712         * lib/stripslash.c: Likewise.
92713         * lib/strnlen1.c: Likewise.
92714         * lib/strnlen1.h: Likewise.
92715         * lib/strtod.c: Likewise.
92716         * lib/strtoimax.c: Likewise.
92717         * lib/strtok_r.c: Likewise.
92718         * lib/strtol.c: Likewise.
92719         * lib/strtoll.c: Likewise.
92720         * lib/strtoul.c: Likewise.
92721         * lib/strtoull.c: Likewise.
92722         * lib/sysexits.in.h: Likewise.
92723         * lib/tempname.c: Likewise.
92724         * lib/tempname.h: Likewise.
92725         * lib/timespec.h: Likewise.
92726         * lib/tls.c: Likewise.
92727         * lib/tls.h: Likewise.
92728         * lib/tmpdir.c: Likewise.
92729         * lib/tmpdir.h: Likewise.
92730         * lib/tmpfile-safer.c: Likewise.
92731         * lib/tmpfile.c: Likewise.
92732         * lib/trigl.c: Likewise.
92733         * lib/trigl.h: Likewise.
92734         * lib/trim.c: Likewise.
92735         * lib/trim.h: Likewise.
92736         * lib/trunc.c: Likewise.
92737         * lib/truncf.c: Likewise.
92738         * lib/truncl.c: Likewise.
92739         * lib/tsearch.c: Likewise.
92740         * lib/unicodeio.c: Likewise.
92741         * lib/unicodeio.h: Likewise.
92742         * lib/unistd--.h: Likewise.
92743         * lib/unistd-safer.h: Likewise.
92744         * lib/unistdio/ulc-fprintf.c: Likewise.
92745         * lib/unistdio/ulc-vfprintf.c: Likewise.
92746         * lib/unlinkdir.c: Likewise.
92747         * lib/unlinkdir.h: Likewise.
92748         * lib/unlocked-io.h: Likewise.
92749         * lib/unsetenv.c: Likewise.
92750         * lib/userspec.c: Likewise.
92751         * lib/utime.c: Likewise.
92752         * lib/utimecmp.c: Likewise.
92753         * lib/utimecmp.h: Likewise.
92754         * lib/utimens.c: Likewise.
92755         * lib/verify.h: Likewise.
92756         * lib/verror.c: Likewise.
92757         * lib/verror.h: Likewise.
92758         * lib/version-etc-fsf.c: Likewise.
92759         * lib/version-etc.c: Likewise.
92760         * lib/version-etc.h: Likewise.
92761         * lib/vfprintf.c: Likewise.
92762         * lib/vprintf.c: Likewise.
92763         * lib/vsprintf.c: Likewise.
92764         * lib/w32spawn.h: Likewise.
92765         * lib/wait-process.c: Likewise.
92766         * lib/wait-process.h: Likewise.
92767         * lib/wcwidth.c: Likewise.
92768         * lib/write-any-file.c: Likewise.
92769         * lib/xalloc-die.c: Likewise.
92770         * lib/xalloc.h: Likewise.
92771         * lib/xasprintf.c: Likewise.
92772         * lib/xgetcwd.c: Likewise.
92773         * lib/xgetcwd.h: Likewise.
92774         * lib/xgetdomainname.c: Likewise.
92775         * lib/xgetdomainname.h: Likewise.
92776         * lib/xgethostname.c: Likewise.
92777         * lib/xmalloc.c: Likewise.
92778         * lib/xmalloca.c: Likewise.
92779         * lib/xmalloca.h: Likewise.
92780         * lib/xmemcoll.c: Likewise.
92781         * lib/xnanosleep.c: Likewise.
92782         * lib/xreadlink.c: Likewise.
92783         * lib/xreadlink.h: Likewise.
92784         * lib/xsetenv.c: Likewise.
92785         * lib/xsetenv.h: Likewise.
92786         * lib/xstriconv.c: Likewise.
92787         * lib/xstriconv.h: Likewise.
92788         * lib/xstrndup.c: Likewise.
92789         * lib/xstrndup.h: Likewise.
92790         * lib/xstrtod.c: Likewise.
92791         * lib/xstrtod.h: Likewise.
92792         * lib/xstrtol-error.c: Likewise.
92793         * lib/xstrtol.c: Likewise.
92794         * lib/xstrtol.h: Likewise.
92795         * lib/xtime.h: Likewise.
92796         * lib/xvasprintf.c: Likewise.
92797         * lib/xvasprintf.h: Likewise.
92798         * lib/yesno.c: Likewise.
92799         * lib/yesno.h: Likewise.
92800         * posix-modules: Likewise.
92801         * tests/test-alloca-opt.c: Likewise.
92802         * tests/test-arcfour.c: Likewise.
92803         * tests/test-arctwo.c: Likewise.
92804         * tests/test-argmatch.c: Likewise.
92805         * tests/test-argp-2.sh: Likewise.
92806         * tests/test-argp.c: Likewise.
92807         * tests/test-arpa_inet.c: Likewise.
92808         * tests/test-array_list.c: Likewise.
92809         * tests/test-array_oset.c: Likewise.
92810         * tests/test-atexit.c: Likewise.
92811         * tests/test-avltree_list.c: Likewise.
92812         * tests/test-avltree_oset.c: Likewise.
92813         * tests/test-avltreehash_list.c: Likewise.
92814         * tests/test-base64.c: Likewise.
92815         * tests/test-binary-io.c: Likewise.
92816         * tests/test-byteswap.c: Likewise.
92817         * tests/test-c-ctype.c: Likewise.
92818         * tests/test-c-strcasecmp.c: Likewise.
92819         * tests/test-c-strcasestr.c: Likewise.
92820         * tests/test-c-strncasecmp.c: Likewise.
92821         * tests/test-c-strstr.c: Likewise.
92822         * tests/test-canonicalize-lgpl.c: Likewise.
92823         * tests/test-canonicalize.c: Likewise.
92824         * tests/test-carray_list.c: Likewise.
92825         * tests/test-ceilf.c: Likewise.
92826         * tests/test-ceill.c: Likewise.
92827         * tests/test-count-one-bits.c: Likewise.
92828         * tests/test-crc.c: Likewise.
92829         * tests/test-dirname.c: Likewise.
92830         * tests/test-fbufmode.c: Likewise.
92831         * tests/test-fcntl.c: Likewise.
92832         * tests/test-fflush.c: Likewise.
92833         * tests/test-floorf.c: Likewise.
92834         * tests/test-floorl.c: Likewise.
92835         * tests/test-fopen.c: Likewise.
92836         * tests/test-fprintf-posix.c: Likewise.
92837         * tests/test-fprintf-posix.h: Likewise.
92838         * tests/test-fpurge.c: Likewise.
92839         * tests/test-freadable.c: Likewise.
92840         * tests/test-freadahead.c: Likewise.
92841         * tests/test-freading.c: Likewise.
92842         * tests/test-freopen.c: Likewise.
92843         * tests/test-frexp.c: Likewise.
92844         * tests/test-frexpl.c: Likewise.
92845         * tests/test-fseek.c: Likewise.
92846         * tests/test-fseeko.c: Likewise.
92847         * tests/test-fseterr.c: Likewise.
92848         * tests/test-fstrcmp.c: Likewise.
92849         * tests/test-ftell.c: Likewise.
92850         * tests/test-ftello.c: Likewise.
92851         * tests/test-fwritable.c: Likewise.
92852         * tests/test-fwriting.c: Likewise.
92853         * tests/test-getaddrinfo.c: Likewise.
92854         * tests/test-getpass.c: Likewise.
92855         * tests/test-gettimeofday.c: Likewise.
92856         * tests/test-hmac-md5.c: Likewise.
92857         * tests/test-hmac-sha1.c: Likewise.
92858         * tests/test-iconv.c: Likewise.
92859         * tests/test-iconvme.c: Likewise.
92860         * tests/test-inttypes.c: Likewise.
92861         * tests/test-isnan.c: Likewise.
92862         * tests/test-isnanf.c: Likewise.
92863         * tests/test-isnanl-nolibm.c: Likewise.
92864         * tests/test-isnanl.c: Likewise.
92865         * tests/test-isnanl.h: Likewise.
92866         * tests/test-ldexpl.c: Likewise.
92867         * tests/test-linked_list.c: Likewise.
92868         * tests/test-linkedhash_list.c: Likewise.
92869         * tests/test-locale.c: Likewise.
92870         * tests/test-localename.c: Likewise.
92871         * tests/test-lock.c: Likewise.
92872         * tests/test-lseek.c: Likewise.
92873         * tests/test-malloca.c: Likewise.
92874         * tests/test-math.c: Likewise.
92875         * tests/test-mbscasecmp.c: Likewise.
92876         * tests/test-mbscasestr1.c: Likewise.
92877         * tests/test-mbscasestr2.c: Likewise.
92878         * tests/test-mbscasestr3.c: Likewise.
92879         * tests/test-mbscasestr4.c: Likewise.
92880         * tests/test-mbschr.c: Likewise.
92881         * tests/test-mbscspn.c: Likewise.
92882         * tests/test-mbsncasecmp.c: Likewise.
92883         * tests/test-mbspbrk.c: Likewise.
92884         * tests/test-mbspcasecmp.c: Likewise.
92885         * tests/test-mbsrchr.c: Likewise.
92886         * tests/test-mbsspn.c: Likewise.
92887         * tests/test-mbsstr1.c: Likewise.
92888         * tests/test-mbsstr2.c: Likewise.
92889         * tests/test-mbsstr3.c: Likewise.
92890         * tests/test-md5.c: Likewise.
92891         * tests/test-memmem.c: Likewise.
92892         * tests/test-netinet_in.c: Likewise.
92893         * tests/test-open.c: Likewise.
92894         * tests/test-printf-frexp.c: Likewise.
92895         * tests/test-printf-frexpl.c: Likewise.
92896         * tests/test-printf-posix.c: Likewise.
92897         * tests/test-printf-posix.h: Likewise.
92898         * tests/test-rbtree_list.c: Likewise.
92899         * tests/test-rbtree_oset.c: Likewise.
92900         * tests/test-rbtreehash_list.c: Likewise.
92901         * tests/test-read-file.c: Likewise.
92902         * tests/test-rijndael.c: Likewise.
92903         * tests/test-search.c: Likewise.
92904         * tests/test-signbit.c: Likewise.
92905         * tests/test-sleep.c: Likewise.
92906         * tests/test-snprintf-posix.c: Likewise.
92907         * tests/test-snprintf-posix.h: Likewise.
92908         * tests/test-snprintf.c: Likewise.
92909         * tests/test-sprintf-posix.c: Likewise.
92910         * tests/test-sprintf-posix.h: Likewise.
92911         * tests/test-stat-time.c: Likewise.
92912         * tests/test-stdbool.c: Likewise.
92913         * tests/test-stdint.c: Likewise.
92914         * tests/test-stdio.c: Likewise.
92915         * tests/test-stdlib.c: Likewise.
92916         * tests/test-stpncpy.c: Likewise.
92917         * tests/test-strcasestr.c: Likewise.
92918         * tests/test-striconv.c: Likewise.
92919         * tests/test-striconveh.c: Likewise.
92920         * tests/test-striconveha.c: Likewise.
92921         * tests/test-string.c: Likewise.
92922         * tests/test-sys_select.c: Likewise.
92923         * tests/test-sys_socket.c: Likewise.
92924         * tests/test-sys_stat.c: Likewise.
92925         * tests/test-sys_time.c: Likewise.
92926         * tests/test-sysexits.c: Likewise.
92927         * tests/test-time.c: Likewise.
92928         * tests/test-tls.c: Likewise.
92929         * tests/test-trunc.c: Likewise.
92930         * tests/test-truncf.c: Likewise.
92931         * tests/test-truncl.c: Likewise.
92932         * tests/test-unistd.c: Likewise.
92933         * tests/test-vasnprintf-posix.c: Likewise.
92934         * tests/test-vasnprintf-posix2.c: Likewise.
92935         * tests/test-vasnprintf.c: Likewise.
92936         * tests/test-vasprintf-posix.c: Likewise.
92937         * tests/test-vasprintf.c: Likewise.
92938         * tests/test-verify.c: Likewise.
92939         * tests/test-vfprintf-posix.c: Likewise.
92940         * tests/test-vprintf-posix.c: Likewise.
92941         * tests/test-vsnprintf-posix.c: Likewise.
92942         * tests/test-vsnprintf.c: Likewise.
92943         * tests/test-vsprintf-posix.c: Likewise.
92944         * tests/test-wchar.c: Likewise.
92945         * tests/test-wctype.c: Likewise.
92946         * tests/test-wcwidth.c: Likewise.
92947         * tests/test-xstrtol.c: Likewise.
92948         * tests/test-xvasprintf.c: Likewise.
92949         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
92950         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
92951         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
92952         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
92953         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
92954         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
92955         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
92956         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
92957         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
92958         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
92959         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
92960         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
92961         * tests/uniname/test-uninames.c: Likewise.
92962         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
92963         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
92964         * tests/unistdio/test-u16-printf1.h: Likewise.
92965         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
92966         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
92967         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
92968         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
92969         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
92970         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
92971         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
92972         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
92973         * tests/unistdio/test-u32-printf1.h: Likewise.
92974         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
92975         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
92976         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
92977         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
92978         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
92979         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
92980         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
92981         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
92982         * tests/unistdio/test-u8-printf1.h: Likewise.
92983         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
92984         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
92985         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
92986         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
92987         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
92988         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
92989         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
92990         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
92991         * tests/unistdio/test-ulc-printf1.h: Likewise.
92992         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
92993         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
92994         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
92995         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
92996         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
92997         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
92998         * tests/uniwidth/test-u16-strwidth.c: Likewise.
92999         * tests/uniwidth/test-u16-width.c: Likewise.
93000         * tests/uniwidth/test-u32-strwidth.c: Likewise.
93001         * tests/uniwidth/test-u32-width.c: Likewise.
93002         * tests/uniwidth/test-u8-strwidth.c: Likewise.
93003         * tests/uniwidth/test-u8-width.c: Likewise.
93004         * tests/uniwidth/test-uc_width.c: Likewise.
93005         * config/srclist-update: Likewise.
93006         (fixlicense): Update to GPLv3+.
93008         Change copyright notice from LGPLv2.1+ to LGPLv3+.
93009         * tests/test-tsearch.c: Change copyright notice.
93011         Change copyright notice from LGPLv2.0+ to LGPLv3+.
93012         * lib/c-strcaseeq.h: Change copyright notice.
93013         * lib/streq.h: Likewise.
93014         * lib/uniconv.h: Likewise.
93015         * lib/uniconv/u-conv-from-enc.h: Likewise.
93016         * lib/uniconv/u-conv-to-enc.h: Likewise.
93017         * lib/uniconv/u-strconv-from-enc.h: Likewise.
93018         * lib/uniconv/u-strconv-to-enc.h: Likewise.
93019         * lib/uniconv/u16-conv-from-enc.c: Likewise.
93020         * lib/uniconv/u16-conv-to-enc.c: Likewise.
93021         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
93022         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
93023         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
93024         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
93025         * lib/uniconv/u32-conv-from-enc.c: Likewise.
93026         * lib/uniconv/u32-conv-to-enc.c: Likewise.
93027         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
93028         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
93029         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
93030         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
93031         * lib/uniconv/u8-conv-from-enc.c: Likewise.
93032         * lib/uniconv/u8-conv-to-enc.c: Likewise.
93033         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
93034         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
93035         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
93036         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
93037         * lib/uniname.h: Likewise.
93038         * lib/uniname/uniname.c: Likewise.
93039         * lib/unistdio.h: Likewise.
93040         * lib/unistdio/u-asnprintf.h: Likewise.
93041         * lib/unistdio/u-asprintf.h: Likewise.
93042         * lib/unistdio/u-printf-args.c: Likewise.
93043         * lib/unistdio/u-printf-args.h: Likewise.
93044         * lib/unistdio/u-printf-parse.h: Likewise.
93045         * lib/unistdio/u-snprintf.h: Likewise.
93046         * lib/unistdio/u-sprintf.h: Likewise.
93047         * lib/unistdio/u-vasprintf.h: Likewise.
93048         * lib/unistdio/u-vsnprintf.h: Likewise.
93049         * lib/unistdio/u-vsprintf.h: Likewise.
93050         * lib/unistdio/u16-asnprintf.c: Likewise.
93051         * lib/unistdio/u16-asprintf.c: Likewise.
93052         * lib/unistdio/u16-printf-parse.c: Likewise.
93053         * lib/unistdio/u16-snprintf.c: Likewise.
93054         * lib/unistdio/u16-sprintf.c: Likewise.
93055         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
93056         * lib/unistdio/u16-u16-asprintf.c: Likewise.
93057         * lib/unistdio/u16-u16-snprintf.c: Likewise.
93058         * lib/unistdio/u16-u16-sprintf.c: Likewise.
93059         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
93060         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
93061         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
93062         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
93063         * lib/unistdio/u16-vasnprintf.c: Likewise.
93064         * lib/unistdio/u16-vasprintf.c: Likewise.
93065         * lib/unistdio/u16-vsnprintf.c: Likewise.
93066         * lib/unistdio/u16-vsprintf.c: Likewise.
93067         * lib/unistdio/u32-asnprintf.c: Likewise.
93068         * lib/unistdio/u32-asprintf.c: Likewise.
93069         * lib/unistdio/u32-printf-parse.c: Likewise.
93070         * lib/unistdio/u32-snprintf.c: Likewise.
93071         * lib/unistdio/u32-sprintf.c: Likewise.
93072         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
93073         * lib/unistdio/u32-u32-asprintf.c: Likewise.
93074         * lib/unistdio/u32-u32-snprintf.c: Likewise.
93075         * lib/unistdio/u32-u32-sprintf.c: Likewise.
93076         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
93077         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
93078         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
93079         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
93080         * lib/unistdio/u32-vasnprintf.c: Likewise.
93081         * lib/unistdio/u32-vasprintf.c: Likewise.
93082         * lib/unistdio/u32-vsnprintf.c: Likewise.
93083         * lib/unistdio/u32-vsprintf.c: Likewise.
93084         * lib/unistdio/u8-asnprintf.c: Likewise.
93085         * lib/unistdio/u8-asprintf.c: Likewise.
93086         * lib/unistdio/u8-printf-parse.c: Likewise.
93087         * lib/unistdio/u8-snprintf.c: Likewise.
93088         * lib/unistdio/u8-sprintf.c: Likewise.
93089         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
93090         * lib/unistdio/u8-u8-asprintf.c: Likewise.
93091         * lib/unistdio/u8-u8-snprintf.c: Likewise.
93092         * lib/unistdio/u8-u8-sprintf.c: Likewise.
93093         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
93094         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
93095         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
93096         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
93097         * lib/unistdio/u8-vasnprintf.c: Likewise.
93098         * lib/unistdio/u8-vasprintf.c: Likewise.
93099         * lib/unistdio/u8-vsnprintf.c: Likewise.
93100         * lib/unistdio/u8-vsprintf.c: Likewise.
93101         * lib/unistdio/ulc-asnprintf.c: Likewise.
93102         * lib/unistdio/ulc-asprintf.c: Likewise.
93103         * lib/unistdio/ulc-printf-parse.c: Likewise.
93104         * lib/unistdio/ulc-snprintf.c: Likewise.
93105         * lib/unistdio/ulc-sprintf.c: Likewise.
93106         * lib/unistdio/ulc-vasnprintf.c: Likewise.
93107         * lib/unistdio/ulc-vasprintf.c: Likewise.
93108         * lib/unistdio/ulc-vsnprintf.c: Likewise.
93109         * lib/unistdio/ulc-vsprintf.c: Likewise.
93110         * lib/unistr.h: Likewise.
93111         * lib/unistr/u-cpy-alloc.h: Likewise.
93112         * lib/unistr/u-cpy.h: Likewise.
93113         * lib/unistr/u-endswith.h: Likewise.
93114         * lib/unistr/u-move.h: Likewise.
93115         * lib/unistr/u-set.h: Likewise.
93116         * lib/unistr/u-startswith.h: Likewise.
93117         * lib/unistr/u-stpcpy.h: Likewise.
93118         * lib/unistr/u-stpncpy.h: Likewise.
93119         * lib/unistr/u-strcat.h: Likewise.
93120         * lib/unistr/u-strcpy.h: Likewise.
93121         * lib/unistr/u-strcspn.h: Likewise.
93122         * lib/unistr/u-strdup.h: Likewise.
93123         * lib/unistr/u-strlen.h: Likewise.
93124         * lib/unistr/u-strncat.h: Likewise.
93125         * lib/unistr/u-strncpy.h: Likewise.
93126         * lib/unistr/u-strnlen.h: Likewise.
93127         * lib/unistr/u-strpbrk.h: Likewise.
93128         * lib/unistr/u-strspn.h: Likewise.
93129         * lib/unistr/u-strstr.h: Likewise.
93130         * lib/unistr/u-strtok.h: Likewise.
93131         * lib/unistr/u16-check.c: Likewise.
93132         * lib/unistr/u16-chr.c: Likewise.
93133         * lib/unistr/u16-cmp.c: Likewise.
93134         * lib/unistr/u16-cpy-alloc.c: Likewise.
93135         * lib/unistr/u16-cpy.c: Likewise.
93136         * lib/unistr/u16-endswith.c: Likewise.
93137         * lib/unistr/u16-mblen.c: Likewise.
93138         * lib/unistr/u16-mbsnlen.c: Likewise.
93139         * lib/unistr/u16-mbtouc-aux.c: Likewise.
93140         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
93141         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
93142         * lib/unistr/u16-mbtouc.c: Likewise.
93143         * lib/unistr/u16-mbtoucr.c: Likewise.
93144         * lib/unistr/u16-move.c: Likewise.
93145         * lib/unistr/u16-next.c: Likewise.
93146         * lib/unistr/u16-prev.c: Likewise.
93147         * lib/unistr/u16-set.c: Likewise.
93148         * lib/unistr/u16-startswith.c: Likewise.
93149         * lib/unistr/u16-stpcpy.c: Likewise.
93150         * lib/unistr/u16-stpncpy.c: Likewise.
93151         * lib/unistr/u16-strcat.c: Likewise.
93152         * lib/unistr/u16-strchr.c: Likewise.
93153         * lib/unistr/u16-strcmp.c: Likewise.
93154         * lib/unistr/u16-strcpy.c: Likewise.
93155         * lib/unistr/u16-strcspn.c: Likewise.
93156         * lib/unistr/u16-strdup.c: Likewise.
93157         * lib/unistr/u16-strlen.c: Likewise.
93158         * lib/unistr/u16-strmblen.c: Likewise.
93159         * lib/unistr/u16-strmbtouc.c: Likewise.
93160         * lib/unistr/u16-strncat.c: Likewise.
93161         * lib/unistr/u16-strncmp.c: Likewise.
93162         * lib/unistr/u16-strncpy.c: Likewise.
93163         * lib/unistr/u16-strnlen.c: Likewise.
93164         * lib/unistr/u16-strpbrk.c: Likewise.
93165         * lib/unistr/u16-strrchr.c: Likewise.
93166         * lib/unistr/u16-strspn.c: Likewise.
93167         * lib/unistr/u16-strstr.c: Likewise.
93168         * lib/unistr/u16-strtok.c: Likewise.
93169         * lib/unistr/u16-to-u32.c: Likewise.
93170         * lib/unistr/u16-to-u8.c: Likewise.
93171         * lib/unistr/u16-uctomb-aux.c: Likewise.
93172         * lib/unistr/u16-uctomb.c: Likewise.
93173         * lib/unistr/u32-check.c: Likewise.
93174         * lib/unistr/u32-chr.c: Likewise.
93175         * lib/unistr/u32-cmp.c: Likewise.
93176         * lib/unistr/u32-cpy-alloc.c: Likewise.
93177         * lib/unistr/u32-cpy.c: Likewise.
93178         * lib/unistr/u32-endswith.c: Likewise.
93179         * lib/unistr/u32-mblen.c: Likewise.
93180         * lib/unistr/u32-mbsnlen.c: Likewise.
93181         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
93182         * lib/unistr/u32-mbtouc.c: Likewise.
93183         * lib/unistr/u32-mbtoucr.c: Likewise.
93184         * lib/unistr/u32-move.c: Likewise.
93185         * lib/unistr/u32-next.c: Likewise.
93186         * lib/unistr/u32-prev.c: Likewise.
93187         * lib/unistr/u32-set.c: Likewise.
93188         * lib/unistr/u32-startswith.c: Likewise.
93189         * lib/unistr/u32-stpcpy.c: Likewise.
93190         * lib/unistr/u32-stpncpy.c: Likewise.
93191         * lib/unistr/u32-strcat.c: Likewise.
93192         * lib/unistr/u32-strchr.c: Likewise.
93193         * lib/unistr/u32-strcmp.c: Likewise.
93194         * lib/unistr/u32-strcpy.c: Likewise.
93195         * lib/unistr/u32-strcspn.c: Likewise.
93196         * lib/unistr/u32-strdup.c: Likewise.
93197         * lib/unistr/u32-strlen.c: Likewise.
93198         * lib/unistr/u32-strmblen.c: Likewise.
93199         * lib/unistr/u32-strmbtouc.c: Likewise.
93200         * lib/unistr/u32-strncat.c: Likewise.
93201         * lib/unistr/u32-strncmp.c: Likewise.
93202         * lib/unistr/u32-strncpy.c: Likewise.
93203         * lib/unistr/u32-strnlen.c: Likewise.
93204         * lib/unistr/u32-strpbrk.c: Likewise.
93205         * lib/unistr/u32-strrchr.c: Likewise.
93206         * lib/unistr/u32-strspn.c: Likewise.
93207         * lib/unistr/u32-strstr.c: Likewise.
93208         * lib/unistr/u32-strtok.c: Likewise.
93209         * lib/unistr/u32-to-u16.c: Likewise.
93210         * lib/unistr/u32-to-u8.c: Likewise.
93211         * lib/unistr/u32-uctomb.c: Likewise.
93212         * lib/unistr/u8-check.c: Likewise.
93213         * lib/unistr/u8-chr.c: Likewise.
93214         * lib/unistr/u8-cmp.c: Likewise.
93215         * lib/unistr/u8-cpy-alloc.c: Likewise.
93216         * lib/unistr/u8-cpy.c: Likewise.
93217         * lib/unistr/u8-endswith.c: Likewise.
93218         * lib/unistr/u8-mblen.c: Likewise.
93219         * lib/unistr/u8-mbsnlen.c: Likewise.
93220         * lib/unistr/u8-mbtouc-aux.c: Likewise.
93221         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
93222         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
93223         * lib/unistr/u8-mbtouc.c: Likewise.
93224         * lib/unistr/u8-mbtoucr.c: Likewise.
93225         * lib/unistr/u8-move.c: Likewise.
93226         * lib/unistr/u8-next.c: Likewise.
93227         * lib/unistr/u8-prev.c: Likewise.
93228         * lib/unistr/u8-set.c: Likewise.
93229         * lib/unistr/u8-startswith.c: Likewise.
93230         * lib/unistr/u8-stpcpy.c: Likewise.
93231         * lib/unistr/u8-stpncpy.c: Likewise.
93232         * lib/unistr/u8-strcat.c: Likewise.
93233         * lib/unistr/u8-strchr.c: Likewise.
93234         * lib/unistr/u8-strcmp.c: Likewise.
93235         * lib/unistr/u8-strcpy.c: Likewise.
93236         * lib/unistr/u8-strcspn.c: Likewise.
93237         * lib/unistr/u8-strdup.c: Likewise.
93238         * lib/unistr/u8-strlen.c: Likewise.
93239         * lib/unistr/u8-strmblen.c: Likewise.
93240         * lib/unistr/u8-strmbtouc.c: Likewise.
93241         * lib/unistr/u8-strncat.c: Likewise.
93242         * lib/unistr/u8-strncmp.c: Likewise.
93243         * lib/unistr/u8-strncpy.c: Likewise.
93244         * lib/unistr/u8-strnlen.c: Likewise.
93245         * lib/unistr/u8-strpbrk.c: Likewise.
93246         * lib/unistr/u8-strrchr.c: Likewise.
93247         * lib/unistr/u8-strspn.c: Likewise.
93248         * lib/unistr/u8-strstr.c: Likewise.
93249         * lib/unistr/u8-strtok.c: Likewise.
93250         * lib/unistr/u8-to-u16.c: Likewise.
93251         * lib/unistr/u8-to-u32.c: Likewise.
93252         * lib/unistr/u8-uctomb-aux.c: Likewise.
93253         * lib/unistr/u8-uctomb.c: Likewise.
93254         * lib/unitypes.h: Likewise.
93255         * lib/uniwidth.h: Likewise.
93256         * lib/uniwidth/cjk.h: Likewise.
93257         * lib/uniwidth/u16-strwidth.c: Likewise.
93258         * lib/uniwidth/u16-width.c: Likewise.
93259         * lib/uniwidth/u32-strwidth.c: Likewise.
93260         * lib/uniwidth/u32-width.c: Likewise.
93261         * lib/uniwidth/u8-strwidth.c: Likewise.
93262         * lib/uniwidth/u8-width.c: Likewise.
93263         * lib/uniwidth/width.c: Likewise.
93265 2007-10-07  Bruno Haible  <bruno@clisp.org>
93267         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
93268         The file is still under LGPL (see modules/inttypes).
93270 2007-10-06  Bruno Haible  <bruno@clisp.org>
93272         * modules/trunc (Dependencies): Add 'extensions'.
93273         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
93274         Reported by Ben Pfaff <blp@gnu.org>.
93276 2007-10-06  Bruno Haible  <bruno@clisp.org>
93278         * modules/freopen-tests: New file.
93279         * tests/test-freopen.c: New file.
93281         * modules/fopen-tests: New file.
93282         * tests/test-fopen.c: New file.
93284         * modules/fopen: New file.
93285         * lib/fopen.c: New file.
93286         * m4/fopen.m4: New file.
93287         * modules/freopen: New file.
93288         * lib/freopen.c: New file.
93289         * m4/freopen.m4: New file.
93290         * lib/stdio.in.h (fopen, freopen): New declarations.
93291         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
93292         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
93293         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
93294         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
93295         * doc/functions/fopen.texi: Mention the 'fopen' module.
93296         * doc/functions/freopen.texi: Mention the 'freopen' module.
93298 2007-10-06  Bruno Haible  <bruno@clisp.org>
93300         * modules/open-tests: New file.
93301         * tests/test-open.c: New file.
93303         * modules/open: New file.
93304         * lib/open.c: New file.
93305         * m4/open.m4: New file.
93306         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
93307         lib/open.c does.
93308         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
93309         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
93310         macros.
93311         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
93312         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
93313         REPLACE_OPEN.
93314         * doc/functions/open.texi: Mention the 'open' module.
93316 2007-10-04  Bruno Haible  <bruno@clisp.org>
93318         * modules/ceill-tests: New file.
93319         * tests/test-ceill.c: New file.
93321         * modules/ceill: New file.
93322         * lib/ceill.c: Replace entire file.
93323         * m4/ceill.m4: New file.
93324         * lib/math.in.h (ceill): Replace declaration.
93325         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
93326         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
93327         * doc/functions/ceill.texi: Mention the 'ceill' module.
93328         * modules/mathl (Files): Remove lib/ceill.c.
93329         (Depends-on): Add ceill.
93331 2007-10-04  Bruno Haible  <bruno@clisp.org>
93333         * modules/ceilf-tests: New file.
93334         * tests/test-ceilf.c: New file.
93336         * modules/ceilf: New file.
93337         * lib/ceil.c: New file.
93338         * lib/ceilf.c: New file.
93339         * m4/ceilf.m4: New file.
93340         * lib/math.in.h (ceilf): New declaration.
93341         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
93342         HAVE_DECL_CEILF.
93343         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
93344         HAVE_DECL_CEILF.
93345         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
93347 2007-10-04  Bruno Haible  <bruno@clisp.org>
93349         * modules/floorl-tests: New file.
93350         * tests/test-floorl.c: New file.
93352         * modules/floorl: New file.
93353         * lib/floorl.c: Replace entire file.
93354         * m4/floorl.m4: New file.
93355         * lib/math.in.h (floorl): Replace declaration.
93356         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
93357         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
93358         * doc/functions/floorl.texi: Mention the 'floorl' module.
93359         * modules/mathl (Files): Remove lib/floorl.c.
93360         (Depends-on): Add floorl.
93362 2007-10-04  Bruno Haible  <bruno@clisp.org>
93364         * modules/floorf-tests: New file.
93365         * tests/test-floorf.c: New file.
93367         * modules/floorf: New file.
93368         * lib/floor.c: New file.
93369         * lib/floorf.c: New file.
93370         * m4/floorf.m4: New file.
93371         * lib/math.in.h (floorf): New declaration.
93372         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
93373         HAVE_DECL_FLOORF.
93374         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
93375         HAVE_DECL_FLOORF.
93376         * doc/functions/floorf.texi: Mention the 'floorf' module.
93378 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
93379             Bruno Haible  <bruno@clisp.org>
93381         Advertise for the Git server instead of the CVS server.
93382         * doc/gnulib-intro.texi (Steady Development): Mention the Git
93383         repository instead of the CVS one.
93384         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
93385         about all VCS systems generically.
93386         * doc/gnulib.texi (Introduction): Capitalize `Git'.
93388 2007-10-04  Bruno Haible  <bruno@clisp.org>
93390         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
93391         means.
93392         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
93394 2007-10-04  Bruno Haible  <bruno@clisp.org>
93396         * modules/truncl-tests: New file.
93397         * tests/test-truncl.c: New file.
93399         * modules/truncl: New file.
93400         * lib/truncl.c: New file.
93401         * m4/truncl.m4: New file.
93402         * lib/math.in.h (truncl): New declaration.
93403         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
93404         HAVE_DECL_TRUNCL.
93405         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
93406         HAVE_DECL_TRUNCL.
93407         * doc/functions/truncl.texi: Mention the 'truncl' module.
93409 2007-10-04  Bruno Haible  <bruno@clisp.org>
93411         * modules/truncf-tests: New file.
93412         * tests/test-truncf.c: New file.
93414         * modules/truncf: New file.
93415         * lib/trunc.c: Make paramerizable through USE_* macros.
93416         * lib/truncf.c: New file.
93417         * m4/truncf.m4: New file.
93418         * lib/math.in.h (truncf): New declaration.
93419         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
93420         HAVE_DECL_TRUNCF.
93421         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
93422         HAVE_DECL_TRUNCF.
93423         * doc/functions/truncf.texi: Mention the 'truncf' module.
93425 2007-10-03  Bruno Haible  <bruno@clisp.org>
93427         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
93428         augmentation also for tests modules.
93429         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
93430         * modules/atexit-tests (Makefile.am): Likewise.
93431         * modules/binary-io-tests (Makefile.am): Likewise.
93432         * modules/c-strcase-tests (Makefile.am): Likewise.
93433         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
93434         * modules/canonicalize-tests (Makefile.am): Likewise.
93435         * modules/closein-tests (Makefile.am): Likewise.
93436         * modules/fprintf-posix-tests (Makefile.am): Likewise.
93437         * modules/freadahead-tests (Makefile.am): Likewise.
93438         * modules/fseek-tests (Makefile.am): Likewise.
93439         * modules/fseeko-tests (Makefile.am): Likewise.
93440         * modules/ftell-tests (Makefile.am): Likewise.
93441         * modules/ftello-tests (Makefile.am): Likewise.
93442         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
93443         * modules/isnanl-tests (Makefile.am): Likewise.
93444         * modules/lseek-tests (Makefile.am): Likewise.
93445         * modules/mbscasecmp-tests (Makefile.am): Likewise.
93446         * modules/mbscasestr-tests (Makefile.am): Likewise.
93447         * modules/mbschr-tests (Makefile.am): Likewise.
93448         * modules/mbscspn-tests (Makefile.am): Likewise.
93449         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
93450         * modules/mbspbrk-tests (Makefile.am): Likewise.
93451         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
93452         * modules/mbsrchr-tests (Makefile.am): Likewise.
93453         * modules/mbsspn-tests (Makefile.am): Likewise.
93454         * modules/mbsstr-tests (Makefile.am): Likewise.
93455         * modules/printf-posix-tests (Makefile.am): Likewise.
93456         * modules/snprintf-posix-tests (Makefile.am): Likewise.
93457         * modules/sprintf-posix-tests (Makefile.am): Likewise.
93458         * modules/tsearch-tests (Makefile.am): Likewise.
93459         * modules/uniname/uniname-tests (Makefile.am): Likewise.
93460         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
93461         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
93462         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
93463         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
93464         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
93465         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
93466         * modules/vprintf-posix-tests (Makefile.am): Likewise.
93467         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
93468         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
93469         * modules/xstrtoimax-tests (Makefile.am): Likewise.
93470         * modules/xstrtol-tests (Makefile.am): Likewise.
93471         * modules/xstrtoumax-tests (Makefile.am): Likewise.
93472         * modules/yesno-tests (Makefile.am): Likewise.
93474 2007-10-03  Bruno Haible  <bruno@clisp.org>
93476         * modules/trunc-tests: New file.
93477         * tests/test-trunc.c: New file.
93479         * modules/trunc: New file.
93480         * lib/trunc.c: New file.
93481         * m4/trunc.m4: New file.
93482         * lib/math.in.h (trunc): New declaration.
93483         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
93484         HAVE_DECL_TRUNC.
93485         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
93486         HAVE_DECL_TRUNC.
93487         * doc/functions/trunc.texi: Mention the 'trunc' module.
93489 2007-10-03  Bruno Haible  <bruno@clisp.org>
93491         * tests/test-fpending.c: New file, mostly copied
93492         from coreutils/lib/t-fpending.c.
93493         * modules/fpending-tests: New file.
93495 2007-10-03  Bruno Haible  <bruno@clisp.org>
93497         Port the stdio extensions to QNX (untested).
93498         * lib/fseterr.c (fseterr): Add support for QNX.
93499         * lib/fbufmode.c (fbufmode): Likewise.
93500         * lib/freadable.c (freadable): Likewise.
93501         * lib/fwritable.c (fwritable): Likewise.
93502         * lib/freading.c (freading): Likewise.
93503         * lib/fwriting.c (fwriting): Likewise.
93504         * lib/freadahead.c (freadahed): Likewise.
93505         * lib/fpurge.c (fpurge): Likewise.
93506         * lib/fseeko.c (rpl_fseeko): Likewise.
93508 2007-10-03  Bruno Haible  <bruno@clisp.org>
93509             Jim Meyering  <jim@meyering.net>
93510             Eric Blake  <ebb9@byu.net>
93512         * doc/relocatable.texi: Use @command instead of @program.
93514 2007-10-02  Jim Meyering  <jim@meyering.net>
93516         Perform one more "_.h" -> ".in.h" substitution.
93517         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
93518         instead of unistd_.h here, too.
93520 2007-10-01  Bruno Haible  <bruno@clisp.org>
93522         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
93523         Needed for the alloca-opt module.
93525 2007-09-30  Bruno Haible  <bruno@clisp.org>
93527         * lib/alloca.in.h: Renamed from lib/alloca_.h.
93528         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
93529         alloca_.h.
93530         * lib/argz.in.h: Renamed from lib/argz_.h.
93531         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
93532         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
93533         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
93534         byteswap_.h.
93535         * lib/dirent.in.h: Renamed from lib/dirent_.h.
93536         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
93537         dirent_.h.
93538         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
93539         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
93540         fcntl_.h.
93541         * lib/float.in.h: Renamed from lib/float_.h.
93542         * modules/float (Files, Makefile.am): Use float.in.h instead of
93543         float_.h.
93544         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
93545         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
93546         fnmatch_.h.
93547         * lib/getopt.in.h: Renamed from lib/getopt_.h.
93548         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
93549         getopt_.h.
93550         * lib/glob.in.h: Renamed from lib/glob_.h.
93551         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
93552         * lib/iconv.in.h: Renamed from lib/iconv_.h.
93553         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
93554         iconv_.h.
93555         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
93556         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
93557         inttypes_.h.
93558         * lib/locale.in.h: Renamed from lib/locale_.h.
93559         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
93560         locale_.h.
93561         * lib/math.in.h: Renamed from lib/math_.h.
93562         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
93563         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
93564         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
93565         of netinet_in_.h. Add dependency.
93566         * lib/poll.in.h: Renamed from lib/poll_.h.
93567         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
93568         * lib/search.in.h: Renamed from lib/search_.h.
93569         * modules/search (Files, Makefile.am): Use search.in.h instead of
93570         search_.h.
93571         * lib/signal.in.h: Renamed from lib/signal_.h.
93572         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
93573         _signal.h.
93574         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
93575         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
93576         stdbool_.h.
93577         * lib/stdint.in.h: Renamed from lib/stdint_.h.
93578         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
93579         stdint_.h.
93580         * lib/stdio.in.h: Renamed from lib/stdio_.h.
93581         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
93582         stdio_.h.
93583         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
93584         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
93585         stdlib_.h.
93586         * lib/string.in.h: Renamed from lib/string_.h.
93587         * modules/string (Files, Makefile.am): Use string.in.h instead of
93588         string_.h.
93589         * doc/gnulib-tool.texi (Initial import): Update.
93590         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
93591         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
93592         of sys_select_.h. Add dependency.
93593         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
93594         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
93595         of sys_socket_.h.
93596         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
93597         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
93598         sys_stat_.h.
93599         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
93600         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
93601         sys_time_.h.
93602         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
93603         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
93604         sysexits_.h.
93605         * lib/time.in.h: Renamed from lib/time_.h.
93606         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
93607         * lib/unistd.in.h: Renamed from lib/unistd_.h.
93608         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
93609         unistd_.h.
93610         * lib/wchar.in.h: Renamed from lib/wchar_.h.
93611         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
93612         wchar_.h.
93613         * lib/wctype.in.h: Renamed from lib/wctype_.h.
93614         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
93615         wctype_.h.
93616         * build-aux/bootstrap (slurp): Update.
93617         * lib/.cppi-disable: Update.
93619 2007-09-30  Bruno Haible  <bruno@clisp.org>
93621         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
93622         Needed on BeOS.
93624 2007-09-30  Bruno Haible  <bruno@clisp.org>
93626         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
93628 2007-09-29  Bruno Haible  <bruno@clisp.org>
93630         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
93632 2007-09-29  Bruno Haible  <bruno@clisp.org>
93634         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
93635         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
93636         * build-aux/install-reloc: Compile also areadlink.c.
93637         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
93639 2007-09-29  Bruno Haible  <bruno@clisp.org>
93641         * gnulib-tool (func_emit_initmacro_done): Indentation.
93643 2007-09-29  Bruno Haible  <bruno@clisp.org>
93645         * README: Add CVS checkout update instructions.
93646         Info from Bob Proulx <bob@proulx.com>.
93648 2007-09-28  Eric Blake  <ebb9@byu.net>
93650         Provide move-if-change.
93651         * build-aux/move-if-change: New file, based on best practice
93652         rather than any canonical upstream location.
93654 2007-09-28  Jim Meyering  <jim@meyering.net>
93656         Fix canonicalize loop-detection corner case.
93657         Do not attempt to stat the symlink values stored via seen_triple.
93658         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
93659         on linux-2.6.18, (but not 2.6.22).
93660         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
93661         triple_compare.  The former compares dev,ino,filename, while the latter
93662         would actually stat dirname(filename) when dev and ino were equal.
93663         * lib/hash-triple.c: Install <string.h>.
93664         (STREQ): Define.
93665         (triple_compare_ino_str): New function.
93666         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
93668 2007-09-28  Eric Blake  <ebb9@byu.net>
93670         Enforce that AC_REPLACE_FUNCS files exist.
93671         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
93672         override check for typos.
93674         Fix test-closein on Solaris 10.
93675         * tests/test-closein.c (main): Don't assume stdin can be inherited
93676         closed on all systems.
93677         * tests/test-closein.sh: Likewise.
93678         Reported by Piotr Tarnowski.
93680 2007-09-28  Jim Meyering  <jim@meyering.net>
93682         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
93684 2007-09-27  Jim Meyering  <jim@meyering.net>
93686         canonicalize: Avoid a false-positive cycle failure.
93687         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
93688         Sort.  Remove cycle-check.
93689         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
93690         not cycle-check.h.
93691         (seen_triple): New function.
93692         (canonicalize_filename_mode): Use it instead of cycle-check.
93693         * tests/test-canonicalize.c: Add a test for this bug.
93694         * tests/test-canonicalize.sh: Set up and run the test.
93696         New module, file-set, from coreutils.
93697         * modules/file-set: Define it.
93698         * lib/file-set.c, lib/file-set.h: Implement.
93700         New module, hash-triple, from coreutils.
93701         * modules/hash-triple: Define it.
93702         * lib/hash-triple.c, lib/hash-triple.h: Implement.
93704 2007-09-25  Eric Blake  <ebb9@byu.net>
93706         Fix strerror on Interix.
93707         * lib/string_.h (strerror): Declare replacement.
93708         * doc/functions/strerror.texi (strerror): Document the Interix
93709         shortcoming.
93710         * modules/string (Makefile.am): Support new hooks.
93711         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
93712         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
93713         gl_FUNC_STRERROR_SEPARATE.
93714         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
93715         * lib/strerror.c (rpl_strerror): Provide replacement.
93716         * modules/strerror (Depends-on): Add string.
93717         (configure.ac): Detect use of module.
93718         * tests/test-strerror.c: New file.
93719         * modules/strerror-tests: New test module.
93720         * modules/argp (Depends-on): Add strerror.
93721         * modules/error (Depends-on): Likewise.
93722         Reported by Martin Koeppe.
93724 2007-09-24  Bruno Haible  <bruno@clisp.org>
93726         * README: Update git instructions.
93728 2007-09-24  Eric Blake  <ebb9@byu.net>
93730         Revert fpending breakage from 2007-09-08.
93731         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
93732         __fpending.c.
93734 2007-09-24  Jim Meyering  <jim@meyering.net>
93736         filenamecat.c: Add a test.
93737         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
93738         showing how the function works when DIR is the empty string.
93740 2007-09-21  Simon Josefsson  <simon@josefsson.org>
93742         * tests/test-canonicalize.sh: Turn on executable bit.
93744 2007-09-19  Eric Blake  <ebb9@byu.net>
93746         * README: Update CVS instructions.
93748 2007-09-18  Bruno Haible  <bruno@clisp.org>
93750         * modules/areadlink: New file.
93751         * lib/areadlink.h (areadlink): New declaration.
93752         * lib/areadlink.c: New file, based on lib/xreadlink.c.
93754 2007-09-17  Jim Meyering  <jim@meyering.net>
93756         * lib/savewd.c (ESTALE) [!defined]: Define.
93757         Reported to be required on Interix by Martin Koeppe.
93759 2007-09-17  Bruno Haible  <bruno@clisp.org>
93761         * gnulib-tool (func_version): Use $version.
93763 2007-09-16  Bruno Haible  <bruno@clisp.org>
93765         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
93766         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
93767         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
93768         Reported by Greg Schafer <gschafer@zip.com.au>.
93770 2007-09-15  Bruno Haible  <bruno@clisp.org>
93772         * gnulib-tool (sed): Try a little harder to make bash understand the
93773         alias.
93774         Reported by Bruce Korb <bruce.korb@gmail.com>.
93776 2007-09-13  Eric Blake  <ebb9@byu.net>
93778         * ChangeLog: Remove conflict markers.
93780 2007-09-13  Simon Josefsson  <simon@josefsson.org>
93782         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
93783         Reported by Bruno Haible <bruno@clisp.org>.
93785 2007-09-12  Bruno Haible  <bruno@clisp.org>
93787         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
93788         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
93789         is not defined.
93791 2007-09-12  Eric Blake  <ebb9@byu.net>
93793         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
93794         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
93795         Autoconf definition.
93796         * modules/euidaccess (Depends-on): Add extensions, for
93797         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
93798         * modules/fnmatch (Depends-on): Likewise.
93799         * modules/getaddrinfo (Depends-on): Likewise.
93800         * modules/getdelim (Depends-on): Likewise.
93801         * modules/getline (Depends-on): Likewise.
93802         * modules/getsubopt (Depends-on): Likewise.
93803         * modules/gettext (Depends-on): Likewise.
93804         * modules/group-member (Depends-on): Likewise.
93805         * modules/mbchar (Depends-on): Likewise.
93806         * modules/memmem (Depends-on): Likewise.
93807         * modules/mempcpy (Depends-on): Likewise.
93808         * modules/memrchr (Depends-on): Likewise.
93809         * modules/pagealign_alloc (Depends-on): Likewise.
93810         * modules/readutmp (Depends-on): Likewise.
93811         * modules/stpcpy (Depends-on): Likewise.
93812         * modules/stpncpy (Depends-on): Likewise.
93813         * modules/strchrnul (Depends-on): Likewise.
93814         * modules/strndup (Depends-on): Likewise.
93815         * modules/strsep (Depends-on): Likewise.
93816         * modules/strverscmp (Depends-on): Likewise.
93817         * modules/vasprintf (Depends-on): Likewise.
93818         * modules/wcwidth (Depends-on): Likewise.
93819         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
93820         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
93821         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
93822         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
93823         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
93824         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
93825         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
93826         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
93827         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
93828         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
93829         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
93830         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
93831         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
93832         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
93833         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
93834         * m4/readutmp.m4 (gl_READUTMP): Likewise.
93835         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
93836         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
93837         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
93838         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
93839         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
93840         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
93841         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
93842         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
93843         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
93844         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
93845         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
93846         so that lock.m4 can be used in gettext without extensions module.
93848 2007-09-11  Bruno Haible  <bruno@clisp.org>
93850         * m4/isc-posix.m4: Remove file.
93851         Suggested by Eric Blake.
93853 2007-09-11  Eric Blake  <ebb9@byu.net>
93855         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
93857 2007-09-10  Bruno Haible  <bruno@clisp.org>
93859         * posix-modules: Fix typo in error message.
93860         Reported by Matt <mkraai@beckman.com>.
93862 2007-09-09  Bruno Haible  <bruno@clisp.org>
93864         * doc/functions/getdelim.texi: Update list of platforms lacking the
93865         function.
93866         * doc/functions/getline.texi: Likewise.
93868 2007-09-09  Jim Meyering  <jim@meyering.net>
93870         * lib/hash.c (hash_initialize): Detect calloc failure.
93871         Reported by Bruno Haible.
93873 2007-09-09  Bruno Haible  <bruno@clisp.org>
93875         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
93876         malloc or realloc fails.
93878 2007-09-09  Bruno Haible  <bruno@clisp.org>
93880         * modules/getcwd (Depends-on): Add malloc-posix.
93881         * modules/glob (Depends-on): Likewise.
93882         * modules/putenv (Depends-on): Likewise.
93883         * modules/strdup (Depends-on): Likewise.
93884         * modules/getdelim (Depends-on): Add realloc-posix.
93885         * modules/read-file (Depends-on): Likewise.
93887 2007-09-09  Bruno Haible  <bruno@clisp.org>
93889         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
93890         (gl_FUNC_MALLOC_POSIX): Require it.
93891         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
93892         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
93893         * modules/realloc (Files): Add m4/malloc.m4.
93894         * modules/calloc (Files): Likewise.
93896 2007-09-09  Bruno Haible  <bruno@clisp.org>
93898         * modules/malloc-posix: New file.
93899         * modules/malloc (Depends-on): Add malloc-posix.
93900         * lib/malloc.c: Include errno.h.
93901         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
93902         and a POSIX-compatible malloc into a single function. Set ENOMEM
93903         when returning NULL.
93904         * m4/malloc.m4: New file.
93905         * doc/functions/malloc.texi: Mention the malloc-posix module.
93906         * lib/stdlib_.h (malloc): New declaration.
93907         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
93908         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
93909         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
93910         and HAVE_MALLOC_POSIX.
93912 2007-09-09  Bruno Haible  <bruno@clisp.org>
93914         * modules/realloc-posix: New file.
93915         * modules/realloc (Depends-on): Add realloc-posix.
93916         * lib/realloc.c: Include errno.h.
93917         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
93918         and a POSIX-compatible realloc into a single function. Set ENOMEM
93919         when returning NULL.
93920         * m4/realloc.m4: New file.
93921         * doc/functions/realloc.texi: Mention the realloc-posix module.
93922         * lib/stdlib_.h (realloc): New declaration.
93923         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
93924         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
93925         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
93926         and HAVE_REALLOC_POSIX.
93928 2007-09-09  Bruno Haible  <bruno@clisp.org>
93930         * modules/calloc-posix: New file.
93931         * modules/calloc (Depends-on): Add calloc-posix.
93932         * lib/calloc.c: Include errno.h.
93933         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
93934         and a POSIX-compatible calloc into a single function. Set ENOMEM
93935         when returning NULL.
93936         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
93937         * doc/functions/calloc.texi: Mention the calloc-posix module.
93938         * lib/stdlib_.h (calloc): New declaration.
93939         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
93940         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
93941         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
93942         and HAVE_CALLOC_POSIX.
93944 2007-09-09  Bruno Haible  <bruno@clisp.org>
93946         Allow for modules to show an arbitrary notice.
93947         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
93948         * gnulib-tool: New option --extract-notice.
93949         (func_usage): Document it.
93950         (sed_extract_prog): Update.
93951         (func_get_notice): New function.
93952         (func_modules_notice): New function.
93953         (func_import, func_create_testdir): Invoke it.
93954         Suggested by Jim Meyering.
93956 2007-09-09  Bruno Haible  <bruno@clisp.org>
93958         * gnulib-tool: New options --verbose, --quiet.
93959         (func_usage): Document them.
93960         (verbose): New variable.
93961         (func_execute_command): New function.
93962         (func_import): Don't show the module list and the file list if
93963         $verbose < 0.
93964         (func_create_testdir): Likewise. Use func_execute_command.
93965         (func_create_megatestdir): Use func_execute_command.
93967 2007-09-08  Bruno Haible  <bruno@clisp.org>
93969         * gnulib-tool (func_import): Prefer rsync over wget when available,
93970         for fetching the PO files.
93972 2007-09-08  Bruno Haible  <bruno@clisp.org>
93974         * posix-modules: New file. Portions copied from gnulib-tool.
93975         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
93977 2007-09-08  Jim Meyering  <jim@meyering.net>
93979         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
93980         * lib/fpending.h: Rename from __fpending.h.
93981         * lib/fpending.c: Rename from __fpending.c.
93982         Include "fpending.h", not "__fpending.h".
93983         * lib/__fpending.h, lib/__fpending.c: Remove files.
93984         * modules/fpending (Files): Reflect new file names.
93985         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
93987 2007-09-08  Bruno Haible  <bruno@clisp.org>
93989         * m4/inttypes-h.m4: Remove stub file.
93991 2007-09-07  Simon Josefsson  <simon@josefsson.org>
93993         * doc/headers/stdint.texi: Discuss #include_next issue.
93995 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
93997         * build-aux/bootstrap: Remove obsolete comment about wget --help.
93999 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
94001         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
94002         in variable name.
94004 2007-09-03  Jim Meyering  <jim@meyering.net>
94006         New module: git-version-gen.
94007         * modules/git-version-gen: New file.
94009         Import changes from coreutils for bootstrap script.
94011         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
94013         bootstrap: uses rsync to download the .po files
94014         * build-aux/bootstrap (po_download_command_format): New global.
94015         (download_po_files): Use rsync.
94016         (update_po_files): Don't remove .po files after download,
94017         so future rsync runs can take advantage of the copies.
94019         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
94021         Solve the unnecessary-.po-file-regeneration problem once and for all.
94022         * build-aux/bootstrap (download_po_files): New function, renamed from
94023         get_translations.  Now, downloads, but doesn't update LINGUAS.
94024         (update_po_files): New function.
94026         bootstrap: Ignore more.
94027         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
94028         uniwidth to e.g., lib/.gitignore.
94029         (slurp): Handle the sys_stat_.h -> sys mapping, too.
94031         * build-aux/bootstrap: New setting: vc_ignore.
94032         (insert_sorted_if_absent): Create $file if absent.
94033         Adapt to new, possibly empty, list: $vc_ignore.
94035         bootstrap: generate more ignorable names
94036         * build-aux/bootstrap (slurp): When generating ignorable names,
94037         also map .sin to .sed, .gperf to .c, and .y to .c.
94039 2007-09-03  Jim Meyering  <jim@meyering.net>
94041         * build-aux/git-version-gen: New file, from coreutils.  For details, see
94042         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
94044 2007-09-02  Bruno Haible  <bruno@clisp.org>
94046         Fix mis-recognition of 'mcs' on QNX 6.
94047         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
94048         output contains the string "Mono".
94049         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
94050         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
94052 2007-09-01  Bruno Haible  <bruno@clisp.org>
94054         Fix collision between uniwidth/* and linebreak modules.
94055         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
94056         u32_width): Remove declarations.
94057         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
94058         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
94059         streq3, streq2, streq1, streq0): Remove functions.
94060         (STREQ): Remove macro.
94061         (is_cjk_encoding): Remove function.
94062         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
94063         (uc_width, u8_width, u16_width, u32_width): Remove functions.
94064         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
94065         * NEWS: Document the change.
94067 2007-09-01  Bruno Haible  <bruno@clisp.org>
94069         * lib/streq.h: Add double-inclusion guard.
94071 2007-09-01  Karl Berry  <karl@gnu.org>
94073         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
94075 2007-08-28  Jim Meyering  <jim@meyering.net>
94077         Rename mreadlink_with_size to areadlink_with_size.
94078         * NEWS: Document the change.
94079         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
94080         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
94081         * lib/mreadlink.h: Rename this to...
94082         * lib/areadlink.h: ...this.
94083         * modules/mreadlink-with-size: Rename this to...
94084         * modules/areadlink-with-size: ...this.
94085         * lib/canonicalize.c: Reflect the renaming.
94086         * modules/canonicalize: Likewise.
94088 2007-08-26  Bruno Haible  <bruno@clisp.org>
94090         * gnulib-tool (func_import): When deciding which files to remove,
94091         consider also dangling symbolic links.
94092         Reported by Eric Blake.
94094 2007-08-26  Bruno Haible  <bruno@clisp.org>
94096         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
94098 2007-08-23  Simon Josefsson  <simon@josefsson.org>
94100         * lib/readline.c: Don't include getline.h, the prototype is now
94101         found in stdio.h.
94103 2007-08-23  Jim Meyering  <jim@meyering.net>
94105         Getdelim touchup.
94106         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
94107         around the funlockfile call, since funlockfile never sets errno.
94108         Don't set errno upon failed realloc.
94110 2007-08-22  Eric Blake  <ebb9@byu.net>
94112         Getline touchups.
94113         * lib/getdelim.c (getdelim): Revert regression that required *n to
94114         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
94115         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
94116         getdelim, rather than whether implementation is missing.
94117         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
94118         * lib/stdio_.h (getline): Also declare if replacement is
94119         required.
94120         * doc/functions/getdelim.texi: New file.
94121         * doc/functions/getline.texi: Likewise.
94122         * doc/gnulib.texi (Function Substitutes): Add new files.
94123         Reported by Bruno Haible.
94125 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
94127         * users.txt: Add Guile.
94129 2007-08-22  Eric Blake  <ebb9@byu.net>
94131         * tests/test-getdelim.c (main): Use remove, not unlink.
94132         * tests/test-getline.c (main): Likewise.
94134         Move getline and getdelim into stdio.h, per POSIX 200x.
94135         * modules/getline (Files): Remove getline.h.
94136         (Depends-on): Add stdio.
94137         (configure.ac): Add module indicator.
94138         * modules/getdelim (Files): Remove getdelim.h.
94139         (Depends-on): Add stdio.
94140         (configure.ac): Add module indicator.
94141         * modules/stdio (Makefile.am): Work with new indicators.
94142         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
94143         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
94144         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
94145         * lib/getdelim.h: Delete.
94146         * lib/getline.h: Delete.
94147         * lib/stdio_.h (getdelim, getline): Declare.
94148         * modules/getdelim-tests: New module.
94149         * modules/getline-tests: Likewise.
94150         * tests/test-getdelim.c: New file.
94151         * tests/test-getline.c: Likewise.
94152         * NEWS: Document the change.
94153         * lib/getline.c: Update choice of header.
94154         * lib/csharpcomp.c: Likewise.
94155         * lib/getpass.c: Likewise.
94156         * lib/javacomp.c: Likewise.
94157         * lib/javaversion.c: Likewise.
94158         * lib/yesno.c: Likewise.
94159         * lib/getdelim.c: Likewise.
94160         (getdelim): Set errno on failure, and avoid memory leak.
94162 2007-08-19  Bruno Haible  <bruno@clisp.org>
94164         * modules/closein (Depends-on): Add freadahead.
94165         * lib/closein.c: Include freadahead.h.
94166         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
94167         is zero.
94169 2007-08-19  Bruno Haible  <bruno@clisp.org>
94171         * modules/freadahead-tests: New file.
94172         * tests/test-freadahead.sh: New file.
94173         * tests/test-freadahead.c: New file.
94175         * modules/freadahead: New file.
94176         * lib/freadahead.h: New file.
94177         * lib/freadahead.c: New file.
94178         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
94179         fbufmode, fpurge, freadable, fwritable.
94181 2007-08-19  Eric Blake  <ebb9@byu.net>
94183         Test yesno in combination with closein.
94184         * lib/yesno.c (yesno): Document use of stdin.
94185         * modules/yesno-tests (Files): New module.
94186         * tests/test-yesno.c (main): New file.
94187         * tests/test-yesno.sh: Likewise.
94189 2007-08-19  Bruno Haible  <bruno@clisp.org>
94191         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
94192         * lib/fseeko.c (rpl_fseeko): Likewise.
94193         * lib/fseterr.c (fseterr): Likewise.
94195 2007-08-19  Bruno Haible  <bruno@clisp.org>
94197         * tests/test-lseek.c (main): Disable a test for BeOS.
94198         * doc/functions/lseek.texi: Document the BeOS bug.
94200 2007-08-19  Bruno Haible  <bruno@clisp.org>
94201             Eric Blake  <ebb9@byu.net>
94203         * lib/lseek.c: Include <sys/stat.h>.
94204         (rpl_lseek): Add workaround code also for Unix platforms.
94205         Needed for BeOS.
94206         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
94207         * doc/functions/lseek.texi: Document BeOS definiency.
94209 2007-08-18  Bruno Haible  <bruno@clisp.org>
94211         * modules/fstrcmp-tests: New file.
94212         * tests/test-fstrcmp.c: New file.
94214 2007-08-18  Bruno Haible  <bruno@clisp.org>
94216         * modules/fstrcmp: New file, from GNU gettext with modifications.
94217         * lib/fstrcmp.h: New file, from GNU gettext.
94218         * lib/fstrcmp.c: New file, from GNU gettext.
94219         * MODULES.html.sh (String handling): Add fstrcmp.
94221 2007-08-18  Bruno Haible  <bruno@clisp.org>
94223         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
94224         'bool'.
94225         (diag, compareseq): Remove const from the ctxt argument.
94226         (USE_HEURISTIC): Undefine at the end.
94228 2007-08-18  Jim Meyering  <jim@meyering.net>
94230         New file: lib/idcache.h
94231         * NEWS: Mention the addition.
94232         * modules/idcache (Files): Add lib/idcache.h
94233         * lib/idcache.c: Include "idcache.h".
94234         Don't include <sys/types.h>.
94235         Add a FIXME comment.
94236         Move file-scoped "static" declarations to the top.
94237         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
94239 2007-08-17  Bruno Haible  <bruno@clisp.org>
94240         and Paul Eggert  <eggert@cs.ucla.edu>
94242         * MODULES.html.sh: Add diffseq.
94243         * modules/diffseq: New file.
94244         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
94245         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
94247 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
94249         Import changes from coreutils for bootstrap script.
94251         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
94253         * build-aux/bootstrap (slurp): Work even in environments where
94254         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
94255         current code does not slurp files whose names start with ".", and
94256         this looks like it might be a troublesome area.
94258         2007-07-11  Jim Meyering  <jim@meyering.net>
94260         If there's a GPL vN copyright comment, require that N == 3.
94262         2007-07-08  Jim Meyering  <jim@meyering.net>
94264         Run the coreutils-specific code only if tests/Makefile.am.in exists.
94265         * build-aux/bootstrap (mam_template): Move definition out of loop.
94267         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
94269         * build-aux/bootstrap (symlink_to_dir): Rename function from
94270         symlink_to_gnulib.  Add a directory parameter.  Update all
94271         callers.
94272         (cp_mark_as_generated): Also check for -- and link to -- files in
94273         gl/.
94275         2007-07-08  Jim Meyering  <jim@meyering.net>
94277         Adapt to deeper hierarchy in gnulib.
94278         * build-aux/bootstrap (symlink_to_dir): If the destination
94279         directory doesn't exist, create it. This is required at least for
94280         "lib/uniwidth/cjk.h".
94282         2007-05-15  Jim Meyering  <jim@meyering.net>
94284         * build-aux/bootstrap: Now that generated Makefile.am files
94285         are no longer under version control, they must be created at
94286         bootstrap time.
94288 2007-08-14  Ben Pfaff  <blp@gnu.org>
94290         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
94292 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
94294         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
94295         given the changes below.
94296         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
94297         even on hosts that have padding bits beyond the supported 64.
94299 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
94301         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
94302         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
94303         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
94304         depends on it.
94305         (xstrtol_error): Remove.
94306         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
94307         but with a different signature.
94308         (ATTRIBUTE_NORETURN, __attribute__): New macros.
94309         * lib/xstrtol-error.c: Include exitfail.h.
94310         (xstrtol_fatal): New function, with a different signature from the
94311         old xstrtol_error, so that the caller need not worry about passing
94312         in an exit status, or about storage management of the option argument.
94313         (xstrtol_error): Now a static function.  Redo signature to
94314         implement xstrtol_fatal.  Output the correct number of hyphens in
94315         front of the option so that the caller need not worry about
94316         storage management.
94317         (N_): New macro.
94318         (_): Remove; not used now.
94319         * modules/xstrtol: Depend on getopt.
94320         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
94321         of old STRTOL_FATAL_ERROR macro.
94322         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
94323         of test program.
94324         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
94325         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
94327 2007-08-08  Eric Blake  <ebb9@byu.net>
94329         * lib/xstrtol-error.c: Add missing include.
94331         Move xstrtol messages into gnulib domain, when --pobase is used.
94332         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
94333         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
94334         * modules/xstrtol (Files): Distribute new file.
94335         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
94336         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
94337         * tests/test-xstrtol.c: ...into new file.
94338         * tests/test-xstrtoul.c: Also test xstrtoul.
94339         * tests/test-xstrtoimax.c: Also test xstrtoimax.
94340         * tests/test-xstrtoumax.c: Also test xstrtoumax.
94341         * tests/test-xstrtol.sh: Drive the tests.
94342         * tests/test-xstrtoimax.sh: Likewise.
94343         * tests/test-xstrtoumax.sh: Likewise.
94344         * modules/xstrtol-tests: New module.
94345         * modules/xstrtoimax-tests: Likewise.
94346         * modules/xstrtoumax-tests: Likewise.
94348 2007-08-08  Jim Meyering  <jim@meyering.net>
94350         New function: mfile_name_concat.
94351         * lib/filenamecat.c (mfile_name_concat): New function, just like
94352         file_name_concat, but return NULL upon failure rather than exiting
94353         with a diagnostic.
94354         * lib/filenamecat.h: Declare it.
94356 2007-08-07  Bruno Haible  <bruno@clisp.org>
94358         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
94359         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
94360         warning from gcc.
94361         Reported by Eric Blake.
94363 2007-08-07  Simon Josefsson  <simon@josefsson.org>
94365         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
94366         * modules/crypto/arcfour (License): Likewise.
94367         * modules/crypto/des-tests (License): Likewise.
94368         * modules/crypto/gc-arctwo-tests (License): Likewise.
94369         * modules/crypto/gc-des-tests (License): Likewise.
94370         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
94371         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
94372         * modules/crypto/gc-md2-tests (License): Likewise.
94373         * modules/crypto/gc-md4-tests (License): Likewise.
94374         * modules/crypto/gc-md5-tests (License): Likewise.
94375         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
94376         * modules/crypto/gc-rijndael-tests (License): Likewise.
94377         * modules/crypto/gc-sha1-tests (License): Likewise.
94378         * modules/crypto/gc-tests (License): Likewise.
94379         * modules/crypto/hmac-md5 (License): Likewise.
94380         * modules/crypto/hmac-sha1 (License): Likewise.
94381         * modules/crypto/md2-tests (License): Likewise.
94382         * modules/crypto/md4-tests (License): Likewise.
94383         * modules/crypto/md5 (License): Likewise.
94384         * modules/crypto/rijndael (License): Likewise.
94385         * modules/crypto/sha1 (License): Likewise.
94386         * modules/memxor (License): Likewise.
94388 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
94389         and Bruno Haible  <bruno@clisp.org>
94391         * NEWS: Describe interface changes to human, xstrtol.
94392         * lib/human.h: Include <xstrtol.h>.
94393         (human_options): Return enum strtol_error, not int.  Remove
94394         bool arg; take int * instead.
94395         * lib/human.c: Don't include "gettext.h".
94396         (_): Remove; no longer used.
94397         Don't include <xstrtol.h>, since human.h does it.
94398         (human_options): Adjust to abovementioned interface changes.
94399         Do not report error to stderr; that's now the caller's
94400         responsibility.
94401         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
94402         interface change.
94403         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
94404         Str, Argument_type_string.  All uses changed.  Put " argument"
94405         in diagnostics to make them clearer.  Change wording of suffix
94406         message for clarity.
94407         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
94408         Argument_type_string.
94409         (STRTOL_FATAL_WARN): Remove; no longer used.
94410         * modules/human (Depends-on): Remove gettext-h.
94412 2007-08-06  Simon Josefsson  <simon@josefsson.org>
94414         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
94416 2007-07-31  Bruno Haible  <bruno@clisp.org>
94418         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
94419         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
94420         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
94422 2007-07-31  Bruno Haible  <bruno@clisp.org>
94424         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
94425         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
94427 2007-07-30  Bruno Haible  <bruno@clisp.org>
94429         * modules/base64 (License): Use the synonymous term "LGPLv2+".
94430         * modules/c-ctype (License): Likewise.
94431         * modules/c-strcase (License): Likewise.
94432         * modules/check-version (License): Likewise.
94433         * modules/iconv (License): Likewise.
94434         * modules/iconv_open (License): Likewise.
94435         * modules/read-file (License): Likewise.
94436         * modules/striconv (License): Likewise.
94437         * modules/strverscmp (License): Likewise.
94438         * modules/vasprintf (License): Likewise.
94439         * modules/crypto/des (License): Likewise.
94440         * modules/crypto/gc (License): Likewise.
94441         * modules/crypto/gc-arcfour (License): Likewise.
94442         * modules/crypto/gc-arctwo (License): Likewise.
94443         * modules/crypto/gc-des (License): Likewise.
94444         * modules/crypto/gc-hmac-md5 (License): Likewise.
94445         * modules/crypto/gc-hmac-sha1 (License): Likewise.
94446         * modules/crypto/gc-md2 (License): Likewise.
94447         * modules/crypto/gc-md4 (License): Likewise.
94448         * modules/crypto/gc-md5 (License): Likewise.
94449         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
94450         * modules/crypto/gc-random (License): Likewise.
94451         * modules/crypto/gc-rijndael (License): Likewise.
94452         * modules/crypto/gc-sha1 (License): Likewise.
94453         * modules/crypto/md2 (License): Likewise.
94454         * modules/crypto/md4 (License): Likewise.
94456 2007-07-30  Jim Meyering  <jim@meyering.net>
94458         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
94459         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
94460         it has valid stat data.  This bug would cause du not to count the
94461         sizes of inaccessible directories.
94462         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
94463         in <http://bugzilla.redhat.com/250077>.
94465 2007-07-25  Peter O'Gorman  <peter@pogma.com>
94466             Bruno Haible  <bruno@clisp.org>
94468         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
94469         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
94470         #include_next, gives a diagnostic about it, but reports no error in
94471         the exit code.
94472         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
94474 2007-07-24  Ben Pfaff  <blp@gnu.org>
94476         Improve name: "count-one-bits" is better than "popcount".
94477         * MODULES.html.sh: Update name.
94478         * lib/popcount.h: Renamed lib/count-one-bits.h.
94479         (popcount): Renamed count_one_bits.
94480         (popcountl): Renamed count_one_bits_l.
94481         (popcountll): Renamed count_one_bits_ll.
94482         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
94483         * modules/popcount: Renamed module/count-one-bits.
94484         * modules/popcount-tests: Renamed module/count-one-bits-tests.
94485         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
94487 2007-07-23  Ben Pfaff  <blp@gnu.org>
94489         * lib/popcount.h (popcount32): Reduce size of constants, to allow
94490         better code generation, and add U to large constants to avoid
94491         warnings, in non-GCC case.
94492         Suggested by Bruno Haible.
94494 2007-07-23  Ben Pfaff  <blp@gnu.org>
94496         * lib/popcount.h: Use verify_true instead of if...abort.
94497         * modules/popcount: Depend on verify module.
94498         Suggested by Jim Meyering.
94500 2007-07-23  Bruno Haible  <bruno@clisp.org>
94502         * gnulib-tool (func_import): Create a .cvsignore file also when the
94503         directory is not yet in CVS but the toplevel directory is. When
94504         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
94505         Reported by Karl Berry.
94507 2007-07-22  Ben Pfaff  <blp@gnu.org>
94509         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
94510         case.
94511         Suggested by Eric Blake.
94513 2007-07-22  Ben Pfaff  <blp@gnu.org>
94515         New module: popcount.
94516         * MODULES.html.sh: Add popcount.
94517         * modules/popcount: New file.
94518         * modules/popcount-tests: New file.
94519         * tests/test-popcount.c: New file.
94520         * lib/popcount.h: New file.
94521         * m4/popcount.m4: New file.
94523 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
94525         * build-aux/announce-gen: Update to GPLv3.
94527         * build-aux/config.guess: Update from config.
94529 2007-07-21  Bruno Haible  <bruno@clisp.org>
94531         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
94532         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
94534 2007-07-20  Jim Meyering  <jim@meyering.net>
94536         * check-module: Diagnose a self-dependency.
94538 2007-07-19  Bruno Haible  <bruno@clisp.org>
94540         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
94541         empty.
94542         Reported by Eric Blake.
94544 2007-07-18  Bruno Haible  <bruno@clisp.org>
94546         * gnulib-tool: New options --po-base, --po-domain.
94547         (func_usage): Document them.
94548         (pobase, po_domain): New variables.
94549         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
94550         DEFAULT_TEXT_DOMAIN.
94551         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
94552         (func_import): Consider pobase and po_domain. Create a po/ directory.
94553         (func_create_testdir): Set pobase and po_domain to empty.
94554         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
94555         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
94557 2007-07-18  Bruno Haible  <bruno@clisp.org>
94559         * gnulib-tool (func_get_automake_snippet): Synthesize also an
94560         EXTRA_DIST augmentation for files in build-aux/.
94562 2007-07-16  Bruno Haible  <bruno@clisp.org>
94564         * modules/lseek (License): Use the synonymous term "LGPLv2+".
94565         * modules/getdelim (License): Likewise.
94567 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
94569         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
94570         * modules/d-type (License): Likewise.
94571         * modules/extensions (License): Likewise.
94572         * modules/fnmatch (License): Likewise.
94573         * modules/fseeko (License): Likewise.
94574         * modules/getaddrinfo (License): Likewise.
94575         * modules/getline (License): Likewise.
94576         * modules/getlogin_r (License): Likewise.
94577         * modules/getpass (License): Likewise.
94578         * modules/gettimeofday (License): Likewise.
94579         * modules/glob (License): Likewise.
94580         * modules/inet_ntop (License): Likewise.
94581         * modules/malloc (License): Likewise.
94582         * modules/malloca (License): Likewise.
94583         * modules/memmem (License): Likewise.
94584         * modules/mempcpy (License): Likewise.
94585         * modules/memset (License): Likewise.
94586         * modules/minmax (License): Likewise.
94587         * modules/mktime (License): Likewise.
94588         * modules/netinet_in (License): Likewise.
94589         * modules/pathmax (License): Likewise.
94590         * modules/poll (License): Likewise.
94591         * modules/regex (License): Likewise.
94592         * modules/snprintf (License): Likewise.
94593         * modules/stdbool (License): Likewise.
94594         * modules/stdint (License): Likewise.
94595         * modules/stdio (License): Likewise.
94596         * modules/strcase (License): Likewise.
94597         * modules/strcasestr (License): Likewise.
94598         * modules/strdup (License): Likewise.
94599         * modules/string (License): Likewise.
94600         * modules/strndup (License): Likewise.
94601         * modules/strnlen (License): Likewise.
94602         * modules/strpbrk (License): Likewise.
94603         * modules/strptime (License): Likewise.
94604         * modules/strsep (License): Likewise.
94605         * modules/sys_select (License): Likewise.
94606         * modules/sys_socket (License): Likewise.
94607         * modules/sys_stat (License): Likewise.
94608         * modules/sys_time (License): Likewise.
94609         * modules/time (License): Likewise.
94610         * modules/time_r (License): Likewise.
94611         * modules/timegm (License): Likewise.
94612         * modules/unistd (License): Likewise.
94613         * modules/vsnprintf (License): Likewise.
94614         * modules/wctype (License): Likewise.
94616 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94618         * modules/argz (License): LGPLv2+.
94620 2007-07-15  Karl Berry  <karl@gnu.org>
94622         * doc/gnulib.texi: revise node structure per new fdl.texi.
94624 2007-07-14  Bruno Haible  <bruno@clisp.org>
94626         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
94627         the output file.
94628         * lib/uniname/uninames.h: Regenerated.
94630 2007-07-14  Karl Berry  <karl@gnu.org>
94632         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
94633         omitting sectioning and index commands.
94635 2007-07-13  Bruno Haible  <bruno@clisp.org>
94637         New gnulib-tool option --more-symlinks.
94638         * gnulib-tool (func_usage): Document --more-symlinks.
94639         (do_copyrights): New variable.
94640         Recognize option --more-symlinks.
94641         (func_import): Don't add a copyright notice transform to
94642         sed_transform_lib_file if do_copyrights is empty.
94644 2007-07-13  Bruno Haible  <bruno@clisp.org>
94646         * lib/vasnprintf.c (decimal_point_char): Define also if
94647         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
94648         && !NEED_PRINTF_DIRECTIVE_A.
94649         Reported by Clemens Koller <clemens.koller@anagramm.de> via
94650         Gary V. Vaughan <gary@gnu.org>.
94652 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
94654         * lib/inttypes_.h: Undo previous change, since it was fixed
94655         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
94657 2007-07-13  Bruno Haible  <bruno@clisp.org>
94659         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
94660         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
94662 2007-07-13  Jim Meyering  <jim@meyering.net>
94664         df: Don't fail for Tru64's "file-on-file mount".
94665         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
94666         so we fall through and use statfs instead.  Details here:
94667         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
94668         Reported by Albert Chin.
94670 2007-07-13  Bruno Haible  <bruno@clisp.org>
94672         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
94673         * modules/configmake (License): Likewise.
94674         * modules/gettext (License): Likewise.
94675         * modules/gettext-h (License): Likewise.
94676         * modules/include_next (License): Likewise.
94677         * modules/link-warning (License): Likewise.
94678         * modules/localcharset (License): Likewise.
94679         * modules/localename (License): Likewise.
94680         * modules/lock (License): Likewise.
94681         * modules/relocatable-lib-lgpl (License): Likewise.
94682         * modules/size_max (License): Likewise.
94683         * modules/vasnprintf (License): Likewise.
94684         * modules/wchar (License): Likewise.
94685         * modules/xsize (License): Likewise.
94687 2007-07-13  Bruno Haible  <bruno@clisp.org>
94689         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
94690         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
94692 2007-07-12  Bruno Haible  <bruno@clisp.org>
94694         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
94695         in the modules files.
94697 2007-07-11  Karl Berry  <karl@gnu.org>
94699         * MODULES.html.sh (func_module): use
94700          sed -e '\|^'"${includefile}"'$|d'
94701          instead of /.../d, to avoid errors on $includefile's containing /.
94703 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
94705         * gnulib-tool (func_import): Avoid duplication of --avoid
94706         statements
94707         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
94708         names to `_' in variable names.
94710 2007-07-10  Eric Blake  <ebb9@byu.net>
94712         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
94713         * NEWS: Document this change.
94715 2007-07-08  Bruno Haible  <bruno@clisp.org>
94717         Update to Unicode 5.0.
94718         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
94719         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
94720         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
94721         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
94722         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
94723         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
94724         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
94725         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
94726         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
94727         U+10A3F, U+1D242..U+1D244.
94728         (nonspacing_table_ind): Update.
94729         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
94730         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
94732 2007-07-08  Bruno Haible  <bruno@clisp.org>
94734         Update to Unicode 5.0.
94735         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
94736         code transform. Extend the name index field of unicode_name_to_code and
94737         unicode_code_to_name from 16 to 24 bits.
94738         * lib/uniname/uniname.c (unicode_character_name,
94739         unicode_name_character): Add the range 0x12xxx to the code transform.
94740         * lib/uniname/uninames.h: Regenerated.
94741         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
94743 2007-07-07  Bruno Haible  <bruno@clisp.org>
94745         * modules/wcwidth-tests: New file.
94746         * tests/test-wcwidth.c: New file.
94748         Work around MacOS X wcwidth() bug.
94749         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
94750         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
94751         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
94752         original wcwidth in non-UTF-8 locales.
94753         * modules/wcwidth (Depends-on): Add localcharset, streq,
94754         uniwidth/width.
94755         * doc/functions/wcwidth.texi: Update.
94757 2007-07-07  Bruno Haible  <bruno@clisp.org>
94759         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
94760         (wcwidth): New declaration.
94761         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
94762         macros.
94763         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
94764         here. Prepare for creating <wchar.h> unconditionally.
94765         * modules/wchar (Depends-on): Add link-warning.
94766         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
94767         REPLACE_WCWIDTH, and GL_LINK_WARNING.
94768         * lib/wcwidth.h: Remove file.
94769         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
94770         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
94771         * modules/wcwidth (Files): Remove lib/wcwidth.h.
94772         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
94773         (Include): Replace wcwidth.h with <wchar.h>.
94774         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
94775         * lib/mbchar.h: Don't include wcwidth.h.
94776         * lib/mbswidth.c: Likewise.
94777         * NEWS: Mention the change.
94779 2007-07-07  Bruno Haible  <bruno@clisp.org>
94781         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
94782         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
94783         definition with an external declaration.
94784         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
94785         defined as a function. Remove AC_C_INLINE requirement.
94786         * modules/wcwidth (Files): Add lib/wcwidth.c.
94787         (Makefile.am): Remove redundant statement.
94789 2007-07-07  Bruno Haible  <bruno@clisp.org>
94791         * MODULES.html.sh (Unicode string functions): Add the new modules.
94793         * tests/uniwidth/test-u32-strwidth.c: New file.
94794         * modules/uniwidth/u32-strwidth-tests: New file.
94796         * lib/uniwidth/u32-strwidth.c: New file.
94797         * modules/uniwidth/u32-strwidth: New file.
94799         * tests/uniwidth/test-u16-strwidth.c: New file.
94800         * modules/uniwidth/u16-strwidth-tests: New file.
94802         * lib/uniwidth/u16-strwidth.c: New file.
94803         * modules/uniwidth/u16-strwidth: New file.
94805         * tests/uniwidth/test-u8-strwidth.c: New file.
94806         * modules/uniwidth/u8-strwidth-tests: New file.
94808         * lib/uniwidth/u8-strwidth.c: New file.
94809         * modules/uniwidth/u8-strwidth: New file.
94811         * tests/uniwidth/test-u32-width.c: New file.
94812         * modules/uniwidth/u32-width-tests: New file.
94814         * lib/uniwidth/u32-width.c: New file.
94815         * modules/uniwidth/u32-width: New file.
94817         * tests/uniwidth/test-u16-width.c: New file.
94818         * modules/uniwidth/u16-width-tests: New file.
94820         * lib/uniwidth/u16-width.c: New file.
94821         * modules/uniwidth/u16-width: New file.
94823         * tests/uniwidth/test-u8-width.c: New file.
94824         * modules/uniwidth/u8-width-tests: New file.
94826         * lib/uniwidth/u8-width.c: New file.
94827         * modules/uniwidth/u8-width: New file.
94829         * tests/uniwidth/test-uc_width.c: New file.
94830         * modules/uniwidth/width-tests: New file.
94832         * lib/uniwidth/width.c: New file, from GNU libiconv.
94833         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
94834         * modules/uniwidth/width: New file.
94836         * lib/uniwidth.h: New file, from GNU libiconv.
94837         * modules/uniwidth/base: New file.
94839 2007-07-07  Bruno Haible  <bruno@clisp.org>
94841         * lib/uniname.h: New file, from GNU gettext.
94842         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
94843         * lib/uniname/uninames.h: New file, from GNU gettext.
94844         * lib/uniname/uniname.c: New file, from GNU gettext.
94845         * tests/uniname/test-uninames.sh: New file.
94846         * tests/uniname/test-uninames.c: New file, from GNU gettext.
94847         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
94848         * modules/uniname/base: New file.
94849         * modules/uniname/uniname: New file.
94850         * modules/uniname/uniname-tests: New file.
94851         * MODULES.html.sh (Unicode string functions): Add the new modules.
94853 2007-07-06  Bruno Haible  <bruno@clisp.org>
94855         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
94857 2007-07-06  Bruno Haible  <bruno@clisp.org>
94859         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
94860         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
94861         includes <cygwin/sys_time.h> which includes <sys/select.h> which
94862         include <sys/time.h>.
94863         Reported by Eric Blake.
94865 2007-07-06  Eric Blake  <ebb9@byu.net>
94867         Fix testing canonicalize on cygwin.
94868         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
94869         Revert patch from 2007-06-19.
94870         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
94871         canonicalize module is also in use.
94872         * tests/test-canonicalize.c: New file.
94873         * tests/test-canonicalize.sh: Likewise.
94874         * modules/canonicalize-tests: Likewise.
94876 2007-07-06  Jim Meyering  <jim@meyering.net>
94878         * lib/getugroups.c (getugroups): Detect getgrent failure.
94879         Adjust comment to reflect reality: this function may return -1.
94881 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
94883         * build-aux/bootstrap (TP_URL,get_translations): Update to use
94884         the new TP address.
94885         (usage): Fix typo
94886         (gnulib_mk): New variable.
94888 2007-07-05  Jim Meyering  <jim@meyering.net>
94890         Don't let endgrent clobber errno, no matter how improbable.
94891         * lib/getugroups.c (getugroups): Save and restore errno around
94892         endgrent call.
94894         Close the group DB even when failing with 2^31 or more members.
94895         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
94897 2007-07-04  Jim Meyering  <jim@meyering.net>
94899         * lib/getugroups.h: New file.
94900         * lib/getugroups.c: Include "getugroups.h".
94901         Remove uses of "register" keyword.
94902         Move local variable, "cp", down into scope where used.
94903         Give "username" parameter the "const" attribute.
94904         * modules/getugroups (Files): Add lib/getugroups.h
94906 2007-07-04  Karl Berry  <karl@gnu.org>
94908         * MODULES.html.sh (func_all_modules): Complete rename of
94909         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
94911 2007-07-02  Bruno Haible  <bruno@clisp.org>
94913         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
94914         mode, when inttypes.h comes from gnulib.
94915         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
94917 2007-07-02  Simon Josefsson  <simon@josefsson.org>
94919         * NEWS: Mention lgpl module name change.
94921         * modules/lgpl-2.1: Renamed from lgpl.
94923         * NEWS: Mention gpl module name change.
94925         * modules/gpl-3.0: New file, based on gpl-2.0.
94927         * modules/gpl-2.0: Renamed from gpl.
94929         * modules/gpl: Fix filename, doc/gpl.texi is now found at
94930         doc/gpl-2.0.texi.
94932 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
94934         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
94935         #define __STDC_LIMIT_MACROS temporarily while including
94936         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
94937         Problem reported by Joel E. Denny in
94938         <http://lists.gnu.org/r/bug-gnulib/2007-07/msg00008.html>.
94940 2007-07-01  Bruno Haible  <bruno@clisp.org>
94942         * lib/unistdio.h: New file.
94943         * lib/unistdio/u-asnprintf.h: New file.
94944         * lib/unistdio/u-asprintf.h: New file.
94945         * lib/unistdio/u-printf-args.c: New file.
94946         * lib/unistdio/u-printf-args.h: New file.
94947         * lib/unistdio/u-printf-parse.h: New file.
94948         * lib/unistdio/u-snprintf.h: New file.
94949         * lib/unistdio/u-sprintf.h: New file.
94950         * lib/unistdio/u-vasprintf.h: New file.
94951         * lib/unistdio/u-vsnprintf.h: New file.
94952         * lib/unistdio/u-vsprintf.h: New file.
94953         * lib/unistdio/ulc-asnprintf.c: New file.
94954         * lib/unistdio/ulc-asprintf.c: New file.
94955         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
94956         * lib/unistdio/ulc-printf-parse.c: New file.
94957         * lib/unistdio/ulc-snprintf.c: New file.
94958         * lib/unistdio/ulc-sprintf.c: New file.
94959         * lib/unistdio/ulc-vasnprintf.c: New file.
94960         * lib/unistdio/ulc-vasprintf.c: New file.
94961         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
94962         * lib/unistdio/ulc-vsnprintf.c: New file.
94963         * lib/unistdio/ulc-vsprintf.c: New file.
94964         * lib/unistdio/u8-asnprintf.c: New file.
94965         * lib/unistdio/u8-asprintf.c: New file.
94966         * lib/unistdio/u8-printf-parse.c: New file.
94967         * lib/unistdio/u8-snprintf.c: New file.
94968         * lib/unistdio/u8-sprintf.c: New file.
94969         * lib/unistdio/u8-vasnprintf.c: New file.
94970         * lib/unistdio/u8-vasprintf.c: New file.
94971         * lib/unistdio/u8-vsnprintf.c: New file.
94972         * lib/unistdio/u8-vsprintf.c: New file.
94973         * lib/unistdio/u8-u8-asnprintf.c: New file.
94974         * lib/unistdio/u8-u8-asprintf.c: New file.
94975         * lib/unistdio/u8-u8-snprintf.c: New file.
94976         * lib/unistdio/u8-u8-sprintf.c: New file.
94977         * lib/unistdio/u8-u8-vasnprintf.c: New file.
94978         * lib/unistdio/u8-u8-vasprintf.c: New file.
94979         * lib/unistdio/u8-u8-vsnprintf.c: New file.
94980         * lib/unistdio/u8-u8-vsprintf.c: New file.
94981         * lib/unistdio/u16-asnprintf.c: New file.
94982         * lib/unistdio/u16-asprintf.c: New file.
94983         * lib/unistdio/u16-printf-parse.c: New file.
94984         * lib/unistdio/u16-snprintf.c: New file.
94985         * lib/unistdio/u16-sprintf.c: New file.
94986         * lib/unistdio/u16-vasnprintf.c: New file.
94987         * lib/unistdio/u16-vasprintf.c: New file.
94988         * lib/unistdio/u16-vsnprintf.c: New file.
94989         * lib/unistdio/u16-vsprintf.c: New file.
94990         * lib/unistdio/u16-u16-asnprintf.c: New file.
94991         * lib/unistdio/u16-u16-asprintf.c: New file.
94992         * lib/unistdio/u16-u16-snprintf.c: New file.
94993         * lib/unistdio/u16-u16-sprintf.c: New file.
94994         * lib/unistdio/u16-u16-vasnprintf.c: New file.
94995         * lib/unistdio/u16-u16-vasprintf.c: New file.
94996         * lib/unistdio/u16-u16-vsnprintf.c: New file.
94997         * lib/unistdio/u16-u16-vsprintf.c: New file.
94998         * lib/unistdio/u32-asnprintf.c: New file.
94999         * lib/unistdio/u32-asprintf.c: New file.
95000         * lib/unistdio/u32-printf-parse.c: New file.
95001         * lib/unistdio/u32-snprintf.c: New file.
95002         * lib/unistdio/u32-sprintf.c: New file.
95003         * lib/unistdio/u32-vasnprintf.c: New file.
95004         * lib/unistdio/u32-vasprintf.c: New file.
95005         * lib/unistdio/u32-vsnprintf.c: New file.
95006         * lib/unistdio/u32-vsprintf.c: New file.
95007         * lib/unistdio/u32-u32-asnprintf.c: New file.
95008         * lib/unistdio/u32-u32-asprintf.c: New file.
95009         * lib/unistdio/u32-u32-snprintf.c: New file.
95010         * lib/unistdio/u32-u32-sprintf.c: New file.
95011         * lib/unistdio/u32-u32-vasnprintf.c: New file.
95012         * lib/unistdio/u32-u32-vasprintf.c: New file.
95013         * lib/unistdio/u32-u32-vsnprintf.c: New file.
95014         * lib/unistdio/u32-u32-vsprintf.c: New file.
95015         * tests/unistdio/test-ulc-asnprintf1.c: New file.
95016         * tests/unistdio/test-ulc-asnprintf1.h: New file.
95017         * tests/unistdio/test-ulc-printf1.h: New file.
95018         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
95019         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
95020         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
95021         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
95022         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
95023         * tests/unistdio/test-ulc-vasprintf1.c: New file.
95024         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
95025         * tests/unistdio/test-ulc-vsprintf1.c: New file.
95026         * tests/unistdio/test-u8-asnprintf1.c: New file.
95027         * tests/unistdio/test-u8-asnprintf1.h: New file.
95028         * tests/unistdio/test-u8-printf1.h: New file.
95029         * tests/unistdio/test-u8-vasnprintf1.c: New file.
95030         * tests/unistdio/test-u8-vasnprintf2.c: New file.
95031         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
95032         * tests/unistdio/test-u8-vasnprintf3.c: New file.
95033         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
95034         * tests/unistdio/test-u8-vasprintf1.c: New file.
95035         * tests/unistdio/test-u8-vsnprintf1.c: New file.
95036         * tests/unistdio/test-u8-vsprintf1.c: New file.
95037         * tests/unistdio/test-u16-asnprintf1.c: New file.
95038         * tests/unistdio/test-u16-asnprintf1.h: New file.
95039         * tests/unistdio/test-u16-printf1.h: New file.
95040         * tests/unistdio/test-u16-vasnprintf1.c: New file.
95041         * tests/unistdio/test-u16-vasnprintf2.c: New file.
95042         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
95043         * tests/unistdio/test-u16-vasnprintf3.c: New file.
95044         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
95045         * tests/unistdio/test-u16-vasprintf1.c: New file.
95046         * tests/unistdio/test-u16-vsnprintf1.c: New file.
95047         * tests/unistdio/test-u16-vsprintf1.c: New file.
95048         * tests/unistdio/test-u32-asnprintf1.c: New file.
95049         * tests/unistdio/test-u32-asnprintf1.h: New file.
95050         * tests/unistdio/test-u32-printf1.h: New file.
95051         * tests/unistdio/test-u32-vasnprintf1.c: New file.
95052         * tests/unistdio/test-u32-vasnprintf2.c: New file.
95053         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
95054         * tests/unistdio/test-u32-vasnprintf3.c: New file.
95055         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
95056         * tests/unistdio/test-u32-vasprintf1.c: New file.
95057         * tests/unistdio/test-u32-vsnprintf1.c: New file.
95058         * tests/unistdio/test-u32-vsprintf1.c: New file.
95059         * modules/unistdio/base: New file.
95060         * modules/unistdio/u-printf-args: New file.
95061         * modules/unistdio/ulc-asnprintf: New file.
95062         * modules/unistdio/ulc-asprintf: New file.
95063         * modules/unistdio/ulc-fprintf: New file.
95064         * modules/unistdio/ulc-printf-parse: New file.
95065         * modules/unistdio/ulc-snprintf: New file.
95066         * modules/unistdio/ulc-sprintf: New file.
95067         * modules/unistdio/ulc-vasnprintf: New file.
95068         * modules/unistdio/ulc-vasprintf: New file.
95069         * modules/unistdio/ulc-vfprintf: New file.
95070         * modules/unistdio/ulc-vsnprintf: New file.
95071         * modules/unistdio/ulc-vsprintf: New file.
95072         * modules/unistdio/u8-asnprintf: New file.
95073         * modules/unistdio/u8-asprintf: New file.
95074         * modules/unistdio/u8-printf-parse: New file.
95075         * modules/unistdio/u8-snprintf: New file.
95076         * modules/unistdio/u8-sprintf: New file.
95077         * modules/unistdio/u8-vasnprintf: New file.
95078         * modules/unistdio/u8-vasprintf: New file.
95079         * modules/unistdio/u8-vsnprintf: New file.
95080         * modules/unistdio/u8-vsprintf: New file.
95081         * modules/unistdio/u8-u8-asnprintf: New file.
95082         * modules/unistdio/u8-u8-asprintf: New file.
95083         * modules/unistdio/u8-u8-snprintf: New file.
95084         * modules/unistdio/u8-u8-sprintf: New file.
95085         * modules/unistdio/u8-u8-vasnprintf: New file.
95086         * modules/unistdio/u8-u8-vasprintf: New file.
95087         * modules/unistdio/u8-u8-vsnprintf: New file.
95088         * modules/unistdio/u8-u8-vsprintf: New file.
95089         * modules/unistdio/u16-asnprintf: New file.
95090         * modules/unistdio/u16-asprintf: New file.
95091         * modules/unistdio/u16-printf-parse: New file.
95092         * modules/unistdio/u16-snprintf: New file.
95093         * modules/unistdio/u16-sprintf: New file.
95094         * modules/unistdio/u16-vasnprintf: New file.
95095         * modules/unistdio/u16-vasprintf: New file.
95096         * modules/unistdio/u16-vsnprintf: New file.
95097         * modules/unistdio/u16-vsprintf: New file.
95098         * modules/unistdio/u16-u16-asnprintf: New file.
95099         * modules/unistdio/u16-u16-asprintf: New file.
95100         * modules/unistdio/u16-u16-snprintf: New file.
95101         * modules/unistdio/u16-u16-sprintf: New file.
95102         * modules/unistdio/u16-u16-vasnprintf: New file.
95103         * modules/unistdio/u16-u16-vasprintf: New file.
95104         * modules/unistdio/u16-u16-vsnprintf: New file.
95105         * modules/unistdio/u16-u16-vsprintf: New file.
95106         * modules/unistdio/u32-asnprintf: New file.
95107         * modules/unistdio/u32-asprintf: New file.
95108         * modules/unistdio/u32-printf-parse: New file.
95109         * modules/unistdio/u32-snprintf: New file.
95110         * modules/unistdio/u32-sprintf: New file.
95111         * modules/unistdio/u32-vasnprintf: New file.
95112         * modules/unistdio/u32-vasprintf: New file.
95113         * modules/unistdio/u32-vsnprintf: New file.
95114         * modules/unistdio/u32-vsprintf: New file.
95115         * modules/unistdio/u32-u32-asnprintf: New file.
95116         * modules/unistdio/u32-u32-asprintf: New file.
95117         * modules/unistdio/u32-u32-snprintf: New file.
95118         * modules/unistdio/u32-u32-sprintf: New file.
95119         * modules/unistdio/u32-u32-vasnprintf: New file.
95120         * modules/unistdio/u32-u32-vasprintf: New file.
95121         * modules/unistdio/u32-u32-vsnprintf: New file.
95122         * modules/unistdio/u32-u32-vsprintf: New file.
95123         * modules/unistdio/ulc-asnprintf-tests: New file.
95124         * modules/unistdio/ulc-vasnprintf-tests: New file.
95125         * modules/unistdio/ulc-vasprintf-tests: New file.
95126         * modules/unistdio/ulc-vsnprintf-tests: New file.
95127         * modules/unistdio/ulc-vsprintf-tests: New file.
95128         * modules/unistdio/u8-asnprintf-tests: New file.
95129         * modules/unistdio/u8-vasnprintf-tests: New file.
95130         * modules/unistdio/u8-vasprintf-tests: New file.
95131         * modules/unistdio/u8-vsnprintf-tests: New file.
95132         * modules/unistdio/u8-vsprintf-tests: New file.
95133         * modules/unistdio/u16-asnprintf-tests: New file.
95134         * modules/unistdio/u16-vasnprintf-tests: New file.
95135         * modules/unistdio/u16-vasprintf-tests: New file.
95136         * modules/unistdio/u16-vsnprintf-tests: New file.
95137         * modules/unistdio/u16-vsprintf-tests: New file.
95138         * modules/unistdio/u32-asnprintf-tests: New file.
95139         * modules/unistdio/u32-vasnprintf-tests: New file.
95140         * modules/unistdio/u32-vasprintf-tests: New file.
95141         * modules/unistdio/u32-vsnprintf-tests: New file.
95142         * modules/unistdio/u32-vsprintf-tests: New file.
95143         * MODULES.html.sh (Unicode string functions): Add the new modules.
95145 2007-07-01  Bruno Haible  <bruno@clisp.org>
95147         * lib/sprintf.c (sprintf): Limit the available length estimation,
95148         to avoid address wraparound.
95149         * lib/vsprintf.c (vsprintf): Likewise.
95150         * modules/sprintf-posix (Dependencies): Add stdint.
95151         * modules/vsprintf-posix (Dependencies): Likewise.
95153 2007-07-01  Bruno Haible  <bruno@clisp.org>
95155         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
95156         Windows PATH as well. Conservative double-quoting. Comments.
95158 2007-07-01  Bruno Haible  <bruno@clisp.org>
95159             Eric Blake  <ebb9@byu.net>
95160             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95162         * gnulib-tool (self_abspathname): Fix algorithm to cope with
95163         empty components in $PATH, denoting '.'.
95165 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95167         * gnulib-tool: Fix indentation.
95168         (func_create_megatestdir): Likewise.
95169         Report by Bruno Haible.
95171 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95173         Sync from Automake.
95174         * build-aux/gnupload: Fix shell portability issues with for loops.
95175         Report by Karl Berry.
95177 2007-06-29  Simon Josefsson  <simon@josefsson.org>
95179         * build-aux/maint.mk (POURL): Use translationproject.org.
95181 2007-06-27  Simon Josefsson  <simon@josefsson.org>
95182             Bruno Haible  <bruno@clisp.org>
95184         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
95185         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
95186         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
95187         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
95188         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
95190 2007-06-27  Bruno Haible  <bruno@clisp.org>
95192         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
95193         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
95195 2007-06-26  Karl Berry  <karl@gnu.org>
95197         * MODULES.html.sh: remove xreadlink-with-size.
95199 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
95201         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
95202         method that I hope also handles the double-include problem noted
95203         by Bruno Haible in
95204         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00186.html>.
95206 2007-06-23  Bruno Haible  <bruno@clisp.org>
95208         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
95209         Don't let the 'mostlyclean' target fail if the last subdirectory could
95210         not be removed.
95211         Reported by Karl Berry.
95213 2007-06-23  Bruno Haible  <bruno@clisp.org>
95215         * gnulib-tool (echo): Add a speedier workaround for ksh.
95216         * tests/test-echo.sh: Likewise.
95218 2007-06-23  Bruno Haible  <bruno@clisp.org>
95220         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
95221         * tests/test-echo.sh: Likewise.
95223 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95225         * gnulib-tool (IFS): Initialize early, so we don't set it to
95226         empty later.
95227         (self_abspathname): Rewrite algorithm to set it, reindent.
95228         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
95229         (func_create_megatestdir): Merge some sed scripts.
95231 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
95233         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
95234         exposed by Sun Studio 11 cc on Solaris 8.
95236 2007-06-22  Bruno Haible  <bruno@clisp.org>
95238         * gnulib-tool (echo): Ensure the echo primitive does not interpret
95239         backslashes.
95240         * tests/test-echo.sh: New file.
95242 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95244         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
95245         simplify `sed_replace_build_aux' scripts, they are portable but
95246         echoing them with `echo' is not.
95247         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
95249 2007-06-21  Karl Berry  <karl@gnu.org>
95251         * config/srclist.txt: guess we can't handle the licenses via
95252         srclist at the moment.
95254 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
95256         * MODULES.html.sh: Add include_next.
95257         * modules/include_next: New file.
95259 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
95261         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
95262         INCLUDE_NEXT.
95263         (gl_CHECK_NEXT_HEADERS): New macro.
95264         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
95265         the obsolescent gl_ABSOLUTE_HEADER.
95266         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
95267         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
95268         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
95269         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
95270         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
95271         * m4/math_h.m4 (gl_MATH_H): Likewise.
95272         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
95273         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
95274         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
95275         * m4/stdint.m4 (gl_STDINT_H): Likewise.
95276         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
95277         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
95278         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
95279         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
95280         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
95281         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
95282         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
95283         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
95284         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
95285         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
95286         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
95287         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
95288         * m4/inttypes.m4 (gl_INTTYPES_H): Define
95289         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
95290         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
95291         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
95292         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
95293         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
95294         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
95295         * lib/float_.h: Likewise.
95296         * lib/inttypes_.h: Likewise.
95297         * lib/math_.h: Likewise.
95298         * lib/search_.h: Likewise.
95299         * lib/signal_.h: Likewise.
95300         * lib/stdint_.h: Likewise.
95301         * lib/stdio_.h: Likewise.
95302         * lib/stdlib_.h: Likewise.
95303         * lib/string_.h: Likewise.
95304         * lib/sys_stat_.h: Likewise.
95305         * lib/sys_time_.h: Likewise.
95306         * lib/time_.h: Likewise.
95307         * lib/unistd_.h: Likewise.
95308         * lib/wchar_.h: Likewise.
95309         * lib/wctype_.h: Likewise.
95310         * lib/dirent_.h: Likewise.
95311         * lib/iconv_.h: Likewise.
95312         * lib/locale_.h: Likewise.
95313         * lib/netinet_in_.h: Likewise.
95314         * lib/sys_select_.h: Likewise.
95315         * lib/sys_socket_.h: Likewise.
95316         * lib/sysexits_.h: Likewise.
95317         * modules/fcntl (Depends-on): Depend on include_next, not
95318         absolute_header.
95319         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
95320         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
95321         * modules/fchdir: Likewise.
95322         * modules/float: Likewise.
95323         * modules/iconv_open: Likewise.
95324         * modules/inttypes: Likewise.
95325         * modules/locale: Likewise.
95326         * modules/math: Likewise.
95327         * modules/netinet_in: Likewise.
95328         * modules/search: Likewise.
95329         * modules/signal: Likewise.
95330         * modules/stdint: Likewise.
95331         * modules/stdio: Likewise.
95332         * modules/stdlib: Likewise.
95333         * modules/string: Likewise.
95334         * modules/sys_select: Likewise.
95335         * modules/sys_socket: Likewise.
95336         * modules/sys_stat: Likewise.
95337         * modules/sys_time: Likewise.
95338         * modules/sysexits: Likewise.
95339         * modules/time: Likewise.
95340         * modules/unistd: Likewise.
95341         * modules/wchar: Likewise.
95342         * modules/wctype: Likewise.
95343         * modules/sys_stat: Change maintainer to "all".
95344         * modules/unistd: Likewise.
95346 2007-06-20  Karl Berry  <karl@gnu.org>
95348         * config/srclist.txt: track www changes in license files.
95350 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
95352         * build-aux/bootstrap: Remove stray dot.
95353         Make sure build_aux settings are honored when linking
95354         gnulib_extra_files.
95356 2007-06-19  Eric Blake  <ebb9@byu.net>
95358         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
95359         Allow compilation on cygwin.
95361 2007-06-19  Jim Meyering  <jim@meyering.net>
95363         xreadlink-with-size: Remove module.  No longer used.
95364         Ex-callers now use xreadlink or mreadlink-with-size.
95365         * modules/xreadlink-with-size: Remove module.
95366         * lib/xreadlink-with-size.c: Remove file.
95367         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
95368         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
95369         just before the function definition *is* accurate.
95371         Eliminate one way canonicalize_filename_mode could exit.
95372         * lib/canonicalize.c (canonicalize_filename_mode):
95373         Use mreadlink_with_size, not xreadlink_with_size.
95375 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
95377         Detect porting problems to FreeBSD/arm, which has time_t wider than
95378         long int.  Original problem reported for GNU diff by Xin Li in
95379         <http://lists.gnu.org/r/bug-gnu-utils/2007-06/msg00091.html>.
95380         * modules/getdate (Depends-on): Add intprops, verify.
95381         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
95382         is an integer type no wider than long int.
95384 2007-06-18  Jim Meyering  <jim@meyering.net>
95386         New module: mreadlink-with-size.
95387         * MODULES.html.sh: Add mreadlink-with-size.
95388         * modules/mreadlink-with-size: New module
95389         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
95390         not xreadlink-with-size.
95391         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
95393 2007-06-16  Bruno Haible  <bruno@clisp.org>
95395         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
95396         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
95397         Reported by Gary V. Vaughan <gary@gnu.org>.
95399 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
95401         Revamp lchown so that it lives in unistd.h where it belongs.
95402         * lib/lchown.h: Remove.
95403         * lib/dirchownmod.c: Don't include lib/lchown.h.
95404         * lib/fchownat.c: Likewise.
95405         * lib/openat.c: Likewise.
95406         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
95407         does not follow symlinks.
95408         (EOPNOTSUPP): Define if not defined.
95409         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
95410         is defined to 0.
95411         (lchown): New decl.
95412         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
95413         Do not check for lchown decl.
95414         Set REPLACE_LCHOWN.
95415         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
95416         REPLACE_LCHOWN.
95417         * modules/chown: Make it clear it follows symlinks.
95418         * modules/lchown: Make it clear it doesn't follow symlinks.
95419         (Files): Remove lib/lchown.h
95420         (Depends-on): Add unistd.
95421         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
95422         (Include): Include <unistd.h>, not "lchown.h".
95423         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
95424         REPLACE_LCHOWN.
95426 2007-06-15  Jim Meyering  <jim@meyering.net>
95428         Change license (GPL to LGPL) of fsusage and dependents.
95429         * modules/fsusage (License): Change to LGPL.
95430         * modules/full-read (License): Likewise.
95431         * modules/full-write (License): Likewise.
95432         * modules/safe-read (License): Likewise.
95433         * modules/safe-write (License): Likewise.
95435 2007-06-14  Ben Pfaff  <blp@gnu.org>
95437         Missing part of allocsa -> malloca transition.
95438         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
95439         gl_MALLOCA.
95441 2007-06-12  Bruno Haible  <bruno@clisp.org>
95443         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
95444         to ia64, x86_64, i386.
95445         Reported by Eric Blake.
95447 2007-06-12  Bruno Haible  <bruno@clisp.org>
95449         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
95450         cross-compiling to x86_64.
95452 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
95454         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
95455         glitch reported by Ralf Wildenhues in
95456         <http://lists.gnu.org/r/bug-gnulib/2007-06/msg00114.html>.
95458         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
95459         Vin Shelton.
95461 2007-06-11  Bruno Haible  <bruno@clisp.org>
95463         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
95464         replacement string.
95465         Reported by Eric Blake.
95467 2007-06-10  Bruno Haible  <bruno@clisp.org>
95469         Prepare vasnprintf code for use with Unicode strings.
95470         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
95471         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
95472         TYPE_U32_STRING.
95473         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
95474         a_u32_string variants.
95475         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
95476         * lib/printf-args.c: Don't include config.h and the specification
95477         header if PRINTF_FETCHARGS is already defined.
95478         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
95479         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
95480         TYPE_U16_STRING, TYPE_U32_STRING.
95481         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
95482         u16_directive, u16_directives, u32_directive, u32_directives): New
95483         types.
95484         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
95485         New declarations.
95486         * lib/printf-parse.c: Don't include config.h and the specification
95487         header if PRINTF_PARSE is already defined. Eliminate the set of
95488         parameters for WIDE_CHAR_VERSION; the user of this file must provide
95489         them now. Include c-ctype.h.
95490         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
95491         directive and CHAR_T_ONLY_ASCII.
95492         * lib/vasnprintf.c: Don't include config.h and the specification header
95493         if VASNPRINTF is already defined.
95494         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
95495         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
95496         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
95497         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
95498         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
95499         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
95500         code accordingly.
95501         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
95502         pad_ourselves also in this case, with the 'c' and 's' directives, and
95503         with a different notion of "width".
95504         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
95506 2007-06-10  Bruno Haible  <bruno@clisp.org>
95508         * modules/unistr/u32-mbsnlen: New file.
95509         * lib/unistr/u32-mbsnlen.c: New file.
95511         * modules/unistr/u16-mbsnlen: New file.
95512         * lib/unistr/u16-mbsnlen.c: New file.
95514         * modules/unistr/u8-mbsnlen: New file.
95515         * lib/unistr/u8-mbsnlen.c: New file.
95517         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
95518         declarations.
95520 2007-06-10  Bruno Haible  <bruno@clisp.org>
95522         * lib/string_.h (mbsnlen): New declaration.
95523         * lib/mbsnlen.c: New file.
95524         * m4/mbsnlen.m4: New file.
95525         * modules/mbsnlen: New file.
95526         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
95527         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
95528         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
95530 2007-06-10  Bruno Haible  <bruno@clisp.org>
95532         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
95534 2007-06-10  Bruno Haible  <bruno@clisp.org>
95536         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
95537         * lib/mbuiter.h: Likewise.
95539 2007-06-10  Bruno Haible  <bruno@clisp.org>
95541         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
95542         declaration.
95544 2007-06-10  Karl Berry  <karl@gnu.org>
95546         * config/srclist.txt: remove gettext entries, Bruno prefers
95547         to update individually.
95549 2007-06-10  Bruno Haible  <bruno@clisp.org>
95551         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
95552         'maxlen'. Ensure only length + width bytes are allocated, not
95553         length + 1 + width.
95555 2007-06-09  Bruno Haible  <bruno@clisp.org>
95557         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
95558         (CHAR_T): Remove macro.
95559         (VASNPRINTF): Update.
95561 2007-06-09  Bruno Haible  <bruno@clisp.org>
95563         * MODULES.html.sh (Unicode string functions): Add the new modules.
95565         * modules/uniconv/u32-conv-to-enc: New file.
95566         * lib/uniconv/u32-conv-to-enc.c: New file.
95567         * modules/uniconv/u32-conv-to-enc-tests: New file.
95568         * tests/uniconv/test-u32-conv-to-enc.c: New file.
95570         * modules/uniconv/u16-conv-to-enc: New file.
95571         * lib/uniconv/u16-conv-to-enc.c: New file.
95572         * lib/uniconv/u-conv-to-enc.h: New file.
95573         * modules/uniconv/u16-conv-to-enc-tests: New file.
95574         * tests/uniconv/test-u16-conv-to-enc.c: New file.
95576         * modules/uniconv/u8-conv-to-enc: New file.
95577         * lib/uniconv/u8-conv-to-enc.c: New file.
95578         * modules/uniconv/u8-conv-to-enc-tests: New file.
95579         * tests/uniconv/test-u8-conv-to-enc.c: New file.
95581         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
95582         u32_conv_to_encoding): New declarations.
95584 2007-06-09  Bruno Haible  <bruno@clisp.org>
95586         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
95588 2007-06-09  Bruno Haible  <bruno@clisp.org>
95590         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
95591         * modules/malloca: Renamed from modules/allocsa, updated.
95592         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
95593         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
95594         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
95595         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
95596         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
95597         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
95598         * modules/xmalloca: Renamed from modules/xallocsa, updated.
95599         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
95600         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
95601         * modules/c-strcasestr (Depends-on): Update.
95602         * lib/c-strcasestr.c: Update.
95603         * modules/c-strstr (Depends-on): Update.
95604         * lib/c-strstr.c: Update.
95605         * modules/canonicalize-lgpl (Depends-on): Update.
95606         * lib/canonicalize-lgpl.c: Update.
95607         * modules/clean-temp (Depends-on): Update.
95608         * lib/clean-temp.c: Update.
95609         * modules/csharpcomp (Depends-on): Update.
95610         * lib/csharpcomp.c: Update.
95611         * modules/csharpexec (Depends-on): Update.
95612         * lib/csharpexec.c: Update.
95613         * modules/javacomp (Depends-on): Update.
95614         * lib/javacomp.c: Update.
95615         * modules/javaexec (Depends-on): Update.
95616         * lib/javaexec.c: Update.
95617         * modules/mbscasestr (Depends-on): Update.
95618         * lib/mbscasestr.c: Update.
95619         * modules/mbsstr (Depends-on): Update.
95620         * lib/mbsstr.c: Update.
95621         * modules/setenv (Depends-on): Update.
95622         * lib/setenv.c: Update.
95623         * modules/strcasestr (Depends-on): Update.
95624         * lib/strcasestr.c: Update.
95625         * modules/striconveha (Depends-on): Update.
95626         * lib/striconveha.c: Update.
95627         * modules/relocatable-prog-wrapper (Files): Update.
95628         * lib/relocwrapper.c: Update.
95629         * build-aux/install-reloc: Update.
95630         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
95632 2007-06-08  Bruno Haible  <bruno@clisp.org>
95634         Port to uClibc.
95635         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
95636         * lib/fpurge.c (fpurge): Likewise.
95637         * lib/freading.c (freading): Likewise.
95638         * lib/fseeko.c (rpl_fseeko): Likewise.
95639         * lib/fseterr.c (fseterr): Likewise.
95640         * lib/fwriting.c (fwriting): Likewise.
95641         * tests/test-fflush.c (main): Avoid a failure on uClibc.
95643 2007-06-08  Bruno Haible  <bruno@clisp.org>
95645         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
95646         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
95647         * modules/gettext (Files): Add m4/intlmacosx.m4.
95649 2007-06-07  Bruno Haible  <bruno@clisp.org>
95651         * modules/localename-tests: New file.
95652         * tests/test-localename.c: New file.
95654         New module 'localename'.
95655         * lib/localename.h: New file.
95656         * lib/localename.c: New file, from GNU gettext.
95657         * m4/localename.m4: New file.
95658         * modules/localename: New file.
95660 2007-06-07  Bruno Haible  <bruno@clisp.org>
95662         Work around the lack of <wchar.h> on some builds of uClibc.
95663         * doc/headers/wchar.texi: Update.
95664         * lib/wchar_.h: Include <wchar.h> only if it exists.
95665         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
95666         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
95667         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
95668         doesn't exist.
95669         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
95670         * modules/mbfile (Depends-on): Add wchar.
95671         * modules/mbiter (Depends-on): Likewise.
95672         * modules/mbuiter (Depends-on): Likewise.
95673         Reported by Simon Josefsson.
95675 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
95677         Work around problem reported by Steven M. Schweda in
95678         <http://lists.gnu.org/r/bug-tar/2007-06/msg00002.html>:
95679         Tru64 5.1B with the Compaq compiler environment installed declares
95680         an 'isblank' function but does not define it in the C library.
95681         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
95682         * lib/regex_internal.h (isblank): Likewise.
95683         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
95684         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
95686 2007-06-05  Bruno Haible  <bruno@clisp.org>
95688         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
95689         ia64.
95690         * modules/printf-safe: New file.
95691         * modules/fprintf-posix (Depends-on): Add printf-safe.
95692         * modules/printf-posix (Depends-on): Likewise.
95693         * modules/snprintf-posix (Depends-on): Likewise.
95694         * modules/sprintf-posix (Depends-on): Likewise.
95695         * modules/vasnprintf-posix (Depends-on): Likewise.
95696         * modules/vasprintf-posix (Depends-on): Likewise.
95697         * modules/vfprintf-posix (Depends-on): Likewise.
95698         * modules/vprintf-posix (Depends-on): Likewise.
95699         * modules/vsnprintf-posix (Depends-on): Likewise.
95700         * modules/vsprintf-posix (Depends-on): Likewise.
95701         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
95702         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
95703         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
95704         "no" on i386, x86_64, ia64.
95705         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
95706         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
95707         on i386, x86_64, ia64.
95708         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
95709         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
95710         on i386, x86_64, ia64.
95711         * tests/test-vasnprintf-posix.c: Include float.h.
95712         (LDBL80_WORDS): New macro.
95713         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
95714         on i386, x86_64, ia64.
95715         * tests/test-vasprintf-posix.c: Include float.h.
95716         (LDBL80_WORDS): New macro.
95717         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
95718         on i386, x86_64, ia64.
95719         * tests/test-snprintf-posix.c: Include float.h.
95720         * tests/test-sprintf-posix.c: Likewise.
95721         * tests/test-vsnprintf-posix.c: Likewise.
95722         * tests/test-vsprintf-posix.c: Likewise.
95724 2007-06-05  Bruno Haible  <bruno@clisp.org>
95726         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
95727         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
95728         non-IEEE numbers on i386, x86_64, ia64.
95729         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
95730         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
95731         * tests/test-isnanl.h: Include float.h.
95732         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
95734 2007-06-05  Bruno Haible  <bruno@clisp.org>
95736         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
95737         also the %a / %A. Handle the %a / %A code before this extra handling.
95739 2007-06-05  Bruno Haible  <bruno@clisp.org>
95741         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
95742         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
95744 2007-06-05  Bruno Haible  <bruno@clisp.org>
95746         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
95747         typo in variable name.
95749 2007-06-05  Eric Blake  <ebb9@byu.net>
95751         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
95752         Reported by Simon Josefsson.
95754 2007-06-04  Bruno Haible  <bruno@clisp.org>
95756         Avoid test failures on some PowerPC platforms.
95757         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
95758         Define differently for PowerPC.
95759         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
95760         Reported by Gary V. Vaughan <gary@gnu.org>.
95762 2007-06-02  Bruno Haible  <bruno@clisp.org>
95764         Fix test-stdint failure on FreeBSD/ia64.
95765         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
95766         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
95767         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
95768         * doc/headers/stdint.texi: Update.
95770 2007-06-01  Bruno Haible  <bruno@clisp.org>
95772         * tests/test-binary-io.c (main): Pass a third argument to open().
95773         Reported by Gary V. Vaughan <gary@gnu.org>.
95775 2007-06-01  Bruno Haible  <bruno@clisp.org>
95777         * doc/functions/frexpl.texi: Update for mingw.
95779 2007-06-01  Bruno Haible  <bruno@clisp.org>
95781         * tests/test-lseek.c (main): Disable test of errno for invalid third
95782         argument.
95783         * doc/functions/lseek.texi: Update.
95784         Reported by Gary V. Vaughan <gary@gnu.org>.
95786 2007-05-28  Bruno Haible  <bruno@clisp.org>
95788         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
95790 2007-05-31  Eric Blake  <ebb9@byu.net>
95792         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
95793         cross compiling.
95795 2007-05-30  Eric Blake  <ebb9@byu.net>
95796         and Bruno Haible  <bruno@clisp.org>
95798         Work around mingw test failures exposed by m4-1.4.9b.
95799         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
95800         * tests/test-unistd.c: Disable uid_t and git_t tests for the
95801         moment.
95803 2007-05-30  Bruno Haible  <bruno@clisp.org>
95805         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
95806         assuming that they are closed. Needed on HP-UX 11.
95808 2007-05-29  Bruno Haible  <bruno@clisp.org>
95810         Fix a problem with #include_next.
95811         * lib/dirent_.h: Split the double-inclusion guard.
95812         * lib/fcntl_.h: Likewise.
95813         * lib/float_.h: Likewise.
95814         * lib/iconv_.h: Likewise.
95815         * lib/inttypes_.h: Likewise.
95816         * lib/locale_.h: Likewise.
95817         * lib/math_.h: Likewise.
95818         * lib/netinet_in_.h: Likewise.
95819         * lib/search_.h: Likewise.
95820         * lib/signal_.h: Likewise.
95821         * lib/stdint_.h: Likewise.
95822         * lib/stdio_.h: Likewise.
95823         * lib/stdlib_.h: Likewise.
95824         * lib/string_.h: Likewise.
95825         * lib/sys_select_.h: Likewise.
95826         * lib/sys_socket_.h: Likewise.
95827         * lib/sys_stat_.h: Likewise.
95828         * lib/sys_time_.h: Likewise.
95829         * lib/sysexits_.h: Likewise.
95830         * lib/time_.h: Likewise.
95831         * lib/unistd_.h: Likewise.
95832         * lib/wchar_.h: Likewise.
95833         * lib/wctype_.h: Likewise.
95835 2007-05-29  Bruno Haible  <bruno@clisp.org>
95837         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
95838         for the moment.
95840 2007-05-29  Bruno Haible  <bruno@clisp.org>
95842         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
95843         invocation.
95844         Reported by Eric Blake.
95846 2007-05-29  Bruno Haible  <bruno@clisp.org>
95848         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
95849         compiling case.
95851 2007-05-29  Eric Blake  <ebb9@byu.net>
95852             Bruno Haible  <bruno@clisp.org>
95854         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
95855         cross compiles.
95857 2007-05-28  Eric Blake  <ebb9@byu.net>
95859         * modules/closein-tests (test_closein_LDADD): Support test on
95860         cygwin with libtool.
95862 2007-05-28  Bruno Haible  <bruno@clisp.org>
95864         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
95865         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
95866         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
95867         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
95868         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
95869         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
95870         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
95871         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
95872         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
95874 2007-05-28  Eric Blake  <ebb9@byu.net>
95876         Unconditionally include <config.h> in unit tests.
95877         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
95878         * tests/test-allocsa.c, tests/test-arcfour.c,
95879         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
95880         tests/test-array_list.c, tests/test-array_oset.c,
95881         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
95882         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
95883         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
95884         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
95885         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
95886         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
95887         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
95888         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
95889         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
95890         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
95891         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
95892         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
95893         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
95894         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
95895         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
95896         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
95897         test-md5.c, test-memmem.c, test-printf-posix.c,
95898         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
95899         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
95900         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
95901         test-strcasestr.c, test-striconv.c, test-striconveh.c,
95902         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
95903         test-vasnprintf-posix2.c, test-vasnprintf.c,
95904         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
95905         test-vfprintf-posix.c, test-vprintf-posix.c,
95906         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
95907         test-xvasprintf.c: Likewise.
95909 2007-05-28  Bruno Haible  <bruno@clisp.org>
95911         * gnulib-tool (func_import): Remember the --with-tests command-line
95912         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
95913         Reported by Eric Blake.
95915 2007-05-28  Bruno Haible  <bruno@clisp.org>
95917         * modules/ftell-tests: New file.
95918         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
95919         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
95921         * lib/ftell.c: New file.
95922         * modules/ftell: New file.
95923         * m4/ftell.m4: New file.
95924         * doc/functions/ftell.texi: Update.
95925         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
95926         REPLACE_FTELL.
95927         * lib/stdio_.h (rpl_ftell): New declaration.
95928         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
95929         REPLACE_FTELL.
95931 2007-05-28  Eric Blake  <ebb9@byu.net>
95933         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
95935 2007-05-28  Bruno Haible  <bruno@clisp.org>
95937         * modules/fseek-tests: New file.
95938         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
95939         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
95941         * lib/fseek.c: New file.
95942         * modules/fseek: New file.
95943         * m4/fseek.m4: New file.
95944         * doc/functions/fseek.texi: Update.
95945         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
95946         REPLACE_FSEEK.
95947         * lib/stdio_.h (rpl_fseek): New declaration.
95948         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
95949         REPLACE_FSEEK.
95951 2007-05-28  Bruno Haible  <bruno@clisp.org>
95953         * lib/stdio_.h (fflush): More comments.
95955 2007-05-28  Bruno Haible  <bruno@clisp.org>
95957         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
95958         runtime test.
95960 2007-05-28  Eric Blake  <ebb9@byu.net>
95962         Improve lseek module.
95963         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
95964         * lib/unistd_.h (lseek): Scale back link warning message.
95965         * tests/test-lseek.c: Beef up test.
95966         * tests/test-lseek.sh: Exercise more facets of lseek.
95967         Reported by Bruno Haible.
95969 2007-05-28  Bruno Haible  <bruno@clisp.org>
95971         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
95972         to define.
95974 2007-05-27  Bruno Haible  <bruno@clisp.org>
95976         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
95978 2007-05-27  Bruno Haible  <bruno@clisp.org>
95980         * modules/openmp: New file.
95981         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
95982         Noah Misch.
95984 2007-05-26  Bruno Haible  <bruno@clisp.org>
95986         * modules/chdir-long (Depends-on): Add fchdir.
95987         * modules/chdir-safer (Depends-on): Likewise.
95988         * modules/fts (Depends-on): Likewise.
95989         * modules/fts-lgpl (Depends-on): Likewise.
95990         * modules/openat (Depends-on): Likewise.
95991         * modules/savewd (Depends-on): Likewise.
95993 2007-05-24  Eric Blake  <ebb9@byu.net>
95995         Fix lseek on mingw.
95996         * modules/lseek: New module.
95997         * m4/lseek.m4: New file.
95998         * lib/lseek.c: New file.
95999         * modules/lseek-tests: New file.
96000         * tests/test-lseek.c: New file.
96001         * tests/test-lseek.sh: New file.
96002         * MODULES.html.sh: Document lseek module.
96003         * modules/fflush (Depends-on): Add lseek, fseeko.
96004         * modules/fseeko (Depends-on): Likewise.
96005         * modules/ftello (Depends-on): Likewise.
96006         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
96007         broken.
96008         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
96009         broken.
96010         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
96011         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
96012         * lib/ftello.c (rpl_ftello): Likewise.
96013         * tests/test-fseeko.c (main): Test this.
96014         * tests/test-fseeko.sh: Likewise.
96015         * tests/test-ftello.c (main): Likewise.
96016         * tests/test-ftello.sh: Likewise.
96017         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
96018         implies replacing fseek.
96019         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
96020         HAVE_FTELLO.
96021         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
96022         * modules/unistd (Makefile.am): Likewise.
96023         * lib/unistd_.h (lseek): Declare a replacement.
96024         * doc/functions/lseek.texi (lseek): Document this fix.
96025         * doc/functions/fseek.texi (fseek): Likewise.
96026         * doc/functions/ftell.texi (ftell): Likewise.
96028 2007-05-24  Bruno Haible  <bruno@clisp.org>
96030         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
96031         in the printed representation of a NaN.
96032         * tests/test-vasprintf-posix.c (test_function): Likewise.
96033         * tests/test-snprintf-posix.h (test_function): Likewise.
96034         * tests/test-sprintf-posix.h (test_function): Likewise.
96035         Reported by Eric Blake.
96037 2007-05-23  Eric Blake  <ebb9@byu.net>
96039         Fix fseeko/ftello on cygwin 1.5.24.
96040         * doc/functions/fseeko.texi (fseeko): Document the fix.
96041         * doc/functions/ftello.texi (ftello): Document the fix.
96042         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
96043         * doc/functions/stdout.text (stdout): New file.
96044         * doc/functions/stderr.text (stderr): New file.
96045         * doc/gnulib.texi (Function Substitutes): Use new files.
96046         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
96047         prior to 1.7.0.
96048         * tests/test-ftello.c (main): Likewise for ftello.
96049         * tests/test-fseeko.sh: New file.
96050         * tests/test-ftello.sh: New file.
96051         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
96052         with seekable stdin.
96053         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
96054         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
96055         (gl_REPLACE_FSEEKO): New macro.
96056         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
96057         * modules/fseeko (Files): Distribute fseeko.c.
96058         * modules/ftello (Files): Distribute ftello.c.
96059         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
96060         mode.
96061         * lib/ftello.c (rpl_ftello): New file.
96062         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
96063         fseeko, ftello.
96064         (gl_STDIN_LARGE_OFFSET): New macro.
96065         * modules/stdio (Makefile.am): Perform the replacement.
96066         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
96068 2007-05-23  Bruno Haible  <bruno@clisp.org>
96070         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
96071         GNULIB_POSIXCHECK is defined.
96073 2007-05-21  Bruno Haible  <bruno@clisp.org>
96075         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
96076         Check also the output for NaN arguments. When cross-compiling, guess
96077         no on IRIX.
96078         * lib/vasnprintf.c: Update comments.
96079         * tests/test-vasnprintf-posix.c (strisnan): New function.
96080         (test_function): Use it.
96081         * tests/test-vasprintf-posix.c (strisnan): New function.
96082         (test_function): Use it.
96083         * tests/test-snprintf-posix.h (strisnan): New function.
96084         (test_function): Use it.
96085         * tests/test-sprintf-posix.h (strisnan): New function.
96086         (test_function): Use it.
96087         Reported by Eric Blake.
96089 2007-05-20  Bruno Haible  <bruno@clisp.org>
96091         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
96092         numbers that fails on BeOS.
96093         * doc/functions/frexpl.texi: Update.
96095 2007-05-20  Jim Meyering  <jim@meyering.net>
96097         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
96098         forced upon us by glibc-2.6.
96100 2007-05-20  Bruno Haible  <bruno@clisp.org>
96102         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
96103         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
96104         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
96105         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
96106         NEED_PRINTF_INFINITE.
96107         (is_infinitel): New function.
96108         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
96109         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
96110         gl_PREREQ_VASNPRINTF_INFINITE.
96111         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
96112         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
96113         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
96114         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
96115         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
96116         gl_PREREQ_VASNPRINTF_INFINITE.
96117         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
96118         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
96119         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
96120         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
96121         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
96122         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
96123         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
96124         * doc/functions/fprintf.texi: Update.
96125         * doc/functions/printf.texi: Update.
96126         * doc/functions/snprintf.texi: Update.
96127         * doc/functions/sprintf.texi: Update.
96128         * doc/functions/vfprintf.texi: Update.
96129         * doc/functions/vprintf.texi: Update.
96130         * doc/functions/vsnprintf.texi: Update.
96131         * doc/functions/vsprintf.texi: Update.
96133 2007-05-20  Bruno Haible  <bruno@clisp.org>
96135         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
96136         was not found in libc.
96137         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
96139 2007-05-20  Bruno Haible  <bruno@clisp.org>
96141         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
96142         printed as "-nan" instead of "nan".
96143         * tests/test-vasprintf-posix.c (test_function): Likewise.
96144         * tests/test-snprintf-posix.h (test_function): Likewise.
96145         * tests/test-sprintf-posix.h (test_function): Likewise.
96146         Needed for HP-UX 11.
96148 2007-05-20  Jim Meyering  <jim@meyering.net>
96150         Fix buggy test for the fchownat-deref bug.
96151         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
96152         symlink required for the run-test.  Without it, this test would
96153         always declare that fchownat doesn't work, and client code would
96154         unnecessarily use the replacement function with fixed libc.
96155         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
96156         Reported by Greg Schafer.
96158 2007-05-19  Bruno Haible  <bruno@clisp.org>
96160         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
96161         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
96162         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
96163         Needed for IRIX 6.5 and Solaris 2.5.1.
96165 2007-05-19  Bruno Haible  <bruno@clisp.org>
96167         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
96168         (test_function): Skip tests involving -0.0 on platforms where
96169         -0.0 = 0.0.
96170         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
96171         (test_function): Skip tests involving -0.0 on platforms where
96172         -0.0 = 0.0.
96173         * tests/test-snprintf-posix.h (have_minus_zero): New function.
96174         (test_function): Skip tests involving -0.0 on platforms where
96175         -0.0 = 0.0.
96176         * tests/test-sprintf-posix.h (have_minus_zero): New function.
96177         (test_function): Skip tests involving -0.0 on platforms where
96178         -0.0 = 0.0.
96179         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
96180         tests.
96181         * tests/test-printf-posix.h (test_function): Likewise.
96182         * tests/test-printf-posix.output: Remove all -0.0 related results.
96183         Needed for IRIX 6.5.
96185 2007-05-19  Bruno Haible  <bruno@clisp.org>
96187         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
96188         printed as "nan0x7fffffff" instead of "nan".
96189         * tests/test-vasprintf-posix.c (test_function): Likewise.
96190         * tests/test-snprintf-posix.h (test_function): Likewise.
96191         * tests/test-sprintf-posix.h (test_function): Likewise.
96192         * tests/test-fprintf-posix.h (NaN): Remove macro.
96193         (test_function): Remove all NaN related tests.
96194         * tests/test-printf-posix.h (NaN): Remove macro.
96195         (test_function): Remove all NaN related tests.
96196         * tests/test-printf-posix.output: Remove all NaN related results.
96197         Needed for IRIX 6.5.
96199 2007-05-19  Bruno Haible  <bruno@clisp.org>
96201         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
96202         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
96204 2007-05-19  Bruno Haible  <bruno@clisp.org>
96206         * lib/float_.h: New file.
96207         * m4/float_h.m4: New file.
96208         * modules/float: New file.
96209         * modules/isnanl (Dependencies): Add float.
96210         * modules/isnanl-nolibm (Dependencies): Likewise.
96211         * modules/mathl (Dependencies): Likewise.
96212         * modules/printf-frexpl (Dependencies): Likewise.
96213         * modules/signbit (Dependencies): Likewise.
96214         * modules/vasnprintf (Dependencies): Likewise.
96215         * doc/headers/float.texi: Update.
96217 2007-05-19  Jim Meyering  <jim@meyering.net>
96219         * lib/utimens.c (gl_futimens): Rename from futimens,
96220         now that glibc-2.6 declares futimens.
96221         * lib/utimens.h: Likewise.
96223 2007-05-19  Bruno Haible  <bruno@clisp.org>
96225         Avoid test failures on mingw.
96226         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
96227         * tests/test-printf-posix.sh: Likewise.
96228         * tests/test-vfprintf-posix.sh: Likewise.
96229         * tests/test-vprintf-posix.sh: Likewise.
96231 2007-05-19  Bruno Haible  <bruno@clisp.org>
96233         Fix *printf result for NaN, Inf, -0.0 on mingw.
96234         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
96235         * lib/vasnprintf.c: Include math.h and isnan.h.
96236         (is_infinite_or_zero): New function.
96237         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
96238         values in the %f, %F, %e, %E, %g, %G directives.
96239         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
96240         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
96241         gl_PRINTF_INFINITE and test its result. Invoke
96242         gl_PREREQ_VASNPRINTF_INFINITE.
96243         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
96244         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
96245         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
96246         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
96247         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
96248         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
96249         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
96250         * doc/functions/fprintf.texi: Update.
96251         * doc/functions/printf.texi: Update.
96252         * doc/functions/snprintf.texi: Update.
96253         * doc/functions/sprintf.texi: Update.
96254         * doc/functions/vfprintf.texi: Update.
96255         * doc/functions/vprintf.texi: Update.
96256         * doc/functions/vsnprintf.texi: Update.
96257         * doc/functions/vsprintf.texi: Update.
96259 2007-05-19  Bruno Haible  <bruno@clisp.org>
96261         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
96262         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
96263         Instead of multiplying with 10^k, set extra_zeroes to k.
96264         (scale10_round_long_double): Remove function.
96266 2007-05-18  Bruno Haible  <bruno@clisp.org>
96268         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
96269         introduced on 2007-05-06.
96271 2007-05-18  Bruno Haible  <bruno@clisp.org>
96273         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
96274         %g directives.
96275         * tests/test-vasprintf-posix.c (test_function): Likewise.
96276         * tests/test-snprintf-posix.h (test_function): Likewise.
96277         * tests/test-sprintf-posix.h (test_function): Likewise.
96279 2007-05-18  Bruno Haible  <bruno@clisp.org>
96281         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
96282         (strmatch): New function.
96283         (test_function): Test the %f directive on numbers of various exponents.
96284         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
96285         (strmatch): New function.
96286         (test_function): Test the %f directive on numbers of various exponents.
96287         * tests/test-snprintf-posix.h (strmatch): New function.
96288         (test_function): Test the %f directive on numbers of various exponents.
96289         * tests/test-sprintf-posix.h (strmatch): New function.
96290         (test_function): Test the %f directive on numbers of various exponents.
96291         * tests/test-snprintf-posix.c (SIZEOF): New macro.
96292         * tests/test-sprintf-posix.c (SIZEOF): New macro.
96293         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
96294         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
96296 2007-05-18  Bruno Haible  <bruno@clisp.org>
96298         Add support for 'long double' number output.
96299         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
96300         * lib/vasnprintf.c: Include math.h and float+.h.
96301         (mp_limb_t): New type.
96302         (GMP_LIMB_BITS): New macro.
96303         (mp_twolimb_t): New type.
96304         (GMP_TWOLIMB_BITS): New macro.
96305         (mpn_t): New type.
96306         (multiply, divide, convert_to_decimal, decode_long_double,
96307         scale10_round_long_double, scale10_round_decimal_long_double,
96308         floorlog10l): New functions.
96309         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
96310         for the %f, %F, %e, %E, %g, %G directives.
96311         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
96312         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
96313         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
96314         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
96315         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
96316         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
96317         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
96318         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
96319         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
96320         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
96321         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
96322         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
96323         * modules/snprintf-posix (Depends-on): Likewise.
96324         * modules/sprintf-posix (Depends-on): Likewise.
96325         * modules/vasnprintf-posix (Depends-on): Likewise.
96326         * modules/vasprintf-posix (Depends-on): Likewise.
96327         * modules/vfprintf-posix (Depends-on): Likewise.
96328         * modules/vsnprintf-posix (Depends-on): Likewise.
96329         * modules/vsprintf-posix (Depends-on): Likewise.
96330         * modules/vasnprintf (Files): Add lib/float+.h.
96331         * doc/functions/fprintf.texi: Update.
96332         * doc/functions/printf.texi: Update.
96333         * doc/functions/snprintf.texi: Update.
96334         * doc/functions/sprintf.texi: Update.
96335         * doc/functions/vfprintf.texi: Update.
96336         * doc/functions/vprintf.texi: Update.
96337         * doc/functions/vsnprintf.texi: Update.
96338         * doc/functions/vsprintf.texi: Update.
96340 2007-05-18  Bruno Haible  <bruno@clisp.org>
96342         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
96344 2007-05-18  Bruno Haible  <bruno@clisp.org>
96346         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
96347         for printing 64-bit integers. Needed for mingw.
96349 2007-05-18  Bruno Haible  <bruno@clisp.org>
96351         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
96352         gl_FUNC_FREXPL_WORKS.
96353         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
96355 2007-05-18  Bruno Haible  <bruno@clisp.org>
96357         * modules/frexpl-nolibm-tests: New file.
96359         * modules/frexpl-nolibm: New file.
96360         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
96362 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
96364         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
96365         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
96366         GCC 4.2, which otherwise issues a lot of warnings.
96367         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
96368         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
96369         Likewise.
96370         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
96371         * modules/iconv_open (iconv.h): Likewise.
96372         * modules/locale (locale.h): Likewise.
96373         * modules/netinet_in (netinet/in.h): Likewise.
96374         * modules/sys_select (sys_select.h): Likewise.
96375         * modules/sys_socket (sys/socket.h): Likewise.
96376         * modules/sys_stat (sys/stat.h): Likewise.
96377         * modules/sysexits (sysexits.h): Likewise.
96378         * modules/unistd (unistd.h): Likewise.
96380 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96382         * modules/closein-tests (Makefile.am): Distribute
96383         `test-closein.sh'.
96385 2007-05-17  Bruno Haible  <bruno@clisp.org>
96387         * tests/test-printf-posix.output: Renamed from
96388         tests/test-fprintf-posix.out.
96389         * modules/fprintf-posix-tests: Update.
96390         * modules/printf-posix-tests: Update.
96391         * modules/vfprintf-posix-tests: Update.
96392         * modules/vprintf-posix-tests: Update.
96393         * tests/test-fprintf-posix.sh: Update.
96394         * tests/test-printf-posix.sh: Update.
96395         * tests/test-vfprintf-posix.sh: Update.
96396         * tests/test-vprintf-posix.sh: Update.
96397         Reported by Ralf Wildenhues.
96399 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
96401         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
96402         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
96403         GCC 4.2, which otherwise issues a lot of warnings.
96404         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
96405         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
96406         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
96407         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
96408         it should no longer be needed.
96409         * lib/string_.h: Likewise.
96410         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
96411         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
96412         * modules/inttypes (inttypes.h): Likewise.
96413         * modules/math (math.h): Likewise.
96414         * modules/search (search.h): Likewise.
96415         * modules/signal (signal.h): Likewise.
96416         * modules/stdint (stdint.h): Likewise.
96417         * modules/stdio (stdio.h): Likewise.
96418         * modules/stdlib (stdlib.h): Likewise.
96419         * modules/string (string.h): Likewise.
96420         * modules/sys_time (sys/time.h): Likewise.
96421         * modules/time (time.h): Likewise.
96422         * modules/wchar (wchar.h): Likewise.
96423         * modules/wctype (wtype.h): Likewise.
96425 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
96427         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
96429 2007-05-13  Bruno Haible  <bruno@clisp.org>
96431         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
96432         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
96433         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
96434         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
96435         (gl_PREREQ_STRTOK_R): Don't require it here.
96437 2007-05-13  Bruno Haible  <bruno@clisp.org>
96439         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
96440         when used in C++ mode.
96442 2007-05-12  Bruno Haible  <bruno@clisp.org>
96444         * lib/linebuffer.h: Tweak doc.
96445         * lib/linebuffer.c: Likewise.
96447 2007-05-12  James Youngman  <jay@gnu.org>
96449         * lib/linebuffer.c (readlinebuffer_delim): New function,
96450         like readlinebuffer, but use a caller-specified delimiter.
96451         (readlinebuffer): Just call readlinebuffer_delim with '\n'
96452         as the delimiter.
96453         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
96455 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
96457         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
96458         * modules/openat (Files): Remove openat-die.c.
96459         (Depends-on): Add openat-die.
96460         * modules/openat-die: New module.
96462 2007-05-06  Bruno Haible  <bruno@clisp.org>
96464         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
96465         Update with info about Cygwin.
96466         * doc/functions/fprintf.texi: Update.
96467         * doc/functions/printf.texi: Update.
96468         * doc/functions/snprintf.texi: Update.
96469         * doc/functions/sprintf.texi: Update.
96470         * doc/functions/vfprintf.texi: Update.
96471         * doc/functions/vprintf.texi: Update.
96472         * doc/functions/vsnprintf.texi: Update.
96473         * doc/functions/vsprintf.texi: Update.
96474         Reported by Eric Blake.
96476 2007-05-06  Bruno Haible  <bruno@clisp.org>
96478         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
96479         padding ourselves for the floating-point directives.
96480         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
96481         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
96482         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
96483         gl_PRINTF_FLAG_ZERO and test its result. Invoke
96484         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
96485         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
96486         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
96487         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
96488         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
96489         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
96490         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
96491         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
96492         * tests/test-snprintf-posix.h (test_function): Also check the width
96493         and some flags in the %f directive.
96494         * tests/test-sprintf-posix.h (test_function): Likewise.
96495         * tests/test-vasnprintf-posix.c (test_function): Likewise.
96496         * tests/test-vasprintf-posix.c (test_function): Likewise.
96497         * doc/functions/fprintf.texi: Update.
96498         * doc/functions/printf.texi: Update.
96499         * doc/functions/snprintf.texi: Update.
96500         * doc/functions/sprintf.texi: Update.
96501         * doc/functions/vfprintf.texi: Update.
96502         * doc/functions/vprintf.texi: Update.
96503         * doc/functions/vsnprintf.texi: Update.
96504         * doc/functions/vsprintf.texi: Update.
96506 2007-05-06  Bruno Haible  <bruno@clisp.org>
96508         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
96509         pass the ' flag character to sprintf or snprintf.
96510         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
96511         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
96512         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
96513         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
96514         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
96515         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
96516         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
96517         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
96518         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
96519         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
96520         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
96521         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
96522         * tests/test-snprintf-posix.h (test_function): Also check the grouping
96523         flag.
96524         * tests/test-sprintf-posix.h (test_function): Likewise.
96525         * tests/test-vasnprintf-posix.c (test_function): Likewise.
96526         * tests/test-vasprintf-posix.c (test_function): Likewise.
96527         * doc/functions/fprintf.texi: Update.
96528         * doc/functions/printf.texi: Update.
96529         * doc/functions/snprintf.texi: Update.
96530         * doc/functions/sprintf.texi: Update.
96531         * doc/functions/vfprintf.texi: Update.
96532         * doc/functions/vprintf.texi: Update.
96533         * doc/functions/vsnprintf.texi: Update.
96534         * doc/functions/vsprintf.texi: Update.
96536 2007-05-01  Bruno Haible  <bruno@clisp.org>
96538         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
96540 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
96542         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
96543         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
96545 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
96547         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
96548         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
96549         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00021.html>.
96551 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
96553         * lib/argp-help.c (struct hol_entry): New member `ord'.
96554         (HOL_ENTRY_PTRCMP): Use ord for comparison
96555         (hol_sort): Initialize ord.
96557 2007-05-01  Bruno Haible  <bruno@clisp.org>
96559         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
96560         Reported by Eric Blake.
96561         * doc/gnulib.texi (Function Substitutes): Update.
96563 2007-05-01  Bruno Haible  <bruno@clisp.org>
96565         * doc/functions.texi: Remove file, now redundant through
96566         doc/functions/*.texi.
96568 2007-05-01  Bruno Haible  <bruno@clisp.org>
96570         * modules/argp (Depends-on): Add sleep.
96572 2007-05-01  Bruno Haible  <bruno@clisp.org>
96574         * modules/sleep-tests: New file.
96575         * tests/test-sleep.c: New file.
96577         * modules/sleep: New file.
96578         * lib/sleep.c: New file.
96579         * m4/sleep.m4: New file.
96580         * lib/unistd_.h (sleep): New declaration.
96581         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
96582         HAVE_SLEEP.
96583         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
96584         * doc/functions/sleep.texi: Document the sleep module.
96586 2007-05-01  Bruno Haible  <bruno@clisp.org>
96588         * lib/sigprocmask.h: Remove file.
96589         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
96590         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
96591         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
96592         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
96593         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
96594         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
96595         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
96596         HAVE_SIGSET_T as a shell variable.
96597         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
96598         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
96599         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
96600         (Depends-on): Add signal. Remove verify.
96601         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
96602         (Include): Mention <signal.h> instead of sigprocmask.h.
96603         * NEWS: Mention the change.
96604         * lib/fatal-signal.c: Don't include sigprocmask.h.
96606 2007-05-01  Bruno Haible  <bruno@clisp.org>
96608         * modules/signal: New file.
96609         * lib/signal_.h: New file.
96610         * m4/signal_h.m4: New file.
96612 2007-05-01  Bruno Haible  <bruno@clisp.org>
96614         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
96615         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
96616         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
96617         HAVE_WCTYPE_CTMP_BUG into wctype.h.
96619 2007-05-01  Bruno Haible  <bruno@clisp.org>
96621         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
96622         configure time.
96623         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
96624         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
96625         * modules/sys_stat (Makefile.am): Substitute their values into
96626         sys/stat.h.
96628 2007-05-01  Bruno Haible  <bruno@clisp.org>
96630         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
96631         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
96632         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
96634 2007-05-01  Bruno Haible  <bruno@clisp.org>
96636         * doc/header/assert.texi: Undo last change: don't mention the gnulib
96637         'assert' module here.
96639 2007-05-01  Bruno Haible  <bruno@clisp.org>
96641         * doc/functions/*.texi: New files.
96642         * doc/functions/google-ranking.txt: New file.
96643         * doc/gnulib.texi (Function Substitutes): New chapter.
96644         (ctime, inet_ntoa): Remove sections.
96645         * doc/ctime.texi: Remove file.
96646         * doc/inet_ntoa.texi: Remove file.
96647         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
96648         dependencies.
96649         (%.info): New rule, specifying a --reference-limit.
96651 2007-05-01  Bruno Haible  <bruno@clisp.org>
96653         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
96655 2007-05-01  Bruno Haible  <bruno@clisp.org>
96657         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
96658         the portability of 'mkdir' to mingw systems.
96660 2007-05-01  Bruno Haible  <bruno@clisp.org>
96662         * doc/headers/google-ranking.txt: New file.
96664 2007-04-30  Eric Blake  <ebb9@byu.net>
96666         Prefer fseeko to fseek.
96667         * modules/getpass (Depends-on): Add fseeko.
96668         * lib/getpass.c (getpass): Use fseeko, not fseek.
96670 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
96672         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
96673         assumes the sorting is stable, while most qsort implementations
96674         are not.  Use argument addresses to ensure they never compare as
96675         equal.
96677         * tests/test-argp-2.sh (usage-indent test): Fix output
96678         (func_compare): Restore diff options
96679         * tests/test-argp.c: Restore #include "progname.h"
96681 2007-04-29  Bruno Haible  <bruno@clisp.org>
96683         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
96684         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
96685         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
96686         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
96687         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
96688         (configure.ac): Define CHECK_SNPRINTF_POSIX.
96689         (TESTS, check_PROGRAMS): Add test-snprintf.
96690         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
96691         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
96692         (TESTS, check_PROGRAMS): Add test-vsnprintf.
96693         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
96694         assertions that fail on HP-UX, OSF/1, or IRIX.
96695         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
96697 2007-04-29  Bruno Haible  <bruno@clisp.org>
96699         * MODULES.html.sh (posix_functions): Remove 'contents'.
96701 2007-04-29  Karl Berry  <karl@gnu.org>
96703         * config/srclist.txt (gendocs_template_min): new entry.
96705 2007-04-29  Bruno Haible  <bruno@clisp.org>
96707         Work around fpurge bug on BSD systems.
96708         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
96709         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
96710         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
96711         fpurge to rpl_fpurge if the system already has this function.
96712         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
96713         the case where the system already has this function. Correct invariants
96714         on BSD systems.
96715         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
96716         BSD systems.
96718 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
96720         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
96721         proposed by Sven Verdoolaege.
96723         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
96724         options.
96725         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
96726         (usage and help tests): Update
96728 2007-04-29  Bruno Haible  <bruno@clisp.org>
96730         * tests/test-fflush.c (main): Use a file of size 17, not 10.
96731         Print more information in case of failure. Disable a test on BeOS.
96733 2007-04-29  Bruno Haible  <bruno@clisp.org>
96735         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
96736         This helps debugging on systems on which no gdb is available.
96738 2007-04-29  Bruno Haible  <bruno@clisp.org>
96740         * lib/freading.h: Improve comments.
96741         * lib/fwriting.h: Likewise.
96742         * tests/test-freading.c (main): Don't check freading immediately after
96743         repositioning. Needed for glibc.
96745 2007-04-29  Bruno Haible  <bruno@clisp.org>
96747         * lib/freading.c (freading): Trivial simplification.
96749 2007-04-28  Bruno Haible  <bruno@clisp.org>
96751         * tests/test-fwriting.c (main): Also test the interaction between
96752         fflush and fwriting.
96753         * modules/fwriting-tests (Depends-on): Add fflush.
96755         * tests/test-freading.c (main): Also test the interaction between
96756         fflush and freading.
96757         * modules/freading-tests (Depends-on): Add fflush.
96759 2007-04-28  Bruno Haible  <bruno@clisp.org>
96761         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
96762         fseeko and ftello.
96763         Suggested by Eric Blake.
96765 2007-04-28  Jim Meyering  <jim@meyering.net>
96767         Avoid false-negative in gl_STDINT_H's C99 conformance test.
96768         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
96769         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
96771 2007-04-27  Eric Blake  <ebb9@byu.net>
96773         * doc/headers/assert.texi (assert.h): Document assert module use.
96775 2007-04-27  Bruno Haible  <bruno@clisp.org>
96777         * doc/headers/*.texi: New files.
96778         * doc/gnulib.texi (Header File Substitutes): New chapter.
96779         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
96780         dependencies.
96781         (standards.info ,standards.html, standards.dvi): Update dependencies.
96782         (mostlyclean, clean): New targets.
96784 2007-04-27  Bruno Haible  <bruno@clisp.org>
96786         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
96787         * modules/sysexits (Files, Makefile.am): Update.
96789         * lib/sys_socket_.h: Renamed from lib/socket_.h.
96790         * modules/sys_socket (Files, Makefile.am): Update.
96792         * lib/sys_stat_.h: Renamed from lib/stat_.h.
96793         * modules/sys_stat (Files, Makefile.am): Update.
96795 2007-04-27  Eric Blake  <ebb9@byu.net>
96797         * lib/freading.h: Improve comments.
96798         * lib/fwriting.h: Likewise.
96799         * lib/fflush.c: Likewise.
96801         Fix closein for mingw.
96802         * modules/closein-tests: Add tests for closein.
96803         * tests/test-closein.c: New file.
96804         * tests/test-closein.sh: Likewise.
96805         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
96806         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
96808 2007-04-27  Bruno Haible  <bruno@clisp.org>
96810         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
96811         version is < 6.
96812         * lib/math_.h [__DECC]: Likewise.
96813         * lib/stdio_.h [__DECC]: Likewise.
96814         * lib/stdlib_.h [__DECC]: Likewise.
96815         * lib/string_.h [__DECC]: Likewise.
96816         * lib/time_.h [__DECC]: Likewise.
96817         * lib/wchar_.h [__DECC]: Likewise.
96818         * lib/wctype_.h [__DECC]: Likewise.
96820 2007-04-27  Bruno Haible  <bruno@clisp.org>
96822         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
96824 2007-04-27  Bruno Haible  <bruno@clisp.org>
96826         * lib/fflush.c: Add comments.
96827         * modules/fpurge-tests (Depends-on): Add fflush.
96828         * modules/freadable-tests (Depends-on): Likewise.
96829         * modules/fwritable-tests (Depends-on): Likewise.
96831 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
96833         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
96834         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
96835         Report by Bruno Haible <bruno@clisp.org>.
96837 2007-04-26  Eric Blake  <ebb9@byu.net>
96839         Fix fflush on mingw.
96840         * modules/fflush (Depends-on): Add freading.
96841         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
96842         but unread data.
96844 2007-04-26  Eric Blake  <ebb9@byu.net>
96845         and Bruno Haible  <bruno@clisp.org>
96847         Implement freading and fwriting.
96848         * lib/freading.c: New file.
96849         * lib/freading.h: Likewise.
96850         * m4/freading.m4: Likewise.
96851         * modules/freading: Likewise.
96852         * modules/freading-tests: Likewise.
96853         * tests/test-freading.c: Likewise.
96854         * lib/fwriting.c: New file.
96855         * lib/fwriting.h: Likewise.
96856         * m4/fwriting.m4: Likewise.
96857         * modules/fwriting: Likewise.
96858         * modules/fwriting-tests: Likewise.
96859         * tests/test-fwriting.c: Likewise.
96860         * MODULES.html.sh (File stream based Input/Output): Mention them.
96862 2007-04-26  Bruno Haible  <bruno@clisp.org>
96864         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
96865         'long' when we assume it.
96866         Suggested by Eric Blake.
96868 2007-04-26  Bruno Haible  <bruno@clisp.org>
96870         Ensure fseeko, ftello are declared on glibc systems.
96871         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
96872         * modules/fseeko (configure.ac-early): Likewise.
96873         * modules/ftello (configure.ac-early): Likewise.
96874         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
96875         AC_FUNC_FSEEKO for this.
96876         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
96877         (gl_CHECK_FSEEKO): Remove macro.
96879 2007-04-26  Bruno Haible  <bruno@clisp.org>
96881         * tests/test-fflush.c (main): Also check the ftell result after
96882         fflush and fseek/fseeko.
96883         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
96884         file descriptor position cache in the stream.
96885         * lib/fseeko.c (rpl_fseeko): Likewise.
96887 2007-04-26  Bruno Haible  <bruno@clisp.org>
96889         * modules/fflush-tests (Depends-on): Add fseeko.
96891 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
96892             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96894         * lib/argz_.h: ensure error_t definition is obtained in same
96895         mechanism system argz.h would have.
96896         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
96897         argz facilities are known bad.  Err on the side of caution if
96898         cross-compiling.
96900 2007-04-25  Eric Blake  <ebb9@byu.net>
96902         * lib/fpurge.c (includes): Use stdlib.h for free.
96903         * tests/test-fflush.c (main): Also test fflush-fseeko.
96905 2007-04-25  Bruno Haible  <bruno@clisp.org>
96907         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
96908         * lib/fseeko.c: New file.
96909         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
96910         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
96911         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
96912         gl_FUNC_FSEEKO.
96913         (gl_FUNC_FSEEKO): Invoke it.
96914         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
96915         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
96916         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
96918 2007-04-25  Bruno Haible  <bruno@clisp.org>
96920         * modules/fflush (Depends-on): Add ftello.
96922 2007-04-25  Bruno Haible  <bruno@clisp.org>
96924         * modules/ftello-tests: New file.
96925         * tests/test-ftello.c: New file.
96927         * modules/ftello: New file.
96928         * m4/ftello.m4: New file.
96929         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
96930         HAVE_FTELLO.
96931         * lib/stdio_.h (ftello): New declaration.
96932         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
96933         HAVE_FTELLO.
96935 2007-04-25  Bruno Haible  <bruno@clisp.org>
96937         * modules/fseeko-tests: New file.
96938         * tests/test-fseeko.c: New file.
96940         * modules/fseeko: New file.
96941         * m4/fseeko.m4: New file.
96942         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
96943         HAVE_FSEEKO.
96944         * lib/stdio_.h (fseeko): New declaration.
96945         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
96946         HAVE_FSEEKO.
96948 2007-04-25  Bruno Haible  <bruno@clisp.org>
96950         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
96952 2007-04-25  Bruno Haible  <bruno@clisp.org>
96954         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
96955         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
96956         * tests/test-unistd.c: Likewise.
96957         * tests/test-fcntl.c: Likewise.
96959 2007-04-23  Eric Blake  <ebb9@byu.net>
96961         * lib/fflush.c: Fix missing include.
96962         Reported by Bruno Haible.
96964 2007-04-23  Bruno Haible  <bruno@clisp.org>
96966         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
96967         Reported by Eric Blake.
96969 2007-04-23  Bruno Haible  <bruno@clisp.org>
96971         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
96973 2007-04-23  Bruno Haible  <bruno@clisp.org>
96975         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
96977 2007-04-23  Bruno Haible  <bruno@clisp.org>
96979         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
96980         Needed on HP-UX 11.
96982 2007-04-16  Eric Blake  <ebb9@byu.net>
96984         Make fflush rely on fpurge.
96985         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
96986         open coding all variants.
96987         * modules/fflush (Depends-on): Add fpurge and unistd.
96988         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
96989         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
96991         Fix --with-tests compilation on cygwin.
96992         * modules/argmatch-tests (Makefile.am): List gnulib library first
96993         in LDADD.
96994         * modules/argp-tests (Makefile.am): Likewise.
96995         * modules/array-list-tests (Makefile.am): Likewise.
96996         * modules/array-oset-tests (Makefile.am): Likewise.
96997         * modules/avltree-list-tests (Makefile.am): Likewise.
96998         * modules/avltree-oset-tests (Makefile.am): Likewise.
96999         * modules/avltreehash-list-tests (Makefile.am): Likewise.
97000         * modules/carray-list-tests (Makefile.am): Likewise.
97001         * modules/dirname-tests (Makefile.am): Likewise.
97002         * modules/frexp-tests (Makefile.am): Likewise.
97003         * modules/isnanl-tests (Makefile.am): Likewise.
97004         * modules/linked-list-tests (Makefile.am): Likewise.
97005         * modules/linkedhash-list-tests (Makefile.am): Likewise.
97006         * modules/lock-tests (Makefile.am): Likewise.
97007         * modules/rbtree-list-tests (Makefile.am): Likewise.
97008         * modules/rbtree-oset-tests (Makefile.am): Likewise.
97009         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
97010         * modules/tls-tests (Makefile.am): Likewise.
97011         * modules/tsearch-tests (Makefile.am): Likewise.
97012         * modules/xvasprintf-tests (Makefile.am): Likewise.
97014         Fix fpurge for cygwin.
97015         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
97016         value.
97017         * modules/fpurge-tests (Depends-on): Clean up trash.
97019 2007-04-16  Simon Josefsson  <simon@josefsson.org>
97021         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
97023         * m4/autobuild.m4: Re-indent.
97025 2007-04-13  Bruno Haible  <bruno@clisp.org>
97027         * modules/fpurge-tests: New file.
97028         * tests/test-fpurge.c: New file.
97030         * modules/fpurge: New file.
97031         * lib/fpurge.h: New file.
97032         * lib/fpurge.c: New file.
97033         * m4/fpurge.m4: New file.
97035 2007-04-13  Bruno Haible  <bruno@clisp.org>
97037         * modules/fbufmode-tests: New file.
97038         * tests/test-fbufmode.c: New file.
97040         * modules/fbufmode: New file.
97041         * lib/fbufmode.h: New file.
97042         * lib/fbufmode.c: New file.
97043         * m4/fbufmode.m4: New file.
97045 2007-04-13  Bruno Haible  <bruno@clisp.org>
97047         * modules/fwritable-tests: New file.
97048         * tests/test-fwritable.c: New file.
97050         * modules/fwritable: New file.
97051         * lib/fwritable.h: New file.
97052         * lib/fwritable.c: New file.
97053         * m4/fwritable.m4: New file.
97055 2007-04-13  Bruno Haible  <bruno@clisp.org>
97057         * modules/freadable-tests: New file.
97058         * tests/test-freadable.c: New file.
97060         * modules/freadable: New file.
97061         * lib/freadable.h: New file.
97062         * lib/freadable.c: New file.
97063         * m4/freadable.m4: New file.
97065 2007-04-13  Bruno Haible  <bruno@clisp.org>
97067         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
97068         MOSTLYCLEANFILES.
97070 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
97072         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
97073         gzip bootstrap.conf to avoid dragging in i18n machinery.
97074         (gnulib_tool_option): Use it.
97076 2007-04-13  Bruno Haible  <bruno@clisp.org>
97078         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
97079         %F directives.
97080         * tests/test-vasprintf-posix.c (test_function): Likewise.
97081         * tests/test-snprintf-posix.h (test_function): Likewise.
97082         * tests/test-sprintf-posix.h (test_function): Likewise.
97083         * tests/test-fprintf-posix.h (test_function): Likewise.
97084         * tests/test-printf-posix.h (test_function): Likewise.
97085         * tests/test-fprintf-posix.out: Likewise.
97087 2007-04-13  Bruno Haible  <bruno@clisp.org>
97089         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
97090         * modules/tls-tests (configure.ac): Likewise.
97091         Reported by Arto C. Nirkko <anirkko@insel.ch>.
97093 2007-04-13  Bruno Haible  <bruno@clisp.org>
97095         * lib/tls.c (glthread_tls_get): Fix return type.
97096         Patch by Arto C. Nirkko <anirkko@insel.ch>.
97098 2007-04-12  Eric Blake  <ebb9@byu.net>
97100         * modules/gettime (Depends-on): Remove gettime.
97101         Reported by Dmitry V. Levin.
97103 2007-04-12  Bruno Haible  <bruno@clisp.org>
97105         * modules/fflush (Include): Mention <stdio.h>.
97106         * modules/strtoimax (Include): Mention <inttypes.h>.
97107         * modules/strtoumax (Include): Likewise.
97109 2007-04-12  Eric Blake  <ebb9@byu.net>
97111         * .cvsignore: New file.
97112         * .gitignore: Likewise.
97114 2007-04-12  Bruno Haible  <bruno@clisp.org>
97116         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
97117         not before, since $(LDADD) often contains libgnu.a.
97118         * modules/striconv-tests (test_striconv_LDADD): Likewise.
97119         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
97120         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
97121         Needed on Cygwin.
97123 2007-04-12  Eric Blake  <ebb9@byu.net>
97125         Work around glibc's failure to flush stdin on fclose.
97126         * lib/closein.c (close_stdin): Flush stdin before closing.
97128         Work around glibc's failure to reset seekable stdin on exit.
97129         * modules/closein: New module.
97130         * lib/closein.c: New file.
97131         * lib/closein.h: Likewise.
97132         * m4/closein.m4: Likewise.
97133         * MODULES.html.sh (File stream based Input/Output): Document it.
97135 2007-04-12  Simon Josefsson  <simon@josefsson.org>
97137         * gnulib-tool: Rename generated 'autobuild' script to
97138         'do-autobuild' in --create-megatestdir output.
97140         * doc/gnulib.texi (Build robot for gnulib): Fix.
97142 2007-04-12  Simon Josefsson  <simon@josefsson.org>
97144         * modules/sysexits (Depends-on): Add absolute-header.
97146 2007-04-12  Eric Blake  <ebb9@byu.net>
97148         No need to preserve errno on success.
97149         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
97150         Reported by Bruno Haible.
97152 2007-04-12  Simon Josefsson  <simon@josefsson.org>
97154         * MODULES.html.sh (Support for maintaining and releasing
97155         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
97157 2007-04-12  Simon Josefsson  <simon@josefsson.org>
97159         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
97161 2007-04-12  Simon Josefsson  <simon@josefsson.org>
97163         * modules/autobuild: New module.
97165         * m4/autobuild.m4: New file.
97167 2007-04-11  Bruno Haible  <bruno@clisp.org>
97169         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
97170         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
97171         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
97172         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
97173         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
97174         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
97175         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
97176         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
97177         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
97178         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
97179         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
97180         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
97181         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
97182         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
97183         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
97184         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
97185         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
97186         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
97187         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
97188         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
97189         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
97190         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
97191         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
97192         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
97193         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
97194         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
97195         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
97196         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
97197         Reported by Eric Blake.
97199 2007-04-11  Bruno Haible  <bruno@clisp.org>
97201         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
97203 2007-04-10  Bruno Haible  <bruno@clisp.org>
97205         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
97206         for NaN and Infinity. Needed on FreeBSD 6.1.
97207         * tests/test-vasnprintf-posix.c (test_function): Undo last change
97208         regarding results for "%010a" of Infinity and NaN.
97209         * tests/test-vasprintf-posix.c (test_function): Likewise.
97210         * tests/test-snprintf-posix.h (test_function): Likewise.
97211         * tests/test-sprintf-posix.h (test_function): Likewise.
97212         * tests/test-fprintf-posix.h (test_function): Likewise.
97213         * tests/test-printf-posix.h (test_function): Likewise.
97214         * tests/test-fprintf-posix.out: Likewise.
97216 2007-04-10  Bruno Haible  <bruno@clisp.org>
97218         * modules/locale-tests: New file.
97219         * tests/test-locale.c: New file.
97221         * modules/locale: New file.
97222         * lib/locale_.h: New file.
97223         * m4/locale_h.m4: New file.
97225 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
97226             Bruno Haible  <bruno@clisp.org>
97228         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
97229         be determined, test for availability of the copysignf, copysign,
97230         copysignl functions.
97231         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
97232         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
97233         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
97235 2007-04-09  Eric Blake  <ebb9@byu.net>
97237         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
97238         * modules/stdio (Makefile.am): Support fflush.
97239         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
97240         * modules/fflush: New file.
97241         * lib/fflush.c: Likewise.
97242         * m4/fflush.m4: Likewise.
97243         * modules/fflush-tests: New test.
97244         * tests/test-fflush.c: Likewise.
97245         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
97247 2007-04-06  Bruno Haible  <bruno@clisp.org>
97249         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
97250         (VASNPRINTF): Use signbit for faster determination whether to print a
97251         minus sign.
97252         * modules/vasnprintf (Files): Remove lib/float+.h.
97253         * modules/fprintf-posix (Depends-on): Add signbit.
97254         * modules/snprintf-posix (Depends-on): Likewise.
97255         * modules/sprintf-posix (Depends-on): Likewise.
97256         * modules/vasnprintf-posix (Depends-on): Likewise.
97257         * modules/vasprintf-posix (Depends-on): Likewise.
97258         * modules/vfprintf-posix (Depends-on): Likewise.
97259         * modules/vsnprintf-posix (Depends-on): Likewise.
97260         * modules/vsprintf-posix (Depends-on): Likewise.
97262 2007-04-06  Bruno Haible  <bruno@clisp.org>
97264         * tests/test-frexp.c (main): Test also the sign bit of zero results.
97265         * tests/test-frexpl.c (main): Likewise.
97266         * tests/test-ldexpl.c (main): Likewise.
97267         * modules/frexp-tests (Depends-on): Add signbit.
97268         * modules/frexpl-tests (Depdends-on): Likewise.
97269         * modules/ldexpl-tests (Depdends-on): Likewise.
97271 2007-04-06  Bruno Haible  <bruno@clisp.org>
97273         * modules/signbit-tests: New file.
97274         * tests/test-signbit.c: New file.
97276         * modules/signbit: New file.
97277         * lib/signbitf.c: New file.
97278         * lib/signbitd.c: New file.
97279         * lib/signbitl.c: New file.
97280         * m4/signbit.m4: New file.
97281         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
97282         (signbit): New macro.
97283         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
97284         REPLACE_SIGNBIT.
97285         * modules/math (Makefile.am): Substitute also GNULIB_SIGNBIT and
97286         REPLACE_FREXPL into math.h.
97288 2007-04-06  Bruno Haible  <bruno@clisp.org>
97290         * modules/isnanf-nolibm-tests: New file.
97291         * tests/test-isnanf.c: New file.
97293         * modules/isnanf-nolibm: New file.
97294         * lib/isnanf.h: New file.
97295         * lib/isnanf.c: New file.
97296         * lib/isnan.c: Consider the USE_FLOAT macro.
97297         * m4/isnanf.m4: New file.
97299 2007-04-06  Bruno Haible  <bruno@clisp.org>
97301         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
97302         (Link): New section.
97304         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
97306 2007-04-06  Bruno Haible  <bruno@clisp.org>
97308         Assume the 'long double' type.
97309         * m4/longdouble.m4: Remove file.
97310         * config/srclist.txt: Don't mention longdouble.m4.
97311         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
97312         * lib/float+.h: Likewise.
97313         * lib/frexp.c: Likewise.
97314         * lib/printf-args.h: Likewise.
97315         * lib/printf-args.c: Likewise.
97316         * lib/printf-frexp.c: Likewise.
97317         * lib/printf-parse.c: Likewise.
97318         * lib/vasnprintf.c: Likewise.
97319         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
97320         * m4/intl.m4: Likewise.
97321         * m4/isnanl.m4: Likewise.
97322         * m4/printf.m4: Likewise.
97323         * m4/printf-frexpl.m4: Likewise.
97324         * m4/vasnprintf.m4: Likewise.
97325         * modules/allocsa (Files): Remove m4/longdouble.m4.
97326         * modules/gettext (Files): Likewise.
97327         * modules/relocatable-prog-wrapper (Files): Likewise.
97328         * modules/vasnprintf (Files): Likewise.
97329         * modules/isnanl (Files): Likewise.
97330         (Include): Simplify.
97331         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
97332         (Include): Simplify.
97333         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
97334         (Include): Simplify.
97335         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
97336         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
97337         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
97338         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
97339         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
97340         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
97341         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
97342         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
97343         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
97344         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
97345         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
97346         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
97347         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
97348         * tests/test-isnanl.c: Likewise.
97349         * tests/test-snprintf-posix.h: Likewise.
97350         * tests/test-sprintf-posix.h: Likewise.
97351         * tests/test-vasnprintf-posix.c: Likewise.
97352         * tests/test-vasnprintf-posix2.c: Likewise.
97353         * tests/test-vasprintf-posix.c: Likewise.
97355 2007-04-06  Bruno Haible  <bruno@clisp.org>
97357         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
97358         * lib/math_.h [__DECC]: Include the overridden include file through
97359         #include_next, outside the double-inclusion guard.
97360         * lib/stdio_.h [__DECC]: Likewise.
97361         * lib/stdlib_.h [__DECC]: Likewise.
97362         * lib/string_.h [__DECC]: Likewise.
97363         * lib/time_.h [__DECC]: Likewise.
97364         * lib/wchar_.h [__DECC]: Likewise.
97365         * lib/wctype_.h [__DECC]: Likewise.
97366         * lib/inttypes_.h [__DECC]: Likewise.
97367         Reported by Albert Chin <china@thewrittenword.com> in
97368         <http://lists.gnu.org/r/bug-gnulib/2007-04/msg00088.html>.
97370 2007-04-04  Eric Blake  <ebb9@byu.net>
97372         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
97373         1.5.x.
97375 2007-04-04  Bruno Haible  <bruno@clisp.org>
97377         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
97378         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
97380 2007-04-04  Bruno Haible  <bruno@clisp.org>
97382         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
97383         results for "%010a" of Infinity and NaN.
97384         * tests/test-vasprintf-posix.c (test_function): Likewise.
97385         * tests/test-snprintf-posix.h (test_function): Likewise.
97386         * tests/test-sprintf-posix.h (test_function): Likewise.
97387         * tests/test-fprintf-posix.h (test_function): Remove these tests.
97388         * tests/test-printf-posix.h (test_function): Likewise.
97389         * tests/test-fprintf-posix.out: Update.
97390         Needed for FreeBSD 6.1.
97392 2007-04-04  Bruno Haible  <bruno@clisp.org>
97394         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
97395         directly used by the gnulib modules nor by gnulib-tool.
97397 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
97399         * DEPENDENCIES: Give overall description of version dependency
97400         desirability.  Use more-typical names for apps.
97401         Add shell, coreutils, diffutils, grep, tar, gzip.
97403 2007-04-04  Simon Josefsson  <simon@josefsson.org>
97405         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
97407 2007-04-04  Karl Berry  <karl@gnu.org>
97409         * MODULES.html.sh (func_module): missing '.
97411 2007-04-03  Bruno Haible  <bruno@clisp.org>
97413         * modules/argmatch-tests (Makefile.am): New variable
97414         test_argmatch_LDADD.
97415         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
97416         * modules/array-list-tests (Makefile.am): New variable
97417         test_array_list_LDADD.
97418         * modules/array-oset-tests (Makefile.am): New variable
97419         test_array_oset_LDADD.
97420         * modules/avltree-list-tests (Makefile.am): New variable
97421         test_avltree_list_LDADD.
97422         * modules/avltree-oset-tests (Makefile.am): New variable
97423         test_avltree_oset_LDADD.
97424         * modules/avltreehash-list-tests (Makefile.am): New variable
97425         test_avltreehash_list_LDADD.
97426         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
97427         test_canonicalize_lgpl_LDADD.
97428         * modules/carray-list-tests (Makefile.am): New variable
97429         test_carray_list_LDADD.
97430         * modules/dirname-tests (Makefile.am): New variable
97431         test_dirname_LDADD.
97432         * modules/linked-list-tests (Makefile.am): New variable
97433         test_linked_list_LDADD.
97434         * modules/linkedhash-list-tests (Makefile.am): New variable
97435         test_linkedhash_list_LDADD.
97436         * modules/rbtree-list-tests (Makefile.am): New variable
97437         test_rbtree_list_LDADD.
97438         * modules/rbtree-oset-tests (Makefile.am): New variable
97439         test_rbtree_oset_LDADD.
97440         * modules/rbtreehash-list-tests (Makefile.am): New variable
97441         test_rbtreehash_list_LDADD.
97442         * modules/xvasprintf-tests (Makefile.am): New variable
97443         test_xvasprintf_LDADD.
97444         Reported by Eric Blake.
97446 2007-04-03  Eric Blake  <ebb9@byu.net>
97448         * DEPENDENCIES: Weaken m4 requirements.
97450 2007-04-03  Bruno Haible  <bruno@clisp.org>
97452         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
97453         * modules/isnanl-tests (configure.ac): Likewise.
97455 2007-04-03  Ben Pfaff  <blp@gnu.org>
97457         * modules/iconv_open: Add $(srcdir)/ to source directory
97458         references in Makefile fragments that call gperf, to fix VPATH
97459         builds.
97461 2007-04-03  Bruno Haible  <bruno@clisp.org>
97463         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
97464         * lib/ldexpl.c: Undo last change.
97466 2007-04-03  Bruno Haible  <bruno@clisp.org>
97468         * modules/printf-frexpl (Depends-on): Undo last change.
97469         (Files): Add m4/ldexpl.m4.
97471 2007-04-03  Bruno Haible  <bruno@clisp.org>
97473         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
97474         * modules/isnanl (Link): New section.
97476         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
97477         * modules/frexp (Link): New section.
97479         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
97480         * modules/frexpl (Link): New section.
97482         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
97483         * modules/ldexpl (Link): New section.
97485 2007-04-03  Bruno Haible  <bruno@clisp.org>
97487         * modules/TEMPLATE-EXTENDED: New file.
97488         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
97490 2007-04-03  Bruno Haible  <bruno@clisp.org>
97492         * DEPENDENCIES: New file.
97493         Suggested by Simon Josefsson.
97495 2007-04-03  Bruno Haible  <bruno@clisp.org>
97497         * doc/gnulib.texi: Escape @.
97499 2007-04-03  James Youngman  <jay@gnu.org>
97500         and Paul Eggert  <eggert@cs.ucla.edu>
97502         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
97503         birthtime on all systems that have birthtime, not just those which
97504         use st_birthtimensec rather than st_birthtim.  Putting zero in
97505         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
97506         that the birth time is not available for files on an NFS mount.
97508 2007-04-03  Simon Josefsson  <simon@josefsson.org>
97510         * modules/memxor: Move back from crypto/, suggested by Bruno.
97511         * modules/crypto/hmac-sha1: Fix memxor dependency.
97513         * modules/crypto/gc: Moved from ../.
97515 2007-04-02  Eric Blake  <ebb9@byu.net>
97517         * lib/ldexpl.c (includes): Avoid libm.
97519         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
97521 2007-04-02  Bruno Haible  <bruno@clisp.org>
97523         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
97524         on IRIX.
97526 2007-04-02  Bruno Haible  <bruno@clisp.org>
97528         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
97529         x86 or x86_64 platforms running MacOS X.
97530         Reported by Ryan Schmidt <@ryandesign.com>.
97532 2007-04-02  Bruno Haible  <bruno@clisp.org>
97534         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
97535         i386.
97537 2007-04-01  Simon Josefsson  <simon@josefsson.org>
97539         * modules/crypto/arcfour: Moved from ../.
97540         * modules/crypto/arcfour-tests: Moved from ../.
97541         * modules/crypto/arctwo: Moved from ../.
97542         * modules/crypto/arctwo-tests: Moved from ../.
97543         * modules/crypto/des: Moved from ../.
97544         * modules/crypto/des-tests: Moved from ../.
97545         * modules/crypto/gc-arcfour: Moved from ../.
97546         * modules/crypto/gc-arcfour-tests: Moved from ../.
97547         * modules/crypto/gc-arctwo: Moved from ../.
97548         * modules/crypto/gc-arctwo-tests: Moved from ../.
97549         * modules/crypto/gc-des: Moved from ../.
97550         * modules/crypto/gc-des-tests: Moved from ../.
97551         * modules/crypto/gc-hmac-md5: Moved from ../.
97552         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
97553         * modules/crypto/gc-hmac-sha1: Moved from ../.
97554         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
97555         * modules/crypto/gc-md2: Moved from ../.
97556         * modules/crypto/gc-md2-tests: Moved from ../.
97557         * modules/crypto/gc-md4: Moved from ../.
97558         * modules/crypto/gc-md4-tests: Moved from ../.
97559         * modules/crypto/gc-md5: Moved from ../.
97560         * modules/crypto/gc-md5-tests: Moved from ../.
97561         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
97562         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
97563         * modules/crypto/gc-random: Moved from ../.
97564         * modules/crypto/gc-rijndael: Moved from ../.
97565         * modules/crypto/gc-rijndael-tests: Moved from ../.
97566         * modules/crypto/gc-sha1: Moved from ../.
97567         * modules/crypto/gc-sha1-tests: Moved from ../.
97568         * modules/crypto/gc-tests: Moved from ../.
97569         * modules/crypto/hmac-md5: Moved from ../.
97570         * modules/crypto/hmac-md5-tests: Moved from ../.
97571         * modules/crypto/hmac-sha1: Moved from ../.
97572         * modules/crypto/hmac-sha1-tests: Moved from ../.
97573         * modules/crypto/md2: Moved from ../.
97574         * modules/crypto/md2-tests: Moved from ../.
97575         * modules/crypto/md4: Moved from ../.
97576         * modules/crypto/md4-tests: Moved from ../.
97577         * modules/crypto/md5: Moved from ../.
97578         * modules/crypto/md5-tests: Moved from ../.
97579         * modules/crypto/memxor: Moved from ../.
97580         * modules/crypto/rijndael: Moved from ../.
97581         * modules/crypto/rijndael-tests: Moved from ../.
97582         * modules/crypto/sha1: Moved from ../.
97584 2007-03-30  James Youngman  <jay@gnu.org>
97586         * tests/test-stat-time.c (prepare_test): use chmod() rather than
97587         rename() to change the ctime of a file (because ctime is unaffected
97588         by rename on jfs2 on AIX 5.1).
97589         (main): Start by doing cleanup, in case a previous run failed leaving
97590         test files behind.
97592 2007-03-31  Bruno Haible  <bruno@clisp.org>
97594         Support old proprietary implementations of iconv.
97595         * modules/iconv_open: New file.
97596         * lib/iconv_.h: New file.
97597         * m4/iconv_h.m4: New file.
97598         * lib/iconv_open.c: New file.
97599         * lib/iconv_open-aix.gperf: New file.
97600         * lib/iconv_open-hpux.gperf: New file.
97601         * lib/iconv_open-irix.gperf: New file.
97602         * lib/iconv_open-osf.gperf: New file.
97603         * m4/iconv_open.m4: New file.
97604         * modules/linebreak (Depends-on): Add iconv_open.
97605         * modules/striconv (Depends-on): Likewise.
97606         * modules/striconveh (Depends-on): Likewise.
97607         * modules/unicodeio (Depends-on): Likewise.
97608         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
97609         (iconv_t)(-1).
97610         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
97611         conversion if cd is (iconv_t)(-1).
97612         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
97613         is not possible.
97615 2007-03-31  Bruno Haible  <bruno@clisp.org>
97617         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
97618         work on Solaris either. Protect also second use of "autodetect_jp".
97620 2007-03-31  Bruno Haible  <bruno@clisp.org>
97622         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
97623         the function is not present.
97625 2007-03-31  Bruno Haible  <bruno@clisp.org>
97627         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
97628         the function is not present.
97630 2007-03-31  Bruno Haible  <bruno@clisp.org>
97632         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
97633         a bug in HP-UX iconv_open().
97635 2007-03-31  Bruno Haible  <bruno@clisp.org>
97637         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
97638         (Mathematics <math.h>): New section, add fpieee.
97639         (Input/output <stdio.h>): Add fseterr.
97640         (Mathematics <math.h>): New section, add printf-frexp.
97641         (Container data structures): Add sublist.
97642         (Core language properties): Add fpucw, inline.
97643         (Functions for greatest-width integer types <inttypes.h>): Add
97644         imaxabs, imaxdiv, inttypes.
97645         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
97646         isnanl-nolibm, ldexp.
97647         (Mathematics <math.h>): New section, add printf-frexpl.
97648         (Support for systems lacking POSIX:2001): Add fprintf-posix,
97649         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
97650         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
97651         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
97652         (Unicode string functions): Add unistr/u*-mbtoucr.
97653         (Java): Add javacomp-script, javaexec-script.
97654         (C#): Add csharpcomp-script, csharpexec-script.
97655         (Support for building libraries and executables): Add havelib,
97656         relocatable-*.
97657         (Support for maintaining and releasing projects): Renamed from
97658         'Support for maintaining and release projects'. Add announce-gen.
97660 2007-03-31  Bruno Haible  <bruno@clisp.org>
97662         * README: Talk primarily about git.
97663         (git and CVS): Renamed from CVS.
97664         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
97665         gnulib is available through git.
97666         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
97668 2007-03-30  Bruno Haible  <bruno@clisp.org>
97670         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
97671         * lib/poll_.h: Likewise.
97672         * lib/stat_.h: Likewise.
97673         * lib/sys_time_.h: Likewise.
97674         * lib/sysexit_.h: Likewise.
97675         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
97676         * lib/stdbool_.h: Likewise.
97677         * lib/byteswap_.h: Add double-inclusion guard.
97679 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
97681         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
97683 2007-03-30  Karl Berry  <karl@gnu.org>
97685         * config/srclist-update: double space after USA in the license
97686         substitution, since that's how it's usually (?) written.
97688 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
97690         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
97691         reported by Bruno Haible.
97693 2007-03-29  Bruno Haible  <bruno@clisp.org>
97695         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
97696         a bug in AIX iconv().
97698 2007-03-29  Bruno Haible  <bruno@clisp.org>
97700         * modules/ldexpl-tests: New file.
97701         * tests/test-ldexpl.c: New file.
97703 2007-03-29  Bruno Haible  <bruno@clisp.org>
97705         * lib/ldexpl.c: Include fpucw.h.
97706         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
97707         multiplication.
97708         * modules/ldexpl (Depends-on): Add fpucw.
97710 2007-03-29  Bruno Haible  <bruno@clisp.org>
97712         * modules/ldexpl: New file.
97713         * m4/ldexpl.m4: New file.
97714         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
97715         set.
97716         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
97717         REPLACE_LDEXPL.
97718         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
97719         REPLACE_LDEXPL.
97720         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
97721         gl_FUNC_LDEXPL_WORKS.
97722         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
97723         * modules/mathl (Files): Remove lib/ldexpl.c.
97724         (Depends-on): Add ldexpl.
97726 2007-03-29  Bruno Haible  <bruno@clisp.org>
97728         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
97730 2007-03-29  Bruno Haible  <bruno@clisp.org>
97732         * tests/test-striconveh.c (main): Don't assume that a direct conversion
97733         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
97734         and possibly also HP-UX.
97735         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
97736         work on AIX, IRIX, HP-UX, OSF/1.
97737         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
97738         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
97739         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
97740         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
97741         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
97742         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
97744 2007-03-29  Bruno Haible  <bruno@clisp.org>
97746         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
97748 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
97750         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
97751         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
97753 2007-03-29  Eric Blake  <ebb9@byu.net>
97755         * lib/acl-internal.h: Remove redundant include.
97756         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
97757         Cygwin when a file is locked.
97759 2007-03-29  Bruno Haible  <bruno@clisp.org>
97761         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
97762         file.
97763         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
97765 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
97767         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
97768         try to remove a parent directory if the child couldn't be removed
97769         (except for the first rmdir, which could fail because the child
97770         doesn't exist).  Problem reported by Jeff Blaine in
97771         <http://lists.gnu.org/r/bug-tar/2007-03/msg00014.html>.
97773 2007-03-28  Bruno Haible  <bruno@clisp.org>
97775         * lib/striconveh.c (utf8conv_carefully): New function.
97776         (mem_cd_iconveh_internal): Invoke it.
97778 2007-03-28  Bruno Haible  <bruno@clisp.org>
97780         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
97781         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
97782         input.
97783         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
97784         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
97785         unistr/u8-uctomb.
97787 2007-03-28  Bruno Haible  <bruno@clisp.org>
97789         * modules/unistr/u8-mbtoucr: New file.
97790         * lib/unistr/u8-mbtoucr.c: New file.
97791         * modules/unistr/u16-mbtoucr: New file.
97792         * lib/unistr/u16-mbtoucr.c: New file.
97793         * modules/unistr/u16-mbtoucr: New file.
97794         * lib/unistr/u16-mbtoucr.c: New file.
97795         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
97797 2007-03-27  Simon Josefsson  <simon@josefsson.org>
97798             Bruno Haible  <bruno@clisp.org>
97800         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
97801         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
97802         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
97804         * m4/stdio_h.m4: Add stubs for vasprintf too.
97806         * modules/stdio: Support vasprintf in sed command.
97808         * modules/vasprintf: Depend on stdio for prototypes.  Remove
97809         vasprintf.h.  Add stdio module indicator.
97811         * lib/stdio_.h: Declare asprintf and vasprintf, based on
97812         vasprintf.h.
97814         * lib/vasprintf.h: File removed.
97816         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
97817         * lib/vasprintf.c: Ditto.
97818         * lib/xvasprintf.c: Ditto.
97819         * tests/test-vasprintf-posix.c: Ditto.
97820         * tests/test-vasprintf.c: Ditto.
97822 2007-03-27  Bruno Haible  <bruno@clisp.org>
97824         Make vasnprintf multithread-safe.
97825         * lib/vasnprintf.c (decimal_point_char): New function.
97826         (VASNPRINTF): Use it.
97827         Suggested by Simon Josefsson.
97829 2007-03-27  Eric Blake  <ebb9@byu.net>
97831         Support sub-second birthtime on cygwin.
97832         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
97833         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
97834         (get_stat_birthtime): Also work with st_birthtim.
97836 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
97838         * lib/stat-time.h (USE_BIRTHTIME): Remove.
97839         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
97840         (get_stat_birthtime_ns): Do not try to use "spare" fields.
97841         (get_stat_birthtime_ns): Simplify compile-time tests.
97842         (get_stat_birthtime): Change the API to look like
97843         get_stat_mtime etc., except return a negative tv_nsec on error.
97844         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
97845         Don't check for "spare" fields.
97846         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
97847         or for struct stat.st_birthtime, as these tests aren't used.
97848         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
97850 2007-03-27  Bruno Haible  <bruno@clisp.org>
97852         * lib/stat-time.h: Include <sys/stat.h>.
97854 2007-03-27  James Youngman  <jay@gnu.org>
97856         * lib/stat-time.h (get_stat_birthtime): New function for
97857           retrieving st_birthtime as provided by UFS2 (hence *BSD).
97858         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
97859           and its variants.
97860         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
97861         * modules/stat-time-test: New file.
97862         * tests/test-stat-time.c: New test, devised by Bruno Haible.
97864 2007-03-26  Bruno Haible  <bruno@clisp.org>
97866         Better support of signalling NaNs.
97867         * lib/atanl.c: Include isnanl.h.
97868         (atanl): Perform test for NaN at the beginning of the function and
97869         through a call to isnanl.
97870         * lib/cosl.c: Include isnanl.h.
97871         (cosl): Perform test for NaN at the beginning of the function and
97872         through a call to isnanl.
97873         * lib/ldexpl.c: Include isnanl.h.
97874         (ldexpl): Perform test for NaN through a call to isnanl.
97875         * lib/logl.c: Include isnanl.h.
97876         (logl): Perform test for NaN at the beginning of the function and
97877         through a call to isnanl.
97878         * lib/sinl.c: Include isnanl.h.
97879         (sinl): Perform test for NaN at the beginning of the function and
97880         through a call to isnanl.
97881         * lib/sqrtl.c: Include isnanl.h.
97882         (sqrtl): Perform test for NaN at the beginning of the function and
97883         through a call to isnanl.
97884         * lib/tanl.c: Include isnanl.h.
97885         (tanl): Perform test for NaN at the beginning of the function and
97886         through a call to isnanl.
97887         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
97888         * modules/mathl (Depends-on): Add isnanl.
97890 2007-03-26  Eric Blake  <ebb9@byu.net>
97892         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
97893         regression in logic sense of previous patch.
97895 2007-03-26  Bruno Haible  <bruno@clisp.org>
97897         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
97898         unportable shell command "if ! ...".
97899         Reported by Ralf Wildenhues.
97901 2007-03-25  Bruno Haible  <bruno@clisp.org>
97903         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
97904         <sysexits.h> file, and only add EX_CONFIG.
97905         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
97906         absolute file name and whether it is sufficient. Substitute also
97907         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
97908         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
97909         ABSOLUTE_SYSEXITS_H into sysexits.h.
97911 2007-03-25  Bruno Haible  <bruno@clisp.org>
97913         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
97914         hints is NULL.
97916 2007-03-25  Bruno Haible  <bruno@clisp.org>
97918         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
97919         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
97921 2007-03-25  Bruno Haible  <bruno@clisp.org>
97923         * lib/vasnprintf.c: Include langinfo.h.
97924         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
97925         multithread-safe.
97926         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
97927         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
97928         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
97929         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
97930         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
97931         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
97932         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
97933         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
97934         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
97935         Reported by Simon Josefsson.
97937 2007-03-25  Bruno Haible  <bruno@clisp.org>
97939         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
97940         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
97941         * modules/vasnprintf (Depends-on): Add stdint.
97943 2007-03-25  Bruno Haible  <bruno@clisp.org>
97945         * modules/fpieee: New file.
97946         * m4/fpieee.m4: New file.
97947         * modules/isnan-nolibm (Depends-on): Add fpieee.
97948         * modules/isnanl-nolibm (Depends-on): Add fpieee.
97949         * modules/isnanl (Depends-on): Add fpieee.
97951 2007-03-25  Bruno Haible  <bruno@clisp.org>
97953         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
97955 2007-03-25  Bruno Haible  <bruno@clisp.org>
97957         Avoid test failures on IRIX 6.5.
97958         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
97959         (main): Use it.
97960         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
97961         macros.
97962         (main): Use them.
97964 2007-03-25  Bruno Haible  <bruno@clisp.org>
97966         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
97967         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
97968         exists but doesn't work.
97969         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
97970         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
97971         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
97972         * modules/math (Makefile.am): Substitute also REPLACE_FREXPL into
97973         math.h.
97975 2007-03-25  Bruno Haible  <bruno@clisp.org>
97977         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
97978         returns inf. Needed on IRIX 6.5.
97980 2007-03-25  Bruno Haible  <bruno@clisp.org>
97982         * tests/test-frexpl.c: Include isnanl-nolibm.h.
97983         (main): Use isnanl instead of x != x idiom.
97984         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
97986         * tests/test-frexp.c: Include isnan.h.
97987         (main): Use isnan instead of x != x idiom.
97988         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
97990 2007-03-25  Bruno Haible  <bruno@clisp.org>
97992         * tests/test-frexp.c (NaN): New function/macro.
97993         (main): Use it instead of 0.0 / 0.0.
97994         * tests/test-isnan.c (NaN): New function/macro.
97995         (main): Use it instead of 0.0 / 0.0.
97996         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
97997         (test_function): Use it instead of 0.0 / 0.0.
97998         * tests/test-vasprintf-posix.c (NaN): New function/macro.
97999         (test_function): Use it instead of 0.0 / 0.0.
98000         * tests/test-snprintf-posix.h (NaN): New function/macro.
98001         (test_function): Use it instead of 0.0 / 0.0.
98002         * tests/test-sprintf-posix.h (NaN): New function/macro.
98003         (test_function): Use it instead of 0.0 / 0.0.
98004         * tests/test-fprintf-posix.h (NaN): New function/macro.
98005         (test_function): Use it instead of 0.0 / 0.0.
98006         * tests/test-printf-posix.h (NaN): New function/macro.
98007         (test_function): Use it instead of 0.0 / 0.0.
98009         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
98011 2007-03-25  Bruno Haible  <bruno@clisp.org>
98013         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
98015 2007-03-25  Bruno Haible  <bruno@clisp.org>
98017         * lib/regexec.c (merge_state_with_log): Make static.
98019 2007-03-25  Bruno Haible  <bruno@clisp.org>
98021         * lib/trigl.c (kernel_rem_pio2): Make static.
98023 2007-03-25  Bruno Haible  <bruno@clisp.org>
98025         * lib/sincosl.c (sincosl_table): Make static.
98027 2007-03-25  Bruno Haible  <bruno@clisp.org>
98029         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
98030         if the compiler does not support C99.
98032 2007-03-25  Bruno Haible  <bruno@clisp.org>
98034         * modules/time (Makefile.am): Ensure all rule action lines start with a
98035         tab.
98037 2007-03-24  Bruno Haible  <bruno@clisp.org>
98039         * modules/tsearch-tests: New file.
98040         * tests/test-tsearch.sh: New file.
98041         * tests/test-tsearch.c: New file, mostly copied from glibc.
98043         * modules/search-tests: New file.
98044         * tests/test-search.c: New file.
98046         * modules/search: New file.
98047         * lib/search_.h: New file, incorporating lib/tsearch.h.
98048         * m4/search_h.m4: New file.
98049         * lib/tsearch.h: Remove file.
98050         * lib/tsearch.c: Include search.h instead of tsearch.h.
98051         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
98052         HAVE_TSEARCH.
98053         * modules/tsearch (Files): Remove lib/tsearch.h.
98054         (Depends-on): Add search.
98055         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
98056         (Include): Change tsearch.h into search.h.
98058 2007-03-24  Bruno Haible  <bruno@clisp.org>
98060         * modules/fpucw: New file.
98061         * lib/fpucw.h: New file.
98062         * lib/frexp.c: Include fpucw.h.
98063         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
98064         (FUNC): Use them.
98065         * lib/printf-frexp.c: Include fpucw.h.
98066         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
98067         (FUNC): Use them.
98068         * lib/vasnprintf.c: Include fpucw.h.
98069         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
98070         'long double' calculations.
98071         * tests/test-frexpl.c: Include fpucw.h.
98072         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
98073         * tests/test-printf-frexpl.c: Include fpucw.h.
98074         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
98075         * modules/frexpl (Depends-on): Add fpucw.
98076         * modules/printf-frexpl (Depends-on): Likewise.
98077         * modules/fprintf-posix (Depends-on): Likewise.
98078         * modules/snprintf-posix (Depends-on): Likewise.
98079         * modules/sprintf-posix (Depends-on): Likewise.
98080         * modules/vasnprintf-posix (Depends-on): Likewise.
98081         * modules/vasprintf-posix (Depends-on): Likewise.
98082         * modules/vfprintf-posix (Depends-on): Likewise.
98083         * modules/vsnprintf-posix (Depends-on): Likewise.
98084         * modules/vsprintf-posix (Depends-on): Likewise.
98085         * modules/frexpl-tests (Depends-on): Likewise.
98086         * modules/printf-frexpl-tests (Depends-on): Likewise.
98088 2007-03-24  Bruno Haible  <bruno@clisp.org>
98090         * lib/float+.h: New file.
98091         * lib/isnan.c: Include float+.h.
98092         (SIZE): New macro.
98093         (FUNC): Compare only SIZE bytes of the value.
98094         * lib/vasnprintf.c: Include float+.h.
98095         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
98096         SIZEOF_LDBL or SIZEOF_DBL bytes.
98097         * modules/isnan-nolibm (Files): Add lib/float+.h.
98098         * modules/isnanl-nolibm (Files): Add lib/float+.h.
98099         * modules/isnanl (Files): Add lib/float+.h.
98100         * modules/vasnprintf (Files): Add lib/float+.h.
98102 2007-03-24  Bruno Haible  <bruno@clisp.org>
98104         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
98105         include isnanl-nolibm.h.
98107 2007-03-24  Bruno Haible  <bruno@clisp.org>
98109         * tests/test-read-file.c (main): Don't produce spurious output for
98110         expected situations. Make the test fail if it encountered unexpected
98111         results.
98113 2007-03-24  Bruno Haible  <bruno@clisp.org>
98115         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
98116         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
98118 2007-03-24  Bruno Haible  <bruno@clisp.org>
98120         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
98122 2007-03-24  Bruno Haible  <bruno@clisp.org>
98124         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
98125         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
98127         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
98128         * modules/utf8-ucs4: Turn into a symbolic link to module
98129         unistr/u8-mbtouc.
98131         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
98132         utf8-ucs4-unsafe.
98133         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
98134         unistr/u8-mbtouc-unsafe.
98136         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
98137         * modules/utf16-ucs4: Turn into a symbolic link to module
98138         unistr/u16-mbtouc.
98140         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
98141         utf16-ucs4-unsafe.
98142         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
98143         unistr/u16-mbtouc-unsafe.
98145         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
98146         * modules/ucs4-utf8: Turn into a symbolic link to module
98147         unistr/u8-ubtomb.
98149         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
98150         * modules/ucs4-utf16: Turn into a symbolic link to module
98151         unistr/u16-ubtomb.
98153 2007-03-24  Bruno Haible  <bruno@clisp.org>
98155         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
98156         Enable the function only if HAVE_INLINE.
98157         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
98158         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
98159         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
98160         Enable the function only if HAVE_INLINE.
98161         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
98162         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
98163         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
98164         Enable the function only if HAVE_INLINE.
98165         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
98166         Enable the function only if HAVE_INLINE.
98167         * modules/utf8-ucs4: Update.
98168         * modules/utf8-ucs4-unsafe: Update.
98169         * modules/utf16-ucs4: Update.
98170         * modules/utf16-ucs4-unsafe: Update.
98171         * modules/ucs4-utf8: Update.
98172         * modules/ucs4-utf16: Update.
98174 2007-03-24  Bruno Haible  <bruno@clisp.org>
98176         * lib/utf8-ucs4.h: Remove file.
98177         * lib/utf8-ucs4-unsafe.h: Remove file.
98178         * lib/utf16-ucs4.h: Remove file.
98179         * lib/utf16-ucs4-unsafe.h: Remove file.
98180         * lib/ucs4-utf8.h: Remove file.
98181         * lib/ucs4-utf16.h: Remove file.
98182         * lib/unistr.h: Include their previous contents.
98183         * m4/utf-ucs4.m4: Remove file.
98184         * m4/ucs4-utf.m4: Remove file.
98185         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
98186         (Depends-on): Add unistr/base.
98187         (configure.ac): Remove gl_UTF_UCS4.
98188         (Makefile.am): Update.
98189         (Include): Change to unistr.h.
98190         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
98191         (Depends-on): Add unistr/base.
98192         (configure.ac): Remove gl_UTF_UCS4.
98193         (Makefile.am): Update.
98194         (Include): Change to unistr.h.
98195         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
98196         (Depends-on): Add unistr/base.
98197         (configure.ac): Remove gl_UTF_UCS4.
98198         (Makefile.am): Update.
98199         (Include): Change to unistr.h.
98200         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
98201         (Depends-on): Add unistr/base.
98202         (configure.ac): Remove gl_UTF_UCS4.
98203         (Makefile.am): Update.
98204         (Include): Change to unistr.h.
98205         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
98206         (Depends-on): Add unistr/base.
98207         (configure.ac): Remove gl_UCS4_UTF.
98208         (Makefile.am): Update.
98209         (Include): Change to unistr.h.
98210         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
98211         (Depends-on): Add unistr/base.
98212         (configure.ac): Remove gl_UCS4_UTF.
98213         (Makefile.am): Update.
98214         (Include): Change to unistr.h.
98215         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
98216         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
98217         utf8-ucs4-unsafe.h.
98218         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
98219         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
98220         utf16-ucs4-unsafe.h.
98221         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
98222         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
98223         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
98224         * lib/unistr/u8-strchr.c: Likewise.
98225         * lib/unistr/u8-strrchr.c: Likewise.
98226         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
98227         * lib/unistr/u16-strchr.c: Likewise.
98228         * lib/unistr/u16-strrchr.c: Likewise.
98229         * lib/striconveh.c: Update.
98230         * lib/linebreak.c: Update.
98232 2007-03-24  Bruno Haible  <bruno@clisp.org>
98234         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
98235         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
98237 2007-03-22  Bruno Haible  <bruno@clisp.org>
98239         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
98241 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
98243         * MODULES.html.sh (File system functions): New module write-any-file.
98244         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
98245         * m4/write-any-file.m4: New files.
98247 2007-03-23  Eric Blake  <ebb9@byu.net>
98249         * gnulib-tool: Rearrange space-tab sequences, since some editors
98250         like to eat them.
98252 2007-03-23  Eric Blake  <ebb9@byu.net>
98254         * lib/version-etc.c (version_etc_va): Update license wording to
98255         be more concise.  Recommended by Richard Stallman.
98257 2007-03-22  Bruno Haible  <bruno@clisp.org>
98259         * lib/poll.c (MSG_PEEK): New fallback definition.
98261 2007-03-22  Bruno Haible  <bruno@clisp.org>
98263         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
98264         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
98265         (main): Update.
98266         Fixes a compilation error on BeOS.
98268 2007-03-22  Bruno Haible  <bruno@clisp.org>
98270         * modules/frexpl-tests: New file.
98271         * tests/test-frexpl.c: New file.
98273         * modules/frexpl: New file.
98274         * m4/frexpl.m4: New file.
98275         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
98276         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
98277         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
98278         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
98279         (Depends-on): Add frexpl. Remove isnanl-nolibm.
98280         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
98282 2007-03-22  Bruno Haible  <bruno@clisp.org>
98284         * lib/frexpl.c: Share code with lib/frexp.c.
98285         * modules/mathl (Files): Add lib/frexp.c.
98286         (Depends-on): Add isnanl-nolibm.
98288 2007-03-22  Bruno Haible  <bruno@clisp.org>
98290         * modules/printf-frexp (Files): Add m4/frexp.m4.
98291         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
98292         only if the found frexp function actually works.
98294 2007-03-22  Bruno Haible  <bruno@clisp.org>
98296         * lib/frexp.c: Remove older implementation that uses divisions.
98298 2007-03-21  Bruno Haible  <bruno@clisp.org>
98300         * modules/frexp-tests: New file.
98301         * tests/test-frexp.c: New file.
98303         * modules/frexp: New file.
98304         * lib/frexp.c: New file.
98305         * m4/frexp.m4: New file.
98306         * lib/math_.h (frexp): New declaration.
98307         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
98308         REPLACE_FREXP.
98309         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
98311 2007-03-21  Bruno Haible  <bruno@clisp.org>
98313         * modules/isnanl-tests: New file.
98314         * tests/test-isnanl.c: New file.
98316         * modules/isnanl: New file.
98317         * lib/isnanl.h: New file.
98318         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
98319         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
98320         gl_FUNC_ISNANL_WORKS.
98321         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
98322         New macros.
98324 2007-03-21  Bruno Haible  <bruno@clisp.org>
98326         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
98327         lib/isnanl.h.
98328         (Include): Update.
98329         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
98330         * lib/vasnprintf.c: Update.
98331         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
98332         tests/test-isnanl.h, remove tests/test-isnanl.c.
98333         (Makefile.am): Update.
98334         * tests/test-isnanl-nolibm.c: New file.
98335         * tests/test-isnanl.h: New file.
98336         * tests/test-isnanl.c: Remove file.
98338 2007-03-21  Jim Meyering  <jim@meyering.net>
98340         When trying to open ".", treat ESTALE like EACCES.
98341         * lib/savewd.c (savewd_save): Resort to forking not just upon
98342         failure with EACCES, but also when errno is ESTALE.
98344 2007-03-20  Bruno Haible  <bruno@clisp.org>
98346         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
98347         Needed on AIX 5.1. Reported by Matthew Woehlke.
98349 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
98351         Suggestions by Bruno Haible:
98352         * lib/acl-internal.h: Include "gettext.h" rather than rolling
98353         our own.
98354         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
98355         * modules/acl (Depends-on): Add gettext.
98357 2007-03-19  Bruno Haible  <bruno@clisp.org>
98359         * modules/iconvme: Remove file.
98360         * lib/iconvme.h: Remove file.
98361         * lib/iconvme.c: Remove file.
98362         * m4/iconvme.m4: Remove file.
98364 2007-03-19  Bruno Haible  <bruno@clisp.org>
98366         * doc/relocatable-maint.texi: Break long shell script line.
98367         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
98369 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
98371         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
98372         handle file_has_acl.
98373         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
98374         * lib/acl.c: Move header inclusions and related macro defns into
98375         lib/acl-internal.h.
98376         (S_ISLNK): Remove defn, since that's now done for us.
98377         (file_has_acl): Move to lib/file-has-acl.c.
98378         Call acl_trivial if available.  This is the crucial part of the fix.
98379         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
98380         shared within the library.  Rewrite a bit, partly to make it compatible
98381         with the GNU coding style.
98382         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
98383         Remove unnecessary double-quotes.
98384         Don't test for acl_to_text; the build will catch that.
98385         Replace acl_entries if it doesn't exist and it is needed.
98386         Check for -lsec and acl_trivial (as used on Solaris 10).
98387         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
98388         lib/file-has-acl.c.
98389         (Depends-on): Add sys_stat, for S_ISLNK.
98391 2007-03-19  Ben Pfaff  <blp@gnu.org>
98393         * doc/gnulib.texi: Fix typos.
98394         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
98396 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
98398         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
98399         If size is zero here, buf must be zero.
98401 2007-03-19  Simon Josefsson  <simon@josefsson.org>
98403         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
98404         <bruno@clisp.org>.
98406 2007-03-18  Bruno Haible  <bruno@clisp.org>
98408         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
98409         Suggested by Eric Blake.
98411 2007-03-18  Ben Pfaff  <blp@gnu.org>
98413         * doc/relocatable.texi: Recommend using as prefix a directory
98414         that does not exist and will never be created.  Based on
98415         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
98416         and others.
98418 2007-03-17  Bruno Haible  <bruno@clisp.org>
98420         * lib/fchownat.c: Include lchown.h.
98422 2007-03-17  Bruno Haible  <bruno@clisp.org>
98424         Fix endless loop when the given allocated size was > INT_MAX.
98425         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
98426         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
98427         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
98428         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
98429         * lib/sprintf.c (sprintf): Likewise.
98431 2007-03-17  Bruno Haible  <bruno@clisp.org>
98433         * tests/test-argp-2.sh (func_compare): Output a context diff.
98435 2007-03-17  Bruno Haible  <bruno@clisp.org>
98437         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
98438         locale's decimal-point character.
98440 2007-03-17  Bruno Haible  <bruno@clisp.org>
98442         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
98443         before comparing it. Needed because on some platforms (e.g. x86) a
98444         'long double' occupies less bytes than sizeof (long double).
98446 2007-03-17  Bruno Haible  <bruno@clisp.org>
98448         * tests/test-crc.c (main): Make printf statements 64-bit clean.
98449         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
98450         * tests/test-getaddrinfo.c (simple): Likewise.
98451         * tests/test-read-file.c (main): Likewise.
98453 2007-03-17  Bruno Haible  <bruno@clisp.org>
98455         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
98457 2007-03-17  Bruno Haible  <bruno@clisp.org>
98459         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
98460         unused variable.
98462 2007-03-17  Bruno Haible  <bruno@clisp.org>
98464         * tests/test-c-strcasecmp.c: Include c-strcase.h.
98465         * tests/test-c-strncasecmp.c: Likewise.
98467 2007-03-17  Bruno Haible  <bruno@clisp.org>
98469         * modules/stdlib (Depends-on): Add unistd.
98470         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
98471         Needed for MacOS X 10.3.
98473 2007-03-17  Bruno Haible  <bruno@clisp.org>
98475         * lib/unistr/u-strdup.h: Include <stdlib.h>.
98477 2007-03-17  Bruno Haible  <bruno@clisp.org>
98479         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
98481 2007-03-17  Bruno Haible  <bruno@clisp.org>
98483         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
98484         to reflect files copied from gnulib (with or without modifications).
98485         Suggested by Jim Meyering.
98487 2007-03-17  Eric Blake  <ebb9@byu.net>
98489         * NEWS: Document stdlib change from 2007-02-18.
98491 2007-03-17  Jim Meyering  <jim@meyering.net>
98493         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
98494         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
98495         someone uses a name containing shell meta-characters.
98496         Reported by Alfred M. Szmidt.
98498         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
98500 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
98502         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
98503         and copy gettext configuration files only if configure.ac contains
98504         a use of AM_GNU_GETTEXT_VERSION.
98506 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
98508         * build-aux/bootstrap (gnulib_name): New variable.
98509         (gnulib_tool_options): Use it.
98511 2007-03-13  Simon Josefsson  <simon@josefsson.org>
98513         * tests/test-des.c: Use new namespace.
98515 2007-03-15  Bruno Haible  <bruno@clisp.org>
98517         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
98518         Reported by James Youngman <jay@gnu.org>.
98520 2007-03-15  Bruno Haible  <bruno@clisp.org>
98522         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
98523         declared prototype. Needed with cc on OSF/1 5.1.
98525 2007-03-15  Bruno Haible  <bruno@clisp.org>
98527         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
98528         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
98529         (struct gl_list_implementation): Add dispose_fn argument to the
98530         'create_empty', 'create' methods.
98531         (struct gl_list_impl_base): Add field 'dispose_fn'.
98532         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
98533         argument.
98534         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
98535         dispose_fn argument.
98536         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
98537         dispose_fn on the dropped values.
98538         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
98539         dispose_fn argument.
98540         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
98541         dropped values.
98542         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
98543         (gl_tree_remove_node): Call dispose_fn on the dropped value.
98544         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
98545         (gl_tree_remove_node): Call dispose_fn on the dropped value.
98546         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
98547         argument.
98548         (gl_tree_list_free): Call dispose_fn on the dropped values.
98549         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
98550         the dropped values.
98551         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
98552         Add dispose_fn argument.
98553         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
98554         Call dispose_fn on the dropped values.
98555         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
98556         Add dispose_fn argument.
98557         (gl_sublist_create): Initialize the 'dispose_fn' field.
98558         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
98559         * tests/test-array_list.c (main): Update.
98560         * tests/test-carray_list.c (main): Update.
98561         * tests/test-avltree_list.c (main): Update.
98562         * tests/test-rbtree_list.c (main): Update.
98563         * tests/test-avltreehash_list.c (main): Update.
98564         * tests/test-rbtreehash_list.c (main): Update.
98565         * tests/test-linked_list.c (main): Update.
98566         * tests/test-linkedhash_list.c (main): Update.
98567         * tests/test-array_oset.c (main): Update.
98569 2007-03-15  Bruno Haible  <bruno@clisp.org>
98571         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
98572         (gl_oset_create_empty): Add dispose_fn argument.
98573         (struct gl_oset_implementation): Add dispose_fn argument to
98574         'create_empty' method.
98575         (struct gl_oset_impl_base): Add dispose_fn field.
98576         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
98577         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
98578         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
98579         values.
98580         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
98581         (gl_tree_oset_free): Call dispose_fn on the dropped values.
98582         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
98583         dropped value.
98584         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
98585         dropped value.
98586         * tests/test-array_oset.c (main): Update.
98587         * tests/test-avltree_oset.c (main): Update.
98588         * tests/test-rbtree_oset.c (main): Update.
98589         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
98591 2007-03-13  Bruno Haible  <bruno@clisp.org>
98593         * tests/test-stdbool.c (i): Update after last patch.
98595 2007-03-12  Bruno Haible  <bruno@clisp.org>
98597         * lib/quotearg.c: Include <wctype.h> early, before the definition of
98598         the iswprint macro. Needed on Solaris 2.5.1.
98600 2007-03-12  Bruno Haible  <bruno@clisp.org>
98602         * tests/test-printf-frexp.c (main): Declare x as volatile.
98604 2007-03-12  Simon Josefsson  <simon@josefsson.org>
98606         * doc/gnulib.texi (Build robot for gnulib): New section.
98608 2007-03-12  Jim Meyering  <jim@meyering.net>
98610         * build-aux/bootstrap: New file.
98611         * build-aux/bootstrap.conf: New file, from coreutils.
98613 2007-03-11  Bruno Haible  <bruno@clisp.org>
98615         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
98617 2007-03-12  Simon Josefsson  <simon@josefsson.org>
98619         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
98620         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
98621         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
98623 2007-03-11  Bruno Haible  <bruno@clisp.org>
98625         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
98626         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
98628 2007-03-11  Bruno Haible  <bruno@clisp.org>
98630         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
98631         formula. Needed for SunPRO C 5.0.
98633 2007-03-11  Bruno Haible  <bruno@clisp.org>
98635         * modules/long-options (Depends-on): Add getopt.
98637 2007-03-11  Bruno Haible  <bruno@clisp.org>
98639         * modules/modechange (Depends-on): Add stdbool.
98641 2007-03-11  Bruno Haible  <bruno@clisp.org>
98643         * modules/i-ring (Depends-on): Add stdbool.
98645 2007-03-11  Bruno Haible  <bruno@clisp.org>
98647         * modules/gc-des (Depends-on): Add stdbool.
98649 2007-03-11  Bruno Haible  <bruno@clisp.org>
98651         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
98653 2007-03-11  Bruno Haible  <bruno@clisp.org>
98655         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
98657 2007-03-11  Bruno Haible  <bruno@clisp.org>
98659         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
98661 2007-03-11  Bruno Haible  <bruno@clisp.org>
98663         * lib/vasnprintf.c (sprintf): Undefine.
98665 2007-03-11  Bruno Haible  <bruno@clisp.org>
98667         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
98668         initializers in SunPRO C and Compaq C compilers.
98670 2007-03-11  Bruno Haible  <bruno@clisp.org>
98672         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
98673         decrementing code ANSI C compliant.
98675 2007-03-11  Bruno Haible  <bruno@clisp.org>
98677         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
98678         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
98680 2007-03-11  Bruno Haible  <bruno@clisp.org>
98682         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
98683         <stdbool.h> substitute doesn't pass.
98685 2007-03-11  Bruno Haible  <bruno@clisp.org>
98687         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
98689 2007-03-11  Bruno Haible  <bruno@clisp.org>
98691         * gnulib-tool (func_create_megatestdir): Create also an autobuild
98692         script, for submission to autobuild.josefsson.org.
98694 2007-03-10  Bruno Haible  <bruno@clisp.org>
98696         * modules/canonicalize-lgpl-tests: New file.
98697         * tests/test-canonicalize-lgpl.sh: New file.
98698         * tests/test-canonicalize-lgpl.c: New file.
98700         * modules/c-strcase-tests: New file.
98701         * tests/test-c-strcase.sh: New file.
98702         * tests/test-c-strcasecmp.c: New file.
98703         * tests/test-c-strncasecmp.c: New file.
98705         * modules/atexit-tests: New file.
98706         * tests/test-atexit.sh: New file.
98707         * tests/test-atexit.c: New file.
98709 2007-03-10  Bruno Haible  <bruno@clisp.org>
98711         * tests/test-binary-io.sh: Use temporary filenames that are not so
98712         likely to clash with those of other tests (in a parallel make).
98713         * tests/test-binary-io.c: Likewise.
98715 2007-03-10  Bruno Haible  <bruno@clisp.org>
98717         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
98718         fallback; use #error instead.
98719         Suggested by Simon Josefsson.
98721 2007-03-10  Bruno Haible  <bruno@clisp.org>
98723         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
98724         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
98725         first and the last.
98727 2007-03-10  Bruno Haible  <bruno@clisp.org>
98729         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
98731 2007-03-10  Bruno Haible  <bruno@clisp.org>
98733         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
98734         "make distcheck".
98735         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
98736         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
98737         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
98739 2007-03-10  Bruno Haible  <bruno@clisp.org>
98741         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
98742         variable.
98743         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
98744         variable.
98746 2007-03-09  Eric Blake  <ebb9@byu.net>
98747         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
98749         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
98750         types are not being provided by gnulib.
98751         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
98752         types are supported.
98754 2007-03-10  Bruno Haible  <bruno@clisp.org>
98756         * lib/stdio_.h (__attribute__): New macro.
98757         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
98758         vsprintf): Specify __attribute__ __format__ for GCC.
98759         Suggested by Eric Blake.
98761 2007-03-09  Bruno Haible  <bruno@clisp.org>
98763         * modules/printf-posix-tests: New file.
98764         * tests/test-printf-posix.sh: New file.
98765         * tests/test-printf-posix.c: New file.
98767         * modules/printf-posix: New file.
98768         * lib/printf.c: New file.
98769         * m4/printf-posix-rpl.m4: New file.
98770         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
98771         REPLACE_PRINTF.
98772         * lib/stdio_.h (printf): New declaration.
98773         (format, __format__, ____printf____, ____scanf____, ____strftime____,
98774         ____strfmon____): New macros.
98775         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
98776         REPLACE_PRINTF.
98778 2007-03-09  Bruno Haible  <bruno@clisp.org>
98780         * tests/test-vasnprintf-posix2.sh: New file.
98781         * tests/test-vasnprintf-posix2.c: New file.
98782         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
98783         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
98784         (Makefile.am): Activate test-vasnprintf-posix2.sh.
98786         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
98787         a locale dependent decimal point, rather than always '.'.
98789 2007-03-09  Eric Blake  <ebb9@byu.net>
98791         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
98792         spite of platforms like Tandem/NSK that define it to -1.
98794 2007-03-08  Bruno Haible  <bruno@clisp.org>
98796         * modules/vprintf-posix-tests: New file.
98797         * tests/test-vprintf-posix.sh: New file.
98798         * tests/test-vprintf-posix.c: New file.
98799         * tests/test-printf-posix.h: New file.
98801         * modules/vprintf-posix: New file.
98802         * lib/vprintf.c: New file.
98803         * m4/vprintf-posix.m4: New file.
98804         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
98805         REPLACE_VPRINTF.
98806         * lib/stdio_.h (vprintf): New declaration.
98807         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
98808         REPLACE_VPRINTF.
98810 2007-03-08  Bruno Haible  <bruno@clisp.org>
98812         * modules/fprintf-posix-tests: New file.
98813         * tests/test-fprintf-posix.sh: New file.
98814         * tests/test-fprintf-posix.c: New file.
98816         * modules/fprintf-posix: New file.
98817         * lib/fprintf.c: New file.
98818         * m4/fprintf-posix.m4: New file.
98819         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
98820         REPLACE_FPRINTF.
98821         * lib/stdio_.h (fprintf): New declaration.
98822         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
98823         REPLACE_FPRINTF.
98825 2007-03-08  Bruno Haible  <bruno@clisp.org>
98827         * modules/vfprintf-posix-tests: New file.
98828         * tests/test-vfprintf-posix.sh: New file.
98829         * tests/test-vfprintf-posix.c: New file.
98830         * tests/test-fprintf-posix.h: New file.
98831         * tests/test-fprintf-posix.out: New file.
98833         * modules/vfprintf-posix: New file.
98834         * lib/vfprintf.c: New file.
98835         * m4/vfprintf-posix.m4: New file.
98836         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
98837         REPLACE_VFPRINTF.
98838         * lib/stdio_.h (vfprintf): New declaration.
98839         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
98840         REPLACE_VFPRINTF.
98842 2007-03-08  Bruno Haible  <bruno@clisp.org>
98844         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
98846 2007-03-08  Bruno Haible  <bruno@clisp.org>
98848         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
98849         instead of 'expr' invocations.
98850         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
98851         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
98852         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
98853         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
98854         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
98855         Suggested by Paul Eggert.
98857 2007-03-08  Bruno Haible  <bruno@clisp.org>
98859         * modules/fseterr-tests: New file.
98860         * tests/test-fseterr.c: New file.
98862         * modules/fseterr: New file.
98863         * lib/fseterr.h: New file.
98864         * lib/fseterr.c: New file.
98866 2007-03-08  Bruno Haible  <bruno@clisp.org>
98868         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
98869         * lib/getopt_.h: Likewise.
98870         * lib/mbswidth.h: Likewise.
98871         * lib/setenv.h: Likewise.
98872         * lib/vasnprintf.h: Likewise.
98873         * lib/vasprintf.h: Likewise.
98874         * lib/verror.h: Likewise.
98875         * lib/xsetenv.h: Likewise.
98876         * lib/xvasprintf.h: Likewise.
98878 2007-03-08  Jim Meyering  <jim@meyering.net>
98880         * users.txt: Add parted.
98882         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
98884 2007-03-07  Bruno Haible  <bruno@clisp.org>
98886         * m4/printf.m4: Make the shell script snippets copy&pastable.
98888 2007-03-02  Bruno Haible  <bruno@clisp.org>
98890         * lib/netinet_in_.h: New file.
98891         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
98892         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
98893         * modules/netinet_in (Files): Add lib/netinet_in_.h.
98894         (Depends-on): Add absolute-header.
98895         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
98896         into netinet/in.h.
98898 2007-03-03  Bruno Haible  <bruno@clisp.org>
98900         * lib/sys_select_.h: New file.
98901         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
98902         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
98903         * modules/sys_select (Files): Add lib/sys_select_.h.
98904         (Depends-on): Add absolute-header.
98905         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
98906         into sys/select.h.
98908 2007-03-02  Bruno Haible  <bruno@clisp.org>
98910         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
98911         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
98912         values.
98913         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
98914         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
98915         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
98916         * modules/sys_socket (Depends-on): Add absolute-header.
98917         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
98918         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
98919         (Include): Remove requirement of inclusion of <sys/types.h>.
98921 2007-03-02  Bruno Haible  <bruno@clisp.org>
98923         * lib/byteswap_.h (bswap_32): Fix formula.
98925 2007-03-06  Bruno Haible  <bruno@clisp.org>
98927         * modules/sprintf-posix-tests: New file.
98928         * tests/test-sprintf-posix.c: New file.
98930         * modules/sprintf-posix: New file.
98931         * lib/sprintf.c: New file.
98932         * m4/sprintf-posix.m4: New file.
98933         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
98934         REPLACE_SPRINTF.
98935         * lib/stdio_.h (sprintf): New declaration.
98936         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
98937         REPLACE_SPRINTF.
98939 2007-03-06  Bruno Haible  <bruno@clisp.org>
98941         * modules/vsprintf-posix-tests: New file.
98942         * tests/test-vsprintf-posix.c: New file.
98943         * tests/test-sprintf-posix.h: New file.
98945         * modules/vsprintf-posix: New file.
98946         * lib/vsprintf.c: New file.
98947         * m4/vsprintf-posix.m4: New file.
98948         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
98949         REPLACE_VSPRINTF.
98950         * lib/stdio_.h (vsprintf): New declaration.
98951         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
98952         REPLACE_VSPRINTF.
98954 2007-03-06  Bruno Haible  <bruno@clisp.org>
98956         * modules/vsnprintf (Depend-on): Remove minmax.
98958 2007-03-06  Bruno Haible  <bruno@clisp.org>
98960         * modules/snprintf-posix-tests: New file.
98961         * tests/test-snprintf-posix.c: New file.
98963         * modules/snprintf-posix: New file.
98964         * m4/snprintf-posix.m4: New file.
98965         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
98966         gl_FUNC_SNPRINTF.
98967         (gl_FUNC_SNPRINTF): Invoke it.
98968         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
98969         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
98970         is set.
98971         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
98973 2007-03-06  Bruno Haible  <bruno@clisp.org>
98975         * modules/vsnprintf-posix-tests: New file.
98976         * tests/test-vsnprintf-posix.c: New file.
98977         * tests/test-snprintf-posix.h: New file.
98979         * modules/vsnprintf-posix: New file.
98980         * m4/vsnprintf-posix.m4: New file.
98981         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
98982         gl_FUNC_VSNPRINTF.
98983         (gl_FUNC_VSNPRINTF): Invoke it.
98984         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
98985         * lib/stdio_.h (vsnprintf): Define as a replacement if
98986         REPLACE_VSNPRINTF is set.
98987         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
98989 2007-03-06  Bruno Haible  <bruno@clisp.org>
98991         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
98992         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
98994 2007-03-06  Bruno Haible  <bruno@clisp.org>
98996         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
98997         (asinl): Declare also if HAVE_DECL_ASINL is set.
98998         (atanl): Declare also if HAVE_DECL_ATANL is set.
98999         (ceill): Declare also if HAVE_DECL_CEILL is set.
99000         (cosl): Declare also if HAVE_DECL_COSL is set.
99001         (expl): Declare also if HAVE_DECL_EXPL is set.
99002         (floorl): Declare also if HAVE_DECL_FLOORL is set.
99003         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
99004         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
99005         (logl): Declare also if HAVE_DECL_LOGL is set.
99006         (sinl): Declare also if HAVE_DECL_SINL is set.
99007         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
99008         (tanl): Declare also if HAVE_DECL_TANL is set.
99009         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
99010         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
99011         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
99012         declaration of frexpl, ldexpl.
99013         * modules/printf-frexpl (Depends-on): Add math.
99014         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
99016 2007-03-05  Bruno Haible  <bruno@clisp.org>
99018         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
99019         frexpl and ldexpl are declared.
99020         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
99022 2007-03-05  Bruno Haible  <bruno@clisp.org>
99024         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
99025         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
99027 2007-03-05  Bruno Haible  <bruno@clisp.org>
99029         * lib/stdio_.h: Include <stddef.h>.
99031 2007-03-05  Bruno Haible  <bruno@clisp.org>
99033         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
99035 2007-03-05  Bruno Haible  <bruno@clisp.org>
99037         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
99038         NetBSD 4, from Ralf Wildenhues.
99040 2007-03-04  Bruno Haible  <bruno@clisp.org>
99042         * lib/vasprintf.h: Update #if logic for the case when the functions
99043         exist but are overridden.
99045 2007-03-04  Bruno Haible  <bruno@clisp.org>
99047         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
99048         implementations: glibc-2.4 and MacOS X 10.3.
99049         * tests/test-vasnprintf-posix.c (test_function): Test also the case
99050         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
99051         * tests/test-vasprintf-posix.c (test_function): Likewise.
99053 2007-03-04  Bruno Haible  <bruno@clisp.org>
99055         * modules/vasprintf-posix-tests: New file.
99056         * tests/test-vasprintf-posix.c: New file.
99058         * modules/vasprintf-posix: New file.
99059         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
99060         defined.
99061         * m4/vasprintf-posix.m4: New file.
99062         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
99063         gl_FUNC_VASPRINTF.
99064         (gl_FUNC_VASPRINTF): Invoke it.
99065         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
99066         here.
99067         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
99069 2007-03-04  Bruno Haible  <bruno@clisp.org>
99071         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
99072         REPLACE_GETTIMEOFDAY.
99073         * modules/sys_time (Makefile.am): Likewise.
99074         * m4/sys_time_h.m4: Likewise.
99075         * m4/gettimeofday.m4: Likewise.
99077 2007-03-04  Bruno Haible  <bruno@clisp.org>
99079         * modules/vasnprintf-posix-tests: New file.
99080         * tests/test-vasnprintf-posix.c: New file.
99082         * modules/vasnprintf-posix: New file.
99083         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
99084         printf-frexpl.h.
99085         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
99086         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
99087         REPLACE_VASNPRINTF is defined.
99088         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
99089         gl_FUNC_VASNPRINTF.
99090         (gl_FUNC_VASNPRINTF): Invoke it.
99091         * m4/vasnprintf-posix.m4: New file.
99092         * m4/printf.m4: New file.
99094 2007-03-04  Bruno Haible  <bruno@clisp.org>
99096         Compile progreloc.c only if --enable-relocatable is specified.
99097         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
99098         if --enable-relocatable was specified.
99099         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
99100         lib_SOURCES.
99102 2007-03-04  Jim Meyering  <jim@meyering.net>
99104         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
99105         Use it consistently, rather than enumerating errno constants.
99107 2007-03-04  Bruno Haible  <bruno@clisp.org>
99109         * modules/xvasprintf-tests: New file.
99110         * tests/test-xvasprintf.c: New file.
99112         * modules/vasprintf-tests: New file.
99113         * tests/test-vasprintf.c: New file.
99115         * modules/vasnprintf-tests: New file.
99116         * tests/test-vasnprintf.c: New file.
99118         * modules/vsnprintf-tests: New file.
99119         * tests/test-vsnprintf.c: New file.
99121         * modules/snprintf-tests: New file.
99122         * tests/test-snprintf.c: New file.
99124 2007-03-04  Bruno Haible  <bruno@clisp.org>
99126         Compile relocatable.c only if --enable-relocatable is specified.
99127         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
99128         gl_RELOCATABLE_LIBRARY.
99129         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
99130         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
99131         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
99132         gl_RELOCATABLE_LIBRARY.
99133         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
99134         (Makefile.am): Remove lib_SOURCES.
99135         * modules/relocatable-lib-lgpl (configure.ac): Invoke
99136         gl_RELOCATABLE_LIBRARY.
99137         (Makefile.am): Remove lib_SOURCES.
99138         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
99139         always.
99140         * modules/relocatable-prog-wrapper (configure.ac): Invoke
99141         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
99143 2007-03-04  Bruno Haible  <bruno@clisp.org>
99145         * modules/argmatch-tests: New file.
99146         * tests/test-argmatch.c: New file.
99148         * tests/test-allocsa.c (main): Halve the number of loop runs.
99150         * modules/alloca-opt-tests: New file.
99151         * tests/test-alloca-opt.c: New file.
99153 2007-03-04  Jim Meyering  <jim@meyering.net>
99155         Work around difference between Linux ACLs and Solaris 10 ZFS.
99156         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
99157         for EINVAL.
99159 2007-03-03  Bruno Haible  <bruno@clisp.org>
99161         * modules/relocatable-prog (Depends-on): Add back progreloc's
99162         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
99164 2007-03-03  Bruno Haible  <bruno@clisp.org>
99166         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
99167         * modules/relocatable-lib: New file.
99169 2007-03-03  Bruno Haible  <bruno@clisp.org>
99171         * modules/relocatable-prog: Renamed from modules/relocatable.
99172         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
99174 2007-03-03  Bruno Haible  <bruno@clisp.org>
99176         * modules/relocatable-script (Files): Add doc/relocatable.texi,
99177         m4/relocatable-lib.m4.
99178         (Depends-on): Remove 'relocatable'.
99179         (configure.ac): Add gl_RELOCATABLE_NOP.
99181 2007-03-03  Bruno Haible  <bruno@clisp.org>
99183         * modules/relocatable-prog-wrapper: New file.
99184         * modules/relocatable (Depends-on): Add it. Remove all other
99185         dependencies except progname.
99186         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
99188         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
99189         (gl_FUNC_STRERROR): Nop.
99190         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
99192         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
99193         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
99195         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
99196         (gl_FUNC_READLINK): Update.
99198         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
99200 2007-03-03  Bruno Haible  <bruno@clisp.org>
99202         * lib/xreadlink.c: Include <unistd.h> unconditionally.
99203         * modules/xreadlink (Depends-on): Add unistd.
99204         * modules/xreadlink-with-size (Depends-on): Likewise.
99206 2007-03-03  Bruno Haible  <bruno@clisp.org>
99208         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
99209         extracted from gt_FUNC_SETENV.
99210         (gt_FUNC_SETENV): Remove macro.
99211         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
99212         remove gt_FUNC_SETENV.
99214 2007-03-03  Bruno Haible  <bruno@clisp.org>
99216         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
99217         ENABLE_RELOCATABLE here.
99218         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
99220 2007-03-03  Bruno Haible  <bruno@clisp.org>
99222         * modules/rbtreehash-list-tests (Depends-on): Add progname.
99223         * tests/test-rbtreehash_list.c: Include progname.h.
99224         (main): Call set_program_name.
99226         * modules/rbtree-oset-tests (Depends-on): Add progname.
99227         * tests/test-rbtree_oset.c: Include progname.h.
99228         (main): Call set_program_name.
99230         * modules/rbtree-list-tests (Depends-on): Add progname.
99231         * tests/test-rbtree_list.c: Include progname.h.
99232         (main): Call set_program_name.
99234         * modules/linked-list-tests (Depends-on): Add progname.
99235         * tests/test-linked_list.c: Include progname.h.
99236         (main): Call set_program_name.
99238 2007-03-03  Bruno Haible  <bruno@clisp.org>
99240         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
99241         All uses of __restrict changed to _Restrict_.
99242         * lib/glob_.h (__restrict): Remove macro.
99244 2007-03-02  Bruno Haible  <bruno@clisp.org>
99246         * modules/gettext (configure.ac): Require gettext infrastructure
99247         from version 0.16.1.
99249 2007-03-02  Bruno Haible  <bruno@clisp.org>
99251         * modules/linkedhash-list-tests (Depends-on): Add progname.
99252         * tests/test-linkedhash_list.c: Include progname.h.
99253         (main): Call set_program_name.
99255         * modules/carray-list-tests (Depends-on): Add progname.
99256         * tests/test-carray_list.c: Include progname.h.
99257         (main): Call set_program_name.
99259         * modules/avltreehash-list-tests (Depends-on): Add progname.
99260         * tests/test-avltreehash_list.c: Include progname.h.
99261         (main): Call set_program_name.
99263         * modules/avltree-oset-tests (Depends-on): Add progname.
99264         * tests/test-avltree_oset.c: Include progname.h.
99265         (main): Call set_program_name.
99267         * modules/avltree-list-tests (Depends-on): Add progname.
99268         * tests/test-avltree_list.c: Include progname.h.
99269         (main): Call set_program_name.
99271         * modules/array-oset-tests (Depends-on): Add progname.
99272         * tests/test-array_oset.c: Include progname.h.
99273         (main): Call set_program_name.
99275         * modules/array-list-tests (Depends-on): Add progname.
99276         * tests/test-array_list.c: Include progname.h.
99277         (main): Call set_program_name.
99279         * modules/argp-tests (Depends-on): Add progname.
99280         * tests/test-argp.c: Include argp.h first. Include progname.h.
99281         (main): Call set_program_name.
99283 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
99285         * doc/gnulib-tool.texi (Initial import): Reword description of
99286         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
99287         limited effect even if defined after the first system include.
99289 2007-03-01  Bruno Haible  <bruno@clisp.org>
99291         * build-aux/config.libpath: Update to libtool-1.5.22.
99292         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
99294 2007-03-01  Bruno Haible  <bruno@clisp.org>
99296         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
99297         foo_CFLAGS.
99298         Reported by Ralf Wildenhues.
99300 2007-03-01  Bruno Haible  <bruno@clisp.org>
99302         * build-aux/install-reloc: Remove object files left over by some
99303         compilers.
99304         Reported by Ralf Wildenhues.
99306 2007-03-01  Bruno Haible  <bruno@clisp.org>
99308         * build-aux/install-reloc: Break long lines.
99310 2007-03-01  Bruno Haible  <bruno@clisp.org>
99312         * doc/relocatable.texi: Document that it may not work on OpenBSD.
99313         Reported by Ralf Wildenhues.
99315 2007-03-01  Bruno Haible  <bruno@clisp.org>
99317         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
99318         include ordering constraints.
99320 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
99322         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
99323         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00136.html>.
99324         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
99325         as another example.
99326         * lib/time_.h: Fix misspelling.
99327         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
99328         Require gl_HEADER_TIME_H_DEFAULTS.
99329         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
99330         * m4/time_r.m4 (gl_TIME_R): Likewise.
99331         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
99333 2007-03-01  Bruno Haible  <bruno@clisp.org>
99335         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
99336         * m4/utimens.m4 (gl_UTIMENS): Likewise.
99338 2007-03-01  Jim Meyering  <jim@meyering.net>
99340         * modules/xreadlink (Maintainer): Add my name.
99341         * modules/xreadlink-with-size (Depends-on): Alphabetize.
99343 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
99344             Bruno Haible  <bruno@clisp.org>
99346         * build-aux/install-reloc: Compile also c-ctype.c.
99347         * build-aux/relocatable.sh.in: New file.
99348         * doc/relocatable.texi: New file.
99349         * doc/relocatable-maint.texi: New file.
99350         * doc/gnulib.texi: Include relocatable-maint.texi.
99351         * lib/progreloc.c: Include unistd.h unconditionally.
99352         * lib/relocwrapper.c: Include unistd.h unconditionally.
99353         Include c-ctype.h.
99354         (add_dotbin): Use c_tolower.
99355         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
99356         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
99357         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
99358         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
99359         to m4/relocatable-lib.m4.
99360         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
99361         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
99362         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
99363         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
99364         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
99365         * modules/relocatable: New file.
99366         * modules/relocatable-lib: New file.
99367         * modules/relocatable-script: New file.
99369 2007-02-28  Bruno Haible  <bruno@clisp.org>
99371         Import --enable-relocatable infrastructure.
99372         * build-aux/config.libpath: New file, from GNU gettext.
99373         * build-aux/install-reloc: New file, from GNU gettext.
99374         * build-aux/reloc-ldflags: New file, from GNU gettext.
99375         * lib/relocatable.h: New file, from GNU gettext.
99376         * lib/relocatable.c: New file, from GNU gettext.
99377         * lib/relocwrapper.c: New file, from GNU gettext.
99378         * m4/relocatable.m4: New file, from GNU gettext.
99380 2007-02-28  Bruno Haible  <bruno@clisp.org>
99382         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
99384         * modules/xreadlink: New file, from GNU gettext with modifications.
99385         * lib/xreadlink.c: New file, from GNU gettext.
99386         * lib/xreadlink.h: Add comments.
99387         (xreadlink): New declaration.
99389         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
99390         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
99391         lib/xreadlink-with-size.c.
99392         (configure.ac): Remove gl_XREADLINK invocation.
99393         (Makefile.am): Augment lib_SOURCES.
99394         * m4/xreadlink.m4: Remove file.
99395         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
99396         (xreadlink_with_size): Renamed from xreadink.
99397         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
99398         * modules/canonicalize (Depends-on): Replace xreadlink with
99399         xreadlink-with-size.
99400         * lib/canonicalize.c (canonicalize_filename_mode): Update.
99402 2007-02-25  Jim Meyering  <jim@meyering.net>
99404         * build-aux/announce-gen: When complaining about excess arguments,
99405         list them.
99407 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
99409         * README: Document signed integer overflow situation more
99410         accurately.
99412 2007-02-25  Bruno Haible  <bruno@clisp.org>
99414         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
99415         'a' or 'A' conversion.
99417 2007-02-25  Bruno Haible  <bruno@clisp.org>
99419         * modules/filename: Renamed from modules/pathname.
99420         (Files): Replace lib/pathname.h with lib/filename.h. Replace
99421         lib/concatpath.c with lib/concat-filename.c.
99422         (Makefile.am): Update.
99423         (Include): Replace pathname.h with filename.h.
99424         * lib/filename.h: Renamed from lib/pathname.h.
99425         (concatenated_filename): Renamed from concatenated_pathname.
99426         * lib/concat-filename.c: Renamed from lib/concatpath.c.
99427         (concatenated_filename): Renamed from concatenated_pathname.
99428         * lib/findprog.c: Include filename.h instead of pathname.h.
99429         (find_in_path): Update.
99430         * lib/javacomp.c: Include filename.h instead of pathname.h.
99431         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
99432         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
99433         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
99434         is_oldgcj_14_13_usable, is_javac_usable): Update.
99435         * lib/javaexec.c: Include filename.h instead of pathname.h.
99436         (execute_java_class): Update.
99437         * modules/findprog: Update.
99438         * modules/javacomp: Update.
99439         * modules/javaexec: Update.
99440         * MODULES.html.sh (File system functions): Add 'filename', remove
99441         'pathname'.
99443 2007-02-25  Bruno Haible  <bruno@clisp.org>
99445         * modules/printf-frexpl-tests: New file.
99446         * tests/test-printf-frexpl.c: New file.
99448         * modules/printf-frexpl: New file.
99449         * lib/printf-frexpl.h: New file.
99450         * lib/printf-frexpl.c: New file.
99451         * m4/printf-frexpl.m4: New file.
99453 2007-02-25  Bruno Haible  <bruno@clisp.org>
99455         * modules/printf-frexp-tests: New file.
99456         * tests/test-printf-frexp.c: New file.
99458         * modules/printf-frexp: New file.
99459         * lib/printf-frexp.h: New file.
99460         * lib/printf-frexp.c: New file.
99461         * m4/printf-frexp.m4: New file.
99463 2007-02-25  Bruno Haible  <bruno@clisp.org>
99465         Assume automake >= 1.10 for the tests.
99466         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
99467         * modules/arctwo-tests: Likewise.
99468         * modules/argp-tests: Likewise.
99469         * modules/avltree-list-tests: Likewise.
99470         * modules/avltree-oset-tests: Likewise.
99471         * modules/avltreehash-list-tests: Likewise.
99472         * modules/carray-list-tests: Likewise.
99473         * modules/crc-tests: Likewise.
99474         * modules/des-tests: Likewise.
99475         * modules/gc-arcfour-tests: Likewise.
99476         * modules/gc-arctwo-tests: Likewise.
99477         * modules/gc-des-tests: Likewise.
99478         * modules/gc-hmac-md5-tests: Likewise.
99479         * modules/gc-hmac-sha1-tests: Likewise.
99480         * modules/gc-md2-tests: Likewise.
99481         * modules/gc-md4-tests: Likewise.
99482         * modules/gc-md5-tests: Likewise.
99483         * modules/gc-pbkdf2-sha1-tests: Likewise.
99484         * modules/gc-rijndael-tests: Likewise.
99485         * modules/gc-sha1-tests: Likewise.
99486         * modules/gc-tests: Likewise.
99487         * modules/getaddrinfo-tests: Likewise.
99488         * modules/hmac-md5-tests: Likewise.
99489         * modules/hmac-sha1-tests: Likewise.
99490         * modules/linked-list-tests: Likewise.
99491         * modules/linkedhash-list-tests: Likewise.
99492         * modules/lock-tests: Likewise.
99493         * modules/md2-tests: Likewise.
99494         * modules/md4-tests: Likewise.
99495         * modules/md5-tests: Likewise.
99496         * modules/rbtree-list-tests: Likewise.
99497         * modules/rbtree-oset-tests: Likewise.
99498         * modules/rbtreehash-list-tests: Likewise.
99499         * modules/read-file-tests: Likewise.
99500         * modules/rijndael-tests: Likewise.
99501         * modules/stdint-tests: Likewise.
99502         * modules/tls-tests: Likewise.
99504 2007-02-24  Bruno Haible  <bruno@clisp.org>
99506         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
99507         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
99508         function; instead check whether isnan with a double argument links.
99509         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
99510         function; instead check whether isnan with a 'long double' argument
99511         links.
99512         Reported by Eric Blake <ebb9@byu.net>.
99514 2007-02-24  Bruno Haible  <bruno@clisp.org>
99516         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
99517         defined.
99518         * lib/isnanl.c: Remove all code. Just include isnan.c.
99519         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
99521 2007-02-25  Jim Meyering  <jim@meyering.net>
99523         Avoid conflicting types for 'unsetenv' on FreeBSD.
99524         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
99525         conflicting with FreeBSD's (5.0 and 6.1) function declaration
99526         in stdlib.h.
99528 2007-02-24  Bruno Haible  <bruno@clisp.org>
99530         * modules/isnanl-nolibm-tests: New file.
99531         * tests/test-isnanl.c: New file.
99533         * modules/isnanl-nolibm: New file.
99534         * lib/isnanl.h: New file.
99535         * lib/isnanl.c: New file.
99536         * m4/isnanl.m4: New file.
99538 2007-02-24  Bruno Haible  <bruno@clisp.org>
99540         * modules/isnan-nolibm-tests: New file.
99541         * tests/test-isnan.c: New file.
99543         * modules/isnan-nolibm: New file.
99544         * lib/isnan.h: New file.
99545         * lib/isnan.c: New file.
99546         * m4/isnan.m4: New file.
99548 2007-02-24  Bruno Haible  <bruno@clisp.org>
99550         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
99551         assume that an exponent fits in 20 bits.
99553 2007-02-24  Jim Meyering  <jim@meyering.net>
99555         * m4/regex.m4: Update the description of the configure-time option,
99556         --without-included-regex, to state accurately what the defaults are,
99557         and perhaps to give people an idea why using this option is risky.
99559 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
99561         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
99562         loops on small arguments.  This attempts to avoid the problem
99563         Bruno Haible reported for AIX 4.3.2 in
99564         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00309.html>.
99566 2007-02-23  Bruno Haible  <bruno@clisp.org>
99568         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
99569         Needed for help2man.
99571 2007-02-23  Karl Berry  <karl@gnu.org>
99573         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
99574         exists, foo.h should be cvs-ignored, not committed.
99576 2007-02-23  Eric Blake  <ebb9@byu.net>
99578         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
99579         * lib/stat-time.h (includes): Likewise.
99580         * lib/utimecmp.c (includes): Likewise.
99581         * lib/utimens.h (includes): Likewise.
99582         * lib/getdate.y (includes): Also include "timespec.h" for use
99583         internal to the module.
99584         * modules/utimens (Depends-on): Revert yesterday's patch.
99585         * modules/nanosleep (Depends-on): Add missing dependency.
99587 2007-02-22  Bruno Haible  <bruno@clisp.org>
99589         * lib/glob.c: Don't include getlogin_r.h.
99591 2007-02-22  Jim Meyering  <jim@meyering.net>
99593         * modules/utimens (Depends-on): Add timespec, required for
99594         utimens.h's inclusion of timespec.h.
99596 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
99598         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
99599         long unreadable paths in GNU/Linux.  Problem reported by Andreas
99600         Schwab in
99601         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00261.html>.
99602         I'll try to think of a better way to fix the Solaris problem.
99604         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
99605         like glibc; on Solaris 10, it fails with errno == EINVAL.
99606         POSIX says the behavior is unspecified if the first argument is NULL,
99607         so play it safe and never pass NULL to the system getcwd.
99609 2007-02-21  Jim Meyering  <jim@meyering.net>
99611         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
99612         of gettimeofday.  It would conflict with the one now always
99613         provided via sys_time_.h.  Reported by Matthew Woehlke, as
99614         an IRIX 6.5 build failure.
99616 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
99618         Minor fixups to port to Solaris 10 with Sun C 5.8.
99619         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
99620         * modules/getcwd (Depends-on): Add dirfd.
99621         * lib/putenv.c (putenv): #undef it.
99622         (rpl_putenv): New decl.
99623         (malloc, free): Include <stdlib.h> rather than prototyping separately.
99625 2007-02-20  Bruno Haible  <bruno@clisp.org>
99627         * modules/stdio-tests: New file.
99628         * tests/test-stdio.c: New file.
99630         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
99631         (Depends-on): Add stdio.
99632         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
99633         (Include): Use <stdio.h> instead of vsnprintf.h.
99634         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
99635         HAVE_DECL_VSNPRINTF.
99636         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
99638         * modules/snprintf (Files): Remove lib/snprintf.h.
99639         (Depends-on): Add stdio.
99640         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
99641         (Include): Use <stdio.h> instead of snprintf.h.
99642         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
99643         HAVE_DECL_SNPRINTF.
99644         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
99645         * lib/getaddrinfo.c: Likewise.
99647         * modules/stdio: New file.
99648         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
99649         * lib/snprintf.h: Remove file.
99650         * lib/vsnprintf.h: Remove file.
99651         * lib/.cppi-disable: Remove snprintf.h.
99652         * m4/stdio_h.m4: New file.
99653         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
99655 2007-02-20  Jim Meyering  <jim@meyering.net>
99657         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
99658         used by e.g., mingw.  From Bruno Haible.
99660 2007-02-19  Bruno Haible  <bruno@clisp.org>
99662         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
99663         warnings.
99664         Reported by Ben Pfaff <blp@cs.stanford.edu>.
99666 2007-02-19  Bruno Haible  <bruno@clisp.org>
99668         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
99669         from mingw users.
99671 2007-02-19  Bruno Haible  <bruno@clisp.org>
99673         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
99674         warnings.
99675         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
99677 2007-02-19  Jim Meyering  <jim@meyering.net>
99679         Don't use FD after a successful "fdopendir (fd)".
99680         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
99681         Reset it by calling dirfd on the just-obtained DIR*.
99683         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
99684         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
99686 2007-02-18  Bruno Haible  <bruno@clisp.org>
99688         * lib/readlink.c: Include <unistd.h>.
99689         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
99690         HAVE_READLINK.
99691         * modules/readlink (Depends-on): Add unistd.
99692         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
99693         (Include): Add <unistd.h>.
99695         * lib/getlogin_r.h: Remove file.
99696         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
99697         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
99698         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
99699         HAVE_DECL_GETLOGIN_R.
99700         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
99701         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
99702         (Include): Use <unistd.h> instead of getlogin_r.h.
99704         * lib/getcwd.h: Remove file.
99705         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
99706         * lib/xgetcwd.c: Likewise.
99707         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
99708         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
99709         * modules/getcwd (Files): Remove lib/getcwd.h.
99710         (Depends-on): Add unistd.
99711         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
99712         (Include): Use <unistd.h> instad of getcwd.h.
99714         * lib/ftruncate.c: Include <unistd.h> first.
99715         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
99716         Set HAVE_FTRUNCATE.
99717         * modules/ftruncate (Depends-on): Add unistd.
99718         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
99720         * lib/fchdir.c: Include <unistd.h> first.
99721         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
99722         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
99723         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
99724         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
99725         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
99727         * lib/dup2.c: Include <unistd.h> first.
99728         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
99729         HAVE_DUP2.
99730         * modules/dup2 (Depends-on): Add unistd.
99731         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
99733         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
99734         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
99735         REPLACE_CHOWN. Don't define chown as a macro here.
99736         * modules/chown (Depends-on): Add unistd.
99737         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
99739         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
99740         Add definition for GL_LINK_WARNING.
99741         (chown, dup2): New declarations.
99742         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
99743         link warning.
99744         (ftruncate): New declaration.
99745         (getcwd): New declaration, taken from old getcwd.h.
99746         (getlogin_r): New declaration, taken from old getlogin_r.h.
99747         (readlink): New declaration.
99748         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
99749         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
99750         (gl_PREREQ_UNISTD): Remove macro.
99751         (gl_UNISTD_MODULE_INDICATOR): New macro.
99752         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
99753         many new variables. Don't set UNISTD_H.
99754         * modules/unistd (Description): Change.
99755         (Depends-on): Add link-warning.
99756         (configure.ac): Update.
99757         (Makefile.am): Create unistd.h always. Substitute many new variables
99758         into it.
99760 2007-02-18  Bruno Haible  <bruno@clisp.org>
99762         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
99763         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
99764         HAVE_GETSUBOPT.
99765         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
99766         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
99767         * lib/getsubopt.h: Remove file.
99768         * modules/getsubopt (Files): Remove lib/getsubopt.h.
99769         (Depends-on): Add stdlib.
99770         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
99771         (Includes): Use <stdlib.h> instead of getsubopt.h.
99772         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
99773         Set HAVE_GETSUBOPT.
99774         * lib/getsubopt.c: Don't include getsubopt.h.
99776 2007-02-18  Bruno Haible  <bruno@clisp.org>
99778         * modules/fchdir (Depends-on): Add dup2.
99780 2007-02-18  Bruno Haible  <bruno@clisp.org>
99782         * lib/stdlib_.h: Handle glibc's special invocation convention
99783         specially.
99785 2007-02-18  Bruno Haible  <bruno@clisp.org>
99787         * modules/stdlib-tests: New file.
99788         * tests/test-stdlib.c: New file.
99790         * modules/mkstemp (Files): Remove lib/mkstemp.h.
99791         (Depends-on): Add stdlib.
99792         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
99793         (Includes): Use <stdlib.h> instead of mkstemp.h.
99794         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
99795         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
99796         * lib/mkstemp.c: Don't include mkstemp.h.
99797         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
99798         * lib/stdlib--.h: Don't include mkstemp.h.
99800         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
99801         (Depends-on): Add stdlib.
99802         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
99803         (Includes): Use <stdlib.h> instead of mkdtemp.h.
99804         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
99805         HAVE_MKDTEMP.
99806         * lib/mkdtemp.c: Don't include mkdtemp.h.
99807         * lib/clean-temp.c: Don't include mkdtemp.h.
99809         * modules/exit (Files): Remove lib/exit.h.
99810         (Depends-on): Add stdlib.
99811         (Makefile.am): Remove lib_SOURCES.
99812         (Include): Use <stdlib.h> instead of exit.h.
99813         * lib/argmatch.c: Don't include exit.h.
99814         * lib/execute.c: Likewise.
99815         * lib/pagealign_alloc.c: Likewise.
99816         * lib/pipe.c: Likewise.
99817         * lib/wait-process.c: Likewise.
99818         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
99819         * lib/exitfail.c: Likewise.
99820         * lib/savewd.c: Likewise.
99821         * lib/xsetenv.c: Likewise.
99823         * modules/stdlib: New file.
99824         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
99825         and extra comments about mkstemp().
99826         * lib/exit.h: Remove file.
99827         * lib/mkdtemp.h: Remove file.
99828         * lib/mkstemp.h: Remove file.
99829         * m4/stdlib_h.m4: New file.
99830         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
99832 2007-02-18  Bruno Haible  <bruno@clisp.org>
99834         * modules/math-tests: New file.
99835         * tests/test-math.c: New file.
99837         * modules/math: New file.
99838         * modules/mathl (Files): Remove lib/mathl.h.
99839         (Depends-on): Add math.
99840         (Makefile.am): Don't mention mathl.h.
99841         (Include): Use <math.h> instead of mathl.h.
99842         * lib/math_.h: New file.
99843         * lib/mathl.h: Remove file.
99844         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
99845         mathl.h.
99846         * lib/asinl.c: Likewise.
99847         * lib/atanl.c: Likewise.
99848         * lib/ceill.c: Likewise.
99849         * lib/cosl.c: Likewise.
99850         * lib/expl.c: Likewise.
99851         * lib/floorl.c: Likewise.
99852         * lib/frexpl.c: Likewise.
99853         * lib/ldexpl.c: Likewise.
99854         * lib/logl.c: Likewise.
99855         * lib/sincosl.c: Likewise.
99856         * lib/sinl.c: Likewise.
99857         * lib/sqrtl.c: Likewise.
99858         * lib/tanl.c: Likewise.
99859         * lib/trigl.c: Likewise.
99860         * m4/math_h.m4: New file.
99861         * MODULES.html.sh (Mathematics): Add math.
99863 2007-02-17  Bruno Haible  <bruno@clisp.org>
99865         * modules/wctype-tests: New file.
99866         * tests/test-wctype.c: New file.
99868         * modules/wchar-tests: New file.
99869         * tests/test-wchar.c: New file.
99871         * modules/unistd-tests: New file.
99872         * tests/test-unistd.c: New file.
99874         * modules/time-tests: New file.
99875         * tests/test-time.c: New file.
99877         * modules/sysexits-tests: New file.
99878         * tests/test-sysexits.c: New file.
99880         * modules/sys_time-tests: New file.
99881         * tests/test-sys_time.c: New file.
99883         * modules/sys_stat-tests: New file.
99884         * tests/test-sys_stat.c: New file.
99886         * modules/sys_socket-tests: New file.
99887         * tests/test-sys_socket.c: New file.
99889         * modules/sys_select-tests: New file.
99890         * tests/test-sys_select.c: New file.
99892         * modules/string-tests: New file.
99893         * tests/test-string.c: New file.
99895         * modules/stdbool-tests: New file.
99896         * tests/test-stdbool.c: New file.
99898         * modules/netinet_in-tests: New file.
99899         * tests/test-netinet_in.c: New file.
99901         * modules/inttypes-tests: New file.
99902         * tests/test-inttypes.c: New file.
99904         * modules/fcntl-tests: New file.
99905         * tests/test-fcntl.c: New file.
99907         * modules/byteswap-tests: New file.
99908         * tests/test-byteswap.c: New file.
99910         * modules/arpa_inet-tests: New file.
99911         * tests/test-arpa_inet.c: New file.
99913 2007-02-17  Bruno Haible  <bruno@clisp.org>
99915         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
99916         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
99917         if the corresponding module is not enabled. Emit link warnings if
99918         the function is used nevertheless.
99919         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
99920         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
99921         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
99922         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
99923         * modules/inttypes (Depends-on): Add link-warning.
99924         (Makefile.am): Copy the contents of build-aux/link-warning.h into
99925         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
99926         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
99927         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
99928         * modules/imaxdiv (configure.ac): Likewise.
99929         * modules/strtoimax (configure.ac): Likewise.
99930         * modules/strtoumax (configure.ac): Likewise.
99932 2007-02-17  Bruno Haible  <bruno@clisp.org>
99934         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
99935         gl_STRING_MODULE_INDICATOR_DEFAULTS.
99936         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
99937         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
99939 2007-02-17  Bruno Haible  <bruno@clisp.org>
99941         * modules/link-warning: New file.
99942         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
99943         * lib/string_.h (GL_LINK_WARNING): Remove definition.
99944         * modules/string (Depends-on): Add link-warning.
99945         (Makefile.am): Copy the contents of build-aux/link-warning.h into
99946         string.h.
99947         * MODULES.html.sh (Support for building libraries and executables): Add
99948         link-warning.
99950 2007-02-17  Bruno Haible  <bruno@clisp.org>
99952         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
99953         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
99954         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
99955         long lines.
99957 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
99958             Bruno Haible  <bruno@clisp.org>
99960         * modules/tmpfile: New file.
99961         * lib/tmpfile.c: New file.
99962         * m4/tmpfile.m4: New file.
99963         * MODULES.html.sh (func_all_modules): New section "Input/output".
99965 2007-02-15  Bruno Haible  <bruno@clisp.org>
99967         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
99968         (supports_delete_on_close): New function.
99969         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
99971 2007-02-14  Bruno Haible  <bruno@clisp.org>
99973         * modules/mbspcasecmp-tests: New file.
99974         * tests/test-mbspcasecmp.sh: New file.
99975         * tests/test-mbspcasecmp.c: New file.
99977         New module mbspcasecmp.
99978         * modules/mbspcasecmp: New file.
99979         * lib/mbspcasecmp.c: New file.
99980         * lib/string_.h (strncasecmp): Change warning message.
99981         (mbspcasecmp): New declaration.
99982         * m4/mbspcasecmp.m4: New file.
99983         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
99984         GNULIB_MBSPCASECMP.
99985         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
99986         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
99988 2007-02-14  Bruno Haible  <bruno@clisp.org>
99990         * modules/mbsncasecmp-tests: New file.
99991         * tests/test-mbsncasecmp.sh: New file.
99992         * tests/test-mbsncasecmp.c: New file.
99994         New module mbsncasecmp.
99995         * modules/mbsncasecmp: New file.
99996         * lib/mbsncasecmp.c: New file.
99997         * lib/string_.h (mbsncasecmp): New declaration.
99998         * m4/mbsncasecmp.m4: New file.
99999         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
100000         GNULIB_MBSNCASECMP.
100001         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
100002         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
100004 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
100006         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
100007         Verify that it doesn't overlap with our flags.
100008         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
100009         do not have the desired effect in multibyte locales; instead, use
100010         mbscasecmp.
100011         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
100012         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
100013         we don't require GNU fnmatch ourselves (if our users require it, they
100014         should do so explicitly).
100016         Fix regex code so it doesn't rely on strcasecmp.
100017         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
100018         Otherwise, include gnulib's langinfo.h.
100019         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
100020         undesirable behavior in non-C locales.  Instead, rely on localecharset.
100021         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
100022         * modules/regex (FILES): Remove m4/codeset.m4.
100023         (Depends-on): Add localcharset.  Remove strcase.
100025 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100027         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
100028         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
100030 2007-02-13  Bruno Haible  <bruno@clisp.org>
100032         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
100033         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
100035 2007-02-12  Bruno Haible  <bruno@clisp.org>
100037         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
100038         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
100039         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
100040         time warning rather than a link error.
100042 2007-02-12  Bruno Haible  <bruno@clisp.org>
100044         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
100045         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
100046         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
100048 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
100050         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
100051         args, not 2.
100053 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
100055         New module 'time', so that apps can include <time.h> as per
100056         POSIX and GNU instead of separate include files like time_r.h
100057         and timegm.h.  This implementation tries out a simpler approach
100058         for replacing decls in standard include files (as compared to
100059         the string module), somewhat as an experiment.
100061         * config/srclist.txt: Comment out mktime.c for now.
100062         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
100063         since it doesn't apply any more.  Use generic wording instead.
100064         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
100065         'time'.
100066         * lib/time_.h, m4/time_h.m4, modules/time: New files.
100067         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
100068         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
100069         Don't include <sys/types.h>; no longer needed since we assume C89.
100070         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
100071         * lib/strftime.c: Likewise.
100072         * lib/time_r.c: Likewise.
100073         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
100074         * lib/nanosleep.c: Include <time.h> first, to check interface.
100075         * lib/strptime.c: Likewise.
100076         * lib/time_r.c: Likewise.
100077         * lib/timegm.c: Likewise.
100078         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
100079         needed.
100080         * lib/timegm.c: Don't include timegm.h; no longer needed.
100081         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
100082         time.h now handles any problems in that area.
100083         (struct timespec, nanosleep): Remove; time.h now arranges for these.
100084         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
100085         that time.h defines struct timespec.
100086         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
100087         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
100088         handles that.
100089         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
100090         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
100091         needed.  Set REPLACE_LOCALTIME.
100092         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
100093         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
100094         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
100095         nanosleep; time_h.m4 now does that.  Don't require
100096         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
100097         module handles this now.
100098         * modules/getdate (Depends-on): Remove timespec.  Add time.
100099         * modules/nanosleep (Depends-on): Likewise.
100100         * modules/stat-time (Depends-on): Likewise.
100101         * modules/nanosleep (Include): Include time.h, not timespec.h.
100102         * modules/strptime (Files): Remove lib/strptime.h.
100103         (Depends-on): Add extensions, time.
100104         (Include): Include time.h, not strptime.h.
100105         * modules/time_r (Files): Remove lib/time_r.h.
100106         (Depends-on): Add time.
100107         (Include): Include time.h, not time_r.h.
100108         * modules/timegm: Likewise.
100109         * modules/timespec (Description): Now does timespec-related decls
100110         of our own, instead of struct timespec itself.
100111         (Depends-on): Add time; remove extensions.
100112         (Maintainer): Add self.
100113         * modules/utimecmp (Depends-on): Add time; remove timespec.
100114         * modules/utimens (Depends-on): Likewise.
100115         * modules/xnanosleep (Depends-on): Likewise.
100117 2007-02-11  Bruno Haible  <bruno@clisp.org>
100119         * lib/c-strstr.c: Include allocsa.h.
100120         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
100121         * lib/c-strcasestr.c: Include allocsa.h.
100122         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
100123         * lib/strcasestr.c: Include allocsa.h.
100124         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
100125         * lib/mbsstr.c: Include allocsa.h.
100126         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
100127         allocsa/freesa instead of malloc/free.
100128         * lib/mbscasestr.c: Include allocsa.h.
100129         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
100130         allocsa/freesa instead of malloc/free.
100131         * modules/c-strstr (Depends-on): Add allocsa.
100132         * modules/c-strcasestr (Depends-on): Likewise.
100133         * modules/strcasestr (Depends-on): Likewise.
100134         * modules/mbsstr (Depends-on): Likewise.
100135         * modules/mbscasestr (Depends-on): Likewise.
100137 2007-02-11  Bruno Haible  <bruno@clisp.org>
100139         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
100141         * modules/mbsspn-tests: New file.
100142         * tests/test-mbsspn.sh: New file.
100143         * tests/test-mbsspn.c: New file.
100145 2007-02-11  Bruno Haible  <bruno@clisp.org>
100147         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
100149         * modules/mbspbrk-tests: New file.
100150         * tests/test-mbspbrk.sh: New file.
100151         * tests/test-mbspbrk.c: New file.
100153 2007-02-11  Bruno Haible  <bruno@clisp.org>
100155         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
100156         unneeded cast.
100158         * modules/mbscspn-tests: New file.
100159         * tests/test-mbscspn.sh: New file.
100160         * tests/test-mbscspn.c: New file.
100162 2007-02-11  Bruno Haible  <bruno@clisp.org>
100164         * modules/mbscasecmp-tests: New file.
100165         * tests/test-mbscasecmp.sh: New file.
100166         * tests/test-mbscasecmp.c: New file.
100168 2007-02-11  Bruno Haible  <bruno@clisp.org>
100170         Ensure O(n) worst-case complexity of mbscasestr.
100171         * lib/mbscasestr.c: Include stdbool.h.
100172         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
100173         functions.
100174         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
100175         the bookkeeping indicates that it's worth it.
100176         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
100178         * modules/mbscasestr-tests: New file.
100179         * tests/test-mbscasestr1.c: New file.
100180         * tests/test-mbscasestr2.sh: New file.
100181         * tests/test-mbscasestr2.c: New file.
100182         * tests/test-mbscasestr3.sh: New file.
100183         * tests/test-mbscasestr3.c: New file.
100184         * tests/test-mbscasestr4.sh: New file.
100185         * tests/test-mbscasestr4.c: New file.
100186         * m4/locale-tr.m4: New file.
100188 2007-02-11  Bruno Haible  <bruno@clisp.org>
100190         Ensure O(n) worst-case complexity of mbsstr.
100191         * lib/mbsstr.c: Include stdbool.h.
100192         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
100193         functions.
100194         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
100195         bookkeeping indicates that it's worth it.
100196         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
100198         * modules/mbsstr-tests: New file.
100199         * tests/test-mbsstr1.c: New file.
100200         * tests/test-mbsstr2.sh: New file.
100201         * tests/test-mbsstr2.c: New file.
100202         * tests/test-mbsstr3.sh: New file.
100203         * tests/test-mbsstr3.c: New file.
100204         * m4/locale-fr.m4: New file.
100206 2007-02-11  Bruno Haible  <bruno@clisp.org>
100208         * lib/mbsrchr.c (mbsrchr): Fix bug.
100210         * modules/mbsrchr-tests: New file.
100211         * tests/test-mbsrchr.sh: New file.
100212         * tests/test-mbsrchr.c: New file.
100214 2007-02-11  Bruno Haible  <bruno@clisp.org>
100216         * lib/mbschr.c (mbschr): Fix bug.
100218         * modules/mbschr-tests: New file.
100219         * tests/test-mbschr.sh: New file.
100220         * tests/test-mbschr.c: New file.
100221         * m4/locale-zh.m4: New file.
100223 2007-02-11  Bruno Haible  <bruno@clisp.org>
100225         Support for copying multibyte string iterators.
100226         * lib/mbiter.h: Include <string.h>.
100227         (mbiter_multi_copy): New function.
100228         (mbi_copy): New macro.
100229         * lib/mbuiter.h: Include <string.h>.
100230         (mbuiter_multi_copy): New function.
100231         (mbui_copy): New macro.
100233 2007-02-11  Bruno Haible  <bruno@clisp.org>
100235         New module mbslen.
100236         * modules/mbslen: New file.
100237         * lib/mbslen.c: New file.
100238         * lib/string_.h (mbslen): New declaration.
100239         * m4/mbslen.m4: New file.
100240         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
100241         GNULIB_MBSLEN.
100242         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
100243         * MODULES.html.sh (Internationalization functions): Add mbslen.
100245 2007-02-11  Bruno Haible  <bruno@clisp.org>
100247         Ensure O(n) worst-case complexity of strcasestr substitute.
100248         * lib/strcasestr.c: Include stdbool.h.
100249         (knuth_morris_pratt): New function.
100250         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
100251         bookkeeping indicates that it's worth it.
100252         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
100254         * modules/strcasestr-tests: New file.
100255         * tests/test-strcasestr.c: New file.
100257 2007-02-11  Bruno Haible  <bruno@clisp.org>
100259         Ensure O(n) worst-case complexity of c_strcasestr.
100260         * lib/c-strcasestr.c: Include stdbool.h, string.h.
100261         (knuth_morris_pratt): New function.
100262         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
100263         the bookkeeping indicates that it's worth it.
100264         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
100266         * modules/c-strcasestr-tests: New file.
100267         * tests/test-c-strcasestr.c: New file.
100269 2007-02-11  Bruno Haible  <bruno@clisp.org>
100271         Ensure O(n) worst-case complexity of c_strstr.
100272         * lib/c-strstr.c: Include stdbool.h, string.h.
100273         (knuth_morris_pratt): New function.
100274         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
100275         bookkeeping indicates that it's worth it.
100276         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
100278         * lib/c-strstr.c: Complete rewrite for maintainability.
100280         * modules/c-strstr-tests: New file.
100281         * tests/test-c-strstr.c: New file.
100283 2007-02-11  Bruno Haible  <bruno@clisp.org>
100285         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
100286         5.2.1 and earlier, whereby \055 was treated just like the range
100287         delimiter '-'.
100288         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
100290 2007-02-08  Bruno Haible  <bruno@clisp.org>
100292         * modules/regex (Depends-on): Add stdbool.
100293         Reported by Dalibor Topic <robilad@kaffe.org>.
100295 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
100297         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
100298         Prefer returning from main to exiting from it.
100299         Remove unnecessary parens after sizeof.
100301 2007-02-05  Bruno Haible  <bruno@clisp.org>
100303         New module mbssep.
100304         * modules/mbssep: New file.
100305         * lib/mbssep.c: New file.
100306         * lib/string_.h (strsep): Add a conditional link warning.
100307         (mbssep): New declaration.
100308         * m4/mbssep.m4: New file.
100309         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
100310         GNULIB_MBSSEP.
100311         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
100312         * MODULES.html.sh (Internationalization functions): Add mbssep.
100314 2007-02-05  Bruno Haible  <bruno@clisp.org>
100316         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
100317         Optimize search in case of 1 delimiter.
100319 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
100321         * lib/acl.h: Include sys/types.h before sys/acl.h.
100323 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
100325         Merge upstream fix for glibc bugzilla #3957:
100327         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
100329         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
100330         bit for RE_HAT_LISTS_NOT_NEWLINE.
100331         (build_charclass_op): Remove bogus comment.
100333 2007-02-05  Simon Josefsson  <simon@josefsson.org>
100335         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
100337 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
100339         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
100340         * lib/memmem.c [!defined _LIBC]: Include config.h.
100342 2007-02-04  Bruno Haible  <bruno@clisp.org>
100344         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
100345         warning message.
100347 2007-02-04  Bruno Haible  <bruno@clisp.org>
100349         New module mbstok_r.
100350         * modules/mbstok_r: New file.
100351         * lib/mbstok_r.c: New file.
100352         * lib/string_.h (strtok_r): Change argument names to match the
100353         comments. Add a conditional link warning.
100354         (mbstok_r): New declaration.
100355         * m4/mbstok_r.m4: New file.
100356         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
100357         GNULIB_MBSTOK_R.
100358         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
100359         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
100361 2007-02-04  Bruno Haible  <bruno@clisp.org>
100363         New module mbsspn.
100364         * modules/mbsspn: New file.
100365         * lib/mbsspn.c: New file.
100366         * lib/string_.h (strspn): Add a conditional link warning.
100367         (mbsspn): New declaration.
100368         * m4/mbsspn.m4: New file.
100369         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
100370         GNULIB_MBSSPN.
100371         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
100372         * MODULES.html.sh (Internationalization functions): Add mbsspn.
100374 2007-02-04  Bruno Haible  <bruno@clisp.org>
100376         New module mbspbrk.
100377         * modules/mbspbrk: New file.
100378         * lib/mbspbrk.c: New file.
100379         * lib/string_.h (strpbrk): Add a conditional link warning.
100380         (mbspbrk): New declaration.
100381         * m4/mbspbrk.m4: New file.
100382         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
100383         GNULIB_MBSPBRK.
100384         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
100385         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
100387 2007-02-04  Bruno Haible  <bruno@clisp.org>
100389         New module mbscspn.
100390         * modules/mbscspn: New file.
100391         * lib/mbscspn.c: New file.
100392         * lib/string_.h (strcspn): Add a conditional link warning.
100393         (mbscspn): New declaration.
100394         * m4/mbscspn.m4: New file.
100395         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
100396         GNULIB_MBSCSPN.
100397         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
100398         * MODULES.html.sh (Internationalization functions): Add mbscspn.
100400 2007-02-04  Bruno Haible  <bruno@clisp.org>
100402         New module mbscasestr, reduced goal of strcasestr.
100403         * modules/mbscasestr: New file.
100404         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
100405         (mbscasestr): Renamed from strcasestr.
100406         * lib/strcasestr.c: Don't include mbuiter.h.
100407         (strcasestr): Remove support for multibyte locales.
100408         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
100409         Change the conditional link warning.
100410         (mbscasestr): New declaration.
100411         * m4/mbscasestr.m4: New file.
100412         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
100413         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
100414         REPLACE_STRCASESTR.
100415         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
100416         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
100417         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
100418         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
100419         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
100420         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
100421         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
100422         (Depends-on): Remove mbuiter.
100423         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
100425 2007-02-04  Bruno Haible  <bruno@clisp.org>
100427         Simplify handling of strncasecmp.
100428         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
100429         the conditional link warning.
100430         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
100431         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
100432         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
100433         * modules/strcase (configure.ac): Don't invoke
100434         gl_STRING_MODULE_INDICATOR.
100435         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
100437 2007-02-04  Bruno Haible  <bruno@clisp.org>
100439         New module mbscasecmp, reduced goal of strcasecmp.
100440         * modules/mbscasecmp: New file.
100441         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
100442         (mbscasecmp): Renamed from strcasecmp.
100443         * lib/strcasecmp.c: Don't include mbuiter.h.
100444         (strcasecmp): Remove support for multibyte locales.
100445         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
100446         Change the conditional link warning.
100447         (mbscasecmp): New declaration.
100448         * m4/mbscasecmp.m4: New file.
100449         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
100450         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
100451         REPLACE_STRCASECMP.
100452         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
100453         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
100454         GNULIB_MBSCASECMP.
100455         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
100456         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
100457         * modules/strcase (Files): Remove m4/mbrtowc.m4.
100458         (Depends-on): Remove mbuiter.
100459         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
100461 2007-02-04  Bruno Haible  <bruno@clisp.org>
100463         New module mbsstr. Remove module strstr.
100464         * modules/mbsstr: New file.
100465         * modules/strstr: Remove file.
100466         * lib/mbsstr.c: Renamed from lib/strstr.c.
100467         (mbsstr): Renamed from strstr.
100468         * lib/string_.h (strstr): Remove declaration. Change the conditional
100469         link warning.
100470         (mbsstr): New declaration.
100471         * m4/mbsstr.m4: New file.
100472         * m4/strstr.m4: Remove file.
100473         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
100474         REPLACE_STRSTR.
100475         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
100476         Don't initialize GNULIB_STRSTR.
100477         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
100478         substitute GNULIB_STRSTR and REPLACE_STRSTR.
100479         * MODULES.html.sh (Internationalization functions): Add mbsstr.
100480         (Support for systems lacking ANSI C 89): Remove strstr.
100482 2007-02-04  Bruno Haible  <bruno@clisp.org>
100484         New module mbsrchr.
100485         * modules/mbsrchr: New file.
100486         * lib/mbsrchr.c: New file.
100487         * lib/string_.h (strrchr): Add a conditional link warning.
100488         (mbsrchr): New declaration.
100489         * m4/mbsrchr.m4: New file.
100490         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
100491         GNULIB_MBSRCHR.
100492         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
100493         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
100495 2007-02-04  Bruno Haible  <bruno@clisp.org>
100497         New module mbschr.
100498         * modules/mbschr: New file.
100499         * lib/mbschr.c: New file.
100500         * lib/string_.h (strchr): Add a conditional link warning.
100501         (mbschr): New declaration.
100502         * m4/mbschr.m4: New file.
100503         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
100504         GNULIB_MBSCHR.
100505         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
100506         * MODULES.html.sh (Internationalization functions): Add mbschr.
100508 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
100510         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
100512         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
100514 2007-02-04  Bruno Haible  <bruno@clisp.org>
100516         New module description section 'configure.ac-early'.
100517         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
100518         (func_get_autoconf_early_snippet): New function.
100519         (func_import, func_create_testdir): Use it. Remove special cases for
100520         modules 'extensions' and 'lock'.
100521         * modules/extensions (configure.ac-early): Require
100522         gl_USE_SYSTEM_EXTENSIONS.
100523         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
100525 2007-02-04  Bruno Haible  <bruno@clisp.org>
100527         Make use of gcj-4.3's -fsource and -ftarget option.
100528         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
100529         and if so try the options -fsource and -ftarget.
100530         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
100531         source_version, ftarget_option, target_version arguments.
100532         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
100533         (is_envjavac_oldgcj_14_14_usable): Renamed from
100534         is_envjavac_gcj_14_14_usable.
100535         (is_envjavac_oldgcj_14_13_usable): Renamed from
100536         is_envjavac_gcj_14_13_usable.
100537         (is_gcj_present): Update.
100538         (is_gcj_43, is_gcj43_usable): New functions.
100539         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
100540         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
100541         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
100542         try the options -fsource and -ftarget.
100544 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
100546         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
100547         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
100548         larger value.
100550 2007-02-03  Jim Meyering  <jim@meyering.net>
100552         Give tools a better chance to allocate space for very large buffers.
100553         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
100555         Make pwd and readlink work also when run with an unreadable parent dir
100556         on systems with openat support.
100557         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
100558         provided getcwd function, even when we have openat support.
100559         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
100561 2007-02-02  Bruno Haible  <bruno@clisp.org>
100563         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
100564         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
100565         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
100566         portability problems if one of these functions is only used on specific
100567         platforms.
100568         Reported by Paul Eggert.
100570 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
100572         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
100573         is causing more trouble than it's curing.
100574         * lib/regex_internal.h (__mempcpy): Remove.
100575         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
100576         (and make the code a tad smaller to boot).
100577         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
100579 2007-02-02  Jim Meyering  <jim@meyering.net>
100581         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
100582         section, not in the Makefile.am: one.
100584 2007-02-02  Eric Blake  <ebb9@byu.net>
100586         * lib/strchrnul.c: Always include config.h first.
100588         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
100589         gnulib strstr is not necessary here.
100591 2007-02-02  Simon Josefsson  <simon@josefsson.org>
100593         * m4/socklen.m4: Fix typo.
100595 2007-02-02  Eric Blake  <ebb9@byu.net>
100597         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
100598         * modules/netinet_in (Makefile.am): Likewise.
100600 2007-02-01  Bruno Haible  <bruno@clisp.org>
100602         * lib/string_.h (GL_LINK_WARNING): New macro.
100603         (strcasecmp, strstr, strcasestr): If provided by the system,
100604         conditionally define as a macro that leads to a warning instead of to
100605         an error.
100606         (strncasecmp): Conditionally define as a macro that leads to a warning.
100608 2007-02-01  Karl Berry  <karl@gnu.org>
100610         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
100612 2007-02-01  Bruno Haible  <bruno@clisp.org>
100614         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
100615         renamings.
100617 2007-02-01  Eric Blake  <ebb9@byu.net>
100619         * modules/regex (Depends-on): Revert dependence on mempcpy.
100620         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
100621         module's definition of mempcpy.
100622         Reported by Paul Eggert.
100624 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
100626         * lib/string_.h: If the gnulib module XYZ is not present, undefine
100627         the symbol XYZ before redefining it.  This fixes a problem with
100628         programs that don't use XYZ, when compiled on systems that define
100629         XYZ to something else.
100631 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
100633         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
100634         occurs when "mkdir -m foo" creates a setgid directory that is (1)
100635         writeable to group or other and (2) is intended to have a special
100636         mode bit that is set or cleared.  In such a case, the directory
100637         should be neither group- nor other-writeable until the special
100638         mode bits are right.
100640 2007-01-31  Eric Blake  <ebb9@byu.net>
100642         * modules/mountlist (Depends-on): Add strstr.
100644         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
100645         bug.
100646         * modules/string (Makefile.am): Remove redundant replacement.
100647         * modules/regex (Depends-on): Add mempcpy.
100649 2007-01-31  Bruno Haible  <bruno@clisp.org>
100651         New module description field 'Link'.
100652         * gnulib-tool (func_usage): Document --extract-link-directive.
100653         (sed_extract_prog): Recognize 'Link' directive.
100654         (func_get_link_directive): New function.
100655         (func_import): Show summary of link directives.
100656         Handle --extract-link-directive option.
100657         * modules/acl (Link): New section.
100658         * modules/clock-time (Link): New section.
100659         * modules/euidaccess (Link): New section.
100660         * modules/gettext (Link): New section.
100661         * modules/iconv (Link): New section.
100662         * modules/lock (Link): New section.
100663         * modules/nanosleep (Link): New section.
100664         * modules/readline (Link): New section.
100666 2007-01-27  Bruno Haible  <bruno@clisp.org>
100668         Enforce the use of gnulib modules for unportable <string.h> functions.
100669         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
100670         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
100671         (gl_HEADER_STRING_H_BODY): Require it.
100672         * lib/string_.h: If the gnulib module XYZ is not present, redefine
100673         the symbol XYZ to one that gives a link error.
100674         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
100675         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
100676         * modules/mempcpy (configure.ac): Likewise.
100677         * modules/memrchr (configure.ac): Likewise.
100678         * modules/stpcpy (configure.ac): Likewise.
100679         * modules/stpncpy (configure.ac): Likewise.
100680         * modules/strcase (configure.ac): Likewise.
100681         * modules/strcasestr (configure.ac): Likewise.
100682         * modules/strchrnul (configure.ac): Likewise.
100683         * modules/strdup (configure.ac): Likewise.
100684         * modules/strndup (configure.ac): Likewise.
100685         * modules/strnlen (configure.ac): Likewise.
100686         * modules/strpbrk (configure.ac): Likewise.
100687         * modules/strsep (configure.ac): Likewise.
100688         * modules/strstr (configure.ac): Likewise.
100689         * modules/strtok_r (configure.ac): Likewise.
100691 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
100693         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
100695 2007-01-30  Jim Meyering  <jim@meyering.net>
100697         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
100699 2007-01-29  Bruno Haible  <bruno@clisp.org>
100701         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
100702         * lib/execute.c: Likewise.
100703         * lib/pipe.c: Likewise.
100704         * lib/printf-args.h: Likewise.
100705         * lib/printf-args.c: Likewise.
100706         * lib/printf-parse.c: Likewise.
100707         * lib/vasnprintf.c: Likewise.
100709 2007-01-29  Eric Blake  <ebb9@byu.net>
100711         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
100712         declaration.
100714 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
100716         * lib/strptime.h (strptime): Use 'restrict' for args where
100717         POSIX requires this.
100718         * lib/strptime.c (strptime): Likewise.
100719         Change license notice from LGPL to GPL, since gnulib-tool will
100720         change this as needed.
100721         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
100722         defined.
100723         Include "strptime.h" first, to check interface.
100724         Do not #undef _LIBC and _NL_CURRENT.
100725         Do not include <stdlib.h>; no longer needed.
100726         Include "time_r.h" and declare ptime_locale_status
100727         only if _LIBC is not defined.
100728         (__P): Remove unused macro.
100729         (match_string): Bring back glibc version, but use it only if _LIBC
100730         is defined.
100731         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
100732         Remove unnecessary assertion and abort() call.
100733         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
100734         * m4/strptime.m4: Fix serial number comment.
100735         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
100736         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
100737         (Depends-on): Add time_r.
100739 2007-01-29  Bruno Haible  <bruno@clisp.org>
100741         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
100742         strptime.
100743         * modules/strptime (Depends-on): Add stdbool.
100744         * lib/strptime.h: Include <time.h> always. Add comments.
100746 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
100748         * modules/strptime: New file.
100749         * lib/strptime.h: New file.
100750         * lib/strptime.c: New file.
100751         * m4/strptime.m4: New file.
100753 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
100755         * MODULES.html.sh: New module mpsort.
100756         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
100758         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
100759         a circularity problem with HP-UX ia64 reported by Bob Proulx in
100760         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00394.html>.
100761         All uses changed.
100762         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
100763         All uses changed.
100764         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
100765         to _Restrict_.
100766         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
100767         the parameter matches the prototype.
100769 2007-01-28  Jim Meyering  <jim@meyering.net>
100771         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
100772         sys/time.h here, reverting that part of the previous patch:
100773         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
100775 2007-01-28  Bruno Haible  <bruno@clisp.org>
100777         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
100778         value of $(SYS_TIME_H).
100779         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
100780         remove it conditionally, too. [added by Jim Meyering]
100781         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
100782         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
100783         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
100784         GETTIMEOFDAY_REPLACEMENT to 1.
100786 2007-01-28  Bruno Haible  <bruno@clisp.org>
100788         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
100789         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
100790         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
100791         Set UNISTD_H instead of UNISTD_H2.
100792         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
100794 2007-01-28  Bruno Haible  <bruno@clisp.org>
100796         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
100797         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
100799 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100801         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
100802         (func_create_testdir): Ensure C locale for `grep' and `tr'
100803         character ranges.
100804         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
100805         ACLOCAL_AMFLAGS parsing state machine.
100807 2007-01-27  Bruno Haible  <bruno@clisp.org>
100809         * modules/unistr/base: Update.
100811 2007-01-27  Bruno Haible  <bruno@clisp.org>
100813         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
100814         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
100815         * modules/unistr/u32-mbtouc-unsafe: Renamed from
100816         modules/unistr/u32-mbtouc.
100817         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
100818         * lib/unistr.h: Update.
100819         * lib/linebreak.c: Update.
100820         * modules/unistr/u32-mbtouc: Renamed from
100821         modules/unistr/u32-mbtouc-safe.
100822         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
100823         * lib/unistr.h: Update.
100824         * lib/unistr/u32-to-u8.c: Update.
100825         * lib/unistr/u32-to-u16.c: Update.
100827 2007-01-27  Bruno Haible  <bruno@clisp.org>
100829         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
100830         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
100831         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
100832         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
100833         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
100834         * modules/unistr/u16-mbtouc-unsafe: Renamed from
100835         modules/unistr/u16-mbtouc.
100836         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
100837         * lib/unistr.h: Update.
100838         * lib/linebreak.c: Update.
100839         * modules/linebreak: Update.
100840         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
100841         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
100842         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
100843         * modules/unistr/u16-mbtouc: Renamed from
100844         modules/unistr/u16-mbtouc-safe.
100845         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
100846         * lib/unistr.h: Update.
100847         * lib/unistr/u16-to-u8.c: Update.
100848         * modules/unistr/u16-to-u8: Update.
100849         * lib/unistr/u16-to-u32.c: Update.
100850         * modules/unistr/u16-to-u32: Update.
100852 2007-01-27  Bruno Haible  <bruno@clisp.org>
100854         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
100855         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
100856         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
100857         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
100858         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
100859         * modules/unistr/u8-mbtouc-unsafe: Renamed from
100860         modules/unistr/u8-mbtouc.
100861         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
100862         * lib/unistr.h: Update.
100863         * lib/striconveh.c: Update.
100864         * modules/striconveh: Update.
100865         * lib/linebreak.c: Update.
100866         * modules/linebreak: Update.
100867         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
100868         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
100869         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
100870         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
100871         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
100872         * lib/unistr.h: Update.
100873         * lib/striconveh.c: Update.
100874         * modules/striconveh: Update.
100875         * lib/unistr/u8-to-u16.c: Update.
100876         * modules/unistr/u8-to-u16: Update.
100877         * lib/unistr/u8-to-u32.c: Update.
100878         * modules/unistr/u8-to-u32: Update.
100880 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100882         Sync from Libtool.
100883         * lib/argz.c: Do not include strings.h nor memory.h, include
100884         string.h unconditionally.  Patch by Simon Josefsson.
100886 2007-01-27  Bruno Haible  <bruno@clisp.org>
100888         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
100889         from gl_HEADER_STRING_H_BODY.
100890         (gl_HEADER_STRING_H_BODY): Require it.
100891         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
100892         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
100893         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
100894         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
100895         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
100896         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
100897         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
100898         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
100899         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
100900         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
100901         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
100902         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
100903         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
100904         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
100905         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
100907 2007-01-27  Bruno Haible  <bruno@clisp.org>
100909         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
100910         check_PROGRAMS into noinst_PROGRAMS.
100911         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
100912         check_PROGRAMS in this case.
100913         (func_import): Set for_test to false.
100914         (func_create_testdir): Set for_test to true.
100916 2007-01-27  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
100917             Bruno Haible  <bruno@clisp.org>
100919         * modules/strcasestr (Files): Remove lib/strcasestr.h.
100920         (Depends-on): Add string.
100921         (Includes): Use <string.h> instead of strcasestr.h.
100922         * modules/string (Makefile.am): Also substitute the value of
100923         REPLACE_STRCASESTR.
100924         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
100925         assume strcasestr is declared in <string.h> not <strings.h>. Also
100926         set REPLACE_STRCASESTR.
100927         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
100928         REPLACE_STRCASESTR.
100929         * lib/strcasestr.h: Remove file.
100930         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
100931         * lib/string_.h (strcasestr): New declaration.
100933 2007-01-27  Bruno Haible  <bruno@clisp.org>
100935         * lib/string_.h: Use 'extern'.
100937 2007-01-27  Jim Meyering  <jim@meyering.net>
100939         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
100940         of set-but-not-used local, "q".
100942         * lib/mempcpy.c: Include <config.h> before <string.h>.
100943         This fixes a compilation error on HP-UX, due to the system's
100944         "restrict"-using mempcpy prototype.
100946 2007-01-26  Bruno Haible  <bruno@clisp.org>
100948         Small optimization.
100949         * lib/javacomp.c: Include c-strstr.h.
100950          (is_envjavac_gcj): Use c_strstr instead of strstr.
100951         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
100953 2007-01-26  Bruno Haible  <bruno@clisp.org>
100955         * MODULES.html.sh (Unicode string functions): Add the new modules.
100957         * modules/uniconv/u32-strconv-to-locale: New file.
100958         * lib/uniconv/u32-strconv-to-locale.c: New file.
100960         * modules/uniconv/u16-strconv-to-locale: New file.
100961         * lib/uniconv/u16-strconv-to-locale.c: New file.
100963         * modules/uniconv/u8-strconv-to-locale: New file.
100964         * lib/uniconv/u8-strconv-to-locale.c: New file.
100966         * modules/uniconv/u32-strconv-from-locale: New file.
100967         * lib/uniconv/u32-strconv-from-locale.c: New file.
100969         * modules/uniconv/u16-strconv-from-locale: New file.
100970         * lib/uniconv/u16-strconv-from-locale.c: New file.
100972         * modules/uniconv/u8-strconv-from-locale: New file.
100973         * lib/uniconv/u8-strconv-from-locale.c: New file.
100975         * modules/uniconv/u32-strconv-to-enc: New file.
100976         * lib/uniconv/u32-strconv-to-enc.c: New file.
100977         * modules/uniconv/u32-strconv-to-enc-tests: New file.
100978         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
100980         * modules/uniconv/u16-strconv-to-enc: New file.
100981         * lib/uniconv/u16-strconv-to-enc.c: New file.
100982         * lib/uniconv/u-strconv-to-enc.h: New file.
100983         * modules/uniconv/u16-strconv-to-enc-tests: New file.
100984         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
100986         * modules/uniconv/u8-strconv-to-enc: New file.
100987         * lib/uniconv/u8-strconv-to-enc.c: New file.
100988         * modules/uniconv/u8-strconv-to-enc-tests: New file.
100989         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
100991         * modules/uniconv/u32-strconv-from-enc: New file.
100992         * lib/uniconv/u32-strconv-from-enc.c: New file.
100993         * modules/uniconv/u32-strconv-from-enc-tests: New file.
100994         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
100996         * modules/uniconv/u16-strconv-from-enc: New file.
100997         * lib/uniconv/u16-strconv-from-enc.c: New file.
100998         * modules/uniconv/u16-strconv-from-enc-tests: New file.
100999         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
101001         * modules/uniconv/u8-strconv-from-enc: New file.
101002         * lib/uniconv/u8-strconv-from-enc.c: New file.
101003         * lib/uniconv/u-strconv-from-enc.h: New file.
101004         * modules/uniconv/u8-strconv-from-enc-tests: New file.
101005         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
101007         * modules/uniconv/u32-conv-from-enc: New file.
101008         * lib/uniconv/u32-conv-from-enc.c: New file.
101009         * modules/uniconv/u32-conv-from-enc-tests: New file.
101010         * tests/uniconv/test-u32-conv-from-enc.c: New file.
101012         * modules/uniconv/u16-conv-from-enc: New file.
101013         * lib/uniconv/u16-conv-from-enc.c: New file.
101014         * lib/uniconv/u-conv-from-enc.h: New file.
101015         * modules/uniconv/u16-conv-from-enc-tests: New file.
101016         * tests/uniconv/test-u16-conv-from-enc.c: New file.
101018         * modules/uniconv/u8-conv-from-enc: New file.
101019         * lib/uniconv/u8-conv-from-enc.c: New file.
101020         * modules/uniconv/u8-conv-from-enc-tests: New file.
101021         * tests/uniconv/test-u8-conv-from-enc.c: New file.
101023         * modules/uniconv/base: New file.
101024         * lib/uniconv.h: New file.
101026 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
101028         * doc/gnulib-tool.texi (Initial import): Update to match current
101029         behavior with strdup module.
101030         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
101031         * lib/memmem.h: Remove; all uses removed.  This is now done
101032         by <string.h>.
101033         * lib/mempcpy.h: Likewise.
101034         * lib/memrchr.h: Likewise.
101035         * lib/stpcpy.h: Likewise.
101036         * lib/stpncpy.h: Likewise.
101037         * lib/strcase.h: Likewise.
101038         * lib/strchrnul.h: Likewise.
101039         * lib/strdup.h: Likewise.
101040         * lib/strndup.h: Likewise.
101041         * lib/strnlen.h: Likewise.
101042         * lib/strpbrk.h: Likewise.
101043         * lib/strsep.h: Likewise.
101044         * lib/strstr.h: Likewise.
101045         * lib/strtok_r.h: Likewise.
101046         * lib/string_.h: New file.
101047         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
101048         Rely on <string.h> instead.
101049         * lib/canon-host.c: Likewise.
101050         * lib/chdir-long.c: Likewise.
101051         * lib/concatpath.c: Likewise.
101052         * lib/exclude.c: Likewise.
101053         * lib/fchdir.c: Likewise.
101054         * lib/getaddrinfo.c: Likewise.
101055         * lib/getcwd.c: Likewise.
101056         * lib/getsubopt.c: Likewise.
101057         * lib/glob.c: Likewise.
101058         * lib/hard-locale.c: Likewise.
101059         * lib/iconvme.c: Likewise.
101060         * lib/javacomp.c: Likewise.
101061         * lib/mempcpy.c: Likewise.
101062         * lib/memrchr.c: Likewise.
101063         * lib/regex_internal.h: Likewise.
101064         * lib/stpncpy.c: Likewise.
101065         * lib/strcasecmp.c: Likewise.
101066         * lib/strchrnul.c: Likewise.
101067         * lib/strdup.c: Likewise.
101068         * lib/striconv.c: Likewise.
101069         * lib/striconveh.c: Likewise.
101070         * lib/striconveha.c: Likewise.
101071         * lib/strncasecmp.c: Likewise.
101072         * lib/strndup.c: Likewise.
101073         * lib/strnlen.c: Likewise.
101074         * lib/strsep.c: Likewise.
101075         * lib/strstr.c: Likewise.
101076         * lib/strtok_r.c: Likewise.
101077         * lib/userspec.c: Likewise.
101078         * lib/w32spawn.h: Likewise.
101079         * lib/xstrndup.c: Likewise.
101080         * lib/mountlist.c (strstr): Remove decl.
101081         * m4/string_h.m4: New file.
101082         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
101083         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
101084         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
101085         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
101086         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
101087         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
101088         Set REPLACE_STRCASECMP if necessary.
101089         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
101090         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
101091         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
101092         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
101093         HAVE_DECL_STRDUP if necessary.
101094         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
101095         since gl_FUNC_STRNDUP does that now.
101096         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
101097         Check for decl here...
101098         (gl_PREREQ_STRNLEN): ... not here.
101099         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
101100         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
101101         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
101102         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
101103         necessary.
101104         * modules/string: New file.
101105         * modules/memmem (Files): Remove special-purpose include file.
101106         (Depends-on): Add string.
101107         (Include): Include <string.h>, not the removed file.
101108         * modules/mempcpy: Likewise.
101109         * modules/memrchr: Likewise.
101110         * modules/stpcpy: Likewise.
101111         * modules/stpncpy: Likewise.
101112         * modules/strcase: Likewise.
101113         * modules/strchrnul: Likewise.
101114         * modules/strdup: Likewise.
101115         * modules/strndup: Likewise.
101116         * modules/strnlen: Likewise.
101117         * modules/strpbrk: Likewise.
101118         * modules/strsep: Likewise.
101119         * modules/strstr: Likewise.
101120         * modules/strtok_r: Likewise.
101121         * tests/test-dirname.c: Don't include "strdup.h", since
101122         <string.h> now suffices.
101123         * tests/test-memmem.c: Don't include "memmem.h", since
101124         <string.h> now suffices.
101126 2007-01-25  Bruno Haible  <bruno@clisp.org>
101128         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
101129         *resultp is 0.
101131         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
101132         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
101133         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
101134         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
101136         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
101137         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
101138         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
101139         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
101140         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
101141         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
101143 2007-01-24  Bruno Haible  <bruno@clisp.org>
101145         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
101146         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00279.html>.
101147         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
101148         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
101149         gl_FUNC_FTS_CORE.
101150         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
101151         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
101152         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
101153         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
101154         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
101155         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
101156         gl_FUNC_FCHOWNAT.
101157         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
101158         gl_FUNC_STRFTIME.
101159         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
101160         Reported by Ralf Wildenhues.
101162 2007-01-24  Bruno Haible  <bruno@clisp.org>
101164         Drop AC_REQUIRE calls that are redundant with the module dependencies.
101165         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
101166         gl_GETADDRINFO.
101167         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
101168         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
101169         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
101171 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
101173         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
101174         Don't use 'exit'; just return from 'main'.
101175         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
101177         * lib/fnmatch_.h: Readjust white space and comments to match
101178         glibc, to avoid spurious diffs.
101180 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
101182         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
101183         2004-12-01 change by Jakub Jelinek, since this code won't compile
101184         if !LIBC.  Problem reported by Bob Proulx.
101186 2007-01-23  Bruno Haible  <bruno@clisp.org>
101188         * lib/striconveh.c: Include c-strcaseeq.h.
101189         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
101190         * modules/striconveh (Depends-on): Add c-strcaseeq.
101192 2007-01-23  Bruno Haible  <bruno@clisp.org>
101194         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
101196         * modules/c-strcaseeq: New file.
101197         * lib/c-strcaseeq.h: New file.
101199         * modules/streq: New file.
101200         * lib/streq.h: New file.
101202 2007-01-23  Bruno Haible  <bruno@clisp.org>
101204         * modules/striconveha-tests: New file.
101205         * tests/test-striconveha.c: New file.
101207         * lib/striconveha.h: Include <stdbool.h>.
101208         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
101209         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
101210         (mem_iconveha_notranslit): Renamed from mem_iconveha.
101211         (mem_iconveha): New function.
101212         (str_iconveha_notranslit): Renamed from str_iconveha.
101213         (str_iconveha): New function.
101214         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
101215         c-strcase.
101217 2007-01-23  Bruno Haible  <bruno@clisp.org>
101219         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
101220         encodings without forgiving before trying any encoding with handler.
101221         (str_iconveha): Try all encodings without forgiving before trying any
101222         encoding with handler.
101224 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
101226         Import the following changes from libc.
101228         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
101230         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
101232         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
101234         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
101235         normal_bracket label.
101237         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
101239         [BZ #361]
101240         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
101241         to normal_bracket after fetching the next character.
101243 2007-01-22  Bruno Haible  <bruno@clisp.org>
101245         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
101246         argument.
101247         * lib/striconveh.c (iconv_carefully_1): New function.
101248         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
101249         argument.
101250         (str_cd_iconveh): Update.
101251         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
101252         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
101253         * tests/test-striconveh.c (MAGIC): New macro.
101254         (new_offsets): New function.
101255         (main): Test call with and without offsets.
101257 2007-01-22  Bruno Haible  <bruno@clisp.org>
101259         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
101260         * modules/sys_select (Makefile.am): Likewise.
101261         * modules/sys_socket (Makefile.am): Likewise.
101262         * modules/sys_time (Makefile.am): Likewise.
101264 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
101266         * modules/gettimeofday (License): Change from GPL to LGPL, since
101267         gettimeofday is a library function.
101269 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
101271         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
101273 2007-01-21  Bruno Haible  <bruno@clisp.org>
101275         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
101277 2007-01-21  Bruno Haible  <bruno@clisp.org>
101279         * modules/striconveha: New file.
101280         * lib/striconveha.h: New file.
101281         * lib/striconveha.c: New file.
101282         * MODULES.html.sh (Internationalization functions): Add striconveha.
101283         * lib/striconv.c (str_iconv): Optimize the case of an empty input
101284         string.
101285         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
101287 2007-01-21  Bruno Haible  <bruno@clisp.org>
101289         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
101290         * lib/striconveh.c (str_iconveh): Likewise.
101292 2007-01-21  Bruno Haible  <bruno@clisp.org>
101294         * lib/striconveh.h (mem_iconveh): New declaration.
101295         * lib/striconveh.c (mem_iconveh): New function.
101296         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
101298 2007-01-21  Bruno Haible  <bruno@clisp.org>
101300         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
101302         * lib/striconveh.h (mem_cd_iconveh): Change specification.
101303         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
101304         original result buffer.
101305         (str_cd_iconveh): Update.
101306         * tests/test-striconveh.c (main): Update.
101308         * lib/striconv.h (mem_cd_iconv): Change specification.
101309         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
101310         result buffer.
101311         (str_cd_iconv): Update.
101312         * tests/test-striconv.c (main): Update.
101314 2007-01-21  Bruno Haible  <bruno@clisp.org>
101316         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
101318 2007-01-20  Jim Meyering  <jim@meyering.net>
101320         * lib/userspec.c (parse_with_separator): If a user or group string
101321         starts with "+", skip the corresponding name-to-ID look-up, since
101322         such a look-up must fail: user and group names may not include "+".
101324 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
101326         * lib/poll.c: Include sys/time.h and time.h unconditionally,
101327         since we now assume the sys_time module.
101328         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
101329         check for sys/time.h; no longer needed.
101330         * modules/poll (Depends-on): Depend on sys_time.
101332 2007-01-18  Bruno Haible  <bruno@clisp.org>
101334         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
101335         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
101337         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
101338         gettimeofday.
101340         * tests/test-gettimeofday.c: Include <time.h>.
101341         (dummy): Remove variable.
101343         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
101344         gl_HEADER_SYS_TIME_H.
101345         (gl_HEADER_SYS_TIME_H): New macro.
101347         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
101348         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
101349         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
101350         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
101351         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
101352         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
101353         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
101354         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
101355         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
101356         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
101357         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
101359         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
101360         last change; it caused a compilation error when cross-compiling to
101361         Cygwin.
101363 2007-01-18  Jim Meyering  <jim@meyering.net>
101365         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
101366         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
101367         than the race-prone "test -d sys || mkdir sys".
101368         (configure.ac): Use AC_PROG_MKDIR_P.
101369         * modules/sys_select: Likewise.
101370         * modules/sys_socket: Likewise.
101371         * modules/sys_time: Likewise.
101373 2007-01-18  Eric Blake  <ebb9@byu.net>
101375         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
101376         replace gettimeofday.
101377         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
101378         name, to avoid infinite recursion.
101380 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
101382         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
101383         module sys_time.
101384         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
101385         assume timespec.h defines struct timeval.
101386         * lib/settime.c: Likewise.
101387         * lib/utimens.c: Likewise.
101388         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
101389         since we now assume the gettimeofday module.
101390         * lib/tempname.c (__gen_tempname): Likewise.
101391         * lib/gettimeofday.h: Remove.
101392         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
101393         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
101394         Include <time.h>, for 'time()'.
101395         (localtime_buffer_addr): Also use this workaround if
101396         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
101397         to simplify the uses.  All uses changed.
101398         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
101399         that #undef is inside {}, and 'const' follows type name consistently.
101400         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
101401         (gettimeofday): Do not use the maximum possible value for
101402         tv->tv_usec, since that might break usages other than ls.c.
101403         Instead, we'll leave ls.c alone.  This undoes today's patch
101404         by Bruno.  Add a compile-time warning for 1s-clock resolution;
101405         we've never observed the problem but might as well keep the
101406         canary.
101407         * lib/nanosleep.c: Include timespec.h first, for interface check.
101408         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
101409         now assume the sys_time module.
101410         * lib/tempname.c: Likewise.
101411         * lib/timespec.h: Likewise.
101412         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
101413         needed.
101414         * lib/strftime.c: Likewise.
101415         * lib/timespec.h: Likewise.
101416         * lib/posixtm.c: Include posixtm.h first, for interface check.
101417         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
101418         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
101419         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
101420         * lib/sys_time_.h: New file.
101421         * lib/timespec.h (struct timespec): Use long int, not long.
101422         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
101423         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
101424         Remove obsolescent call to AC_HEADER_TIME.
101425         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
101426         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
101427         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
101428         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
101429         Likewise.
101430         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
101431         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
101432         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
101433         into the sys_time module.  Check for gettimeofday just once.
101434         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
101435         for gettimeofday signature to just check the signature.  Merely
101436         compile it, since linking doesn't test signature.  Improve test for
101437         whether gettimeofday.o is actually needed.
101438         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
101439         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
101440         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
101441         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
101442         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
101443         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
101444         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
101445         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
101446         than worrying about sys/time.h.
101447         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
101448         Don't bother worrying about TIME_WITH_SYS_TIME.
101449         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
101450         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
101451         * m4/sys_time_h.m4: New file.
101452         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
101453         Don't include sys/time.h.  Return from main rather than exiting.
101454         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
101455         all uses changed.
101456         * modules/gethrxtime (Depends-on): Add sys_time.
101457         * modules/gettime (Depends-on): Likewise.
101458         * modules/gettimeofday (Depends-on): Likewise.
101459         * modules/nanosleep (Depends-on): Likewise.
101460         * modules/settime (Depends-on): Likewise.
101461         * modules/tempname (Depends-on): Likewise.
101462         * modules/utimens (Depends-on): Likewise.
101463         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
101464         (Include): Change back to <sys/time.h>.
101465         (Maintainer): Add self.
101466         * modules/sys_time: New file.
101467         * modules/tempname (Depends-on): Add gettimeofday.
101468         * tests/test-gettimeofday.c: Include <sys/time.h>
101469         rather than gettimeofday.h.
101471 2007-01-17  Bruno Haible  <bruno@clisp.org>
101473         * gnulib-tool (func_get_license): Revert last patch. Instead, let
101474         the license default to GPL.
101475         (func_create_testdir): Don't complain if a module is LGPL and its
101476         tests module depends on GPLed modules.
101478 2007-01-17  Bruno Haible  <bruno@clisp.org>
101480         * lib/gettimeofday.c (gettimeofday): Add code for the case
101481         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
101482         maximum possible value for tv->tv_usec, rather than the minimum one.
101484 2005-10-08  Martin Lambers  <marlam@marlam.de>
101485 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
101486 2007-01-16  Bruno Haible  <bruno@clisp.org>
101488         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
101489         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
101490         gl_FUNC_GETTIMEOFDAY.
101491         (Include): Add gettimeofday.h.
101492         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
101493         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
101494         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
101495         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
101496         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
101497         * lib/gettimeofday.h: New file.
101498         * lib/gettimeofday.c: Include <sys/timeb.h>.
101499         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
101500         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
101501         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
101502         fall back on time().
101504         * tests/test-gettimeofday.c: New file.
101505         * modules/gettimeofday-tests: New file.
101507 2007-01-16  Eric Blake  <ebb9@byu.net>
101509         * modules/fnmatch (Depends-on): Depend on wchar.
101510         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
101511         * m4/fnmatch.m4: Likewise.
101512         * modules/mbchar (Makefile.am): Assume <wchar.h>.
101513         * m4/mbchar.m4: Likewise.
101514         * modules/mbswidth (Depends-on): Depend on wchar.
101515         * lib/mbswidth.c: Assume <wchar.h>.
101516         * m4/mbswidth.m4: Likewise.
101517         * modules/quotearg (Depends-on): Depend on wchar.
101518         * lib/quotearg.c: Assume <wchar.h>.
101519         * m4/quotearg.m4: Likewise.
101520         * modules/regex (Depends-on): Depend on wchar.
101521         * lib/regex_internal.h: Assume <wchar.h>.
101522         * m4/regex.m4: Likewise.
101523         * modules/stdint (Depends-on): Depend on wchar.
101524         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
101525         * m4/stdint.m4: Likewise.
101526         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
101527         * modules/strftime (Depends-on): Depend on wchar.
101528         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
101529         * modules/strtol (Depends-on): Depend on wchar.
101530         * lib/strtol.c: Assume <wchar.h>.
101531         * modules/wcwidth (Depends-on): Depend on wchar.
101532         * lib/wcwidth.h: Assume <wchar.h>.
101533         * m4/wcwidth.m4: Likewise.
101535 2007-01-16  Bruno Haible  <bruno@clisp.org>
101537         * modules/csharpexec-script: New, created from...
101538         * modules/csharpexec: ... this.
101540 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
101542         * modules/javaexec-script: New, created from...
101543         * modules/javaexec: ... this.
101545 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
101547         * modules/poll (Dependencies): Add sys_select.
101549 2007-01-15  Jim Meyering  <jim@meyering.net>
101551         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
101552         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
101553         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
101554         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
101556 2007-01-15  Bruno Haible  <bruno@clisp.org>
101558         * modules/striconveh: New file.
101559         * lib/striconveh.h: New file.
101560         * lib/striconveh.c: New file.
101561         * MODULES.html.sh (Internationalization functions): Add striconveh.
101563         * modules/striconveh-tests: New file.
101564         * tests/test-striconveh.c: New file.
101566 2007-01-15  Bruno Haible  <bruno@clisp.org>
101568         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
101569         not from GNU libiconv or GNU libc.
101571 2007-01-15  Bruno Haible  <bruno@clisp.org>
101573         * doc/gnulib-intro.texi (Copyright): Explain the different license
101574         terms for module descriptions, autoconf macros, tests, documentation.
101576 2007-01-14  Bruno Haible  <bruno@clisp.org>
101578         * modules/striconv-tests: New file.
101579         * tests/test-striconv.c: New file.
101581 2007-01-14  Bruno Haible  <bruno@clisp.org>
101583         * modules/iconv-tests: New file.
101584         * tests/test-iconv.c: New file.
101586 2007-01-14  Bruno Haible  <bruno@clisp.org>
101588         * gnulib-tool (func_get_license): For test modules, use the license of
101589         the main module.
101591 2007-01-14  Bruno Haible  <bruno@clisp.org>
101593         * modules/iconv (Include): Clarify that <iconv.h> can only be included
101594         if iconv is found to exist.
101596 2007-01-14  Bruno Haible  <bruno@clisp.org>
101598         * modules/c-ctype-tests: New file.
101599         * tests/test-c-ctype.c: New file.
101601 2007-01-14  Bruno Haible  <bruno@clisp.org>
101603         * modules/binary-io-tests: New file.
101604         * tests/test-binary-io.sh: New file.
101605         * tests/test-binary-io.c: New file.
101607 2007-01-14  Bruno Haible  <bruno@clisp.org>
101609         * modules/array-oset-tests: New file.
101610         * tests/test-array_oset.c: New file.
101612 2007-01-14  Bruno Haible  <bruno@clisp.org>
101614         * modules/array-list-tests: New file.
101615         * tests/test-array_list.c: New file.
101617 2007-01-14  Bruno Haible  <bruno@clisp.org>
101619         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
101620         and make.
101621         Reported by Simon Josefsson in
101622         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00139.html>
101624 2007-01-14  Bruno Haible  <bruno@clisp.org>
101626         * modules/allocsa-tests: New file.
101627         * tests/test-allocsa.c: New file.
101629 2007-01-14  Bruno Haible  <bruno@clisp.org>
101631         * modules/fchdir (Depends-on): Add absolute-header.
101632         * modules/unistd (Depends-on): Likewise.
101634 2006-12-30  Bruno Haible  <bruno@clisp.org>
101636         * modules/fchdir: New file.
101637         * modules/unistd (Files): Add lib/unistd_.h.
101638         (Makefile.am): Generate unistd.h from unistd_.h.
101639         * lib/fchdir.c: New file.
101640         * lib/dirent_.h: New file.
101641         * lib/unistd_.h: New file.
101642         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
101643         * m4/fchdir.m4: New file.
101644         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
101645         (gl_HEADER_UNISTD): Invoke it.
101646         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
101647         function.
101648         * lib/backupfile.c (opendir, closedir): Undefine.
101649         * lib/chown.c (open, close): Undefine.
101650         * lib/clean-temp.c (open, close): Undefine.
101651         * lib/copy-file.c (open, close): Undefine.
101652         * lib/execute.c (open, close): Undefine.
101653         * lib/fsusage.c (open, close): Undefine.
101654         * lib/gc-gnulib.c (open, close): Undefine.
101655         * lib/getcwd.c (opendir, closedir): Undefine.
101656         * lib/glob.c (opendir, closedir): Undefine.
101657         * lib/javacomp.c (open, close): Undefine.
101658         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
101659         * lib/openat-proc.c (open, close): Undefine.
101660         * lib/pagealign_alloc.c (open, close): Undefine.
101661         * lib/pipe.c (open, close): Undefine.
101662         * lib/progreloc.c (open, close): Undefine.
101663         * lib/savedir.c (opendir, closedir): Undefine.
101664         * lib/utime.c (open, close): Undefine.
101665         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
101667 2007-01-10  Bruno Haible  <bruno@clisp.org>
101669         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
101671 2007-01-12  Eric Blake  <ebb9@byu.net>
101673         Provide a robust <wchar.h>.  Further simplifications are now
101674         possible in other modules, but not included here.
101675         * modules/wchar: New module.
101676         * m4/wchar.m4: New file.
101677         * lib/wchar_.h: Likewise.
101678         * modules/mbchar (Depends-on): Depend on wchar, as the first use
101679         of the new module.
101680         * MODULES.html.sh (Extended multibyte and wide character utilities):
101681         New section.
101683 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
101685         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
101686         to a reasonable default for memory allocation.
101687         (xreadlink): Don't allocate a huge buffer, to work around a buggy
101688         file system that reports garbage st_size values for symlinks.
101689         Problem reported by Liyang Hu.
101691 2007-01-11  Simon Josefsson  <simon@josefsson.org>
101693         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
101694         Emacs .#* auto-save files).
101696 2007-01-11  Bruno Haible  <bruno@clisp.org>
101698         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
101699         directory.
101701 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
101703         Use @...@ consistently in lib/wctype_.h.
101704         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
101705         on it being set to 1 or 0.
101706         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
101707         go back to AC_SUBSTing it.
101708         * modules/wctype (Makefile.am): Undo previous change.
101710 2007-01-10  Eric Blake  <ebb9@byu.net>
101712         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
101713         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
101714         * modules/wctype (Makefile.am): Likewise.
101715         Reported by Chris McGuire.
101717 2007-01-10  Jim Meyering  <jim@meyering.net>
101719         fts.c: a small readability/maintainability improvement
101720         * lib/fts.c (fts_read): Make this code slightly more readable and
101721         maintainable by hoisting the "sp->fts_cur = p" assignments to
101722         immediately follow the statements that set P.  Derived from
101723         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
101725 2007-01-10  Eric Blake  <ebb9@byu.net>
101727         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
101728         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
101729         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
101730         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
101731         Reported by Chris McGuire.
101733 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101735         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
101736         in sed script.
101738 2007-01-09  Bruno Haible  <bruno@clisp.org>
101740         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
101741         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
101742         variables.
101743         (func_module): Use them.
101745 2007-01-09  Bruno Haible  <bruno@clisp.org>
101747         * modules/unistr/base: New file.
101748         * lib/unistr.h: New file.
101750         * modules/unistr/u8-to-u16: New file.
101751         * lib/unistr/u8-to-u16.c: New file.
101753         * modules/unistr/u8-to-u32: New file.
101754         * lib/unistr/u8-to-u32.c: New file.
101756         * modules/unistr/u16-to-u8: New file.
101757         * lib/unistr/u16-to-u8.c: New file.
101759         * modules/unistr/u16-to-u32: New file.
101760         * lib/unistr/u16-to-u32.c: New file.
101762         * modules/unistr/u32-to-u8: New file.
101763         * lib/unistr/u32-to-u8.c: New file.
101765         * modules/unistr/u32-to-u16: New file.
101766         * lib/unistr/u32-to-u16.c: New file.
101768         * modules/unistr/u8-check: New file.
101769         * modules/unistr/u16-check: New file.
101770         * modules/unistr/u32-check: New file.
101771         * lib/unistr/u8-check.c: New file.
101772         * lib/unistr/u16-check.c: New file.
101773         * lib/unistr/u32-check.c: New file.
101775         * modules/unistr/u8-chr: New file.
101776         * modules/unistr/u16-chr: New file.
101777         * modules/unistr/u32-chr: New file.
101778         * lib/unistr/u8-chr.c: New file.
101779         * lib/unistr/u16-chr.c: New file.
101780         * lib/unistr/u32-chr.c: New file.
101782         * modules/unistr/u8-cmp: New file.
101783         * modules/unistr/u16-cmp: New file.
101784         * modules/unistr/u32-cmp: New file.
101785         * lib/unistr/u8-cmp.c: New file.
101786         * lib/unistr/u16-cmp.c: New file.
101787         * lib/unistr/u32-cmp.c: New file.
101789         * modules/unistr/u8-cpy: New file.
101790         * modules/unistr/u16-cpy: New file.
101791         * modules/unistr/u32-cpy: New file.
101792         * lib/unistr/u8-cpy.c: New file.
101793         * lib/unistr/u16-cpy.c: New file.
101794         * lib/unistr/u32-cpy.c: New file.
101795         * lib/unistr/u-cpy.h: New file.
101797         * modules/unistr/u8-cpy-alloc: New file.
101798         * modules/unistr/u16-cpy-alloc: New file.
101799         * modules/unistr/u32-cpy-alloc: New file.
101800         * lib/unistr/u8-cpy-alloc.c: New file.
101801         * lib/unistr/u16-cpy-alloc.c: New file.
101802         * lib/unistr/u32-cpy-alloc.c: New file.
101803         * lib/unistr/u-cpy-alloc.h: New file.
101805         * modules/unistr/u8-endswith: New file.
101806         * modules/unistr/u16-endswith: New file.
101807         * modules/unistr/u32-endswith: New file.
101808         * lib/unistr/u8-endswith.c: New file.
101809         * lib/unistr/u16-endswith.c: New file.
101810         * lib/unistr/u32-endswith.c: New file.
101811         * lib/unistr/u-endswith.h: New file.
101813         * modules/unistr/u8-mblen: New file.
101814         * modules/unistr/u16-mblen: New file.
101815         * modules/unistr/u32-mblen: New file.
101816         * lib/unistr/u8-mblen.c: New file.
101817         * lib/unistr/u16-mblen.c: New file.
101818         * lib/unistr/u32-mblen.c: New file.
101820         * modules/unistr/u8-mbtouc: New file.
101821         * modules/unistr/u16-mbtouc: New file.
101822         * modules/unistr/u32-mbtouc: New file.
101823         * lib/unistr/u8-mbtouc.c: New file.
101824         * lib/unistr/u16-mbtouc.c: New file.
101825         * lib/unistr/u32-mbtouc.c: New file.
101827         * modules/unistr/u8-mbtouc-safe: New file.
101828         * modules/unistr/u16-mbtouc-safe: New file.
101829         * modules/unistr/u32-mbtouc-safe: New file.
101830         * lib/unistr/u8-mbtouc-safe.c: New file.
101831         * lib/unistr/u16-mbtouc-safe.c: New file.
101832         * lib/unistr/u32-mbtouc-safe.c: New file.
101834         * modules/unistr/u8-move: New file.
101835         * modules/unistr/u16-move: New file.
101836         * modules/unistr/u32-move: New file.
101837         * lib/unistr/u8-move.c: New file.
101838         * lib/unistr/u16-move.c: New file.
101839         * lib/unistr/u32-move.c: New file.
101840         * lib/unistr/u-move.h: New file.
101842         * modules/unistr/u8-next: New file.
101843         * modules/unistr/u16-next: New file.
101844         * modules/unistr/u32-next: New file.
101845         * lib/unistr/u8-next.c: New file.
101846         * lib/unistr/u16-next.c: New file.
101847         * lib/unistr/u32-next.c: New file.
101849         * modules/unistr/u8-prev: New file.
101850         * modules/unistr/u16-prev: New file.
101851         * modules/unistr/u32-prev: New file.
101852         * lib/unistr/u8-prev.c: New file.
101853         * lib/unistr/u16-prev.c: New file.
101854         * lib/unistr/u32-prev.c: New file.
101856         * modules/unistr/u8-set: New file.
101857         * modules/unistr/u16-set: New file.
101858         * modules/unistr/u32-set: New file.
101859         * lib/unistr/u8-set.c: New file.
101860         * lib/unistr/u16-set.c: New file.
101861         * lib/unistr/u32-set.c: New file.
101862         * lib/unistr/u-set.h: New file.
101864         * modules/unistr/u8-startswith: New file.
101865         * modules/unistr/u16-startswith: New file.
101866         * modules/unistr/u32-startswith: New file.
101867         * lib/unistr/u8-startswith.c: New file.
101868         * lib/unistr/u16-startswith.c: New file.
101869         * lib/unistr/u32-startswith.c: New file.
101870         * lib/unistr/u-startswith.h: New file.
101872         * modules/unistr/u8-stpcpy: New file.
101873         * modules/unistr/u16-stpcpy: New file.
101874         * modules/unistr/u32-stpcpy: New file.
101875         * lib/unistr/u8-stpcpy.c: New file.
101876         * lib/unistr/u16-stpcpy.c: New file.
101877         * lib/unistr/u32-stpcpy.c: New file.
101878         * lib/unistr/u-stpcpy.h: New file.
101880         * modules/unistr/u8-stpncpy: New file.
101881         * modules/unistr/u16-stpncpy: New file.
101882         * modules/unistr/u32-stpncpy: New file.
101883         * lib/unistr/u8-stpncpy.c: New file.
101884         * lib/unistr/u16-stpncpy.c: New file.
101885         * lib/unistr/u32-stpncpy.c: New file.
101886         * lib/unistr/u-stpncpy.h: New file.
101888         * modules/unistr/u8-strcat: New file.
101889         * modules/unistr/u16-strcat: New file.
101890         * modules/unistr/u32-strcat: New file.
101891         * lib/unistr/u8-strcat.c: New file.
101892         * lib/unistr/u16-strcat.c: New file.
101893         * lib/unistr/u32-strcat.c: New file.
101894         * lib/unistr/u-strcat.h: New file.
101896         * modules/unistr/u8-strchr: New file.
101897         * modules/unistr/u16-strchr: New file.
101898         * modules/unistr/u32-strchr: New file.
101899         * lib/unistr/u8-strchr.c: New file.
101900         * lib/unistr/u16-strchr.c: New file.
101901         * lib/unistr/u32-strchr.c: New file.
101903         * modules/unistr/u8-strcmp: New file.
101904         * modules/unistr/u16-strcmp: New file.
101905         * modules/unistr/u32-strcmp: New file.
101906         * lib/unistr/u8-strcmp.c: New file.
101907         * lib/unistr/u16-strcmp.c: New file.
101908         * lib/unistr/u32-strcmp.c: New file.
101910         * modules/unistr/u8-strcpy: New file.
101911         * modules/unistr/u16-strcpy: New file.
101912         * modules/unistr/u32-strcpy: New file.
101913         * lib/unistr/u8-strcpy.c: New file.
101914         * lib/unistr/u16-strcpy.c: New file.
101915         * lib/unistr/u32-strcpy.c: New file.
101916         * lib/unistr/u-strcpy.h: New file.
101918         * modules/unistr/u8-strcspn: New file.
101919         * modules/unistr/u16-strcspn: New file.
101920         * modules/unistr/u32-strcspn: New file.
101921         * lib/unistr/u8-strcspn.c: New file.
101922         * lib/unistr/u16-strcspn.c: New file.
101923         * lib/unistr/u32-strcspn.c: New file.
101924         * lib/unistr/u-strcspn.h: New file.
101926         * modules/unistr/u8-strdup: New file.
101927         * modules/unistr/u16-strdup: New file.
101928         * modules/unistr/u32-strdup: New file.
101929         * lib/unistr/u8-strdup.c: New file.
101930         * lib/unistr/u16-strdup.c: New file.
101931         * lib/unistr/u32-strdup.c: New file.
101932         * lib/unistr/u-strdup.h: New file.
101934         * modules/unistr/u8-strlen: New file.
101935         * modules/unistr/u16-strlen: New file.
101936         * modules/unistr/u32-strlen: New file.
101937         * lib/unistr/u8-strlen.c: New file.
101938         * lib/unistr/u16-strlen.c: New file.
101939         * lib/unistr/u32-strlen.c: New file.
101940         * lib/unistr/u-strlen.h: New file.
101942         * modules/unistr/u8-strmblen: New file.
101943         * modules/unistr/u16-strmblen: New file.
101944         * modules/unistr/u32-strmblen: New file.
101945         * lib/unistr/u8-strmblen.c: New file.
101946         * lib/unistr/u16-strmblen.c: New file.
101947         * lib/unistr/u32-strmblen.c: New file.
101949         * modules/unistr/u8-strmbtouc: New file.
101950         * modules/unistr/u16-strmbtouc: New file.
101951         * modules/unistr/u32-strmbtouc: New file.
101952         * lib/unistr/u8-strmbtouc.c: New file.
101953         * lib/unistr/u16-strmbtouc.c: New file.
101954         * lib/unistr/u32-strmbtouc.c: New file.
101956         * modules/unistr/u8-strncat: New file.
101957         * modules/unistr/u16-strncat: New file.
101958         * modules/unistr/u32-strncat: New file.
101959         * lib/unistr/u8-strncat.c: New file.
101960         * lib/unistr/u16-strncat.c: New file.
101961         * lib/unistr/u32-strncat.c: New file.
101962         * lib/unistr/u-strncat.h: New file.
101964         * modules/unistr/u8-strncmp: New file.
101965         * modules/unistr/u16-strncmp: New file.
101966         * modules/unistr/u32-strncmp: New file.
101967         * lib/unistr/u8-strncmp.c: New file.
101968         * lib/unistr/u16-strncmp.c: New file.
101969         * lib/unistr/u32-strncmp.c: New file.
101971         * modules/unistr/u8-strncpy: New file.
101972         * modules/unistr/u16-strncpy: New file.
101973         * modules/unistr/u32-strncpy: New file.
101974         * lib/unistr/u8-strncpy.c: New file.
101975         * lib/unistr/u16-strncpy.c: New file.
101976         * lib/unistr/u32-strncpy.c: New file.
101977         * lib/unistr/u-strncpy.h: New file.
101979         * modules/unistr/u8-strnlen: New file.
101980         * modules/unistr/u16-strnlen: New file.
101981         * modules/unistr/u32-strnlen: New file.
101982         * lib/unistr/u8-strnlen.c: New file.
101983         * lib/unistr/u16-strnlen.c: New file.
101984         * lib/unistr/u32-strnlen.c: New file.
101985         * lib/unistr/u-strnlen.h: New file.
101987         * modules/unistr/u8-strpbrk: New file.
101988         * modules/unistr/u16-strpbrk: New file.
101989         * modules/unistr/u32-strpbrk: New file.
101990         * lib/unistr/u8-strpbrk.c: New file.
101991         * lib/unistr/u16-strpbrk.c: New file.
101992         * lib/unistr/u32-strpbrk.c: New file.
101993         * lib/unistr/u-strpbrk.h: New file.
101995         * modules/unistr/u8-strrchr: New file.
101996         * modules/unistr/u16-strrchr: New file.
101997         * modules/unistr/u32-strrchr: New file.
101998         * lib/unistr/u8-strrchr.c: New file.
101999         * lib/unistr/u16-strrchr.c: New file.
102000         * lib/unistr/u32-strrchr.c: New file.
102002         * modules/unistr/u8-strspn: New file.
102003         * modules/unistr/u16-strspn: New file.
102004         * modules/unistr/u32-strspn: New file.
102005         * lib/unistr/u8-strspn.c: New file.
102006         * lib/unistr/u16-strspn.c: New file.
102007         * lib/unistr/u32-strspn.c: New file.
102008         * lib/unistr/u-strspn.h: New file.
102010         * modules/unistr/u8-strstr: New file.
102011         * modules/unistr/u16-strstr: New file.
102012         * modules/unistr/u32-strstr: New file.
102013         * lib/unistr/u8-strstr.c: New file.
102014         * lib/unistr/u16-strstr.c: New file.
102015         * lib/unistr/u32-strstr.c: New file.
102016         * lib/unistr/u-strstr.h: New file.
102018         * modules/unistr/u8-strtok: New file.
102019         * modules/unistr/u16-strtok: New file.
102020         * modules/unistr/u32-strtok: New file.
102021         * lib/unistr/u8-strtok.c: New file.
102022         * lib/unistr/u16-strtok.c: New file.
102023         * lib/unistr/u32-strtok.c: New file.
102024         * lib/unistr/u-strtok.h: New file.
102026         * modules/unistr/u8-uctomb: New file.
102027         * modules/unistr/u16-uctomb: New file.
102028         * modules/unistr/u32-uctomb: New file.
102029         * lib/unistr/u8-uctomb.c: New file.
102030         * lib/unistr/u16-uctomb.c: New file.
102031         * lib/unistr/u32-uctomb.c: New file.
102033         * MODULES.html.sh (Unicode string functions): Add the new modules.
102035 2007-01-08  Bruno Haible  <bruno@clisp.org>
102037         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
102038         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
102039         subdirectories.
102041 2007-01-08  Karl Berry  <karl@gnu.org>
102043         * doc/error.texi: mention that main() fns must set program_name
102044         when progname is used.
102046 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
102048         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
102049         WCTYPE_H is empty, for the benefit of builds from non-distclean
102050         directories.  Problem reported by Eric Blake in
102051         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00157.html>.
102053 2007-01-08  Bruno Haible  <bruno@clisp.org>
102055         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
102056         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
102057         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
102058         PROVIDE_CANONICALIZE_FILENAME_MODE.
102059         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
102061 2007-01-08  Bruno Haible  <bruno@clisp.org>
102063         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
102064         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
102065         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
102066         * lib/fts.c: Likewise.
102067         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
102069 2006-12-25  Bruno Haible  <bruno@clisp.org>
102071         * modules/utf8-ucs4-safe: New file.
102072         * lib/utf8-ucs4-safe.h: New file.
102073         * lib/unistr/utf8-ucs4-safe.c: New file.
102075         * modules/utf16-ucs4-safe: New file.
102076         * lib/utf16-ucs4-safe.h: New file.
102077         * lib/unistr/utf16-ucs4-safe.c: New file.
102079         * MODULES.html.sh (Unicode string functions): Add the new modules.
102081 2007-01-08  Bruno Haible  <bruno@clisp.org>
102083         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
102084         (Depends-on): Add unitypes.
102085         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
102086         (u8_mbtouc_aux): Move out to separate file.
102087         (u8_mbtouc): Use ucs4_t, uint8_t types.
102088         * lib/unistr/utf8-ucs4.c: New file.
102090         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
102091         (Depends-on): Add unitypes.
102092         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
102093         (u16_mbtouc_aux): Move out to separate file.
102094         (u16_mbtouc): Use ucs4_t, uint16_t types.
102095         * lib/unistr/utf16-ucs4.c: New file.
102097         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
102098         (Depends-on): Add unitypes.
102099         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
102100         (u8_uctomb_aux): Move out to separate file.
102101         (u8_uctomb): Use ucs4_t, uint8_t types.
102102         * lib/unistr/ucs4-utf8.c: New file.
102104         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
102105         (Depends-on): Add unitypes.
102106         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
102107         (u16_uctomb_aux): Move out to separate file.
102108         (u16_uctomb): Use ucs4_t, uint16_t types.
102109         * lib/unistr/ucs4-utf16.c: New file.
102111 2006-12-25  Bruno Haible  <bruno@clisp.org>
102113         * modules/unitypes: New file.
102114         * lib/unitypes.h: New file.
102115         * MODULES.html.sh (func_all_modules): New section "Unicode string
102116         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
102117         this section. Add unitypes.
102119 2007-01-08  Bruno Haible  <bruno@clisp.org>
102121         Avoid variable names that conflict with those from libtool.
102122         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
102123         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
102124         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
102125         library_names_spec to acl_library_names_spec, hardcode_* to
102126         acl_hardcode_*.
102127         Reported by Ralf Wildenhues.
102129 2007-01-08  Bruno Haible  <bruno@clisp.org>
102131         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
102132         definition.
102133         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
102134         definition.
102135         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
102136         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
102137         definition.
102138         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
102139         definition.
102140         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
102141         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
102142         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
102143         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
102144         definition.
102145         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
102146         definition.
102147         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
102148         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
102149         GC_USE_<algorithm>.
102150         * lib/gc-libgcrypt.c: Likewise.
102151         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
102152         * modules/gc-arctwo (configure.ac): Likewise.
102153         * modules/gc-des (configure.ac): Likewise.
102154         * modules/gc-hmac-md5 (configure.ac): Likewise.
102155         * modules/gc-hmac-sha1 (configure.ac): Likewise.
102156         * modules/gc-md2 (configure.ac): Likewise.
102157         * modules/gc-md4 (configure.ac): Likewise.
102158         * modules/gc-md5 (configure.ac): Likewise.
102159         * modules/gc-random (configure.ac): Likewise.
102160         * modules/gc-rijndael (configure.ac): Likewise.
102161         * modules/gc-sha1 (configure.ac): Likewise.
102163 2007-01-08  Bruno Haible  <bruno@clisp.org>
102165         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
102166         macro definition.
102167         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
102168         definition.
102169         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
102170         definition.
102171         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
102172         * modules/fcntl-safer (configure.ac): Likewise.
102173         * modules/fopen-safer (configure.ac): Likewise.
102174         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
102175         GNULIB_FWRITEERROR macro definition.
102177 2007-01-08  Bruno Haible  <bruno@clisp.org>
102179         * m4/gnulib-common.m4: New file.
102180         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
102181         (func_get_filelist): Add m4/gnulib-common.m4.
102183 2007-01-08  Bruno Haible  <bruno@clisp.org>
102185         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
102186         command.
102188 2007-01-08  Jim Meyering  <jim@meyering.net>
102190         Use a more robust test for a "can't happen" condition.
102191         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
102192         narrowed the st_size value.  Presuming the "can't happen" condition
102193         is true, that narrowing could conceivably convert an invalid st_size
102194         value into a valid one.  Instead, use a change based on Matthew
102195         Woehlke's original patch.
102197         Slight readability improvement: use an assert-like macro
102198         in place of literal "abort ()" uses.
102199         * lib/fts.c (fts_assert): Define.
102200         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
102201         Use this macro instead of a bare 'abort'.
102203 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
102205         Don't worry about using IRIX 5.3's wctype.h broken definitions;
102206         simply work around them.
102207         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
102208         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
102209         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
102210         declaring.
102211         Don't bother to define as macros, since the standard doesn't require it.
102212         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
102213         longer worry about IRIX 5.3.
102214         (HAVE_WCTYPE_CTMP_BUG): Remove.
102216 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
102218         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
102219         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
102220         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
102221         Problems reported by Georg Schwarz for IRIX 5.3.
102223         * gnulib-tool (autoconf_minversion): Take the maximum version number
102224         found, not the minimum.  Problem reported by James Youngman.
102226 2007-01-03  Karl Berry  <karl@gnu.org>
102228         * doc/error.texi: new file, explaining interaction with progname.
102229         * doc/gnulib.texi: include it.  Update copyright.
102231 2007-01-03  Simon Josefsson  <simon@josefsson.org>
102233         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
102234         AC_CANONICAL_HOST, to improve autobuild outputs.
102236 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
102237             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
102239         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
102240         sockets, server sockets, and other file descriptors.  Count errors
102241         to compute the return value.  Reorder the code a bit to be easier
102242         to follow.  Don't set event bits that were not requested (except
102243         POLLERR and POLLHUP).
102245 2007-01-01  Bruno Haible  <bruno@clisp.org>
102247         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
102249 2007-01-03  Jim Meyering  <jim@meyering.net>
102251         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
102253 2007-01-02  Bruno Haible  <bruno@clisp.org>
102255         * modules/settime (Include): Require timespec.h.
102256         * modules/nanosleep (Include): Likewise.
102258 2007-01-01  Bruno Haible  <bruno@clisp.org>
102260         * gnulib-tool (func_emit_copyright_notice): Bump year.
102261         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
102263 2007-01-01  Bruno Haible  <bruno@clisp.org>
102265         Improve support for OpenBSD.
102266         * build-aux/config.rpath (libname_spec): Export.
102267         (library_names_spec): New variable. Export.
102268         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
102269         library_names_spec from the config.rpath output. Locate shared library
102270         through the name pattern in library_names_spec.
102272 2007-01-01  Eric Blake  <ebb9@byu.net>
102274         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
102276 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
102278         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
102279         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
102280         assume the C locale, and avoid an "eval" that could cause trouble.
102281         Problem with SORT reported by Bob Proulx.
102283         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
102284         Define.  Trivial patch from Henning Nielsen Lund, originally
102285         sent to bug-grep@gnu.org today.
102287 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
102289         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
102290         struct stat.  Problem reported by Henning Nielsen Lund.
102291         * lib/acl.c: Include acl.h first, to check interface.  Don't
102292         bother to include sys/types.h and sys/stat.h again.
102294 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
102296         Import the following change from libc; problem reported by
102297         Sven Verdoolaege.
102299         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
102301         [BZ #1373]
102302         * lib/argp.h: Remove __NTH for __argp_usage inline function.
102304 2006-12-28  Jim Meyering  <jim@meyering.net>
102306         * build-aux/announce-gen: Do not assume that the package
102307         builds any of tar.gz, tar.bz2, and .xdelta files.
102308         Suggestion from Simon Josefsson.
102310 2006-12-28  Simon Josefsson  <simon@josefsson.org>
102312         * modules/announce-gen: New file.
102314 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
102316         * lib/mbchar.h: Just include <wctype.h>; the wctype module
102317         handles its gotchas now.
102318         * lib/mbswidth.c: Likewise.
102319         * lib/wcwidth.h: Likewise.
102320         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
102321         and iswcntrl; the wctype module does this stuff now.
102322         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
102323         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
102324         * modules/mbchar (Depends-on): Add wctype.
102325         * modules/mbswidth (Depends-on): Likewise.
102326         * modules/wcwidth (Depends-on): Likewise.
102328 2006-12-27  Eric Blake  <ebb9@byu.net>
102330         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
102331         module uses more than what <wctype.h> is required to provide.
102333 2006-12-26  Eric Blake  <ebb9@byu.net>
102335         * gnulib-tool (sed_extract_prog): Avoid space-tab.
102337 2006-12-26  Eric Blake  <ebb9@byu.net>
102339         * modules/absolute-header: New module.
102340         * modules/fcntl (Depends-on): Depend on it.
102341         * modules/inttypes (Depends-on): Likewise.
102342         * modules/stdint (Depends-on): Likewise.
102343         * modules/sys_stat (Depends-on): Likewise.
102344         * modules/wctype (Depends-on): Likewise.
102345         * MODULES.html.sh (Support for building libraries and
102346         executables): Document it.
102348 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
102350         * gnulib-tool (SED): Remove, undoing previous change.
102351         The problem was that it broke coreutils on Solaris, because
102352         "sed --posix" leaked into a makefile.
102353         (sed): New alias, if 'alias' and GNU sed.
102355 2006-12-24  Jim Meyering  <jim@meyering.net>
102357         Work around an fchownat bug in glibc-2.4:
102358         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
102359         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
102360         in spite of the -P option.
102361         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
102362         New macros.
102363         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
102364         * modules/openat (Files): Add lib/fchownat.c.
102365         * lib/openat.c (fchownat): Don't define here.  Move to...
102366         * lib/fchownat.c: ...this new file.
102368 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
102370         Fix bug reported by Bruno Haible in
102371         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00228.html>
102372         where quotearg.c didn't compile on Mac OS X 10.2 because it
102373         lacks <wchar.h> and wint_t.
102374         * lib/wctype_.h (__wctype_wint_t): New type.
102375         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
102376         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
102377         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
102378         Arg is now of type __wctype_wint_t, not wint_t.
102379         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
102380         substitute HAVE_WINT_T.
102381         * modules/wctype (Files): Add m4/wint_t.m4.
102382         (wctype.h): Substitute HAVE_WINT_T.
102384 2006-12-23  Bruno Haible  <bruno@clisp.org>
102386         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
102388 2006-12-23  Bruno Haible  <bruno@clisp.org>
102390         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
102391         S_ISLNK.
102392         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
102393         mingw.
102395 2006-12-22  Bruno Haible  <bruno@clisp.org>
102397         * lib/copy-file.c: Include acl.h.
102398         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
102399         Close the file descriptors only after being done with copy_acl.
102400         * modules/copy-file (Depends-on): Add acl.
102402 2006-12-22  Bruno Haible  <bruno@clisp.org>
102404         * gnulib-tool (SED): New variable.
102405         Use $SED instead of sed everywhere.
102407 2006-12-22  Bruno Haible  <bruno@clisp.org>
102409         * modules/no-c++: New file.
102410         * m4/no-c++.m4: New file.
102411         * MODULES.html.sh (Support for building libraries and executables):
102412         Add no-c++.
102414 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
102416         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
102417         Include <limits.h>, and use its INT_MAX to rewrite the
102418         j loop so that it does not overflow 'int'.  Problem reported by
102419         Ralf Wildenhues in
102420         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00084.html>.
102421         Play it safe by shifting left by 1 rather than multiplying by 2,
102422         as GCC is less likely to optimize this away when the value
102423         is signed (when it assumes overflow leads to undefined behavior).
102424         Also, don't assume time_t uses two's complement.
102426 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
102428         * MODULES.html.sh: New module wctype.
102429         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
102430         * lib/fnmatch.c: Don't bother to include <wchar.h> before
102431         <wctype.h>, since the new wctype module should fix this.
102432         * lib/quotearg.c: Include <wctype.h> unconditionally, since
102433         the wctype module should arrange for it.
102434         * lib/regex_internal.h: Likewise.
102435         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
102436         since the wctype module should handle this now.
102437         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
102438         * modules/fnmatch (Depends-on): Add wctype.
102439         * modules/quotearg (Depends-on): Likewise.
102440         * modules/regex (Depends-on): Likewise.
102442 2006-12-19  Bruno Haible  <bruno@clisp.org>
102444         * lib/strdup.h [C++]: Wrap definitions in extern "C".
102445         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
102447 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102449         * modules/savewd (Depends-on): Fix dependency on fcntl.
102451 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
102453         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
102454         conforms to C99, rather than relying on the user's environment
102455         setting of STDINT_H.
102457 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
102458         and Eric Blake  <ebb9@byu.net>
102460         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
102461         This is more consistent with the other defines here.
102462         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
102463         Port to z/OS.  Problem reported by Paul Gilmartin.
102464         Change local vars to use gl_ prefix rather than ac_.
102465         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
102466         with other defines.
102467         * modules/double-slash-root: New module.
102468         * modules/dirname (Files): Remove m4/double-slash-root.m4.
102469         (Depends-on): Add double-slash-root.
102470         * MODULES.html.sh (File system functions): Mention new module.
102472 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
102474         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
102475         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
102476         This is for the benefit of gzip, which doesn't do i18n.
102478 2006-12-12  Jim Meyering  <jim@meyering.net>
102480         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
102481         Reported by Andreas Schwab <schwab@suse.de>.
102483 2006-12-12  Bruno Haible  <bruno@clisp.org>
102485         Merge these changes.
102486         2006-09-05  Bruno Haible  <bruno@clisp.org>
102487         * lib/iconvme.c (iconv_string): No need to save and restore errno when
102488         iconv_alloc succeeded.
102489         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
102490         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
102491         test for " && dest " at the end - dest is always != NULL there. Call
102492         iconv with 4xNULL arguments initially, to reset the state. Call iconv
102493         with 2xNULL arguments, also to flush the state storage. Handle the
102494         IRIX iconv behaviour. Realloc the final result, to throw away unused
102495         memory.
102497 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
102499         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
102500         and fchmodat unconditionally, since glibc 2.4 has them.
102501         Problem reported by Arkadiusz Miskiewicz.
102503 2006-12-10  Bruno Haible  <bruno@clisp.org>
102505         * gnulib-tool (func_import): Show the include files only for those
102506         modules that are copied and specified.
102507         Reported by Karl Berry.
102509 2006-12-08  Jim Meyering  <jim@meyering.net>
102511         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
102512         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
102514         * build-aux/announce-gen: Add two new options, both optional:
102515         --bootstrap-tools=TOOL_LIST
102516               a comma-separated list of tools, e.g.,
102517               autoconf,automake,bison,gnulib
102518         --gnulib-snapshot-date=DATE
102519               if gnulib is in the bootstrap tool list,
102520               then report this as the snapshot date.
102521               If not specified, use the current date/time.
102522               If you specify a date here, be sure it's UTC.
102524 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102526         * tests/test-argp-2.sh: Fix test to match actual output.
102527         (func_compare): Fix sed script to be portable.
102529 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
102531         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
102532         workaround for this case.  It is not autoconfigured now; offhand
102533         it's hard to see how to autoconfigure it.
102535 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
102537         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
102538         a directory that is about to be chowned.  Such a directory's
102539         initial file permissions should permit the owner only and this
102540         should not be changed until after the chown, since the group and
102541         other bits would be incorrect if they granted permission before
102542         the chown.
102544         Fix porting problem for iswctype reported by Georg Schwarz in:
102545         http://lists.gnu.org/r/bug-coreutils/2006-12/msg00017.html
102546         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
102547         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
102548         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
102549         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
102551 2006-12-03  Jim Meyering  <jim@meyering.net>
102553         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
102554         p->fts_statp may not yet be defined.
102555         (fts_read): Instead, set it in the caller, once p->fts_statp is
102556         sure to be defined, and corresponds to a top-level directory.
102557         This bug made du -x fail.  Here's the coreutils test case:
102558         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
102559         Reported by Mike Frysinger.
102561 2006-12-01  Jim Meyering  <jim@meyering.net>
102563         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
102564         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
102565         Reported by Simon Josefsson.
102567 2006-11-30  Jim Meyering  <jim@meyering.net>
102569         * m4/warning.m4: Use the all-permissive copyright notice
102570         recommended by RMS (rather than LGPL).
102571         * m4/vararrays.m4: Likewise.
102572         * m4/flexmember.m4: Likewise.
102574 2006-11-29  Bruno Haible  <bruno@clisp.org>
102576         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
102577         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
102578         using +=.
102579         Reported by Simon Josefsson <simon@josefsson.org>.
102581 2006-11-28  James Youngman  <jay@gnu.org>
102583         * README: Advise users that they might find the bug-gnulib@gnu.org
102584         and autotools-announce@gnu.org mailing lists useful.
102586 2006-11-28  Bruno Haible  <bruno@clisp.org>
102588         * m4/ptrdiff_max.m4: Remove file.
102590 2006-11-21  Bruno Haible  <bruno@clisp.org>
102592         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
102593         _AC_COMPUTE_INT.
102594         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
102595         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
102596         _AC_COMPUTE_INT.
102597         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
102598         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
102599         _AC_COMPUTE_INT.
102600         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
102602 2006-11-28  Jim Meyering  <jim@meyering.net>
102604         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
102605         warning from "gcc -Wshadow" about shadowing the builtin.
102607 2006-11-27  Bruno Haible  <bruno@clisp.org>
102609         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
102610         _AC_COMPUTE_INT.
102611         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
102613 2006-11-27  Bruno Haible  <bruno@clisp.org>
102614             Paul Eggert  <eggert@cs.ucla.edu>
102616         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
102618 2006-11-26  Bruno Haible  <bruno@clisp.org>
102620         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
102621         noinst_LTLIBRARIES.
102623 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
102624             Bruno Haible  <bruno@clisp.org>
102626         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
102627         if compiling with "gcc -ansi".
102629 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
102631         Fix some incompatibilities with gcc -ansi -pedantic.
102632         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
102633         if compiling pedantically with GCC, unless it's C99 or later.
102634         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
102635         it mishandles gcc -ansi -pedantic as well.
102636         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
102637         if gcc -pedantic.
102638         * lib/regexec.c (check_node_accept_bytes): Don't use auto
102639         initializers for struct if -pedantic, unless it's C99 or later.
102641 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
102643         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
102644         Don't close an fd more than once. Identical atimes indicate
102645         success, not failure.
102647 2006-11-22  Robinson Mittmann  <bob@hoplon.com>  (tiny change)
102649         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
102651 2006-11-23  Jim Meyering  <jim@meyering.net>
102653         * build-aux/announce-gen: New file.  From coreutils.
102655 2006-11-22  Jim Meyering  <jim@meyering.net>
102657         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
102658         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
102659         (fts_read): Use a temporary to narrow the overused st_size member
102660         before using it in a switch statement.  Reported by Matthew Woehlke.
102662         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
102663         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
102665 2006-11-20  Bruno Haible  <bruno@clisp.org>
102667         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
102668         changequote instead of pairs of brackets.
102669         Reported by Andreas Schwab <schwab@suse.de>.
102671 2006-11-21  Jim Meyering  <jim@meyering.net>
102673         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
102674         so as to remain compatible with older compilers.
102675         Patch from Michael Deutschmann.
102677 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
102679         * MODULES.html.sh (File system functions): Add openat.
102681         * lib/openat.h (rpl_fstatat): New macro, if
102682         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
102683         (fstatat): Define to rpl_fstatat under the same conditions,
102684         unless COMPILING_FSTATAT.
102685         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
102686         seems to have the bug.
102687         * lib/fstatat.c: New file.
102688         * modules/openat (Files): Add it.
102690 2006-11-20  Bruno Haible  <bruno@clisp.org>
102692         * Makefile: New file.
102694 2006-11-20  Jim Meyering  <jim@meyering.net>
102696         The beginnings of syntax-related checks for gnulib.
102697         * lib/Makefile: New file.
102698         * lib/t-idcache: New script.  Ensure that the two halves of
102699         idcache.c stay in sync.
102701         * lib/idcache.c: Adjust comments in user- and group- portions to
102702         be more accurate, and to be consistent with one another.
102704 2006-11-20  Jim Meyering  <jim@meyering.net>
102706         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
102707         continue using the flexible array member (thus, this module performs
102708         half as many malloc calls), with the addition that...
102709         (getgroup, getuser): Consistently record a non-match via an empty
102710         "name" string, and map an empty string match to a NULL return value.
102711         * modules/idcache (Depends-on): Re-add flexmember.
102713         * lib/idcache.c (getuser): Remove all uses of the register keyword.
102714         (getuidbyname, getgroup, getgidbyname): Likewise.
102716         Use cleaner syntax: NULL rather than 0.
102717         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
102719 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
102721         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
102722         It mishandled the case where the group was missing.
102723         Problem reported by Greg Schafer.
102724         * modules/idcache: Likewise.
102726 2006-11-18  Jim Meyering  <jim@meyering.net>
102728         * check-module (%exempt_header): Add exception for some
102729         conditionally-included headers.
102731         * modules/i-ring (Depends-on): Add verify.
102732         (License): Change to LGPL.
102734 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
102736         * modules/getaddrinfo (Depends-on): Remove inttostr; add snprintf.
102737         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
102738         and inttostr.h.  Use snprintf rather than uinttostr, so that
102739         LGPLed code doesn't depend on GPLed.
102741 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
102743         * modules/inline (License): Change from GPL to LGPL.
102745 2006-11-17  Jim Meyering  <jim@meyering.net>
102747         * modules/d-type (License): Switch to LGPL.
102749 2006-11-15  Bruno Haible  <bruno@clisp.org>
102751         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
102753 2006-11-15  Eric Blake  <ebb9@byu.net>
102755         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
102756         the module dependency.
102758 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
102759             Bruno Haible  <bruno@clisp.org>
102761         * gnulib-tool (func_create_testdir): Add license consistency check.
102763 2006-11-15  Eric Blake  <ebb9@byu.net>
102765         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
102766         random "(cached)" in configure output.
102768 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102770         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
102771         test for conforming inttypes.h is both announced and cached.
102773         * MODULES.html.sh (seen_modules, seen_files): New variables.
102774         (func_module): Rewrite to use a few less gnulib-tool and sed
102775         invocations.  Avoid a couple of quadratic algorithms for ...
102776         (missed_modules, missed_files): ... these, with ...
102777         (func_append, func_tmpdir): ... these new functions, from
102778         gnulib-tool.  Analogously, install traps for cleanup.
102780         * tests/test-gc.c (main): Remove unused variables.
102781         * tests/test-read-file.c: Include stdlib.h, for 'free'.
102783 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
102785         * modules/inttostr (License): Change to LGPL.
102787 2006-11-14  Eric Blake  <ebb9@byu.net>
102789         * modules/tempname (License): Change to LGPL.
102791 2006-11-14  Eric Blake  <ebb9@byu.net>
102793         * doc/functions.texi (Function Portability): *printf functions on
102794         Cygwin now understand all POSIX size specifiers.
102796 2006-11-14  Bruno Haible  <bruno@clisp.org>
102798         * modules/c-ctype (License): Change to LGPL.
102800 2006-11-12  Bruno Haible  <bruno@clisp.org>
102802         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
102803         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
102804         for GNOME libraries, for which the include files are installed in
102805         subdirectories of $prefix/include.
102807 2006-11-12  Bruno Haible  <bruno@clisp.org>
102809         * m4/lib-link.m4: Require at least autoconf-2.54.
102810         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
102811         name to underscores for the --with option.
102813 2006-11-13  Bruno Haible  <bruno@clisp.org>
102815         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
102816         the tests directory.
102817         Reported by Ralf Wildenhues.
102819 2006-11-13  Bruno Haible  <bruno@clisp.org>
102821         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
102822         (func_emit_initmacro_end): Undo the override here.
102823         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
102824         Works around the famous automake error in coreutils.
102826 2006-11-13  Eric Blake  <ebb9@byu.net>
102828         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
102829         element, not its node.
102831 2006-11-12  Bruno Haible  <bruno@clisp.org>
102833         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
102834         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
102836 2006-11-12  Bruno Haible  <bruno@clisp.org>
102838         * gnulib-tool: New option --local-symlink.
102839         (func_usage): Document it.
102840         (lsymbolic): New variable.
102841         (func_import, func_create_testdir): If --symlink was not specified,
102842         test whether --local-symlink was specified and the file comes from
102843         the local_gnulib_dir.
102845 2006-11-12  Bruno Haible  <bruno@clisp.org>
102847         * gnulib-tool (func_ln): New function.
102848         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
102850 2006-11-12  Bruno Haible  <bruno@clisp.org>
102852         Finish support for source files in subdirectories.
102853         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
102854         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
102855         AUTOMAKE_OPTIONS.
102856         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
102858 2006-11-12  Bruno Haible  <bruno@clisp.org>
102860         * gnulib-tool (func_get_automake_snippet): Synthesize also an
102861         EXTRA_lib_SOURCES augmentation.
102862         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
102864 2006-11-12  Jim Meyering  <jim@meyering.net>
102866         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
102867         file descriptors.  This also averts a failure on systems with
102868         native openat support when a traversed directory lacks "x" access.
102869         * lib/fts_.h: Include "i-ring.h"
102870         (struct FTS) [fts_fd_ring]: New member.
102871         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
102872         (FCHDIR): Add parentheses.
102873         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
102874         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
102875         When descending, rather than simply closing the previous
102876         fts_cwd_fd value, push that file descriptor onto the ring.
102877         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
102878         (fts_open): Initialize the new fd_ring member.
102879         (fts_close): Clear the ring.
102880         (fts_safe_changedir): When possible, use our new fd_ring to skip
102881         the diropen and fstat and dev/ino comparison that would normally
102882         accompany a virtual `chdir ("..")'.
102884         * modules/fts (Depends-on): Add i-ring.
102885         * modules/i-ring: New module.
102886         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
102887         * m4/i-ring.m4: New file.
102889 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102891         * gnulib-tool (func_create_testdir): Fix replacement of
102892         `build-aux' in configure.ac.  Run autotools in gltests
102893         subdirectory.
102894         (func_create_testdir, func_create_megatestdir, test): There is
102895         no need for '--force' in most autotool invocations in a new
102896         tree.  Actually fail the whole test if any of the tools, or the
102897         configure or make stages fail.
102899         Sync from Automake.
102900         * build-aux/gnupload: Revert last change.  Add pointer to upload
102901         instructions of the GNU Maintenance Instructions.
102902         Suggestion by Karl Berry.
102904 2006-11-10  Jim Meyering  <jim@meyering.net>
102906         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
102908 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
102910         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
102911         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
102912         (bind_textdomain_codeset) [! ENABLE_NLS]:
102913         Evaluate all the arguments.  That way, callers get compatible behavior
102914         if the arguments have side effects.  Also, it avoids some GCC
102915         diagnostics in some cases; Joel E. Denny reported problems when Bison
102916         was configured with --enable-gcc-warnigs.
102918 2006-11-10  Jim Meyering  <jim@meyering.net>
102920         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
102921         relevant options in CFLAGS (like -O, -fno-inline) are taken into
102922         account.
102924 2006-11-10  Jim Meyering  <jim@meyering.net>
102926         * modules/inline: New file/module.
102927         * modules/xalloc (Files): Remove m4/inline.m4.
102928         (Depends-on): Add inline, instead.
102929         * modules/oset: Likewise.
102930         * modules/list: Likewise.
102932 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
102934         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
102935         Problem reported by Matthew Woehlke.
102937 2006-11-09  Bruno Haible  <bruno@clisp.org>
102939         * lib/tempname.c (gen_tempname): Remove variant that invokes
102940         __gen_tempname.
102941         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
102942         __gen_tempname.
102944 2006-11-08  Bruno Haible  <bruno@clisp.org>
102946         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
102947         to 'yes' instead of 'cross-compiling'.
102949 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
102951         * lib/quotearg.h (quotearg_free): New decl.
102952         * lib/quotearg.c (quotearg_free): New function.
102953         (slot0, nslots, slotvec0, slotvec):
102954         Now file-scope so that quotearg_free can get at them.
102956 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102958         Sync from Automake.
102959         * build-aux/gnupload: Add missing 'gnu' to example URL.
102960         Report by Karl Berry.
102962 2006-11-08  Bruno Haible  <bruno@clisp.org>
102964         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
102965         Suggested by Paul Eggert.
102967 2006-11-08  Jim Meyering  <jim@meyering.net>
102969         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
102970         It's already included if !_LIBC.
102971         (fts_safe_changedir): Add a comment.
102973 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
102975         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
102976         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
102977         Matthew Woehlke.
102979         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
102980         definitions up, to avoid colliding with change below.
102981         (static_inline) [HAVE_INLINE]: New macro.
102982         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
102983         Provide extern decls when !HAVE_INLINE.  Do not define unless
102984         static_inline is defined, either by us or by xmalloc.c.  Use
102985         static_inline rather than static inline.
102986         (XCALLOC): Optimize sizeof(T) = 1 case.
102987         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
102989 2006-11-07  Bruno Haible  <bruno@clisp.org>
102991         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
102992         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
102993         AC_C_INLINE.
102994         * modules/xalloc (Files): Add m4/inline.m4.
102996 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102998         * README: Fix typo.
102999         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
103000         (Miscellanous Notes): ...from this.
103002 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
103004         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
103005         Mention that offsetof should be used instead of sizeof.
103006         From Bruno Haible.
103008 2006-11-07  Bruno Haible  <bruno@clisp.org>
103010         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
103012 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
103014         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
103015         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
103016         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
103017         (gl_tree_add_before, gl_tree_add_after):
103018         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
103019         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
103020         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
103021         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
103022         (gl_linked_add_after, gl_linked_add_at): Likewise.
103023         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
103024         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
103025         (gl_tree_add_before, gl_tree_add_after): Likewise.
103026         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
103027         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
103028         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
103030 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
103032         * lib/gl_oset.h: Use C comment style, not C++ comment style.
103034 2006-11-06  Bruno Haible  <bruno@clisp.org>
103036         * m4/inline.m4: New file.
103037         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
103038         * modules/list (Files): Add m4/inline.m4.
103039         * modules/oset (Files): Likewise.
103041 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
103043         * lib/idcache.c: Include <stddef.h>, for offsetof.
103044         (struct userid.name): Change from char * to a flexible array member.
103045         All uses changed.
103046         * modules/idcache (Depends-on): Add flexmember.
103048         * MODULES.html.sh (Core language properties): New module flexmember.
103049         * modules/flexmember, m4/flexmember.m4: New files.
103051         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
103052         inline functions that are identical with the old xnmalloc_inline,
103053         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
103054         that we can avoid some unnecessary integer multiplications and
103055         divisions in the common case where the element size is known at
103056         compile time.
103057         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
103058         needed.
103059         (xnboundedmalloc): Remove.
103060         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
103061         arguments, for consistency with rest of this header.
103062         (xcharalloc): Rewrite using XNMALLOC.
103063         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
103064         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
103065         versions have been moved to lib/xalloc.h and renamed to be the
103066         non-*_inline versions.
103067         (xmalloc, xrealloc): Implement without reference to the xnmalloc
103068         and xnrealloc functions, since those functions are now inline and
103069         now call us.
103070         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
103071         renaming described above.
103072         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
103073         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
103074         captures the dependency in AC_C_INLINE.
103076         New module canonicalize-lgpl, proposed by Charles Wilson in
103077         <http://lists.gnu.org/r/bug-gnulib/2006-11/msg00020.html>
103078         with a few small changes afterwards.
103079         * MODULES.html.sh (File system functions): New module
103080         canonicalize-lgpl.
103081         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
103082         and canonicalize_file_name.
103083         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
103084         * modules/canonicalize-lgpl: New files.
103086 2006-11-05  Bruno Haible  <bruno@clisp.org>
103088         * gnulib-tool (func_import, func_create_testdir): Create directories
103089         also for files in subdirectories of lib/.
103091 2006-11-05  Bruno Haible  <bruno@clisp.org>
103093         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
103094         ANSI C compliant.
103096 2006-11-03  Bruno Haible  <bruno@clisp.org>
103098         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
103099         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
103100         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
103101         (xnboundedmalloc): New inline function.
103102         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
103103         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
103104         xmalloc.
103105         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
103106         xmalloc.
103107         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
103108         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
103109         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
103110         xmalloc.
103111         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
103112         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
103113         xmalloc.
103114         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
103115         gl_tree_add_after): Use XMALLOC instead of xmalloc.
103116         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
103117         xmalloc.
103118         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
103119         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
103120         gl_tree_add_after): Use XMALLOC instead of xmalloc.
103121         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
103122         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
103123         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
103124         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
103126 2006-11-03  Bruno Haible  <bruno@clisp.org>
103128         * lib/c-ctype.h [C++]: Define functions without name mangling.
103129         * lib/fwriteerror.h [C++]: Likewise.
103130         * lib/gcd.h [C++]: Likewise.
103131         * lib/linebreak.h [C++]: Likewise.
103133 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
103135         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
103136         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
103137         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
103138         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
103139         Check for functions and headers just once.
103140         Check for declaration of canonicalize_file_name.
103141         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
103143 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
103145         * gnulib-tool (func_import): Fix typo in actioncmd.
103147 2006-11-02  Bruno Haible  <bruno@clisp.org>
103149         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
103150         newline sequence in the Makefile.am snippet as a space, like "make"
103151         does.
103152         Reported by Roger Persson <perrog@gmail.com>.
103154 2006-11-01  Bruno Haible  <bruno@clisp.org>
103156         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
103157         already declared in <string.h>.
103158         * lib/strcase.h (strncasecmp): Don't declare it if yes.
103160 2006-11-01  Bruno Haible  <bruno@clisp.org>
103162         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
103163         * lib/strcase.h: Include <string.h>.
103164         (strcasecmp): Define to rpl_strcasecmp here.
103166 2006-11-01  Bruno Haible  <bruno@clisp.org>
103168         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
103170 2006-11-01  Eric Blake  <ebb9@byu.net>
103172         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
103174         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
103176 2006-10-29  Bruno Haible  <bruno@clisp.org>
103178         Make it compile in C++ mode.
103179         * lib/full-write.c (full_rw): Add a cast.
103181 2006-11-01  Bruno Haible  <bruno@clisp.org>
103183         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
103184         be POSIX compliant.
103185         Reported by Roger Persson <perrog@gmail.com>.
103187 2006-11-01  Eric Blake  <ebb9@byu.net>
103189         * lib/getopt_.h: Fix comments.
103191 2006-10-31  Eric Blake  <ebb9@byu.net>
103193         * modules/tmpdir (Depends-on): Add sys_stat.
103194         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
103195         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
103196         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
103197         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
103198         tempname.
103200 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
103202         Avoid some C++ diagnostics reported by Bruno Haible.
103203         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
103204         xmalloc.
103205         (quotearg_alloc): Use xcharalloc rather than xmalloc.
103206         (struct slotvec): Move to top level.
103207         (quotearg_n_options): Rewrite to avoid xmalloc.
103208         * lib/xalloc.h (xcharalloc): New function.
103209         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
103210         [defined __cplusplus]: Add function template that provides result
103211         type propagation.  This part of the change is from Bruno Haible.
103213 2006-10-29  Bruno Haible  <bruno@clisp.org>
103215         Make it compile in C++ mode.
103216         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
103217         * lib/strnlen1.c (strnlen1): Cast memchr result.
103218         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
103219         * lib/clean-temp.c (string_equals, string_hash): Add casts.
103220         (create_temp_dir): Rename local variable 'template'.
103221         (compile_csharp_using_sscli): Add cast.
103222         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
103223         * lib/findprog.c (find_in_path): Likewise.
103224         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
103225         * lib/wait-process.c (register_slave_subprocess): Likewise.
103227 2006-10-22  Bruno Haible  <bruno@clisp.org>
103229         * modules/tsearch: New file.
103230         * lib/tsearch.h: New file.
103231         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
103232         * m4/tsearch.m4: New file.
103233         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
103235 2006-10-29  Eric Blake  <ebb9@byu.net>
103237         * lib/arcfour.c: Assume config.h.
103238         * lib/arctwo.c: Likewise.
103239         * lib/base64.c: Likewise.
103240         * lib/check-version.c: Likewise.
103241         * lib/crc.c: Likewise.
103242         * lib/des.c: Likewise.
103243         * lib/gc-gnulib.c: Likewise.
103244         * lib/gc-libgcrypt.c: Likewise.
103245         * lib/gc-pbkdf2-sha1.c: Likewise.
103246         * lib/getaddrinfo.c: Likewise.
103247         * lib/getdelim.c: Likewise.
103248         * lib/getline.c: Likewise.
103249         * lib/hmac-md5.c: Likewise.
103250         * lib/hmac-sha1.c: Likewise.
103251         * lib/iconvme.c: Likewise.
103252         * lib/md2.c: Likewise.
103253         * lib/md4.c: Likewise.
103254         * lib/memxor.c: Likewise.
103255         * lib/read-file.c: Likewise.
103256         * lib/readline.c: Likewise.
103257         * lib/rijndael-alg-fst.c: Likewise.
103258         * lib/rijndael-api-fst.c: Likewise.
103259         * lib/xgetdomainname.c: Likewise.
103261 2006-10-28  Eric Blake  <ebb9@byu.net>
103263         * lib/xstrndup.c: Assume config.h.
103265 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
103267         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
103268         stat-macros.h is now for our own macros, whereas stat_h is for
103269         macros in the <sys/stat.h> name space.
103270         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
103271         (STAT_MACROS_H): Remove.
103272         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
103273         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
103274         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
103275         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
103276         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
103277         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
103278         Move these macros to ...
103279         * lib/stat_.h: here.  Don't include stat-macros.h.
103280         * lib/canonicalize.c: Don't include stat-macros.h.
103281         * lib/chown.c: Likewise.
103282         * lib/euidaccess.c: Likewise.
103283         * lib/file-type.c: Likewise.
103284         * lib/filemode.c: Likewise.
103285         * lib/glob.c: Likewise.
103286         * lib/isapipe.c: Likewise.
103287         * lib/lchown.c: Likewise.
103288         * lib/lstat.c: Likewise.
103289         * lib/mkdir-p.c: Likewise.
103290         * lib/rmdir.c: Likewise.
103291         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
103292         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
103293         unless mkdir isn't declared, to speed up 'configure'.
103294         Always create sys/stat.h, since it's unlikely any real sys/stat.h
103295         would define all the S_* symbols.
103296         * modules/canonicalize (Depends-on):
103297         Depend on sys_stat, not stat-macros.
103298         * modules/chown: Likewise.
103299         * modules/euidaccess: Likewise.
103300         * modules/filemode: Likewise.
103301         * modules/file-type: Likewise.
103302         * modules/glob: Likewise.
103303         * modules/isapipe: Likewise.
103304         * modules/lchown: Likewise.
103305         * modules/lstat: Likewise.
103306         * modules/mkancesdirs: Likewise.
103307         * modules/rmdir: Likewise.
103308         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
103309         * modules/modechange: Likewise.
103310         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
103311         (configure.ac): Remove gl_STAT_MACROS.
103312         * modules/sys_stat (Depends-on): Remove stat-macros.
103314 2006-10-27  Bruno Haible  <bruno@clisp.org>
103316         * m4/signed.m4: Remove file.
103317         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
103318         invocation.
103319         * modules/vasnprintf (Files): Remove m4/signed.m4.
103321 2006-10-27  Bruno Haible  <bruno@clisp.org>
103323         Update to GNU gettext 0.16.
103324         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
103325         m4/inttypes-h.m4, m4/signed.m4.
103326         * m4/gettext.m4: Update to GNU gettext 0.16.
103327         * m4/intl.m4: New file, from GNU gettext.
103328         * m4/intldir.m4: New file, from GNU gettext.
103329         * config/srclist.txt: Update
103331 2006-10-27  Eric Blake  <ebb9@byu.net>
103333         * MODULES.html.sh: Document tempname.
103334         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
103335         dependencies.
103336         (Files): Move lib/tempname.c...
103337         * modules/tempname: ...to this new module.
103338         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
103339         (gl_PREREQ_TEMPNAME): Move...
103340         * m4/tempname.m4: ...to this new file.
103341         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
103342         * modules/sys_stat (Depends-on): Add stat-macros.
103343         * lib/stat_.h (includes): Pick up stat macros.
103344         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
103345         if stat macros are broken.
103346         * lib/tempname.c (includes): No need to include "stat-macros.h".
103347         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
103348         (direxists, __path_search) [!_LIBC]: Don't compile these in
103349         gnulib; the tmpdir module covers that.
103350         * lib/tempname.h: New file.
103352 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
103354         * COPYING: Explain how gnulib-tool converts licence headers.
103355         Almost all wording by Eric Blake.
103357 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
103359         * lib/mbchar.h (is_basic_table): Make read-only.
103360         * lib/mbchar.c (is_basic_table): Likewise.
103361         Reported by John Darrington.
103363 2006-10-25  Bruno Haible  <bruno@clisp.org>
103365         * lib/progname.h (set_program_name): Undefine before defining.
103367 2006-10-25  Bruno Haible  <bruno@clisp.org>
103369         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
103370         false for non-gcc C++ compilers.
103371         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
103373 2006-10-24  Bruno Haible  <bruno@clisp.org>
103375         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
103376         iconv implementations like Irix iconv.
103378 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
103380         * modules/vararrays: New file.
103381         * m4/vararrays.m4: New file, taken from diffutils.
103382         * MODULES.html.sh: New module vararrays.
103384 2006-10-24  Karl Berry  <karl@gnu.org>
103386         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
103387         Don't call GNU Unix.
103389 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
103391         * users.txt: Add Libtool.
103393         Sync from Libtool:
103395         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
103397         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
103398         to gnulib's policy of including config.h unconditionally.
103400 2006-10-24  Bruno Haible  <bruno@clisp.org>
103402         * modules/wcwidth (Files): Add m4/wint_t.m4.
103403         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
103404         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
103406 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
103408         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
103409         to pacify GCC with some -W flags enabled.  Problem reported by
103410         Bruno Haible.
103412 2006-10-24  Jim Meyering  <jim@meyering.net>
103414         * MODULES.html.sh: Remove uinttostr.  It's not a module.
103415         Reported by Karl Berry.
103417 2006-10-23  Bruno Haible  <bruno@clisp.org>
103419         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
103421 2006-10-24  Bruno Haible  <bruno@clisp.org>
103423         * lib/gl_list.h: Use C comment style, not C++ comment style.
103425 2006-10-23  Eric Blake  <ebb9@byu.net>
103427         * lib/getaddrinfo.c (includes): Add missing include.
103429 2006-10-23  Bruno Haible  <bruno@clisp.org>
103430             Paul Eggert  <eggert@cs.ucla.edu>
103432         Ability to rename obstack_free.
103433         * lib/obstack.h (__obstack_free): New macro. Declare instead of
103434         obstack_free.
103435         (obstack_free): Invoke the __obstack_free macro.
103436         * lib/obstack.c (obstack_free): Use __obstack_free macro.
103438 2006-10-23  Bruno Haible  <bruno@clisp.org>
103439             Paul Eggert  <eggert@cs.ucla.edu>
103441         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
103442         __argc, __argv from the declaration. (They are defined as macros on
103443         mingw.)
103445 2006-10-22  Bruno Haible  <bruno@clisp.org>
103447         * doc/gnulib-intro.texi: New file.
103448         * doc/gnulib.texi: Include it.
103450 2006-10-21  Bruno Haible  <bruno@clisp.org>
103452         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
103453         "Introduction", "Miscellanous Notes", "Particular Modules".
103455 2006-10-21  Bruno Haible  <bruno@clisp.org>
103457         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
103458         Change mostlyclean-local rule to avoid sh syntax error from bash
103459         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
103461 2006-10-23  Jim Meyering  <jim@meyering.net>
103463         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
103464         in place of snprintf.
103466         * modules/inttostr (Files): Add lib/uinttostr.c.
103467         * lib/uinttostr.c (inttostr): New file/function.
103468         * lib/inttostr.h (uinttostr): Declare.
103469         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
103470         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
103471         Add uinttostr.
103472         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
103474 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
103476         * lib/canonicalize.c (ELOOP): Define if not already defined.
103477         Problem reported by Bruno Haible in
103478         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00282.html>.
103480 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
103482         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
103483         Problem reported by Perry Smith and Ville Laurikari.
103485         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
103486         uses.
103488 2006-10-19  Bruno Haible  <bruno@clisp.org>
103490         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
103491         for mingw.
103493 2006-10-19  Bruno Haible  <bruno@clisp.org>
103495         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
103496         Needed for mingw.
103498 2006-10-19  Bruno Haible  <bruno@clisp.org>
103500         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
103502 2006-10-19  Bruno Haible  <bruno@clisp.org>
103504         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
103505         it.
103507 2006-10-19  Bruno Haible  <bruno@clisp.org>
103509         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
103510         invocation.
103512 2006-10-19  Bruno Haible  <bruno@clisp.org>
103514         * gnulib-tool (func_create_testdir): Don't include ftruncate and
103515         mountlist by default.
103517 2006-10-16  Bruno Haible  <bruno@clisp.org>
103519         * lib/c-strstr.c: Include c-strstr.h.
103521 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
103523         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
103524         in a slash.
103526 2006-10-18  Bruno Haible  <bruno@clisp.org>
103528         * lib/lock.h [C++]: Wrap definitions in extern "C".
103530 2006-10-18  Bruno Haible  <bruno@clisp.org>
103532         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
103533         gl_LIBOBJS list.
103535 2006-10-18  Bruno Haible  <bruno@clisp.org>
103537         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
103539 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
103541         * lib/xstrtol.h: Include gettext.h.
103542         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
103543         Problem reported by Eric Blake.
103544         * modules/xstrtol (Depends-on): Add gettext-h.
103546 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
103548         * lib/strftime.c (advance): New macro.
103549         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
103550         incomplete type, so you can't add 0 to it.  Problem and patch
103551         reported by Eelco Dolstra for dietlibc.
103553 2006-10-18  Jim Meyering  <jim@meyering.net>
103555         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
103556         type for a local, and rename it: s/up/user_proc/.
103558 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
103560         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
103561         READ_UTMP_USER_PROCESS.
103562         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
103564 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
103566         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
103567         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
103569 2006-10-17  Eric Blake  <ebb9@byu.net>
103571         * lib/sigprocmask.c (sigprocmask): Fix typo.
103573         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
103575         * modules/clean-temp (Makefile.am): Don't add to make output...
103576         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
103577         config.h.
103579 2006-10-17  Bruno Haible  <bruno@clisp.org>
103581         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
103582         differently if DEFAULT_TEXT_DOMAIN is set.
103584 2006-10-16  Bruno Haible  <bruno@clisp.org>
103586         * lib/clean-temp.c: Include fwriteerror.h.
103588 2006-10-16  Bruno Haible  <bruno@clisp.org>
103590         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
103592 2006-10-16  Bruno Haible  <bruno@clisp.org>
103594         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
103595         * lib/sigprocmask.h: Include <sys/types.h>.
103596         (sigset_t): Use the system's definition if present.
103598 2006-10-17  Eric Blake  <ebb9@byu.net>
103600         * lib/xvasprintf.c (includes): Assume config.h.
103601         * lib/xasprintf.c (includes): Likewise.
103603 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
103605         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
103606         at least as wide as intmax_t.
103608 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
103610         (Imported from Automake.)
103611         * build-aux/gnupload: Update to version 1.1 of directive file.
103613 2006-10-16  Eric Blake  <ebb9@byu.net>
103615         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
103616         match Automake 1.10a.
103618 2006-10-14  Bruno Haible  <bruno@clisp.org>
103620         * modules/sigprocmask: New file.
103621         * lib/sigprocmask.h: New file.
103622         * lib/sigprocmask.c: New file.
103623         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
103624         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
103625         request sigprocmask.o.
103626         (gl_PREREQ_SIGPROCMASK): New macro.
103627         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
103628         (Depends-on): Add sigprocmask.
103629         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
103630         gt_SIGNALBLOCKING. Test for 'raise' only once.
103631         * lib/fatal-signal.c: Include sigprocmask.h.
103632         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
103633         unblock_fatal_signals): Define always.
103634         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
103635         sigprocmask.
103637 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
103639         Sync from Automake.
103640         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
103641         which incorrectly sets the mode of an existing destination
103642         directory.  In some cases the unpatched install-sh could do the
103643         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
103644         system.  We hope this is rare in practice, but it's clearly worth
103645         fixing.  Problem reported by Alex Unleashed in
103646         <http://lists.gnu.org/r/bug-autoconf/2006-10/msg00012.html>.
103647         Also, don't bother to check for -m bugs unless we're using -m;
103648         suggested by Stepan Kasal.
103650 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
103652         Sync from Automake.
103653         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
103654         `-c' flag, so they appear at the same position as in %FASTDEP%
103655         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
103656         which ignores unknown options only after the first non-option.
103657         Bug report against M4 by Nelson H. F. Beebe.
103659 2006-10-13  Jim Meyering  <jim@meyering.net>
103661         Fix a bug in yesterday's change.
103662         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
103663         p->fts_statp->st_dev would be used uninitialized.
103664         Ensures that we always call fts_stat on the very first entry.
103665         Miklos Szeredi reported that find -xdev stopped working.
103667 2006-10-12  Bruno Haible  <bruno@clisp.org>
103669         * gnulib-tool (func_get_automake_snippet): Append an automatically
103670         computed EXTRA_DIST augmentation.
103671         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
103672         * modules/alloca-opt (Makefile.am): Likewise.
103673         * modules/allocsa (Makefile.am): Likewise.
103674         * modules/arcfour (Makefile.am): Likewise.
103675         * modules/arctwo (Makefile.am): Likewise.
103676         * modules/argmatch (Makefile.am): Likewise.
103677         * modules/argz (Makefile.am): Likewise.
103678         * modules/atexit (Makefile.am): Likewise.
103679         * modules/backupfile (Makefile.am): Likewise.
103680         * modules/byteswap (Makefile.am): Likewise.
103681         * modules/c-strtod (Makefile.am): Likewise.
103682         * modules/c-strtold (Makefile.am): Likewise.
103683         * modules/calloc (Makefile.am): Likewise.
103684         * modules/canon-host (Makefile.am): Likewise.
103685         * modules/canonicalize (Makefile.am): Likewise.
103686         * modules/chdir-long (Makefile.am): Likewise.
103687         * modules/chdir-safer (Makefile.am): Likewise.
103688         * modules/check-version (Makefile.am): Likewise.
103689         * modules/chown (Makefile.am): Likewise.
103690         * modules/cloexec (Makefile.am): Likewise.
103691         * modules/close-stream (Makefile.am): Likewise.
103692         * modules/closeout (Makefile.am): Likewise.
103693         * modules/crc (Makefile.am): Likewise.
103694         * modules/csharpexec (Makefile.am): Likewise.
103695         * modules/cycle-check (Makefile.am): Likewise.
103696         * modules/des (Makefile.am): Likewise.
103697         * modules/dev-ino (Makefile.am): Likewise.
103698         * modules/dirfd (Makefile.am): Likewise.
103699         * modules/dirname (Makefile.am): Likewise.
103700         * modules/dup2 (Makefile.am): Likewise.
103701         * modules/eealloc (Makefile.am): Likewise.
103702         * modules/error (Makefile.am): Likewise.
103703         * modules/euidaccess (Makefile.am): Likewise.
103704         * modules/exclude (Makefile.am): Likewise.
103705         * modules/exitfail (Makefile.am): Likewise.
103706         * modules/fcntl-safer (Makefile.am): Likewise.
103707         * modules/fcntl (Makefile.am): Likewise.
103708         * modules/file-type (Makefile.am): Likewise.
103709         * modules/fileblocks (Makefile.am): Likewise.
103710         * modules/filemode (Makefile.am): Likewise.
103711         * modules/filenamecat (Makefile.am): Likewise.
103712         * modules/fnmatch (Makefile.am): Likewise.
103713         * modules/fopen-safer (Makefile.am): Likewise.
103714         * modules/fpending (Makefile.am): Likewise.
103715         * modules/fprintftime (Makefile.am): Likewise.
103716         * modules/free (Makefile.am): Likewise.
103717         * modules/fsusage (Makefile.am): Likewise.
103718         * modules/ftruncate (Makefile.am): Likewise.
103719         * modules/fts (Makefile.am): Likewise.
103720         * modules/gc-arcfour (Makefile.am): Likewise.
103721         * modules/gc-des (Makefile.am): Likewise.
103722         * modules/gc-hmac-md5 (Makefile.am): Likewise.
103723         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
103724         * modules/gc-md4 (Makefile.am): Likewise.
103725         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
103726         * modules/gc-sha1 (Makefile.am): Likewise.
103727         * modules/gc (Makefile.am): Likewise.
103728         * modules/getaddrinfo (Makefile.am): Likewise.
103729         * modules/getcwd (Makefile.am): Likewise.
103730         * modules/getdelim (Makefile.am): Likewise.
103731         * modules/getdomainname (Makefile.am): Likewise.
103732         * modules/getgroups (Makefile.am): Likewise.
103733         * modules/gethostname (Makefile.am): Likewise.
103734         * modules/gethrxtime (Makefile.am): Likewise.
103735         * modules/getline (Makefile.am): Likewise.
103736         * modules/getloadavg (Makefile.am): Likewise.
103737         * modules/getlogin_r (Makefile.am): Likewise.
103738         * modules/getndelim2 (Makefile.am): Likewise.
103739         * modules/getopt (Makefile.am): Likewise.
103740         * modules/getpagesize (Makefile.am): Likewise.
103741         * modules/getpass-gnu (Makefile.am): Likewise.
103742         * modules/getpass (Makefile.am): Likewise.
103743         * modules/getsubopt (Makefile.am): Likewise.
103744         * modules/gettime (Makefile.am): Likewise.
103745         * modules/gettimeofday (Makefile.am): Likewise.
103746         * modules/getugroups (Makefile.am): Likewise.
103747         * modules/getusershell (Makefile.am): Likewise.
103748         * modules/glob (Makefile.am): Likewise.
103749         * modules/group-member (Makefile.am): Likewise.
103750         * modules/hard-locale (Makefile.am): Likewise.
103751         * modules/hash (Makefile.am): Likewise.
103752         * modules/hmac-md5 (Makefile.am): Likewise.
103753         * modules/hmac-sha1 (Makefile.am): Likewise.
103754         * modules/human (Makefile.am): Likewise.
103755         * modules/idcache (Makefile.am): Likewise.
103756         * modules/imaxabs (Makefile.am): Likewise.
103757         * modules/imaxdiv (Makefile.am): Likewise.
103758         * modules/inet_ntop (Makefile.am): Likewise.
103759         * modules/inet_pton (Makefile.am): Likewise.
103760         * modules/intprops (Makefile.am): Likewise.
103761         * modules/inttostr (Makefile.am): Likewise.
103762         * modules/inttypes (Makefile.am): Likewise.
103763         * modules/isapipe (Makefile.am): Likewise.
103764         * modules/javaversion (Makefile.am): Likewise.
103765         * modules/lchmod (Makefile.am): Likewise.
103766         * modules/lchown (Makefile.am): Likewise.
103767         * modules/localcharset (Makefile.am): Likewise.
103768         * modules/long-options (Makefile.am): Likewise.
103769         * modules/lstat (Makefile.am): Likewise.
103770         * modules/malloc (Makefile.am): Likewise.
103771         * modules/mathl (Makefile.am): Likewise.
103772         * modules/mbchar (Makefile.am): Likewise.
103773         * modules/md2 (Makefile.am): Likewise.
103774         * modules/md4 (Makefile.am): Likewise.
103775         * modules/md5 (Makefile.am): Likewise.
103776         * modules/memcasecmp (Makefile.am): Likewise.
103777         * modules/memchr (Makefile.am): Likewise.
103778         * modules/memcmp (Makefile.am): Likewise.
103779         * modules/memcoll (Makefile.am): Likewise.
103780         * modules/memcpy (Makefile.am): Likewise.
103781         * modules/memmem (Makefile.am): Likewise.
103782         * modules/memmove (Makefile.am): Likewise.
103783         * modules/mempcpy (Makefile.am): Likewise.
103784         * modules/memrchr (Makefile.am): Likewise.
103785         * modules/memset (Makefile.am): Likewise.
103786         * modules/memxor (Makefile.am): Likewise.
103787         * modules/mkancesdirs (Makefile.am): Likewise.
103788         * modules/mkdir-p (Makefile.am): Likewise.
103789         * modules/mkdir (Makefile.am): Likewise.
103790         * modules/mkdtemp (Makefile.am): Likewise.
103791         * modules/mkstemp (Makefile.am): Likewise.
103792         * modules/mktime (Makefile.am): Likewise.
103793         * modules/modechange (Makefile.am): Likewise.
103794         * modules/mountlist (Makefile.am): Likewise.
103795         * modules/nanosleep (Makefile.am): Likewise.
103796         * modules/obstack (Makefile.am): Likewise.
103797         * modules/openat (Makefile.am): Likewise.
103798         * modules/pagealign_alloc (Makefile.am): Likewise.
103799         * modules/pathmax (Makefile.am): Likewise.
103800         * modules/physmem (Makefile.am): Likewise.
103801         * modules/poll (Makefile.am): Likewise.
103802         * modules/posixtm (Makefile.am): Likewise.
103803         * modules/posixver (Makefile.am): Likewise.
103804         * modules/putenv (Makefile.am): Likewise.
103805         * modules/quote (Makefile.am): Likewise.
103806         * modules/quotearg (Makefile.am): Likewise.
103807         * modules/raise (Makefile.am): Likewise.
103808         * modules/read-file (Makefile.am): Likewise.
103809         * modules/readline (Makefile.am): Likewise.
103810         * modules/readlink (Makefile.am): Likewise.
103811         * modules/readtokens (Makefile.am): Likewise.
103812         * modules/readutmp (Makefile.am): Likewise.
103813         * modules/realloc (Makefile.am): Likewise.
103814         * modules/regex (Makefile.am): Likewise.
103815         * modules/rename-dest-slash (Makefile.am): Likewise.
103816         * modules/rename (Makefile.am): Likewise.
103817         * modules/rijndael (Makefile.am): Likewise.
103818         * modules/rmdir (Makefile.am): Likewise.
103819         * modules/rpmatch (Makefile.am): Likewise.
103820         * modules/safe-read (Makefile.am): Likewise.
103821         * modules/safe-write (Makefile.am): Likewise.
103822         * modules/same-inode (Makefile.am): Likewise.
103823         * modules/same (Makefile.am): Likewise.
103824         * modules/save-cwd (Makefile.am): Likewise.
103825         * modules/savedir (Makefile.am): Likewise.
103826         * modules/setenv (Makefile.am): Likewise.
103827         * modules/settime (Makefile.am): Likewise.
103828         * modules/sha1 (Makefile.am): Likewise.
103829         * modules/sig2str (Makefile.am): Likewise.
103830         * modules/snprintf (Makefile.am): Likewise.
103831         * modules/stat-macros (Makefile.am): Likewise.
103832         * modules/stat-time (Makefile.am): Likewise.
103833         * modules/stdbool (Makefile.am): Likewise.
103834         * modules/stdint (Makefile.am): Likewise.
103835         * modules/stdlib-safer (Makefile.am): Likewise.
103836         * modules/stpcpy (Makefile.am): Likewise.
103837         * modules/stpncpy (Makefile.am): Likewise.
103838         * modules/strcase (Makefile.am): Likewise.
103839         * modules/strcasestr (Makefile.am): Likewise.
103840         * modules/strchrnul (Makefile.am): Likewise.
103841         * modules/strcspn (Makefile.am): Likewise.
103842         * modules/strdup (Makefile.am): Likewise.
103843         * modules/strerror (Makefile.am): Likewise.
103844         * modules/strftime (Makefile.am): Likewise.
103845         * modules/strndup (Makefile.am): Likewise.
103846         * modules/strnlen (Makefile.am): Likewise.
103847         * modules/strpbrk (Makefile.am): Likewise.
103848         * modules/strsep (Makefile.am): Likewise.
103849         * modules/strstr (Makefile.am): Likewise.
103850         * modules/strtod (Makefile.am): Likewise.
103851         * modules/strtoimax (Makefile.am): Likewise.
103852         * modules/strtok_r (Makefile.am): Likewise.
103853         * modules/strtol (Makefile.am): Likewise.
103854         * modules/strtoll (Makefile.am): Likewise.
103855         * modules/strtoul (Makefile.am): Likewise.
103856         * modules/strtoull (Makefile.am): Likewise.
103857         * modules/strtoumax (Makefile.am): Likewise.
103858         * modules/strverscmp (Makefile.am): Likewise.
103859         * modules/sys_socket (Makefile.am): Likewise.
103860         * modules/sys_stat (Makefile.am): Likewise.
103861         * modules/sysexits (Makefile.am): Likewise.
103862         * modules/time_r (Makefile.am): Likewise.
103863         * modules/timegm (Makefile.am): Likewise.
103864         * modules/timespec (Makefile.am): Likewise.
103865         * modules/tmpfile-safer (Makefile.am): Likewise.
103866         * modules/trim (Makefile.am): Likewise.
103867         * modules/unistd-safer (Makefile.am): Likewise.
103868         * modules/unlinkdir (Makefile.am): Likewise.
103869         * modules/unlocked-io (Makefile.am): Likewise.
103870         * modules/userspec (Makefile.am): Likewise.
103871         * modules/utime (Makefile.am): Likewise.
103872         * modules/utimecmp (Makefile.am): Likewise.
103873         * modules/utimens (Makefile.am): Likewise.
103874         * modules/vasnprintf (Makefile.am): Likewise.
103875         * modules/vasprintf (Makefile.am): Likewise.
103876         * modules/vsnprintf (Makefile.am): Likewise.
103877         * modules/xalloc (Makefile.am): Likewise.
103878         * modules/xgetcwd (Makefile.am): Likewise.
103879         * modules/xnanosleep (Makefile.am): Likewise.
103880         * modules/xreadlink (Makefile.am): Likewise.
103881         * modules/xstrtod (Makefile.am): Likewise.
103882         * modules/xstrtol (Makefile.am): Likewise.
103883         * modules/xstrtold (Makefile.am): Likewise.
103884         * modules/yesno (Makefile.am): Likewise.
103885         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
103887 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
103889         * modules/error (Makefile.am): Distribute files through
103890         EXTRA_DIST, not lib_SOURCES.
103892 2006-10-12  Eric Blake  <ebb9@byu.net>
103894         * modules/error (Makefile.am): Distribute files in /lib.
103895         * modules/obstack (Makefile.am): Likewise.
103897 2006-10-12  Bruno Haible  <bruno@clisp.org>
103899         * modules/acl (Makefile.am): Distribute all files in lib/ through
103900         EXTRA_DIST.
103901         * modules/arcfour (Makefile.am): Likewise.
103902         * modules/arctwo (Makefile.am): Likewise.
103903         * modules/argmatch (Makefile.am): Likewise.
103904         * modules/argz (Makefile.am): Likewise.
103905         * modules/atexit (Makefile.am): Likewise.
103906         * modules/backupfile (Makefile.am): Likewise.
103907         * modules/c-strtod (Makefile.am): Likewise.
103908         * modules/c-strtold (Makefile.am): Likewise.
103909         * modules/calloc (Makefile.am): Likewise.
103910         * modules/canon-host (Makefile.am): Likewise.
103911         * modules/canonicalize (Makefile.am): Likewise.
103912         * modules/chdir-long (Makefile.am): Likewise.
103913         * modules/chdir-safer (Makefile.am): Likewise.
103914         * modules/check-version (Makefile.am): Likewise.
103915         * modules/chown (Makefile.am): Likewise.
103916         * modules/cloexec (Makefile.am): Likewise.
103917         * modules/close-stream (Makefile.am): Likewise.
103918         * modules/closeout (Makefile.am): Likewise.
103919         * modules/crc (Makefile.am): Likewise.
103920         * modules/cycle-check (Makefile.am): Likewise.
103921         * modules/des (Makefile.am): Likewise.
103922         * modules/dirfd (Makefile.am): Likewise.
103923         * modules/dirname (Makefile.am): Likewise.
103924         * modules/dup2 (Makefile.am): Likewise.
103925         * modules/euidaccess (Makefile.am): Likewise.
103926         * modules/exclude (Makefile.am): Likewise.
103927         * modules/exitfail (Makefile.am): Likewise.
103928         * modules/fcntl-safer (Makefile.am): Likewise.
103929         * modules/file-type (Makefile.am): Likewise.
103930         * modules/fileblocks (Makefile.am): Likewise.
103931         * modules/filemode (Makefile.am): Likewise.
103932         * modules/filenamecat (Makefile.am): Likewise.
103933         * modules/fnmatch (Makefile.am): Likewise.
103934         * modules/fopen-safer (Makefile.am): Likewise.
103935         * modules/fpending (Makefile.am): Likewise.
103936         * modules/fprintftime (Makefile.am): Likewise.
103937         * modules/free (Makefile.am): Likewise.
103938         * modules/fsusage (Makefile.am): Likewise.
103939         * modules/ftruncate (Makefile.am): Likewise.
103940         * modules/fts (Makefile.am): Likewise.
103941         * modules/gc (Makefile.am): Likewise.
103942         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
103943         * modules/getaddrinfo (Makefile.am): Likewise.
103944         * modules/getcwd (Makefile.am): Likewise.
103945         * modules/getdelim (Makefile.am): Likewise.
103946         * modules/getdomainname (Makefile.am): Likewise.
103947         * modules/getgroups (Makefile.am): Likewise.
103948         * modules/gethostname (Makefile.am): Likewise.
103949         * modules/gethrxtime (Makefile.am): Likewise.
103950         * modules/getline (Makefile.am): Likewise.
103951         * modules/getloadavg (Makefile.am): Likewise.
103952         * modules/getlogin_r (Makefile.am): Likewise.
103953         * modules/getopt (Makefile.am): Likewise.
103954         * modules/getpass (Makefile.am): Likewise.
103955         * modules/getpass-gnu (Makefile.am): Likewise.
103956         * modules/getsubopt (Makefile.am): Likewise.
103957         * modules/gettime (Makefile.am): Likewise.
103958         * modules/gettimeofday (Makefile.am): Likewise.
103959         * modules/getugroups (Makefile.am): Likewise.
103960         * modules/getusershell (Makefile.am): Likewise.
103961         * modules/glob (Makefile.am): Likewise.
103962         * modules/group-member (Makefile.am): Likewise.
103963         * modules/hard-locale (Makefile.am): Likewise.
103964         * modules/hash (Makefile.am): Likewise.
103965         * modules/hmac-md5 (Makefile.am): Likewise.
103966         * modules/hmac-sha1 (Makefile.am): Likewise.
103967         * modules/human (Makefile.am): Likewise.
103968         * modules/idcache (Makefile.am): Likewise.
103969         * modules/imaxabs (Makefile.am): Likewise.
103970         * modules/imaxdiv (Makefile.am): Likewise.
103971         * modules/inet_ntop (Makefile.am): Likewise.
103972         * modules/inet_pton (Makefile.am): Likewise.
103973         * modules/inttostr (Makefile.am): Likewise.
103974         * modules/isapipe (Makefile.am): Likewise.
103975         * modules/lchown (Makefile.am): Likewise.
103976         * modules/long-options (Makefile.am): Likewise.
103977         * modules/lstat (Makefile.am): Likewise.
103978         * modules/malloc (Makefile.am): Likewise.
103979         * modules/mathl (Makefile.am): Likewise.
103980         * modules/mbchar (Makefile.am): Likewise.
103981         * modules/md2 (Makefile.am): Likewise.
103982         * modules/md4 (Makefile.am): Likewise.
103983         * modules/md5 (Makefile.am): Likewise.
103984         * modules/memcasecmp (Makefile.am): Likewise.
103985         * modules/memchr (Makefile.am): Likewise.
103986         * modules/memcmp (Makefile.am): Likewise.
103987         * modules/memcoll (Makefile.am): Likewise.
103988         * modules/memcpy (Makefile.am): Likewise.
103989         * modules/memmem (Makefile.am): Likewise.
103990         * modules/memmove (Makefile.am): Likewise.
103991         * modules/mempcpy (Makefile.am): Likewise.
103992         * modules/memrchr (Makefile.am): Likewise.
103993         * modules/memset (Makefile.am): Likewise.
103994         * modules/memxor (Makefile.am): Likewise.
103995         * modules/mkancesdirs (Makefile.am): Likewise.
103996         * modules/mkdir (Makefile.am): Likewise.
103997         * modules/mkdir-p (Makefile.am): Likewise.
103998         * modules/mkdtemp (Makefile.am): Likewise.
103999         * modules/mkstemp (Makefile.am): Likewise.
104000         * modules/mktime (Makefile.am): Likewise.
104001         * modules/modechange (Makefile.am): Likewise.
104002         * modules/mountlist (Makefile.am): Likewise.
104003         * modules/nanosleep (Makefile.am): Likewise.
104004         * modules/openat (Makefile.am): Likewise.
104005         * modules/pagealign_alloc (Makefile.am): Likewise.
104006         * modules/physmem (Makefile.am): Likewise.
104007         * modules/poll (Makefile.am): Likewise.
104008         * modules/posixtm (Makefile.am): Likewise.
104009         * modules/posixver (Makefile.am): Likewise.
104010         * modules/putenv (Makefile.am): Likewise.
104011         * modules/quote (Makefile.am): Likewise.
104012         * modules/quotearg (Makefile.am): Likewise.
104013         * modules/raise (Makefile.am): Likewise.
104014         * modules/read-file (Makefile.am): Likewise.
104015         * modules/readline (Makefile.am): Likewise.
104016         * modules/readlink (Makefile.am): Likewise.
104017         * modules/readtokens (Makefile.am): Likewise.
104018         * modules/readutmp (Makefile.am): Likewise.
104019         * modules/realloc (Makefile.am): Likewise.
104020         * modules/regex (Makefile.am): Likewise.
104021         * modules/rename (Makefile.am): Likewise.
104022         * modules/rename-dest-slash (Makefile.am): Likewise.
104023         * modules/rijndael (Makefile.am): Likewise.
104024         * modules/rmdir (Makefile.am): Likewise.
104025         * modules/rpmatch (Makefile.am): Likewise.
104026         * modules/safe-read (Makefile.am): Likewise.
104027         * modules/safe-write (Makefile.am): Likewise.
104028         * modules/same (Makefile.am): Likewise.
104029         * modules/save-cwd (Makefile.am): Likewise.
104030         * modules/savedir (Makefile.am): Likewise.
104031         * modules/setenv (Makefile.am): Likewise.
104032         * modules/settime (Makefile.am): Likewise.
104033         * modules/sha1 (Makefile.am): Likewise.
104034         * modules/sig2str (Makefile.am): Likewise.
104035         * modules/snprintf (Makefile.am): Likewise.
104036         * modules/stdlib-safer (Makefile.am): Likewise.
104037         * modules/stpcpy (Makefile.am): Likewise.
104038         * modules/stpncpy (Makefile.am): Likewise.
104039         * modules/strcase (Makefile.am): Likewise.
104040         * modules/strcasestr (Makefile.am): Likewise.
104041         * modules/strchrnul (Makefile.am): Likewise.
104042         * modules/strcspn (Makefile.am): Likewise.
104043         * modules/strdup (Makefile.am): Likewise.
104044         * modules/strerror (Makefile.am): Likewise.
104045         * modules/strftime (Makefile.am): Likewise.
104046         * modules/strndup (Makefile.am): Likewise.
104047         * modules/strnlen (Makefile.am): Likewise.
104048         * modules/strpbrk (Makefile.am): Likewise.
104049         * modules/strsep (Makefile.am): Likewise.
104050         * modules/strstr (Makefile.am): Likewise.
104051         * modules/strtod (Makefile.am): Likewise.
104052         * modules/strtoimax (Makefile.am): Likewise.
104053         * modules/strtok_r (Makefile.am): Likewise.
104054         * modules/strtol (Makefile.am): Likewise.
104055         * modules/strtoll (Makefile.am): Likewise.
104056         * modules/strtoul (Makefile.am): Likewise.
104057         * modules/strtoull (Makefile.am): Likewise.
104058         * modules/strtoumax (Makefile.am): Likewise.
104059         * modules/strverscmp (Makefile.am): Likewise.
104060         * modules/time_r (Makefile.am): Likewise.
104061         * modules/timegm (Makefile.am): Likewise.
104062         * modules/tmpfile-safer (Makefile.am): Likewise.
104063         * modules/unistd-safer (Makefile.am): Likewise.
104064         * modules/unlinkdir (Makefile.am): Likewise.
104065         * modules/userspec (Makefile.am): Likewise.
104066         * modules/utime (Makefile.am): Likewise.
104067         * modules/utimecmp (Makefile.am): Likewise.
104068         * modules/utimens (Makefile.am): Likewise.
104069         * modules/vasnprintf (Makefile.am): Likewise.
104070         * modules/vasprintf (Makefile.am): Likewise.
104071         * modules/vsnprintf (Makefile.am): Likewise.
104072         * modules/xalloc (Makefile.am): Likewise.
104073         * modules/xgetcwd (Makefile.am): Likewise.
104074         * modules/xnanosleep (Makefile.am): Likewise.
104075         * modules/xreadlink (Makefile.am): Likewise.
104076         * modules/xstrtod (Makefile.am): Likewise.
104077         * modules/xstrtol (Makefile.am): Likewise.
104078         * modules/xstrtold (Makefile.am): Likewise.
104079         * modules/yesno (Makefile.am): Likewise.
104081 2006-10-12  Jim Meyering  <jim@meyering.net>
104083         * m4/getloadavg.m4: Revert the change below.
104085         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
104086         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
104087         fail with a symlink, which is what coreutils' ./bootstrap now
104088         creates by default.
104090 2006-10-12  Bruno Haible  <bruno@clisp.org>
104092         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
104093         mingw.
104094         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
104095         MSVC and mingw explicitly.
104097 2006-10-11  Simon Josefsson  <jas@extundo.com>
104098             Bruno Haible  <bruno@clisp.org>
104100         Add support for multiple gnulib-tool invocations in the scope of a
104101         single configure.ac file.
104102         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
104103         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
104104         with the same contents as the _LIBADD variable.
104105         (func_emit_initmacro_start, func_emit_initmacro_end,
104106         func_emit_initmacro_done): New functions.
104107         (func_import, func_create_testdir): Invoke them. Allow the identifiers
104108         gl_LIBOBJS and gl_LTLIBOBJS.
104110 2006-10-11  Bruno Haible  <bruno@clisp.org>
104112         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
104113         (func_create_testdir): Don't create po/Makefile.am, don't invoke
104114         autoreconf. Instead, invoke autopoint explicitly but move back the
104115         *.m4 files from gnulib.
104117 2006-10-11  Bruno Haible  <bruno@clisp.org>
104119         * gnulib-tool (func_usage): Make module names after --create-testdir
104120         optional.
104121         (func_create_testdir): If no module was specified, use nearly all
104122         modules.
104124 2006-10-12  Jim Meyering  <jim@meyering.net>
104126         Big performance improvement for fts-based tools that use FTS_NOSTAT.
104127         Avoid spurious inode-mismatch problems on non-POSIX file systems.
104128         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
104129         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
104130         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
104131         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
104132         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
104133         (fts_set_stat_required): New function.
104134         (fts_open): Defer the calls to fts_stat, if possible or requested.
104135         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
104136         into fts_stat itself.
104137         (fts_read): Perform any required (deferred) fts_stat call.
104138         (fts_build): Likewise, for the directory we're about to open and read.
104139         In the readdir loop, carefully decide whether each entry will require
104140         an eventual call to fts_stat, using dirent.d_type info if available.
104141         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
104142         a command line argument into this function.  Update all callers.
104143         Map a return value of FTS_DOT to FTS_D for a command line argument.
104144         * modules/fts (Depends-on): Add d-type.  Alphabetize.
104145         Thanks to Miklos Szeredi for his tenacity and for the initial
104146         bug report about "find" failing on a FUSE-based file system.
104148         * lib/fts.c (fts_open): Use consistent indentation.
104150 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
104152         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
104153         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
104154         reported by Jim Meyering.  All uses of cache variables renamed
104155         to match Autoconf's.
104156         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
104157         the other one.
104159         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
104160         Fix misspelling in diagnostic.
104162 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
104164         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
104165         defined.  Problem reported by Matthew Woehlke.
104167         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
104168         Add support for Tandem NonStop R series.
104169         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
104170         Use new macro.
104172         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
104173         (has_trailing_slash): Omit size arg; all callers changed.
104174         Omit 'inline', since it doesn't help performance and we'd
104175         need to configure it.
104176         Don't count //, ///, etc. as having a trailing slash.
104177         As a side effect, this removes a C99ism reported by Matthew Woehlke.
104178         (rpl_rename_dest_slash): On failure, use rename's errno rather
104179         than (in some cases) an incorrect or junk errno.
104180         Simplify code by removing need to compute length; this does
104181         cause it to make two passes instead of one over the file name,
104182         but it's worth it.
104184         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
104185         change, since Autoconf's version may no longer be appropriate now
104186         that we are using CVS Autoconf's version.  Add support for Tandem.
104188 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
104189             Bruno Haible  <bruno@clisp.org>
104191         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
104192         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
104193         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
104194         gl_AC_TYPE_LONG_LONG.
104196         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
104197         instead of HAVE_LONG_LONG.
104198         * lib/printf-args.c (printf_fetchargs): Likewise.
104199         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
104200         * lib/vasnprintf.c (VASNPRINTF): Likewise.
104201         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
104202         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
104203         gl_AC_TYPE_LONG_LONG.
104205 2006-10-11  Bruno Haible  <bruno@clisp.org>
104207         * m4/longlong.m4: Add comments.
104208         * m4/ulonglong.m4: Likewise.
104210 2006-10-10  Bruno Haible  <bruno@clisp.org>
104212         Make it possible to #define stpcpy, strdup to aliases.
104213         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
104214         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
104216 2006-10-10  Bruno Haible  <bruno@clisp.org>
104218         Make it possible to #define gcd to an alias.
104219         * lib/gcd.c: Include config.h.
104221 2006-10-10  Bruno Haible  <bruno@clisp.org>
104223         Make it possible to #define c_isascii to an alias.
104224         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
104225         defined. Undefine the macros before defining them, to avoid gcc
104226         warnings.
104227         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
104228         define NO_C_CTYPE_MACROS early.
104230 2006-10-10  Bruno Haible  <bruno@clisp.org>
104232         Make it possible to #define set_program_name to an alias.
104233         * lib/progname.c: Don't undefine set_program_name; instead, undefine
104234         ENABLE_RELOCATABLE early.
104236 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
104238         Port to Tandem NSK OSS, which has 64-bit signed int but at most
104239         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
104240         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00062.html
104241         More generally, don't assume that 64-bit signed int is available
104242         if unsigned int is, and vice versa.
104243         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
104244         unsigned symbols, not on their signed counterparts.
104245         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
104246         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
104247         (UINT64_C, UINTMAX_C):
104248         Likewise.
104249         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
104250         unsigned counterparts.
104251         (Have_long_long, Unsigned): New macros.
104252         (Int): Renamed from INT.
104253         (strtoimax): Use the new macros.
104254         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
104255         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
104256         * modules/inttypes (inttypes.h): Substitute
104257         HAVE_UNSIGNED_LONG_LONG_INT.
104258         * modules/stdint (stdint.h): Likewise.
104259         (Files): Add m4/ulonglong.m4.
104261 2006-10-10  Bruno Haible  <bruno@clisp.org>
104263         Fix a gcc -Wshadow warning.
104264         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
104265         to 'bucket'.
104266         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
104267         gl_linked_indexof_from_to): Likewise.
104268         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
104269         Likewise.
104270         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
104271         Likewise.
104272         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
104273         Reported by Eric Blake.
104275 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
104277         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
104278         for NetBSD.  Problem reported by Bruno Haible.
104280 2006-10-09  Jim Meyering  <jim@meyering.net>
104282         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
104283         Patch from Bruno Haible.
104285 2006-10-09  Jim Meyering  <jim@meyering.net>
104287         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
104288         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
104289         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
104291 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
104293         Don't include <config.h> twice; this doesn't work in some cases,
104294         e.g., when config.h has "#define intmax_t long long int" and
104295         we include <config.h>, <inttypes.h>, <config.h> in that order.
104296         Problem reported by Matthew Woehlke in:
104297         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00073.html
104298         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
104299         * lib/fts-cycle.c: Don't include config.h.
104300         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
104301         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
104302         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
104303         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
104304         inttypes.h.
104305         * lib/xstrtoumax.c: Likewise.
104306         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
104307         __strtol and the like, so that this module is more like its siblings.
104308         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
104309         Remove; no longer needed now that we assume gnulib inttypes.h.
104311 2006-10-08  Bruno Haible  <bruno@clisp.org>
104313         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
104314         option.
104316 2006-10-07  Jim Meyering  <jim@meyering.net>
104318         * modules/inttypes (inttypes.h): Revert what seems to have been
104319         an inadvertent part of today's change: use "|", not "/" in the
104320         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
104322 2006-10-07  Bruno Haible  <bruno@clisp.org>
104324         * modules/sublist: New file.
104326 2006-10-07  Bruno Haible  <bruno@clisp.org>
104328         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
104329         * modules/argz (argz.h): Likewise.
104330         * modules/arpa_inet (arpa/inet.h): Likewise.
104331         * modules/byteswap (byteswap.h): Likewise.
104332         * modules/configmake (configmake.h): Likewise.
104333         * modules/fcntl (fcntl.h): Likewise.
104334         * modules/fnmatch (fnmatch.h): Likewise.
104335         * modules/getopt (getopt.h): Likewise.
104336         * modules/glob (glob.h): Likewise.
104337         * modules/inttypes (inttypes.h): Likewise.
104338         * modules/netinet_in (netinet/in.h): Likewise.
104339         * modules/poll (poll.h): Likewise.
104340         * modules/stdbool (stdbool.h): Likewise.
104341         * modules/stdint (stdint.h): Likewise.
104342         * modules/sys_select (sys/select.h): Likewise.
104343         * modules/sys_socket (sys/socket.h): Likewise.
104344         * modules/sys_stat (sys/stat.h): Likewise.
104345         * modules/sysexits (sysexits.h): Likewise.
104346         * modules/unistd (unistd.h): Likewise.
104347         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
104348         Add a "DO NOT EDIT" comment to the generated file.
104349         (func_import): Likewise for gnulib-comp.m4.
104351 2006-10-07  Bruno Haible  <bruno@clisp.org>
104353         * lib/gl_sublist.h: New file.
104354         * lib/gl_sublist.c: New file.
104356 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
104358         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
104359         name (relative to the original working directory) and the file
104360         name component (relative to the temporary working directory).  All
104361         callers changed.
104362         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
104363         * lib/mkdir-p.c (make_dir_parents): Likewise.
104364         * lib/mkdir-p.h (make_dir_parents): Likewise.
104366 2006-10-06  Eric Blake  <ebb9@byu.net>
104368         Define several macros for use by the clean-temp module.
104369         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
104370         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
104371         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
104373         * lib/clean-temp.h (close_stream_temp): New declaration.
104374         * lib/clean-temp.c (includes): Pull in headers according to what
104375         other modules are in use.
104376         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
104378 2006-10-06  Bruno Haible  <bruno@clisp.org>
104380         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
104381         instead of fopen, fwriteerror.
104383 2006-10-06  Bruno Haible  <bruno@clisp.org>
104385         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
104386         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
104387         int.
104388         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
104389         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
104390         Return an error indicator.
104391         Suggested by Eric Blake.
104393 2006-10-06  Bruno Haible  <bruno@clisp.org>
104395         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
104396         Reported by Eric Blake.
104398 2006-10-06  Bruno Haible  <bruno@clisp.org>
104400         * modules/closeout (Description): Mention stderr too.
104402 2006-10-06  Bruno Haible  <bruno@clisp.org>
104403         and Paul Eggert  <eggert@cs.ucla.edu>
104405         * lib/closeout.c (close_stdout): Also close stderr.
104406         * lib/closeout.h: Update comment.
104408 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
104410         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
104411         <http://lists.gnu.org/r/bug-coreutils/2006-10/msg00063.html>.
104412         * lib/dirchownmod.c: Include lchown.h.
104413         * lib/lchown.c: Don't include files that lchown.h now includes.
104414         Don't declare chown, since lchown.h now does that.
104415         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
104416         (lchown): Define to rpl_chown if lchown is declared but
104417         does not exist.  Declare using a prototype if lchown is not
104418         declared.  Add a copyright notice.
104419         * lib/mkstemp.h: Include <unistd.h>.
104420         * lib/openat.c: Include lchown.h.
104422         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
104423         we now test for that separately.
104424         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
104425         rather than O_NOFOLLOW, when testing whether it's possible to
104426         avoid a race condition reliably.
104427         * lib/savewd.c (savewd_chdir): Likewise.
104429         Remove macros that are no longer needed now that stdint.h is
104430         reliable.
104431         * lib/fsusage.c (UINTMAX_MAX): Remove.
104432         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
104433         * lib/utimecmp.c (SIZE_MAX): Remove.
104435         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
104437         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
104438         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
104439         O_NOATIME works.
104441 2006-10-05  Bruno Haible  <bruno@clisp.org>
104443         * lib/gl_list.h (gl_sortedlist_search_from_to,
104444         gl_sortedlist_indexof_from_to): New declarations.
104445         (gl_list_implementation): New fields sortedlist_search_from_to,
104446         sortedlist_indexof_from_to.
104447         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
104448         inline functions.
104449         * lib/gl_list.c (gl_sortedlist_search_from_to,
104450         gl_sortedlist_indexof_from_to): New functions.
104451         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
104452         function.
104453         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
104454         (gl_array_sortedlist_search_from_to): New function.
104455         (gl_array_list_implementation): Update.
104456         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
104457         function.
104458         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
104459         (gl_carray_sortedlist_search_from_to): New function.
104460         (gl_carray_list_implementation): Update.
104461         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
104462         gl_linked_sortedlist_indexof_from_to): New functions.
104463         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
104464         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
104465         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
104466         gl_tree_sortedlist_indexof_from_to): New functions.
104467         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
104468         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
104469         Update.
104470         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
104471         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
104472         Update.
104474 2006-10-05  Bruno Haible  <bruno@clisp.org>
104476         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
104477         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
104478         (struct gl_list_implementation): Add fields search_from_to,
104479         indexof_from_to. Remove fields search, indexof.
104480         (gl_list_search): Use the search_from_to method.
104481         (gl_list_search_from, gl_list_search_from_to): New functions.
104482         (gl_list_indexof): Use the indexof_from_to method.
104483         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
104484         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
104485         (gl_list_search_from, gl_list_search_from_to): New functions.
104486         (gl_list_indexof): Use the indexof_from_to method.
104487         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
104488         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
104489         gl_array_indexof. Add start_index, end_index arguments.
104490         (gl_array_search_from_to): Renamed from gl_array_search. Add
104491         start_index, end_index arguments.
104492         (gl_array_remove, gl_array_list_implementation): Update.
104493         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
104494         gl_carray_indexof. Add start_index, end_index arguments.
104495         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
104496         start_index, end_index arguments.
104497         (gl_carray_remove, gl_carray_list_implementation): Update.
104498         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
104499         gl_linked_search. Add start_index, end_index arguments.
104500         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
104501         start_index, end_index arguments.
104502         (gl_linked_remove): Update.
104503         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
104504         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
104505         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
104506         field to 'size_t'.
104507         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
104508         gl_tree_search. Add start_index, end_index arguments.
104509         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
104510         start_index, end_index arguments.
104511         (gl_tree_remove): Update.
104512         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
104513         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
104514         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
104515         function.
104516         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
104517         gl_tree_search. Add start_index, end_index arguments.
104518         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
104519         start_index, end_index arguments.
104520         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
104521         Update.
104522         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
104524 2006-10-05  Bruno Haible  <bruno@clisp.org>
104526         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
104528         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
104529         fwriteerror_temp): New declarations.
104530         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
104531         (descriptors): New variable.
104532         (cleanup): First, close the descriptors.
104533         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
104534         fclose_temp, fwriteerror_temp): New functions.
104536 2006-10-04  Jim Meyering  <jim@meyering.net>
104538         * lib/fts.c (fts_open): Tiny comment change.
104540 2006-10-04  Bruno Haible  <bruno@clisp.org>
104542         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
104543         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
104544         gl_LOCK_BODY.
104545         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
104546         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
104547         gl_LOCK_EARLY_BODY.
104548         (gl_LOCK): Require gl_LOCK_BODY.
104550 2006-10-04  Bruno Haible  <bruno@clisp.org>
104552         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
104553         (gl_oset_search_atleast): New declaration.
104554         (struct gl_oset_implementation): Add field 'search_atleast'.
104555         (gl_oset_search_atleast): New inline function.
104556         * lib/gl_oset.c (gl_oset_search_atleast): New function.
104557         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
104558         (gl_array_oset_implementation): Update.
104559         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
104560         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
104561         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
104563 2006-10-04  Bruno Haible  <bruno@clisp.org>
104565         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
104567 2006-10-03  Bruno Haible  <bruno@clisp.org>
104569         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
104570         from gl_avltreehash_list_implementation.
104572 2006-10-03  Bruno Haible  <bruno@clisp.org>
104574         * lib/gl_oset.c (gl_oset_add): Fix return type.
104576 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
104578         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
104580 2006-10-02  Eric Blake  <ebb9@byu.net>
104582         * modules/strnlen (Depends-on): Add extensions.
104584 2006-10-02  Eric Blake  <ebb9@byu.net>
104586         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
104587         definition in 2.60+.
104589 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
104591         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
104592         checks.
104594 2006-10-02  Bruno Haible  <bruno@clisp.org>
104596         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
104597         to the AUTOMAKE_OPTIONS.
104598         Reported by Jim Meyering.
104600 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
104602         Work around bug in Solaris 10 /proc file system:
104603         /proc/self/fd/NNN/.. isn't the parent directory of
104604         the directory whose file descriptor is NNN.  This needs to
104605         be worked around at run time, not compile time, since a
104606         program might be built on Solaris 8, where things work, and
104607         run on Solaris 10.
104608         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
104609         to use the following interface instead:
104610         (OPENAT_BUFFER_SIZE): New macro.
104611         (openat_proc_name): New function.
104612         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
104613         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
104614         Likewise.
104615         * lib/openat-proc.c: New file.
104616         * modules/openat (Files): Add lib/openat-proc.c.
104617         (Depends-on): Add same-inode, stdbool.
104618         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
104620 2006-09-29  Bruno Haible  <bruno@clisp.org>
104622         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
104623         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
104624         argument. Set stdout_closed before testing for ferror, not after.
104625         (fwriteerror, fwriteerror_no_ebadf): New functions.
104627 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104629         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
104631 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
104633         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
104634         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
104636 2006-09-28  Jim Meyering  <jim@meyering.net>
104638         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
104639         Include <unistd.h>.
104641 2006-09-28  Bruno Haible  <bruno@clisp.org>
104643         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
104644         * modules/linkedhash-list (Depends-on): Likewise.
104645         * modules/rbtreehash-list (Depends-on): Likewise.
104647 2006-09-28  Bruno Haible  <bruno@clisp.org>
104649         * lib/strndup.h: Simplify the redefinition of strndup.
104650         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
104651         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
104653 2006-09-28  Bruno Haible  <bruno@clisp.org>
104655         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
104656         * lib/gl_linkedhash_list.c: Likewise.
104657         * lib/gl_rbtreehash_list.c: Likewise.
104659 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
104661         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
104662         getaddrinfo.
104664         * lib/__fpending.h: Don't include <stdio_ext.h> unless
104665         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
104666         it causes <stdio_ext.h> to cause a compile-time error.
104667         Problem reported by Nelson H. F. Beebe.
104668         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
104669         of HAVE_DECL___PENDING.
104671         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
104672         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
104673         declaration.
104675 2006-09-27  Jim Meyering  <jim@meyering.net>
104677         This file could end up with a definition for a function
104678         named __strndup, rather than rpl_strndup on a system with
104679         incomplete weak_alias support.
104680         * lib/strndup.c (strndup): Rename from __strndup.
104681         Remove #defines that used to map __strndup to strndup.
104682         Don't use K&R prototypes.
104683         Remove LIBC-related code, since this file is not sync'd with glibc.
104684         * lib/strndup.h: Revamp, accordingly.
104685         * m4/strndup.m4: Modernize.
104687 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
104689         * modules/savewd (Depends-on): Add 'raise'.
104690         * lib/savewd.c: Include <signal.h>, for 'raise'.
104692 2006-09-26  Jim Meyering  <jim@meyering.net>
104694         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
104695         when we detect Darwin 8.7.0's acl_get_file bug.
104696         Rearrange to perform the new (below) run-test while $LIBS
104697         contains any acl-related library.  Set USE_ACL at the end.
104698         (gl_ACL_GET_FILE): New function.
104700 2006-09-26  Eric Blake  <ebb9@byu.net>
104702         * lib/verror.c: Include <config.h> unconditionally.
104704 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
104706         * modules/clock-time (Maintainer): Add self.
104707         * modules/getlogin_r (Depends-on): Add extensions.
104709 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104711         * modules/clock-time: New module.
104712         * modules/nanosleep (Depends-on): Add clock-time.
104713         * modules/gethrxtime (Depends-on): Likewise.
104714         * modules/gettime (Depends-on): Likewise.
104715         * modules/settime (Depends-on): Likewise.
104717         * modules/fts-lgpl: Depend on openat.
104718         * modules/mkancesdirs: Depend on savewd.
104719         * modules/mkdir-p: Likewise.
104721 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104723         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
104725         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
104726         `gl_have_arbitrary_file_name_length_limit' to
104727         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
104728         actually works between configure runs.
104730 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104731             Bruno Haible  <bruno@clisp.org>
104733         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
104735 2006-09-25  Jim Meyering  <jim@meyering.net>
104737         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
104738         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
104740 2006-09-25  Eric Blake  <ebb9@byu.net>
104742         * gnulib-tool (func_import, func_create_testdir): Fix typos in
104743         exec's in 2006-09-18 patch when shuffling fds.
104745 2006-09-25  Bruno Haible  <bruno@clisp.org>
104747         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
104748         Reported by Jim Meyering.
104750 2006-09-24  Jim Meyering  <jim@meyering.net>
104752         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
104753         compare a pointer against a literal "0".  That caused failures with
104754         at least HP-UX's hpcc.
104756 2006-09-22  Simon Josefsson  <jas@extundo.com>
104758         * modules/gc-sha1:
104759         * modules/gc-md4:
104760         * modules/gc-hmac-sha1:
104761         * modules/gc-hmac-md5:
104762         * modules/gc-des:
104763         * modules/gc-arcfour: Distribute more files.
104765 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104767         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
104768         (gl_linked_iterator_from_to): Initialize struct completely.
104769         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
104770         (gl_tree_iterator_from_to): Likewise
104771         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
104772         * lib/gl_array_list.c [lint] (gl_array_iterator)
104773         (gl_array_iterator_from_to): Likewise.
104774         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
104775         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
104776         (gl_carray_iterator_from_to): Likewise.
104778         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
104779         * lib/md4.c (md4_process_block): Remove unused variable.
104780         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
104781         parentheses for clarity.
104783 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104785         * modules/bison-i18n (Depends-on): Add gettext.
104787 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104789         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
104790         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
104791         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
104792         also add missing comma that caused broken test.
104793         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
104794         stdlib.h, for `abort'.
104795         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
104796         variables.
104797         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
104798         include unistd.h if present, for `rmdir'.
104799         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
104800         variables.
104801         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
104802         in the process include standard headers for prototypes.
104803         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
104804         gets declared on GNU/Linux.
104805         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
104806         unistd.h, for `rmdir'.
104807         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
104809         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
104810         always true.
104811         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
104813         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
104815 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104817         * gnulib-tool (func_version): Create output all at once.  This
104818         may help avoid triggering unnecessary SIGPIPEs, and at any
104819         rate it doesn't hurt.
104821 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104822             Bruno Haible  <bruno@clisp.org>
104824         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
104825         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
104826         * m4/signed.m4 (bh_C_SIGNED): Likewise.
104828         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
104829         (gl_FUNC_VASPRINTF): Invoke it.
104831 2006-09-22  Bruno Haible  <bruno@clisp.org>
104833         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
104834         getloadavg.c as first argument.
104836 2006-09-22  Bruno Haible  <bruno@clisp.org>
104838         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
104839         at the beginning of the gl_INIT macro.
104840         * modules/getloadavg (configure.ac): Pass $gl_source_base to
104841         gl_GETLOADAVG.
104843 2006-09-22  Bruno Haible  <bruno@clisp.org>
104845         * gnulib-tool (func_create_megatestdir): Don't include the config-h
104846         module.
104847         Suggested by Ralf Wildenhues.
104849 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
104851         Import this patch from libc:
104853         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
104855         * lib/regex_internal.c (re_string_reconstruct): Handle
104856         offset < pstr->valid_raw_len && pstr->offsets_needed case.
104857         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
104858         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
104859         re_string_context_at.
104861         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
104862         now requires it.
104863         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
104864         gl_REGEX now does it for us.
104865         (gl_REGEX): Add test taken from
104866         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
104868         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
104869         Check that large offsets work.  Modernize Autoconf usages.
104870         Prefer "yes" to mean a good thing rather than a bad.
104871         Don't put "#define mkstemp" in config.h, as this might interfere
104872         with standard system headers that "#define mkstemp mkstemp64".
104874         * modules/mkstemp (Depends-on): Add extensions, so that
104875         mkstemp is visible on some platforms.
104876         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
104877         (Include): Change to "mkstemp.h" from <stdlib.h>.
104878         (Files): Add mkstemp.h.
104880         * lib/mkstemp.h: New file, since some standard headers
104881         #define mkstemp.
104882         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
104883         Include "mkstemp.h".
104884         Make the _LIBC code resemble glibc original more,
104885         e.g., use K&R style.
104886         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
104887         (mkstemp): Remove, since mkstemp.h does this for us.
104888         * lib/stdlib--.h: Include mkstemp.h.
104890         Import this patch from libc:
104892         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
104894         * lib/tempname.c (__gen_tempname): Change attempts_min
104895         into a macro.  Use preprocessor to decide how to initialize
104896         attempts [Coverity CID 67].
104898 2006-09-20  Bruno Haible  <bruno@clisp.org>
104900         * lib/mkdtemp.c: Import from libc.
104901         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
104902                 * sysdeps/posix/tempname.c (__gen_tempname): Change
104903                 attempts_min into a macro.  Use preprocessor to decide how to
104904                 initialize attempts [Coverity CID 67].
104905         2001-11-27  Paul Eggert  <eggert@twinsun.com>
104906                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
104907                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
104909 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104911         * gnulib-tool (func_exit): New function, to allow to pass the
104912         exit status portably through the trap.  Use everywhere.
104913         (--help, --version): Signal a write error.
104914         (trap): catch SIGPIPE, for write errors.
104915         Exit at the end of the trap, with the correct exit status.
104917 2006-09-19  Karl Berry  <karl@gnu.org>
104919         * doc/gnulib.texi: note about the license texinfo files.
104921 2006-09-19  Eric Blake  <ebb9@byu.net>
104923         * gnulib-tool: Avoid space-tab.
104925 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
104927         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
104928         that prevented coreutils 6.1 from building.  Problem reported
104929         by Petter Reinholdtsen.
104931 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
104933         * gnulib-tool (avoidlist): Fix typo that broke options like
104934         --avoid=lock that are used by coreutils bootstrap.
104936 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
104938         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
104939         more systematically.
104941 2006-09-18  Jim Meyering  <jim@meyering.net>
104943         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
104945 2006-09-18  Bruno Haible  <bruno@clisp.org>
104947         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
104949 2006-09-18  Bruno Haible  <bruno@clisp.org>
104951         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
104952         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
104953         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
104954         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
104955         * m4/gettext.m4: Require autoconf >= 2.52.
104956         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
104957         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
104958         of gl_cv_header_inttypes_h.
104960 2006-09-18  Bruno Haible  <bruno@clisp.org>
104962         * lib/javaversion.c: Include configmake.h.
104964 2006-09-18  Bruno Haible  <bruno@clisp.org>
104966         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
104967         avoid that the while loops be executed in a subshell.
104969 2006-09-18  Bruno Haible  <bruno@clisp.org>
104971         * MODULES.html.sh (func_module): Break long lines.
104972         Suggested by Bruce Korb <bkorb@gnu.org>.
104974 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104976         Speed up by a factor of 1.12.
104977         * gnulib-tool (nl): New variable.
104978         (func_import): Rewrite include directive extraction to only read each
104979         directive once.
104981 2006-09-17  Bruno Haible  <bruno@clisp.org>
104983         * modules/javaversion (Makefile.am): Remove DEFS setting.
104984         (Depends-on): Add configmake, for PKGDATADIR definition.
104986 2006-09-17  Bruno Haible  <bruno@clisp.org>
104988         * gnulib-tool (func_create_testdir): Rewrite all files at once.
104990 2006-09-17  Bruno Haible  <bruno@clisp.org>
104992         * gnulib-tool (func_append): New function, stolen from libtool.m4.
104993         (func_modules_transitive_closure, func_modules_add_dummy,
104994         func_modules_to_filelist, func_import, func_create_testdir,
104995         func_create_megatestdir, ...): Use it wherever possible.
104996         Suggested by Ralf Wildenhues.
104998 2006-09-16  Karl Berry  <karl@gnu.org>
105000         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
105001         to avoid sectioning errors.
105002         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
105003         [ifinfo]: blank line after @center-ed titles.
105004         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
105005         Spell FSF address consistently with others.
105006         (These changes approved by rms.)
105008 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
105010         Speed up by a factor of 1.61.
105011         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
105012         already checked module names again.
105014 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
105016         Speed up by a factor of 1.13.
105017         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
105018         for new_files, and the input to func_add_or_update.
105020 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
105022         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
105023         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
105025 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
105027         * modules/mkancesdirs (Depends-on): Add fcntl.
105028         * modules/savewd: New file.
105029         * MODULES.html.sh (File system functions): Add savewd.
105031         * modules/configmake (Makefile.am): Add support for the
105032         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
105034 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
105036         * m4/savewd.m4: New file.
105038 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
105040         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
105041         (dirchownmod): New arg FD.  All callers changed.
105042         Use FD rather than opening the directory ourself, as opening is
105043         now the caller's responsibility.
105044         * lib/dirchownmod.h: Likewise.
105045         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
105046         hosts that require <sys/types.h> before <sys/stat.h>.  Include
105047         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
105048         (test_dir): Remove.
105049         (mkancesdirs): Return length of prefix of FILE that has already
105050         been made, or -2 if there is a child doing the work.  Redo
105051         algorithm so that it is O(N) rather than O(N**2).  Optimize away
105052         ".", and treat ".." specially since it might stray back into
105053         already-created areas.  Use a subprocess if necessary.  New arg
105054         WD; all users changed.  MAKE_DIR function should now return 1
105055         if it creates a directory that is not readable.  Return -2 if
105056         a child process is spun off.
105057         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
105058         Adjust signature to match code.
105059         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
105060         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
105061         all users changed.
105062         * lib/savewd.c, lib/savewd.h: New files.
105064 2006-09-15  Jim Meyering  <jim@meyering.net>
105066         * modules/rename-dest-slash: New module.
105067         * MODULES.html.sh (posix_compat): Add it here.
105069         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
105071 2006-09-15  Jim Meyering  <jim@meyering.net>
105073         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
105074         file.
105076         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
105078 2006-09-15  Jim Meyering  <jim@meyering.net>
105080         * lib/rename-dest-slash.c (has_trailing_slash): Use
105081         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
105082         (rpl_rename_dest_slash): Perform the cheaper trailing slash
105083         test before testing whether SRC is a directory.
105084         Suggestions from Bruno Haible.
105086         Avoid a warning about an unused variable.
105087         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
105088         into the #ifdef block where it's used.
105090         * lib/rename-dest-slash.c: New file.
105092 2006-09-14  Bruno Haible  <bruno@clisp.org>
105094         * lib/allocsa.c: Include <config.h> unconditionally.
105095         * lib/asnprintf.c: Likewise.
105096         * lib/asprintf.c: Likewise.
105097         * lib/c-strcasecmp.c: Likewise.
105098         * lib/c-strcasestr.c: Likewise.
105099         * lib/c-strncasecmp.c: Likewise.
105100         * lib/c-strstr.c: Likewise.
105101         * lib/classpath.c: Likewise.
105102         * lib/clean-temp.c: Likewise.
105103         * lib/concatpath.c: Likewise.
105104         * lib/copy-file.c: Likewise.
105105         * lib/csharpcomp.c: Likewise.
105106         * lib/csharpexec.c: Likewise.
105107         * lib/execute.c: Likewise.
105108         * lib/fatal-signal.c: Likewise.
105109         * lib/findprog.c: Likewise.
105110         * lib/fwriteerror.c: Likewise.
105111         * lib/gl_array_list.c: Likewise.
105112         * lib/gl_array_oset.c: Likewise.
105113         * lib/gl_avltree_list.c: Likewise.
105114         * lib/gl_avltree_oset.c: Likewise.
105115         * lib/gl_avltreehash_list.c: Likewise.
105116         * lib/gl_carray_list.c: Likewise.
105117         * lib/gl_linked_list.c: Likewise.
105118         * lib/gl_linkedhash_list.c: Likewise.
105119         * lib/gl_list.c: Likewise.
105120         * lib/gl_oset.c: Likewise.
105121         * lib/gl_rbtree_list.c: Likewise.
105122         * lib/gl_rbtree_oset.c: Likewise.
105123         * lib/gl_rbtreehash_list.c: Likewise.
105124         * lib/imaxabs.c: Likewise.
105125         * lib/imaxdiv.c: Likewise.
105126         * lib/javacomp.c: Likewise.
105127         * lib/javaexec.c: Likewise.
105128         * lib/javaversion.c: Likewise.
105129         * lib/linebreak.c: Likewise.
105130         * lib/localcharset.c: Likewise.
105131         * lib/lock.c: Likewise.
105132         * lib/mbchar.c: Likewise.
105133         * lib/mbswidth.c: Likewise.
105134         * lib/mkdtemp.c: Likewise.
105135         * lib/pipe.c: Likewise.
105136         * lib/printf-args.c: Likewise.
105137         * lib/printf-parse.c: Likewise.
105138         * lib/progname.c: Likewise.
105139         * lib/progreloc.c: Likewise.
105140         * lib/readlink.c: Likewise.
105141         * lib/sh-quote.c: Likewise.
105142         * lib/stpcpy.c: Likewise.
105143         * lib/stpncpy.c: Likewise.
105144         * lib/strcasecmp.c: Likewise.
105145         * lib/strcasestr.c: Likewise.
105146         * lib/strcspn.c: Likewise.
105147         * lib/striconv.c: Likewise.
105148         * lib/strncasecmp.c: Likewise.
105149         * lib/strnlen1.c: Likewise.
105150         * lib/strstr.c: Likewise.
105151         * lib/strtok_r.c: Likewise.
105152         * lib/tls.c: Likewise.
105153         * lib/tmpdir.c: Likewise.
105154         * lib/unicodeio.c: Likewise.
105155         * lib/unsetenv.c: Likewise.
105156         * lib/vasnprintf.c: Likewise.
105157         * lib/vasprintf.c: Likewise.
105158         * lib/wait-process.c: Likewise.
105159         * lib/xallocsa.c: Likewise.
105160         * lib/xsetenv.c: Likewise.
105161         * lib/xstriconv.c: Likewise.
105163 2006-09-13  Simon Josefsson  <jas@extundo.com>
105165         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
105166         that internally, suggested by Ralf Wildenhues
105167         <Ralf.Wildenhues@gmx.de>.
105169 2006-09-13  Simon Josefsson  <jas@extundo.com>
105171         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
105172         @LIBOBJS@.
105173         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
105175 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
105177         * lib/_fpending.c: Include <config.h> unconditionally, since we no
105178         longer worry about uses that don't define HAVE_CONFIG_H.
105179         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
105180         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
105181         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
105182         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
105183         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
105184         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
105185         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
105186         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
105187         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
105188         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
105189         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
105190         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
105191         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
105192         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
105193         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
105194         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
105195         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
105196         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
105197         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
105198         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
105199         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
105200         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
105201         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
105202         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
105203         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
105204         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
105205         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
105206         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
105207         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
105208         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
105209         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
105210         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
105211         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
105212         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
105213         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
105214         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
105215         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
105216         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
105217         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
105218         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
105219         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
105220         Likewise.
105222 2006-09-13  Eric Blake  <ebb9@byu.net>
105224         * lib/getopt.c: Fix typo in last commit.
105226 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
105228         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
105229         dgettext.
105231 2006-09-12  Jim Meyering  <jim@meyering.net>
105233         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
105234         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
105235         Reported by Nelson H. F. Beebe.
105237 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
105239         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
105240         program_invocation_name and program_invocation_short_name are
105241         initialized.
105242         * lib/argp-namefrob.h: Move declarations of program_invocation_name
105243         and program_invocation_short_name to argp.h, so they are visible
105244         to user programs.
105245         * lib/argp.h: Likewise
105247 2006-09-10  Bruno Haible  <bruno@clisp.org>
105249         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
105250         m4/inttypes_h.m4, m4/uintmax_t.m4.
105252 2006-09-10  Bruno Haible  <bruno@clisp.org>
105254         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
105255         gl_AC_TYPE_UINTMAX_T.
105257 2006-09-10  Bruno Haible  <bruno@clisp.org>
105259         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
105261 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
105263         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
105264         convention.  Text proposed by Bruno Haible.
105265         (struct argp_option): Document the use of N_() wrappers.
105267         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
105268         '\v', and translate the two parts separately, instead of feeding
105269         the whole string to gettext.  This allows to exclude
105270         '\v' from the strings visible to the translator by writing doc
105271         strings as N_("..") "\v" N_("..").
105273 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
105275         * config/srclist.txt: Undo latest change; the bug was fixed.
105277 2006-09-09  Bruno Haible  <bruno@clisp.org>
105279         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
105280         assignments if building a library without libtool.
105281         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
105282         in func_emit_lib_Makefile_am.
105283         (func_import): When building a static library libfoo.a, arrange to
105284         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
105285         (func_create_testdir): Likewise.
105286         * modules/gc (configure.ac, Makefile.am): If building statically,
105287         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
105288         * modules/iconvme (configure.ac, Makefile.am): Likewise.
105289         * modules/striconv (configure.ac, Makefile.am): Likewise.
105290         Based on a suggestion by Ralf Wildenhues.
105292 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
105294         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
105295         Check for unistd.h too, since Autoconf doesn't assume POSIX.
105296         Also:
105298         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
105299         Add year_2050_test to catch glibc bug 2821
105300         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
105302         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
105303         Prefer #ifdef to #if.
105305         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
105306         Return from 'main' instead of calling 'exit'.
105308 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
105310         * lib/mktime.c (guess_time_tm): Fix bug where mktime
105311         returned the maximum time_t value rather than (time_t) -1.
105312         Problem originally reported by William Bardwell
105313         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
105315         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
105316         Moved to here ...
105317         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
105318         ... from here.
105320 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
105322         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
105323         2821 is fixed.
105325 2006-09-08  Jim Meyering  <jim@meyering.net>
105327         Don't make generated files read-only.  That would bother too many
105328         people.  However, do retain the ability to work when targets are
105329         read-only: remove the destination and temporary files before writing
105330         them (when generated via sed or echo), or by using the -f option for
105331         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
105332         * modules/alloca-opt, modules/argz, modules/arpa_inet:
105333         * modules/byteswap, modules/configmake, modules/fcntl:
105334         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
105335         * modules/localcharset, modules/netinet_in, modules/poll:
105336         * modules/stdbool, modules/stdint, modules/sys_select:
105337         * modules/sys_socket, modules/sys_stat, modules/sysexits:
105339 2006-09-08  Jim Meyering  <jim@meyering.net>
105341         Avoid new build failure on FreeBSD 6.0.
105342         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
105343         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
105344         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
105346 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
105348         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
105350 2006-09-07  Jim Meyering  <jim@meyering.net>
105352         Fix global typo in last change: use chmod u-w, not chmod u-x.
105353         Spotted by Paul Eggert and Bruce Korb.
105354         * modules/alloca-opt, modules/argz, modules/arpa_inet:
105355         * modules/byteswap, modules/configmake, modules/fcntl:
105356         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
105357         * modules/localcharset, modules/netinet_in, modules/poll:
105358         * modules/stdbool, modules/stdint, modules/sys_select:
105359         * modules/sys_socket, modules/sys_stat, modules/sysexits:
105361 2006-09-06  Jim Meyering  <jim@meyering.net>
105363         Make generated files be read-only.
105364         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
105365         Ensure that each generated file is now read-only.
105366         * modules/argz: Likewise.
105367         * modules/arpa_inet: Likewise.
105368         * modules/byteswap: Likewise.
105369         * modules/configmake: Likewise.
105370         * modules/fcntl: Likewise.
105371         * modules/fnmatch: Likewise.
105372         * modules/getopt: Likewise.
105373         * modules/glob: Likewise.
105374         * modules/inttypes: Likewise.
105375         * modules/netinet_in: Likewise.
105376         * modules/poll: Likewise.
105377         * modules/stdbool: Likewise.
105378         * modules/stdint: Likewise.
105379         * modules/sys_select: Likewise.
105380         * modules/sys_socket: Likewise.
105381         * modules/sys_stat: Likewise.
105382         * modules/sysexits: Likewise.
105383         * modules/localcharset: Same as above, but continue using temporary
105384         file named "t-$@" (why different?) rather than the "$@-t" used
105385         everywhere else.
105387         * modules/sysexits (Makefile.am): Replace literal occurrences
105388         of "sysexit.h" more readable, and more consistent, "$@".
105390 2006-09-06  Bruno Haible  <bruno@clisp.org>
105392         * modules/striconv: New file.
105393         * modules/xstriconv: New file.
105394         * MODULES.html.sh (Internationalization functions): Add striconv,
105395         xstriconv.
105397 2006-09-06  Bruno Haible  <bruno@clisp.org>
105399         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
105400         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
105401         not using libtool correctly.
105403 2006-09-06  Bruno Haible  <bruno@clisp.org>
105405         * lib/striconv.h: New file.
105406         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
105407         iconvstring.c.
105408         * lib/xstriconv.h: New file.
105409         * lib/xstriconv.c: New file.
105411 2006-09-06  Bruno Haible  <bruno@clisp.org>
105413         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
105414         lib_..._LDFLAGS.
105416 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
105418         * lib/argz_.h: Sync from Libtool.
105420         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
105421                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
105423         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
105425 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
105427         * modules/trim: New file.
105429 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
105431         * lib/trim.h: New file.
105432         * lib/trim.c: New file.
105434 2006-09-05  Bruno Haible  <bruno@clisp.org>
105436         * MODULES.html.sh (String handling): Add trim.
105438 2006-09-04  Karl Berry  <karl@gnu.org>
105440         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
105441         until next release.
105443 2006-09-03  Bruno Haible  <bruno@clisp.org>
105445         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
105446         correctly.
105448 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
105450         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
105451         not gl_GETLOADAVG.  Omit unneeded semicolons.
105452         Problems reported by Ralf Wildenhues in
105453         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
105454         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
105455         at the end, which is the usual gnulib style.
105457         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
105458         of doing all the work ourselves.
105459         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
105460         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
105462 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
105464         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
105465         Problem reported by Ralf Wildenhues in
105466         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
105468         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
105469         HAVE_STRUCT_STATFS_F_FSTYPENAME.
105471 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
105473         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
105474         yesterday's patch by changing test -n to test -z.
105476 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
105478         * modules/getloadavg (Files): Add m4/getloadavg.m4.
105479         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
105480         the former is now obsolescent.
105482         * modules/chdir-long (Depends-on): Add fcntl.
105484 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
105486         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
105487         obsolescent, and programs should use gnulib instead.
105488         * m4/getloadavg.m4: New file, with contents taken from Autoconf
105489         but with prefixes changed.
105491 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
105493         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
105494         or stdbool.h, because they might not exist while configuring.
105496         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
105497         Don't include unistd.h or limits.h; not needed, since chdir-long.h
105498         does that for us.
105499         (O_DIRECTORY): Remove.
105501 2006-08-31  Eric Blake  <ebb9@byu.net>
105503         * gnulib-tool: Don't let emacs change spaces to TAB.
105505 2006-08-31  Bruno Haible  <bruno@clisp.org>
105507         * gnulib-tool: When calling func_import more than once, do it in a
105508         subshell.
105509         Reported by Eric Blake <ebb9@byu.net>.
105511 2006-08-31  Bruno Haible  <bruno@clisp.org>
105513         * gnulib-tool (nl): Remove variable.
105514         (sed_transform_lib_file): Use more robust test for config-h module.
105515         (func_import): Fix typo in 2006-08-25 patch.
105517 2006-08-31  Bruno Haible  <bruno@clisp.org>
105519         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
105520         specified, augment Makefile.am variables instead of assigning them.
105522 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
105524         Work around a bug in both the Linux and SunOS 64-bit kernels:
105525         nanosleep mishandles sleeps for longer than 2**31 seconds.
105526         Problem reported by Frank v Waveren in
105527         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
105528         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
105529         Check for nanosleep bug.
105530         (LIB_NANOSLEEP): Append clock_gettime library if needed.
105532 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
105534         Work around a bug in both the Linux and SunOS 64-bit kernels:
105535         nanosleep mishandles sleeps for longer than 2**31 seconds.
105536         Problem reported by Frank v Waveren in
105537         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
105538         * lib/nanosleep.c (BILLION): New constant.
105539         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
105540         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
105541         implementation.
105543 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
105545         * modules/nanosleep (Depends-on): Add gettime.
105547 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
105548         and Simon Josefsson  <jas@extundo.com>
105549         and Oskar Liljeblad  <oskar@osk.mine.nu>
105551         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
105552         * gnulib-tool (func_import): New license type 'unmodifiable license
105553         text'.
105554         * modules/fdl: Use it.  Longer description.
105555         * module/gpl, module/lgpl: New files.
105557 2006-08-30  Jim Meyering  <jim@meyering.net>
105559         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
105560         shadowing the parameter.
105562 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
105564         Sync from Libtool:
105566         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
105568         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
105569         sharing with gnulib.  Report by Eric Blake.
105571 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
105573         * modules/isapipe: New file.
105574         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
105576 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
105578         * modules/configmake (Makefile.am): Add a comment, and omit
105579         the CONFIGMAKE_ prefix from generated macro names.  Suggested
105580         by Bruno Haible.
105582 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
105584         * m4/isapipe.m4: New file.
105586 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
105588         * lib/isapipe.c, lib/isapipe.h: New files.
105590 2006-08-29  Jim Meyering  <jim@meyering.net>
105592         * modules/configmake (Makefile.am): Make configmake.h depend on
105593         Makefile.  Otherwise, a stale configmake.h could hang around.
105595 2006-08-29  Eric Blake  <ebb9@byu.net>
105597         * lib/error.c (error_at_line, print_errno_message): Match libc, after
105598         resolution of upstream bug 3044.
105600 2006-08-29  Bruno Haible  <bruno@clisp.org>
105602         * modules/localcharset (Depends-on): Add configmake.
105603         (Makefile.am): Remove setting of LIBDIR through DEFS.
105605 2006-08-29  Bruno Haible  <bruno@clisp.org>
105607         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
105608         defined.
105610 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
105612         * modules/fcntl: New file.
105613         * modules/chdir-safer (Depends-on): Add fcntl.
105614         * modules/fts: Likewise.
105615         * modules/mkdir-p: Likewise.
105617         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
105618         This undoes the most recent change, since we're now addressing the
105619         problem in a different way.
105621         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
105622         into output, since the output might be called Makefile.am even
105623         if $makefile_name is something different.
105624         (func_import): Use $makefile_am rather than
105625         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
105626         empty.
105628         * modules/inttypes (Files): Add m4/inttypes-h.m4.
105630 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
105632         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
105633         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
105634         recent change to stdint.m4, since we're now addressing the problem in a
105635         different way.
105637 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
105639         * m4/fcntl_h.m4: New file.
105641 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
105643         * lib/fcntl_.h: New file.
105644         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
105645         the fcntl module.
105646         * lib/dirchownmod.c: Likewise.
105647         * lib/fts.c: Likewise.
105649         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
105650         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
105651         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
105652         just before including <inttypes.h>, to avoid circular inclusion.
105654 2006-08-28  Jim Meyering  <jim@meyering.net>
105656         * doc/visibility.texi: Actually read and correct the grammar of the
105657         sentence affected by yesterday's change.
105659 2006-08-28  Eric Blake  <ebb9@byu.net>
105661         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
105662         needs wrapper.
105664 2006-08-28  Eric Blake  <ebb9@byu.net>
105666         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
105668 2006-08-28  Eric Blake  <ebb9@byu.net>
105670         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
105672 2006-08-28  Bruno Haible  <bruno@clisp.org>
105674         * modules/c-strstr: New file, from GNU gettext.
105675         * MODULES.html.sh (String handling): Add c-strstr.
105677 2006-08-28  Bruno Haible  <bruno@clisp.org>
105679         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
105680         macros.
105681         Reported by Eric Blake.
105683 2006-08-28  Bruno Haible  <bruno@clisp.org>
105685         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
105686         (VASNPRINTF): Return a string of length > INT_MAX without failing.
105687         * lib/vasprintf.c: Include errno.h, limits.h.
105688         (EOVERFLOW): New fallback definition.
105689         (vasprintf): Test here whether the string length is > INT_MAX.
105690         * lib/vsnprintf.c: Include errno.h, limits.h.
105691         (EOVERFLOW): New fallback definition.
105692         (vsnprintf): Fix bug when generated string was too long for the buffer.
105693         Test here whether the string length is > INT_MAX.
105695 2006-08-28  Bruno Haible  <bruno@clisp.org>
105697         * lib/inttypes_.h (SCNX*): Remove definitions.
105698         Reported by Eric Blake.
105700 2006-08-28  Bruno Haible  <bruno@clisp.org>
105702         * lib/c-strstr.h: New file, from GNU gettext.
105703         * lib/c-strstr.c: New file, from GNU gettext.
105705 2006-08-28  Bruno Haible  <bruno@clisp.org>
105707         * gnulib-tool: Reorder some statements.
105709 2006-08-28  Bruno Haible  <bruno@clisp.org>
105711         * gnulib-tool: New option --makefile-name.
105712         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
105713         $makefile_name.
105714         (func_import): Write $makefile_name to the cache file, and read it from
105715         there unless explicitly specified. Use $makefile_name as file name
105716         instead of Makefile.am. Adjust the recommendations accordingly.
105718 2006-08-28  Bruno Haible  <bruno@clisp.org>
105720         * gnulib-tool (func_verify_module): Check against misapplying patch.
105722 2006-08-28  Bruno Haible  <bruno@clisp.org>
105724         * gnulib-tool (func_relativize, func_relconcat): New functions.
105725         Give an error if --local-dir is given with --update.
105726         Remove trailing slashes from $local_gnulib_dir.
105727         (func_import): Store the relativized $local_gnulib_dir in
105728         gnulib-cache.m4, and read it from there if not specified explicitly.
105730 2006-08-28  Bruno Haible  <bruno@clisp.org>
105732         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
105733         is the current directory. Respect also $local_gnulib_dir.
105735 2006-08-28  Bruno Haible  <bruno@clisp.org>
105736             Simon Josefsson  <jas@extundo.com>
105738         BeOS portability.
105739         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
105741 2006-08-27  Jim Meyering  <jim@meyering.net>
105743         * doc/visibility.texi: Remove duplicate word: "pointer".
105745 2006-08-26  Bruno Haible  <bruno@clisp.org>
105747         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
105748         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
105749         (Makefile.am): Create inttypes.h from inttypes_.h.
105750         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
105752         * modules/imaxabs: New file.
105754         * modules/imaxdiv: New file.
105756 2006-08-26  Bruno Haible  <bruno@clisp.org>
105758         * m4/inttypes.m4: New file.
105759         * m4/_inttypes_h.m4: Remove file.
105760         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
105761         PRI_MACROS_BROKEN.
105762         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
105764         * m4/imaxabs.m4: New file.
105766         * m4/imaxdiv.m4: New file.
105768 2006-08-26  Bruno Haible  <bruno@clisp.org>
105770         * lib/inttypes_.h: New file.
105771         * lib/inttypes.h: Remove file.
105772         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
105774         * lib/imaxabs.c: New file.
105776         * lib/imaxdiv.c: New file.
105778 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
105780         New config-h module, so that "make" output needn't be cluttered
105781         by -DHAVE_CONFIG_H.
105782         * MODULES.html.sh (Support for building libraries and executables):
105783         Add config-h.
105784         * modules/config-h: New file.
105785         * gnulib-tool (nl, sed_transform_lib_file): New vars.
105786         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
105787         the config-h module is used.
105789         New configmake module, so that "make" output needn't be cluttered
105790         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
105791         * MODULES.html.sh (Support for building libraries and executables):
105792         Add configmake.
105793         * modules/configmake: New file.
105795 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
105797         * m4/config-h.m4: New file.
105799 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
105801         * config/srclist.txt: Add elisp-comp.
105803 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
105805         * MODULES.html.sh (Support for building libraries and executables):
105806         Add elisp-comp.
105807         * build-aux/elisp-comp: New file.
105808         * modules/elisp-comp: New file.
105810 2006-08-24  Bruno Haible  <bruno@clisp.org>
105812         * gnulib-tool (func_create_testdir): Use non-default values of
105813         sourcebase and m4base.
105815 2006-08-24  Bruno Haible  <bruno@clisp.org>
105817         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
105818         HTML structure.
105820 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
105822         * modules/openat (Depends-on): Add lchown.
105824 2006-08-23  Bruno Haible  <bruno@clisp.org>
105826         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
105827         of gl_LOCK_EARLY instead of gl_LOCK.
105829 2006-08-23  Bruno Haible  <bruno@clisp.org>
105831         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
105832         on OSF/1 to no.
105833         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
105835 2006-08-23  Bruno Haible  <bruno@clisp.org>
105837         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
105838         as unusable.
105840         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
105841         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
105842         (gl_LOCK): New macro.
105844 2006-08-22  Simon Josefsson  <jas@extundo.com>
105846         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
105847         to md5 module.
105849 2006-08-22  Simon Josefsson  <jas@extundo.com>
105851         * MODULES.html.sh: Add "Support for maintaining and release
105852         projects".
105854         * build-aux/gnupload: New file, from coreutils.
105856 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
105858         Avoid the need for AC_LIBSOURCES in m4 macros.
105859         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
105860         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
105861         * modules/check-version (EXTRA_DIST): Add check-version.h.
105862         * modules/crc (EXTRA_DIST): Add crc.h.
105863         * modules/des (EXTRA_DIST): Add des.h.
105864         * modules/gc (EXTRA_DIST): Add gc.h.
105865         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
105866         * modules/getline (EXTRA_DIST): Add getline.h.
105867         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
105868         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
105869         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
105870         * modules/md2 (EXTRA_DIST): Add md2.h.
105871         * modules/md4 (EXTRA_DIST): Add md4.h.
105872         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
105873         * modules/read-file (EXTRA_DIST): Add read-file.h.
105874         * modules/readline (EXTRA_DIST): Add readline.h.
105875         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
105876         rijndael-api-fst.h.
105878 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
105880         * m4/rijndael.m4 (gl_ARCFOUR):
105881         * m4/arctwo.m4 (gl_ARCTWO):
105882         * m4/check-version.m4 (gl_CHECK_VERSION):
105883         * m4/crc.m4 (gl_CRC):
105884         * m4/des.m4 (gl_DES):
105885         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
105886         * m4/gc.m4 (gl_GC):
105887         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
105888         * m4/getline.m4 (gl_FUNC_GETLINE):
105889         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
105890         * m4/hmac-md5.m4 (gl_HMAC_MD5):
105891         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
105892         * m4/md2.m4 (gl_MD2):
105893         * m4/md4.m4 (gl_MD4):
105894         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
105895         * m4/read-file.m4 (gl_FUNC_READ_FILE):
105896         * m4/readline.m4 (gl_FUNC_READLINE):
105897         * m4/rijndael.m4 (gl_RIJNDAEL):
105898         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
105899         to get the necessary .h files and whatnot.
105901 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
105903         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
105904         gnulib rather than the other way around.
105905         * config/srclistvars.sh (COREUTILS): Remove.
105907 2006-08-22  Jim Meyering  <jim@meyering.net>
105909         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
105911         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
105913 2006-08-22  Eric Blake  <ebb9@byu.net>
105915         * modules/regexprops-generic: New file.
105916         * MODULES.html.sh (Support for building documentation): List it.
105918 2006-08-22  Eric Blake  <ebb9@byu.net>
105920         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
105921         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
105922         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
105923         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
105925 2006-08-22  Bruno Haible  <bruno@clisp.org>
105927         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
105928         and lib_LTLIBRARIES like the other lib_* variables.
105930 2006-08-22  Bruno Haible  <bruno@clisp.org>
105932         * build-aux/x-to-1.in: New file, from GNU gettext.
105934 2006-08-22  Bruno Haible  <bruno@clisp.org>
105936         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
105937         <utmpx.h> exists.
105939 2006-08-22  Bruno Haible  <bruno@clisp.org>
105941         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
105942         <utmpx.h> exists.
105944 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
105946         BeOS portability.
105947         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
105948         exist.
105949         Problem reported by Bruno Haible.
105951 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
105953         Avoid the need for AC_LIBSOURCES in m4 macros.
105954         * modules/acl (EXTRA_DIST): Add acl.h.
105955         * modules/argmatch (Files): Add m4/argmatch.m4.
105956         (configure.ac): Add gl_ARGMATCH.
105957         (EXTRA_DIST): Renamed from lib_SOURCES, for
105958         consistency with the other modules.  Remove argmatch.c.
105959         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
105960         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
105961         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
105962         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
105963         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
105964         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
105965         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
105966         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
105967         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
105968         * modules/closeout (EXTRA_DIST): Add closeout.h.
105969         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
105970         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
105971         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
105972         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
105973         dirname.h; remove basename.c and stripslash.c.
105974         * modules/exclude (EXTRA_DIST): Add exclude.h.
105975         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
105976         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
105977         * modules/file-type (EXTRA_DIST): Add file-type.h.
105978         * modules/filemode (EXTRA_DIST): Add filemode.h.
105979         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
105980         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
105981         * modules/fpending (EXTRA_DIST): Add __fpending.h.
105982         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
105983         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
105984         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
105985         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
105986         * modules/getdate (EXTRA_DIST): Add getdate.c.
105987         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
105988         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
105989         * modules/getpass (EXTRA_DIST): Add getpass.h.
105990         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
105991         * modules/group-member (EXTRA_DIST): Add group-member.h.
105992         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
105993         * modules/hash (EXTRA_DIST): Add hash.h.
105994         * modules/human (EXTRA_DIST): Add human.h.
105995         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
105996         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
105997         * modules/lchown (EXTRA_DIST): Add lchown.h.
105998         * modules/long-options (EXTRA_DIST): Add long-options.h.
105999         * modules/lstat (EXTRA_DIST): Add lstat.h.
106000         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
106001         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
106002         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
106003         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
106004         * modules/memxor (EXTRA_DIST): Add memxor.h.
106005         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
106006         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
106007         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
106008         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
106009         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
106010         * modules/physmem (EXTRA_DIST): Add physmem.h.
106011         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
106012         * modules/posixver (EXTRA_DIST): Add posixver.h.
106013         * modules/quote (EXTRA_DIST): Add quote.h.
106014         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
106015         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
106016         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
106017         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
106018         regex_internal.h regexec.c.
106019         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
106020         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
106021         * modules/same (EXTRA_DIST): Add same.h.
106022         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
106023         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
106024         * modules/savedir (EXTRA_DIST): Add savedir.h.
106025         * modules/sha1 (EXTRA_DIST): Add sha1.h.
106026         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
106027         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
106028         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
106029         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
106030         * modules/strdup (EXTRA_DIST): Add strdup.h.
106031         * modules/strftime (EXTRA_DIST): Add strftime.h.
106032         * modules/strndup (EXTRA_DIST): Add strndup.h.
106033         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
106034         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
106035         * modules/time_r (EXTRA_DIST): Add time_r.h.
106036         * modules/timespec (EXTRA_DIST): Add timespec.h.
106037         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
106038         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
106039         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
106040         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
106041         * modules/userspec (EXTRA_DIST): Add userspec.h.
106042         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
106043         * modules/utimens (EXTRA_DIST): Add utimens.h.
106044         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
106045         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
106046         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
106047         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
106048         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
106049         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
106050         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
106051         * modules/yesno (EXTRA_DIST): Add yesno.h.
106053 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
106055         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
106057         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
106058         * m4/dev-ino.m4, same-inode.m4: Remove.
106060         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
106061         * m4/acl.m4 (AC_FUNC_ACL):
106062         * m4/backupfile.m4 (gl_BACKUPFILE):
106063         * m4/c-strtod.m4 (gl_C99_STRTOLD):
106064         * m4/canon-host.m4 (gl_CANON_HOST):
106065         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
106066         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
106067         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
106068         * m4/cloexec.m4 (gl_CLOEXEC):
106069         * m4/close-stream.m4 (gl_CLOSE_STREAM):
106070         * m4/closeout.m4 (gl_CLOSEOUT):
106071         * m4/dirfd.m4 (gl_FUNC_DIRFD):
106072         * m4/dirname.m4 (gl_DIRNAME):
106073         * m4/exclude.m4 (gl_EXCLUDE):
106074         * m4/exitfail.m4 (gl_EXITFAIL):
106075         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
106076         * m4/file-type.m4 (gl_FILE_TYPE):
106077         * m4/filemode.m4 (gl_FILEMODE):
106078         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
106079         * m4/fpending.m4 (gl_FUNC_FPENDING):
106080         * m4/fprintftime.m4 (gl_FPRINTFTIME):
106081         * m4/fts.m4 (gl_FUNC_FTS):
106082         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
106083         * m4/getdate.m4 (gl_GETDATE):
106084         * m4/gethrxtime.m4 (gl_GETHRXTIME):
106085         * m4/getpagesize.m4 (gl_GETPAGESIZE):
106086         * m4/getpass.m4 (gl_FUNC_GETPASS):
106087         * m4/gettime.m4 (gl_GETTIME):
106088         * m4/getugroups.m4 (gl_GETUGROUPS):
106089         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
106090         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
106091         * m4/hard-locale.m4 (gl_HARD_LOCALE):
106092         * m4/hash.m4 (gl_HASH):
106093         * m4/idcache.m4 (gl_IDCACHE):
106094         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
106095         * m4/lchown.m4 (gl_FUNC_LCHOWN):
106096         * m4/long-options.m4 (gl_LONG_OPTIONS):
106097         * m4/lstat.m4 (gl_FUNC_LSTAT):
106098         * m4/md5.m4 (gl_MD5):
106099         * m4/memcasecmp.m4 (gl_MEMCASECMP):
106100         * m4/memcoll.m4 (gl_MEMCOLL):
106101         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
106102         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
106103         * m4/memxor.m4 (gl_MEMXOR):
106104         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
106105         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
106106         * m4/modechange.m4 (gl_MODECHANGE):
106107         * m4/mountlist.m4 (gl_MOUNTLIST):
106108         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
106109         * m4/openat.m4 (gl_FUNC_OPENAT):
106110         * m4/pathmax.m4 (gl_PATHMAX):
106111         * m4/physmem.m4 (gl_PHYSMEM):
106112         * m4/posixtm.m4 (gl_POSIXTM):
106113         * m4/posixver.m4 (gl_POSIXVER):
106114         * m4/quote.m4 (gl_QUOTE):
106115         * m4/quotearg.m4 (gl_QUOTEARG):
106116         * m4/readtokens.m4 (gl_READTOKENS):
106117         * m4/readutmp.m4 (gl_READUTMP):
106118         * m4/regex.m4 (gl_REGEX):
106119         * m4/safe-read.m4 (gl_SAFE_READ):
106120         * m4/safe-write.m4 (gl_SAFE_WRITE):
106121         * m4/same.m4 (gl_SAME):
106122         * m4/save-cwd.m4 (gl_SAVE_CWD):
106123         * m4/savedir.m4 (gl_SAVEDIR):
106124         * m4/settime.m4 (gl_SETTIME):
106125         * m4/sha1.m4 (gl_SHA1):
106126         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
106127         * m4/stat-macros.m4 (gl_STAT_MACROS):
106128         * m4/stat-time.m4 (gl_STAT_TIME):
106129         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
106130         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
106131         * m4/strdup.m4 (gl_FUNC_STRDUP):
106132         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
106133         * m4/strndup.m4 (gl_FUNC_STRNDUP):
106134         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
106135         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
106136         * m4/time_r.m4 (gl_TIME_R):
106137         * m4/timespec.m4 (gl_TIMESPEC):
106138         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
106139         * m4/unlinkdir.m4 (gl_UNLINKDIR):
106140         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
106141         * m4/userspec.m4 (gl_USERSPEC):
106142         * m4/utimecmp.m4 (gl_UTIMECMP):
106143         * m4/utimens.m4 (gl_UTIMENS):
106144         * m4/xalloc.m4 (gl_XALLOC):
106145         * m4/xgetcwd.m4 (gl_XGETCWD):
106146         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
106147         * m4/xreadlink.m4 (gl_XREADLINK):
106148         * m4/xstrtod.m4 (gl_XSTRTOD):
106149         * m4/yesno.m4 (gl_YESNO):
106150         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
106151         to get the necessary .h files and whatnot.
106153 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
106154             Bruno Haible  <bruno@clisp.org>
106156         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
106157         /bin/sh understanding of '!' conditional negation.
106159 2006-08-21  Jim Meyering  <jim@meyering.net>
106161         * modules/openat (Depends-on): Really alphabetize.
106163         * modules/acl (Depends-on): Add error and quote.
106165         * check-module (find_included_lib_files): Add at-func.c to the
106166         ok-to-include-more-than-once white list.
106168         * modules/openat (Depends-on): Add lstat.  Alphabetize.
106170 2006-08-21  Bruno Haible  <bruno@clisp.org>
106172         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
106173         Emit a pkgdata_DATA variable only if some snippets add contents to it.
106174         Reported by Martin Lambers <marlam@marlam.de>.
106176 2006-08-21  Bruno Haible  <bruno@clisp.org>
106178         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
106179         specify an installation location, don't emit a noinst_LIBRARIES or
106180         noinst_LTLIBRARIES assignment.
106182 2006-08-21  Bruno Haible  <bruno@clisp.org>
106184         BeOS portability.
106185         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
106186         BeOS has mbrtowc() but no <wctype.h>.
106188 2006-08-21  Bruno Haible  <bruno@clisp.org>
106190         BeOS portability.
106191         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
106192         exist.
106194 2006-08-21  Bruno Haible  <bruno@clisp.org>
106196         BeOS portability.
106197         * lib/mbchar.h: Include <wctype.h> only if it exists.
106199 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
106201         Remove files that are no longer needed by their respective modules.
106202         * m4/obstack.m4: Remove.
106203         * m4/strerror_r.m4: Remove.
106204         * m4/uint32_t.m4: Remove.
106205         * m4/uintptr_t.m4: Remove.
106206         * m4/ullong_max.m4: Remove.
106207         * m4/xstrtoimax.m4: Remove.
106208         * m4/xstrtoumax.m4: Remove.
106210         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
106211         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
106212         dependencies now capture this.
106214         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
106215         Do not use AC_LIBSOURCES, since gnulib modules now do this.
106216         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
106217         * m4/human.m4 (gl_HUMAN): Likewise.
106218         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
106219         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
106221         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
106223         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
106224         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
106225         stdint.
106226         * m4/human.m4 (gl_HUMAN): Likewise.
106227         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
106228         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
106229         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
106230         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
106231         * m4/xstrtol (gl_XSTRTOL): Likewise.
106233         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
106234         AC_TYPE_LONG_LONG_INT.
106235         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
106236         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
106237         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
106238         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
106240         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
106241         on stdbool.
106243         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
106244         (gl_PREREQ_XSTRTOUL): Remove.
106246         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
106248         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
106249         mode.
106251 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
106253         Add and change modules to make it easier for coreutils to use
106254         gnulib-tool.
106255         * modules/backupfile (Files): Remove m4/d-ino.m4.
106256         (Depends-on): Add d-ino.
106257         * modules/cycle-check (Depends-on): Add stdint.
106258         (lib_SOURCES): Add cycle-check.h.
106259         * modules/d-ino: New module.
106260         * modules/d-type: New module.
106261         * modules/error (Files): Remove m4/strerror_r.m4.
106262         * modules/filemode (Files): Add m4/st_dm_mode.m4.
106263         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
106264         m4/inttypes_h.m4, m4/uintmax_t.m4.
106265         (Depends-on): Add stdint.
106266         (lib_SOURCES): Add fsusage.h.
106267         * modules/getcwd (Files): Remove d-ino.m4.
106268         (Depends-on): Add d-ino.
106269         * modules/getndelim2 (Depends-on): Add stdint.
106270         * modules/glob (Files): Remove m4/d-type.m4.
106271         (Depends-on): Add d-type.
106272         * modules/host-os: New module.
106273         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
106274         m4/inttypes_h.m4, m4/uintmax_t.m4.
106275         * Depends-on: Add stdint.
106276         (lib_SOURCES): Add human.h.
106277         * modules/inttostr (Files): Remove m4/intmax_t.m4,
106278         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
106279         m4/uintmax_t.m4, m4/ulonglong.m4.
106280         (Depends-on): Add stdint.
106281         (EXTRA_DIST): Add inttostr.h.
106282         * modules/lchmod: New module.
106283         * modules/link-follow: New module.
106284         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
106285         (Depends-on): Add lchmod.
106286         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
106287         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
106288         (Depends-on): Add stdint.
106289         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
106290         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
106291         (Depends-on): Add stdint.
106292         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
106293         * modules/perl: New module.
106294         * modules/regex (Depends-on): Add stdint.
106295         * modules/rmdir-errno: New module.
106296         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
106297         m4/intmax_t.m4.
106298         (Depends-on): Add stdint.
106299         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
106300         m4/uintmax_t.m4.
106301         (Depends-on): Add stdint.
106302         * modules/unlink-busy: New module.
106303         * modules/utimecmp (Depends-on): Add stdint.
106304         * modules/uptime: New module.
106305         * modules/winsz-ioctl: New module.
106306         * modules/winsz-termios: New module.
106307         * modules/xnanosleep (Depends-on): Add nanosleep.
106308         * modules/ullong_max: Remove.
106309         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
106310         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
106311         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
106312         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
106313         (Depends-on): Add inttypes.
106314         (lib_SOURCES): Add xstrtol.h.
106315         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
106316         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
106317         * MODULES.html.sh: Move 'assert' into the assert section.
106318         Move 'dummy' into the linking section.
106319         Remove ullong_max.
106320         Add section for compatibility checks for POSIX:2001 functions,
106321         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
106322         winsz-ioctl, and winsz-termios into it.
106323         Add lchmod.
106324         Add top-level Misc section and put host-os, perl, and uptime
106325         into it.
106327 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
106329         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
106330         now assume the stdint module.  Do not include inttypes.h.
106331         * lib/fsusage.h: Likewise.
106332         * lib/getndelim2.c: Likewise.
106333         * lib/human.h: Likewise.
106334         * lib/inttostr.h: Likewise.
106335         * lib/obstack.c: Likewise.
106336         * lib/regex_internal.h: Likewise.
106337         * lib/tempname.c: Likewise.
106338         * lib/utimecmp.c: Likewise.
106339         * lib/xstrtol.h: Likewise.
106341         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
106343         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
106344         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
106345         * lib/xtime.h: Likewise.
106347 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
106349         * modules/openat (Files): Add lib/fchmodat.c.
106350         Fixes problem reported by Jay Youngman.
106352 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
106354         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
106355         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
106357 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
106358             Bruno Haible  <bruno@clisp.org>
106360         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
106361         and is a script that invokes bison. Tighten the code. Add comments.
106363 2006-08-18  Jim Meyering  <jim@meyering.net>
106365         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
106366         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
106367         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
106368         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
106370 2006-08-18  Bruno Haible  <bruno@clisp.org>
106372         * modules/bison-i18n: New file.
106373         * MODULES.html.sh (Internationalization functions): Add it.
106375 2006-08-18  Bruno Haible  <bruno@clisp.org>
106377         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
106378         sys/statvfs.h. When getmntinfo was found, check its declaration and
106379         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
106381 2006-08-18  Bruno Haible  <bruno@clisp.org>
106383         * m4/bison-i18n.m4: New file, from bison.
106385 2006-08-18  Bruno Haible  <bruno@clisp.org>
106387         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
106388         (ME_DUMMY): Treat "kernfs" as a dummy.
106389         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
106391 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
106393         Update from coreutils.
106395         2006-08-15  Jim Meyering  <jim@meyering.net>
106397         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
106399         2006-01-17  Jim Meyering  <jim@meyering.net>
106401         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
106403         2006-01-11  Jim Meyering  <jim@meyering.net>
106405         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
106406         Check for the lchmod function.
106408 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
106410         Update from coreutils.
106412         * lib/__fpending.h: Add copyright notice.
106413         * lib/fprintftime.h: Likewise.
106414         * lib/savedir.c: Use (C) in copyright notice.
106415         * lib/savedir.h: Likewise.
106417         2006-08-15  Jim Meyering  <jim@meyering.net>
106419         * lib/at-func.c: New file, with the logic of all emulated at-functions.
106420         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
106421         in support of the EXPECTED_ERRNO macro.
106422         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
106423         definitions.  Instead, define the appropriate symbols and include
106424         "at-func.c".
106425         * lib/mkdirat.c (mkdirat): Likewise.
106426         * lib/fchmodat.c (fchmodat): Likewise.
106427         (ENOSYS): Remove definition.
106428         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
106429         it.  Don't include "unistd--.h" -- it wasn't ever used.
106431         2006-01-17  Jim Meyering  <jim@meyering.net>
106433         Rewrite fts.c not to change the current working directory,
106434         by using openat, fstatat, fdopendir, etc..
106436         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
106437         (HAVE_OPENAT_SUPPORT): Define.
106438         [_LIBC] (fchdir): Don't undef or define; no longer used.
106439         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
106440         Now, this `function' always succeeds, and consumes its file descriptor
106441         parameter -- so callers must not close such FDs.  Update callers.
106442         (diropen_fd, opendirat, cwd_advance_fd): New functions.
106443         (diropen): Add parameter, SP.  Adjust all callers.
106444         Implement using diropen_fd, rather than open.
106445         (fts_open): Initialize new member, fts_cwd_fd.
106446         Remove fts_rft-setting code.
106447         (fts_close): Close fts_cwd_fd, if necessary.
106448         (__opendir2): Define in terms of opendir or opendirat,
106449         depending on whether the FST_NOCHDIR flag is set.
106450         (fts_build): Since fts_safe_changedir consumes its FD, and since
106451         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
106452         and close the dup'd file descriptor upon failure.
106453         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
106454         (fts_safe_changedir): Tweak semantics to reflect that this function
106455         now calls cwd_advance_fd and hence consumes its FD argument.
106456         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
106457         [struct FTS] (fts_rft): Remove now-unused member.
106458         [struct FTS] (fts_cycle.state): Improve comment.
106460         * lib/openat.c (openat_needs_fchdir): New function.
106461         * lib/openat.h (openat_needs_fchdir): Declare it.
106463 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
106465         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
106466         Problem and fix reported by Pádraig Brady in
106467         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00099.html>.
106469 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
106471         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
106473 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
106475         * lib/memcoll.c (memcoll): Optimize for the common case where the
106476         arguments are bytewise equal.
106478 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
106480         * doc/regexprops-generic.texi: Add a copyright notice.
106482 2006-08-15  Bruno Haible  <bruno@clisp.org>
106484         * modules/tmpdir (License): Change to LGPL.
106486 2006-08-15  Bruno Haible  <bruno@clisp.org>
106488         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
106489         module.
106491 2006-08-14  Simon Josefsson  <jas@extundo.com>
106493         * config/srclist.txt: Add gnupload.
106495 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
106497         Change copyright notice from LGPL 2 to GPL 2, since that's the
106498         standard form used in the gnulib repository.
106499         * tests/test-lock.c: Likewise.
106500         * tests/test-stdint.c: Likewise.
106501         * tests/test-tls.c: Likewise.
106503         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
106504         prelude-manager.  User shorter URLs for GNU projects, without '?'.
106505         Add copyright notice.
106507         * check-module: Add copyright notice.  Output a copyright
106508         notice if "--version" is specified.
106509         * modules/COPYING: New file.
106510         * tests/test-getaddrinfo.c: Add copyright notice.
106511         * tests/test-verify.c: Likewise.
106513 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
106515         Change copyright notice from LGPL 2 to GPL 2, since that's the
106516         standard form used in the gnulib repository.
106517         * lib/lock.c: LGPL -> GPL.
106518         * lib/lock.h: Likewise.
106519         * lib/strnlen1.c: Likewise.
106520         * lib/strnlen1.h: Likewise.
106521         * lib/tls.c: Likewise.
106522         * lib/tls.h: Likewise.
106523         * lib/tmpdir.c: Likewise.
106525         * lib/TODO: Remove; this belongs only in coreutils.
106527 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
106529         Add copyright notices to long-enough files that lack them, since
106530         otherwise the files aren't clearly free.  Use the same notice that
106531         getdate.texi already uses.
106532         * doc/alloca-opt.texi: Add copyright notice.
106533         * doc/alloca.texi: Likewise.
106534         * doc/ctime.texi: Likewise.
106535         * doc/functions.texi: Likewise.
106536         * doc/gcd.texi: Likewise.
106537         * doc/gnulib-tool.texi: Likewise.
106538         * doc/inet_ntoa.texi: Likewise.
106539         * doc/visibility.texi: Likewise.
106541         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
106542         * doc/quote.texi: Add copyright notice.
106544         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
106545         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
106546         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
106547         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
106548         is now obsolete, and give a pointer to the Sun list.
106549         Add copyright notice.
106551 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
106553         * config/srclistvars.sh: Add copyright notice.
106555 2006-08-14  Eric Blake  <ebb9@byu.net>
106557         Import the following change from libc:
106559         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
106561         Upstream bug 2997.
106562         * lib/misc/error.c: Add space between program name and message if file
106563         name is missing.
106565 2006-08-12  Karl Berry  <karl@gnu.org>
106567         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
106568         remove, these originate in gnulib now.
106570 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
106572         * doc/Makefile (standards.info standards.html standards.dvi):
106573         Also depend on make-stds.texi.
106575 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
106577         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
106578         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
106580         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
106581         in wchar_t.  Problem reported by Eric Blake.
106583         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
106584         LEN is smaller than SIZE.  Suggested by Bruno Haible.
106585         Also, help the compiler to keep LEN in a register.
106587 2006-08-11  Eric Blake  <ebb9@byu.net>
106589         * users.txt: Sort.  Add tar.
106591 2006-08-11  Bruno Haible  <bruno@clisp.org>
106593         * users.txt: New file.
106595 2006-08-11  Bruno Haible  <bruno@clisp.org>
106597         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
106598         before <wchar.h>. Needed for OSF/1 and BSD/OS.
106600 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
106602         * modules/snprintf (Depends-on): Remove minmax.
106603         (Maintainer): Add self and Bruno.
106605 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
106607         * lib/.cppi-disable: Add snprintf.h, socket_.h.
106608         * lib/snprintf.c: Include <errno.h> and <limits.h>.
106609         (EOVERFLOW): Define if the system does not.
106610         Do not include "minmax.h"; it wasn't used.
106611         (snprintf): Don't assume size_t promotes to an unsigned type.
106612         Fix bug when generated string was too long for the buffer: the
106613         buffer's contents are supposed to be the initial prefix of the
106614         output.  Don't assume vasnprintf returns EOVERFLOW if the size
106615         exceeds INT_MAX; do the check ourselves.
106617         Import the following changes from libc:
106619         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
106621         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
106622         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
106623         set wc to the byte which couldn't be converted.
106624         (re_string_reconstruct): Don't clear valid_raw_len before calling
106625         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
106626         tip_context using re_string_context_at.
106628         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
106630         * lib/posix/regex.h: g++ still cannot handled [restrict].
106632         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
106634         * lib/posix/regex.h: Remove special handling for VMS.
106636 2006-08-10  Jim Meyering  <jim@meyering.net>
106638         * modules/same-inode: New module.
106639         * modules/dev-ino: New module.
106640         * modules/cycle-check: Depend on these modules, rather than simply
106641         including their .h files.
106642         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
106643         required via m4/cycle-check.m4.
106644         * modules/same: Depend on new same-inode module, rather than
106645         including same-inode.h.
106646         * modules/chdir-safer: New file.
106648         * modules/chown (Depends-on): Add stat-macros.
106650 2006-08-10  Jim Meyering  <jim@meyering.net>
106652         * m4/cycle-check.m4: New file.
106653         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
106654         * m4/dev-ino.m4, m4/same-inode.m4: New files.
106656 2006-08-10  Eric Blake  <ebb9@byu.net>
106658         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
106659         in from original proposal.
106661 2006-08-10  Eric Blake  <ebb9@byu.net>
106662         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
106664         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
106665         namespace.
106667 2006-08-10  Bruno Haible  <bruno@clisp.org>
106669         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
106670         as well.
106672 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
106674         Sync from coreutils.
106676         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
106678         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
106679         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
106681 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
106683         * modules/restrict: Remove; no longer needed now that we assume
106684         Autoconf 2.59 or later.
106685         * MODULES.html.sh: Remove 'restrict'.
106686         * modules/argp (Depends-on): Remove 'restrict'.
106687         * modules/base64 (Depends-on): Likewise.
106688         * modules/gc (Depends-on): Likewise.
106689         * modules/getaddrinfo (Depends-on): Likewise.
106690         * modules/glob (Depends-on): Likewise.
106691         * modules/inet_ntop (Depends-on): Likewise.
106692         * modules/inet_pton (Depends-on): Likewise.
106693         * modules/memxor (Depends-on): Likewise.
106694         * modules/regex (Depends-on): Likewise.
106695         * modules/strtok_r (Depends-on): Likewise.
106696         * modules/time_r (Depends-on): Likewise.
106698 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
106700         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
106701         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
106702         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
106703         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
106704         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
106705         * m4/memxor.m4 (gl_MEMXOR): Likewise.
106706         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
106707         gl_C_RESTRICT replaced by AC_C_RESTRICT.
106709         Merge from coreutils.
106710         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
106711         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
106712         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
106713         * m4/time_r.m4 (gl_TIME_R): Likewise.
106715 2006-08-09  Karl Berry  <karl@gnu.org>
106717         * config/srclist.txt: no more gettext-tools, per Bruno.
106719 2006-08-08  Eric Blake  <ebb9@byu.net>
106721         * modules/verror: New module.
106722         * MODULES.html.sh: Document it.
106724 2006-08-08  Eric Blake  <ebb9@byu.net>
106726         * lib/verror.h, lib/verror.c: New files.
106728 2006-08-08  Eric Blake  <ebb9@byu.net>
106730         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
106731         verror_at_line output complies with GNU Coding Standards even when
106732         file is NULL.
106734 2006-08-07  Bruno Haible  <bruno@clisp.org>
106736         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
106737         versions of AIX.
106738         Reported by Ralf Wildenhues.
106740 2006-08-07  Bruno Haible  <bruno@clisp.org>
106742         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
106743         in an AC_DEFUN. Needed so that the autoconf snippets can use
106744         AC_REQUIRE.
106746 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
106748         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
106749         Initialize pkgdata_DATA.
106750         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
106751         overriding it.
106753 2006-08-06  Eric Blake  <ebb9@byu.net>
106755         * lib/error.h: Fold in some upstream changes from glibc.
106756         * lib/error.c: Likewise.
106758 2006-08-04  Bruno Haible  <bruno@clisp.org>
106760         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
106761         Make the mostlyclean-local rule depend on mostlyclean-generic.
106762         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
106764 2006-07-31  Bruno Haible  <bruno@clisp.org>
106766         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
106767         <stdlib.h>, <string.h>.
106769 2006-07-30  Bruno Haible  <bruno@clisp.org>
106771         * modules/readlink (License): Change to LGPL.
106773 2006-07-30  Bruno Haible  <bruno@clisp.org>
106775         * modules/javaversion (Makefile.am): Distribute javaversion.java and
106776         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
106777         set PKGDATADIR to point to it.
106779 2006-07-30  Bruno Haible  <bruno@clisp.org>
106781         * modules/csharpexec (configure.ac): Comment out macro invocation.
106782         * modules/javaexec (configure.ac): Likewise.
106783         * modules/javacomp-script (configure.ac): Likewise.
106785         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
106787 2006-07-30  Bruno Haible  <bruno@clisp.org>
106789         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
106790         linked-list.
106792 2006-07-30  Bruno Haible  <bruno@clisp.org>
106794         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
106796 2006-07-30  Bruno Haible  <bruno@clisp.org>
106798         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
106799         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
106800         get removed.
106802 2006-07-29  Bruno Haible  <bruno@clisp.org>
106804         Make it possible for gnulib-tool to work with locally modified or
106805         augmented gnulib repositories.
106806         * gnulib-tool (func_usage): Document --local-dir option.
106807         (local_gnulib_dir): New variable.
106808         Handle --local-dir option.
106809         (func_lookup_file): New function.
106810         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
106811         (func_get_description, func_get_filelist, func_get_description,
106812         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
106813         func_get_automake_snippet, func_get_include_directive,
106814         func_get_license, func_get_maintainer): Use func_lookup_file.
106815         (func_import, func_create_testdir): Use func_lookup_file.
106817 2006-07-29  Bruno Haible  <bruno@clisp.org>
106819         * modules/setenv (Depends-on): Add unistd.
106821 2006-07-29  Bruno Haible  <bruno@clisp.org>
106823         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
106825 2006-07-29  Bruno Haible  <bruno@clisp.org>
106827         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
106829 2006-07-29  Bruno Haible  <bruno@clisp.org>
106831         * gnulib-tool (import, update): If there is no Makefile.am, look at
106832         aclocal.m4, instead of bailing out.
106834 2006-07-29  Bruno Haible  <bruno@clisp.org>
106836         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
106837         Categorize the options by when they are useful.
106839 2006-07-29  Bruno Haible  <bruno@clisp.org>
106841         * gnulib-tool (func_usage): Document option --no-libtool.
106842         Handle option --no-libtool.
106843         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
106844         for changed semantics of $libtool variable.
106845         (func_import): Likewise. If libtool is not used, show this through
106846         an option --no-libtool.
106847         (func_create_testdir): Update.
106849 2006-07-29  Bruno Haible  <bruno@clisp.org>
106851         * gnulib-tool (func_import): Extend error message about missing
106852         --doc-base.
106854 2006-07-29  Bruno Haible  <bruno@clisp.org>
106856         * gnulib-tool (func_import): Don't create the $docbase directory if
106857         there is no file to store there.
106859 2006-07-29  Bruno Haible  <bruno@clisp.org>
106861         * gnulib-tool (autoconf_minversion): If a --dir option is given and
106862         relevant, look for configure.ac there, not in the current directory.
106863         Also use a simple search for AC_PREREQ, not "autoconf --trace".
106865 2006-07-29  Bruno Haible  <bruno@clisp.org>
106867         * gnulib-tool (SORT): New variable.
106868         (func_usage): Undocument --assume-autoconf option.
106869         Remove --assume-autoconf option handling.
106870         (autoconf_minversion): Determine from the contents of configure.ac.
106871         (func_import): Remove autoconf_minversion handling.
106872         Suggested by Eric Blake.
106874 2006-07-29  Bruno Haible  <bruno@clisp.org>
106876         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
106878 2006-07-29  Bruno Haible  <bruno@clisp.org>
106880         * config/srclist.txt (*setenv.[ch]): Remove rules.
106882 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
106884         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
106886 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
106888         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
106889         arpa/inet.h.
106891 2006-07-28  Simon Josefsson  <jas@extundo.com>
106893         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
106894         * modules/inet_pton (Depends-on): Likewise.
106896 2006-07-28  Simon Josefsson  <jas@extundo.com>
106898         * m4/netinet_in_h.m4: New file.
106900 2006-07-28  Simon Josefsson  <jas@extundo.com>
106902         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
106903         #include's.
106905 2006-07-28  Simon Josefsson  <jas@extundo.com>
106907         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
106908         #include's.
106910 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
106912         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
106913         setgid on directories only if they set these bits.
106914         * lib/modechange.h: Remove obsolete comment about masks.
106916 2006-07-28  Eric Blake  <ebb9@byu.net>
106918         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
106919         macro expansion.
106921 2006-07-28  Bruno Haible  <bruno@clisp.org>
106923         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
106925 2006-07-28  Bruno Haible  <bruno@clisp.org>
106927         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
106929 2006-07-28  Bruno Haible  <bruno@clisp.org>
106931         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
106932         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
106933         Define fallbacks.
106934         Avoids link error on FreeBSD 4.x.
106935         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
106937         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
106938         encoding.
106939         * lib/mbswidth.c (iswcntrl): Likewise.
106941 2006-07-27  Bruno Haible  <bruno@clisp.org>
106943         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
106944         test.
106946 2006-07-27  Bruno Haible  <bruno@clisp.org>
106948         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
106949         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
106950         defined.
106952 2006-07-26  Eric Blake  <ebb9@byu.net>
106954         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
106956 2006-07-26  Eric Blake  <ebb9@byu.net>
106958         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
106959         like mingw that lack mkstemp.
106960         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
106961         avoid compilation warning on mingw.
106963 2006-07-26  Bruno Haible  <bruno@clisp.org>
106965         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
106966         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
106967         INT_FAST*_MIN, INTPTR_MIN.
106969 2006-07-25  Bruno Haible  <bruno@clisp.org>
106971         * modules/version-etc (Depends-on): Add stdarg.
106973 2006-07-25  Bruno Haible  <bruno@clisp.org>
106975         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
106976         complex commands.
106978 2006-07-25  Bruno Haible  <bruno@clisp.org>
106980         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
106981         defined in <stdarg.h> or config.h.
106983 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
106985         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
106986         (gl_STDIO_SAFER): Remove.
106988 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
106990         * MODULES.html.sh (File stream based Input/Output):
106991         Add fopen-safer, tmpfile-safer; remove stdio-safer.
106992         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
106993         * modules/fopen-safer, modules/tmpfile-safer: New files.
106994         * modules/stdio-safer: Remove.
106996 2006-07-24  Bruno Haible  <bruno@clisp.org>
106998         * modules/tmpdir: New file.
106999         * MODULES.html.sh (File system functions): Add it.
107001 2006-07-24  Bruno Haible  <bruno@clisp.org>
107003         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
107004         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
107006 2006-07-24  Bruno Haible  <bruno@clisp.org>
107008         * modules/clean-temp: New file.
107010 2006-07-24  Bruno Haible  <bruno@clisp.org>
107012         * m4/tmpdir.m4: New file, from GNU gettext.
107014 2006-07-24  Bruno Haible  <bruno@clisp.org>
107016         * lib/tmpdir.h: New file, from GNU gettext.
107017         * lib/tmpdir.c: New file, from GNU gettext.
107019 2006-07-24  Bruno Haible  <bruno@clisp.org>
107021         * lib/clean-temp.h: New file, from GNU gettext.
107022         * lib/clean-temp.c: New file, from GNU gettext.
107024 2006-07-23  Eric Blake  <ebb9@byu.net>
107026         * modules/stdio-safer (Files): Add tmpfile-safer.c.
107027         (Depends-on): Add binary-io.
107029 2006-07-23  Eric Blake  <ebb9@byu.net>
107031         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
107033 2006-07-23  Eric Blake  <ebb9@byu.net>
107035         * lib/tmpfile-safer.c: New file.
107036         * lib/stdio-safer.h (fopen_safer): Add prototype.
107037         * lib/stdio--.h (tmpfile): Make safer.
107039 2006-07-23  Bruno Haible  <bruno@clisp.org>
107041         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
107042         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
107043         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
107044         gl_linked_remove_at): Use it.
107046 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
107047         and Simon Josefsson <jas@extundo.com>
107049         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
107051         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
107053 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
107055         * modules/close-stream: New file.
107056         * modules/closeout (Description): Make it clear that it exits
107057         with a diagnostic on error.
107058         (Depends-on): Add close-stream.  Remove fpending, stdbool.
107059         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
107061 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
107063         * m4/close-stream.m4: New file.
107065 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
107067         * lib/close-stream.c, lib/close-stream.h: New files.
107069 2006-07-22  Bruno Haible  <bruno@clisp.org>
107071         Merge from GNU gettext 0.15.
107073         2006-05-01  Bruno Haible  <bruno@clisp.org>
107075                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
107077         2006-07-22  Bruno Haible  <bruno@clisp.org>
107079                 * modules/javaversion: New file.
107080                 * MODULES.html.sh (Java): Add javaversion.
107082         2006-03-12  Bruno Haible  <bruno@clisp.org>
107084                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
107086         2005-12-04  Bruno Haible  <bruno@clisp.org>
107088                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
107089                 (untested).
107091         2006-06-21  Bruno Haible  <bruno@clisp.org>
107093                 Avoid warnings from recent versions of mcs.
107094                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
107095                 -o, -L, -r any more. Use options documented since mcs-1.0
107096                 instead. Similarly for -g.
107098         2005-12-04  Bruno Haible  <bruno@clisp.org>
107100                 * build-aux/csharpcomp.sh.in: Suffix for resources is
107101                 .resources, not .resource.
107103         2005-07-09  Bruno Haible  <bruno@clisp.org>
107105                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
107106                 add a .dll suffix.
107107                 Reported by Mark Junker <mjscod@gmx.de>.
107109         2006-07-22  Bruno Haible  <bruno@clisp.org>
107111                 * modules/gettext: Upgrade to gettext-0.15.
107112                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
107113                 m4/visibility.m4.
107114                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
107116 2006-07-22  Bruno Haible  <bruno@clisp.org>
107118         Merge from GNU gettext 0.15.
107120         2006-03-25  Bruno Haible  <bruno@clisp.org>
107122                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
107124         2006-07-21  Bruno Haible  <bruno@clisp.org>
107126                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
107127                 "1.1".
107129         2006-05-09  Bruno Haible  <bruno@clisp.org>
107131                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
107132                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
107133                 for the conftestver execution.
107135         2006-05-01  Bruno Haible  <bruno@clisp.org>
107137                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
107138                 optional target-version argument. Verify that the compiler
107139                 groks source of the specified source-version, or add -source
107140                 option as necessary. Verify that the compiler produces
107141                 bytecode in the specified target-version, or add -target and
107142                 -source options as necessary. Make the result of the test
107143                 available as variable CONF_JAVAC. Also log error output in
107144                 config.log.
107146         2006-03-11  Bruno Haible  <bruno@clisp.org>
107148                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
107150         2006-05-09  Bruno Haible  <bruno@clisp.org>
107152                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
107153                 CLASSPATH_SEPARATOR to a semicolon.
107155         2006-03-12  Bruno Haible  <bruno@clisp.org>
107157                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
107158                 available as variable CONF_JAVA, for subsequent autoconf
107159                 tests. Also log error output in config.log.
107161         2006-07-19  Bruno Haible  <bruno@clisp.org>
107163                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
107164                 that getline works on glibc2 systems. Needed to avoid trouble
107165                 in relocatable.c.
107166                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
107168         2005-12-04  Bruno Haible  <bruno@clisp.org>
107170                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
107171                 launcher (untested).
107173         2005-12-04  Bruno Haible  <bruno@clisp.org>
107175                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
107177         2006-07-22  Bruno Haible  <bruno@clisp.org>
107179                 * gettext.m4: Update from GNU gettext-0.15.
107180                 * nls.m4: Likewise.
107181                 * po.m4: Likewise.
107182                 * inttypes-pri.m4: Likewise.
107183                 * inttypes-h.m4: Renamed from inttypes.m4.
107184                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
107186 2006-07-22  Bruno Haible  <bruno@clisp.org>
107188         Merge from GNU gettext 0.15.
107190         2005-07-05  Bruno Haible  <bruno@clisp.org>
107192                 * printf-args.c (printf_fetchargs): Work around broken
107193                 definition of wint_t on mingw.
107195         2005-02-12  Bruno Haible  <bruno@clisp.org>
107197                 * xallocsa.h: Add extern "C" for C++.
107199         2006-05-17  Bruno Haible  <bruno@clisp.org>
107201                 Cygwin portability.
107202                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
107204         2006-04-30  Bruno Haible  <bruno@clisp.org>
107206                 * progreloc.c: Include <mach-o/dyld.h> if available.
107207                 (find_executable): Use _NSGetExecutablePath when possible.
107209         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
107211                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
107212                 function.
107214         2005-12-29  Bruno Haible  <bruno@clisp.org>
107216                 * progreloc.c (set_program_name_and_installdir): Fix
107217                 compilation error.
107219         2005-12-04  Bruno Haible  <bruno@clisp.org>
107221                 Cygwin portability.
107222                 * progreloc.c: Include <windows.h> also on Cygwin.
107223                 (find_executable): Add support for Cygwin.
107224                 (set_program_name_and_installdir): Handle also platforms with
107225                 nonempty EXEEXT.
107227         2006-07-11  Bruno Haible  <bruno@clisp.org>
107229                 * javacomp.c: Fix a comment.
107230                 Reported by Jim Meyering.
107232         2006-04-30  Bruno Haible  <bruno@clisp.org>
107234                 * javacomp.h (compile_java_class): Add source_version,
107235                 target_version arguments.
107236                 * javacomp.c: Rewritten to choose only a compiler that
107237                 respects the specified source_version and target_version.
107239         2006-06-27  Bruno Haible  <bruno@clisp.org>
107241                 Assume correct S_ISDIR macro.
107242                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
107244         2006-07-22  Bruno Haible  <bruno@clisp.org>
107246                 * javaversion.h: New file, from GNU gettext.
107247                 * javaversion.c: New file, from GNU gettext.
107248                 * javaversion.java: New file, from GNU gettext.
107249                 * javaversion.class: New file, from GNU gettext.
107251         2006-05-17  Bruno Haible  <bruno@clisp.org>
107253                 Cygwin portability.
107254                 * javaexec.c (execute_java_class): Test for jview program
107255                 also on Cygwin.
107257         2006-04-09  Bruno Haible  <bruno@clisp.org>
107259                 * fatal-signal.c: Don't include string.h.
107260                 (at_fatal_signal): Use a copying loop instead of memcpy.
107262         2005-12-04  Bruno Haible  <bruno@clisp.org>
107264                 * csharpexec.c: Add support for 'clix' launcher (untested).
107265                 (execute_csharp_using_sscli): New function.
107266                 (execute_csharp_program): Call it.
107268         2006-06-21  Bruno Haible  <bruno@clisp.org>
107270                 Avoid warnings from recent versions of mcs.
107271                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
107272                 -o, -L, -r any more. Use options documented since mcs-1.0
107273                 instead. Similarly for -g.
107275         2005-07-09  Bruno Haible  <bruno@clisp.org>
107277                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
107278                 add a .dll suffix.
107279                 Reported by Mark Junker <mjscod@gmx.de>.
107281         2006-06-17  Bruno Haible  <bruno@clisp.org>
107283                 * config.charset: Update for NetBSD 3.0.
107285         2006-05-17  Bruno Haible  <bruno@clisp.org>
107287                 Cygwin portability.
107288                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
107290         2006-05-16  Bruno Haible  <bruno@clisp.org>
107292                 * localcharset.c [CYGWIN]: Include <windows.h>.
107293                 (get_charset_aliases): For Cygwin, return the same CPxxx
107294                 aliases list as under WIN32.
107295                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
107296                 the environment variables. Fall back to GetACP().
107298         2006-04-05  Bruno Haible  <bruno@clisp.org>
107300                 * config.charset: Update Juan Manuel Guerrero's address.
107302         2005-02-12  Bruno Haible  <bruno@clisp.org>
107304                 * allocsa.h: Add extern "C" for C++.
107306         2005-02-10  Bruno Haible  <bruno@clisp.org>
107308                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
107309                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
107311         2006-07-22  Bruno Haible  <bruno@clisp.org>
107313                 * gettext.h: Update to GNU gettext-0.15.
107315 2006-07-22  Bruno Haible  <bruno@clisp.org>
107317         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
107318         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
107319         lib-prefix.m4, longdouble.m4, ssize_t.m4.
107321 2006-07-21  Eric Blake  <ebb9@byu.net>
107323         * modules/stdlib-safer: New file.
107324         * MODULES.html.sh (File stream based Input/Output): Add
107325         stdlib-safer.
107327 2006-07-21  Eric Blake  <ebb9@byu.net>
107329         * lib/stdlib-safer.h: New file from coreutils, required by
107330         stdlib--.h.
107332 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
107334         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
107336 2006-07-20  Bruno Haible  <bruno@clisp.org>
107338         * gnulib-tool: Recognize new option --assume-autoconf.
107339         (autoconf_minversion): New variable.
107340         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
107342 2006-07-20  Bruno Haible  <bruno@clisp.org>
107344         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
107346 2006-07-19  Derek R. Price  <derek@ximbiot.com>
107348         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
107349         Reindent and repaginate.
107351 2006-07-19  Derek Price  <derek@ximbiot.com>
107353         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
107354         Correct grammar.
107356 2006-07-17  Bruno Haible  <bruno@clisp.org>
107358         * modules/list: New file.
107359         * modules/array-list: New file.
107360         * modules/carray-list, modules/carray-list-tests: New files.
107361         * modules/linked-list, modules/linked-list-tests: New files.
107362         * modules/avltree-list, modules/avltree-list-tests: New files.
107363         * modules/rbtree-list, modules/rbtree-list-tests: New files.
107364         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
107365         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
107366         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
107367         * modules/oset: New file.
107368         * modules/array-oset: New file.
107369         * modules/avltree-oset, modules/avltree-oset-tests: New files.
107370         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
107371         * tests/test-carray_list.c: New file.
107372         * tests/test-linked_list.c: New file.
107373         * tests/test-avltree_list.c: New file.
107374         * tests/test-rbtree_list.c: New file.
107375         * tests/test-linkedhash_list.c: New file.
107376         * tests/test-avltreehash_list.c: New file.
107377         * tests/test-rbtreehash_list.c: New file.
107378         * tests/test-avltree_oset.c: New file.
107379         * tests/test-rbtree_oset.c: New file.
107380         * MODULES.html.sh (Container data structures): New section.
107382 2006-07-17  Bruno Haible  <bruno@clisp.org>
107384         * m4/gl_list.m4: New file.
107386 2006-07-17  Bruno Haible  <bruno@clisp.org>
107388         * lib/gl_list.h: New file.
107389         * lib/gl_list.c: New file.
107390         * lib/gl_array_list.h: New file.
107391         * lib/gl_array_list.c: New file.
107392         * lib/gl_carray_list.h: New file.
107393         * lib/gl_carray_list.c: New file.
107394         * lib/gl_linked_list.h: New file.
107395         * lib/gl_linked_list.c: New file.
107396         * lib/gl_anylinked_list1.h: New file.
107397         * lib/gl_anylinked_list2.h: New file.
107398         * lib/gl_avltree_list.h: New file.
107399         * lib/gl_avltree_list.c: New file.
107400         * lib/gl_anyavltree_list1.h: New file.
107401         * lib/gl_anyavltree_list2.h: New file.
107402         * lib/gl_rbtree_list.h: New file.
107403         * lib/gl_rbtree_list.c: New file.
107404         * lib/gl_anyrbtree_list1.h: New file.
107405         * lib/gl_anyrbtree_list2.h: New file.
107406         * lib/gl_anytree_list1.h: New file.
107407         * lib/gl_anytree_list2.h: New file.
107408         * lib/gl_linkedhash_list.h: New file.
107409         * lib/gl_linkedhash_list.c: New file.
107410         * lib/gl_anyhash_list1.h: New file.
107411         * lib/gl_anyhash_list2.h: New file.
107412         * lib/gl_avltreehash_list.h: New file.
107413         * lib/gl_avltreehash_list.c: New file.
107414         * lib/gl_rbtreehash_list.h: New file.
107415         * lib/gl_rbtreehash_list.c: New file.
107416         * lib/gl_anytreehash_list1.h: New file.
107417         * lib/gl_anytreehash_list2.h: New file.
107419         * lib/gl_oset.h: New file.
107420         * lib/gl_oset.c: New file.
107421         * lib/gl_array_oset.h: New file.
107422         * lib/gl_array_oset.c: New file.
107423         * lib/gl_avltree_oset.h: New file.
107424         * lib/gl_avltree_oset.c: New file.
107425         * lib/gl_rbtree_oset.h: New file.
107426         * lib/gl_rbtree_oset.c: New file.
107427         * lib/gl_anytree_oset.h: New file.
107429 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
107431         * m4/mkancesdirs.m4: New file.
107432         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
107433         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
107434         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
107435         it.
107437 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
107439         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
107440         * lib/mkancesdirs.h: New files.
107441         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
107442         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
107443         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
107444         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
107445         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
107446         callers changed.  Revamp internals significantly, by not
107447         attempting to create directories that are temporarily more
107448         permissive than the final results.  Do not attempt to use
107449         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
107450         This removes some race conditions, fixes some bugs, and simplifies
107451         things.  Use new dirchownmod function to do owner and mode changes.
107452         * lib/mkdir-p.h: Likewise.
107453         * lib/modechange.c (octal_to_mode): New function.
107454         (struct mode_change): New member mentioned.
107455         (make_node_op_equals): New arg mentioned.  All callers changed.
107456         (mode_compile): Keep track of which mode bits the user has explicitly
107457         mentioned.
107458         (mode_adjust): New arg DIR, so that we implement the X op correctly.
107459         New arg PMODE_BITS, to keep track of which mode bits the user
107460         mentioned; it treats S_ISUID and S_ISGID speciall.
107461         All callers changed.
107462         * lib/modechange.h: Likewise.
107464 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
107466         * MODULES.html.sh: Add mkancestors.
107467         * modules/mkancesdirs: New module.
107468         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
107469         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
107470         The chdir-safer and afs files are now orphans; I'll remove them
107471         unless someone speaks up.
107472         Add lib/dirchownmod.c, lib/dirchownmod.h.
107473         (Depends-on): Remove alloca, chown, save-cwd, dirname.
107474         Add lchown, mkancesdirs.
107475         (Maintainer): Add self.
107477 2006-07-15  Karl Berry  <karl@gnu.org>
107479         * gnulib-tool: help message wording/arrangement.
107481 2006-07-14  Simon Josefsson  <jas@extundo.com>
107483         * doc/gnulib.texi (Libtool and Windows): New section.
107485 2006-07-12  Simon Josefsson  <jas@extundo.com>
107487         * modules/gendocs (License): Fix license, approved by Karl.
107489 2006-07-12  Eric Blake  <ebb9@byu.net>
107491         * MODULES.html.sh: Add gendocs.
107493 2006-07-11  Eric Blake  <ebb9@byu.net>
107495         * modules/fdl: New module, to install doc/fdl.texi.
107496         * MODULES.html.sh: Add new section for documentation modules.
107497         * gnulib-tool: Avoid space-tab.
107498         (--doc-base): New option, to manage files from doc.
107500 2006-07-11  Eric Blake  <ebb9@byu.net>
107502         * m4/absolute-header.m4: Fix comments to match recent change.
107504 2006-07-11  Eric Blake  <ebb9@byu.net>
107506         * gnulib-tool: List --doc-base before --tests-base.
107508 2006-07-11  Derek R. Price  <derek@ximbiot.com>
107510         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
107512 2006-07-11  Bruno Haible  <bruno@clisp.org>
107514         * README: Mention where to put documentation.
107516 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107518         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
107520 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
107522         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
107523         to stdint.m4.
107525 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
107527         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
107528         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
107529         "no/such/file/stdint.h" when there is no such file, so that
107530         the resulting C code can be parsed by dodgy compilers.
107531         Problems reported by Bob Proulx.
107533 2006-07-10  Derek R. Price  <derek@ximbiot.com>
107535         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
107536         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
107537         macros into the GNU _D_EXACT_NAMLEN.
107538         * lib/savedir.c:  Likewise.
107539         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
107541 2006-07-10  Derek R. Price  <derek@ximbiot.com>
107542         and Paul Eggert  <eggert@cs.ucla.edu>
107544         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
107545         * m4/savedir.m4:
107546         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
107547         macros into the GNU _D_EXACT_NAMLEN.
107549 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
107551         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
107552         around the absolute name, to work around a problem with the HP-UX
107553         11.23 native C compiler, reported by Bob Proulx.
107555 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
107557         * doc/maintain.texi, make-stds.texi: Sync from
107558         <http://savannah.gnu.org/projects/gnustandards>.
107560 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
107562         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
107564 2006-07-09  Jim Meyering  <jim@meyering.net>
107566         * m4/glob.m4: Remove a doubled word in a comment.
107568 2006-07-09  Jim Meyering  <jim@meyering.net>
107570         * lib/argp-pv.c: Remove a doubled word in a comment.
107571         * lib/check-version.c (check_version): Likewise.
107572         * lib/javacomp.c (compile_java_class): Likewise.
107574 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
107576         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
107577         for the benefit of people using Autoconf 2.60.  If you want to
107578         support older Autoconf versions you can copy m4/onceonly_2_57.m4
107579         (or m4/onceonly.m4, if pre-2.57) manually.
107581 2006-07-08  Jim Meyering  <jim@meyering.net>
107583         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
107584         comment.
107585         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
107586         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
107587         comment.
107589 2006-07-08  Jim Meyering  <jim@meyering.net>
107591         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
107593 2006-07-07  Simon Josefsson  <jas@extundo.com>
107595         * tests/test-crc.c: Change expected crc value, the test vector
107596         were probably computed using the old broken crc.c?
107598 2006-07-06  Simon Josefsson  <jas@extundo.com>
107600         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
107601         now the canonical place for the M4 file).
107603         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
107604         from the sys_socket dependency now.
107606         * modules/inet_pton (Files): Ditto.
107608         * modules/inet_ntop (Files): Ditto.
107610 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
107612         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
107613         not gl_PREREQ_GETUSERSHELL.
107615 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107617         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
107618         with only one argument, for Autoconf 2.60.
107619         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
107620         expand to nothing, so add a shell command to avoid syntax error.
107621         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
107623 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107625         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
107627 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
107629         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
107630         no longer needed.  Check for isblank decl.
107631         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
107632         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
107633         of existence.
107635 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
107637         * lib/getloadavg.c: Use __VMS, not VMS.
107638         * lib/getopt.c: Likewise.
107639         * lib/getpagesize.h: Likewise.
107640         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
107641         and probably does not work.
107643 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
107645         * lib/.cppi-disable: Add wcwidth.
107646         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
107647         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
107648         (ISGRAPH): Remove.  All uses changed to isgraph.
107649         (FOLD) [!defined _LIBC]: Remove special case.
107650         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
107651         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
107652         HAVE_ISBLANK.
107653         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
107654         case.
107656 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
107658         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
107659         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
107660         brackets.  Other minor changes to suppress some compiler
107661         warnings.
107663 2006-07-06  Derek R. Price  <derek@ximbiot.com>
107664         and Paul Eggert  <eggert@cs.ucla.edu>
107666         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
107667         of invoking obsolescent AC_HEADER_DIRENT macro.
107668         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
107669         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
107670         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
107671         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
107672         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
107673         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
107674         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
107675         * m4/readdir.m4: Remove; no longer needed.
107677 2006-07-06  Derek R. Price  <derek@ximbiot.com>
107678         and Paul Eggert  <eggert@cs.ucla.edu>
107680         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
107681         Don't worry about this obsolete case any more.
107682         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
107683         directories.
107684         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
107685         worry about this obsolete case any more.
107686         * lib/fts.c: Likewise.
107687         * lib/getcwd.c: Likewise.
107688         * lib/glob.h: Likewise.
107689         * lib/savedir.c: Likewise.
107691 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
107693         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
107694         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
107695         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
107696         needed.
107697         All uses removed.
107698         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
107699         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
107700         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
107701         needed.
107702         * m4/getdate.m4 (gl_GETDATE): Likewise.
107703         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
107704         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
107705         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
107706         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
107707         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
107708         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
107709         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
107710         needed.
107712 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
107714         * lib/memcasecmp.c: Include <limits.h>.
107715         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
107716         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
107717         Don't assume isdigit succeeds only on '0' through '9'.
107719 2006-07-05  Eric Blake  <ebb9@byu.net>
107721         * modules/getaddrinfo (Depends-on): Add snprintf.
107723 2006-07-05  Eric Blake  <ebb9@byu.net>
107725         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
107726         to avoid 'header present but could not be compiled' on cygwin.
107728 2006-07-05  Eric Blake  <ebb9@byu.net>
107730         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
107731         missing from netdb.h.
107732         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
107734 2006-07-05  Derek R. Price  <derek@ximbiot.com>
107736         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
107737         no longer needed.
107738         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
107739         * m4/getdate.m4 (gl_GETDATE): Likewise.
107740         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
107741         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
107742         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
107743         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
107744         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
107746 2006-07-05  Derek R. Price  <derek@ximbiot.com>
107748         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
107749         All uses of is_space replaced by isspace.
107750         * lib/exit.h: Don't talk about STDC_HEADERS.
107751         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
107752         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
107753         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
107754         replaced by isprint etc.
107755         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
107756         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
107757         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
107758         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
107759         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
107760         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
107762 2006-07-05  Bruno Haible  <bruno@clisp.org>
107764         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
107765         the function exists, before testing against AIX.
107766         Reported by Martin Lambers <marlam@marlam.de>.
107768 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
107770         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
107771         From Mark D. Baushke.
107773 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
107775         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
107776         to the absolute name, not just one, to bypass Sun C 5.8's
107777         "warning: #include of /usr/include/... may be non-portable".
107779 2006-07-04  Eric Blake  <ebb9@byu.net>
107781         * modules/dirname-tests: New test module.
107782         * tests/test-dirname.c: New file, replacing dirname.c
107783         TEST_DIRNAME section that was recently deleted.
107785 2006-07-04  Bruno Haible  <bruno@clisp.org>
107787         Assume ANSI C header files and <ctype.h> functions.
107788         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
107789         (mbsnwidth): Use isprint, iscntrl instead.
107791 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
107793         Merge from coreutils.
107794         * MODULES.html.sh: Add xstrtold.
107795         * modules/xstrtold: New file.
107796         * modules/cycle-check (Files): Add lib/same-inode.h.
107797         * modules/dirname (Files): Add m4/double-slash-root.m4.
107798         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
107799         * modules/mkdir-p (Files): Add lib/same-inode.h.
107800         * modules/same (Files): Add lib/same-inode.h.
107802 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
107804         * m4/absolute-header.m4: Renamed from full-header-path.m4.
107805         This is to keep the terminology clean; POSIX talks about
107806         "absolute pathnames", not "full pathnames", but the GNU
107807         Coding Standards say to use "path" for something else;
107808         so use "absolute" to keep both sides happy.
107809         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
107810         Set gl_absolute_header, not gl_full_header_path.
107811         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
107812         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
107813         All uses changed.
107815         Merge from coreutils.
107817         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
107819         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
107820         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
107821         want to require the building of c-strtod.o.
107822         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
107823         needs -lm directly.
107824         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
107826         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
107828         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
107829         --as-needed option if available.  Problem reported by Albert Chin in
107830         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00114.html>.
107831         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
107832         cc merely issues a bunch of annoying warnings for --as-needed
107833         (this problem was reported by Bob Proulx).  Also, try linking with
107834         -lm to detect a bug in binutils 2.16 (this problem was reported
107835         by Ralf Wildenhues).
107837         2006-06-18  Jim Meyering  <jim@meyering.net>
107839         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
107840         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
107841         macro.
107842         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
107843         also check for glibc-2.4's abort-inducing bug.
107845         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
107846         Low-probability clean-up should be to use rmdir to get rid of
107847         the just-created directory, not unlink.
107849         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
107850         configure fail, and request a bug report to inform us about it.
107851         Add a comment that, barring reports to the contrary, in 2007 we'll
107852         assume ftruncate is universally available.
107854         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
107856         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
107858         2006-03-12  Jim Meyering  <jim@meyering.net>
107860         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
107861         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
107862         * m4/same.m4 (gl_SAME): Likewise.
107863         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
107865         2006-03-11  Eric Blake  <ebb9@byu.net>
107867         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
107868         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
107869         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
107870         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
107872 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
107874         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
107875         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
107876         reported by Mark D. Baushke, one in
107877         <http://lists.gnu.org/r/bug-gnulib/2006-07/msg00015.html>.
107879         Merge from coreutils.
107881         * lib/.cppi-disable: Add stdint_.h.
107882         * lib/.cvsignore: Add stdint.h.
107884         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
107886         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
107887         both double and long double versions.
107888         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
107889         * lib/xstrtold.c: New file.
107890         * lib/xstrtod.h (xstrtold): New decl.
107892         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
107894         * lib/filemode.c (setst): Remove.
107895         (strmode): Rewrite to avoid setst.  This makes the code shorter,
107896         (arguably) clearer, and the generated code is a bit smaller on my
107897         Debian GNU/Linux stable x86 host.
107899         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
107901         * lib/filemode.c: Include "filemode.h" first, to test the interface.
107902         Assume that filemode.h includes sys/types.h and sys/stat.h.
107903         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
107904         (ftypelet): Reorder to put common cases first, for efficiency.
107905         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
107906         to do 'M'.
107907         (strmode): Renamed from mode_string, and now stores 12 bytes instead
107908         of 10, for compatibility with FreeBSD.  All callers changed.
107909         (filemodestring): Now stores 12 bytes instead of 10, and sets file
107910         types that can't be deduced solely from st_mode.  First arg is now a
107911         const pointer.
107912         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
107913         (strmode): Renamed from mode_string.
107914         (filemodestring): New decl.
107915         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
107916         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
107917         needed.
107918         (S_ISPORT, S_ISWHT): New macros, if not already defined.
107920         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
107922         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
107923         fsusage.h now does that.  Include fsusage.h first, to test interface.
107924         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
107925         at most one method (the old code could have generated decls that
107926         didn't conform to C89, not that this was ever exercised).
107927         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
107929         2006-03-19  Jim Meyering  <jim@meyering.net>
107931         Work even in a chroot where d_ino values for entries in "/"
107932         don't match the stat.st_ino values for the same names.
107933         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
107934         number, iterate through all entries again, using lstat instead.
107935         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
107936         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
107938         * lib/getcwd.c (__getcwd): Clarify a comment.
107939         Use memcpy in place of a call to strcpy.
107941         2006-03-12  Jim Meyering  <jim@meyering.net>
107943         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
107944         matches that of the current directory (which we're about to chdir ".."
107945         out of), then save the dev-ino of the parent, instead.
107947         * lib/same-inode.h (SAME_INODE): New file/macro.
107948         * lib/chdir-safer.c (SAME_INODE): Remove definition.
107949         Include "same-inode.h", instead.
107950         * lib/same.c: Likewise.
107951         * lib/cycle-check.h: Include "same-inode.h".
107952         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
107953         * lib/cycle-check.c (SAME_INODE): Remove definition.
107954         * lib/root-dev-ino.h: Include "same-inode.h".
107956         2006-03-11  Eric Blake  <ebb9@byu.net>
107958         * lib/same.c (same_name): s/base_name/last_component/
107959         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
107960         * lib/filenamecat.c (file_name_concat): Likewise.
107962         2006-03-11  Eric Blake  <ebb9@byu.net>,
107963                     Paul Eggert  <eggert@cs.ucla.edu>
107965         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
107966         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
107967         drive prefix.
107968         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
107969         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
107970         (last_component): New method.
107971         * lib/dirname.c (dir_len): Determine when drive letters need a
107972         subsequent slash.  Preserve // when it is special.
107973         (dir_name): Don't append dot when drive letter is absolute.
107974         [TEST_DIRNAME]: Move into a full-blown gnulib test.
107975         * lib/basename.c (base_name): New semantics - malloc the result.
107976         Preserve // when it is special.  Preserve relative files that look
107977         like drive letters.
107978         (base_len): Preserve // when it is special.
107979         (last_component): New method, similar to old base_name semantics.
107980         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
107981         base_name.  Strip redundant slashes from ///.
107983 2006-07-03  Jim Meyering  <jim@meyering.net>
107985         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
107986         macro is used before the first cycle_check call.
107988 2006-07-03  Eric Blake  <ebb9@byu.net>
107990         * modules/dirname (Depends-on): Add xstrndup.
107992 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
107994         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
107995         test cases, so that config.log is a bit easier to follow.
107997 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
107999         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
108000         both are 64 bits, since this seems to be the tradition, and this
108001         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
108002         we ever run into a host that prefers long long to long in this
108003         case, we'll need another configure-time test.  Problem reported by
108004         Jim Meyering.
108006 2006-07-02  Eric Blake  <ebb9@byu.net>
108008         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
108010 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
108012         * modules/inttypes (Depends-on): No longer depends on stdint.
108013         * modules/stdint (Description): Say more about assumptions.
108014         Say that the fast types might differ.  Say macros are used.
108015         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
108016         (Makefile.am): Revise list of substituted symbols to match
108017         new stdint.m4.
108018         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
108019         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
108020         * tests/test-stdint.c (verify_same_types)
108021         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
108022         the code conforms to C99/C89.
108023         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
108024         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
108026 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
108028         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
108029         but fix a bug, by requiring at least 64 bits.
108030         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
108031         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
108032         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
108033         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
108035         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
108036         changes.  Make 2.59 a prerequisite.  Check and substitute for
108037         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
108038         inttypes.h.  Do not use special include files; just use the
108039         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
108040         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
108041         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
108042         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
108043         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
108044         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
108045         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
108046         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
108047         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
108048         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
108049         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
108050         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
108051         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
108052         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
108053         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
108054         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
108055         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
108056         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
108057         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
108058         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
108059         WINT_MAX.  Check for C99 conformance more strictly, by detecting
108060         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
108061         not check for things that C99 does not require, e.g., int8_t.  If
108062         a test isn't needed unless <stdint.h> isn't working, and is
108063         unlikely to be needed for any other reason, then don't do it
108064         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
108065         size_t, since we assume C89 freestanding at least.  Do not check
108066         for sig_atomic_t, wchar_t, or wint_t, since the code now does
108067         the right thing even if the types are not defined.  Instead use:
108068         (gl_STDINT_TYPE_PROPERTIES): New macro.
108069         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
108070         testing whether <sys/types.h> clashes, as Autoconf does this for
108071         us now.  All uses removed.
108072         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
108073         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
108074         (gl_CHECK_TYPE_SAME):
108075         Remove; no longer needed.
108076         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
108077         exists, since we'll return 0 anyway in that case.
108078         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
108080 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
108082         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
108083         possible collision with system files.
108084         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
108085         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
108086         WCHAR_MIN and WCHAR_MAX in this case.
108087         (<stddef.h>): Do not include; no longer needed.
108088         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
108089         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
108090         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
108091         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
108092         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
108093         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
108094         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
108095         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
108096         !defined(__c99))]: Include in this case too, since it's harmless
108097         now.
108098         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
108099         dangerous to do so.
108100         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
108101         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
108102         (_STDINT_MIN, _STDINT_MAX): New macros.
108103         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
108104         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
108105         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
108106         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
108107         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
108108         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
108109         macros, not typedefs; this simplifies things quite a bit.
108110         Use long int for all types narrower than int64_t.
108111         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
108112         Define in terms of long long int or int64_t or long int,
108113         not int64_t or int32_t.  This saves some compile-time testing.
108114         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
108115         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
108116         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
108117         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
108118         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
108119         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
108120         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
108121         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
108122         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
108123         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
108124         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
108125         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
108126         undef any previous version and define our own version, for
108127         simplicity and consistency with the new macros for types.
108128         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
108129         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
108130         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
108131         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
108132         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
108133         @WINT_T_SUFFIX@ to keep things simple here.
108134         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
108135         Simplify by assuming typical 8/16/32/64 host, since we're
108136         already doing that elsewhere anyway.
108137         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
108138         and assume long long int is 64 bits if available.  This
108139         speeds up 'configure'.
108141 2006-07-01  Eric Blake  <ebb9@byu.net>
108143         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
108144         Reported by Andreas Buening.
108146 2006-07-01  Eric Blake  <ebb9@byu.net>
108148         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
108150 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
108152         * lib/getaddrinfo.c: fixed typo
108154 2006-06-29  Jim Meyering  <jim@meyering.net>
108156         * modules/strftime (Maintainer): Add my name, since with the
108157         FPRINTFTIME changes strftime.c has forked from glibc.
108159 2006-06-29  Eric Blake  <ebb9@byu.net>
108161         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
108163 2006-06-29  Eric Blake  <ebb9@byu.net>
108165         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
108167 2006-06-29  Eric Blake  <ebb9@byu.net>
108169         * lib/stat_.h: New file.
108171 2006-06-29  Eric Blake  <ebb9@byu.net>
108173         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
108174         unused static function.
108176 2006-06-29  Eric Blake  <ebb9@byu.net>
108178         * doc/functions.texi (Function Portability): Document missing lstat
108179         on mingw.
108181 2006-06-29  Eric Blake  <ebb9@byu.net>
108183         * MODULES.html.sh: Add sys_stat.
108184         * modules/sys_stat: New module.
108185         * modules/mkstemp (Depends-on): Add sys_stat.
108187 2006-06-29  Derek R. Price  <derek@ximbiot.com>
108189         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
108191 2006-06-29  Derek R. Price  <derek@ximbiot.com>
108193         * m4/c-bs-a.m4: Removed.
108195 2006-06-29  Derek R. Price  <derek@ximbiot.com>
108197         * lib/strftime.c: Assume strftime() exists.
108199 2006-06-29  Derek Price  <derek@ximbiot.com>
108201         * modules/c-bs-a: Removed - \a is C89.
108202         * MODULES.html.sh: Remove c-bs-a.
108204 2006-06-29  Bruno Haible  <bruno@clisp.org>
108206         * modules/wcwidth (License): Change to LGPL.
108208 2006-06-28  Simon Josefsson  <jas@extundo.com>
108210         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
108211         on _WIN32.
108213         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
108214         getnameinfo.
108216 2006-06-28  Simon Josefsson  <jas@extundo.com>
108218         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
108220 2006-06-28  Simon Josefsson  <jas@extundo.com>
108222         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
108223         functions there.  It will succeed on Windows XP, but on Windows
108224         2000 and (presumably) earlier, it will fail, and use the internal
108225         re-implementation.
108226         (use_win32_p): New function.
108227         (getaddrinfo): Use strtoul on servname, to support numeric ports.
108228         Support AI_NUMERICSERV to disable getservbyname.
108229         (getnameinfo): New function, only supports
108230         NI_NUMERICHOST|NI_NUMERICSERV for now.
108232         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
108233         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
108234         getnameinfo.
108236 2006-06-28  Eric Blake  <ebb9@byu.net>
108238         * modules/wcwidth: New file.
108239         * modules/mbchar (Depends-on): Add wcwidth.
108240         * modules/mbswidth (Depends-on): Add wcwidth.
108241         * MODULES.html.sh: Add wcwidth.
108243 2006-06-28  Eric Blake  <ebb9@byu.net>
108245         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
108246         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
108248 2006-06-28  Eric Blake  <ebb9@byu.net>
108250         * lib/xvasprintf.h: Fix comments.
108252 2006-06-28  Eric Blake  <ebb9@byu.net>
108254         * lib/mbchar.h (wcwidth): Include wcwidth.h.
108255         * lib/mbswidth.c (wcwidth): Move from here...
108256         * lib/wcwidth.h: ...to this new file.
108258 2006-06-28  Derek R. Price  <derek@ximbiot.com>
108260         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
108262         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
108263         it's obsolete.
108264         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
108266 2006-06-28  Derek R. Price  <derek@ximbiot.com>
108268         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
108269         Autoconf 2.60 says this stuff was obsolete.
108271 2006-06-28  Bruno Haible  <bruno@clisp.org>
108273         * modules/wcwidth (Files): Add m4/wchar_t.m4.
108275 2006-06-28  Bruno Haible  <bruno@clisp.org>
108277         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
108278         gt_TYPE_WCHAR_T.
108280 2006-06-28  Bruno Haible  <bruno@clisp.org>
108282         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
108283         declaration for wcwidth.
108284         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
108286 2006-06-28  Bruno Haible  <bruno@clisp.org>
108288         * lib/mkdtemp.c [MINGW]: Include <io.h>.
108289         (mkdir): Define using _mkdir.
108291 2006-06-28  Bruno Haible  <bruno@clisp.org>
108293         * lib/getaddrinfo.h: Fix POSIX URL.
108294         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
108295         _WIN32.
108296         (use_win32_p): Make static.
108297         (getaddrinfo): Reject service name if it is empty or does not consist
108298         solely of decimal digits, or if its value is > 65535.
108299         (getnameinfo): Remove useless casts.
108301 2006-06-27  Simon Josefsson  <jas@extundo.com>
108303         * modules/sys_select: New file, suggested by Bruno Haible, Paul
108304         Eggert and Martin Lambers.
108306 2006-06-27  Simon Josefsson  <jas@extundo.com>
108308         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
108309         Eggert and Martin Lambers.
108311 2006-06-27  Bruno Haible  <bruno@clisp.org>
108313         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
108314         result to 0, not to empty.
108315         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
108317 2006-06-27  Bruno Haible  <bruno@clisp.org>
108319         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
108321 2006-06-26  Simon Josefsson  <jas@extundo.com>
108323         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
108324         present.
108326 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
108328         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
108329         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
108330         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00181.html>.
108332 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
108334         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
108336 2006-06-26  Bruno Haible  <bruno@clisp.org>
108338         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
108340 2006-06-26  Bruno Haible  <bruno@clisp.org>
108342         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
108344 2006-06-26  Bruno Haible  <bruno@clisp.org>
108346         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
108347         SGI C compiler in pre-C99 mode.
108348         Suggested by Mark D. Baushke and Larry Jones.
108350 2006-06-26  Bruno Haible  <bruno@clisp.org>
108352         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
108353         WCHAR_MAX.
108354         Reported by Mark D. Baushke and Larry Jones.
108356 2006-06-26  Bruno Haible  <bruno@clisp.org>
108358         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
108359         in pre-C99 mode.
108360         Suggested by Mark D. Baushke and Larry Jones.
108362 2006-06-23  Simon Josefsson  <jas@extundo.com>
108363             Bruno Haible  <bruno@clisp.org>
108365         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
108366         Emit mostlyclean-local rule.
108367         (func_emit_tests_Makefile_am): Likewise.
108368         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
108370 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
108372         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
108374 2006-06-23  Bruno Haible  <bruno@clisp.org>
108376         * tests/test-stdint.c: Update to match ISO C 99 Technical
108377         Corrigendum 1.
108379 2006-06-23  Bruno Haible  <bruno@clisp.org>
108381         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
108383 2006-06-23  Bruno Haible  <bruno@clisp.org>
108385         * lib/stdint_.h: Treat IRIX like OpenBSD.
108387 2006-06-23  Bruno Haible  <bruno@clisp.org>
108389         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
108390         ISO C 99 Technical Corrigendum 1.
108392 2006-06-22  Simon Josefsson  <jas@extundo.com>
108394         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
108395         MinGW.
108397 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
108399         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
108400         needed.  Some compiler complained about some of them.  Problem reported
108401         by Larry Jones in
108402         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00172.html>.
108404 2006-06-21  Simon Josefsson  <jas@extundo.com>
108406         * tests/test-getaddrinfo.c: New file.
108408         * modules/getaddrinfo-tests: New file.
108410         * MODULES.html.sh: Add inet_pton.
108412         * modules/inet_pton: New file.
108414 2006-06-21  Simon Josefsson  <jas@extundo.com>
108416         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
108417         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
108418         of using the (limited) gnulib implementation on Windows XP.
108420         * m4/inet_pton.m4: New file.
108422 2006-06-21  Simon Josefsson  <jas@extundo.com>
108424         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
108425         variable.
108427         * lib/socket_.h: Don't define WINVER.
108429         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
108430         slightly modified to work in gnulib.
108432 2006-06-21  Simon Josefsson  <jas@extundo.com>
108434         * doc/gnulib.texi (Windows sockets): Add.
108436 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
108438         * lib/read-file.c (fread_file): Start with buffer allocation of
108439         0 bytes rather than 1 byte; this simplifies the code.
108440         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
108441         code to free buffer and save/restore errno.
108442         (internal_read_file): Remove unused local.
108444 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
108446         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
108447         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
108448         Problem reported by Denis Excoffier in
108449         <http://lists.gnu.org/r/bug-tar/2006-06/msg00023.html>.
108451 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
108453         * modules/sys_socket, modules/socklen: Include sys/types since
108454         FreeBSD 4.x's sys/socket.h needs it.
108456 2006-06-19  Simon Josefsson  <jas@extundo.com>
108458         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
108460 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
108462         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
108464 2006-06-19  Bruno Haible  <bruno@clisp.org>
108466         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
108467         and FULL_PATH_INTTYPES_H in angle brackets.
108468         Reported by Mark D. Baushke <mdb@gnu.org>.
108470 2006-06-17  Eric Blake  <ebb9@byu.net>
108472         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
108473         errno.
108475 2006-06-17  Bruno Haible  <bruno@clisp.org>
108477         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
108478         <sys/inttypes.h>.
108480 2006-06-17  Bruno Haible  <bruno@clisp.org>
108482         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
108483         whether errno is declared. Assume <errno.h> declares errno.
108485 2006-06-17  Bruno Haible  <bruno@clisp.org>
108487         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
108489 2006-06-17  Bruno Haible  <bruno@clisp.org>
108491         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
108492         problem on Solaris 2.5.1.
108494 2006-06-16  Eric Blake  <ebb9@byu.net>
108496         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
108497         * lib/unicodeio.c [!defined errno]: Likewise.
108498         * lib/strtol.c [!defined errno]: Likewise.
108499         * lib/strtod.c [!defined errno]: Likewise.
108501 2006-06-15  Eric Blake  <ebb9@byu.net>
108503         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
108505 2006-06-15  Eric Blake  <ebb9@byu.net>
108507         * config/srclist.txt (ssize_t.m4): Lose sync.
108509 2006-06-15  Bruno Haible  <bruno@clisp.org>
108511         * modules/stdint (Files): Include m4/full-header-path.m4,
108512         m4/size_max.m4, m4/wchar_t.m4.
108513         (Makefile.am): Many more substitutions.
108514         * modules/stdint-tests: New file.
108515         * tests/test-stdint.c: New file.
108517 2006-06-15  Bruno Haible  <bruno@clisp.org>
108519         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
108520         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
108521         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
108522         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
108523         gl_CHECK_TYPE_SAME): New macros.
108525 2006-06-15  Bruno Haible  <bruno@clisp.org>
108527         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
108529 2006-06-15  Bruno Haible  <bruno@clisp.org>
108531         * lib/stdint_.h: Rewritten to be fully auto-configured.
108532         Fixes bug on HP-UX/IA64.
108534 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
108536         * lib/getdate.y (__attribute__): Don't define if already defined.
108537         Problem reported by Larry Jones.
108538         * lib/utimens.c (__attribute__): Likewise.
108540 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
108542         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
108543         reported by Andreas Schwab.
108545 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108546             Bruno Haible  <bruno@clisp.org>
108548         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
108549         check for the declaration of strnlen and a run test that exposes the
108550         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
108551         rpl_strndup.
108553 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108554             Bruno Haible  <bruno@clisp.org>
108556         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
108558 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108560         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
108561         compile test, for Tru64 4.0D.
108563 2006-05-28  Karl Berry  <karl@gnu.org>
108565         * config/srclist.txt (printf-args.c): lose sync.
108567 2006-05-26  Martin Lambers  <marlam@marlam.de>
108569         * lib/getpass.c: Updates the test for the native W32 API, and adds
108570         missing includes, thus fixing compilation warnings.
108572 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
108574         * lib/exclude.c (exclude_fnmatch): New function.
108575         (excluded_file_name): Call exclude_fnmatch.
108576         * lib/exclude.h (excluded_file_name): New prototype
108578 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
108580         * lib/tempname.c (small_open, large_open): New macros.
108581         (__open, __open64) [!_LIBC]: Remove.
108582         (__gen_tempname): Use small_open and large_open instead of __open
108583         and __open64.  This fixes a portability bug on HP-UX 11.11i
108584         reported by Simon Wing-Tang in
108585         <http://lists.gnu.org/r/bug-coreutils/2006-05/msg00114.html>.
108587 2006-05-24  Bruno Haible  <bruno@clisp.org>
108589         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
108590         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
108591         Reported by Thorsten Maerz <torte@netztorte.de> via
108592         Aaron Stone <aaron@serendipity.cx>.
108594 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
108596         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
108597         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
108598         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
108599         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
108600         not really conditional on the cache.
108601         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
108603 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
108605         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
108606         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
108607         (my_usleep): Don't mishandle maximum value.
108609 2006-05-19  Jim Meyering  <jim@meyering.net>
108611         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
108613 2006-05-17  Bruno Haible  <bruno@clisp.org>
108615         Cygwin portability.
108616         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
108618 2006-05-17  Bruno Haible  <bruno@clisp.org>
108620         * lib/stdint_.h: Fix recognition of Cygwin.
108622 2006-05-15  Bruno Haible  <bruno@clisp.org>
108624         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
108625         on libtool patch by Ralf Wildenhues.
108627 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
108629         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
108630         test for C99 conformance; (bool) 0.5 is an integer constant
108631         expression, but (bool) -0.5 is not.  Problem reported by Fedor
108632         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
108634 2006-05-11  Simon Josefsson  <jas@extundo.com>
108636         * m4/xvasprintf.m4: Fix obvious typo.
108638 2006-05-11  Jim Meyering  <jim@meyering.net>
108640         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
108641         James Lemley.
108643 2006-05-10  Simon Josefsson  <jas@extundo.com>
108645         * lib/md4.c: Typo fix, update copyright years.
108646         (K1, K2): Don't use L because it turn computations into 64-bit on
108647         64-bit platforms.
108649 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
108651         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
108652         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
108653         unwanted sign propagation, e.g., on hosts with 64-bit int.
108654         There still are some problems with reeelly weird theoretical hosts
108655         (e.g., 33-bit int) but it's not worth worrying about now.
108656         * lib/sha1.c (rol): Likewise.
108657         (K1, K2, K3, K4): Remove unnecessary L suffix.
108659 2006-05-10  Bruno Haible  <bruno@clisp.org>
108661         * lib/des.c: Cast to avoid warnings.
108663 2006-05-09  Bruno Haible  <bruno@clisp.org>
108665         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
108666         (Depends-on): Depend also on xsize, stdarg.
108667         (configure.ac): Add gl_XVASPRINTF.
108669 2006-05-09  Bruno Haible  <bruno@clisp.org>
108671         * m4/xvasprintf.m4: New file.
108673 2006-05-09  Bruno Haible  <bruno@clisp.org>
108675         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
108676         (EOVERFLOW): Define fallback value.
108677         (xstrcat): New function.
108678         (xvasprintf): Recognize the special case of a string concatenation.
108680 2006-05-08  Eric Blake  <ebb9@byu.net>
108682         * gnulib-tool (func_version): Base copyright year on CVS date.
108683         (func_emit_copyright_notice): New function.
108684         (func_emit_lib_Makefile_am): Use it.
108685         (func_emit_tests_Makefile_am): Likewise.
108686         (func_import): Likewise.
108688 2006-05-08  Bruno Haible  <bruno@clisp.org>
108690         * modules/stdarg: New file.
108691         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
108693 2006-05-08  Bruno Haible  <bruno@clisp.org>
108695         * m4/stdarg.m4: New file, from GNU gettext.
108697 2006-05-08  Bruno Haible  <bruno@clisp.org>
108699         * config/srclist.txt (build-aux/config.rpath): different from latest
108700         release.
108702 2006-05-08  Bruno Haible  <bruno@clisp.org>
108704         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
108706 2006-05-05  Jim Meyering  <jim@meyering.net>
108708         * m4/warning.m4: New file, derived from bison's file by the same name.
108710 2006-05-03  Bruno Haible  <bruno@clisp.org>
108712         * lib/stdint_.h: Shorter URL.
108713         * lib/inttypes.h: Likewise.
108715 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
108717         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
108719 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
108721         * lib/verify.h: Document the internals better.  Most of this change
108722         was written by Bruno Haible.
108724 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
108726         * doc/verify.texi: New file, partly based on a proposal by
108727         Bruno Haible.
108729 2006-05-02  Bruno Haible  <bruno@clisp.org>
108731         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
108732         test from here...
108733         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
108735 2006-04-29  Bruno Haible  <bruno@clisp.org>
108737         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
108738         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
108740 2006-04-29  Bruno Haible  <bruno@clisp.org>
108742         * gnulib-tool: Make --update option actually work.
108744 2006-04-29  Bruno Haible  <bruno@clisp.org>
108746         * doc/gcd.texi: New file.
108747         * doc/gnulib.texi: Include it.
108749 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
108751         * lib/getdate.y (get_date): When adding relative date, start with the
108752         initial time, not with the result of the first mktime call.
108754 2006-04-25  Bruno Haible  <bruno@clisp.org>
108756         * gnulib-tool (func_import): Output the include directives in three
108757         blocks, sorted separately.
108758         Reported by Ben Pfaff <blp@cs.stanford.edu>.
108760 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
108762         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
108763         to define main with arguments, for C++.  Reported by Eric Blake.
108764         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
108765         Prefer 'int main ()' to 'int main (void)', for C++.
108766         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
108767         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
108768         for 'main', for C99 and C++.
108770 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
108772         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
108773         Don't assume that exit status -1 is valid.
108774         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
108775         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
108776         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
108777         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
108778         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
108779         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
108780         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
108781         functions can be used without declaring them, or that you can
108782         exit with status -1.
108783         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
108785 2006-04-24  Karl Berry  <karl@gnu.org>
108787         * config/srclist.txt (longdouble.m4): sync lost.
108789 2006-04-24  Eric Blake  <ebb9@byu.net>
108791         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
108793 2006-04-24  Bruno Haible  <bruno@clisp.org>
108795         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
108796         poll() implementation in AIX.
108797         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
108799 2006-04-24  Bruno Haible  <bruno@clisp.org>
108801         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
108802         assigned exactly once.
108804 2006-04-23  Claudio Fontana  <claudio@gnu.org>
108805             Bruno Haible  <bruno@clisp.org>
108807         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
108808         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
108809         for AM_CPPFLAGS.
108811 2006-04-23  Bruno Haible  <bruno@clisp.org>
108813         * modules/copy-file: Depend on unistd.
108814         * modules/execute: Likewise.
108815         * modules/fatal-signal: Likewise.
108816         * modules/findprog: Likewise.
108817         * modules/mkdtemp : Likewise.
108818         * modules/pipe: Likewise.
108819         * modules/wait-process: Likewise.
108821 2006-04-23  Bruno Haible  <bruno@clisp.org>
108823         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
108824         condition was already detected.
108825         Reported by Ben Pfaff <blp@cs.stanford.edu>.
108827 2006-04-23  Bruno Haible  <bruno@clisp.org>
108829         * lib/copy-file.c: Include <unistd.h> unconditionally.
108830         * lib/execute.c: Likewise.
108831         * lib/fatal-signal.c: Likewise.
108832         * lib/findprog.c: Likewise.
108833         * lib/mkdtemp.c: Likewise.
108834         * lib/pipe.h: Likewise.
108835         * lib/pipe.c: Likewise.
108836         * lib/wait-process.h: Likewise.
108838 2006-04-23  Bruno Haible  <bruno@clisp.org>
108840         * gnulib-tool (func_usage): Fix --import description. Document
108841         --update.
108842         (func_import): Create temporary file in a temporary directory, if
108843         --dry-run is specified. Silence errors from 'grep' when there are no
108844         m4 files in $m4dir.
108845         (func_create_testdir): Silence errors from 'grep' when there are no
108846         m4 files in $m4dir.
108847         Reported by Karl Berry <karl@freefriends.org>.
108849 2006-04-20  Bruno Haible  <bruno@clisp.org>
108851         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
108852         one argument, so that the code will be portable to Autoconf 2.60.
108853         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
108854         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
108855         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
108857 2006-04-19  Derek Price  <derek@ximbiot.com>
108858             Eric Blake  <ebb9@byu.net>
108860         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
108861         rather than "/full/path.h".  Update comment to match.  Shorten &
108862         generalize m4_translit call via AS_TR_CPP.
108864 2006-04-19  Derek Price  <derek@ximbiot.com>
108865             Eric Blake  <ebb9@byu.net>
108867         * lib/inttypes.h: Correct grammar in comment.
108869 2006-04-18  Derek Price  <derek@ximbiot.com>
108870             Paul Eggert  <eggert@cs.ucla.edu>
108872         * modules/inttypes: New file.
108873         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
108875 2006-04-18  Derek Price  <derek@ximbiot.com>
108876             Paul Eggert  <eggert@cs.ucla.edu>
108878         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
108879         New files.
108881 2006-04-18  Derek Price  <derek@ximbiot.com>
108882             Paul Eggert  <eggert@cs.ucla.edu>
108884         * lib/inttypes.h: New file.
108885         * lib/strtoimax.c: Assume <inttypes.h>.
108887 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
108889         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
108890         isn't mounted.  Problem reported by Kir Kolyshkin.
108892 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
108894         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
108895         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
108896         Derek R. Price.
108897         * lib/regex.h (RE_DUP_MAX): Update comment to match current
108898         implementation.
108900 2006-04-12  Eric Blake  <ebb9@byu.net>
108902         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
108903         is now done automatically by the corresponding Autoconf macro.
108905 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
108907         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
108908         time_r.h.
108910 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
108912         Merge regex changes from libc, removing some of our
108913         POSIX-conformance changes that were rejected and redoing them in a
108914         less-intrusive way.
108916         * lib/regcomp.c (re_compile_internal, init_dfa):
108917         Length arg is now size_t, not Idx.  All uses changed.
108918         (peek_token): Forward decl now says internal_function.
108919         (__re_error_msgid, __re_error_msgid_idx):
108920         Now static rather than extern with attribute_hidden.
108921         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
108922         For some reason libc prefers K&R style defns for external functions.
108923         (regerror) [!defined _LIBC]: Likewise.
108924         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
108925         (seek_collating_symbol_entry, lookup_collation_sequence_value):
108926         (build_range_exp, build_collating_symbol):
108927         Use K&R-style defn.
108928         (re_compile_fastmap): Use '\0' to memset, not 0.
108929         (utf8_sb_map): Make the calculations more obvious.
108930         (init_dfa, parse_bracket_exp, build_charclass_op):
108931         Call calloc and cast result, as glibc does.
108932         (init_word_char, fetch_token, peek_token, peek_token_bracket):
108933         (build_range_exp, build_collating_symbol):
108934         Now internal functions.
108936         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
108938         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
108939         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
108940         Don't depend on VMS; depend on __VMS instead, for POSIX
108941         namespace cleanness.
108942         (regoff_t): Define to ssize_t, not long int.
108944         Remove the REG_ macros named below.  Instead, make the old names
108945         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
108946         __USE_GNU_REGEX.
108947         (REG_BACKSLASH_ESCAPE_IN_LISTS):
108948         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
108949         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
108950         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
108951         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
108952         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
108953         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
108954         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
108955         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
108956         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
108957         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
108958         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
108959         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
108960         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
108961         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
108962         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
108963         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
108964         (REG_NREGS):
108965         Remove.  All uses replaced by the old RE_* names.
108966         (RE_BACKSLASH_ESCAPE_IN_LISTS):
108967         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
108968         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
108969         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
108970         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
108971         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
108972         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
108973         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
108974         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
108975         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
108976         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
108977         Don't bother having these macros be independent of each others'
108978         values, since they no longer exist in the POSIX name space.
108980         Rename the following member names back to their old names,
108981         unless !__USE_GNU_REGEX.  All uses changed back.
108982         (buffer): Renamed from re_buffer.
108983         (allocated): Renamed from re_allocated.
108984         (used): Renamed from re_used.
108985         (syntax): Renamed from re_syntax.
108986         (fastmap): Renamed from re_fastmap.
108987         (translate): Renamed from re_translate.
108988         (can_be_null): Renamed from re_can_be_null.
108989         (regs_allocated): Renamed from re_regs_allocated.
108990         (fastmap_accurate): Renamed from re_fastmap_accurate.
108991         (no_sub): Renamed from re_no_sub.
108992         (not_bol): Renamed from re_not_bol.
108993         (not_eol): Renamed from re_not_eol.
108994         (newline_anchor): Renamed from re_newline_anchor.
108995         (num_regs): Renamed from rm_num_regs.
108996         (start): Renamed from rm_start.
108997         (end): Renamed from rm_end.
108999         (free_state): Move up a bit.
109001         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
109002         #define to be empty.
109003         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
109004         when that is what is intended.
109005         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
109006         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
109007         (MAX): New macro.
109008         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
109009         All uses changed back to re_malloc, etc.  It's now the caller's
109010         responsibility to check for overflow; all callers changed.
109011         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
109012         (re_x2nrealloc): Remove.
109013         (free_state): Remove decl.
109015         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
109016         (re_set_registers, re_exec):
109017         Use K&R-style defn.
109019         2006-01-31  Roland McGrath  <roland@redhat.com>
109021         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
109022         Reported by Mike Frysinger <vapier@gentoo.org>.
109024         2006-01-15  Andreas Jaeger  <aj@suse.de>
109026         [BZ #1950]
109027         * lib/regex_internal.c (re_string_reconstruct): Adjust for
109028         build_wcs_upper_buffer change.
109029         (build_wcs_upper_buffer): Change return type.
109031         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
109033         * lib/regex_internal.h: Include <stdint.h> if available.
109035         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
109037         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
109039         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
109041         * lib/regcomp.c: Adjust for changed secondary hash function.
109043         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
109045         * lib/regex.h: Pretty printing.
109046         Clean up namespace a bit.
109048         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
109050         * lib/regexec.c (update_cur_sifted_state, check_arrival,
109051         check_arrival_add_next_nodes): Avoid using uninitialized variable.
109053         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
109054                     Ulrich Drepper  <drepper@redhat.com>
109056         [BZ #1302]
109057         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
109058         changed.
109059         (bitset_word_t): Renamed from bitset_word.  All uses changed.
109061         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
109063         [BZ #281]
109064         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
109065         * lib/regcomp.c: Remove unnecessary uses of
109066         unsigned RE_TRANSLATE_TYPE.
109067         * lib/regex_internal.h: Likewise.
109068         * lib/regex_internal.c: Likewise.
109069         * lib/regexec.c: Likewise.
109070         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
109072         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
109074         * lib/regexec.c (find_recover_state): Remove unnecessary
109075         initialization.
109076         (transit_state_bkref): Make DFA a const pointer.
109077         (get_subexp): Likewise.
109078         (check_arrival): Likewise.
109079         (update_cur_sifted_state): Likewise.
109080         (re_search_internal): Likewise.
109081         (prune_impossible_nodes): Likewise.
109082         (acquire_init_state_context): Likewise.
109083         (proceed_next_node): Likewise.
109084         (set_regs): Likewise.
109085         (free_fail_stack_return): Likewise.
109086         (check_arrival_expand_ecl): Mark DFA parameter as const.
109087         (check_arrival_expand_ecl_sub): Likewise.
109088         (check_subexp_limits): Likewise.
109089         (sub_epsilon_src_nodes):  Likewise.
109090         (add_epsilon_src_nodes):  Likewise.
109091         (merge_state_array): Likewise.
109092         (update_regs): Likewise.
109093         (build_trtable): Likewise.
109094         (sift_states_backward): Mark MCTX parameter as const.
109095         (build_sifted_states): Likewise.
109096         (update_cur_sifted_state): Likewise.
109097         (sift_states_mkref): Likewise.
109098         (check_arrival_expand_ecl): Mark eclosure as const.
109099         (check_dst_limits_calc_pos_1): Likewise.
109100         * lib/regex_internal.h (re_match_context_t): Make dfa a const
109101         pointer.
109103         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
109105         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
109106         (transit_state_sb): Likewise.
109107         (transit_state_mb): Likewise.
109108         (sift_states_iter_mb): Likewise.
109109         (check_arrival_add_next_nodes): Likewise.
109110         (check_node_accept_bytes): Change first parameter to pointer-to-const.
109111         [_LIBC] (re_search_2_stub): Use mempcpy.
109113         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
109114         mbrtowc for very simple UTF-8 case.
109116         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
109117         a pointer-to-const.
109118         (re_acquire_state_context): Likewise.
109119         * lib/regex_internal.h: Adjust prototypes.
109121         * lib/regex.c: Prevent using C++ compilers.
109123         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
109124         (re_acquire_state_context): Likewise.
109126 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
109128         * modules/regex (Depends-on): Add ssize_t.
109130 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
109132         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
109133         translation table.
109135 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
109137         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
109139 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
109140             Bruno Haible  <bruno@clisp.org>
109142         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
109143         <sys/types.h> and <inttypes.h>.
109145 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109147         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
109148         `__error_t_defined', so argp.h will not typedef the former.
109150 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
109152         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
109153         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
109154         glibc names.  Even if glibc is changed to conform to POSIX, the
109155         traditional names will be available anyway, since regex depends on
109156         the extensions module.  Also, fix a longstanding typo in the
109157         implementation of Spencer ERE test #75 from grep 2.3.  Problems
109158         reported by Emanuele Giaquinta.  Also, change sense of cached
109159         variable, so that the message makes sense.
109161 2006-03-24  Simon Josefsson  <jas@extundo.com>
109163         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
109164         including some doc fixes.
109165         (base64_encode_alloc): Fix +1 bug on allocation failures.
109167 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109169         * lib/base64.c (base64_encode): Do not read past end of array with
109170         unsanitized input on systems with CHAR_BIT > 8.
109172 2006-03-24  Eric Blake  <ebb9@byu.net>
109174         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
109176 2006-03-22  Karl Berry  <karl@gnu.org>
109178         * config/srclist.txt (*setenv.[ch]): get from coreutils.
109179         * config/srclistvars.sh (COREUTILS): new var.
109181 2006-03-17  Jim Meyering  <jim@meyering.net>
109183         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
109184         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
109186 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
109188         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
109189         no longer needs it.  Instead, check that regoff_t is as least
109190         as wide as ptrdiff_t.
109192         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
109193         so that our regex.h stays compatible with the installed regex.
109194         This is helpful for installers who configure --without-included-regex.
109195         Problem reported by Emanuele Giaquinta.
109197 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
109199         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
109200         Typedef to long int, not to off_, as POSIX will likely change
109201         in that direction.
109203 2006-03-15  Eric Blake  <ebb9@byu.net>
109205         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
109207 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
109209         * lib/argp-help.c (validate_uparams): Fix typo
109210         * lib/argp-parse.c (argp_default_options): Consistently begin help
109211         messages with a lowercase letter.
109213 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
109215         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
109216         overrun buffers and shouldn't be used (much as gets shouldn't be
109217         used).
109218         * lib/time_r.c (asctime_r, ctime_r): Likewise.
109220 2006-03-08  Simon Josefsson  <jas@extundo.com>
109222         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
109223         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
109225 2006-03-08  Simon Josefsson  <jas@extundo.com>
109227         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
109228         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
109230 2006-03-08  Simon Josefsson  <jas@extundo.com>
109232         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
109233         signal that configure disabled the device.
109235 2006-03-08  Simon Josefsson  <jas@extundo.com>
109237         * build-aux/maint.mk: Fix refresh-po, to handle no translated
109238         languages.
109240 2006-03-07  Simon Josefsson  <jas@extundo.com>
109242         * modules/getopt (Depends-on): Add unistd.
109244         * modules/unistd: New file.
109246 2006-03-07  Simon Josefsson  <jas@extundo.com>
109248         * modules/gc-random: New file.
109250 2006-03-07  Simon Josefsson  <jas@extundo.com>
109252         * m4/unistd_h.m4: New file.
109254 2006-03-07  Simon Josefsson  <jas@extundo.com>
109256         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
109257         test to be side-effect free by storing the result in the cache
109258         variable gl_cv_lib_readline, and moving the assignment of
109259         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
109260         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
109262 2006-03-07  Simon Josefsson  <jas@extundo.com>
109264         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
109265         error on missing devices (the functions will return an error).
109267         * m4/gc.m4: Move random stuff to gc-random.m4
109269 2006-03-07  Simon Josefsson  <jas@extundo.com>
109271         * lib/unistd_.h: New file.
109273 2006-03-07  Simon Josefsson  <jas@extundo.com>
109275         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
109277 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
109279         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
109280         Problem reported by Juan Manuel Guerrero.
109282 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
109284         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
109285         the unistd module.
109286         * lib/getlogin_r.c: Likewise.
109287         * lib/getlogin_r.h: Likewise.
109288         * lib/glob.c: Likewise.
109289         * lib/pagealign_alloc.c: Likewise.
109290         * lib/unistd_.h: Remove; no longer needed.
109292 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
109294         * MODULES.html.sh (Support for systems lacking POSIX:2001):
109295         Add unistd.
109296         * modules/c-stack (Depends-on): Add unistd.
109297         * modules/getlogin_r: Likewise.
109298         * modules/glob: Likewise.
109299         * modules/pagealign_alloc: Likewise.
109300         * modules/unistd (Files): Remove lib/unistd_.h.
109301         (EXTRA_DIST): Remove.
109302         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
109303         need unistd_.h.
109304         (MOSTLYCLEANFILES): Remove unistd.h-t.
109306 2006-03-03  Simon Josefsson  <jas@extundo.com>
109308         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
109310 2006-03-03  Simon Josefsson  <jas@extundo.com>
109312         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
109313         libidn and bison.
109315 2006-03-03  Simon Josefsson  <jas@extundo.com>
109317         * build-aux/maint.mk: Add indent target.
109319 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
109321         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
109322         our replacement poll.h in any case, to avoid a differing
109323         declaration from a system header.  Seen on AIX.
109325 2006-03-01  Simon Josefsson  <jas@extundo.com>
109327         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
109328         <kasal@ucw.cz>.
109330 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
109332         * modules/gettime (Depends-on): Add extensions module.
109333         * modules/nanosleep (Depends-on): Likewise.
109334         * modules/settime (Depends-on): Likewise.
109336 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
109338         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
109339         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
109340         pedantically.
109341         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
109342         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
109344         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
109345         not "==".  Reported by Ralf Wildenhues.
109347 2006-03-01  Karl Berry  <karl@gnu.org>
109349         * doc/Copyright/request-*: new files, synced from gnuorg.
109351 2006-03-01  Karl Berry  <karl@gnu.org>
109353         * config/srclist.txt (Copyright/*): new entries.
109355 2006-02-28  Simon Josefsson  <jas@extundo.com>
109357         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
109359 2006-02-27  Simon Josefsson  <jas@extundo.com>
109361         * lib/base64.h: Indent #define's.  From Jim Meyering
109362         <jim@meyering.net>.
109364 2006-02-27  Jim Meyering  <jim@meyering.net>
109366         Revert the change of 2006-02-24, so these files can continue
109367         to be sync'd from gettext.
109368         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
109369         of `config.h'.
109371 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
109373         * modules/intprops: New file.
109374         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
109375         Add intprops.
109376         * modules/getloadavg (Files): Remove lib/intprops.h.
109377         (Depends-on): Add intprops.
109378         * modules/human: Likewise.
109379         * modules/inttostr: Likewise.
109380         * modules/openat: Likewise.
109381         * modules/sig2str: Likewise.
109382         * modules/userspec: Likewise.
109383         * modules/utimecmp: Likewise.
109384         * modules/xnanosleep: Likewise.
109385         * modules/xstrtol: Likewise.
109387 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
109389         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
109390         * modules/lock-tests (TESTS): Use $(EXEEXT).
109391         * modules/tls-tests: Likewise.
109392         * modules/argp-tests: Likewise.
109393         (check_PROGRAMS): New var, replacing...
109394         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
109396 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109398         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
109399         `config.h'.
109401 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
109403         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
109405 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109407         Sync from coreutils.
109408         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
109409         gl_CHDIR_SAFER.
109411 2006-02-22  Jim Meyering  <jim@meyering.net>
109413         Sync from coreutils.
109414         * m4/chdir-safer.m4: New file.
109416 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
109418         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
109419         AT_FDCWD exceeds INT_MAX.
109420         * lib/openat.h (AT_FDCWD): Likewise.
109422 2006-02-17  Eric Blake  <address@hidden>
109424         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
109426 2006-02-16  Simon Josefsson  <jas@extundo.com>
109428         * modules/getaddrinfo (Depends-on): Add sys_socket.
109430 2006-02-15  Simon Josefsson  <jas@extundo.com>
109432         * build-aux/maint.mk: Add dsyntax-check rule.
109434 2006-02-15  Eric Blake  <ebb9@byu.net>
109436         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
109437         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
109438         'present but cannot compile' warnings on cygwin.
109439         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
109440         use ws2tcpip.h if sys/socket.h works.
109441         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
109442         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
109444 2006-02-14  Simon Josefsson  <jas@extundo.com>
109446         * modules/maintainer-makefile (Files): Rename.
109448         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
109449         and (the local) Makefile.cfg to maint-cfg.mk.
109451         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
109452         to the latter.
109454         * modules/maintainer-makefile: New module.
109456         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
109457         severaly stripped to make it possible to build it up from scratch
109458         with reliable tests.
109460         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
109461         fixes to permit overriding the default actions when configure and
109462         makefile are not available.
109464 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
109466         Sync from coreutils.
109467         * modules/lstat (Depends-on): Don't depend on xalloc.
109468         (License): Change from GPL to LGPL, since this is now simply a
109469         replacement for a libc function.
109471 2006-02-14  Jim Meyering  <jim@meyering.net>
109473         Sync from coreutils.
109475         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
109476         failure on deficient systems, and simplify gnulib lgpl dependencies.
109477         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
109478         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
109480         * lib/xalloc-die.c: Remove unused definition of N_.
109482 2006-02-14  Jim Meyering  <jim@meyering.net>
109484         Sync from coreutils.
109485         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
109486         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
109487         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
109488         double-quote uses of that variable, to accommodate the rare case in
109489         which getmntent is available in none of the libraries checked.  This
109490         happens at least on FreeBSD 5.0.
109492 2006-02-13  Simon Josefsson  <jas@extundo.com>
109494         * gnulib-tool (Usage): Fix --import, from
109495         karl@freefriends.org (Karl Berry).
109497 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
109499         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
109501 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
109503         * lib/argp-namefrob.h: Restore changes accidentally lost during the
109504         "autoupdate" on 2005-12-12.
109506 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
109508         * modules/closeout (Depends-on): Remove atexit.
109510 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
109512         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
109513         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
109515 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
109517         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
109518         __EXTENSIONS__ if this causes compilation to fail.  Problem
109519         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
109520         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
109522 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
109524         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
109525         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
109526         <http://lists.gnu.org/r/bug-gnulib/2006-01/msg00074.html>.
109527         All uses changed.
109529 2006-01-26  Simon Josefsson  <jas@extundo.com>
109531         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
109532         prototype is visible on mingw32.
109534         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
109535         for mingw32.
109537         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
109538         mingw32).
109540 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
109542         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
109543         attempt to open for write; this always fails, at least on POSIX
109544         hosts.  This reinstates the 2006-01-09 change, which was
109545         inadvertently removed.
109547 2006-01-26  Bruno Haible  <bruno@clisp.org>
109549         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
109550         Reported by Paul Eggert.
109552 2006-01-26  Bruno Haible  <bruno@clisp.org>
109553             Paul Eggert  <eggert@cs.ucla.edu>
109555         * lib/stdbool_.h (_Bool)
109556         [(! (defined __cplusplus || defined __BEOS__)
109557           && !defined __GNUC__
109558           && !(defined __HP_cc || defined __xlc__
109559                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
109560                || defined __sgi))]:
109561         #define to signed char in these cases too; this simplifies
109562         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
109563         etc., separately) and makes it more conservative.
109565 2006-01-25  Simon Josefsson  <jas@extundo.com>
109567         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
109568         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
109569         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
109571 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
109573         * lib/argp-namefrob.h: Bugfix. Remove stray #
109575 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
109577         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
109578         so that we test the test.
109579         Check for yet another HP-UX cc bug involving *bool |= bool.
109581 2006-01-25  Karl Berry  <karl@gnu.org>
109583         * config/srclist.txt (vasnprintf.c): sync lost.
109585 2006-01-25  Jim Meyering  <jim@meyering.net>
109587         Sync from the stable (b5) branch of coreutils:
109589         * lib/fts.c (fts_children): Don't let close() clobber errno from
109590         failed fchdir().
109592         * lib/fts.c (fts_stat): When following a symlink-to-directory,
109593         don't necessarily interpret stat-fails+lstat-succeeds as indicating
109594         a dangling symlink.  That can also happen at least for ELOOP.
109595         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
109596         FYI, this bug predates the inclusion of fts.c in coreutils.
109598         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
109599         in their own block, so pre-c99 compilers don't object.
109601         Avoid the double-free (first in fts_read, second in fts_close) that
109602         would occur when an `active' directory is made inaccessible (e.g.,
109603         via chmod a-x) during a traversal.
109604         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
109605         before returning.  Reproduce this failure by
109606         mkdir -p a/b; cd a; chmod a-x . b
109607         Reported by Stavros Passas.
109609 2006-01-25  Jim Meyering  <jim@meyering.net>
109611         * lib/fileblocks.c: Remove more useless parentheses.
109612         * lib/readutmp.h: Likewise.
109614 2006-01-25  Bruno Haible  <bruno@clisp.org>
109616         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
109617         warnings.
109618         Reported by Paul Eggert.
109620 2006-01-25  Bruno Haible  <bruno@clisp.org>
109622         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
109623         rid of a trap command. For Solaris sh.
109624         Reported by Mark D. Baushke <mdb@gnu.org>.
109626 2006-01-24  Simon Josefsson  <jas@extundo.com>
109628         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
109629         Bruno.
109631 2006-01-24  Karl Berry  <karl@gnu.org>
109633         * config/srclist.txt (argp-namefrob.h): sync lost.
109635 2006-01-24  Jim Meyering  <jim@meyering.net>
109637         * modules/openat (Files): Add lib/intprops.h.
109638         From Mark D. Baushke.
109640 2006-01-24  Jim Meyering  <jim@meyering.net>
109642         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
109643         Reported by Mark D. Baushke.
109645 2006-01-24  Jim Meyering  <jim@meyering.net>
109647         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
109649 2006-01-24  Bruno Haible  <bruno@clisp.org>
109651         * modules/strnlen (Maintainer): Change from glibc to all.
109653 2006-01-24  Bruno Haible  <bruno@clisp.org>
109655         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
109656         Patch by Paul Eggert.
109658 2006-01-24  Bruno Haible  <bruno@clisp.org>
109660         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
109661         already has it.
109662         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
109663         2005-11-26.
109665         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
109666         'signed char' to avoid problems with the built-in _Bool type.
109667         Reported by Paul Eggert on 2005-11-26.
109669 2006-01-24  Bruno Haible  <bruno@clisp.org>
109671         * gnulib-tool (func_import): Avoid constructing complicated sed
109672         expressions inside backquote.
109673         Report and solution by Mark D. Baushke <mdb@gnu.org>.
109675 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
109677         These changes imported from libc.
109678         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
109679         test and two separate function calls.
109680         * lib/strndup.c (__strndup): Add libc_hidden_def.
109682 2006-01-23  Simon Josefsson  <jas@extundo.com>
109684         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
109685         Remove the test_*_SOURCES variable: automake infers it by default.
109686         * modules/tls-tests: Likewise.
109688 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
109690         Work around porting bugs reported by Dieter in
109691         <http://lists.gnu.org/r/bug-bison/2006-01/msg00049.html>.
109692         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
109693         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
109694         Include "getopt.h" first, to check interface.
109695         (getenv): Declare only if defined HAVE_DECL_GETENV &&
109696         !HAVE_DECL_GETENV.
109697         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
109698         (__strndup): Revert to K&R-style function dfns, the glibc style.
109699         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
109700         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
109701         Include strnlen.h first, to get prototype properly.
109702         (strnlen): Renamed from __strnlen.
109703         Remove weak alias.
109705 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
109707         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
109709 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
109711         * config/srclist.txt: Adjust to reflect glibc reorganization.
109712         This affects only comments.
109714 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
109716          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
109717          Reported by Bruce Korb <bkorb@gnu.org>.
109719 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
109721         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
109722         to pacify gcc -Wswitch-default.
109724 2006-01-22  Bruno Haible  <bruno@clisp.org>
109726         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
109727         temporary buffer for sprintf, take into account the precision also
109728         for 'd', 'i', 'u', 'o', 'x', 'X'.
109730 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
109732         * modules/argp-tests: New module
109733         * tests/test-argp.c: New file
109734         * tests/test-argp-2.sh: New file
109736 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
109738         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
109739         (__argp_base_name): Removed
109740         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
109741         typo.
109742         (__argp_base_name): Provide macro definition or extern declaration
109743         depending on the configuration
109745 2006-01-20  Simon Josefsson  <jas@extundo.com>
109747         * modules/inet_ntop (Depends-on): Depend on sys_socket.
109749 2006-01-20  Simon Josefsson  <jas@extundo.com>
109751         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
109753 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
109755         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
109756         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
109757         Suggested by Bruno Haible.
109759 2006-01-20  Karl Berry  <karl@gnu.org>
109761         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
109762         until changes propagate, I guess.
109764 2006-01-19  Simon Josefsson  <jas@extundo.com>
109766         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
109768 2006-01-19  Simon Josefsson  <jas@extundo.com>
109770         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
109772 2006-01-19  Simon Josefsson  <jas@extundo.com>
109774         * gnulib-tool: Set check_PROGRAMS.
109776         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
109777         modules/des-tests, modules/gc-arcfour-tests,
109778         modules/gc-arctwo-tests, modules/gc-des-tests,
109779         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
109780         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
109781         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
109782         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
109783         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
109784         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
109785         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
109786         test_*_SOURCES.
109788 2006-01-18  Simon Josefsson  <jas@extundo.com>
109790         * modules/socklen (Depends-on): Depend on sys_socket.
109792 2006-01-18  Simon Josefsson  <jas@extundo.com>
109794         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
109795         modules/des-tests, modules/gc-arcfour-tests,
109796         modules/gc-arctwo-tests, modules/gc-des-tests,
109797         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
109798         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
109799         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
109800         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
109801         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
109802         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
109803         $(EXEEXT) to automake TESTS variable, for mingw32.
109805 2006-01-17  Simon Josefsson  <jas@extundo.com>
109807         * modules/socklen (Include): Need sys/socket.h.
109809 2006-01-17  Bruno Haible  <bruno@clisp.org>
109811         * modules/ssize_t (Include): Add <sys/types.h>.
109813 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
109815         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
109816         it's not portable and it doesn't work with cross-compiles.
109817         Problem reported by Bruno Haible.  Fix missing-$ typo in
109818         'test "gl_cv_ignore_unused_libraries" ...' that prevented
109819         -zignore from being used with Sun's C compiler.
109821 2006-01-12  Simon Josefsson  <jas@extundo.com>
109823         * lib/base64.c: Fix warning, reported by Bruno Haible
109824         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
109826 2006-01-12  Bruno Haible  <bruno@clisp.org>
109828         * modules/ldd: New file.
109829         * build-aux/ldd.sh.in: New file.
109830         * MODULES.html.sh (Support for building libraries and executables): Add
109831         ldd.
109833 2006-01-12  Bruno Haible  <bruno@clisp.org>
109835         * m4/ldd.m4: New file.
109837 2006-01-12  Bruno Haible  <bruno@clisp.org>
109839         * gnulib-tool (func_import, func_create_testdir): Don't go into an
109840         endless loop while replacing $auxdir with build-aux.
109842 2006-01-11  Simon Josefsson  <jas@extundo.com>
109844         * lib/stdint_.h (SIZE_MAX): Add missing (.
109846 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
109848         Sync from coreutils.
109849         * lib/md5.c: Fix commentary typos.
109850         (alignof, UNALIGNED_P): No need for a GCC-specific version.
109851         * lib/md5.h (__attribute__): Remove; unused.
109852         * lib/sha1.c: Fix commentary to match md5 better.
109853         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
109854         so that we don't need to worry about alignment.  All uses changed.
109855         This merges the 2005-10-28 md5 change into sha1.
109857 2006-01-11  Jim Meyering  <jim@meyering.net>
109859         Sync from coreutils.
109860         * lib/md5.c (OP): Fix spacing.
109862 2006-01-11  Bruno Haible  <bruno@clisp.org>
109864         Ensure automatic ordering between gl_LOCK and gl_ARGP.
109865         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
109866         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
109868 2006-01-11  Bruno Haible  <bruno@clisp.org>
109870         Ensure automatic ordering between gl_LOCK and gl_ARGP.
109871         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
109872         the "early" section as well.
109874 2006-01-11  Bruno Haible  <bruno@clisp.org>
109876         Avoid "ar: no archive members specified" error on MacOS X.
109877         * gnulib-tool (func_modules_add_dummy): New function.
109878         (func_import, func_create_testdir): Invoke it.
109880 2006-01-11  Bruno Haible  <bruno@clisp.org>
109882         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
109883         with $auxdir in AC_CONFIG_FILES statements.
109885 2006-01-11  Bruno Haible  <bruno@clisp.org>
109887         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
109888         Initialize also noinst_HEADERS to empty.
109890 2006-01-11  Bruno Haible  <bruno@clisp.org>
109892         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
109893         variables.
109894         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
109895         autoreconf.
109897 2006-01-11  Bruno Haible  <bruno@clisp.org>
109899         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
109900         overridable by the user.
109901         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
109903 2006-01-10  Simon Josefsson  <jas@extundo.com>
109905         * modules/sys_socket: New file.
109907 2006-01-10  Simon Josefsson  <jas@extundo.com>
109909         * m4/sys_socket_h.m4: New file.
109911 2006-01-10  Simon Josefsson  <jas@extundo.com>
109913         * lib/socket_.h: New file.
109915 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
109917         * modules/readutmp (Maintainer): Add myself.
109919 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
109921         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
109922         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
109923         People who are still concerned with buggy memcmp implementations
109924         can invoke gl_FUNC_MEMCMP themselves.
109926 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
109928         * lib/regex_internal.h (BITSET_WORD_BITS):
109929         Work around a bug in 64-bit PGC (before version 6.1-2), where the
109930         preprocessor mishandles large unsigned values as if they were signed.
109931         Problem reported by Claudio Fontana in
109932         <http://lists.gnu.org/r/bug-gnulib/2005-12/msg00061.html>.
109934 2006-01-10  Jim Meyering  <jim@meyering.net>
109936         Avoid the double-free (first in fts_read, second in fts_close) that
109937         would occur when an `active' directory is made inaccessible (e.g.,
109938         via chmod a-x) during a traversal.
109939         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
109940         before returning.  Reproduce this failure by
109941         mkdir -p a/b; cd a; chmod a-x . b
109942         Reported by Stavros Passas.
109944         Sync from coreutils.
109945         * lib/sha1.c: Tweak grammar in a comment.
109947 2006-01-10  Jim Meyering  <jim@meyering.net>
109949         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
109950         Patch by Joerg Sonnenberger.
109952 2006-01-10  Bruno Haible  <bruno@clisp.org>
109954         * modules/readutmp: Depend on module free.
109955         * modules/strtok_r: Depend on module restrict.
109957 2006-01-10  Bruno Haible  <bruno@clisp.org>
109959         * modules/gettext (configure.ac): Add an invocation of
109960         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
109962 2006-01-10  Bruno Haible  <bruno@clisp.org>
109964         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
109965         Reported by Werner Lemberg <wl@gnu.org>.
109967 2006-01-10  Bruno Haible  <bruno@clisp.org>
109969         * lib/localcharset.c: Update from GNU gettext.
109971 2006-01-10  Bruno Haible  <bruno@clisp.org>
109973         * lib/argp.h (__const): Remove macro. Use const instead.
109974         * lib/argp-fmtstream.h (__const): Likewise.
109975         * lib/glob_.h (__const): Remove macro.
109976         * lib/glob-libc.h: Use const instead of __const.
109978 2006-01-10  Bruno Haible  <bruno@clisp.org>
109980         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
109981         variable.
109982         Needed to avoid an automake error regarding the 'gettext' module.
109984 2006-01-09  Simon Josefsson  <jas@extundo.com>
109986         * modules/inet_ntop (Depends-on): Add restrict.
109988 2006-01-09  Simon Josefsson  <jas@extundo.com>
109990         * modules/gc-rijndael-tests (License): Put under LGPL.
109992         * modules/gc-des-tests (License): Likewise.
109994         * modules/gc-arcfour-tests (License): Likewise.
109996         * modules/gc-arctwo-tests (License): Likewise.
109998         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
110000         * modules/gc-hmac-sha1-tests (Files): Likewise.
110002         * modules/gc-hmac-md5-tests (License): Likewise.
110004         * modules/gc-sha1-tests (License): Likewise.
110006         * modules/gc-md5-tests (License): Likewise.
110008         * modules/gc-md4-tests (License): Likewise.
110010         * modules/gc-md2-tests (License): Likewise.
110012         * modules/gc-tests (License): Likewise.
110014         * modules/des-tests (License): Likewise.
110016         * modules/md4-tests (License): Likewise.
110018         * modules/md2-tests (License): Likewise.
110020 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
110022         Sync from coreutils:
110024         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
110025         * modules/lib-ignore: New file.
110026         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
110027         chdir-safer.m4, lchmod.m4.
110028         * modules/openat: Add mkdirat.c, openat-priv.h.
110030 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
110032         Sync from coreutils.
110033         * m4/lib-ignore.m4: New file.
110034         * m4/lchmod.m4: New file.
110036 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
110038         Sync from coreutils.
110039         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
110040         for write access: POSIX says that must fail.
110041         * lib/fts.c (diropen): Likewise.
110042         * lib/save-cwd.c (save_cwd): Likewise.
110043         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
110044         well, for minor improvements on hosts that lack O_DIRECTORY.
110045         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
110046         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
110047         Fall back on chown if open failed with EACCES.
110049         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
110050         Report an error at compile-time if only a 1-second nominal clock
110051         resolution is found.
110053         * lib/lchmod.h: New file.
110054         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
110055         (make_dir_parents): Use lchown rather than chown, and
110056         lchmod rather than chmod.
110058         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
110059         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
110060         "proc" reported by n0dalus.
110062         * lib/mountlist.c: Include <limits.h>.
110063         (dev_from_mount_options)
110064         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
110065         New function.  It no longer assumes "dev=" has the System V meaning
110066         on Linux (since it doesn't).  It also parses "dev=" more carefully.
110067         (read_file_system_list)
110068         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
110069         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
110070         dev= in that case.
110072         * lib/posixtm.h (PDS_PRE_2000): New macro.
110073         * lib/posixtm.c (year): Arg is now syntax_bits rather than
110074         allow_century.  All usages changed.  Reject dates outside the range
110075         1969-1999 if PDS_PRE_2000 is used.
110077 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
110079         Sync from coreutils.
110080         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
110081         (Time of day items): Mention the possibility of leap seconds.
110082         Problem reported by Dr. David Alan Gilbert.
110084 2006-01-09  Jim Meyering  <jim@meyering.net>
110086         Sync from coreutils.
110088         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
110090         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
110092         * lib/modechange.c (mode_compile): Reject an invalid mode string
110093         that starts with an octal digit.  From Andreas Gruenbacher.
110095         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
110096         and dup to open_safer and dup_safer, respectively.
110097         (openat_permissive): Fix typo in comment.
110099         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
110100         "gettext.h"; either no longer needed or are guaranteed by openat.h.
110101         (_): Remove; no longer needed.
110102         (openat): Renamed from rpl_openat; no need for rpl_openat
110103         since openat.h renames openat for us.
110104         Replace most of the body with a call to openat_permissive,
110105         to avoid duplicate code.
110106         Port to (probably hypothetical) environments were mode_t is
110107         wider than int.
110108         (openat_permissive): Require mode arg, so that we can check
110109         types better.  Put it just after flags.  Change cwd failure
110110         indicator from pointer-to-bool to pointer-to-errno-value.
110111         All callers changed.
110112         Invoke openat_save_fail and/or openat_restore_fail if
110113         cwd_errno is null, so that openat can call us.
110114         (openat_permissive, fdopendir, fstatat, unlinkat):
110115         Simplify errno handling to avoid some duplicate code,
110116         as it's OK to set errno on success.
110117         * lib/openat.h: Revamp code so that function macros depend on
110118         __OPENAT_PREFIX only, not also on AT_FDCWD.
110119         (openat_ro): Remove.  Caller changed to use openat_permissive.
110120         (openat_permissive): Now a macro, if not a function.
110121         (openat_restore_fail, openat_save_fail): Now always functions,
110122         since mkdirat needs them even if __OPENAT_PREFIX is defined.
110124         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
110125         and openat.c.
110126         * lib/mkdirat.c: Include openat-priv.h.
110127         Remove definitions of macros defined therein.
110128         * lib/openat.c: Likewise.
110130         * lib/mkdirat.c (mkdirat): New file and function.
110131         * lib/openat.h (mkdirat): Declare.
110133         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
110135         * lib/openat.h (openat_permissive): Declare.
110136         (openat_ro): Define.
110138         * lib/openat.c (EXPECTED_ERRNO): New macro.
110139         (openat_permissive): New function -- used in remove.c rewrite.
110140         (all functions): Set errno just before returning, only if there
110141         was an actual failure.
110142         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
110144         Emulate openat-family functions using Linux's procfs, if possible.
110145         Idea and some code based on Ulrich Drepper's glibc changes.
110147         * lib/openat.c: (BUILD_PROC_NAME): New macro.
110148         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
110149         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
110150         before falling back on save_cwd and restore_cwd.
110151         (fdopendir, fstatat, unlinkat): Likewise.
110153         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
110154         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
110156         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
110157         as second argument to va_arg.  Otherwise, some versions of gcc
110158         warn that `if this code is reached, the program will abort'.
110160 2006-01-09  Jim Meyering  <jim@meyering.net>
110162         Sync from coreutils.
110163         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
110164         Require openat-priv.h.
110166 2006-01-09  Bruno Haible  <bruno@clisp.org>
110168         * modules/strnlen (Include): Use strnlen.h.
110170 2006-01-09  Bruno Haible  <bruno@clisp.org>
110172         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
110174 2006-01-09  Bruno Haible  <bruno@clisp.org>
110176         * lib/sysexit_.h (EX_OK): New macro.
110177         Suggested by Martin Lambers <marlam@marlam.de>.
110179 2006-01-09  Bruno Haible  <bruno@clisp.org>
110181         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
110182         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
110184 2006-01-09  Bruno Haible  <bruno@clisp.org>
110186         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
110187         numbers.
110189 2006-01-09  Bruno Haible  <bruno@clisp.org>
110191         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
110192         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
110193         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
110194         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
110196 2006-01-09  Bruno Haible  <bruno@clisp.org>
110198         * build-aux/javacomp.sh.in: New file, moved from lib/.
110199         * modules/javacomp-script (Files): Update.
110200         (configure.ac): Add AC_CONFIG_FILES invocation.
110201         (EXTRA_DIST): Remove variable.
110203         * build-aux/javaexec.sh.in: New file, moved from lib/.
110204         * modules/javaexec (Files): Update.
110205         (configure.ac): Add AC_CONFIG_FILES invocation.
110206         (EXTRA_DIST): Remove javaexec.sh.in.
110208         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
110209         * modules/csharpcomp-script (Files): Update.
110210         (configure.ac): Add AC_CONFIG_FILES invocation.
110211         (EXTRA_DIST): Remove variable.
110213         * build-aux/csharpexec.sh.in: New file, moved from lib/.
110214         * modules/csharpexec (Files): Update.
110215         (configure.ac): Add AC_CONFIG_FILES invocation.
110216         (EXTRA_DIST): Remove csharpexec.sh.in.
110218 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
110220         Sync from coreutils.
110222         Add POSIX ACL support
110223         * lib/acl.h (copy_acl, set_acl): Add declarations.
110224         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
110225         systems other than Linux.
110226         (chmod_or_fchmod): New function: use fchmod when possible,
110227         and chmod otherwise.
110228         (file_has_acl): Add a POSIX ACL implementation, with a
110229         Linux-specific subcase.
110230         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
110231         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
110232         acls are unsupported.
110233         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
110234         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
110235         are unsupported.
110237 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
110239         Sync from coreutils.
110240         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
110242 2006-01-07  Bruno Haible  <bruno@clisp.org>
110244         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
110245         gl_EARLY.
110247 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
110249         * lib/strftime.c (tzname): Don't declare if it is already #defined.
110250         Problem reported for Mingw by Mark Junker.
110252 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
110254         * README: Gnulib normally doesn't generate a tarball.
110256 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
110258         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
110259         long int, not int, for nanosecond counts, so that people who are
110260         used to POSIX struct timespec won't be surprised.  Reported by Jim
110261         Meyering.
110263 2005-12-28  Bruno Haible  <bruno@clisp.org>
110265         * build-aux/config.rpath: Update from GNU gettext.
110267 2005-12-16  Jim Meyering  <jim@meyering.net>
110269         * modules/fprintftime: New module.
110270         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
110272 2005-12-16  Jim Meyering  <jim@meyering.net>
110274         * m4/fprintftime.m4: New file.
110276 2005-12-16  Jim Meyering  <jim@meyering.net>
110278         * lib/fprintftime.c, lib/fprintftime.h: New files.
110280 2005-12-15  Simon Josefsson  <jas@extundo.com>
110282         * modules/socklen (configure.ac): Fix M4 macro name, to align with
110283         new m4/socklen.m4.
110285 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
110287         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
110288         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
110290 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
110292         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
110293         * lib/argp-help.c (fill_in_uparams): Check if the constructed
110294         struct uparams is valid. Fall back to the default values if it is
110295         not.
110297 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
110299         * modules/argp (Files): Add argp-pin.c
110300         (Depends-on): dirname
110301         (lib_SOURCES): Add argp-pin.c
110303 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
110305         * m4/argp.m4:  Check if program_invocation_name and
110306         program_invocation_short_name are declared and define appropriate
110307         macros if they are not.
110309 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
110311         * lib/argp-help.c (__argp_base_name): New function
110312         (__argp_short_program_name): Rewrite using __argp_base_name
110313         * lib/argp-namefrob.h: Define program_invocation_name and
110314         program_invocation_short_name if requested
110315         (__argp_base_name): Add prototype
110316         * lib/argp-parse.c (argp_def): Use gettext wrappers
110317         (argp_default_parser): Use __argp_base_name
110318         * lib/argp-pin.c: New file. Defines program_invocation_name and
110319         program_invocation_short_name on systems that lack them.
110321 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
110323         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
110324         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
110325         porting problem reported by Georg Schwarz in
110326         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
110328 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
110330         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
110331         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
110332         porting problem reported by Georg Schwarz in
110333         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
110335 2005-12-05  Bruno Haible  <bruno@clisp.org>
110337         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
110338         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
110339         Reported by Mark Junker <mjscod@gmx.de>.
110341 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
110343         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
110344         Use implementation from Albert Chin, with some
110345         comments/corrections by Stepan Kasal and myself.
110347 2005-12-02  Bruno Haible  <bruno@clisp.org>
110349         * gnulib-tool (func_import): Accept GPLed build tool modules when
110350         --lgpl is given.
110351         * modules/csharpcomp-script: New file.
110352         * modules/csharpcomp: Depend on it.
110353         * modules/javacomp-script: New file.
110354         * modules/javacomp: Depend on it.
110355         Suggested by Simon Josefsson.
110357 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
110359         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
110360         statement, to work around an HP-UX 10.20 compiler bug reported by
110361         Peter O'Gorman.
110363 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
110365         * modules/savedir (Depends-on): Add openat.
110367 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
110369         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
110370         (uintmax_t) [defined uintmax_t]: Do not declare.
110371         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
110372         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
110373         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
110374         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
110375         sake of portability to weird hosts that C allows (though we don't
110376         know of any practical examples).
110378         * lib/savedir.h (fdsavedir): New decl.
110379         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
110380         contains most of the former guts of savedir.
110381         (savedir): Use savedirstream.
110382         Include "openat.h".
110384 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
110386         * modules/obstack (Files): Add m4/ulonglong.m4.
110387         Problem reported by Davide Angelocola.
110389 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
110391         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
110392         coreutils no longer futzes with rounding modes.
110394 2005-11-14  Jim Meyering  <jim@meyering.net>
110396         * lib/mkstemp-safer.c: Include <config.h>, required for possible
110397         replacement of mkstemp.
110399 2005-11-10  Simon Josefsson  <jas@extundo.com>
110401         * lib/readline.c: Remove EOL.
110403 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
110405         * modules/gethrxtime (Depends-on): Add gettime.
110407 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
110409         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
110410         or gettimeofday; no longer needed.
110412 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
110414         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
110415         time business.
110416         (gethrxtime) [! (HAVE_NANOUPTIME
110417         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
110418         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
110419         our own approximation.
110421 2005-11-08  Eric Blake  <ebb9@byu.net>
110423         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
110425 2005-11-08  Eric Blake  <ebb9@byu.net>
110427         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
110429 2005-11-04  Bruno Haible  <bruno@clisp.org>
110431         * gnulib-tool: Implement --update mode.
110433 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
110435         Fix porting problem reported by Theodoros V. Kalamatianos.
110436         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
110437         Don't assume that futimes failing means we must fail.
110439 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
110441         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
110442         variables to suggest the intended function of the PATH_MAX check.
110444 2005-10-30  Kean Johnston  <jkj@sco.com>
110446         Trivial changes to support SCO systems.
110447         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
110448         as PATH_MAX.
110449         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
110450         where __ptr is null when no I/O is pending.
110452 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
110454         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
110455         leave errno alone.  Problem reported by Dmitry V. Levin.
110457 2005-10-28  Simon Josefsson  <jas@extundo.com>
110459         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
110460         Test more.
110462         * tests/test-gc-md2.c, tests/test-md2.c: New files.
110464         * modules/md2, modules/md2-tests: New files.
110466 2005-10-28  Simon Josefsson  <jas@extundo.com>
110468         * m4/inet_ntop.m4: More tests.
110470         * m4/gc-md2.m4, md2.m4: New file.
110472 2005-10-28  Simon Josefsson  <jas@extundo.com>
110474         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
110475         "restrict" keywords, as per POSIX.  Protect the function
110476         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
110477         Don't use K&R prototypes.  Check the sprintf return values.
110478         Re-define EAFNOSUPPORT if not present.  Indent.
110480         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
110481         suggested by Bruno Haible <bruno@clisp.org>.
110483         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
110485         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
110487         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
110488         libgcrypt).
110490         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
110492         * lib/md2.h, lib/md2.c: New files.
110494 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
110496         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
110497         errno alone.  Problem reported by Frederic Jolliton.
110499 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
110501         * modules/verify (License): Change from GPL to LGPL.  This is a
110502         tiny module and there are apparently near-equivalents that are
110503         under the BSD license.
110505 2005-10-24  Simon Josefsson  <jas@extundo.com>
110507         * modules/sha1: Relicense to LGPL.
110509 2005-10-24  Simon Josefsson  <jas@extundo.com>
110511         * lib/md4.h: Shrink buffer size, now that we changed the type.
110513 2005-10-23  Simon Josefsson  <jas@extundo.com>
110515         * gnulib-tool (func_import): Fix --tests-base.
110517 2005-10-22  Simon Josefsson  <jas@extundo.com>
110519         * modules/arcfour (Depends-on): Need stdint.
110521 2005-10-22  Simon Josefsson  <jas@extundo.com>
110523         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
110524         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
110526 2005-10-22  Simon Josefsson  <jas@extundo.com>
110528         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
110529         suggested by Bruno Haible <bruno@clisp.org>.
110531 2005-10-22  Simon Josefsson  <jas@extundo.com>
110533         * lib/crc.h: Include stddef.h, for size_t.
110535 2005-10-22  Simon Josefsson  <jas@extundo.com>
110537         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
110538         arcfour_context struct (simplify test vector testing in GNU
110539         Shishi).
110541 2005-10-21  Simon Josefsson  <jas@extundo.com>
110543         * modules/des, modules/des-tests: New files.
110545         * modules/gc-des, modules/gc-des-tests: New files.
110547         * tests/test-des.c, tests/test-gc-des.c: New file.
110549 2005-10-21  Simon Josefsson  <jas@extundo.com>
110551         * modules/arctwo, modules/arctwo-tests: New files.
110553         * tests/test-arctwo.c: New file.
110555         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
110557         * tests/test-gc-arctwo.c: New file.
110559 2005-10-21  Simon Josefsson  <jas@extundo.com>
110561         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
110562         Bruno Haible <bruno@clisp.org>.
110564         * m4/gc-des.m4: New file.
110566 2005-10-21  Simon Josefsson  <jas@extundo.com>
110568         * m4/arctwo.m4: New file.
110570         * m4/gc-arctwo.m4: New file.
110572 2005-10-21  Simon Josefsson  <jas@extundo.com>
110574         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
110575         block.
110577 2005-10-21  Simon Josefsson  <jas@extundo.com>
110579         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
110580         <bruno@clisp.org>.
110582         * lib/hmac-sha1.c (hmac_sha1): Likewise.
110584         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
110585         Bruno Haible <bruno@clisp.org>.
110587         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
110588         <bruno@clisp.org>.
110590 2005-10-21  Simon Josefsson  <jas@extundo.com>
110592         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
110594 2005-10-21  Simon Josefsson  <jas@extundo.com>
110596         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
110598 2005-10-21  Simon Josefsson  <jas@extundo.com>
110600         * lib/des.h, lib/des.c: New files.
110602         * lib/gc-gnulib.c: Support DES.c
110604 2005-10-21  Simon Josefsson  <jas@extundo.com>
110606         * lib/arctwo.h, lib/arctwo.c: New files.
110608         * lib/gc-gnulib.c: Support ARCTWO.
110610 2005-10-21  Simon Josefsson  <jas@extundo.com>
110612         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
110613         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
110615 2005-10-21  Simon Josefsson  <jas@extundo.com>
110617         * gnulib-tool (func_import, func_create_testdir): Define automake
110618         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
110619         Makefile.am snippet),
110620         suggested by Bruno Haible <bruno@clisp.org>.
110622         * modules/gc (Makefile.am): Use it.
110624 2005-10-21  Bruno Haible  <bruno@clisp.org>
110626         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
110627         patch.
110629 2005-10-19  Simon Josefsson  <jas@extundo.com>
110631         * tests/test-gc-rijndael.c: New file.
110633         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
110635 2005-10-19  Simon Josefsson  <jas@extundo.com>
110637         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
110638         interface too.
110640 2005-10-19  Simon Josefsson  <jas@extundo.com>
110642         * tests/test-gc-arcfour.c: New file.
110644         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
110646 2005-10-19  Simon Josefsson  <jas@extundo.com>
110648         * modules/gc-md4, modules/gc-md4-tests: New file.
110650         * tests/test-gc-md4.c: New file.
110652 2005-10-19  Simon Josefsson  <jas@extundo.com>
110654         * m4/gc-md4.m4: New file.
110656 2005-10-19  Simon Josefsson  <jas@extundo.com>
110658         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
110659         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
110660         <kasal@ucw.cz>.
110662 2005-10-19  Simon Josefsson  <jas@extundo.com>
110664         * m4/gc-arcfour.m4: New file.
110666         * m4/gc-rijndael.m4: New file.
110668 2005-10-19  Simon Josefsson  <jas@extundo.com>
110670         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
110672 2005-10-19  Simon Josefsson  <jas@extundo.com>
110674         * lib/gc-gnulib.c: Support ARCFOUR.
110676 2005-10-19  Simon Josefsson  <jas@extundo.com>
110678         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
110679         support.
110681         * lib/gc.h: Add ECB enum type.
110683         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
110685 2005-10-18  Simon Josefsson  <jas@extundo.com>
110687         * tests/test-md5.c: New file.
110689         * modules/md5-tests: New file.
110691 2005-10-18  Simon Josefsson  <jas@extundo.com>
110693         * tests/test-md4.c: New file.
110695         * modules/md4, modules/md4-tests: New files.
110697 2005-10-18  Simon Josefsson  <jas@extundo.com>
110699         * m4/md4.m4: New file.
110701 2005-10-18  Simon Josefsson  <jas@extundo.com>
110703         * lib/md4.h, lib/md4.c: New files, based on md5.?.
110705 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
110707         * gnulib-tool (func_create_testdir): Omit the second check whether
110708         BUILT_SOURCES in nonempty.
110710 2005-10-17  Simon Josefsson  <jas@extundo.com>
110712         * tests/test-rijndael.c: New file.
110714 2005-10-17  Simon Josefsson  <jas@extundo.com>
110716         * modules/sha1: Depend on stdint instead of md5.
110718         * modules/md5: Depend on stdint, remove uint32_t.
110720 2005-10-17  Simon Josefsson  <jas@extundo.com>
110722         * modules/gc-sha1-tests: New file.
110724         * tests/test-gc-sha1.c: New file.
110726 2005-10-17  Simon Josefsson  <jas@extundo.com>
110728         * m4/md5.m4: Remove call to uint32_t.m4.
110730 2005-10-17  Simon Josefsson  <jas@extundo.com>
110732         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
110734         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
110735         md5.h.
110737         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
110739         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
110741 2005-10-17  Simon Josefsson  <jas@extundo.com>
110743         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
110745 2005-10-17  Simon Josefsson  <jas@extundo.com>
110747         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
110749 2005-10-17  Simon Josefsson  <jas@extundo.com>
110751         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
110753         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
110755 2005-10-17  Bruno Haible  <bruno@clisp.org>
110757         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
110758         that it can also be used in a test.
110760 2005-10-16  Bruno Haible  <bruno@clisp.org>
110762         * gnulib-tool (func_emit_tests_Makefile_am): Also define
110763         TESTS_ENVIRONMENT, so that individual tests can augment it.
110765         * gnulib-tool (func_create_testdir): Use an intermediate target for
110766         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
110767         macros, like $(ALLOCA_H), which cannot be passed through the command
110768         line.
110770 2005-10-15  Simon Josefsson  <jas@extundo.com>
110772         * modules/rijndael-tests: New file.
110774         * modules/rijndael: New file.
110776 2005-10-15  Simon Josefsson  <jas@extundo.com>
110778         * m4/rijndael.m4: New file.
110780 2005-10-15  Simon Josefsson  <jas@extundo.com>
110782         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
110784         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
110786 2005-10-14  Simon Josefsson  <jas@extundo.com>
110788         * tests/test-arcfour.c: New file.
110790         * modules/arcfour, modules/arcfour-tests: New files.
110792 2005-10-14  Simon Josefsson  <jas@extundo.com>
110794         * m4/arcfour.m4: New file.
110796 2005-10-14  Simon Josefsson  <jas@extundo.com>
110798         * lib/arcfour.h, lib/arcfour.c: New files.
110800 2005-10-14  Roland McGrath  <roland@redhat.com>
110802         Import from libc.  [BZ #1331]
110803         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
110804         macro argument.
110805         Reported by Matej Vela <vela@debian.org>.
110807 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
110809         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
110810         include <wchar.h>; no longer needed.
110812 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
110814         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
110816 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
110817         and  Ulrich Drepper  <drepper@redhat.com>
110819         Import from libc.
110820         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
110821         instead of inline stream orientation test and two separate
110822         function calls.  Pay no attention to USE_IN_LIBIO.
110824 2005-10-13  Simon Josefsson  <jas@extundo.com>
110826         * modules/gc-hmac-md5-tests: New file.
110828         * tests/test-gc-hmac-sha1.c: New file.
110830         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
110832         * modules/gc-hmac-md5-tests: New file.
110834         * tests/test-gc-md5.c: New file.
110836         * modules/gc-md5-tests: New file.
110838 2005-10-13  Simon Josefsson  <jas@extundo.com>
110840         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
110841         Move memory allocation outside of loop.
110843 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
110845         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
110846         intermediate directory is in a read-only file system.  Problem
110847         reported by Eric Blake.
110849 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
110851         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
110853 2005-10-12  Simon Josefsson  <jas@extundo.com>
110855         * tests/test-hmac-sha1.c: New file.
110857         * modules/hmac-sha1-tests: New file.
110859         * modules/hmac-sha1: New file.
110861 2005-10-12  Simon Josefsson  <jas@extundo.com>
110863         * modules/gc-sha1: New file.
110865 2005-10-12  Simon Josefsson  <jas@extundo.com>
110867         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
110869         * tests/test-gc-pbkdf2-sha1.c: New file.
110871 2005-10-12  Simon Josefsson  <jas@extundo.com>
110873         * modules/gc-md5, modules/gc-hmac-md5: New files.
110875         * modules/gc (Files): Remove md5, memxor and hmac files.
110877 2005-10-12  Simon Josefsson  <jas@extundo.com>
110879         * m4/gc-pbkdf2-sha1.m4: New file.
110881         * m4/gc-hmac-sha1.m4: New file.
110883         * m4/gc-sha1: New file.
110885         * m4/hmac-sha1.m4: New file.
110887 2005-10-12  Simon Josefsson  <jas@extundo.com>
110889         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
110891         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
110893 2005-10-12  Simon Josefsson  <jas@extundo.com>
110895         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
110896         suggested by Bruno Haible <bruno@clisp.org>.
110898 2005-10-12  Simon Josefsson  <jas@extundo.com>
110900         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
110902 2005-10-12  Simon Josefsson  <jas@extundo.com>
110904         * lib/gc-pbkdf2-sha1.c: New file.
110906         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
110908 2005-10-12  Simon Josefsson  <jas@extundo.com>
110910         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
110912         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
110914 2005-10-12  Simon Josefsson  <jas@extundo.com>
110916         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
110917         GC_USE_HMAC_MD5, respectively.
110919         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
110920         (gc_md5): Fix typo.
110922         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
110924         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
110926         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
110928 2005-10-12  Bruno Haible  <bruno@clisp.org>
110930         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
110931         Reported by Stepan Kasal <kasal@ucw.cz>.
110933 2005-10-11  Simon Josefsson  <jas@extundo.com>
110935         * tests/test-crc.c: New file.
110937         * modules/crc, modules/crc-tests: New files.
110939 2005-10-11  Simon Josefsson  <jas@extundo.com>
110941         * m4/crc.m4: New file.
110943 2005-10-11  Simon Josefsson  <jas@extundo.com>
110945         * lib/gc.h: Add gc_hash and gc_hash_buffer.
110947         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
110949         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
110951 2005-10-11  Simon Josefsson  <jas@extundo.com>
110953         * lib/crc.h, lib/crc.c: New files.
110955         * lib/gc.h (gc_hash_buffer): Add doc.
110957 2005-10-11  Bruno Haible  <bruno@clisp.org>
110959         * modules/c-strcasestr: New file.
110960         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
110962 2005-10-11  Bruno Haible  <bruno@clisp.org>
110964         * modules/c-strcase: New file.
110965         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
110967 2005-10-11  Bruno Haible  <bruno@clisp.org>
110969         * lib/strcasecmp.c: Include limits.h.
110970         (strcasecmp): Avoid integer overflow on exotic platforms.
110971         * lib/strncasecmp.c: Include limits.h.
110972         (strncasecmp): Avoid integer overflow on exotic platforms.
110973         Reported by Paul Eggert.
110975 2005-10-11  Bruno Haible  <bruno@clisp.org>
110977         * lib/c-strcasestr.h: New file, from GNU gettext.
110978         * lib/c-strcasestr.c: New file, from GNU gettext.
110980 2005-10-11  Bruno Haible  <bruno@clisp.org>
110982         * lib/c-strcase.h: New file, from GNU gettext.
110983         * lib/c-strcasecmp.c: New file, from GNU gettext.
110984         * lib/c-strncasecmp.c: New file, from GNU gettext.
110986 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
110988         * modules/mempcpy (License): GPL -> LGPL.
110989         * modules/strchrnul (License): Likewise.
110990         * modules/sysexits (License): Likewise.
110992 2005-10-08  Simon Josefsson  <jas@extundo.com>
110994         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
110996 2005-10-07  Simon Josefsson  <jas@extundo.com>
110998         * m4/memxor.m4: Remove gl_C_RESTRICT call.
111000 2005-10-06  Simon Josefsson  <jas@extundo.com>
111002         * tests/test-hmac-md5.c: New file.
111004         * modules/hmac-md5-tests: New file.
111006         * modules/hmac-md5: New file.
111008 2005-10-06  Simon Josefsson  <jas@extundo.com>
111010         * m4/hmac-md5.m4: New file.
111012         * m4/memxor.m4: Require gl_C_RESTRICT.
111014 2005-10-06  Simon Josefsson  <jas@extundo.com>
111016         * lib/memxor.c (memxor): Avoid casts and warnings.
111018 2005-10-06  Simon Josefsson  <jas@extundo.com>
111020         * lib/hmac-md5.c: New file.
111022         * lib/hmac.h: New file.
111024 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
111026         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
111027         promotes to int, not unsigned int, to catch the AIX 5.3
111028         compiler bug.
111030 2005-10-05  Simon Josefsson  <jas@extundo.com>
111032         * modules/memxor: New file.
111034         * modules/iconv (Files): Move config.rpath to havelib, it is used
111035         there.
111037         * modules/havelib (Files): Add config.rpath.
111039 2005-10-05  Simon Josefsson  <jas@extundo.com>
111041         * m4/memxor.m4: New file.
111043 2005-10-05  Simon Josefsson  <jas@extundo.com>
111045         * lib/memxor.c (memxor): Fix compiler error.
111047         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
111048         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
111050         * lib/memxor.h, lib/memxor.c: New files.
111052         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
111053         we assume all systems have it, suggested by Jim Meyering
111054         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
111055         any systems lack sys/socket.h; mingw32 is known to lack it, but we
111056         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
111057         same reasons.
111059 2005-10-05  Simon Josefsson  <jas@extundo.com>
111061         * config/srclist.txt: Add glibc bug 1423 for md5.h.
111063 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
111065         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
111066         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
111067         needed, since the source code now assumes these .h files.
111069 2005-10-05  Derek Price  <derek@ximbiot.com>
111071         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
111073 2005-10-05  Bruno Haible  <bruno@clisp.org>
111075         * modules/stdint (License): Change to LGPL.
111077 2005-10-04  Simon Josefsson  <jas@extundo.com>
111079         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
111080         D. Baushke" <mdb@gnu.org>.
111082 2005-10-04  Bruno Haible  <bruno@clisp.org>
111084         * lib/verify.h (verify_true): Provide alternative definition for C++.
111086 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
111088         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
111089         (SSIZE_MAX): New macro, if not already defined.
111090         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
111091         than 2 GiB.
111093 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
111095         Sync from coreutils.
111096         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
111097         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
111098         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
111099         ULLONG_MAX doesn't work with 2.7.2.1.
111101 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
111103         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
111104         From Ben Pfaff.
111106         * modules/exclude (Depends-on): Depend on verify.
111107         * modules/strtoimax (Depends-on): Likewise.
111108         * modules/utimecmp (Depends-on): Likewise.
111110 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
111112         * lib/exclude.c: Include verify.h.
111113         (verify): Remove.  All callers changed to use verify.h's version.
111114         * lib/strtoimax.c: Likewise.
111115         * lib/utimecmp.c: Likewis.e
111117         Sync from coreutils.
111118         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
111119         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
111120         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
111121         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
111122         bother returning ENOSYS if settimeofday or stime fails; just let
111123         them return whatever errno they want to return.
111124         * lib/utimens.c: Include unistd.h, for dup2.
111125         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
111126         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
111128 2005-10-02  Jim Meyering  <jim@meyering.net>
111130         Sync from coreutils.
111131         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
111132         from glibc-2.2.5 that fails for read-only files.
111134 2005-10-02  Jim Meyering  <jim@meyering.net>
111136         Sync from coreutils.
111137         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
111138         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
111139         `#if HAVE_CONFIG_H'.
111140         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
111141         Remove AT_FDCWD test.
111142         Do not consume the fd unless successful.
111143         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
111144         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
111145         block, so that we don't even try to compile it if settimeofday is
111146         available.  This works around a compilation failure on OSF1 V5.1,
111147         due to stime requiring a `long int*' while tv_sec is `int'.
111149 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
111151         Sync from coreutils.
111152         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
111153         against `yes', rather than just testing for nonempty.
111155 2005-10-01  Simon Josefsson  <jas@extundo.com>
111157         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
111158         and Darwin.
111160         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
111161         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
111162         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
111163         freeaddrinfo and gai_strerror are declared by the POSIX headers.
111164         Check if struct addrinfo is declared.
111166 2005-10-01  Simon Josefsson  <jas@extundo.com>
111168         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
111169         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
111170         AI_* and EAI_* definitions.  Protect function declarations.
111172 2005-10-01  Jim Meyering  <jim@meyering.net>
111174         Sync from coreutils.
111176         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
111177         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
111178         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
111179         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
111180         in the inet and nsl libraries.  Required on Solaris 5.7.
111182 2005-10-01  Jim Meyering  <jim@meyering.net>
111184         Sync from coreutils.
111185         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
111186         in the inet and nsl libraries.  Required on Solaris 5.7.
111188 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
111190         * lib/getdelim.c (getdelim): Remove unused variables.
111192 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
111194         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
111195         so that the code works even with ancient cpp.  Portability problem
111196         with GCC 2.7.2.1 reported by Thomas M.Ott.
111198 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
111200         * modules/regex (Depends-on): Add strcase.
111202         * modules/gethostname (Licence): Change from GPL to LGPL, since
111203         gethostname.c is a trivial implementation of a standard library
111204         function.
111205         * modules/poll (License): Change from GPL to LGPL, since it's
111206         derived from LGPL code.
111208 2005-09-27  Jim Meyering  <jim@meyering.net>
111210         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
111211         HAVE_CONFIG_H.
111213         * lib/intprops.h (signed_type_or_expr__): Define.
111214         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
111215         for unsigned types.
111217 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
111219         * lib/verify.h (verify_expr): Remove, replacing with:
111220         (verify_true): New macro that returns true instead of void.
111221         (verify_type__): Remove.
111222         (verify): Use verify_true rather than verify_type__.
111224 2005-09-26  Bruno Haible  <bruno@clisp.org>
111226         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
111227         is necessary.
111228         (lib_SOURCES): Remove mbchar.c.
111229         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
111230         (Files): Add m4/mbrtowc.m4.
111231         * modules/mbiter: Likewise.
111232         * modules/mbuiter: Likewise.
111234 2005-09-26  Bruno Haible  <bruno@clisp.org>
111236         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
111237         compile mbchar.c if they are not both present.
111238         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
111239         * m4/mbiter.m4 (gl_MBITER): Likewise.
111240         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
111241         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
111242         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
111244 2005-09-25  Jim Meyering  <jim@meyering.net>
111246         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
111247         also uses socklen_t.
111249 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
111251         * lib/utimens.c (ENOSYS): Define if not already defined.
111252         (futimens): Support having a null PATH if the file descriptor
111253         is nonnegative.
111255         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
111256         Remove.
111257         (__attribute): Define to empty unless GCC 3.1 or later.
111258         This works around a core dump on OpenBSD 3.4, which has GCC
111259         2.95.3, which dumps core when given __attribute__(()).  It also
111260         simplifies other tests, since we really don't want to bother with
111261         worrying about which ancient version of GCC supported what.
111262         Original problem reported by Yoann Vandoorselaere, with part of
111263         the fix suggested by Derek Price.
111265 2005-09-24  Jim Meyering  <jim@meyering.net>
111267         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
111268         so we can once again use a positive bitfield width of 1 -- now we
111269         don't have to explain why we were using a bitfield width of 2.
111271 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
111273         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
111274         and similarly for the other external symbols.  Problem reported
111275         by James Gallager.
111277         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
111278         bug reported by Jim Meyering.
111280         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
111281         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
111282         not needed, since socklen is a prerequisite module.
111284 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
111286         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
111287         Problem reported by Eric Blake.
111288         (getaddrinfo): Initialize se so that it's not garbage.
111289         Redo internal storage allocation so that it doesn't make unportable
111290         assumptions about alignment.
111291         Fix a memory leak.
111293         * lib/utimens.c (futimens): Use futimesat if available.
111294         Prefer it to futimes since it doesn't have the futimes bug.
111296         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
111297         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
111298         Instead, declare a function that returns a pointer to an array,
111299         and use verify_type__ to declare the size of the array.
111300         Problem and germ of a solution reported by Bruno Haible.
111301         (verify_type__): Use 2, not 1, for bitfield size, to avoid
111302         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
111304 2005-09-23  Jim Meyering  <jim@meyering.net>
111306         Sync from coreutils.
111307         Correct build failure (socklen_t not defined) on at least
111308         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
111309         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
111311 2005-09-23  Jim Meyering  <jim@meyering.net>
111313         * modules/getaddrinfo (Depends-on): Add socklen.
111315 2005-09-23  Bruno Haible  <bruno@clisp.org>
111317         * tests/test-verify.c: New file.
111319 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
111321         Sync from coreutils.
111323         * modules/argmatch (Depends-on): Add verify.
111324         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
111325         unistd-safer.
111326         * modules/save-cwd (Depends-on): Likewise.
111328         * modules/openat (Files): Add lib/openat-die.c.
111329         (Depends-on): Remove error, exitfail.
111330         Add dirname.
111332         * modules/verify: New file.
111333         * MODULES.html.sh (Diagnostics <assert.h>): New section,
111334         with "verify" module.
111336 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
111338         Sync from coreutils.
111340         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
111341         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
111342         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
111343         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
111344         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
111345         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
111346         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
111347         Don't bother checking for string.h, stdlib.h, unistd.h.
111348         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
111349         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
111350         module's job.
111351         * m4/jm-macros.m4 (gl_MACROS): Likewise.
111352         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
111354         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
111355         (gl_GETDATE): Use it.
111357         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
111359 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
111361         Sync from coreutils.
111363         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
111364         stat-time.h.
111365         * lib/argmatch.h: Include verify.h
111366         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
111367         (ARGMATCH_ASSERT): Remove; unused.
111368         * lib/canonicalize.c: Assume STDC_HEADERS.
111369         * lib/exclude.c: Include "strcase.h".
111370         * lib/regex_internal.h [!defined _LIBC]: Likewise.
111371         * lib/getusershell.c: Include stdio--.h rather than stdio.h
111372         and stdio-safer.h.
111373         (getusershell): Call fopen, not fopen_safer.
111374         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
111375         Do not include unistd-safer.h.
111376         (save_cwd): Don't call fd_safer; no longer needed
111377         now that we include fcntl--.h.
111379         * lib/getdate.y (relative_time): New type.
111380         (RELATIVE_TIME_0): New constant.
111381         (parser_control): Use relative_time instead of doing it ourselves.
111382         (%union): Add new relative_time rel member.
111383         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
111384         Now typeless.
111385         (relunit, relunit_snumber): Now of type rel.
111386         (zone, rel, relunit, get_date): Adjust to above changes.
111388         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
111389         Do not include unistd-safer.h.
111390         (getloadavg): Don't call fd_safer; no longer needed
111391         now that we include fcntl--.h.
111393         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
111394         (make_dir_parents): Treat ENOSYS like EEXIST.
111396         Improve quality of diagnostics on restore_cwd failure.
111397         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
111398         (make_dir_parents): Last arg is now int * (for errno), not bool *.
111399         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
111400         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
111401         each time through the loop.  Do not diagnose restore_cwd failure;
111402         that is the caller's job (and perhaps the caller does not care).
111404         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
111405         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
111406         If the file already exists but is not a directory, don't bother
111407         to try to make its parents.
111408         Close potential file descriptor leak if we can't chdir("/") (!).
111409         Don't always return true if chdir($PWD) fails; return true only
111410         if the requested action was done successfully (except for the
111411         chdir($PWD)).
111412         Don't log final directory unless we actually made it.
111413         Refactor to avoid duplicate code to fix up permissions.
111414         Don't attempt to fix up parent permissions if chdir($PWD) fails.
111416         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
111417         to make it a bit faster and (I hope) clearer.
111418         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
111419         Fix bug in formats like %2N.
111421         * lib/verify.h: New file.
111423 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
111425         Sync from coreutils.
111426         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
111428 2005-09-22  Jim Meyering  <jim@meyering.net>
111430         Sync from coreutils.
111432         * m4/lstat.m4 (gl_FUNC_LSTAT):
111433         Use AC_LIBSOURCES to require lstat.c and lstat.h.
111434         Remove obsolete comment.
111435         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
111436         * m4/xstrtod.m4: Likewise.
111438         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
111440 2005-09-22  Jim Meyering  <jim@meyering.net>
111442         Sync from coreutils.
111444         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
111446         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
111447         the .tm_year member, since otherwise gcc-4.0 would now warn about
111448         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
111450         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
111451         order to avoid an unsuppressible warning from gcc on 64-bit systems.
111453         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
111454         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
111455         when run in a time zone for which daylight savings time is in effect
111456         for the starting date.
111458         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
111459         stop us from restricting permissions of just-created absolute-named
111460         directories.
111461         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
111462         to restore initial working directory.
111463         * lib/mkdir-p.c (make_dir_parents): New parameter:
111464         different_working_dir, to tell caller if/when we change the working
111465         directory and are unable to return to the initial one.
111466         * lib/mkdir-p.h (make_dir_parents): Update prototype.
111467         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
111468         `return false'.  This fixes a bug introduced on 2004-07-30.
111470         * lib/openat.c (fdopendir): Be sure to close the supplied
111471         file descriptor before returning.  This makes our replacement
111472         implementation a little closer to Solaris's, where fdopendir
111473         ties the file descriptor to the returned DIR* pointer.
111474         * lib/openat.c (unlinkat): New function.
111475         * lib/openat.h (unlinkat): Add prototype.
111476         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
111477         (openat_restore_fail): Rename from openat_restore_die.
111478         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
111480         Provide an alternative to exiting immediately upon save_cwd or
111481         restore_cwd failure.  Now, an application can arrange e.g.,
111482         to perform a longjump in that case.
111483         * lib/openat.c: Include dirname.h.
111484         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
111485         (rpl_openat, fdopendir, fstatat): Call openat_save_die
111486         and openat_restore_die rather than calling error directly.
111487         Don't include "error.h" or "exitfail.h"; they're no longer needed.
111489         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
111490         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
111491         define.
111493         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
111494         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
111495                             int utc, int nanoseconds);
111496         Background:
111497         date should not have to allocate a megabyte of virtual memory to
111498         handle a format argument like +%1048575T.  When implemented with
111499         strftime, it must allocate such a buffer, use strftime to fill it
111500         in, print it, then free it.
111501         With fprintftime, it simply prints everything and exits.
111502         With no need for memory allocation, that's one fewer way to fail.
111503         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
111504         optional field width, not before, so we accept %9:z, not %:9z.
111505         (my_strftime): Be sure to use L_('x') for literals.
111507         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
111508         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
111509         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
111510         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
111511         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
111512         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
111513         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
111514         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
111515         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
111516         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
111517         * lib/xgethostname.c, lib/xreadlink.c:
111518         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
111520         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
111521         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
111522         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
111523         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
111524         and don't include <sys/file.h>).
111526 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
111528         Sync from coreutils.
111530         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
111531         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
111532         [!LDAV_DONE]: Avoid unused variable warning.
111534 2005-09-21  Bruno Haible  <bruno@clisp.org>
111536         * lib/unicodeio.h (unicode_to_mb): New declaration.
111538 2005-09-20  Derek Price  <derek@ximbiot.com>
111540         * lib/getaddrinfo.c: Don't include <netdb.h> included from
111541         getaddrinfo.h.
111543 2005-09-20  Bruno Haible  <bruno@clisp.org>
111545         * gnulib-tool: Remove trailing slashes from the values specified for
111546         --source-base, --m4-base, --tests-base, --aux-dir.
111547         Suggested by Simon Josefsson <jas@extundo.com>.
111549 2005-09-20  Bruno Haible  <bruno@clisp.org>
111551         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
111552         func_modules_to_filelist, func_import, func_create_testdir): Make all
111553         sorting results locale-independent, so that gnulib-cache.m4 doesn't
111554         change when gnulib-tool is invoked in a different locale.
111556 2005-09-19  Simon Josefsson  <jas@extundo.com>
111558         * m4/socklen.m4: Fix typo.
111560 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111562         Use a consistent style for including <config.h>.
111563         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
111564         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
111565         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
111566         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
111567         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
111568         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
111569         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
111570         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
111571         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
111572         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
111573         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
111574         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
111575         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
111576         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
111577         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
111578         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
111579         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
111580         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
111581         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
111582         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
111583         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
111584         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
111585         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
111586         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
111587         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
111588         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
111589         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
111590         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
111591         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
111592         lib/xstrtoumax.c, lib/yesno.c:
111593         Standardize inclusion of config.h.
111594         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
111595         lib/inttostr.h:  Removed inclusion of config.h from header files.
111596         * lib/inttostr.c:  Adjusted in-tree users.
111597         * lib/timespec.h: Remove superfluous warning to include config.h.
111598         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
111599         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
111600         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
111601         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
111602         config.h with HAVE_CONFIG_H.
111604 2005-09-19  Jim Meyering  <jim@meyering.net>
111606         * modules/pathmax (License): Change to LGPL.
111608 2005-09-19  Derek Price  <derek@ximbiot.com>
111610         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
111612 2005-09-19  Bruno Haible  <bruno@clisp.org>
111614         * gnulib-tool (import): Provide default for --tests-base.
111616 2005-09-19  Bruno Haible  <bruno@clisp.org>
111618         * doc/quote.texi: New file, extracted from gnulib.texi.
111619         * doc/ctime.texi: New file, extracted from gnulib.texi.
111620         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
111621         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
111622         * doc/gnulib.texi: Include them.
111624 2005-09-18  Bruno Haible  <bruno@clisp.org>
111626         Portability fix.
111627         * gnulib-tool (func_readlink): New function.
111628         (func_ln_if_changed): Use it.
111630 2005-09-18  Bruno Haible  <bruno@clisp.org>
111632         * gnulib-tool: Support --with-tests also with --import.
111633         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
111634         (func_import): Use variables $testsbase and $inctests. Emit a
111635         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
111636         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
111637         SUBDIRS += $testsdir.
111638         (func_create_testdir): Update.
111640 2005-09-18  Bruno Haible  <bruno@clisp.org>
111642         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
111643         instead of $dry_run.
111644         (func_cp_if_changed, func_mv_if_changed): Remove functions.
111645         (func_ln_if_changed): Don't handle dry-run here.
111646         (func_import): In dry-run mode, detect more precisely which actions
111647         would be performed, and don't use "...ing" verbs.
111649 2005-09-18  Bruno Haible  <bruno@clisp.org>
111651         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
111652         (func_import): Use join on two temporary files instead of three nested
111653         loops, in order to determine which files are new or old.
111655 2005-09-18  Bruno Haible  <bruno@clisp.org>
111657         * gnulib-tool (func_import): Comment out code that spits out the
111658         new files with --dry-run.
111660 2005-09-18  Bruno Haible  <bruno@clisp.org>
111662         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
111664 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
111666         * lib/stat-time.h: New file.
111667         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
111668         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
111669         in a different way.
111670         (timespec_cmp): New function.
111671         * lib/utimecmp.c: Include stat-time.h.
111672         (SYSCALL_RESOLUTION): Depend on whether various struct stat
111673         members exist, not on the obsolescent ST_MTIM_NSEC.
111674         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
111676 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
111678         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
111680 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
111682         * MODULES.html.sh (File system functions): Add stat-time.
111683         * modules/stat-time: New file.
111684         * modules/timespec (Files): Remove m4/st_mtim.m4; this
111685         is now done in a different way, by the stat-time module.
111686         * modules/utimecmp (Depends-on): Add stat-time.
111688 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
111690         * m4/st_mtim.m4: Remove.  Superseded by...
111691         * m4/stat-time.m4: New file.
111692         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
111693         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
111695 2005-09-15  Derek Price  <derek@ximbiot.com>
111697         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
111699 2005-09-15  Derek Price  <derek@ximbiot.com>
111701         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
111702         * lib/regex_internal.c: Ditto, using this...
111703         (__GNUC_PREREQ): ...new macro.
111704         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
111705         using...
111706         (__GNUC_PREREQ): ...this new macro.
111708         * lib/strstr.h: Include string.h. Define strstr as a macro here.
111710 2005-09-15  Derek Price  <derek@ximbiot.com>
111711             Paul Eggert  <eggert@cs.ucla.edu>
111713         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
111714         changes, consolidating in...
111715         * lib/regex_internal.h: ...this file.
111717 2005-09-13  Jim Meyering  <jim@meyering.net>
111719         * lib/canon-host.c: Filter through gnu indent and reword comments
111720         slightly.
111721         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
111723 2005-09-13  Derek Price  <derek@ximbiot.com>
111725         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
111726         failure.
111727         Reported by Jim Meyering  <jim@meyering.net>.
111729 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
111731         * lib/base64.c: Typo.
111732         (base64_encode): Put b64str in initialized data section.
111734 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
111736         Merge glibc and coreutils changes into gnulib, plus a few
111737         extra fixes.
111738         * lib/md5.c: Use #error rather than a string.
111739         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
111740         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
111741         (__attribute__): Define to empty for non recent-GCC.
111742         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
111743         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
111744         Renamed from their non-__ counterparts, with new macros replacing
111745         them if not _LIBC.  Add __THROW attribute.
111746         (rol): Remove.
111747         (struct md5_ctx): Align buffer if using GCC.
111748         * lib/sha1.h (struct sha1_ctx): Likewise.
111749         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
111750         The old name was backwards.
111751         (NOTSWAP): Remove; not used.
111752         (rol): New macro, moved here from md5.h.
111753         (sha1_process_block): Remove a FIXME that doesn't make sense.
111755 2005-09-12  Derek Price  <derek@ximbiot.com>
111757         Return usable errors from canon-host.
111758         * lib/canon-host.h: New file.
111759         * lib/canon-host.c (canon_host): Wrap...
111760         (canon_host_r): ...this new function, which now relies exclusively on
111761         getaddrinfo.
111762         (ch_strerror): New function.
111763         (last_cherror): New global.
111764         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
111765         interface.
111766         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
111767         void *.
111768         (freeaddrinfo): Free ai->ai_canonname when set.
111770 2005-09-12  Derek Price  <derek@ximbiot.com>
111772         Make canon-host require getaddrinfo.
111773         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
111774         AC_LIBSOURCE canon-host.h.  Call...
111775         (gl_PREREQ_CANON_HOST): ...this new function, which requires
111776         gl_GETADDRINFO.
111777         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
111779 2005-09-12  Derek Price  <derek@ximbiot.com>
111781         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
111782         LGPL.
111783         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
111785 2005-09-12  Derek Price  <derek@ximbiot.com>
111787         * lib/gai_strerror.c: Include config.h when available.  Include
111788         getaddrinfo.h before other headers to test interface.
111789         Reported by Larry Jones <lawrence.jones@ugs.com>.
111791 2005-09-12  Derek Price  <derek@ximbiot.com>
111792             Paul Eggert  <eggert@cs.ucla.edu>
111794         * modules/glob (Files): Add glob-libc.h.
111796 2005-09-12  Derek Price  <derek@ximbiot.com>
111797             Paul Eggert  <eggert@cs.ucla.edu>
111799         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
111800         glob_.h, glob-libc.h.
111801         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
111803 2005-09-12  Derek Price  <derek@ximbiot.com>
111804             Paul Eggert  <eggert@cs.ucla.edu>
111806         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
111807         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
111808         protecting things that should be done only in gnulib contexts.
111809         * lib/glob_.h: New file, containing only the glob things needed for
111810         gnulib.
111811         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
111812         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
111813         (glob, globfree, glob_pattern_p): Now defined simply in terms of
111814         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
111815         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
111816         and to respect the namespace rules better.
111818 2005-09-08  Simon Josefsson  <jas@extundo.com>
111820         * modules/socklen: New file.
111822 2005-09-08  Simon Josefsson  <jas@extundo.com>
111824         * m4/socklen.m4: New file.
111826 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
111828         * modules/utimens (Files): Add m4/utimbuf.m4, since
111829         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
111830         Reported by Sergey Poznyakoff.
111832 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
111834         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
111835         definitions, since that's the preferred style in glibc.
111836         Fix a minor spacing issue, and update copyright notice to match
111837         glibc's.
111839 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
111841         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
111843 2005-09-06  Simon Josefsson  <jas@extundo.com>
111845         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
111846         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
111848 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
111850         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
111851         warning.
111853 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
111855         * config/srclist.txt: Add glibc bug 1302.
111857 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
111859         Change bitset word type from unsigned int to unsigned long int,
111860         as this has better performance on typical 64-bit hosts.
111861         Port bitset code to hosts with unusual word sizes.
111862         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
111863         (build_collating_symbol):
111864         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
111865         argument is a bitset.  This is merely a style issue, but it makes
111866         it clearer that an entire array is expected.
111867         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
111868         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
111869         Port to the case where bitset_word is not the same as unsigned int.
111870         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
111871         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
111872         Likewise.
111873         * lib/regexec.c (check_dst_limits_calc_pos_1,
111874         check_subexp_matching_top):
111875         (build_trtable, group_nodes_into_DFAstates):
111876         Likewise.
111877         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
111878         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
111879         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
111880         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
111881         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
111882         * lib/regcomp.c (optimize_subexps, lower_subexp):
111883         Work even if bitset_word has holes in its bitwise representation.
111884         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
111885         * lib/regexec.c (check_dst_limits_calc_pos_1,
111886         check_subexp_matching_top):
111887         Likewise.
111888         * lib/regex_internal.c (re_string_reconstruct):
111889         Don't assume UCHAR_MAX == 255.
111890         * lib/regex_internal.h (bitset_set_all): Likewise.
111891         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
111892         All uses changed.
111893         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
111894         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
111895         All uses changed.
111896         (BITSET_WORD_MAX): New macro.
111897         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
111898         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
111899         (bitset_empty, bitset_copy):
111900         Prefer sizeof (bitset) to multiplying it out ourselves.
111901         (bitset_not_merge): Remove; unused.
111902         (bitset_contain): Return bool, not unsigned int with one bit on.
111903         All callers changed.
111904         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
111905         alignment than re_node_set; do this by defining a new internal
111906         type struct dests_alloc and using it to allocate memory.
111908 2005-09-05  Bruno Haible  <bruno@clisp.org>
111910         * gnulib-tool (func_import): Fix comparison in handling of symbolic
111911         links.
111913 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
111915         * modules/size_max (Makefile.am): Add size_max.h
111917 2005-09-04  Derek Price  <derek@ximbiot.com>
111919         * gnulib-tool (func_import): Fix reversed $symbolic logic.
111921 2005-09-03  Simon Josefsson  <jas@extundo.com>
111923         * gnulib-tool: Fix typo.
111925 2005-09-03  Simon Josefsson  <jas@extundo.com>
111927         * config/srclist.txt: Add glibc bug 1293.
111929 2005-09-03  Derek Price  <derek@ximbiot.com>
111931         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
111932         From Larry Jones <lawrence.jones@ugs.com>.
111934 2005-09-02  Simon Josefsson  <jas@extundo.com>
111936         * modules/socklen: New file.
111938 2005-09-02  Simon Josefsson  <jas@extundo.com>
111940         * modules/havelib: New module.
111942         * modules/gettext, modules/iconv, modules/lock, modules/readline:
111943         Use havelib.
111945 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
111947         Check for arithmetic overflow when calculating sizes, to prevent
111948         some buffer-overflow issues.  These patches are conservative, in the
111949         sense that when I couldn't determine whether an overflow was possible,
111950         I inserted a run-time check.
111951         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
111952         macros.
111953         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
111954         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
111955         (re_xnrealloc, re_x2nrealloc): New inline functions.
111956         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
111957         parse_bracket_exp):
111958         (build_equiv_class, build_charclass): Check for arithmetic overflow
111959         in size expression calculations.
111960         * lib/regex_internal.c (re_string_realloc_buffers):
111961         (build_wcs_upper_buffer, re_node_set_add_intersect):
111962         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
111963         (re_dfa_add_node, register_state): Likewise.
111964         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
111965         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
111966         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
111967         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
111969 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
111971         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
111972         m4/ulonglong.m4.  Problem reported by Martin Lambers.
111974 2005-09-02  Bruno Haible  <bruno@clisp.org>
111976         Support for lib vs. lib64 distinction on biarch platforms.
111977         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
111978         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
111979         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
111981 2005-09-02  Bruno Haible  <bruno@clisp.org>
111983         * gnulib-tool (import): In the other first-use case, provide defaults
111984         as well.
111986 2005-09-02  Bruno Haible  <bruno@clisp.org>
111988         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
111989         patches not yet found in the latest gettext release.
111991 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
111993         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
111994         to avoid a collision with bits/local_lim.h in glibc.
111995         All uses changed.  Problem reported by Dmitry V. Levin in
111996         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
111998         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
111999         bugs in int versus size_t comparisons.
112000         (re_string_context_at): Fix bug where the code assumed that
112001         Idx is signed.
112003         Use bool where appropriate.
112004         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
112005         All callers changed.
112006         (calc_eclosure_iter): Likewise, for ROOT arg.
112007         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
112008         (build_charclass_op): Likewise, for NON_MATCH arg.
112009         * lib/regex_internal.c (re_string_allocate, re_string_construct):
112010         (re_string_construct_common): Likewise, for ICASE arg.
112011         * lib/regexec.c (re_search_2_stub, re_search_stub):
112012         Likewise, for RET_LEN arg.
112013         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
112014         (set_regs): Likewise, for FL_BACKTRACK arg.
112015         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
112016         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
112017         (calc_eclosure_iter, parse_bracket_exp):
112018         Use bool for internal variables that are booleans.
112019         * lib/regexec.c (re_search_internal, check_matching,
112020         proceed_next_node):
112021         (set_regs, build_sifted_states, sift_states_bkref):
112022         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
112023         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
112024         (find_collation_sequence_value):
112025         Likewise.
112026         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
112027         (re_node_set_compare):
112028         Return bool, not int. All callers changed.
112029         * lib/regexec.c (check_halt_node_context, check_dst_limits):
112030         (build_trtable, check_node_accept): Likewise.
112031         * lib/regex_internal.h: Include stdbool.h.
112033         Fix bugs uncovered when converting to bool.
112034         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
112035         failure instead of charging ahead blindly.
112036         * lib/regex_internal.c (register_state): Likewise.
112037         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
112038         for freeing internal storage.
112039         (group_nodes_into_DFA_states): Use unsigned int, not int, for
112040         bitset pieces used as boolean, to avoid undefined behavior
112041         on hosts that do int overflow checking.
112043 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
112045         * config/srclist.txt: Add glibc bugs 1285-1287.
112047 2005-09-01  Jim Meyering  <jim@meyering.net>
112049         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
112050         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
112051         Require gl_STAT_MACROS, too.
112053 2005-09-01  Bruno Haible  <bruno@clisp.org>
112055         * gnulib-tool (import): In the first-use case, provide defaults.
112057 2005-09-01  Bruno Haible  <bruno@clisp.org>
112059         * gnulib-tool (func_import): Remove the .tmp files.
112061 2005-09-01  Bruno Haible  <bruno@clisp.org>
112063         * gnulib-tool (func_import): Fix handling of symbolic links.
112065 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
112067         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
112068         old glibc regex code mishandles strings longer than 2**31 bytes.
112069         This patch fixes this when the regex code is used in gnulib
112070         (i.e., outside glibc).
112072         This patch should not affect the use of the regex code inside
112073         glibc.  No doubt this problem also needs to be handled for glibc
112074         as well, but the result will be an incompatible change to the
112075         glibc ABI, and the old ABI will have to be supported too.  That
112076         can be the subject for another patch.
112078         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
112079         governing whether the rest of this patch is active.  By default,
112080         the macro is disabled and the patch has no effect.
112081         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
112082         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
112083         (struct re_pattern_buffer, re_search, re_search_2, re_match):
112084         (re_match_2, re_set_registers): Use the new types.
112085         * lib/regex_internal.h (Idx, re_hashval_t): New types.
112086         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
112087         New macros.
112088         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
112089         (re_string_context_at, bin_tree_t, re_dfastate_t):
112090         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
112091         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
112092         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
112093         (re_string_char_size_at, re_string_wchar_at):
112094         (re_string_elem_size_at):
112095         Use the new types and macros to port to 64-bit hosts.
112096         Use unsigned types for internal values, so that the code
112097         mostly works even for arrays larger than SSIZE_MAX.
112098         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
112099         (search_duplicated_node, calc_eclosure_iter, fetch_number):
112100         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
112101         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
112102         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
112103         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
112104         (calc_inveclosure, parse_dup_op, build_range_exp):
112105         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
112106         (fetch_number, create_token_tree, mark_opt_subexp):
112107         Likewise.
112108         * lib/regex_internal.c (re_string_construct_common,
112109         create_ci_newstate):
112110         (create_cd_newstate, re_string_allocate, re_string_construct):
112111         (re_string_realloc_buffers, build_wcs_upper_buffer):
112112         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
112113         (re_string_reconstruct, re_string_peek_byte_case):
112114         (re_string_fetch_byte_case, re_string_context_at):
112115         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
112116         (re_node_set_init_copy, re_node_set_add_intersect):
112117         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
112118         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
112119         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
112120         (re_acquire_state, re_acquire_state_context, register_state):
112121         Likewise.
112122         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
112123         search_cur_bkref_entry):
112124         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
112125         (re_search_internal, re_search_2_stub, re_search_stub)
112126         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
112127         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
112128         (update_cur_sifted_state, check_dst_limits):
112129         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
112130         (check_subexp_limits, sift_states_bkref, merge_state_array):
112131         (check_subexp_matching_top, get_subexp, get_subexp_sub):
112132         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
112133         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
112134         (expand_bkref_cache, check_node_accept_bytes):
112135         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
112136         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
112137         (acquire_init_state_context, check_halt_node_context):
112138         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
112139         (sift_states_backward, clean_state_log_if_needed):
112140         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
112141         (find_recover_state, transit_state_sb, transit_state_mb):
112142         (transit_state_bkref, build_trtable, match_ctx_clean):
112143         Likewise.
112144         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
112145         to work around an assumption that REG_MISSING is negative.
112147         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
112148         (seek_collating_symbol_entry) [defined _LIBC]:
112149         (lookup_collation_sequence_value) [defined _LIBC]:
112150         (build_range_exp, build_collating_symbol) [defined _LIBC]:
112151         Use prototypes rather than old-style function definitions.
112152         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
112153         (transit_state_sb) [0]:
112154         (find_collation_sequence_value) [defined _LIBC]: Likewise.
112156         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
112157         rm_eo.
112159         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
112160         (optimize_subexps, lower_subexp):
112161         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
112162         since the signed shift might overflow.  Use 1u<<31 instead.
112163         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
112164         Likewise.
112165         * lib/regexec.c (check_dst_limits_calc_pos_1,
112166         check_subexp_matching_top): Likewise.
112168         * lib/regcomp.c (optimize_subexps, lower_subexp):
112169         Use CHAR_BIT rather than 8, for clarity.
112170         * lib/regexec.c (check_dst_limits_calc_pos_1):
112171         (check_subexp_matching_top): Likewise.
112172         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
112173         have to worry about portability issues when shifting it left.
112174         Remove no-longer-needed test for table_size > 0.
112175         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
112176         in a word, as the resulting behavior is undefined.
112177         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
112178         in one case, a <= should have been an <, and in another case the
112179         whole test was missing.
112180         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
112181         the standard name CHAR_BIT.
112182         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
112183         this is not true on one's complement and signed-magnitude hosts.
112185         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
112186         next_last_offset.
112187         (struct re_dfa_t): Remove unused member states_alloc.
112188         * lib/regcomp.c (init_dfa): Don't initialize unused members.
112190 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
112192         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
112193         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
112194         and large-file glibc and in 32-bit large-file Solaris.
112196 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
112198         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
112199         lengths fit in regoff_t; this isn't true if regoff_t is the same
112200         width as size_t.
112201         * lib/regex.c (re_search_internal): 5th arg is LAST_START
112202         (= START + RANGE) instead of RANGE.  This avoids overflow
112203         problems when regoff_t is the same width as size_t.
112204         All callers changed.
112205         (re_search_2_stub): Check for overflow when adding the
112206         sizes of the two strings.
112207         (re_search_stub): Check for overflow when adding START
112208         to RANGE; if it occurs, substitute the extreme value.
112210 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
112212         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
112214 2005-08-31  Jim Meyering  <jim@meyering.net>
112216         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
112217         a pointer-to-const.
112218         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
112219         (register_state): Likewise.
112220         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
112221         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
112222         (group_nodes_into_DFAstates): Likewise.
112224 2005-08-31  Jim Meyering  <jim@meyering.net>
112226         * check-module: Add a FIXME comment.
112228 2005-08-31  Eric Blake  <ebb9@byu.net>
112230         * modules/unistd-safer (Files): Add unistd--.h.
112231         * modules/stdio-safer (Files): Add stdio--.h.
112233 2005-08-31  Derek Price  <derek@ximbiot.com>
112235         * lib/getdelim.c (getdelim): Return EOF on EOF.
112236         Reported by Larry Jones <lawrence.jones@ugs.com>.
112238 2005-08-31  Bruno Haible  <bruno@clisp.org>
112240         Avoid unnecessary diffs in the generated lib/Makefile.am.
112241         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
112242         the generated files.
112243         (func_import): Don't set cmd.
112245 2005-08-31  Bruno Haible  <bruno@clisp.org>
112247         * lib/strstr.c: Include <stddef.h>, for NULL.
112248         * lib/strcasestr.c: Likewise.
112249         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
112251 2005-08-31  Bruno Haible  <bruno@clisp.org>
112253         * gnulib-tool: New option --macro-prefix.
112254         (func_import): Use macro_prefix.
112255         (import): Handle option --macro-prefix.
112257 2005-08-31  Bruno Haible  <bruno@clisp.org>
112259         * gnulib-tool (import): Rename most ac_* variables to cached_*.
112260         Also use new variables cached_lgpl, cached_libtool.
112262 2005-08-31  Bruno Haible  <bruno@clisp.org>
112264         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
112265         always instantiating them.
112267 2005-08-31  Bruno Haible  <bruno@clisp.org>
112269         * gnulib-tool (func_import): Read the previous cached settings
112270         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
112271         earlier added by gnulib but are now dropped. Warn when a gnulib file
112272         overwrites a non-gnulib file.
112274 2005-08-31  Bruno Haible  <bruno@clisp.org>
112276         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
112277         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
112278         projects that don't keep autogenerated files in CVS. Put into
112279         actioncmd only the specified modules, not the transitive closure.
112281 2005-08-31  Bruno Haible  <bruno@clisp.org>
112283         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
112284         Create directories that shall be filled.
112285         (import): Don't look for gl_* macros in configure.ac. Recurse across
112286         all directories containing a gnulib-cache.m4 files, if meaningful.
112288 2005-08-31  Bruno Haible  <bruno@clisp.org>
112290         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
112291         (import): Set seen_libtool when we see gl_LIBTOOL.
112293 2005-08-31  Bruno Haible  <bruno@clisp.org>
112295         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
112296         declaration macro definitions from generated gnulib.m4.
112298 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
112300         * lib/iconvme.h: Add prototype for iconv_alloc.
112302 2005-08-29  Simon Josefsson  <jas@extundo.com>
112304         * lib/iconvme.c: Fix errno.
112306 2005-08-29  Bruno Haible  <bruno@clisp.org>
112308         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
112309         that it works when the directory contains spaces.
112311 2005-08-29  Bruno Haible  <bruno@clisp.org>
112313         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
112315 2005-08-29  Bruno Haible  <bruno@clisp.org>
112317         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
112318         Emit more advice.
112320 2005-08-29  Bruno Haible  <bruno@clisp.org>
112321         and Stepan Kasal  <kasal@ucw.cz>
112323         * check-module: If more parameters are given, check each of them
112324         separately; add more exceptions, as noted by Jim Meyering.
112325         (check_module): New procedure.
112326         (%exempt_header): Now contains all exceptions.
112328 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
112330         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
112332 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
112334         * lib/iconvme.c: Split iconv_string into iconv_alloc.
112336 2005-08-28  Bruno Haible  <bruno@clisp.org>
112338         * m4/gnulib-tool.m4: New file.
112340 2005-08-27  Jim Meyering  <jim@meyering.net>
112342         * modules/unistd-safer (Files): Add pipe-safer.c.
112343         * modules/fcntl-safer (Files): Add creat-safer.c.
112345 2005-08-27  Jim Meyering  <jim@meyering.net>
112347         * m4/stdlib-safer.m4: New file.  From coreutils.
112348         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
112349         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
112350         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
112351         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
112352         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
112354 2005-08-27  Jim Meyering  <jim@meyering.net>
112356         * lib/fopen-safer.c: Merge minor changes from coreutils.
112357         * lib/dup-safer.c: Likewise.
112358         * lib/fd-safer.c: Likewise.
112360         Merge from coreutils.
112361         * lib/stdio--.h: New file.
112362         * lib/stdlib--.h: New file.
112363         * lib/mkstemp-safer.c: New file.
112365         GNU tar needs these.
112366         * lib/pipe-safer.c: New file.
112367         * lib/creat-safer.c: New file.
112368         * lib/fcntl--.h (creat): Define to creat_safer.
112369         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
112370         * lib/unistd--.h (pipe): Define to pipe_safer.
112371         * lib/unistd-safer.h: Declare pipe_safer.
112373 2005-08-26  Simon Josefsson  <jas@extundo.com>
112375         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
112376         Haible <bruno@clisp.org>.
112378 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
112380         * lib/regex_internal.h: Remove all references to
112381         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
112382         or better.
112383         (bitset_not, bitset_merge, bitset_not_merge):
112384         (bitset_mask, re_string_allocate, re_string_construct):
112385         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
112386         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
112387         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
112388         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
112389         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
112390         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
112391         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
112392         (re_acquire_state_context):
112393         Remove unnecessary forward decls.
112394         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
112395         Put __attribute at function definition,
112396         now that the function decl has been removed.
112397         * lib/regex_internal.c (re_string_peek_byte_case):
112398         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
112399         Likewise.
112401 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
112403         * m4/regex.m4: Add AC_PREREQ(2.50).
112404         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
112406 2005-08-25  Simon Josefsson  <jas@extundo.com>
112408         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
112409         __fsetlocking.
112411 2005-08-25  Simon Josefsson  <jas@extundo.com>
112413         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
112414         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
112415         GLIBC specific code.
112417 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
112419         Make regex safe for g++.  This fixes one real bug (an "err"
112420         that should have been "*err").  g++ problem reported by
112421         Sam Steingold.
112422         * lib/regex_internal.h (re_calloc): New macro, consistent with
112423         re_malloc etc.  All callers of calloc changed to use re_calloc.
112424         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
112425         not int.  All callers changed.
112426         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
112427         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
112428         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
112429         (find_recover_state): Change "err" to "*err"; this fixes what
112430         appears to be a real bug.
112431         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
112432         versus int.
112434 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
112436         * modules/regex (Depends-on): Add malloc, since the code
112437         assumes that !malloc(0) means failure.
112439 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
112441         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
112443         alloca modernization/simplification for regex.
112444         * lib/regex.c: Remove portability cruft for alloca.  This no longer
112445         needs to be at the start of the file, and can be moved into
112446         regex_internal.h and simplified.
112447         * lib/regex_internal.h: Include <alloca.h>.
112448         (__libc_use_alloca) [!defined _LIBC]: New macro.
112449         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
112450         now works outside glibc.
112452 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
112454         * config/srclist.txt: Add glibc bugs 1241, 1245.
112456 2005-08-25  Jim Meyering  <jim@meyering.net>
112458         * lib/open-safer.c: Include <config.h>.
112459         Otherwise, we'd lose LARGEFILE support in any file using
112460         e.g. "fcntl--.h"
112462 2005-08-25  Bruno Haible  <bruno@clisp.org>
112464         * m4/minmax.m4: Require autoconf 2.52.
112465         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
112466         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
112467         alternatives of translit over the alphabet.
112468         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
112470 2005-08-24  Simon Josefsson  <jas@extundo.com>
112472         * tests/test-getpass.c: New file.
112474 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
112476         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
112477         for GNU regex features.
112479 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
112481         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
112482         * lib/regex.h (regerror): Likewise.
112484         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
112485         requires this.  (The code never needed it.)
112487         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
112488         All uses of recently-renamed identifiers changed to use the new,
112489         POSIX-compliant names.  The code will build and run just fine
112490         without these changes, but it's better to eat our own dog food
112491         and use the standard-conforming names.
112493         * lib/regex.h: Fix a multitude of POSIX name space violations.
112494         These changes have an effect only for programs that define
112495         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
112496         do not change anything for programs compiled in the normal way.
112497         Also, there is no effect on the ABI.
112499         (_REGEX_SOURCE): New macro.
112500         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
112501         defined and _GNU_SOURCE is not; this fixes a name space violation.
112503         Rename the following macros to obey POSIX requirements.
112504         The old names are still visible as macros if _REGEX_SOURCE is defined.
112505         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
112506         RE_BACKSLASH_ESCAPE_IN_LISTS.
112507         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
112508         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
112509         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
112510         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
112511         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
112512         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
112513         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
112514         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
112515         (REG_INTERVALS): renamed from RE_INTERVALS.
112516         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
112517         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
112518         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
112519         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
112520         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
112521         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
112522         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
112523         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
112524         RE_UNMATCHED_RIGHT_PAREN_ORD.
112525         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
112526         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
112527         (REG_DEBUG): renamed from RE_DEBUG.
112528         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
112529         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
112530         unusual, since we can't clash with the POSIX REG_ICASE.
112531         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
112532         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
112533         (REG_NO_SUB): renamed from RE_NO_SUB.
112534         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
112535         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
112536         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
112537         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
112538         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
112539         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
112540         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
112541         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
112542         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
112543         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
112544         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
112545         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
112546         RE_SYNTAX_POSIX_MINIMAL_BASIC.
112547         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
112548         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
112549         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
112550         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
112551         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
112552         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
112553         (REG_FIXED): Renamed from REGS_FIXED.
112554         (REG_NREGS): Renamed from RE_NREGS.
112556         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
112557         of other REG_* macros, since POSIX says the user is allowed to
112558         #undef these macros selectively.
112560         (reg_errcode_t): Update comment stating what other tables need
112561         to be consistent.
112563         Rename the following enum values to obey POSIX requirements.
112564         The old names are still visible as macros.
112565         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
112566         is not defined, since GNU is supposed to be a superset of POSIX as
112567         much as possible, and since we want reg_errcode_t to be a signed
112568         type for implementation consistency.
112569         (_REG_NOERROR): Renamed from REG_NOERROR.
112570         (_REG_NOMATCH): Renamed from REG_NOMATCH.
112571         (_REG_BADPAT): Renamed from REG_BADPAT.
112572         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
112573         (_REG_ECTYPE): Renamed from REG_ECTYPE.
112574         (_REG_EESCAPE): Renamed from REG_EESCAPE.
112575         (_REG_ESUBREG): Renamed from REG_ESUBREG.
112576         (_REG_EBRACK): Renamed from REG_EBRACK.
112577         (_REG_EPAREN): Renamed from REG_EPAREN.
112578         (_REG_EBRACE): Renamed from REG_EBRACE.
112579         (_REG_BADBR): Renamed from REG_BADBR.
112580         (_REG_ERANGE): Renamed from REG_ERANGE.
112581         (_REG_ESPACE): Renamed from REG_ESPACE.
112582         (_REG_BADRPT): Renamed from REG_BADRPT.
112583         (_REG_EEND): Renamed from REG_EEND.
112584         (_REG_ESIZE): Renamed from REG_ESIZE.
112585         (_REG_ERPAREN): Renamed from REG_ERPAREN.
112586         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
112587         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
112588         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
112589         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
112591         (_REG_RE_NAME, _REG_RM_NAME): New macros.
112592         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
112593         changed.  But support the old name if the new one is not defined
112594         and if _REGEX_SOURCE.
112596         Change the following member names in struct re_pattern_buffer.
112597         The old names are still supported if !_REGEX_SOURCE.
112598         The new names are always supported, regardless of _REGEX_SOURCE.
112599         (re_buffer): Renamed from buffer.
112600         (re_allocated): Renamed from allocated.
112601         (re_used): Renamed from used.
112602         (re_syntax): Renamed from syntax.
112603         (re_fastmap): Renamed from fastmap.
112604         (re_translate): Renamed from translate.
112605         (re_can_be_null): Renamed from can_be_null.
112606         (re_regs_allocated): Renamed from regs_allocated.
112607         (re_fastmap_accurate): Renamed from fastmap_accurate.
112608         (re_no_sub): Renamed from no_sub.
112609         (re_not_bol): Renamed from not_bol.
112610         (re_not_eol): Renamed from not_eol.
112611         (re_newline_anchor): Renamed from newline_anchor.
112613         Change the following member names in struct re_registers.
112614         The old names are still supported if !_REGEX_SOURCE.
112615         The new names are always supported, regardless of _REGEX_SOURCE.
112616         (rm_num_regs): Renamed from num_regs.
112617         (rm_start): Renamed from start.
112618         (rm_end): Renamed from end.
112620         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
112621         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
112622         Prepend __ to parameter names.
112624         Undo yesterday's changes.
112626 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
112628         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
112629         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
112630         lib/regex.c.
112632 2005-08-24  Jim Meyering  <jim@meyering.net>
112634         Sync from coreutils.
112635         * m4/fcntl-safer.m4: New file.
112637         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
112638         and object files for this module.
112640 2005-08-24  Jim Meyering  <jim@meyering.net>
112642         Sync from coreutils.
112643         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
112645 2005-08-24  Jim Meyering  <jim@meyering.net>
112647         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
112648         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
112650 2005-08-24  Jim Meyering  <jim@meyering.net>
112652         * modules/fcntl-safer: New module.
112653         * modules/fts (Depends-on): Add fcntl-safer.
112654         * MODULES.html.sh (File descriptor based Input/Output):
112655         Add fcntl-safer.
112657 2005-08-24  Bruno Haible  <bruno@clisp.org>
112659         Support for unit test modules.
112660         * modules/README: Mention tests modules.
112661         * modules/TEMPLATE-TESTS: New file.
112662         * gnulib-tool: New options --extract-tests-module, --with-tests and
112663         --tests-base (unused for the moment).
112664         (testsbase, inctests): New variables.
112665         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
112666         (func_verify_module): Exclude TEMPLATE-TESTS.
112667         (func_verify_nontests_module, func_verify_tests_module): New functions.
112668         (func_get_dependencies): Add implicit dependency for tests modules.
112669         (func_get_tests_module): New function.
112670         (func_modules_transitive_closure): When --with-tests was specified,
112671         include the unit tests as well, unless explicitly avoided.
112672         (func_emit_lib_Makefile_am): Ignore the tests modules here.
112673         (func_emit_tests_Makefile_am): New function.
112674         (func_create_testdir): When --with-tests was specified, emit a
112675         tests/ directory.
112676         * MODULES.html.sh (Future developments): Update.
112678 2005-08-24  Bruno Haible  <bruno@clisp.org>
112680         * modules/tls-tests: New file.
112681         * tests/test-tls.c: New file, from GNU gettext.
112683 2005-08-24  Bruno Haible  <bruno@clisp.org>
112685         * modules/lock-tests: New file.
112686         * tests/test-lock.c: New file, from GNU gettext.
112688 2005-08-24  Bruno Haible  <bruno@clisp.org>
112690         * lib/lock.h: Add multiple inclusion guard.
112691         * lib/tls.h: Add multiple inclusion guard.
112693 2005-08-24  Bruno Haible  <bruno@clisp.org>
112695         * gnulib-tool: Add support for the --aux-dir option to
112696         --create-testdir, --create-megatestdir, --test, --megatest.
112697         (func_create_testdir, func_create_megatestdir): Optionally emit a
112698         AC_CONFIG_AUX_DIR directive.
112699         (create-testdir, create-megatestdir, test, megatest): Provide a
112700         default value for $auxdir.
112702 2005-08-24  Bruno Haible  <bruno@clisp.org>
112704         * gnulib-tool (import): Use compound statement instead of subshell
112705         where possible.
112707 2005-08-24  Bruno Haible  <bruno@clisp.org>
112709         * gnulib-tool (import): Change --aux-dir default to "build-aux".
112711 2005-08-24  Bruno Haible  <bruno@clisp.org>
112713         * gnulib-tool (func_version): Update.
112715 2005-08-24  Bruno Haible  <bruno@clisp.org>
112717         * gnulib-tool (func_import, func_create_testdir,
112718         func_create_megatestdir): Quote all autoconf macro arguments.
112720 2005-08-24  Bruno Haible  <bruno@clisp.org>
112722         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
112723         option --force, because --force causes the aclocal.m4 of each
112724         subdirectory to be newer than the corresponding config.h.in.
112726 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
112728         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
112729         All contents moved to gl_REGEX.
112730         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
112731         assume that it does.
112733 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
112735         * lib/regex.h (REG_NOSYS)
112736         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
112737         Define, since POSIX requires it as of 2001.
112738         (_REG_ENOSYS)
112739         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
112740         New private symbol, used to keep the enum signed in all cases.
112741         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
112742         Youngman in
112743         <http://lists.gnu.org/r/bug-gnulib/2005-07/msg00132.html>.
112745         * lib/regex_internal.c (re_string_skip_chars, register_state):
112746         (calc_state_hash):
112747         Remove forward decls; no longer needed now that we use prototypes.
112748         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
112749         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
112750         (clean_state_log_if_needed): Likewise.
112752 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
112754         * config/srclist.txt: Add glibc bugs 1231-1233.
112756 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
112758         Fix problems reported by Sam Steingold in
112759         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00007.html>.
112760         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
112761         assumed that reg_errcode_t is a signed type, which is not
112762         necessarily true if _XOPEN_SOURCE is not defined.
112763         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
112764         since some compilers warn about it otherwise.
112766 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
112768         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
112769         (init_word_char, create_initial_state, duplicate_node_closure):
112770         (fetch_token, peek_token_bracket, build_range_exp):
112771         (build_collating_symbol): Remove forward decls; no longer needed
112772         now that we use prototypes.
112774         * lib/regcomp.c:
112775         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
112776         (re_compile_fastmap_iter, regcomp, regerror, regfree):
112777         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
112778         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
112779         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
112780         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
112781         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
112782         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
112783         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
112784         (build_range_exp, build_collating_symbol, parse_bracket_exp):
112785         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
112786         (build_charclass, build_charclass_op, fetch_number, create_tree):
112787         (create_token_tree, mark_opt_subexp, duplicate_tree):
112788         Use prototypes rather than old-style definitions.
112790         * lib/regex_internal.c:
112791         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
112792         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
112793         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
112794         (re_string_reconstruct, re_string_peek_byte_case):
112795         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
112796         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
112797         (re_node_set_init_copy, re_node_set_add_intersect):
112798         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
112799         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
112800         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
112801         (re_acquire_state, re_acquire_state_context, register_state):
112802         (create_ci_newstate, create_cd_newstate, free_state):
112803         Likewise.
112804         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
112805         re_search_2):
112806         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
112807         (re_search_internal, prune_impossible_nodes):
112808         (acquire_init_state_context, check_matching, static):
112809         (check_halt_node_context, check_halt_state_context, proceed_next_node):
112810         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
112811         (update_regs, sift_states_backward, build_sifted_states):
112812         (clean_state_log_if_needed, merge_state_array):
112813         (update_cur_sifted_state, add_epsilon_src_nodes):
112814         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
112815         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
112816         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
112817         (find_recover_state, check_subexp_matching_top, transit_state_mb):
112818         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
112819         (check_arrival, check_arrival_add_next_nodes):
112820         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
112821         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
112822         (check_node_accept_bytes, check_node_accept, extend_buffers):
112823         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
112824         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
112825         (sift_ctx_init):
112826         Likewise.
112828         * lib/regex_internal.h:
112829         (re_string_allocate, re_string_construct, re_string_reconstruct):
112830         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
112831         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
112832         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
112833         (re_string_context_at, re_string_peek_byte_case):
112834         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
112835         is defined, since we now use prototypes always.
112837         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
112838         C89 or better.  All uses removed.
112840 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
112842         * config/srclist.txt: Add glibc bugs 1220-1227.
112844 2005-08-20  Jim Meyering  <jim@meyering.net>
112846         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
112847         of unused local, dfa.
112849 2005-08-20  Bruno Haible  <bruno@clisp.org>
112851         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
112853 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
112855         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
112856         (re_node_set_insert_last, re_dfa_add_node):
112857         Rename local variables to avoid GCC shadowing warnings.
112859 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
112861         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
112862         [defined lint]: Suppress bogus uninitialized-variable warnings.
112864         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
112865         and let the caller return REG_ESPACE if out of space.  This
112866         removes an uninitialied-variable warning with GCC 4.0.1, and also
112867         avoids taking the address of a local variable.  All callers
112868         changed.
112870 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
112872         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
112873         $LIBCSRC/posix/regexec.c.
112874         Add glibc bug 1217 for regcomp.c.
112876 2005-08-19  Jim Meyering  <jim@meyering.net>
112878         * lib/regexec.c (proceed_next_node): Redo local variables to
112879         avoid GCC shadowing warnings.
112881 2005-08-18  Bruno Haible  <bruno@clisp.org>
112883         * lib/strstr.c (strstr): Fix return value in multibyte case.
112884         * lib/strcasestr.c (strcasestr): Likewise.
112886 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
112888         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
112890 2005-08-17  Jim Meyering  <jim@meyering.net>
112892         Make the %s format (seconds since the epoch) work for a negative
112893         number and when used with a zero-padded field width, e.g. %015s.
112895         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
112896         label so that it precedes the code to set `digits'.  Otherwise,
112897         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
112898         print `00-22'.  Now, it prints `-0022', as it should.
112900 2005-08-17  Bruno Haible  <bruno@clisp.org>
112902         * modules/strstr (Files): Add m4/mbrtowc.m4.
112903         (Depends-on): Add mbuiter.
112905 2005-08-17  Bruno Haible  <bruno@clisp.org>
112907         * modules/strcasestr: New file.
112908         * MODULES.html.sh (String handling, based on ANSI C 89): Add
112909         strcasestr.
112911 2005-08-17  Bruno Haible  <bruno@clisp.org>
112913         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
112915 2005-08-17  Bruno Haible  <bruno@clisp.org>
112917         * modules/mbuiter: New file.
112918         * MODULES.html.sh (Extended multibyte and wide character utilities):
112919         Add mbuiter.
112921 2005-08-17  Bruno Haible  <bruno@clisp.org>
112923         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
112924         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
112926 2005-08-17  Bruno Haible  <bruno@clisp.org>
112928         * m4/strcasestr.m4: New file.
112930 2005-08-17  Bruno Haible  <bruno@clisp.org>
112932         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
112933         * lib/strstr.c: Completely rewritten, with multibyte locale support.
112935 2005-08-17  Bruno Haible  <bruno@clisp.org>
112937         * lib/strcasestr.h: New file.
112938         * lib/strcasestr.c: New file.
112940 2005-08-17  Bruno Haible  <bruno@clisp.org>
112942         * lib/strcasecmp.c: Use mbuiter.h.
112944 2005-08-17  Bruno Haible  <bruno@clisp.org>
112946         * lib/mbuiter.h: New file.
112948 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
112950         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
112951         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
112952         and gl_GETOPT are both invoked via different paths (as happens
112953         with GNU tar CVS because it uses both argp and getopt), the former
112954         wins.
112956 2005-08-16  Bruno Haible  <bruno@clisp.org>
112958         * modules/tls: New file.
112959         * MODULES.html.sh (Multithreading): Add tls.
112961 2005-08-16  Bruno Haible  <bruno@clisp.org>
112963         * modules/strnlen1: New file.
112964         * MODULES.html.sh (String handling): Add strnlen1.
112966 2005-08-16  Bruno Haible  <bruno@clisp.org>
112968         * modules/strcase (Files): Add m4/mbrtowc.m4.
112969         (Depends-on): Add strnlen1, mbchar.
112971 2005-08-16  Bruno Haible  <bruno@clisp.org>
112973         * modules/mbiter: New file.
112974         * MODULES.html.sh (Extended multibyte and wide character utilities):
112975         Add mbiter.
112977 2005-08-16  Bruno Haible  <bruno@clisp.org>
112979         * modules/mbfile: New file.
112980         * MODULES.html.sh (Extended multibyte and wide character utilities):
112981         Add mbfile.
112983 2005-08-16  Bruno Haible  <bruno@clisp.org>
112985         * modules/mbchar: New file.
112986         * MODULES.html.sh (Extended multibyte and wide character utilities):
112987         New section.
112989 2005-08-16  Bruno Haible  <bruno@clisp.org>
112991         * m4/tls.m4: New file, from GNU gettext.
112993 2005-08-16  Bruno Haible  <bruno@clisp.org>
112995         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
112996         always.
112997         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
112999 2005-08-16  Bruno Haible  <bruno@clisp.org>
113001         * m4/mbiter.m4: New file.
113003 2005-08-16  Bruno Haible  <bruno@clisp.org>
113005         * m4/mbfile.m4: New file.
113007 2005-08-16  Bruno Haible  <bruno@clisp.org>
113009         * m4/mbchar.m4: New file.
113011 2005-08-16  Bruno Haible  <bruno@clisp.org>
113013         * lib/tls.h: New file, from GNU gettext.
113014         * lib/tls.c: New file, from GNU gettext.
113016 2005-08-16  Bruno Haible  <bruno@clisp.org>
113018         * lib/strnlen1.h: New file.
113019         * lib/strnlen1.c: New file.
113021 2005-08-16  Bruno Haible  <bruno@clisp.org>
113023         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
113024         (mbi_init): Update.
113025         (mbi_avail, mbi_advance): Let the iteration end before the terminating
113026         NUL byte, not after it.
113028 2005-08-16  Bruno Haible  <bruno@clisp.org>
113030         * lib/strcase.h (strcasecmp): Add note in comments.
113031         * lib/strncasecmp.c: Use code from strcasecmp.c.
113032         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
113033         (strcasecmp): Work correctly in multibyte locales.
113035 2005-08-16  Bruno Haible  <bruno@clisp.org>
113037         * lib/mbiter.h: New file.
113039 2005-08-16  Bruno Haible  <bruno@clisp.org>
113041         * lib/mbfile.h: New file.
113043 2005-08-16  Bruno Haible  <bruno@clisp.org>
113045         * lib/mbchar.h: New file.
113046         * lib/mbchar.c: New file.
113048 2005-08-16  Bruno Haible  <bruno@clisp.org>
113050         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
113051         the valid ones. Makes the comparison operations transitive:
113052         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
113053         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
113055 2005-08-15  Simon Josefsson  <jas@extundo.com>
113057         * modules/ssize_t (License): Change to 'unlimited'.
113059         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
113061 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
113063         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
113064         Add comments for each pending glibc patch.
113066 2005-08-15  Bruno Haible  <bruno@clisp.org>
113068         * lib/regex.h (__restrict_arr): Don't define to __restrict if
113069         __cplusplus is defined.
113071 2005-08-14  Jim Meyering  <jim@meyering.net>
113073         Sync from coreutils.
113075         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
113076         Use the hash-table-based cycle-detection code not just when
113077         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
113078         Reported by James Youngman in
113079         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00011.html>.
113080         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
113081         FTS_TIGHT_CYCLE_CHECK.
113082         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
113083         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
113084         once again.
113085         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
113086         * lib/fts.c (fd_safer): Remove decl.
113087         Include fcntl--.h rather than unistd-safer.h
113088         (fts_safe_changedir): Don't call fd_safer; no longer needed
113089         now that we include fcntl--.h.
113091 2005-08-12  Simon Josefsson  <jas@extundo.com>
113093         * modules/getndelim2: Use ssize_t module.
113094         * modules/getnline: Likewise.
113095         * modules/safe-read: Likewise.
113096         * modules/xreadlink: Likewise.
113098         * modules/ssize_t: New file.
113100 2005-08-12  Simon Josefsson  <jas@extundo.com>
113102         * m4/readline.m4: Look for termcap, curses or ncurses if required.
113104 2005-08-12  Simon Josefsson  <jas@extundo.com>
113106         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
113107         ssize_t.
113109 2005-08-12  Simon Josefsson  <jas@extundo.com>
113111         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
113112         readline, getdelim and check_version.
113113         (Support for systems lacking ISO C 99: Sizes of integer types):
113114         Add size_max.
113116 2005-08-12  Bruno Haible  <bruno@clisp.org>
113118         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
113120 2005-08-11  Simon Josefsson  <jas@extundo.com>
113122         * modules/readline: New file.
113124         * modules/strnlen (Files): Add strnlen.h.
113126 2005-08-11  Simon Josefsson  <jas@extundo.com>
113128         * m4/readline.m4: New file.
113130 2005-08-11  Simon Josefsson  <jas@extundo.com>
113132         * lib/readline.h, readline.c: New file.
113134 2005-08-11  Simon Josefsson  <jas@extundo.com>
113136         * doc/gnulib.texi (Initial import, Finishing touches): Mention
113137         gl_AVOID.
113139 2005-08-11  Bruno Haible  <bruno@clisp.org>
113141         * lib/strnlen.h (strnlen): Change parameter name to match comment.
113143 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
113145         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
113147 2005-08-10  Simon Josefsson  <jas@extundo.com>
113149         * tests/test-iconvme.c: New file.
113151 2005-08-10  Simon Josefsson  <jas@extundo.com>
113153         * m4/strnlen.m4: New file.
113155         * m4/strndup.m4: Don't check for strnlen declaration, done in
113156         strnlen.m4.
113158 2005-08-10  Simon Josefsson  <jas@extundo.com>
113160         * lib/strndup.c: Use strnlen.h.
113162         * lib/strnlen.h: New file.
113164 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
113166         * README: Typos.
113168 2005-08-02  Simon Josefsson  <jas@extundo.com>
113170         * modules/readline: New file.
113172 2005-08-02  Simon Josefsson  <jas@extundo.com>
113174         * modules/getdelim: New file.
113176         * modules/getline: Rewrite, don't use getndelim2.
113178 2005-08-02  Simon Josefsson  <jas@extundo.com>
113180         * m4/getline.m4: Separate out getdelim stuff into separate module.
113182         * m4/getdelim.m4: New file.
113184 2005-08-02  Simon Josefsson  <jas@extundo.com>
113186         * lib/getline.h, getline.c: Rewrite.
113188         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
113190 2005-07-31  Bruno Haible  <bruno@clisp.org>
113192         * lib/lock.h (gl_lock_initializer): New macro.
113193         (gl_lock_define_initialized): Use it.
113194         (gl_rwlock_initializer): New macro.
113195         (gl_rwlock_define_initialized): Use it.
113196         (gl_recursive_lock_initializer): New macro.
113197         (gl_recursive_lock_define_initialized): Use it.
113199 2005-07-30  Karl Berry  <karl@gnu.org>
113201         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
113202         Report from Ben Pfaff, regarding getopt.
113204 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
113206         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
113207         normal way.
113208         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
113209         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
113210         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
113211         (gl_GETOPT): Use the new macros.  Most of the implementation
113212         is moved to the new macros.  This is for programs like Emacs
113213         that don't want all the functionality of gl_GETOPT.
113215 2005-07-26  Bruno Haible  <bruno@clisp.org>
113217         * m4/lock.m4: Update from GNU gettext.
113219 2005-07-26  Bruno Haible  <bruno@clisp.org>
113221         * lib/lock.h: Update from GNU gettext.
113222         * lib/lock.c: Update from GNU gettext.
113224 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
113226         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
113227         obsolescent AC_TRY_RUN.  Include the default includes files, for
113228         'exit'.
113230 2005-07-24  Bruno Haible  <bruno@clisp.org>
113232         * modules/visibility: New file.
113233         * MODULES.html.sh (Misc): Add visibility.
113235 2005-07-24  Bruno Haible  <bruno@clisp.org>
113237         * m4/visibility.m4: New file.
113239 2005-07-24  Bruno Haible  <bruno@clisp.org>
113241         * doc/visibility.texi: New file.
113243 2005-07-22  Bruno Haible  <bruno@clisp.org>
113245         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
113246         $(ALLOCA_H), redundant through BUILT_SOURCES.
113247         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
113248         redundant through BUILT_SOURCES.
113249         * modules/byteswap (Makefile.am): Remove explicit dependency on
113250         $(BYTESWAP_H), redundant through BUILT_SOURCES.
113251         * modules/fnmatch (Makefile.am): Remove explicit dependency on
113252         $(FNMATCH_H), redundant through BUILT_SOURCES.
113253         * modules/getopt (Makefile.am): Remove explicit dependency on
113254         $(GETOPT_H), redundant through BUILT_SOURCES.
113255         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
113256         redundant through BUILT_SOURCES.
113257         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
113258         redundant through BUILT_SOURCES.
113259         * modules/stdbool (Makefile.am): Remove explicit dependency on
113260         $(STDBOOL_H), redundant through BUILT_SOURCES.
113261         * modules/stdint (Makefile.am): Remove explicit dependency on
113262         $(STDINT_H), redundant through BUILT_SOURCES.
113263         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
113264         Remove explicit dependency on $(SYSEXITS_H).
113265         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
113267 2005-07-18  Simon Josefsson  <jas@extundo.com>
113269         * lib/check-version.c (check_version): Accept identical versions too.
113271 2005-07-18  Bruno Haible  <bruno@clisp.org>
113273         * modules/lock: New file.
113274         * MODULES.html.sh (Multithreading): New section.
113276 2005-07-18  Bruno Haible  <bruno@clisp.org>
113278         * m4/lock.m4: New file, from GNU gettext.
113280 2005-07-18  Bruno Haible  <bruno@clisp.org>
113282         * lib/lock.h: New file, from GNU gettext.
113283         * lib/lock.c: New file, from GNU gettext.
113285 2005-07-18  Bruno Haible  <bruno@clisp.org>
113287         * lib/lock.h (gl_once_t): New type.
113288         (gl_once_define, gl_once): New macros.
113289         * lib/lock.c (fresh_once): New variable.
113290         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
113291         functions.
113293 2005-07-16  Simon Josefsson  <jas@extundo.com>
113295         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
113296         workaround, suggested by Bruno.
113298 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
113300         * modules/xalloc (Depends-on): Add xalloc-die.
113301         * modules/xvasprintf (Depends-on): Add xalloc-die.
113303 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
113305         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
113306         with a minor change.
113308 2005-07-15  Bruno Haible  <bruno@clisp.org>
113310         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
113311         When using lib/poll.c, define poll as rpl_poll.
113313 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
113315         * modules/argp (Depends-on): Remove unlocked-io.
113317 2005-07-14  Derek Price  <derek@ximbiot.com>
113319         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
113320         for glob symlink bug.
113322 2005-07-14  Bruno Haible  <bruno@clisp.org>
113324         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
113325         Instead, test for *_unlocked function declarations directly.
113327 2005-07-11  Simon Josefsson  <jas@extundo.com>
113329         * modules/size_max: New file.
113331         * modules/xsize: Depend on size_max module for size_max.m4.
113333 2005-07-11  Simon Josefsson  <jas@extundo.com>
113335         * lib/size_max.h: New file.
113337 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
113339         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
113340         copyright symbol and the year.
113341         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
113342         (version_etc_va): Use parameterized copyright notice.
113343         Reword to conform to the current GNU coding standards.
113345 2005-07-11  Karl Berry  <karl@gnu.org>
113347         * doc/gnulib.texi (Quoting): new node.
113348         (Initial import): more info, from Patrice.
113350 2005-07-11  Bruno Haible  <bruno@clisp.org>
113352         * gnulib-tool (func_usage): Document option --avoid.
113353         (Command line options): Handle --avoid.
113354         (func_acceptable): New function.
113355         (func_modules_transitive_closure): Use it.
113357 2005-07-11  Bruno Haible  <bruno@clisp.org>
113359         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
113360         Reported by Jim Meyering.
113362 2005-07-10  Bruno Haible  <bruno@clisp.org>
113364         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
113365         Needed when size_t is smaller than 'unsigned int'.
113366         Reported by Paul Eggert.
113368 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
113370         * modules/argp (Depends-on): Add unlocked-io
113372 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
113374         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
113375         block of defines.
113377 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
113379         * config/srclist.txt: Comment out regcomp.c, since we have a porting
113380         fix now.
113382 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
113383         and Paul Eggert  <eggert@cs.ucla.edu>
113385         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
113386         in wint_t, not wchar_t.  Remove now-unnecessary cast.
113388 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
113390         * modules/regex (Files): Add lib/regex_internal.c,
113391         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
113392         (Depends-on): Add extensions.
113393         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
113395 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
113397         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
113398         pathconf.
113399         * m4/same.m4 (gl_SAME): Likewise.
113400         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
113402         * m4/regex.m4: Adjust to new libc regex implementation.
113403         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
113404         all the .c and .h parts of (the new) regex.
113405         Quote the m4 stuff better.
113406         Check for RE_ICASE bug of old gnulib.
113407         Check for REG_STARTEND of recent libc.
113408         Rename local variables from jm_* to gl_*.
113409         Quote operand of "test -f".
113410         Say "recent enough" version of libc, not "version 2".
113411         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
113412         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
113413         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
113414         Remove check for btowc, isascii.
113415         Require AM_LANGINFO_CODESET.
113417 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
113419         * lib/regex.c, regex.h: Sync from libc.
113420         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
113421         * lib/regexec.c:
113422         New files, synced from libc, except that regex_internal.h
113423         currently has a small porting fix.
113425 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
113427         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
113428         regex_internal.c, regexec.c.
113429         Add regex_internal.h too, but as a comment, since the libc version
113430         is currently broken in gnulib mode.
113432 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
113434         Support programs like Emacs that use gnulib but not gettext.
113435         * MODULES.html.sh (Internationalization functions): Add gettext-h.
113436         * modules/gettext-h: New file.
113437         * modules/gettext (Files): Remove lib/gettext.h.
113438         (Depends-on): Add gettext-h.
113439         (Makefile.am): Remove lib_SOURCES.
113440         * modules/argmatch, modules/c-stack, modules/closeout:
113441         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
113442         * modules/execute, modules/file-type, modules/getaddrinfo:
113443         * modules/getopt, modules/human, modules/javacomp:
113444         * modules/javaexec, modules/mkdir-p, modules/obstack:
113445         * modules/openat, modules/pagealign_alloc, modules/pipe:
113446         * modules/quotearg, modules/regex, modules/rpmatch:
113447         * modules/unicodeio, modules/userspec, modules/version-etc:
113448         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
113449         * modules/xsetenv:
113450         Depend on gettext-h, not gettext.
113452 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
113454         * gnulib-tool (func_import): Add support for 'public domain' license.
113455         * modules/alloca, modules/atexit, modules/memmove:
113456         Now public domain, not GPL.
113457         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
113458         * modules/realloc, modules/strerror, modules/strtod:
113459         Now LGPL, not GPL.
113461 2005-07-05  Bruno Haible  <bruno@clisp.org>
113463         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
113464         autoconf CVS. Needed for mingw.
113466 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
113468         Remove the dependency of the strftime module on the tzset module.
113469         * modules/strftime (Depends-on): Remove dependency on tzset.
113471 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
113473         Remove the dependency of the strftime module on the tzset module.
113474         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
113475         gl_FUNC_TZSET_CLOBBER.
113477 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
113479         Remove the dependency of the strftime module on the tzset module.
113480         * lib/strftime.c (my_strftime)
113481         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
113482         Copy the input structure, to work around some of the bug with
113483         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
113484         Solaris releases, you should also use the tzset module, but we won't
113485         require it as a dependency any more since we don't want LGPLed code
113486         to depend on GPLed code.
113488 2005-07-02  Jim Meyering  <jim@meyering.net>
113490         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
113491         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
113492         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
113493         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
113495 2005-07-02  Jim Meyering  <jim@meyering.net>
113497         * lib/backupfile.c (backup_args): Change a `0' to NULL.
113499 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
113501         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
113502         declares only 'struct timespec;' (!).
113504 2005-07-01  Jim Meyering  <jim@meyering.net>
113506         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
113507         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
113508         * lib/save-cwd.c, tempname.c:
113509         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
113510         and don't include <sys/file.h>).
113512 2005-06-29  Jim Meyering  <jim@meyering.net>
113514         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
113515         type name.  Use the variable name instead.
113516         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
113517         Likewise.
113519 2005-06-28  Simon Josefsson  <jas@extundo.com>
113521         * modules/check-version (Files): Add check-version.m4.
113523 2005-06-28  Simon Josefsson  <jas@extundo.com>
113525         * m4/check-version.m4: New file, suggested by Jim Meyering
113526         <jim@meyering.net>.
113528 2005-06-28  Simon Josefsson  <jas@extundo.com>
113530         * lib/check-version.h, lib/check-version.c: New files.
113532 2005-06-28  Simon Josefsson  <jas@extundo.com>
113534         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
113535         collision with global variable.  Better indentation.  Don't
113536         increment buffer pointer beyond buffer end.  Based on comments
113537         from Paul Eggert <eggert@cs.ucla.edu>.
113539         * lib/base64.h: Indent.
113541 2005-06-28  Simon Josefsson  <jas@extundo.com>
113543         * doc/gnulib.texi (Library version handling): New section.
113545 2005-06-28  Jim Meyering  <jim@meyering.net>
113547         * check-module (find_included_lib_files): Hard-code another
113548         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
113549         but modules/fts-lgpl (correctly) does not list those files.
113551         * modules/canonicalize (Files): Add lib/pathmax.h.
113553 2005-06-25  Simon Josefsson  <jas@extundo.com>
113555         * modules/check-version: New file.
113557 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
113559         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
113560         initializer of struct addrinfo, as an indication that we don't
113561         care how many members the structure has.
113563 2005-06-24  Derek Price  <derek@ximbiot.com>
113564         and Bruno Haible  <bruno@clisp.org>
113566         Remove stat module & update lstat.
113567         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
113568         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
113569         * m4/stat.m4: Remove this file.
113571 2005-06-24  Derek Price  <derek@ximbiot.com>
113572         and Bruno Haible  <bruno@clisp.org>
113574         Remove stat module & update lstat.
113575         * lib/stat.c: Remove this file...
113576         (slash_aware_lstat): ...moving this content and its support...
113577         * lib/lstat.c (rpl_lstat): ...into here.
113578         * lib/lstat.h: New file.
113580 2005-06-24  Derek Price  <derek@ximbiot.com>
113581         and Bruno Haible  <bruno@clisp.org>
113583         Remove stat module & update lstat.
113584         * config/srclist.txt (libc sources): Remove stat.
113586 2005-06-24  Derek Price  <derek@ximbiot.com>
113587         and Bruno Haible  <bruno@clisp.org>
113589         Remove stat module & update lstat.
113590         * MODULES.html.sh (stat): Remove.
113591         * MODULES.html: Regenerated.
113592         * modules/lstat (Description): Correct function name.
113593         (Files): Add "lstat.h".
113594         (Depends-on): Remove stat, add xalloc, stat-macros.
113595         * modules/stat: Remove this file.
113596         (Include): Add "lstat.h", remove <sys/stat.h>.
113598 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
113600         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
113601         (ranged_convert): Don't save conversion in a temporary struct.
113602         This causes a warning with GCC 4.0.0, and anyway in the typical
113603         case it's not worth the extra 100 bytes or so of code.
113604         (ranged_convert, __mktime_internal): When calling a function via a
113605         pointer P, use P () rather than (*P) (), as we now assume C89 or
113606         better.
113608 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
113610         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
113611         "who -r" failed to give output.  Problem reported by Tim Waugh.
113613         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
113614         (xcalloc): Use it to avoid needless tests.
113615         Problem reported by Jim Meyering.
113617 2005-06-20  Derek Price  <derek@ximbiot.com>
113619         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
113620         unnecessary for Autoconfs > 2.59c.
113622 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
113624         * lib/argp.h (__option_is_short): Check upper limit of
113625         __key. Isprint() requires its argument to have the value
113626         of an unsigned char or EOF.
113628 2005-06-16  Jim Meyering  <jim@meyering.net>
113630         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
113631         when either N or S is zero.
113633 2005-06-16  Derek Price  <derek@ximbiot.com>
113635         * m4/bison.m4: Declare YACC & YFLAGS precious.
113637 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
113639         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
113640         multibyte string or pattern, fall back on unibyte matching.
113641         Problem reported by James Youngman.
113643 2005-06-08  Bruno Haible  <bruno@clisp.org>
113645         * modules/csharpcomp: New file.
113646         * MODULES.html.sh (C#): Add csharpcomp.
113648 2005-06-08  Bruno Haible  <bruno@clisp.org>
113650         * m4/csharpcomp.m4: New file, from GNU gettext.
113652 2005-06-08  Bruno Haible  <bruno@clisp.org>
113654         * lib/csharpcomp.h: New file, from GNU gettext.
113655         * lib/csharpcomp.c: New file, from GNU gettext.
113656         * lib/csharpcomp.sh.in: New file, from GNU gettext.
113658 2005-06-08  Bruno Haible  <bruno@clisp.org>
113660         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
113661         warning on mingw.
113663 2005-06-07  Derek Price  <derek@ximbiot.com>
113665         Sync from CVS.
113666         * lib/glob_.h: Indent nested #ifdef.
113668 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
113670         Sync from coreutils.
113671         Use "file name" when talking about file names, instead of "filename"
113672         or "path", as per the GNU coding standards.
113673         * lib/mkdir-p.c: Renamed from makepath.c.
113674         (make_dir_parents): Renamed from make_path.  All callers changed.
113675         * lib/mkdir-p.h: Likewise.  All includers changed.
113676         * lib/filenamecat.c: Renamed from path-concat.c.
113677         (file_name_concat): Renamed from path_concat.  All callers changed.
113678         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
113679         * lib/filenamecat.h: Likewise.  All includers changed.
113680         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
113681         in comments or local variable names.
113682         * lib/basename.c: Likewise.
113683         * lib/canonicalize.c, canonicalize.h: Likewise.
113684         * lib/dirname.c, dirname.h: Likewise.
113685         * lib/euidaccess.c: Likewise.
113686         * lib/exclude.c: Likewise
113687         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
113688         * lib/fsusage.c, fsuage.h: Likewise.
113689         * lib/fts.c, fts_.h: Likewise.
113690         * lib/getcwd.c: Likewise.
113691         * lib/getloadavg.c: Likewise.
113692         * lib/mkstemp.c: Likewise.
113693         * lib/mountlist.c, mountlist.h: Likewise.
113694         * lib/openat.c, openat.h: Likewise.
113695         * lib/readlink-stub.c: Likewise.
113696         * lib/readutmp.c, readutmp.h: Likewise.
113697         * lib/rename.c: Likewise.
113698         * lib/rmdir.c: Likewise.
113699         * lib/same.c: Likewise.
113700         * lib/savedir.c: Likewise.
113701         * lib/stripslash.c: Likewise.
113702         * lib/tempname.c: Likewise.
113703         * lib/xreadlink.c: Likewise.
113704         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
113705         All uses changed.
113706         * lib/exclude.h: Likewise.
113708         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
113709         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
113710         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
113711         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
113712         * lib/pathmax.h: Include <limits.h> unconditionally, since other
113713         files have been getting away with it for years (MORE/BSD 4.3
113714         is extinct now).
113715         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
113716         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
113718         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
113719         Define to 256, not 255, as per modern POSIX.
113721 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
113723         Sync from coreutils.
113724         Use "file name" when talking about file names, instead of "filename"
113725         or "path", as per the GNU coding standards.
113726         * MODULES.html.sh: mkdir-p renamed from makepath.
113727         filenamecat renamed from path-concat.
113728         * modules/filenamecat: Renamed from modules/path-concat.
113729         (Files): filenamecat.h and filenamecat.c renamed from
113730         path-concat.h and path-concat.c.
113731         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
113732         (Include): filenamecat.h, not path-concat.h.
113733         * modules/mkdir-p: Renamed from modules/makepath.
113734         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
113735         makepath.c.
113736         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
113737         (Include): mkdir-p.h, not makepath.h.
113739 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
113741         Sync from coreutils.
113742         * m4/mkdir-p.m4: Renamed from makepath.m4.
113743         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
113744         Rename files from makepath.c to mkdir-p.c, and from
113745         makepath.h to mkdir-p.h.
113746         * m4/filenamecat.m4: Renamed from path-concat.m4.
113747         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
113748         Rename files from path-concat.c to filenamecat.c,
113749         and from path-concat.h to filenamecat.h.
113750         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
113751         "file name" in local variables or comments.
113752         * m4/rename.m4: Likewise.
113754 2005-06-01  Bruno Haible  <bruno@clisp.org>
113756         * modules/csharpexec: New file.
113757         * MODULES.html.sh (C#): New section.
113759 2005-06-01  Bruno Haible  <bruno@clisp.org>
113761         * m4/csharp.m4: New file, from GNU gettext.
113762         * m4/csharpexec.m4: New file, from GNU gettext.
113764 2005-06-01  Bruno Haible  <bruno@clisp.org>
113766         * lib/csharpexec.h: New file, from GNU gettext.
113767         * lib/csharpexec.c: New file, from GNU gettext.
113768         * lib/csharpexec.sh.in: New file, from GNU gettext.
113770 2005-05-31  Derek Price  <derek@ximbiot.com>
113771             Paul Eggert  <eggert@cs.ucla.edu>
113773         Sync from cvs.
113774         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
113776 2005-05-31  Derek Price  <derek@ximbiot.com>
113777             Paul Eggert  <eggert@cs.ucla.edu>
113779         Sync from cvs.
113780         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
113782 2005-05-29  Derek Price  <derek@ximbiot.com>
113784         * config/srclist.txt (glob_.h, glob.c): Add these files.
113786 2005-05-29  Derek Price  <derek@ximbiot.com>
113788         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
113789         * modules/glob: New file.
113790         * modules/getlogin_r: Add link to POSIX spec in description.
113792 2005-05-29  Derek Price  <derek@ximbiot.com>
113793             Paul Eggert  <eggert@cs.ucla.edu>
113795         * m4/glob.m4: New file.
113797 2005-05-29  Derek Price  <derek@ximbiot.com>
113798             Paul Eggert  <eggert@cs.ucla.edu>
113800         * lib/glob_.h, lib/glob.c: New files.
113802 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
113804         * modules/fts (Files): Remove m4/inttypes-pri.m4.
113805         * modules/fts-lgpl (Depends-on): Remove gettext.
113807 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
113809         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
113810         and don't require gt_INTTYPES_PRI.
113812 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
113814         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
113816         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
113817         the configuration hassle isn't worth it.
113818         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
113819         (LONGEST_MODIFIER, PRIuMAX): Remove.
113821 2005-05-27  Bruno Haible  <bruno@clisp.org>
113823         * lib/getlogin_r.h: Remove second include of <stddef.h>.
113825 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
113827         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
113828         _POSIX_PTHREAD_SEMANTICS for Solaris.
113830 2005-05-25  Derek Price  <derek@ximbiot.com>
113832         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
113834 2005-05-25  Derek Price  <derek@ximbiot.com>
113835             Paul Eggert  <eggert@cs.ucla.edu>
113837         * modules/getlogin_r, m4/getlogin_r.m4: New files.
113838         * lib/getlogin_r.c, getlogin_r.h: New files.
113840 2005-05-25  Bruno Haible  <bruno@clisp.org>
113841             Derek Price  <derek@ximbiot.com>
113843         * lib/getlogin_r.h: Simplify API documentation.
113845 2005-05-23  Derek Price  <derek@ximbiot.com>
113847         * modules/minmax (Files): Add m4/minmax.m4.
113848         (configure.ac): Add gl_MINMAX.
113850 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
113852         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
113853         so that unistd-safer.h (GPL'ed code) need not be included.
113855 2005-05-22  Bruno Haible  <bruno@clisp.org>
113857         * m4/minmax.m4: New file.
113858         Based on a patch by Derek Price <derek@ximbiot.com>.
113860 2005-05-22  Bruno Haible  <bruno@clisp.org>
113862         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
113863         (INT64_MIN): Fix definition.
113864         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
113866         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
113867         NEED_SIGNED_INT_TYPES.
113869         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
113870         HAVE_SYSTEM_INTTYPES.
113872 2005-05-22  Bruno Haible  <bruno@clisp.org>
113874         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
113875         Also include <sys/param.h> if it defines MIN, MAX.
113876         Based on a patch by Derek Price <derek@ximbiot.com>.
113878 2005-05-21  Jim Meyering  <jim@meyering.net>
113880         * modules/fts (Files): Add m4/inttypes-pri.m4.
113881         (Depends-on): Add lstat and remove gettext.  Alphabetize.
113883 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
113885         New fts module.
113886         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
113887         (setup_dir, free_dir): New functions.
113888         (enter_dir, leave_dir): Define trivial
113889         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
113890         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
113891         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
113892         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
113893         Move to fts-cycle.c.
113894         (fts_open): Use setup_dir.
113895         (fts_close): Use free_dir.
113896         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
113897         This adds a label and some gotos, but the alternatives were messier.
113898         Check for memory allocation failure when entering a dir.
113899         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
113900         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
113901         (FTS): New member fts_cycle, that is a union that contains the
113902         old active_dir_ht and cycle_state.  All uses changed to mention
113903         fts_cycle.ht and fts_cycle.state.
113904         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
113905         fts.c, with the following changes:
113906         (setup_dir, free_dir): New functions.
113907         (enter_dir): Now returns bool.  Return true if successful, false
113908         if memory exhausted.  All callers changed.
113909         Do not bother partly cleaning up on
113910         memory allocation failure; that is free_dir's job.
113911         However, free ad if hash_insert fails, to avoid memory leak.
113912         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
113913         fts->fts_options to see which union member to use.
113915 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
113917         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
113918         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
113920 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
113922         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
113924 2005-05-20  Jim Meyering  <jim@meyering.net>
113926         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
113927         Now a macro, to pacify GCC.
113929 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
113931         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
113932         of -1.
113934 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
113936         * lib/chown.c (rpl_chown): Return -1 on failure.
113938 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
113940         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
113941         Don't check for stddef.h.
113942         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
113943         don't use its results.
113944         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
113945         since we include them unconditionally.  Don't require
113946         AM_STDBOOL_H, since stdbool is a prerequisite.
113947         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
113948         since we assume C89 or better.
113949         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
113950         as we don't use their results.
113951         Don't check for fchdir, memmove, memset, strrchr, as we use
113952         them unconditionally.
113953         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
113954         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
113956 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
113958         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
113959         Include <stddef.h> unconditionally, since we assume C89 now.
113960         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
113961         * lib/fts.c: Include fts_.h first, to check interface.
113962         Do not include intprops.h; no longer needed.
113963         Include cycle-check.h and hash.h, since fts_.h no longer does.
113964         Remove unnecessary casts of closedir to void.
113965         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
113966         decide whether to decrement nlinks.
113967         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
113968         (FTS): Use struct hash_table * instead of Hash_table, so that
113969         we no longer need to include hash.h here.
113971 2005-05-18  Jim Meyering  <jim@meyering.net>
113973         * modules/dirfd (License): Change to LGPL.  Most of the code
113974         is already in the public domain.
113976 2005-05-18  Jim Meyering  <jim@meyering.net>
113978         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
113979         Reported by Yoann Vandoorselaere.
113981 2005-05-17  Jim Meyering  <jim@meyering.net>
113983         * m4/fts.m4: New file, from coreutils.
113985 2005-05-17  Jim Meyering  <jim@meyering.net>
113987         * lib/fts.c, lib/fts_.h: New files, from coreutils.
113989 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
113991         Sync from coreutils.
113992         * m4/unlinkdir.m4: New file.
113994 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
113996         Sync from coreutils.
113997         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
113998         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
113999         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
114000         White space changes only.
114001         * lib/makepath.c (make_path): Port to hosts where leading "//" is
114002         special.
114003         * lib/yesno.c: Include getline.h, not ctype.h.
114004         (yesno): Don't remove leading white space; POSIX doesn't allow it.
114005         Use getline to remove arbitrary restriction on response length.
114007 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
114009         * config/srclist-update: Spell out "Street" in FSF postal
114010         mail address; this is the style the FSF seems to prefer.
114012         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
114013         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
114014         this updates FSF postal mail address.
114016         Sync from coreutils.
114017         * modules/unlinkdir: New file.
114018         * modules/yesno (Depends-on): Add getline.
114019         * MODULES.html.sh (File system functions): Add unlinkdir.
114021 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
114023         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
114024         lib/strsep.h:
114025         Change the initial comment to refer to GPL, not LGPL.
114026         gnulib-tool will change it to LGPL as needed.
114028         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
114029         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
114030         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
114031         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
114032         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
114033         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
114034         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
114035         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
114036         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
114037         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
114038         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
114039         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
114040         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
114041         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
114042         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
114043         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
114044         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
114045         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
114046         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
114047         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
114048         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
114049         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
114050         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
114051         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
114052         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
114053         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
114054         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
114055         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
114056         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
114057         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
114058         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
114059         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
114060         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
114061         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
114062         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
114063         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
114064         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
114065         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
114066         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
114067         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
114068         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
114069         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
114070         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
114071         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
114072         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
114073         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
114074         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
114075         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
114076         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
114077         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
114078         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
114079         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
114080         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
114081         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
114082         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
114083         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
114084         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
114085         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
114086         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
114087         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
114088         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
114089         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
114090         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
114091         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
114092         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
114093         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
114094         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
114095         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
114096         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
114097         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
114098         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
114099         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
114100         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
114101         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
114102         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
114103         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
114104         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
114105         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
114106         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
114107         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
114108         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
114109         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
114110         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
114111         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
114112         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
114113         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
114114         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
114115         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
114116         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
114117         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
114118         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
114119         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
114120         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
114121         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
114122         lib/yesno.c, lib/yesno.h:
114123         Update FSF postal mail address.
114125 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
114127         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
114128         tests/test-memmem.c, tests/test-stpncpy.c:
114129         Update FSF postal mail address.
114131 2005-05-13  Bruno Haible  <bruno@clisp.org>
114133         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
114134         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
114135         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
114136         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
114137         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
114138         Add support for 64-bit integers in the MSVC compiler.
114140 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
114142         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
114144 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
114146         * gnulib-tool (func_import): Sort and uniquify recommended includes.
114148 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
114150         * doc/getdate.texi (General date syntax): Don't say that date
114151         date --iso-8601=ns generates acceptable dates; it doesn't yet.
114152         Problem reported by Nic Ferrier.
114154 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
114156         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
114157         specified in ai_socktype. Fix invalid ai_protocol
114158         check. ai_protocol is usually set to 0 or depending on
114159         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
114160         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
114161         ai_socktype / ai_protocol in the returned addrinfo structure.
114163 2005-05-10  Simon Josefsson  <jas@extundo.com>
114165         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
114166         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
114168 2005-05-10  Karl Berry  <karl@gnu.org>
114170         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
114171         (from http://www.gnu.org/licenses).
114172         * doc/COPYING.LIB: also rename to COPYING.LESSER.
114173         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
114174         fdl.texi suffices.
114176 2005-05-10  Karl Berry  <karl@gnu.org>
114178         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
114179         (COPYING.DOC): remove.
114181         * config/srclist-update: new FSF address.
114183 2005-05-10  Derek Price  <derek@ximbiot.com>
114185         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
114186         possible.
114188 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
114189             Bruno Haible  <bruno@clisp.org>
114191         * modules/inet_ntop: New file.
114192         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
114193         inet_ntop.
114195 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
114196             Bruno Haible  <bruno@clisp.org>
114198         * m4/inet_ntop.m4: New file.
114200 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
114201             Bruno Haible  <bruno@clisp.org>
114203         * lib/inet_ntop.h: New file.
114204         * lib/inet_ntop.c: New file, from glibc with modifications.
114206 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
114208         * modules/time_r (License): Change to LGPL.
114209         * modules/extensions (License): Change to LGPL.  Actually,
114210         the license is more permissive than that, but currently gnulib-tool
114211         doesn't know how to handle more-permissive licenses.
114213         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
114214         Problem reported by Dave Love.
114216 2005-05-08  Jim Meyering  <jim@meyering.net>
114218         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
114219         blank.
114221 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
114223         * modules/argmatch (Depends-on): Add stdbool.
114224         * modules/backupfile (Depends-on): Likewise.
114225         * modules/chdir-long (Depends-on): Likewise.
114226         * modules/closeout (Depends-on): Likewise.
114227         * modules/cycle-check (Depends-on): Likewise.
114228         * modules/dirname (Depends-on): Likewise.
114229         * modules/fnmatch (Depends-on): Likewise.
114230         * modules/fsusage (Depends-on): Likewise.
114231         * modules/fwriteerror (Depends-on): Likewise.
114232         * modules/getcwd (Depends-on): Likewise.
114233         * modules/getloadavg (Depends-on): Likewise.
114234         * modules/hard-locale (Depends-on): Likewise.
114235         * modules/makepath (Depends-on): Likewise.
114236         * modules/mountlist (Depends-on): Likewise.
114237         * modules/nanosleep (Depends-on): Likewise.
114238         * modules/posixtm (Depends-on): Likewise.
114239         * modules/quotearg (Depends-on): Likewise.
114240         * modules/readtokens (Depends-on): Likewise.
114241         * modules/readtokens0 (Depends-on): Likewise.
114242         * modules/readutmp (Depends-on): Likewise.
114243         * modules/save-cwd (Depends-on): Likewise.
114244         * modules/strftime (Depends-on): Likewise.
114245         * modules/userspec (Depends-on): Likewise.
114246         * modules/utimecmp (Depends-on): Likewise.
114247         * modules/xgetcwd (Depends-on): Likewise.
114248         * modules/xnanosleep (Depends-on): Likewise.
114249         * modules/xstrtod (Depends-on): Likewise.
114250         * modules/yesno (Depends-on): Likewise.
114252 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
114254         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
114255         needless checks.
114257 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
114259         Merge from coreutils.  Among other things,
114260         add bulletproofing for cases where stdin, stdout, or stderr are closed.
114261         * lib/fd-safer.c: New file.
114262         * lib/fcntl-safer.h, open-safer.c: Remove.
114263         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
114264         * lib/dup-safer.c: Include unistd-safer.h first.
114265         Don't include errno.h.
114266         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
114267         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
114268         * lib/file-type.c: Rely on file-type.h change.
114269         * lib/getloadavg.c: Include unistd-safer.h.
114270         (getloadavg): Use safer open.
114271         * lib/getusershell.c: Include "stdio-safer.h".
114272         (getusershell): Use safer fopen.
114273         * lib/long-options.c (long_options): Use NULL rather than 0.
114274         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
114275         'free'.
114276         * lib/modechange.c: Likewise.
114277         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
114278         (MODE_DONE): New constant.
114279         (struct mode_change): Remove 'next' member.
114280         (make_node_op_equals): New function; like the old one of the
114281         same name, except it allocates an array.
114282         (mode_compile, mode_create_from_ref): Use it.
114283         (mode_compile): Allocate result as an array, not a linked list.
114284         Parse octal string ourself, so that we catch mistakes like "+0".
114285         (mode_adjust): Arg is an array, not a linked list.
114286         * lib/modechange.c: Include stat-macros.h, xalloc.h.
114287         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
114288         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
114289         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
114290         Remove.  This is now stat-macros.h's job.
114291         (talloc): Remove.  All callers replaced by xalloc, so that
114292         our invokers don't have to worry about reporting memory failures.
114293         (make_node_op_equals): Remove.
114294         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
114295         New constants.
114296         (struct mode_change): Moved here from modechange.h.
114297         (mode_append_entry): Remove.
114298         (mode_compile): Remove MASKED_OPS arg, since it encouraged
114299         apps to have incorrect behavior.  Use simpler algorithm for head
114300         and tail.  Don't futz with umask; that's now the job of mode_adjust.
114301         Detect more invalid usages rather than having somewhat-random behavior.
114302         Don't insert an "a=" action, as that leads to incorrect behavior.
114303         (mode_compile, mode_create_from_ref): Return NULL on error instead
114304         of an enum, since now there's only one way to have an error.  All
114305         callers changed.
114306         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
114307         at the correct time.  Simplify calculation of "+u" and its ilk.
114308         Don't mishandle "+X".
114309         (mode_free): Remove "register" and localize decls.
114310         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
114311         (struct mode_change): Move to modechange.c; callers don't
114312         need to see this stuff.
114313         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
114314         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
114315         (mode_change, mode_adjust): Reflect the new signatures noted above.
114316         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
114317         that might redefine system include files.
114318         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
114319         (my_usleep): Use NULL rather than (void *) 0.
114320         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
114321         Use siginterrupt to specify that system calls should be interrupted.
114322         (rpl_nanosleep): Move initialization of suspended closer to call of
114323         my_usleep.
114324         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
114325         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
114326         (desirable_utmp_entry): New function.
114327         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
114328         using x2nrealloc, to simplify logic.
114329         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
114330         size calculation.  Do not assume utmp file is a regular file.
114331         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
114332         (READ_UTMP_CHECK_PIDS): New constant.
114333         * lib/save-cwd.c: Include unistd-safer.h.
114334         (save_cwd): Use fd_safer.
114335         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
114336         [!_LIBC] Include "stat-macros.h" instead.
114337         * lib/unistd-safer.h (fd_safer): New decl.
114339 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
114341         * modules/getloadavg (Depends-on): Add unistd-safer.
114342         * modules/getusershell (Depends-on): Add stdio-safer.
114343         * modules/lstat (Depends-on): Remove xalloc.
114344         * modules/mkstemp (Depends-on): Add stat-macros.
114345         * modules/modechange (Depends-on): Remove xstrtol.
114346         Add stat-macros, xalloc.
114347         * modules/save-cwd (Depends-on): Add unistd-safer.
114348         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
114349         * modules/unistd-safer (Files): Add lib/fd-safer.c
114350         (Makefile.am): Remove lib_SOURCES.
114352         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
114353         Remove fcntl-safer; unistd-safer supersedes it.
114355 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
114357         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
114358         AC_HEADER_STAT.
114359         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
114360         (gl_PREREQ_CHOWN): Remove.
114361         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
114362         it.  Don't require AC_HEADER_STAT.
114363         (gl_PREREQ_LSTAT): Remove.
114364         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
114365         Don't require AC_HEADER_STAT.
114366         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
114367         (gl_PREREQ_RMDIR): Remove.
114368         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
114369         mention stat-macros.h or AC_HEADER_STAT, since we'll make
114370         the stat-macros module a prerequisite.
114371         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
114372         * m4/filemode.m4 (gl_FILEMODE): Likewise.
114373         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
114374         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
114375         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
114376         variable names.
114377         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
114378         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
114379         variable prefixes.
114380         * m4/fcntl-safer.m4: Remove.
114381         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
114382         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
114383         Invoke gl_PREREQ_FD_SAFER.
114384         (gl_PREREQ_FD_SAFER): New macro.
114385         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
114386         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
114387         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
114388         Remove duplicate call to AC_LIBOBJ(readutmp).
114389         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
114391         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
114392         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
114394 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
114396         * MODULES.html.sh (Misc): Add byteswap.
114398 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
114400         * modules/getcwd (Depends-on): Add extensions.
114401         * modules/openat (Depends-on): Likewise.
114403 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
114405         * modules/byteswap: New file.
114407 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
114409         * m4/byteswap.m4: New file.
114411 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
114413         * lib/byteswap_.h: New file.
114415 2005-04-25  Karl Berry  <karl@gnu.org>
114417         * m4/gettext.m4: Update from GNU gettext 0.14.4.
114419 2005-04-25  Albert Chin  <china@thewrittenword.com>
114421         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
114422         Toolkit C bug.
114424 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
114426         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
114427         (func_ln_if_changed): Remove forcibly for no error message
114428         in case file does not exist.
114430 2005-04-19  Simon Josefsson  <jas@extundo.com>
114432         * gnulib-tool (Options): Make --symlink mean --symbolic.
114434 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
114436         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
114438 2005-04-16  Simon Josefsson  <jas@extundo.com>
114440         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
114442 2005-04-15  Simon Josefsson  <jas@extundo.com>
114444         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
114446 2005-04-15  Simon Josefsson  <jas@extundo.com>
114448         * gnulib-tool: Rename --symlink to --symbolic.
114450 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
114452         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
114453         symbolic links to files instead of copying/moving.  Add --aux-dir,
114454         specifying directory relative --dir where auxiliary build tools
114455         are placed.
114457 2005-04-14  Bruno Haible  <bruno@clisp.org>
114459         * modules/allocsa (License): Change to LGPL.
114460         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
114462 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
114464         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
114465         that "UTC +1 second" continues to work.  Problem reported
114466         by Dmitry V. Levin.
114467         (relunit_snumber): New rule.
114468         (relunit): Use it.
114470 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
114472         * lib/getdate.y (universal_time_zone_table): New constant.
114473         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
114474         universal_time_zone_table.
114475         (lookup_zone): Prefer universal_time_zone_table to
114476         local_time_zone_table, so that "GMT" time stamps are allowed in
114477         London during the summer.  Problem reported by Ian Abbott.
114479 2005-04-12  Jim Meyering  <jim@meyering.net>
114481         * lib/human.c (humblock): Set *options even when returning due to
114482         xstrtoumax conversion failure.  Thanks to a used-uninitialized
114483         warning from gcc-4.
114485 2005-04-09  Jim Meyering  <jim@meyering.net>
114487         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
114488         -Wuninitialized: initialize tm0.tm_year.
114490 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
114492         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
114493         count, since there's no maximum.  All uses changed.
114494         Add member dsts_seen.
114495         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
114496         not being INT_MAX.
114497         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
114498         Use pc_rels_seen to decide whether a date is absolute.
114500         * lib/getdate.y (number): Don't overwrite year.
114501         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
114502         check.
114504 2005-04-02  Simon Josefsson  <jas@extundo.com>
114506         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
114507         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
114509 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
114511         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
114512         where no absolute path name can be longer than PATH_MAX.
114514 2005-03-27  Jim Meyering  <jim@meyering.net>
114516         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
114518 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
114520         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
114521         "one's complement" -> "ones' complement" in comment, as per Knuth.
114522         "value of type" -> "type or expression" in comment.
114523         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
114525 2005-03-26  Jim Meyering  <jim@meyering.net>
114527         Comment nits.
114528         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
114529         Correct typos: s/or/of/.
114531 2005-03-26  Jim Meyering  <jim@meyering.net>
114533         * modules/check-include-files: Move to ../ and rename to...
114534         * check-module: ...this.
114536 2005-03-25  Jim Meyering  <jim@meyering.net>
114538         * modules/xvasprintf (Files): Add xalloc.h.
114540 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
114542         * modules/gettext (Files): config/config.rpath ->
114543         build-aux/config.rpath
114544         * modules/iconv (Files): Likewise.
114545         Problem reported by Oskar Liljeblad.
114547 2005-03-23  Jim Meyering  <jim@meyering.net>
114549         * modules/check-include-files: New script to check for
114550         missing dependencies, multiple includes, etc.
114552         * modules/c-strtold (Depends-on): Add xalloc.
114553         * modules/c-strtod (Depends-on): Add xalloc.
114554         * modules/hash (Depends-on): Add xalloc.
114555         (Files): Remove lib/xalloc.h.
114557         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
114558         * modules/userspec (Files): Add lib/inttostr.h.
114560 2005-03-23  Jim Meyering  <jim@meyering.net>
114562         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
114564 2005-03-22  Jim Meyering  <jim@meyering.net>
114566         * modules/stat-macros: New module.
114567         * modules/canonicalize, modules/euidaccess, modules/file-type,
114568         * modules/filemode, modules/lchown, modules/makepath,
114569         * modules/rmdir, modules/stat: Depend on new stat-macros module
114570         rather than listing lib/stat-macros.h manually.
114571         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
114573 2005-03-22  Jim Meyering  <jim@meyering.net>
114575         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
114577 2005-03-22  Bruno Haible  <bruno@clisp.org>
114579         * config/srclist.txt: Replace target directory 'config' with
114580         'build-aux'.
114581         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
114582         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
114583         ../build-aux/.
114585 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
114587         * modules/chdir-long (Depends-on): Add mempcpy.
114589         * modules/acl, modules/backupfile, modules/c-strtod,
114590         modules/c-strtold, modules/canon-host, modules/canonicalize,
114591         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
114592         modules/exclude, modules/exitfail, modules/file-type,
114593         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
114594         modules/getdate, modules/getline, modules/getpagesize,
114595         modules/getpass, modules/getugroups, modules/group-member,
114596         modules/hard-locale, modules/hash, modules/human, modules/idcache,
114597         modules/inttostr, modules/long-options, modules/makepath,
114598         modules/md5, modules/memcasecmp, modules/memcoll,
114599         modules/modechange, modules/mountlist, modules/path-concat,
114600         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
114601         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
114602         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
114603         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
114604         modules/strftime, modules/strndup, modules/strverscmp,
114605         modules/timespec, modules/unlocked-io, modules/userspec,
114606         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
114607         modules/yesno:
114608         Remove lib_SOURCES line from Makefile.am section, as this is now
114609         done automatically by the corresponding Autoconf macro.
114611 2005-03-21  Jim Meyering  <jim@meyering.net>
114613         Changes imported from coreutils.
114615         * lib/cycle-check.c: Don't include xalloc.h.
114617         * lib/path-concat.c: Don't include assert.h.
114618         (path_concat): Remove assertion that would have triggered
114619         for ABASE starting with more than one slash.
114620         Reported by Andreas Schwab.
114622         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
114623         properly when ABASE is an absolute file name.
114624         Correct the description of this function.
114625         Include <assert.h>.
114626         Add an assertion and a test driver.
114627         This fixes a bug introduced on 2004-07-02.
114628         Andreas Schwab reported the resulting failure of cp --parents:
114629         http://lists.gnu.org/r/bug-coreutils/2005-01/msg00130.html
114631 2005-03-21  Jim Meyering  <jim@meyering.net>
114633         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
114634         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
114636 2005-03-21  Jim Meyering  <jim@meyering.net>
114637         and  Paul Eggert  <eggert@cs.ucla.edu>
114639         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
114640         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
114641         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
114642         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
114643         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
114644         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
114645         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
114646         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
114647         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
114648         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
114649         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
114650         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
114651         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
114652         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
114653         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
114654         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
114655         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
114656         for these modules.
114658 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
114660         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
114661         (which shouldn't happen), generate nothing instead of returning 0
114662         immediately, so that nstrftime (NULL, ...) doesn't return 0.
114664 2005-03-16  Bruno Haible  <bruno@clisp.org>
114666         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
114667         HAVE_LONGLONG_64BIT.
114669 2005-03-16  Bruno Haible  <bruno@clisp.org>
114671         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
114672         HAVE_LONGLONG_64BIT.
114674 2005-03-16  Bruno Haible  <bruno@clisp.org>
114676         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
114677         HAVE_LONGLONG_64BIT.
114679 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
114681         * lib/strftime.c (my_strftime): Prepend space to format so that we can
114682         reliably distinguish strftime failure from empty output on POSIX
114683         hosts.
114685 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
114687         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
114688         (iconv_string): Don't guess a size-zero buffer, as that might cause
114689         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
114690         result would be 'too large', where 'too large' is (heuristically)
114691         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
114692         overflow concerns.  This will prevent some unwanted malloc failures
114693         when the inputs are very large.
114695 2005-03-15  Karl Berry  <karl@gnu.org>
114697         * config/srclist.txt (config.rpath): from gettext.
114698         * config/config.rpath: update.
114700 2005-03-15  Bruno Haible  <bruno@clisp.org>
114702         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
114703         to 'negate'.
114705         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
114706         variable.
114708         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
114709         results.
114711 2005-03-14  Simon Josefsson  <jas@extundo.com>
114713         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
114714         <fx@gnu.org>.
114716 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
114718         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
114719         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
114720         intprops.h.
114721         * lib/strtol.c: Likewise.
114723 2005-03-14  Jim Meyering  <jim@meyering.net>
114725         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
114726         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
114727         to be nonzero so that we (and caller) can detect the difference
114728         between a valid zero-length expansion and an error return, even
114729         when the underlying strftime fails before writing anything into
114730         that location.
114732 2005-03-14  Bruno Haible  <bruno@clisp.org>
114734         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
114735         Update from GNU gettext 0.14.3.
114737 2005-03-10  Jim Meyering  <jim@meyering.net>
114739         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
114741 2005-03-10  Jim Meyering  <jim@meyering.net>
114743         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
114744         so that this module works on systems without fchdir.
114746 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
114748         Factor int-properties macros into a single file, except for
114749         glibc-related files.
114750         * lib/intprops.h: New file.
114751         * lib/getloadavg.c: Include it instead of limits.h.
114752         (INT_STRLEN_BOUND): Remove.
114753         * lib/human.c: Include intprops.h.
114754         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
114755         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
114756         302/1000.
114757         * lib/inttostr.h: Include intprops.h instead of limits.h.
114758         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
114759         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
114760         for consistency with intprops.h.
114761         (time_t_is_integer, twos_complement_arithmetic): Use them.
114762         * lib/sig2str.h: Include <signal.h>, intprops.h.
114763         (INT_STRLEN_BOUND): Remove.
114764         * lib/strftime.c (TYPE_SIGNED): Remove.
114765         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
114766         * lib/strtol.c: Adjust comments to match intprops.h.
114767         * lib/userspec.c: Include intprops.h.
114768         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
114769         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
114770         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
114771         instead of rolling our own expressions.
114772         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
114774         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
114775         instead of int.
114776         (my_strftime): Do not mishandle years close to INT_MAX, by doing
114777         the right thing even if adding 1900 would overflow.  Similarly
114778         for tm_mon + 1 and tm_yday + 1.
114779         Make %Y always equivalent to %C%y, and similarly for %G and %g.
114780         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
114781         (DO_SIGNED_NUMBER): New macro.
114782         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
114784 2005-03-07  Bruno Haible  <bruno@clisp.org>
114786         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
114788 2005-03-07  Bruno Haible  <bruno@clisp.org>
114790         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
114792 2005-03-04  Derek R. Price  <derek@ximbiot.com>
114794         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
114795         (func_import): Only replace files via --import when they have actually
114796         changed.
114798 2005-03-03  Derek R. Price  <derek@ximbiot.com>
114800         * m4/mmap-anon.m4: New file.
114801         * m4/pagealign_alloc.m4: New file.
114803 2005-03-03  Derek R. Price  <derek@ximbiot.com>
114804             Bruno Haible  <bruno@clisp.org>
114806         * modules/pagealign_alloc: New file.
114807         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
114809 2005-03-03  Derek R. Price  <derek@ximbiot.com>
114810             Bruno Haible  <bruno@clisp.org>
114812         * lib/pagealign_alloc.h: New file.
114813         * lib/pagealign_alloc.c: New file.
114815 2005-03-03  Bruno Haible  <bruno@clisp.org>
114817         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
114818         Use an all-permissive copyright notice, recommended by RMS.
114820 2005-03-02  Bruno Haible  <bruno@clisp.org>
114822         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
114823         of AIX, the replacement has to be done only after <string.h> is
114824         included, therefore not in config.h. stpncpy.h does the replacement,
114825         and stpncpy.c uses it.
114827 2005-03-02  Bruno Haible  <bruno@clisp.org>
114829         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
114830         stpncpy.c uses it.
114832 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
114834         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
114835         The workaround isn't strictly needed for POSIX conformance, and
114836         it's too much of a pain to configure and maintain.  We'll ask
114837         people to fix their kernels instead.
114838         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
114839         (NANOSLEEP_BUG_WORKAROUND): Remove.
114840         (xnanosleep): Remove the workaround.
114842 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
114844         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
114845         Reported by Derek Price.
114846         (Include): Add "timespec.h".
114848         * modules/xnanosleep (Depends-on): Remove gethrxtime.
114850 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
114852         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
114853         to detect nanosleep bug.
114855 2005-03-01  Bruno Haible  <bruno@clisp.org>
114857         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
114859 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
114861         * modules/gethrxtime: New file.
114862         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
114863         (Depends-on): Add gethrxtime.
114864         (configure.ac): Add gl_XNANOSLEEP.
114865         (Makefile.am): Remove lib_SOURCES line.
114867 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
114869         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
114870         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
114872 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
114874         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
114875         * lib/timespec.h (gettime): Return void, since it always
114876         succeeds now.  All uses changed.
114877         * lib/gettime.c (gettime): Likewise.
114878         [HAVE_NANOTIME]: Prefer nanotime.
114879         Assume gettimeofday succeeds, as POSIX requires.
114880         Assime time () succeeds, since other code already does.
114881         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
114882         (timespec_subtract): Remove.
114883         (NANOSLEEP_BUG_WORKAROUND): New constant.
114884         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
114885         things considerably.  Use it only on GNU/Linux hosts, since the
114886         workaround shouldn't be needed elsewhere.
114888 2005-02-24  Bruno Haible  <bruno@clisp.org>
114890         * modules/gettext (Files): Add m4/glibc2.m4.
114892 2005-02-24  Bruno Haible  <bruno@clisp.org>
114894         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
114895         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
114896         * m4/progtest.m4:
114897         Update from GNU gettext 0.14.2.
114898         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
114900 2005-02-24  Bruno Haible  <bruno@clisp.org>
114902         * lib/localcharset.c: Update from GNU gettext 0.14.2.
114903         * lib/config.charset: Update from GNU gettext 0.14.2.
114905 2005-02-24  Bruno Haible  <bruno@clisp.org>
114907         * lib/gettext.h: Update from GNU gettext 0.14.2.
114909 2005-02-23  Simon Josefsson  <jas@extundo.com>
114911         * m4/iconvme.m4: New file.
114913 2005-02-23  Jim Meyering  <jim@meyering.net>
114915         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
114916         change.
114917         Thanks to Bruno Haible for catching it.
114919 2005-02-22  Simon Josefsson  <jas@extundo.com>
114921         * modules/iconvme: New file.
114923         * MODULES.html.sh: Add iconvme.
114925 2005-02-22  Simon Josefsson  <jas@extundo.com>
114927         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
114929 2005-02-22  Simon Josefsson  <jas@extundo.com>
114931         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
114933 2005-02-22  Jim Meyering  <jim@meyering.net>
114935         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
114936         s/ifndef/ifdef/.
114938 2005-02-20  Neil Conway  <neilc@samurai.com>
114940         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
114941         returned by OSX/Darwin if the specified buffer is not large
114942         enough for the hostname.
114944 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
114946         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
114947         pass it to _help, otherwise the latter coredumps trying to
114948         dereference state.root_argp.
114950 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
114952         * modules/chdir-long (Depends-on): Add memrchr.
114953         * modules/memrchr (Files): Add lib/memrchr.h.
114954         (Include): "memrchr.h".
114956 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
114958         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
114960 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
114962         * lib/memrchr.h: New file.
114963         * lib/chdir-long.c: Include it.
114964         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
114965         Don't bother including stddef.h.
114967 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
114969         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
114970         inclusion.
114971         Include <sys/types.h>, for dev_t.
114972         (ME_DUMMY, ME_REMOTE): Move from here....
114973         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
114974         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
114975         Dmitry V. Levin.
114976         Include mountlist.h first, to test the interface.
114978 2005-01-29  Bruno Haible  <bruno@clisp.org>
114980         * lib/progname.c (program_name): Initialize.
114981         Needed when linking statically on MacOS X.
114983 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
114985         Sync from coreutils.
114986         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
114987         (Depends-on): Add c-strtod.
114988         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
114990 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
114992         Sync from coreutils.
114993         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
114995         Remove files that are specific to coreutils.
114996         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
114998 2005-01-28  Bruno Haible  <bruno@clisp.org>
115000         * modules/javacomp: New file.
115001         * MODULES.html.sh (Java): Add javacomp.
115003 2005-01-28  Bruno Haible  <bruno@clisp.org>
115005         * m4/javacomp.m4: New file, from GNU gettext.
115007 2005-01-28  Bruno Haible  <bruno@clisp.org>
115009         * lib/javacomp.sh.in: New file, from GNU gettext.
115010         * lib/javacomp.h: New file, from GNU gettext.
115011         * lib/javacomp.c: New file, from GNU gettext.
115013 2005-01-26  Simon Josefsson  <jas@extundo.com>
115015         * lib/gai_strerror.c: Use GPL in header.
115017 2005-01-26  Bruno Haible  <bruno@clisp.org>
115019         * modules/javaexec: New file.
115020         * MODULES.html.sh (Java): Add javaexec.
115022 2005-01-26  Bruno Haible  <bruno@clisp.org>
115024         * m4/javaexec.m4: New file, from GNU gettext.
115026 2005-01-26  Bruno Haible  <bruno@clisp.org>
115028         * lib/javaexec.sh.in: New file, from GNU gettext.
115029         * lib/javaexec.h: New file, from GNU gettext.
115030         * lib/javaexec.c: New file, from GNU gettext.
115032 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
115034         * modules/lchown (Depends-on): Remove lchown.h
115036 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
115038         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
115039         must be defined if the header file was not found, in order
115040         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
115042 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
115044         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
115045         initializers for struct pentry_state.
115046         (__argp_error): Check return value of __asprintf
115047         (__argp_failure): Translate error message
115049         * lib/argp-parse.c: Removed braces around the expansion of N_()
115051 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
115053         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
115054         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
115055         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
115056         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
115057         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
115058         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
115059         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
115060         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
115061         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
115062         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
115063         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
115064         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
115065         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
115066         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
115067         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
115068         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
115069         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
115070         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
115071         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
115072         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
115073         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
115074         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
115075         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
115076         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
115077         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
115078         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
115079         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
115080         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
115081         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
115082         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
115083         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
115084         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
115085         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
115086         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
115087         xstrtol.m4, xstrtoumax.m4, yesno.m4:
115088         Use an all-permissive copyright notice, recommended by RMS.
115090 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
115092         * modules/chdir-long (Depends-on): Remove mempcpy.
115094 2005-01-21  Jim Meyering  <jim@meyering.net>
115096         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
115097         same value as for Solaris 9.
115099         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
115100         component length.  This included changing the parameter to be
115101         of type `char *' rather than `char const *'.
115102         * lib/chdir-long.h (chdir_long): Update prototype.
115104         * lib/openat.c (fdopendir, fstatat): New functions.
115105         * lib/openat.h: Include headers required for use of DIR and struct
115106         stat.
115107         [AT_SYMLINK_NOFOLLOW]: Define.
115108         (fdopendir, fstatat): Add prototypes.
115110 2005-01-21  Bruno Haible  <bruno@clisp.org>
115112         * modules/classpath: New file.
115113         * MODULES.html.sh (Java): Add classpath.
115115 2005-01-21  Bruno Haible  <bruno@clisp.org>
115117         * lib/classpath.h: New file, from GNU gettext.
115118         * lib/classpath.c: New file, from GNU gettext.
115120 2005-01-20  Simon Josefsson  <jas@extundo.com>
115122         * modules/version-etc-fsf: New file.
115124 2005-01-20  Simon Josefsson  <jas@extundo.com>
115126         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
115127         * lib/version-etc.c: Remove version_etc_copyright.
115128         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
115129         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
115131 2005-01-20  Simon Josefsson  <jas@extundo.com>
115133         * lib/base64.h (isbase64): Add.
115135         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
115136         using a unsigned prototype, don't inline.
115137         (base64_decode): Use it.
115139 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
115141         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
115142         it.
115144 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
115146         * lib/save-cwd.c (save_cwd): Remove code to support the case
115147         where fchdir is missing or flaky.
115149 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
115151         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
115153 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
115155         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
115156         AC_LIBSOURCES now does this.
115157         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
115158         with new ullong_max module.
115160 2005-01-19  Bruno Haible  <bruno@clisp.org>
115162         * modules/sh-quote: New file.
115163         * MODULES.html.sh (Executing programs): Add sh-quote.
115165 2005-01-19  Bruno Haible  <bruno@clisp.org>
115167         * lib/sh-quote.h: New file, from GNU gettext.
115168         * lib/sh-quote.c: New file, from GNU gettext.
115170 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
115172         Merge from coreutils.
115173         * m4/ullong_max.m4: New file.
115174         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
115175         (gl_MACROS): Assume localeconv exists.
115177 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
115179         Merge changes from coreutils, as described below in several
115180         changelogs dated today.
115182         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
115183         (O_DIRECTORY): Remove; not needed here, since "." must be
115184         a directory.  All uses removed.
115185         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
115186         universal on Suns, and we also need to test for IRIX.
115187         Revamp code to use 'if' rather than '#if'.
115188         Avoid unnecessary comparison of cwd->desc to 0.
115190         * lib/utimens.c (futimens): Robustify the previous patch, by checking
115191         for known valid error numbers rather than observed invalid ones.
115193 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
115195         * modules/ullong_max: New file.
115197         * modules/chdir-long, modules/openat: New files.
115198         * modules/save-cwd (Depends-on): Depend on chdir-long.
115199         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
115201 2005-01-18  Jim Meyering  <jim@meyering.net>
115203         Merge from coreutils.
115204         * m4/chdir-long.m4, m4/openat.m4: New files.
115205         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
115206         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
115207         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
115208         is sane and DOES follow symlinks.  Besides, testing 20 different
115209         systems found no broken chown implementations.
115210         Prompted by a change in rsync's copy of this macro.
115211         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
115213         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
115215         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
115216         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
115217         NULL-means-set-to-current-time semantics.
115218         Remove temporary file immediately, rather than waiting
115219         for configure's at-exit trap code to do it.
115221 2005-01-18  Jim Meyering  <jim@meyering.net>
115223         * lib/version-etc.c (version_etc_copyright): Update copyright date.
115225         * lib/utimens.c (futimens): Account for the fact that futimes
115226         can also fail with errno == ENOSYS or errno == ENOENT.
115227         Patch from Dmitry V. Levin.
115229         Change the name of the robust chdir function from chdir to chdir_long.
115230         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
115231         (restore_cwd): Use chdir_long, not chdir.
115232         * lib/chdir-long.c: Renamed from chdir.c.
115233         * lib/chdir-long.h: Renamed from chdir.h.
115234         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
115235         Hurd.
115237 2005-01-18  Bruno Haible  <bruno@clisp.org>
115239         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
115240         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
115241         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
115242         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
115243         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
115244         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
115245         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
115246         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
115247         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
115248         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
115249         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
115250         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
115251         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
115252         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
115253         Use an all-permissive copyright notice, recommended by RMS.
115255 2005-01-18  Bob Proulx  <bob@proulx.com>
115257         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
115258         simplify offsetof() macro construct to avoid compile failure with
115259         native HP-UX 11.0 ANSI C compiler.
115261 2005-01-17  Bruno Haible  <bruno@clisp.org>
115263         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
115264         redundant because stpncpy.m4 takes care of it.
115266 2005-01-17  Bruno Haible  <bruno@clisp.org>
115268         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
115270 2005-01-17  Bruno Haible  <bruno@clisp.org>
115272         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
115273         used.
115275 2005-01-17  Bruno Haible  <bruno@clisp.org>
115277         * lib/fwriteerror.h (fwriteerror): Change specification to include
115278         fclose.
115279         * lib/fwriteerror.c: Include <stdbool.h>.
115280         (fwriteerror): At the end, close the file stream. Record whether
115281         stdout was already closed.
115283 2005-01-17  Bruno Haible  <bruno@clisp.org>
115285         * lib/execute.c (environ): Declare if needed.
115286         * lib/pipe.c (environ): Likewise.
115287         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
115289 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
115291         * modules/argp: Depend on vsnprintf
115293 2005-01-10  Jim Meyering  <jim@meyering.net>
115295         * modules/closeout (Depends-on): Add atexit.
115297 2005-01-06  Bruno Haible  <bruno@clisp.org>
115299         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
115301 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
115303         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
115304         definitions to be after all include files, to avoid collisions.
115305         Problem reported by Bob Proulx.
115307 2005-01-04  Jim Meyering  <jim@meyering.net>
115309         Changes imported from coreutils.
115310         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
115311         as the mkstemp template, use a temporary directory and an
115312         8.3-friendly template to avoid trouble on systems like DJGPP.
115313         Reported by Juan M. Guerrero via Stepan Kasal.
115314         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
115315         close. Remove the temporary directory right away, rather than waiting
115316         for configure's at-exit trap code to do it.
115317         Suggestion from Stepan Kasal.
115319 2005-01-01  Simon Josefsson  <jas@extundo.com>
115321         * gnulib-tool: Print #include directives when --import'ing.
115323 2004-12-28  Simon Josefsson  <jas@extundo.com>
115325         * tests/test-base64.c: Include required header files.  Remove
115326         unused variables.
115328 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
115330         * modules/error (Depends-on): Remove gettext.
115332 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
115334         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
115335         not needed.  This removes a dependency on the gettext module.
115336         [defined _LIBC]: Do not include <libintl.h>; not needed.
115338 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
115340         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
115341         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
115343 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
115345         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
115346         HAVE_DECL_STRTOLD.
115348 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
115350         * modules/getdate (Depends-on): Remove alloca-opt.
115352 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
115354         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
115356 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
115358         * lib/argp-parse.c: Include <stddef.h>.
115359         (alignof, alignto): New macros.
115360         (parser_init): Don't assume that void * is aligned sufficiently
115361         for struct option.
115363         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
115364         need to extend the stack.
115365         (YYINITDEPTH): New macro, so that the initial stack isn't overly
115366         large.
115368 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
115370         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
115372 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
115374         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
115375         (2004-10-24) change.  Apparently this was a false alarm.
115377         * modules/getdate: Depend on alloca-opt, not alloca.
115379 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
115381         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
115382         Remove now-obsolete comment about AIX.
115383         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
115384         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
115385         (YYMAXDEPTH): New macro.
115387 2004-12-18  Simon Josefsson  <jas@extundo.com>
115389         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
115391 2004-12-18  Bruno Haible  <bruno@clisp.org>
115393         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
115395 2004-12-18  Bruno Haible  <bruno@clisp.org>
115397         * lib/fatal-signal.c (fatal_signals): Make non-const.
115398         (init_fatal_signals): New function.
115399         (uninstall_handlers, install_handlers): Ignore signals that were set to
115400         SIG_IGN.
115401         (at_fatal_signal): Call init_fatal_signals.
115402         (init_fatal_signal_set): Likewise. Ignore signals that were set to
115403         SIG_IGN.
115404         Reported by Paul Eggert.
115406 2004-12-18  Bruno Haible  <bruno@clisp.org>
115408         * doc/alloca.texi: New file.
115409         * doc/alloca-opt.texi: New file.
115411 2004-12-17  Jim Meyering  <jim@meyering.net>
115413         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
115414         Otherwise, install-sh could exit with improper exit status when
115415         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
115417 2004-12-16  Simon Josefsson  <jas@extundo.com>
115419         * tests/test-base64.c: Add license.
115421 2004-12-15  Stepan Kasal  <address@hidden>
115423         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
115425 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
115427         * modules/getcwd (Files): Add m4/d-ino.m4.
115428         Suggested by Mark D. Baushke.
115430 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
115432         * lib/getdate.y (textint): New member "negative".
115433         (time_zone_hhmm): New function.
115434         Expect 14 shift-reduce conflicts, not 13.
115435         (o_colon_minutes): New rule.
115436         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
115437         (yylex): Set the "negative" member of signed numbers.
115439 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
115441         * doc/getdate.texi (Time of day items, Time zone items):
115442         Describe new formats +00:00, UTC+00:00.
115444 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
115446         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
115447         spurious "-l"s.  Problem reported by Stepan Kasal.
115449 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
115451         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
115452         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
115454 2004-12-04  Simon Josefsson  <jas@extundo.com>
115456         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
115457         Vandoorselaere <yoann@prelude-ids.org>.
115459 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
115461         Changes imported from coreutils.
115462         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
115463         exist.
115464         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
115466 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
115468         Changes imported from coreutils.
115469         * lib/hard-locale.c: Assume <locale.h> exists.
115470         Include "strdup.h".
115471         (GLIBC_VERSION): New macro.
115472         (hard_locale): Assume setlocale exists.
115473         Rewrite to avoid #ifdef.
115474         Use strdup rather than malloc + strcpy.
115475         * lib/human.c: Assume <locale.h> exists.
115476         (human_readable): Assume localeconv exists.
115478 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
115480         * modules/hard-locale (Depends-on): Add strdup.
115482 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
115484         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
115485         convert T2, not T.  (Imported from libc.)
115487 2004-11-30  Simon Josefsson  <jas@extundo.com>
115489         * modules/restrict (License): Change to LGPL.
115491 2004-11-30  Simon Josefsson  <jas@extundo.com>
115493         * m4/restrict.m4: Add copyright and copying conditions.
115495 2004-11-30  Simon Josefsson  <jas@extundo.com>
115497         * m4/base64.m4: New file.
115499 2004-11-30  Simon Josefsson  <jas@extundo.com>
115501         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
115502         base64.
115504         * tests/test-base64.c: New file.
115506         * modules/base64: New file.
115508 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
115510         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
115511         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
115513         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
115515 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
115517         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
115518         (__getcwd.c): Don't restore errno; glibc doesn't.
115519         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
115520         first, falling back to our code only if its results look suspicious.
115521         Ensure that the resulting buffer is only as large as necessary.
115523         * lib/readutmp.c: Include readutmp.h first.
115524         Include <errno.h>, since readutmp.h no longer does that.
115525         * lib/readutmp.h: Don't include <errno.h>,
115526         <sys/param.h>, <time.h>; not needed to establish interface.
115527         (errno): Remove decl.
115528         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
115529         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
115530         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
115532 2004-11-28  Simon Josefsson  <jas@extundo.com>
115534         * lib/base64.h, base64.c: New file.
115536 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
115538         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
115540 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
115542         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
115543         (Depends-on): Remove pathmax, same.  Add mempcpy.
115544         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
115545         (Makefile.am): Append getcwd.h to lib_SOURCES.
115546         (Include): Add getcwd.h.
115547         (Maintainer): Change from Jim Meyering to "all, glibc",
115548         since getdate now uses intended-for-glibc code.
115549         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
115550         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
115552 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
115554         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
115555         HP's ANSI C compiler.
115556         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
115557         Declaring int functions causes warnings on some modern systems and
115558         shouldn't be needed to compile on ancient ones.
115559         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
115560         defined.
115562         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
115563         with the following changes.
115564         (__set_errno): Parenthesize properly.
115565         Include <stdbool.h>.
115566         (MIN, MAX, MATCHING_INO): New macros.
115567         (__getcwd): Define with prototype, not K&R form.
115568         Use heuristics to allocate default buffer on stack if possible.
115569         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
115570         behavior, and to avoid the PATH_MAX limit when computing
115571         ../../../../...
115572         Use MATCHING_INO to compare inode number to file.
115573         Check for arithmetic overflow in size calculations.
115574         Fix bug in reallocation of dot array that caused getcwd to fail
115575         on directories nested deeper than 75.
115576         Be more careful about saving errno on error.
115577         Do not use realloc; use only free+malloc, as this is a bit
115578         more flexible and avoids a needless copy operation.
115579         Do not inspect st_dev and st_ino for symbolic links; POSIX
115580         doesn't specify the latter.
115581         Check for closedir errors.
115582         Avoid needless casts.
115583         Use "#ifdef weak_alias" around weak_alias, to be like other
115584         glibc code.
115585         The following changes to getcwd.c have effect only when used in
115586         gnulib; they have no effect inside glibc proper.
115587         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
115588         as alloca isn't used.
115589         (alloca, __alloca): Likewise.
115590         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
115591         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
115592         unconditionally, as gnulib assumes C89 or better.
115593         Do not include <sys/param.h>.
115594         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
115595         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
115596         better.
115597         (NULL) [!defined NULL]: Remove; we assume C89 or better.
115598         Include <dirent.h> in a way that is compatible with modern Autoconf.
115599         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
115600         New macros, if not already defined.
115601         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
115602         Use "_LIBC", not "defined _LIBC", for consistency.
115603         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
115604         a mempcpy module.
115605         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
115606         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
115607         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
115608         credit only to Jim Meyering and adjust the copyright dates.
115609         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
115610         <stdlib.h>, <unistd.h>, "pathmax.h".
115611         Instead, include "xgetcwd.h" (first) and "getcwd.h".
115612         (INITIAL_BUFFER_SIZE): Remove.
115613         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
115615 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
115617         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
115618         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
115619         Use the _ONCE methods, for efficiency.
115620         Check for fcntl.h.  In test program, include <errno.h>
115621         and <fcntl.h> if available.  Remove old K&R cruft from
115622         test program.  Check for common errors in GNU/Linux,
115623         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
115624         don't do AC_LIBOBJ, as that's getcwd.m4's job.
115625         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
115626         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
115627         name accordingly.
115628         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
115629         accommodate new getcwd.c.
115630         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
115631         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
115632         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
115633         that's all we need now.
115635 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
115637         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
115638         argp-parse.c depends on getopt internals, that means we should
115639         always use our getopt, to be on the safe side.
115640         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
115641         order not to spoil the result of an eventual previous invocation
115642         of gl_GETOPT_SUBSTITUTE.
115644 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
115646         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
115647         redefinition warnings. To avoid them, include the defines
115648         in `#if !defined __need_getopt ... #endif'. The only place
115649         where __getopt_argv_const is used is in definitions
115650         of getopt_long and getopt_long_only below, which are as well
115651         protected by `#ifndef __need_getopt'.
115652         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
115653         __need_getopt after including <stdio.h> and <unistd.h> These
115654         headers might have defined it.
115656 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
115658         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
115660 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
115662         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
115663         (futimens): New function, which uses futimes if available.
115664         (futimens, utimens): Support timespec==NULL, with same semantics
115665         as utime and utimens.
115666         * lib/utimens.h (futimens): New decl.
115668 2004-11-23  Jim Meyering  <jim@meyering.net>
115670         * lib/getopt_.h: Remove trailing blanks.
115672 2004-11-23  Jim Meyering  <jim@meyering.net>
115674         * lib/__fpending.c: Add comment.
115676 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
115678         * modules/canonicalize (Depends-on): Add xreadlink.
115679         Problem reported by James Youngman.
115681 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
115683         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
115684         New macros.
115685         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
115686         optopt): Use them instead of invoking ## directly; otherwise, the
115687         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
115689 2004-11-19  Bruno Haible  <bruno@clisp.org>
115691         * lib/strtok_r.c: Move comments from here...
115692         * lib/strtok_r.h: ... to here.
115694 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
115696         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
115697         implementations that mishandle size_t overflow.
115699 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
115701         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
115702         might fail.  Problem reported by Yoann Vandoorselaere.
115703         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
115704         implementations that mishandle size_t overflow.
115706 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
115708         * modules/canon-host (Depends-on): Add strdup.
115710 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
115712         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
115714 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
115716         * lib/canon-host.c: Include "strdup.h".
115717         (canon_host): Use getaddrinfo if available, so that IPv6 works.
115718         Use strdup instead of malloc/strcpy to duplicate strings.
115720         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
115721         (human_space_before_unit): New constant.
115722         * lib/human.c (human_readable): Support it.
115724         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
115725         (xgetcwd): Set errno correctly when failing.
115726         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
115727         the failure is actually due to a PATH_MAX problem.
115729         Further getopt changes to make it more likely that glibc will
115730         buy the changes back.
115731         * lib/getopt.c (POSIXLY_CORRECT): New constant.
115732         (getopt): Use it, so to preserve glibc semantic
115733         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
115734         when compiling for libc.
115735         * lib/getopt_.h (__getopt_argv_const): Bring it back.
115736         (getopt_long, getopt_long_only): Use it.
115738         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
115739         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
115740         (getopt): Argv is now char * const *, as per standard.
115741         (_getopt_internal_r, _getopt_internal): Argv is now char **,
115742         not char *__getopt_argv_const *.
115743         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
115744         _getopt_long_only_r): Likewise.
115745         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
115746         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
115747         _getopt_long_r, _getopt_long_only_r): Likewise.
115748         * lib/getopt_.h (__getopt_argv_const): Remove.
115749         (getopt): Argv is now char * const *, as per standard.
115751         * lib/getdate.y (tORDINAL): New token.
115752         (day, relunit): Allow it for relative times.
115753         (relative_time_table): Use tORDINAL for ordinals.
115755 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
115757         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
115758         Document that "second" isn't allowed as an ordinal number.
115760 2004-11-16  Jim Meyering  <jim@meyering.net>
115762         * modules/closeout (Depends-on): Add fpending.
115764 2004-11-15  Jim Meyering  <jim@meyering.net>
115766         * lib/closeout.c: Include "__fpending.h" once again.
115767         Include <stdbool.h>.
115768         (close_stdout): Don't fail just because stdout was closed initially,
115769         since some programs don't write to stdout in the normal course of
115770         operation (other than --version and --help), and we don't want this
115771         function to make e.g. `touch file >&-' fail.
115772         But do fail if it was closed and someone has tried to write to it.
115773         E.g., `printf foo >&-' must fail.
115775 2004-11-13  Jim Meyering  <jim@meyering.net>
115777         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
115779 2004-11-12  Simon Josefsson  <jas@extundo.com>
115781         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
115782         small doc fix is still pending.
115784 2004-11-11  Simon Josefsson  <jas@extundo.com>
115786         * modules/strtok_r: New file.
115788         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
115789         strtok_r.
115791 2004-11-11  Simon Josefsson  <jas@extundo.com>
115793         * m4/strtok_r.m4: New file.
115795         * m4/getopt.m4: Replace opterr.
115797 2004-11-11  Simon Josefsson  <jas@extundo.com>
115799         * lib/strtok_r.h, strtok_r.c: New file.
115801 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
115803         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
115804         of replacing opterr, getopt, etc.  This should handle the
115805         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
115807 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
115809         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
115810         we can stop lying to compilers about the constness of argv when we
115811         are compiled outside glibc.
115812         (getopt, getopt_long, getopt_long_only): Use it.
115813         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
115814         _getopt_internal, getopt): Likewise.
115815         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
115816         _getopt_long_only_r): Likewise.
115817         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
115818         _getopt_long_r, _getopt_long_only_r): Likewise.
115820         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
115821         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
115822         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
115823         the other external symbols.
115824         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
115825         declaration, since the above renaming now works around collisions.
115827 2004-11-11  Jim Meyering  <jim@meyering.net>
115829         * lib/linebreak.c: Remove trailing blanks.
115830         * lib/alloca_.h: Likewise.
115831         * lib/acosl.c: Likewise.
115832         * lib/euidaccess.c: Likewise.
115833         * lib/allocsa.h: Likewise.
115835 2004-11-10  Simon Josefsson  <jas@extundo.com>
115837         * m4/getaddrinfo.m4: New file.
115839 2004-11-10  Simon Josefsson  <jas@extundo.com>
115841         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
115843 2004-11-10  Simon Josefsson  <jas@extundo.com>
115845         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
115846         getaddrinfo.
115848         * modules/getaddrinfo: New file.
115850 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
115852         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
115854 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
115856         * lib/mktime.c (SHR): New macro, which is a portable
115857         substitute for >> that should work even on Crays.
115858         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
115859         Problem reported by Mark D. Baushke in
115860         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00071.html>.
115861         * lib/getdate.y (SHR): Likewise.
115862         (tm_diff): Use it.
115863         * lib/strftime.c (SHR): Likewise.
115864         (tm_diff): Use it.
115865         * lib/quotearg.c (struct quoting_options): Use unsigned int for
115866         quote_these_too, so that right shifts are well defined.  All uses
115867         changed.
115869 2004-11-10  Jim Meyering  <jim@meyering.net>
115871         Ensure that no close failure goes unreported.
115872         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
115873         return early when it seems there's nothing to flush.
115874         Don't include __fpending.h.
115876 2004-11-10  Jim Meyering  <jim@meyering.net>
115878         * modules/closeout (Depends-on): Remove fpending.
115880 2004-11-10  Jim Meyering  <jim@meyering.net>
115882         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
115884 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
115886         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
115887         gl_FUNC_STRFTIME.
115888         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
115889         and AC_REQUIRE when possible, to avoid duplicate checks.
115890         Check for <wchar.h>.
115892 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
115894         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
115896 2004-11-09  Bruno Haible  <bruno@clisp.org>
115898         * m4/sockpfaf.m4: New file.
115900 2004-11-05  Bruno Haible  <bruno@clisp.org>
115902         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
115903         Reported by Mark D. Baushke <mdb@cvshome.org>.
115905 2004-11-04  Bruno Haible  <bruno@clisp.org>
115907         2004-09-11  Bruno Haible  <bruno@clisp.org>
115908                 * allocsa.valgrind: New file.
115909         2004-02-06  Bruno Haible  <bruno@clisp.org>
115910                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
115911                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
115912                 Reported by Christopher Seip <chris.seip@hp.com>.
115914 2004-11-04  Bruno Haible  <bruno@clisp.org>
115916         * modules/allocsa (Files): Add lib/allocsa.valgrind.
115917         (Makefile.am): Distribute it.
115919 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
115921         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
115922         with errno == ERANGE if the buffer is too small.
115923         Problem reported by Mark D. Baushke.
115925 2004-11-03  Albert Chin  <china@thewrittenword.com>
115926             Paul Eggert  <eggert@cs.ucla.edu>
115928         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
115929         equivalent, substitute $ac_type for equivalent type rather than
115930         blindly using uint32_t *always* which won't work if uint32_t is not
115931         available.  Define _UINT32_T to work around typedef of uint32_t if
115932         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
115933         2.5.1.
115935 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
115937         * m4/jm-macros.m4: Sync from coreutils.
115938         (gl_MACROS): Check for mbrlen, for pathchk.
115939         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
115941 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
115943         * lib/xreadlink.c (MAXSIZE): New macro.
115944         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
115945         size does not exceed MAXSIZE.  Avoid cast.
115946         As suggested by Mark D. Baushke in
115947         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00009.html>,
115948         if readlink fails with buffer size just under MAXSIZE, try again
115949         with MAXSIZE.
115951 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
115953         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
115955 2004-11-02  Derek R. Price  <derek@ximbiot.com>
115956         and  Paul Eggert  <eggert@cs.ucla.edu>
115958         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
115959         (get_date): Overparenthesize to avoid GCC warning.
115961 2004-11-02  Bruno Haible  <bruno@clisp.org>
115963         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
115964         returns void.
115966 2004-11-02  Bruno Haible  <bruno@clisp.org>
115968         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
115969         function returns void.
115971 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
115973         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
115974         fflush_unlocked, flockfile, funlockfile, funlockfile,
115975         fputs_unlocked, putc_unlocked.
115977 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
115979         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
115980         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
115981         already declared.
115983 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
115985         * modules/getdate (Files): Add doc/getdate.texi.
115986         (Depends-on): Add setenv, xalloc.
115988 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
115990         * lib/getdate.y: Add support for TZ="foo" within a date string.
115991         Fix some bugs near time_t boundaries.  Reject dates with
115992         out-of-range components, e.g., "Sept 31".
115993         Include <stdlib.h>, "setenv.h", "xalloc.h".
115994         (ISDIGIT_LOCALE): Remove; unused.
115995         Note that the TZ and time functions used here are not reentrant.
115996         (mktime_ok, get_tz): New functions.
115997         (TZBUFSIZE): New constant.
115998         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
115999         This requires that we sometimes generate our own TZ="XXX..." setting.
116001 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
116003         * doc/getdate.texi: New file, from coreutils with modifications for
116004         the new TZ parsing.
116006 2004-10-27  Derek R. Price  <derek@ximbiot.com>
116008         * lib/mktime.c (not_equal_tm): Remove redundant check.
116010 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
116012         * modules/regex (lib_SOURCES): Add regex.c.
116013         Reported by James Youngman in
116014         <http://lists.gnu.org/r/bug-gnulib/2004-10/msg00199.html>.
116016 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
116018         * lib/getdate.y: Use Bison 1.875 features, and some minor
116019         code cleanups.  This change does not affect semantics.
116020         Don't include <stdlib.h>; no longer needed.
116021         Don't include unlocked-io.h; only the "#if TEST" code uses
116022         stdio, and performance isn't crucial there.
116023         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
116024         Bison 1.875 features as described below.
116025         All uses of "PC." replaced by "pc->".
116026         (YYSTYPE): Add a forward declaration.
116027         (yylex, yyerror): Use full prototypes in forward decls.
116028         Use "%pure-parser" rather than obsolescent "%pure_parser".
116029         Use %parse-param and %lex-param instead of obsolescent
116030         YYPARSE_PARAM and YYLEX_PARAM.
116031         (meridian_table, month_and_day_table, time_units_table,
116032         relative_time_table, time_zone_table, military_table,
116033         lookup_zone, lookup_word, get_date):
116034         Use NULL instead of 0 where appropriate.
116035         (to_hour): Avoid abort (), to avoid a dependency on
116036         stdlib.h.
116037         (yyerror, yylex): Now accepts parser_control * arg.
116038         (main) [TEST]: Use '\0' rather than 0 for char.
116040 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
116042         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
116044 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
116046         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
116047         It's now the caller's responsibility to handle the case where
116048         !HAVE_GETPAGESIZE && !defined getpagesize.
116050         * lib/mktime.c (leapyear): Arg is long int, not int.
116052 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
116054         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
116056 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
116058         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
116059         missing.  Problem reported by James Youngman.
116061 2004-10-16  Simon Josefsson  <jas@extundo.com>
116063         * gnulib-tool: Fix comments.  Fix parse problem.
116064         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
116066 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
116068         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
116069         implementation of getopt_long.  Problem reported by Alexander Taler in:
116070         http://lists.gnu.org/r/bug-gnulib/2004-10/msg00103.html
116072 2004-10-15  Bruno Haible  <bruno@clisp.org>
116074         * gnulib-tool: Untabify. Initialize supplied_libname.
116075         (func_usage): More homogenous output.
116076         (func_modules_transitive_closure, func_modules_to_filelist,
116077         func_emit_lib_Makefile_am): New functions.
116078         (func_import): New function, extracted from big case statement. Use
116079         func_get_license, func_modules_transitive_closure,
116080         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
116081         opt_lgpl. Don't use test -a, as it's not portable.
116082         (func_create_testdir): Use func_modules_transitive_closure,
116083         func_modules_to_filelist, func_emit_lib_Makefile_am.
116085 2004-10-15  Bruno Haible  <bruno@clisp.org>
116087         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
116089 2004-10-15  Bruno Haible  <bruno@clisp.org>
116091         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
116092         the portions belonging to each module.
116093         Suggested by Derek Robert Price <derek@ximbiot.com>.
116095 2004-10-12  Simon Josefsson  <jas@extundo.com>
116097         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
116098         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
116099         to real functions.
116101 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
116103         * modules/vsnprintf: New file.
116105 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
116107         * m4/vsnprintf.m4: New file.
116109 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
116111         * lib/vsnprintf.h: New file.
116112         * lib/vsnprintf.c: New file.
116114 2004-10-11  Bruno Haible  <bruno@clisp.org>
116116         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
116117         vsnprintf.
116119 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
116121         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
116123 2004-10-07  Bruno Haible  <bruno@clisp.org>
116125         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
116126         fits into the provided buffer.
116128 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
116130         * lib/diacrit.c, diacrit.h: Add GPL notice.
116132         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
116133         notice.
116134         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
116135         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
116136         This avoids a potential constant-folding bug.
116138 2004-10-05  Bruno Haible  <bruno@clisp.org>
116140         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
116141         for the declaration of strsep.
116143 2004-10-05  Bruno Haible  <bruno@clisp.org>
116145         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
116147 2004-10-04  Simon Josefsson  <jas@extundo.com>
116149         * modules/memmem: New file.
116150         * tests/test-memmem.c: New file.
116151         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
116153 2004-10-04  Simon Josefsson  <jas@extundo.com>
116155         * m4/memmem.m4: New file.
116157 2004-10-04  Simon Josefsson  <jas@extundo.com>
116159         * lib/memmem.h: New file.
116160         * lib/memmem.c: New file, taken from glibc.
116162 2004-10-04  Simon Josefsson  <jas@extundo.com>
116164         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
116165         '#ifdef USE_UNLOCKED_IO'.
116167 2004-10-04  Simon Josefsson  <jas@extundo.com>
116169         * config/srclist.txt: Add memmem from glibc.
116171 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
116173         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
116175         * modules/argmatch, modules/argp, modules/closeout, modules/error,
116176         modules/exclude, modules/getdate, modules/getline,
116177         modules/getndelim2, modules/getpass, modules/getpass-gnu,
116178         modules/getusershell, modules/linebuffer, modules/md5,
116179         modules/mountlist, modules/posixtm, modules/readtokens,
116180         modules/readutmp, modules/regex, modules/sha1,
116181         modules/version-etc, modules/yesno:
116182         Remove dependency on unlocked-io.
116184 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
116186         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
116188         * m4/unlocked-io.m4: Add copyright notice.
116189         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
116191 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
116193         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
116194         * lib/xmalloc.c (xmemdup): Likewise.
116195         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
116196         XFREE): Remove these long-obsolescent macros.
116197         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
116198         * lib/xstrdup.c: Remove.
116200         * lib/regex.c (re_comp): Cast gettext return value to char *,
116201         Problem reported by Martin Neitzel via Mark D. Baushke.
116203 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
116205         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
116206         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
116207         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
116208         regex.c, sha1.c, version-etc.c, yesno.c:
116209         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
116210         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
116211         the includer's responsibility.
116213         Sync from coreutils.
116215         * lib/modechange.c (mode_compile): Don't decrement a pointer that
116216         points to the start of a string, as the C Standard says the
116217         resulting behavior is undefined.
116219         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
116220         simple -> simple_backups, numbered_existing ->
116221         numbered_existing_backups, numbered -> numbered_backups
116222         to avoid shadowing problems.  All uses changed.
116223         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
116224         * lib/backupfile.c (check_extension, numbered_backup):
116225         Rename locals to avoid shadowing 'basename'.
116226         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
116227         once.
116229         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
116230         * lib/.cvsignore: Add getopt.h.
116232 2004-10-04  Bruno Haible  <bruno@clisp.org>
116234         * modules/README: New file.
116235         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
116236         not a module.
116238 2004-10-02  Jim Meyering  <jim@meyering.net>
116240         * lib/dirfd.h, getpagesize.h: Add copyright notice.
116242 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
116244         * modules/strsep: New file.
116246 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
116248         * m4/strsep.m4: New file.
116250 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
116252         * lib/strsep.h: New file.
116253         * lib/strsep.c: New file.
116255 2004-10-01  Simon Josefsson  <jas@extundo.com>
116257         * lib/snprintf.c (snprintf): Handle size==0.
116259 2004-10-01  Simon Josefsson  <jas@extundo.com>
116260             Bruno Haible  <bruno@clisp.org>
116262         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
116263         (snprintf): Declare 'args'.
116265 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
116267         * lib/snprintf.c: Remove comments as to why each header is needed.
116269 2004-10-01  Bruno Haible  <bruno@clisp.org>
116271         * MODULES.html.sh: Add strsep.
116273 2004-09-30  Simon Josefsson  <jas@extundo.com>
116275         * modules/snprintf: New file.
116277 2004-09-30  Simon Josefsson  <jas@extundo.com>
116279         * m4/snprintf.m4: New file.
116281 2004-09-30  Simon Josefsson  <jas@extundo.com>
116283         * lib/snprintf.h, lib/snprintf.c: New files.
116285 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
116287         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
116288         (hol_entry_help): Never translate an empty string.
116289         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
116290         * lib/argp.h (OPTION_NO_TRANS): New option.
116292 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
116294         * modules/argp (Maintainer): Replace Simon Josefsson
116295         by Sergey Poznyakoff.
116297 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
116299         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
116300         changes merged back into glibc.
116302 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
116304         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
116306 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
116308         * lib/xvasprintf.c: Include xalloc.h.
116309         (xvasprintf): Use xalloc_die, not xmalloc_die.
116311 2004-09-29  Bruno Haible  <bruno@clisp.org>
116313         * modules/alloca-opt: New file, derived from modules/alloca.
116314         * modules/allocsa: Depend on alloca-opt instead of alloca.
116315         * modules/setenv: Likewise.
116316         * modules/vasnprintf: Likewise.
116317         * MODULES.html.sh: Add alloca-opt.
116319 2004-09-28  Simon Josefsson  <jas@extundo.com>
116321         * gnulib-tool: New parameter --lgpl, to asseert that modules are
116322         LGPL, and to replace license template from GPL to LGPL.
116324 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
116326         * modules/dummy: Change license to LGPL.
116328 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
116330         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
116332 2004-09-24  Simon Josefsson  <jas@extundo.com>
116334         * modules/minmax (License): Change from GPL to LGPL.
116336 2004-09-23  Simon Josefsson  <jas@extundo.com>
116338         * gnulib-tool (--import): Typo.
116340 2004-09-23  Simon Josefsson  <jas@extundo.com>
116342         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
116344 2004-09-22  Bruno Haible  <bruno@clisp.org>
116346         * modules/*: Add 'License' field.
116347         * gnulib-tool: Accept --extract-license option.
116348         (func_get_license): New function.
116350 2004-09-21  Bruno Haible  <bruno@clisp.org>
116352         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
116353         Reported by Simon Josefsson.
116355 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
116357         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
116358         gl_AC_TYPE_LONG_LONG.
116360 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
116362         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
116364 2004-09-18  Simon Josefsson  <jas@extundo.com>
116365         and  Paul Eggert  <eggert@cs.ucla.edu>
116367         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
116368         calls with autoreconf.  Define GL_LIB.
116370 2004-09-14  Karl Berry  <karl@gnu.org>
116372         * config/srclist.txt: unsync setenv.c, sigh.
116374 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
116376         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
116377         Problem reported by Bruno Haible in:
116378         http://lists.gnu.org/r/bug-tar/2004-09/msg00023.html
116380 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
116382         * config/srclist.txt: Comment out argp-pvh.c.
116384 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
116386         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
116387         in case some system header has #define'd it.  Problem reported by
116388         Soeren D. Schulze in
116389         <http://lists.gnu.org/r/bug-gnulib/2004-09/msg00017.html>.
116391 2004-09-09  Karl Berry  <karl@gnu.org>
116393         * regex.[ch]: delete from the root.  These were supposed to be
116394                 synced with emacs cvs, but this has not happened for about
116395                 a year, and anyway nothing else uses emacs regex.[ch].
116396                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
116397                 lib/regex[.ch] is untouched.
116399 2004-09-09  Bruno Haible  <bruno@clisp.org>
116401         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
116403 2004-09-09  Bruno Haible  <bruno@clisp.org>
116405         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
116406         modifications.
116407         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
116409 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
116411         * modules/xvasprintf: New file.
116412         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
116414 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
116416         * lib/xvasprintf.h: New file.
116417         * lib/xvasprintf.c: New file.
116418         * lib/xasprintf.c: New file.
116420 2004-09-08  Bruno Haible  <bruno@clisp.org>
116422         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
116424 2004-09-08  Bruno Haible  <bruno@clisp.org>
116426         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
116427         length is > INT_MAX.
116428         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
116429         more.
116431 2004-09-08  Bruno Haible  <bruno@clisp.org>
116433         * lib/stdint_.h: New file, taken from GNU clisp.
116435 2004-09-08  Bruno Haible  <bruno@clisp.org>
116436             Oskar Liljeblad  <oskar@osk.mine.nu>
116438         * modules/stdint: New file.
116439         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
116441 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
116443         Import from coreutils.
116444         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
116445         strings on unbounded length.  alloca's performance benefits aren't
116446         that important here.
116447         (V_STRDUP): Remove.
116448         (parse_with_separator): New function, with most of the internals
116449         of the old parse_user_spec.  Allow user to omit both user and group,
116450         for compatibility with FreeBSD.
116451         Clone only the user name, not the entire spec.
116452         Do not set *uid, *gid unless entirely successful.
116453         Avoid memory leak in some failing cases.
116454         Fix regression for USER.GROUP reported by Dmitry V. Levin in
116455         <http://lists.gnu.org/r/bug-coreutils/2004-08/msg00102.html>
116456         (parse_user_spec): Rewrite to use parse_with_separator.
116458 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
116460         * modules/userspec: Don't depend on alloca.
116462 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
116464         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
116466 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
116468         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
116469         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
116470         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
116472 2004-08-16  Simon Josefsson  <jas@extundo.com>
116474         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
116475         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
116476         Add --dry-run for --import.
116477         Let user provided command line parameters override configure.ac
116478         settings.
116480 2004-08-12  Simon Josefsson  <jas@extundo.com>
116482         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
116483         as discussed with Paul Eggert in threads rooted at
116484         <http://lists.gnu.org/r/bug-gnulib/2004-06/msg00039.html>
116485         and
116486         <http://lists.gnu.org/r/bug-gnulib/2004-07/msg00001.html>.
116487         Before, the test was empty, and relied on ELIDE_CODE in source
116488         code.)
116489         (gl_PREREQ_GETOPT): New macro.
116490         (gl_GETOPT): Use them.
116492 2004-08-12  Simon Josefsson  <jas@extundo.com>
116494         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
116495         * lib/getopt_.h: Renamed from getopt.h.
116497 2004-08-12  Simon Josefsson  <jas@extundo.com>
116499         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
116500         Change default library name from libfoo to libgnu.
116501         Now, if you have a configure.ac that says:
116502                 gl_SOURCE_BASE(gl)
116503                 gl_M4_BASE(gl/m4)
116504                 gl_MODULES(error getopt etcetera)
116505                 gl_INIT
116506         you can import all you need by running:
116507                 ../gnulib/gnulib-tool --import
116509         * modules/getopt (Files): Rename getopt.h to getopt_.h.
116510         (Makefile.am): Rewrite, use logic from argz.
116511         (Include): Use <getopt.h> instead of "getopt.h".
116513 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
116515         * modules/argp (Files): Add m4/unlocked-io.m4.
116516         (Depends-on): Add extensions.
116518 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
116520         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
116521         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
116522         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
116523         Check for program_invocation_name, program_invocation_short_name,
116524         flockfile, funlockfile, features.h, _getopt_long_only_r.
116526 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
116528         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
116529         its complicated substitute.
116530         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
116531         and program_invocation_name.
116532         (__argp_basename) [!_LIBC]: Remove; the only use was
116533         replaced by its body.
116534         (__argp_short_program_name): Change condition from
116535         !defined __argp_short_program_name to
116536         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
116537         to match argp-namefrob.h.
116538         (__argp_failure): Don't assume strerror_r returns char *.
116539         * lib/argp-parse.c (N_): Define unconditionally.
116540         (argp_default_options): Fill out initializers with 0 to avoid
116541         gcc warnings.
116543 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
116545         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
116546         getopt1.c.
116548 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
116550         Merge from coreutils.
116552         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
116554         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
116555         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
116557 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
116559         Merge from coreutils.
116561         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
116562         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
116563         for Reliant Unix 5.43.
116565         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
116566         (union fooround): Use uintmax_t, not long int.
116567         The rest is a merge from libc:
116568         [defined _LIBC]: Include <shlib-compat.h>.
116569         (_obstack) [defined _LIBC]: Remove after 2.3.4.
116571         * lib/settime.c (settime): Recode to avoid warning with
116572         Sun Forte C 6U2.
116574         * lib/strverscmp.c: Convert to UTF-8.
116576 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
116578         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
116579         m4/uintmax_t.m4.
116581 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
116583         * modules/xalloc-die: New file.
116584         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
116586         * modules/md5 (Files): Add m4/uint32_t.m4.
116587         * modules/sha1: Renamed from modules/sha.
116588         (Files):
116589         Rename lib/sha.h to lib/sha1.h.
116590         Rename lib/sha.c to lib/sha1.c.
116591         Rename m4/sha.m4 to m4/sha1.m4.
116592         (lib_SOURCES): Likewise.
116593         (configure.ac): Rename gl_SHA to gl_SHA1.
116594         (Include): sha.h -> sha1.h.
116596 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
116598         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
116599         * m4/sha1.m4: Renamed from sha.m4.
116600         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
116602 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
116604         * lib/obstack.h (obstack_empty_p):
116605         Don't assume that chunk->contents is suitably aligned.
116606         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
116607         Likewise. Problem reported by Benno in
116608         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
116610         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
116611         readable.  This could be improved further but it'd take some work.
116613 2004-08-08  Simon Josefsson  <jas@extundo.com>
116615         * modules/xgethostname (Depends-on): Remove exit and error (not
116616         used).
116618         * modules/getpass-gnu: Add getpass.h.
116619         (Depends-on): Add stdbool.
116620         * modules/getpass: Add getpass.h.
116622 2004-08-08  Simon Josefsson  <jas@extundo.com>
116624         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
116625         Check getpass declaration.
116627 2004-08-08  Simon Josefsson  <jas@extundo.com>
116629         * lib/xgethostname.c: Don't include error.h (not used).
116631         * lib/getpass.h: Add.
116632         * lib/getpass.c: Include getpass.h first.
116634 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
116636         * lib/xalloc-die.c: New file.
116637         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
116638         All uses removed.
116639         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
116640         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
116641         xalloc-die.c.
116642         (_, N_, xalloc_die): Move to xalloc-die.c.
116643         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
116644         so that we needn't mess with xalloc_msg_memory_exhausted.
116646         * lib/sha1.h: Renamed from sha.h.
116647         (SHA1_H): Renamed from _SHA_H.
116648         (sha1_ctx): Renamed from sha_ctx.
116649         (sha1_init_ctx): Renamed from sha_init_ctx.
116650         (sha1_process_block): Renamed from sha_process_block.
116651         (sha1_process_bytes): Renamed from sha_process_bytes.
116652         (sha1_finish_ctx): Renamed from sha_finish_ctx.
116653         (sha1_read_ctx): Renamed from sha_read_ctx.
116654         (sha1_stream): Renamed from sha_stream.
116655         (sha1_buffer): Renamed from sha_buffer.
116656         * lib/sha1.c: Likewise; renamed from sha.c.
116657         Do not include <sys/types.h>.
116658         Include <stddef.h> rather than <stdlib.h>.
116660 2004-08-08  Bruno Haible  <bruno@clisp.org>
116662         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
116663         FILESYSTEM_PREFIX_LEN.
116664         * lib/progreloc.c: Likewise.
116665         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
116667 2004-08-06  Simon Josefsson  <jas@extundo.com>
116669         * modules/progname (Depends-on): Don't depend on stdbool.
116671 2004-08-06  Simon Josefsson  <jas@extundo.com>
116673         * modules/getsubopt: New file.
116674         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
116675         getsubopt.
116677 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
116679         More merge from coreutils.
116681         * m4/utimens.m4, m4/utimecmp.m4: New files.
116682         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
116683         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
116684         prereq.m4, sha.m4: Import changes from coreutils.
116686 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
116688         More merge from coreutils.
116689         * modules/raise, modules/readtokens0, modules/utimens:
116690         * modules/utimecmp, module/xnanosleep: New files.
116691         * modules/strftime: Add lib/strftime.h.
116692         Change include from <time.h> to "strftime.h".
116693         * modules/yesno: Add lib/yesno.h.
116694         * modules/backupfile: Remove lib/addext.c.
116695         * modules/euidaccess: Add stat-macros.h.
116696         * modules/canonicalize, modules/euidaccess,
116697         modules/filemode, modules/lchown, modules/makepath,
116698         modules/rmdir, modules/stat: Likewise.
116700 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
116702         Merge from tar.
116703         * lib/argp-help.c (make_hol, hol_append): Don't assume that
116704         SIZE_MAX is a valid preprocessor constant.
116705         (__argp_basename): Change from "#ifndef _LIBC"
116706         to "#ifndef __argp_short_program_name", so that
116707         we don't compile these functions for tar.
116709         More merges from coreutils.
116710         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
116711         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
116712         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
116713         * lib/addext.c: Remove; no longer needed.
116714         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
116715         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
116716         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
116717         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
116718         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
116719         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
116720         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
116721         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
116722         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
116723         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
116724         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
116725         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
116726         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
116727         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
116728         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
116729         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
116730         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
116731         Import changes from coreutils.
116733 2004-08-05  Simon Josefsson  <jas@extundo.com>
116735         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
116737 2004-08-05  Simon Josefsson  <jas@extundo.com>
116739         * m4/getsubopt.m4: New file.
116741 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
116743         Merge from coreutils.
116745         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
116746         * m4/getcwd-path-max.m4: New files.
116748         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
116749         FILESYSTEM_PREFIX_LEN ->
116750         FILE_SYSTEM_PREFIX_LEN.
116751         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
116752         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
116753         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
116754         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
116756         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
116757         prerequisite modules now handle the DOS stuff.
116758         Don't check for unistd.h.
116760 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
116762         Merge from coreutils.
116764         * lib/.gdb-history: Remove; this doesn't belong here.
116766         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
116767         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
116768         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
116769         * lib/getcwd.c: New files.
116771         * lib/dirname.h: Include <stdbool.h>.
116772         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
116773         for consistency with POSIX terminology.  All uses changed.
116774         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
116775         (strip_trailing_slashes): Use bool for booleans.
116776         * lib/stripslash.c (strip_trailing_slashes): Likewise.
116778         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
116779         sometimes returns a positive errno value even when it succeeds.
116780         (print_errno_message) [!LIBC]: Fall back on strerror if
116781         __strerror_r fails.
116783         * lib/path-concat.c (mempcpy): Don't define if a system header defines
116784         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
116785         (longest_relative_suffix): New function.
116786         (path_concat): Use it.  Assume first argument is not NULL.
116787         Port to DOS.  Omit redundant separators.
116788         Report an error instead of returning NULL.
116789         Use mempcpy instead of memcpy.
116790         (xpath_concat): Remove: not declared or used.
116792         * lib/same.h: Include <stdbool.h>
116793         (same_name): Return bool, not int.
116794         * lib/same.c (same_name): Likewise.
116795         (errno): Don't declare; we assume C89 or better now.
116797         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
116798         if not already defined.
116800         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
116801         * lib/dup-safer.c (errno): Likewise.
116803 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
116805         Merge from coreutils.
116806         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
116807         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
116808         * modules/path-concat: Don't depend on strdup.
116810 2004-08-03  Simon Josefsson  <jas@extundo.com>
116812         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
116813         * lib/progname.h: Don't include stdbool.h.
116815 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
116817         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
116818         * MODULES.html.sh (func_all_modules): Remove fatal.
116820 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
116822         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
116824 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
116826         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
116827         working.
116829 2004-08-02  Simon Josefsson  <jas@extundo.com>
116831         * lib/getsubopt.h: New file, with comments from Bruno Haible.
116832         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
116833         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
116835 2004-08-01  Simon Josefsson  <jas@extundo.com>
116837         * lib/xgetdomainname.c: Include stdlib.h, for free().
116839 2004-07-19  Bruno Haible  <bruno@clisp.org>
116841         * MODULES.html.sh (func_all_modules): Add dummy.
116843 2004-07-16  Simon Josefsson  <jas@extundo.com>
116845         * modules/dummy: New file.
116847 2004-07-16  Simon Josefsson  <jas@extundo.com>
116849         * lib/dummy.c: New file.
116851 2004-07-16  Bruno Haible  <bruno@clisp.org>
116853         * lib/backupfile.h: Add extern "C" for C++.
116854         * lib/closeout.h: Likewise.
116855         * lib/copy-file.h: Likewise.
116856         * lib/findprog.h: Likewise.
116857         * lib/full-write.h: Likewise.
116858         * lib/pathname.h: Likewise.
116859         * lib/progname.h: Likewise.
116860         * lib/stpcpy.h: Likewise.
116861         * lib/stpncpy.h: Likewise.
116862         * lib/strcase.h: Likewise.
116863         * lib/strstr.h: Likewise.
116864         * lib/xalloc.h: Likewise.
116866         * lib/mbswidth.h: Add extern "C" for C++.
116867         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
116869 2004-07-13  Robert Millan  <robertmh@gnu.org>
116871         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
116873 2004-07-09  Simon Josefsson  <jas@extundo.com>
116875         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
116876         failed without this.)
116878 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
116880         * modules/chown (Files): Add lib/fchown-stub.c, since
116881         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
116883 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
116885         * lib/fchown-stub.c: New file.
116887 2004-06-24  Jim Meyering  <jim@meyering.net>
116889         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
116891 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
116893         * modules/argz: Omit "#include".
116895         * MODULES.html.sh (func_all_modules): Add calloc, to match
116896         2004-06-01 addition of calloc module.
116898 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
116900         * m4/argz.m4: New file, which is autoupdated from libtool.
116902 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
116904         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
116905         libtool.
116907 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
116909         * config/srclist-update: Don't insist on "USA." before the
116910         close-comment, as libtool omits the period and puts the */ on a
116911         separate line.
116912         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
116913         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
116915 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
116917         * modules/argz: New file.
116918         * MODULES.html.sh (func_all_modules): Add argz.
116920 2004-06-12  Jim Meyering  <jim@meyering.net>
116921         and  Paul Eggert  <eggert@cs.ucla.edu>
116923         * modules/hash (Files): Add lib/xalloc.h.
116924         * modules/pipe (Depends-on): Add wait-process.
116925         * modules/stat (Depends-on): Add xalloc.
116926         * modules/userspec (Files): Add lib/userspec.h.
116927         * modules/xstrto
116929         Upgrade from gettext-0.13.
116930         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
116931         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
116932         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
116934 2004-06-10  Jim Meyering  <jim@meyering.net>
116936         * lib/calloc.c: New file.
116938 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
116940         * lib/getdate.y (yylex): Allow space between sign and number.
116941         Problem reported by Dan Jacobson.
116943 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
116945         Merge from coreutils CVS.
116947         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
116948         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
116949         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
116950         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
116951         xstrtol.m4: Fix copyright date and/or serial number.
116953         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
116954         See if we need an fchown replacement.
116955         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
116956         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
116957         and use the replacement function if we detect either defect.
116959         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
116960         gl_UTIMECMP.
116962 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
116963         and  Jim Meyering  <jim@meyering.net>
116965         Merge from coreutils CVS.
116967         * lib/stat-macros.h: New file, with contents from file-type.h
116968         and coreutils' system.h.
116969         * lib/file-type.c: Include "stat-macros.h".
116970         * lib/file-type.h (file_type): Move all macro definitions to new file,
116971         stat-macros.h.
116973         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
116974         Wrap old code with this conditional.
116975         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
116976         function that does not dereference symlinks.
116977         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
116979         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
116980         dependency problems.
116981         (xreadlink): Accept new arg SIZE, for efficiency.
116982         All decls and uses changed.
116983         * lib/xreadlink.h: Include <stddef.h>, for size_t.
116985         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
116986         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
116988         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
116989         sysexits.h.
116991 2004-06-01  Jim Meyering  <jim@meyering.net>
116993         * m4/calloc.m4: New file.
116995 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
116997         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
116998         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
116999         Also, fix a typo in a diagnostic.
117001 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
117003         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
117004         or AC_FUNC_REALLOC.
117006 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
117008         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
117009         macros to be defined.
117010         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
117011         the allocator returns NULL because the requested size is zero.
117013 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
117015         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
117016         var.  Add comment explaining why libc still defines it.  This
117017         merges the following patch from glibc:
117018         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
117020 2004-05-20  Andreas Schwab  <schwab@suse.de>
117022         * m4/free.m4: Replace free if it not known to work, not the other
117023         way round.
117025 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
117027         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
117028         present in glibc since revision 1.1 of this file.
117029         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
117030         obstack_alignment_mask, obstack_alloc, obstack_base,
117031         obstack_blank, obstack_blank_fast, obstack_chunk_size,
117032         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
117033         obstack_grow0, obstack_init, obstack_int_grow,
117034         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
117035         obstack_next_free, obstack_object_size, obstack_ptr_grow,
117036         obstack_ptr_grow_fast, obstack_room): Remove declarations of
117037         nonexistent functions.
117039 2004-05-18  Karl Berry  <karl@gnu.org>
117041         * config/srclist.txt: break link for vasnprintf.c.
117043 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
117045         Port obstack to the AS/400, where pointers are 16 bytes wide and
117046         you cannot cast an integer to a valid pointer.  This patch is
117047         currently waiting to be integrated into glibc; see
117048         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
117050         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
117051         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
117052         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
117053         (struct obstack): temp member is now a union of a pointer and
117054         an integer, instead of an integer.  All integer uses changed.
117055         This does not affect the physical layout of struct obstack,
117056         except on hosts (like the AS/400) where the size or alignment of
117057         void * is greater than that of ptrdiff_t.
117058         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
117059         __STDC__)]: Store temporary in pointer member of union, not
117060         integer member.
117061         * lib/obstack.c: Include <stddef.h>, for offsetof.
117062         (struct fooalign): Remove; it doesn't need a name.
117063         (union fooround): Change double to long double, and add void *.
117064         (DEFAULT_ALIGNMENT): Use offsetof to compute.
117065         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
117066         not a macro.  Hence the values are always int; so remove all
117067         casts-to-int in uses.
117069 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
117071         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
117072         we can get this patch merged into glibc.
117074 2004-05-17  Derek R. Price  <derek@ximbiot.com>
117075             Paul Eggert  <eggert@cs.ucla.edu>
117077         * m4/argp: Depend on alloca.
117079 2004-05-17  Derek R. Price  <derek@ximbiot.com>
117080             Paul Eggert  <eggert@cs.ucla.edu>
117082         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
117083         freecoding.
117085 2004-05-17  Bruno Haible  <bruno@clisp.org>
117087         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
117088         precision that consists of a '.' followed by an empty digit string.
117089         Patch by Tor Lillqvist <tml@iki.fi>.
117091 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
117093         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
117094         for backward compatibility with older code.  We need our own
117095         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
117096         it under some other name, and our alloca.h will define it.
117098 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
117099             Derek Price  <derek@ximbiot.com>
117101         * lib/alloca.c: Include <alloca.h>, to get our interface.
117102         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
117103         include <alloca.h> first.  Use C89 prototype for alloca; this
117104         requires including <stddef.h> for size_t.  Use extern "C" if C++.
117105         Use #elif for simplicity, since we can assume C89 now.
117106         Don't try to source the system alloca.h since it will not be found
117107         and to prevent recursively including its replacement.
117108         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
117109         * lib/regex.c: Likewise.
117111 2004-05-16  Derek Price  <derek@ximbiot.com>
117112             Paul Eggert  <eggert@cs.ucla.edu>
117114         getline cleanup.  This changes the getndelim2 API: both order of
117115         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
117116         no delimiter).
117118         * lib/getline.c: Don't include stddef.h or stdio.h, since our
117119         interface does that.
117120         (getline): Always use getdelim, so that we don't have two
117121         copies of this code.
117122         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
117123         if available.
117124         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
117125         (GETNDELIM2_MAXIMUM): New macro.
117126         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
117127         instead of the old practice of delim2==0.  All callers changed.
117128         Return -1 on overflow, instead of returning junk.
117129         Do not set *linesize unless allocation succeeds.
117130         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
117131         that we include sys/types.h.
117132         * lib/getnline.h: Likewise.
117133         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
117134         (getndelim2): Reorder arguments.
117135         * lib/getnline.c (getnline, getndelim):
117136         Don't discard the NMAX argument.
117137         (getnline): Invoke getndelim, to avoid code duplication.
117138         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
117139         of (size_t) -1 by callers of the getnline family.
117141 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
117143         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
117144         Check for gettimeofday.
117145         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
117146         Check for settimeofday, stime.
117148 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
117150         * lib/nanosleep.c (suspended): Change its type from int to
117151         sig_atomic_t volatile.
117152         (first_call): Make it private to rpl_nanosleep, and have it
117153         be zero initially as that's a bit faster.
117154         (my_usleep): Round up fractional times instead of truncating them,
117155         as this is the usual meaning for 'sleep'.
117157         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
117158         doesn't work.
117159         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
117160         (ENOSYS): Define if not defined.
117161         (settime): Fall back on stime if it exists and settimeofday fails.
117162         But don't bother with fallbacks if a method fails with errno == EPERM.
117164 2004-05-11  Jim Meyering  <jim@meyering.net>
117166         Prior to this change, the save_cwd caller required read access to the
117167         current directory on most systems (ones with the fchdir function).
117169         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
117170         fails, try write-only, and finally, resort to using xgetcwd.
117172 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
117174         * lib/obstack.c, obstack.h: Import changes from libc.
117176 2004-04-28  Bruno Haible  <bruno@clisp.org>
117178         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
117179         also implicitly appends .exe to executables.
117180         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
117181         accepts Windows pathnames.
117182         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
117183         Treat Cygwin like Windows, since it now accepts Windows pathnames.
117184         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
117185         Treat Cygwin like Windows, since it now accepts Windows pathnames.
117186         Reported by Derek Robert Price <derek@ximbiot.com>.
117188 2004-04-21  Karl Berry  <karl@gnu.org>
117190         * config/srclist.txt (localcharset.c): break sync.
117192 2004-04-20  Paul Eggert  <eggert@twinsun.com>
117194         * m4/host-os.m4: Add a copyright notice.
117196 2004-04-20  Jim Meyering  <jim@meyering.net>
117198         Change UTILS_ to gl_ in AC_DEFINE'd names.
117199         Change utils_- and jm_-prefixed variables, too.
117200         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
117201         UTILS_FUNC_MKDIR_TRAILING_SLASH.
117202         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
117204         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
117205         Don't emit trailing blanks.
117206         Also rename jm_-prefixed variables to have gl_ prefix.
117208         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
117209         Also rename jm_-prefixed variables to have gl_ prefix.
117211         * m4/jm-macros.m4: Reflect the renamings.
117212         * m4/prereq.m4: Likewise.
117214 2004-04-20  Jim Meyering  <jim@meyering.net>
117216         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
117217         memory.
117219 2004-04-20  Jim Meyering  <jim@meyering.net>
117220             Bruno Haible  <bruno@clisp.org>
117222         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
117223         memory when realloc fails.
117225 2004-04-19  Jim Meyering  <jim@meyering.net>
117227         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
117228         now that readutmp.c may call `free (0)'.
117230 2004-04-19  Bruno Haible  <bruno@clisp.org>
117232         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
117233         * m4/inttypes_h.m4: Likewise.
117234         * m4/stdint_h.m4: Likewise.
117235         * m4/intmax_t.m4: Likewise.
117236         * m4/uintmax_t.m4: Likewise.
117238 2004-04-18  Jim Meyering  <jim@meyering.net>
117240         * m4/prereq.m4: Don't forbid jm_ prefix.
117242         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
117243         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
117244         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
117245         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
117246         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
117247         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
117248         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
117249         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
117250         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
117251         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
117252         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
117253         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
117254         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
117255         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
117256         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
117257         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
117258         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
117259         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
117260         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
117262 2004-04-18  Jim Meyering  <jim@meyering.net>
117264         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
117265         failure, don't leak memory and do call END_UTMP_ENT.
117267 2004-04-16  Jim Meyering  <jim@meyering.net>
117269         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
117270         coreutils' stat program.
117271         (gl_PREREQ): Don't require jm_PREREQ_STAT.
117273 2004-04-11  Paul Eggert  <eggert@twinsun.com>
117275         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
117276         C89.
117277         (CHAR_BIT): Remove, since we assume C89.
117278         Include <stdint.h> if available, as per current Autoconf CVS advice.
117280 2004-03-31  Jim Meyering  <jim@meyering.net>
117282         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
117283         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
117284         * m4/xalloc.m4: Likewise.
117286 2004-03-30  Paul Eggert  <eggert@twinsun.com>
117288         Merge from coreutils.
117290         * m4/inttostr.m4: New file.
117291         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
117292         Require AM_STDBOOL_H and gl_TIMESPEC instead.
117293         Require gl_CLOCK_TIME.
117294         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
117296 2004-03-30  Paul Eggert  <eggert@twinsun.com>
117298         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
117299         not bool, to be more consistent with Unix conventions.
117300         Suggested by Bruno Haible.
117302         Merge from coreutils.
117304         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
117305         * lib/umaxtostr.c: New files.
117307         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
117308         the usual <time.h> dance.
117309         (get_date): Change signature to support fractional time stamps.
117310         All callers changed.
117311         * lib/getdate.y: Include "getdate.h" first, as we can now
117312         assume C89 and don't need to worry about 'const'.
117313         Similarly, include "unlocked-io.h" near start, not in middle.
117314         Include <limits.h>.
117315         (textint.value): Use long int rather than int.
117316         (textint.digits): Use size_t rather than int.
117317         (BILLION, LOG10_BILLION): New constants.
117318         (parser_control): New member rel_ns.  Members day_ordinal,
117319         time_zone, month, day, hour, minutes, rel_year, rel_month,
117320         rel_day, rel_hour, rel_minutes, rel_seconds
117321         are now long int, not int.  Member seconds is now struct timespec,
117322         not int.  New member timespec_seen.  Members dates_seen, days_seen,
117323         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
117324         not int.
117325         (%union.intval): Now long int, not int.
117326         New member timespec.
117327         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
117328         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
117329         (spec): Now is a timespec or an item list.
117330         (timespec, items): New nonterminals.
117331         (time, rel, relunit, number, get_date):
117332         Add support for fractional seconds.
117333         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
117334         (gmtime, localtime, mktime): Remove decls; not needed with C89.
117335         (to_hour): First arg is now long int, not int.
117336         (to_year): Returns long int, not int.
117337         Don't treat year -70 like 70.
117338         (tm_diff): Returns long int, not int.
117339         (lookup_word): Use bool instead of int when appropriate.
117340         (yylex): Use size_t for count, not int.
117341         Detect overflow when parsing large integer constants.
117342         Add support for fractions.
117343         (get_date): Make pointers 'const' if possible.
117344         Use more-portable code to detect integer overflow.
117345         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
117346         Don't use ctime; it's not reliable if the year has >4 digits.
117348         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
117349         This is for compatibility with BSD.
117351         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
117352         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
117353         From coreutils' system.h.
117355         * lib/userspec.c: Don't include "posixver.h".
117356         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
117357         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
117358         compatible extension.  Simplify code by removing a boolean int
117359         that was always nonzero if a string was nonnull.
117361 2004-03-30  Jim Meyering  <jim@meyering.net>
117363         Merge from coreutils.
117365         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
117366         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
117367         on some systems one must include <grp.h> before it.
117368         Reported by Christian Krackowizer.
117370 2004-03-30  Jim Meyering  <jim@meyering.net>
117372         Merge from coreutils.
117374         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
117376         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
117377         an empty input stream.
117379         * lib/readtokens.c: Include <stdbool.h>.
117380         (readtoken): Use `size_t' rather than int/long.
117381         All callers adjusted.
117382         Use `bool' rather than `int' where appropriate.
117383         Use memset rather than an explicit loop.
117384         Use x2nrealloc rather than xrealloc.
117385         Allow the use of `\0' as a delimiter.
117386         (readtokens): Likewise.
117387         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
117389 2004-03-30  Jim Meyering  <jim@meyering.net>
117391         * m4/realloc.m4: Remove file, since now it does no more than
117392         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
117393         the `configure.ac' section of module/realloc.
117394         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
117396 2004-03-30  Bruno Haible  <bruno@clisp.org>
117398         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
117399         nonnull.
117401 2004-03-29  Paul Eggert  <eggert@twinsun.com>
117403         Merge changes to getloadavg.c from coreutils and Emacs.
117405         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
117406         Define to an expression, not to the empty string.
117407         Include cloexec.h and xalloc.h.
117408         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
117409         Use set_cloexec_flag rather than rolling our own.
117410         * lib/cloexec.c, lib/cloexec.h: New files.
117412 2004-03-29  Paul Eggert  <eggert@twinsun.com>
117414         * m4/cloexec.m4: New file.
117416 2004-03-18  Paul Eggert  <eggert@twinsun.com>
117418         * lib/getopt.h: Sync with libc CVS.
117420 2004-03-18  Paul Eggert  <eggert@twinsun.com>
117421             Bruno Haible  <bruno@clisp.org>
117423         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
117424         mbswidth.
117426 2004-03-18  Paul Eggert  <eggert@twinsun.com>
117427             Bruno Haible  <bruno@clisp.org>
117429         * lib/mbswidth.h: Include <wchar.h> only if
117430         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
117431         <wchar.h>.
117432         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
117434 2004-03-09  Paul Eggert  <eggert@twinsun.com>
117436         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
117437         Sync with libc CVS.
117438         * lib/getopt_int.h: New file, also synced from libc.
117440 2004-03-09  Paul Eggert  <eggert@twinsun.com>
117442         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
117443         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
117444         Bring back getopt.c, getopt.h, getopt1.c.
117446 2004-03-07  Paul Eggert  <eggert@twinsun.com>
117448         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
117449         All uses changed.  Check for sa_sigaction member; this fixes
117450         a bug first reported by Jason Andrade in
117451         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
117453 2004-03-07  Paul Eggert  <eggert@twinsun.com>
117455         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
117456         '#if' expressions.  Unlike the code it replaces, it does not
117457         depend on (defined _SC_PAGESIZE).  However, it does depend on
117458         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
117459         first reported by Jason Andrade in
117460         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
117462 2004-02-25  Simon Josefsson  <jas@extundo.com>
117464         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
117466 2004-02-25  Simon Josefsson  <jas@extundo.com>
117468         * lib/strdup.h: New file.
117469         * lib/strdup.c: Include it.
117470         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
117471         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
117473 2004-02-23  Karl Berry  <karl@gnu.org>
117475         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
117476         (from fencepost.gnu.org:/gd/gnuorg).
117478 2004-02-23  Karl Berry  <karl@gnu.org>
117480         * config/srclistvars.sh (GNUORG) [karl]: redefine.
117481         * config/srclist.txt: add maintain/standards documents.
117483 2004-02-18  Bruno Haible  <bruno@clisp.org>
117485         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
117486         Reported by Derek Robert Price <derek@ximbiot.com>.
117488 2004-02-16  Karl Berry  <karl@gnu.org>
117490         * config/mkinstalldirs, install-sh: update from automake.
117492 2004-02-06  Karl Berry  <karl@gnu.org>
117494         * m4/po.m4: update from gettext 0.14.1.
117496 2004-02-06  Karl Berry  <karl@gnu.org>
117498         * lib/config.charset: update from gettext 0.14.1.
117500 2004-02-05  Paul Eggert  <eggert@twinsun.com>
117502         Add comments and code, prompted by suggestions from Bruno Haible
117503         for sh-quote.
117504         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
117505         describing the enum quoting_style values.
117506         * lib/quotearg.c (quotearg_alloc): New function.
117507         (quotearg_buffer_restyled): Treat lone { and } as special.
117508         Treat = as special.  Work around bug with older shells
117509         that "see" a '\' that is really the 2nd byte of a multibyte char.
117510         Quote empty string with shell_quoting_style.
117512 2004-02-03  Bruno Haible  <bruno@clisp.org>
117514         * m4/pipe.m4: New file, from GNU gettext.
117516 2004-02-03  Bruno Haible  <bruno@clisp.org>
117518         * lib/pipe.h: New file, from GNU gettext.
117519         * lib/pipe.c: New file, from GNU gettext.
117521 2004-01-27  Bruno Haible  <bruno@clisp.org>
117523         * m4/execute.m4: New file, from GNU gettext.
117525 2004-01-27  Bruno Haible  <bruno@clisp.org>
117527         * lib/execute.h: New file, from GNU gettext.
117528         * lib/execute.c: New file, from GNU gettext.
117529         * lib/w32spawn.h: New file, from GNU gettext.
117531 2004-01-24  Paul Eggert  <eggert@twinsun.com>
117533         Merge from diffutils.
117535         * lib/file-type.c (file_type): Add typed memory objects.
117536         * lib/file-type.h (S_TYPEISTMO): New macro.
117538         * lib/c-stack.h (c_stack_action): Remove argv argument.
117539         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
117540         (die): Don't calculate message unless segv_action returns.
117541         (get_stack_location, min_address_from_argv, max_address_from_argv,
117542         volatile stack_base, volatile_stack_size): Remove.
117543         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
117544         that every segmentation violation is a stack overflow.  (Ouch!)
117545         See Debian bug 136249 (still outstanding) for more info about why
117546         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
117548 2004-01-24  Paul Eggert  <eggert@twinsun.com>
117550         Exit-status fix from coreutils.
117552         Use exit_failure consistently in place of EXIT_FAILURE,
117553         so that program exit statuses are consistent on failure.
117555         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
117556         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
117557         * lib/argmatch.h: Comment fix to match the above.
117558         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
117559         Now a macro referring to exit_failure, instead of a separate
117560         variable.  Include "exitfail.h" to get it.
117561         * lib/xstrtol.h: Include "exitfail.h".
117562         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
117564         * lib/long-options.c (parse_long_options): Use prototype
117565         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
117566         for clarity.
117568 2004-01-21  Jim Meyering  <jim@meyering.net>
117570         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
117571         so as not to conflict with a different-sized __mktime_internal
117572         function in GNU libc.
117573         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
117574         Problem building statically-linked `ls' reported by Michael Brunnbauer.
117576 2004-01-20  Karl Berry  <karl@gnu.org>
117578         * config/config.guess: update from config.
117580         * config/srclistvars.sh: GNUWWWLICENSES for karl.
117582 2004-01-20  Bruno Haible  <bruno@clisp.org>
117584         Safer stack allocation.
117585         * lib/setenv.c: Include allocsa.h.
117586         (alloca): Remove fallback definition.
117587         (freea): Remove macro.
117588         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
117589         instead of freea.
117591 2004-01-20  Bruno Haible  <bruno@clisp.org>
117593         * m4/eealloc.m4: New file, from GNU gettext.
117595 2004-01-20  Bruno Haible  <bruno@clisp.org>
117597         * m4/allocsa.m4: New file, from GNU gettext.
117599 2004-01-20  Bruno Haible  <bruno@clisp.org>
117601         * lib/xallocsa.h: New file, from GNU gettext.
117602         * lib/xallocsa.c: New file, from GNU gettext.
117604 2004-01-20  Bruno Haible  <bruno@clisp.org>
117606         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
117608 2004-01-20  Bruno Haible  <bruno@clisp.org>
117610         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
117611         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
117612         specially.
117614 2004-01-20  Bruno Haible  <bruno@clisp.org>
117616         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
117617         patch.
117619 2004-01-20  Bruno Haible  <bruno@clisp.org>
117621         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
117623 2004-01-20  Bruno Haible  <bruno@clisp.org>
117625         * lib/eealloc.h: New file.
117627 2004-01-20  Bruno Haible  <bruno@clisp.org>
117629         * lib/binary-io.h: Avoid warnings on Cygwin.
117631 2004-01-20  Bruno Haible  <bruno@clisp.org>
117633         * lib/allocsa.h: New file, from GNU gettext.
117634         * lib/allocsa.c: New file, from GNU gettext.
117636 2004-01-18  Karl Berry  <karl@gnu.org>
117638         * doc/gpl.texi, doc/lgpl.texi: new files.
117640 2004-01-18  Karl Berry  <karl@gnu.org>
117642         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
117643         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
117645 2004-01-15  Paul Eggert  <eggert@twinsun.com>
117647         Merge from coreutils.
117649         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
117650         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
117651         (gl_DEFAULT_POSIX2_VERSION): Move
117652         the documentation from 'configure' into 'config.hin',
117653         so that 'configure --help' isn't burdened by it and
117654         we don't have to worry about its formatting there.
117655         Reword the documentation so that it's more succinct
117656         and can be run together into a single paragraph.
117657         * m4/same.m4 (gl_SAME): Check for pathconf.
117659 2004-01-15  Paul Eggert  <eggert@twinsun.com>
117661         Merge from coreutils.
117663         * lib/posixver.c: Include posixver.h.
117665         * lib/same.c: Include <stdbool.h>, <limits.h>.
117666         (_POSIX_NAME_MAX): Define if not defined.
117667         (MIN): New macro.
117668         (same_name): If file names are silently truncated, report
117669         that the file names are the same if they are the same after
117670         the silent truncation.
117672         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
117673         conversion function.
117674         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
117675         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
117676         longer needed.
117678 2004-01-15  Jim Meyering  <jim@meyering.net>
117680         Merge from coreutils.
117682         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
117683         if no library is required.
117684         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
117685         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
117686         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
117687         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
117688         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
117689         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
117690         value, $ac_cv_search_crypt, if it's "none required".
117691         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
117692         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
117693         not gl_FUNC_GETLOADAVG.
117694         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
117695         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
117697 2004-01-15  Jim Meyering  <jim@meyering.net>
117699         Merge from coreutils.
117701         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
117702         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
117703         http://mail.gnu.org/r/bug-coreutils/2003-11/msg00144.html
117705         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
117706         optional configure-time default.
117708         * lib/version-etc.c (version_etc_copyright): Update copyright date.
117710         * lib/xreadlink.c (xreadlink): Correct outdated comment.
117712 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
117714         Merge from coreutils.
117716         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
117717         value, $ac_cv_search_nanosleep, if it's "none required".
117719 2004-01-14  Paul Eggert  <eggert@twinsun.com>
117721         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
117722         with like-named macro in fnmatch.c.
117723         (EXT): Use an internal constant instead.
117725         Merge fnmatch patches from glibc.
117726         * lib/fnmatch.c (mbsinit): Remove define.
117727         Add libc_hidden_ver (__fnmatch, fnmatch).
117728         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
117729         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
117731 2004-01-14  Karl Berry  <karl@gnu.org>
117733         * config/install-sh: update from automake.
117735 2004-01-13  Karl Berry  <karl@gnu.org>
117737         * config/install-sh: update from automake.
117739 2004-01-09  Karl Berry  <karl@gnu.org>
117741         * config/install-sh: update from automake.
117743 2004-01-05  Karl Berry  <karl@gnu.org>
117745         * config/config.{sub,guess}: update from config.
117747 2003-12-31  Karl Berry  <karl@gnu.org>
117749         * config/depcomp: update from automake.
117751 2003-12-14  Karl Berry  <karl@gnu.org>
117753         * lib/config.charset: update from gettext-runtime.
117755 2003-12-03  Paul Eggert  <eggert@twinsun.com>
117757         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
117758         Bug reported by Alfred M. Szmidt.
117760 2003-12-03  Bruno Haible  <bruno@clisp.org>
117762         * m4/gettext.m4: Upgrade from gettext-0.13.
117763         * m4/po.m4: Upgrade from gettext-0.13.
117764         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
117765         * m4/intmax.m4: New file, from gettext-0.13.
117766         * m4/printf-posix.m4: New file, from gettext-0.13.
117768 2003-11-29  Karl Berry  <karl@gnu.org>
117770         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
117772 2003-11-25  Paul Eggert  <eggert@twinsun.com>
117773             Bruno Haible  <bruno@clisp.org>
117775         * lib/printf-parse.h: Don't include sys/types.h.
117776         (ARG_NONE): New macro.
117777         (char_directive): Change type of *arg_index fields to size_t.
117778         * lib/printf-parse.c: Don't include sys/types.h.
117779         (SSIZE_MAX): Remove macro.
117780         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
117781         Remove unnecessary overflow check.
117782         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
117783         fields.
117785 2003-11-25  Bruno Haible  <bruno@clisp.org>
117787         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
117789 2003-11-25  Bruno Haible  <bruno@clisp.org>
117791         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
117792         gt_TYPE_SSIZE_T.
117794 2003-11-24  Paul Eggert  <eggert@twinsun.com>
117796         * modules/alloca: Remove dependency on xalloc.
117798 2003-11-24  Paul Eggert  <eggert@twinsun.com>
117800         * lib/alloca.c: Remove dependency on xalloc module.
117801         (xalloc_die): Remove.
117802         (memory_full) [!defined emacs]: New macro.
117803         [!defined emacs]: Don't include xalloc.h.
117804         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
117805         address arithmetic overflows.  Change datatypes a bit to avoid
117806         unnecessary casts.
117808 2003-11-22  Jim Meyering  <jim@meyering.net>
117810         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
117811         s/size/size_t/.
117813 2003-11-21  Karl Berry  <karl@gnu.org>
117815         * config/config.{sub,guess}: update from config.
117817 2003-11-18  Karl Berry  <karl@gnu.org>
117819         * config/config.{sub,guess}: update from config.
117821         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
117823 2003-11-17  Paul Eggert  <eggert@twinsun.com>
117825         * README: Mention that S+T cannot overflow if S is the size of
117826         an existing object and T is sufficiently small.
117828 2003-11-17  Jim Meyering  <jim@meyering.net>
117830         On systems without utime and without a utimes function capable of
117831         dealing with a NULL struct utimbuf* argument, this utime replacement
117832         could -- in unusual circumstances -- leak a file descriptor.
117833         * lib/utime.c: Include <unistd.h> and <errno.h>.
117834         (utime_null): Be sure to close `fd' and to preserve errno.
117835         Reported by Geoff Collyer via Arnold Robbins.
117837 2003-11-17  Bruno Haible  <bruno@clisp.org>
117839         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
117840         (Depends-on): Add xsize.
117842 2003-11-17  Bruno Haible  <bruno@clisp.org>
117844         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
117846 2003-11-17  Bruno Haible  <bruno@clisp.org>
117848         * lib/vasnprintf.c (alloca): Remove fallback definition.
117849         (freea): Remove definition.
117850         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
117851         Reported by Paul Eggert.
117853 2003-11-16  Paul Eggert  <eggert@twinsun.com>
117854             Bruno Haible  <bruno@clisp.org>
117856         Protect against address arithmetic overflow.
117857         * lib/printf-args.h: Include stddef.h.
117858         (arguments): Change type of field 'count' to size_t.
117859         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
117860         'unsigned int' where appropriate.
117861         * lib/printf-parse.h: Include sys/types.h.
117862         (char_directive): Change type of *arg_index fields to ssize_t.
117863         (char_directives): Change type of fields 'count', max_*_length to
117864         size_t.
117865         * lib/printf-parse.c: Include sys/types.h and xsize.h.
117866         (SSIZE_MAX): Define fallback value.
117867         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
117868         instead of 'int' where appropriate. Check a_allocated, d_allocated
117869         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
117870         * lib/vasnprintf.c: Include xsize.h.
117871         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
117872         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
117873         overflow. Avoid wraparound when converting a width or precision from
117874         decimal to binary.
117876 2003-11-16  Bruno Haible  <bruno@clisp.org>
117878         Update from GNU gettext.
117879         * lib/printf-parse.c: Generalize to it can be compiled for wide
117880         strings.
117881         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
117882         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
117883         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
117884         SNPRINTF): New macros.
117885         Don't include <alloca.h> if the file is used inside libintl.
117886         (local_wcslen): New function, for Solaris 2.5.1.
117887         (VASNPRINTF): Use it instead of wcslen.
117889 2003-11-16  Bruno Haible  <bruno@clisp.org>
117891         * lib/xsize.h (xmax): New function.
117892         (xsum, xsum3, xsum4): Declare as "pure" functions.
117894 2003-11-12  Paul Eggert  <eggert@twinsun.com>
117896         * modules/xalloc (Files): Undo latest change, since xalloc.h
117897         no longer needs SIZE_MAX or PTRDIFF_MAX.
117899 2003-11-12  Paul Eggert  <eggert@twinsun.com>
117901         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
117902         gl_PTRDIFF_MAX.
117904 2003-11-12  Paul Eggert  <eggert@twinsun.com>
117906         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
117907         "return", to pacify some unknown compiler.  Problem reported
117908         by Joerg Schilling.
117910 2003-11-12  Paul Eggert  <eggert@twinsun.com>
117912         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
117913         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
117914         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
117915         heuristic is just as accurate as far as we know, and it removes a
117916         dependency on size_max.m4 and ptrdiff_max.m4.
117918 2003-11-11  Bruno Haible  <bruno@clisp.org>
117920         * modules/xsize (Files): Add m4/size_max.m4.
117921         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
117923 2003-11-11  Bruno Haible  <bruno@clisp.org>
117925         * m4/size_max.m4: New file.
117926         * m4/ptrdiff_max.m4: New file.
117927         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
117928         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
117929         (gl_XALLOC): Invoke it.
117931 2003-11-11  Bruno Haible  <bruno@clisp.org>
117933         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
117934         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
117935         defined.
117937 2003-11-10  Paul Eggert  <eggert@twinsun.com>
117939         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
117940         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
117941         rejected some allocations of exactly SIZE_MAX - 2 bytes.
117942         From Bruno Haible.
117943         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
117944         not (size_t) -1, since it's defined here.
117946 2003-11-09  Karl Berry  <karl@gnu.org>
117948         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
117950 2003-11-06  Paul Eggert  <eggert@twinsun.com>
117952         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
117953         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
117954         Reject sizes of exactly SIZE_MAX bytes.
117955         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
117956         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
117958 2003-11-05  Bruno Haible  <bruno@clisp.org>
117960         * lib/xsize.h: Include limits.h, to avoid a possible collision with
117961         SIZE_MAX defined in <limits.h> on Solaris.
117963 2003-11-04  Jim Meyering  <jim@meyering.net>
117965         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
117966         variable names, rather than @VAR@.
117967         * modules/poll: Likewise.
117969 2003-11-04  Bruno Haible  <bruno@clisp.org>
117971         * modules/xsize: New file.
117972         * modules/linebreak: Depend on xsize.
117973         * MODULES.html.sh (func_all_modules): Add xsize.
117975 2003-11-04  Bruno Haible  <bruno@clisp.org>
117977         * m4/xsize.m4: New file.
117979 2003-11-04  Bruno Haible  <bruno@clisp.org>
117981         * lib/xsize.h: New file.
117982         * lib/linebreak.c: Include xsize.h.
117983         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
117984         argument for overflow.
117985         Suggested by Paul Eggert.
117987 2003-11-03  Karl Berry  <karl@gnu.org>
117989         * config/config.{guess,sub}: update from config.
117991 2003-11-03  Jim Meyering  <jim@meyering.net>
117993         * modules/userspec (lib_SOURCES): Add userspec.h.
117994         (Include): Add "userspec.h".
117995         Improve description.
117997 2003-11-03  Jim Meyering  <jim@meyering.net>
117999         * lib/userspec.c: Include "userspec.h".
118000         * lib/userspec.h: New file.
118002 2003-11-03  Bruno Haible  <bruno@clisp.org>
118004         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
118006 2003-11-03  Bruno Haible  <bruno@clisp.org>
118008         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
118009         available, to avoid (extremely rare) race condition.
118010         Suggested by Paul Eggert.
118012 2003-11-02  Karl Berry  <karl@gnu.org>
118014         * config/srclist.txt (vasprintf.c): sync broken, sigh.
118016 2003-10-31  Paul Eggert  <eggert@twinsun.com>
118018         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
118019         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
118020         (read_filesystem_list): Set and use me_type_malloced.
118021         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
118022         whatever the type happens to be), for brevity and consistency.
118023         Check for size calculation overflow on Alphas running OSF/1.
118025 2003-10-31  Jim Meyering  <jim@meyering.net>
118027         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
118029         * lib/linebuffer.c: Include <string.h> for declaration of memset.
118031 2003-10-30  Paul Eggert  <eggert@twinsun.com>
118032             Bruno Haible  <bruno@clisp.org>
118034         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
118035         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
118037 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
118039         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
118040         netbsd*-gnu*.  Suggested by Robert Millan.
118042 2003-10-29  Paul Eggert  <eggert@twinsun.com>
118044         * modules/group-member: Depend on stdbool.
118046 2003-10-29  Paul Eggert  <eggert@twinsun.com>
118048         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
118050 2003-10-29  Paul Eggert  <eggert@twinsun.com>
118052         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
118053         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
118054         after the 'gnu' in these cases.  This fixes some bugs in the
118055         previous change, and is based on suggestions by Robert Millan.
118057 2003-10-29  Paul Eggert  <eggert@twinsun.com>
118059         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
118060         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
118061         no longer needed.
118062         * lib/quotearg.c (quotearg_n_options): Use it.
118063         * lib/group-member.c: Include <stdbool.h>.
118064         (free_group_info): Arg is now const *; don't free arg.
118065         (get_group_info): Now returns bool and accepts struct group_info *,
118066         rather than returning a malloc'ed struct group_info *.
118067         All uses changed.  Check for overflow in internal size calculation.
118069         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
118070         rather than xmalloc/xrealloc.
118071         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
118072         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
118073         conformance bug: the old code used a pointer after freeing the
118074         storage that it addressed.
118075         * lib/hash.c (hash_initialize): Simplify the code by using
118076         xalloc_oversized rather than doing it by hand.
118077         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
118078         the buffer preserved.  Use free and xmalloc instead.
118079         * lib/quotearg.c (quotearg_n_options): Likewise.
118080         Use a simpler test for size overflow.  Don't use xalloc_oversized
118081         because unsigned int might be wider than size_t (!); this suggests
118082         that we should switch from unsigned int to size_t for slot numbers.
118084 2003-10-28  Paul Eggert  <eggert@twinsun.com>
118086         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
118087         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
118088         NetBSD kernels.  Requested by Richard Stallman.
118090 2003-10-27  Paul Eggert  <eggert@twinsun.com>
118092         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
118093         to allocate the returned structure.  Do not allocate a subarray,
118094         as x2nrealloc will do that.
118095         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
118096         instead of xnrealloc.
118097         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
118099 2003-10-27  Bruno Haible  <bruno@clisp.org>
118101         * lib/stdbool_.h: Better support for BeOS.
118103 2003-10-26  Paul Eggert  <eggert@twinsun.com>
118105         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
118106         now uses inline.
118108 2003-10-26  Paul Eggert  <eggert@twinsun.com>
118110         * lib/xalloc.h (xalloc_oversized): New static inline function, for
118111         callers that want to do their own size-overflow checking.  Include
118112         <stdbool.h>, since xalloc_oversized returns bool.
118113         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
118114         to use xalloc_oversized.
118116         Add two functions x2realloc, x2nrealloc, for programs that grow
118117         arrays dynamically by doubling their sizes.
118118         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
118119         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
118120         New functions.
118122         Port to C99 semantics for 'inline' of external functions.
118123         Bug reported by Bruno Haible.
118124         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
118125         with the old contents of xnmalloc.
118126         (xnmalloc, xmalloc): Use it.
118127         (xnrealloc_inline): New static inline function,
118128         with the old contents of xnrealloc.
118129         (xnrealloc, xrealloc): Use it.
118131         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
118132         that.
118134 2003-10-26  Karl Berry  <karl@gnu.org>
118136         * config/srclist.txt (COPYING.DOC): no longer available from
118137         /gd/gnuorg; don't know where the ultimate source is.
118139 2003-10-25  Paul Eggert  <eggert@twinsun.com>
118141         Fix several address-calculation bugs in the hash modules,
118142         plus some minor code cleanup.
118144         * lib/hash.h: Include <stdbool.h>, for bool.
118145         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
118146         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
118147         hash_get_n_entries, hash_get_max_bucket_length,
118148         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
118149         hash_rehash): Use size_t rather than unsigned.
118150         * lib/hash.c (struct hash_table, hash_get_n_buckets,
118151         hash_get_n_buckets_used, hash_get_n_entries,
118152         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
118153         hash_get_entries, hash_do_for_each, hash_string, is_prime,
118154         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
118155         Likewise.
118156         (SIZE_MAX): Define if not defined.
118157         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
118158         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
118159         hash_print):
118160         Use const * when possible.
118161         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
118162         (check_tuning): Fix bug: if tuning parameters were very close to
118163         0 or 1, rounding errors could have caused subscript violations.
118164         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
118165         (hash_initialize): Add 'fail:' label
118166         to free table and return NULL, and use it to simplify code.
118167         Use calloc rather than clearing the storage ourself.
118168         (hash_initialize, hash_rehash): Check for arithmetic overflow in
118169         buffer size calculations.
118170         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
118171         Include <stddef.h>, for size_t.
118172         * lib/hash-pjw.c (hash_pjw): Likewise.
118173         Switch to method described by Bruno Haible.
118174         Include <limits.h>, for CHAR_BIT.
118175         (SIZE_BITS): New macro.
118177 2003-10-23  Paul Eggert  <eggert@twinsun.com>
118179         * m4/getline.m4 (AM_FUNC_GETLINE):
118180         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
118181         hosts.  Problem reported by Derek Robert Price in
118182         <http://mail.gnu.org/r/bug-gnulib/2003-10/msg00092.html>.
118183         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
118184         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
118186 2003-10-21  Paul Eggert  <eggert@twinsun.com>
118188         * lib/getndelim2.c (getndelim2): When size calculation overflows,
118189         ceiling the allocation at NMAX bytes rather than silently
118190         discarding input bytes before NMAX is reached.  This makes
118191         a difference only if NMAX exceeds SIZE_MAX / 2.
118193         * lib/obstack.c: Merge from glibc.
118194         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
118195         Add libc_hidden_def (_obstack_newchunk).
118196         (_obstack_free) [! defined _LIBC]: Remove.
118197         [defined _LIBC]: Make a strong alias from obstack_free, rather than
118198         a clone of the function body.
118199         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
118200         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
118202         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
118203         glibc.
118204         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
118205         arg to memcpy.
118207         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
118208         (obstack_ptr_grow_fast, obstack_int_grow_fast):
118209         Don't use lvalue casts, as GCC plans to remove support for them
118210         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
118211         was also present in the non-GCC version, indicating that this
118212         code had always been buggy and had never been widely used.
118213         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
118214         Use the fast variant of each macro, rather than copying the
118215         definiens of the fast variant; that way, we'll be more likely to
118216         catch future bugs in the fast variants.
118218 2003-10-20  Bruno Haible  <bruno@clisp.org>
118220         * modules/wait-process: New file.
118221         * MODULES.html.sh (func_all_modules): Add wait-process.
118223 2003-10-20  Bruno Haible  <bruno@clisp.org>
118225         * m4/wait-process.m4: New file.
118227 2003-10-20  Bruno Haible  <bruno@clisp.org>
118229         * lib/wait-process.h: New file, from GNU gettext.
118230         * lib/wait-process.c: New file, from GNU gettext.
118232 2003-10-19  Jim Meyering  <jim@meyering.net>
118234         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
118235         HPUX 10.20.
118237 2003-10-18  Karl Berry  <karl@gnu.org>
118239         * config/config.guess: update from config.
118241 2003-10-16  Paul Eggert  <eggert@twinsun.com>
118243         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
118244         (getgroups): First arg is int, not size_t.
118245         Don't let 'free' mangle errno.
118247 2003-10-16  Paul Eggert  <eggert@twinsun.com>
118249         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
118251 2003-10-16  Karl Berry  <karl@gnu.org>
118253         * config/config.{guess,sub}: update from config.
118255 2003-10-16  Jim Meyering  <jim@meyering.net>
118257         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
118258         memcpy.
118260 2003-10-15  Paul Eggert  <eggert@twinsun.com>
118262         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
118263         (SIZE_MAX): Remove.
118264         (new_exclude, add_exclude_file): Initial size no longer needs to
118265         be a power of 2.
118266         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
118267         our own address arithmetic overflow checking.
118269         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
118270         (fnmatch): Do not alloca more than 2000 wide characters;
118271         instead, use malloc for large buffers.
118272         Check for address arithmetic overflow, and return -1
118273         with errno set to ENOMEM in that case.
118274         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
118275         (NEW_PATTERN): Do not alloca more than 8000 bytes;
118276         instead, return -1.  Check for address arithmetic overflow.
118278 2003-10-14  Paul Eggert  <eggert@twinsun.com>
118280         Handle invalid suffixes and overflow independently, so that
118281         callers can treat them independently as needed.  Fix some bugs in
118282         suffix handling, e.g., "100k@" was not diagnosed as an invalid
118283         suffix for a human-readable blocksize.  The major caller-visible
118284         change is the addition of a new
118285         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
118286         that both overflow and suffix chars were found.
118288         * lib/human.c (humblock): Don't check separately for invalid suffix
118289         char; that is xstrtoumax's job (now that its bug is fixed).
118290         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
118291         INTMAX_MAX]: New macros.
118292         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
118293         TYPE_MAXIMUM): New macros.
118294         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
118295         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
118296         if overflow occurs, as it's what __strtol does and it's more useful
118297         in practice.
118298         (__xstrtol): If __strtol reports some error other than ERANGE,
118299         reflect it to the caller as LONGINT_INVALID.  If it reports
118300         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
118301         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
118302         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
118303         value.
118304         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
118305         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
118306         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
118307         [defined UINTMAX_MAX]: New macros.
118309 2003-10-14  Bruno Haible  <bruno@clisp.org>
118311         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
118313 2003-10-14  Bruno Haible  <bruno@clisp.org>
118315         * m4/sig_atomic_t: New file, from GNU gettext.
118316         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
118318 2003-10-14  Bruno Haible  <bruno@clisp.org>
118320         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
118321         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
118322         Also use volatile where needed.
118324 2003-10-12  Paul Eggert  <eggert@twinsun.com>
118326         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
118327         Change maintainer from Bruno Haible to 'all'.
118329 2003-10-12  Paul Eggert  <eggert@twinsun.com>
118331         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
118333 2003-10-12  Paul Eggert  <eggert@twinsun.com>
118335         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
118336         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
118337         and define in terms of the other primitives.
118338         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
118339         (SIZE_MAX): Define if not already defined.
118340         (array_size_overflow): New function.
118341         (xalloc_die): Abort instead of exiting if 'error' returns.
118342         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
118343         (xmalloc, xrealloc): Use them.
118344         (xcalloc): Check for address arithmetic overflow.
118345         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
118346         a bit faster than strcpy.
118348 2003-10-10  Simon Josefsson  <jas@extundo.com>
118350         * modules/argp (Depends-on): Add restrict and strcase.
118352 2003-10-10  Simon Josefsson  <jas@extundo.com>
118354         * m4/argp.m4: Add AC_C_INLINE.
118356 2003-10-08  Paul Eggert  <eggert@twinsun.com>
118358         Merge getpass from libc, plus a few fixes.
118360         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
118361         Include <stdbool.h>.
118362         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
118363         __fsetlocking to empty.
118364         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
118365         do include <bits/libc-lock.h>.
118366         Do not include <fcntl.h>; not needed.
118367         [_LIBC]: Include <wchar.h>.
118368         (NOTCANCEL_MODE): New macro.
118369         (flockfile, funlockfile) [_LIBC]: New macros.
118370         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
118371         [!_LIBC]: New macros.
118372         (call_fclose): New function.
118373         (getpass): Use it.  Save tty stream separately; this simplifies the
118374         code and makes it more reliable if stdin happens to equal stdout.
118375         Invoke __fsetlocking on tty.
118376         Handle thread cancellation if needed.
118377         Namespace cleanup (use __tcgetattr, __getline).
118378         Use bool for Booleans.
118379         [USE_IN_LIBIO]: Handle wide streams.
118380         [!_LIBC]: Unconditionally do the fseek, since we don't know what
118381         stream might go where.
118383         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
118384         doesn't have to include <stdio.h> before us.
118385         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
118386         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
118387         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
118388         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
118389         if not declared, so that we can use getpass.c code from libc without
118390         rewriting it.
118391         (flockfile, ftrylockfile, funlockfile): New macros.
118393 2003-10-08  Paul Eggert  <eggert@twinsun.com>
118395         * modules/getpass: Depend on stdbool.
118397 2003-10-08  Paul Eggert  <eggert@twinsun.com>
118399         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
118401 2003-10-07  Karl Berry  <karl@gnu.org>
118403         * config/config.{guess,sub}: update from config.
118405 2003-10-06  Jim Meyering  <jim@meyering.net>
118406             Bruno Haible  <bruno@clisp.org>
118408         This lets translators provide better translations for the
118409         "Written by ..." part of --version output.
118410         * lib/version-etc.h: Include stdarg.h.
118411         (version_etc_copyright): Declare as readonly.
118412         (version_etc): Make this function variadic with a NULL-terminated list
118413         of author name strings.
118414         (version_etc_va): New declaration.
118415         * lib/version-etc.c: Include stdarg.h, stdlib.h.
118416         (version_etc_copyright): Declare as readonly.
118417         (version_etc_va): New function. Provide a different translatable string
118418         for each possible number of authors < 10. Abbreviate when there are 10
118419         authors or more.
118420         (version_etc): Make this function variadic. Call version_etc_va.
118421         Suggestion from Gary V. Vaughan.
118423         * lib/long-options.h (parse_long_options): Change prototype: the
118424         authors string is moved to the end and becomes variadic.
118425         * lib/long-options.c: Include stdarg.h.
118426         (parse_long_options): Make this function variadic, too.
118427         Call version_etc_va, not version_etc.
118429 2003-10-06  Bruno Haible  <bruno@clisp.org>
118431         * modules/version-etc-2: Remove file.
118432         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
118434 2003-10-06  Bruno Haible  <bruno@clisp.org>
118436         * modules/fatal-signal: New file.
118437         * MODULES.html.sh (func_all_modules): Add fatal-signal.
118439 2003-10-06  Bruno Haible  <bruno@clisp.org>
118441         * m4/fatal-signal.m4: New file.
118442         * m4/signalblocking.m4: New file, from GNU gettext.
118444 2003-10-06  Bruno Haible  <bruno@clisp.org>
118446         * lib/version-etc-2.h: Remove file.
118447         * lib/version-etc-2.c: Remove file.
118449 2003-10-06  Bruno Haible  <bruno@clisp.org>
118451         * lib/fatal-signal.h: New file, from GNU gettext.
118452         * lib/fatal-signal.c: New file, from GNU gettext.
118454 2003-10-05  Paul Eggert  <eggert@twinsun.com>
118456         * README: Rework advice for preventing empty .o files.
118457         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
118458         not <sys/types.h>.
118460 2003-10-04  Karl Berry  <karl@gnu.org>
118462         * lib/argp*: update from libc.
118464 2003-10-04  Karl Berry  <karl@gnu.org>
118466         * config/config.{guess,sub}: update from config.
118468 2003-10-02  Bruno Haible  <bruno@clisp.org>
118470         * modules/lchown (Include): Add lchown.h.
118471         * modules/time_r (Include): Use "..." syntax.
118472         * modules/xgetdomainname (Include): Add xgetdomainname.h.
118474 2003-10-01  Simon Josefsson  <jas@extundo.com>
118476         * MODULES.html.sh (func_all_modules): Move gethostname from section
118477         'based on' to section 'lacking' POSIX:2001.
118479 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
118481         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
118482         to output mode on the same stream.
118484 2003-09-29  Paul Eggert  <eggert@twinsun.com>
118486         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
118487         Fix arg typo in previous patch.
118489 2003-09-28  Jim Meyering  <jim@meyering.net>
118491         * lib/error.c: Correct cpp indentation.
118493 2003-09-27  Paul Eggert  <eggert@twinsun.com>
118495         * modules/free: New file.
118497 2003-09-27  Paul Eggert  <eggert@twinsun.com>
118499         * m4/free.m4: New file.
118501 2003-09-27  Paul Eggert  <eggert@twinsun.com>
118503         * lib/minmax.h (MIN, MAX)
118504         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
118505         Omit the special code that used __typeof__, since we worry that
118506         it could be more trouble than it's worth.  See:
118507         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00090.html
118508         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00095.html
118510         * lib/free.c: New file.
118512 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
118514         Trivial fixes to Makefile.am parts of module listings.
118515         * modules/strstr: Append strstr.h to lib_SOURCES.
118516         * modules/strcase: Likewise, for strcase.h.
118518 2003-09-27  Karl Berry  <karl@gnu.org>
118520         * config/mkinstalldirs: update from automake.
118522 2003-09-26  Paul Eggert  <eggert@twinsun.com>
118524         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
118525         (error_tail): Do not loop, reallocating temporary buffer, since
118526         the output cannot contain more wide characters than the input
118527         contains bytes, the size must be big enough already.  This avoids
118528         one potential size overflow calculation.  Check for size overflow
118529         when calculating temporary buffer size.  Free temporary buffer
118530         when done, if it was allocated with malloc; this plugs a memory
118531         leak.  Remove casts from void * to pointers, that are no longer
118532         needed now that we're assuming C89 or better.
118534         Merge error changes from glibc.
118536         * lib/error.c, error.h: Update copyright notice header to match glibc.
118537         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
118538         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
118539         Disable cancellation while printing error.
118540         * lib/error.h: Prepend __ to parameter names.
118542 2003-09-26  Jim Meyering  <jim@meyering.net>
118544         * lib/error.c (error_tail): Move some declarations
118545         into inner scope where the local variables are used.
118547 2003-09-26  Bruno Haible  <bruno@clisp.org>
118549         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
118550         stpncpy().
118551         Don't define stpncpy through config.h; it's now done through stpncpy.h.
118553 2003-09-26  Bruno Haible  <bruno@clisp.org>
118555         * lib/stpncpy.h (gnu_stpncpy): New declaration.
118556         (stpncpy): Define as alias for gnu_stpncpy.
118557         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
118559 2003-09-25  Simon Josefsson  <jas@extundo.com>
118561         * lib/xgetdomainname.h: New file.
118562         * lib/xgetdomainname.c: New file.
118564 2003-09-25  Simon Josefsson  <jas@extundo.com>
118565             Bruno Haible  <bruno@clisp.org>
118567         * modules/getdomainname: New file.
118568         * modules/xgetdomainname: New file.
118569         * MODULES.html.sh (func_all_modules): Add getdomainname,
118570         xgetdomainname.
118572 2003-09-25  Simon Josefsson  <jas@extundo.com>
118573             Bruno Haible  <bruno@clisp.org>
118575         * m4/getdomainname.m4: New file.
118577 2003-09-25  Simon Josefsson  <jas@extundo.com>
118578             Bruno Haible  <bruno@clisp.org>
118580         * lib/getdomainname.h: New file.
118581         * lib/getdomainname.c: New file.
118583 2003-09-25  Karl Berry  <karl@gnu.org>
118585         * lib/argp-fmtstream.c, argp-help.c: update from libc.
118587 2003-09-25  Karl Berry  <karl@gnu.org>
118589         * config/install-sh: update from automake.
118591 2003-09-25  Bruno Haible  <bruno@clisp.org>
118593         * modules/version-etc-2: New file, from modules/version-etc with
118594         modifications.
118595         * MODULES.html.sh (func_all_modules): Add version-etc-2.
118597 2003-09-25  Bruno Haible  <bruno@clisp.org>
118599         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
118600         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
118602 2003-09-24  Simon Josefsson  <jas@extundo.com>
118604         * modules/xgethostname: Add xgethostname.h.
118606 2003-09-24  Paul Eggert  <eggert@twinsun.com>
118608         * lib/linebuffer.c (freebuffer): Don't free the argument, just
118609         the buffer associated with the argument.  Bug reported by
118610         Simon Josefsson.
118612 2003-09-24  Paul Eggert  <eggert@twinsun.com>
118614         * README: Document assumptions that 'int' is at least 32 bits
118615         wide, that integer arithmetic is 2's complement without overflow,
118616         that there are no holes in integer values, that adding sizes of
118617         two nonoverlapping objects can't overflow, and that all-bits-zero
118618         yields scalar zero.  Fix spelling and capitalization typos.
118620 2003-09-19  Karl Berry  <karl@gnu.org>
118622         * lib/argp.h: update from libc.
118624 2003-09-17  Paul Eggert  <eggert@twinsun.com>
118626         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
118627         to avoid spurious warnings like "AC_RUN_IFELSE was called before
118628         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
118630 2003-09-17  Paul Eggert  <eggert@twinsun.com>
118632         * gnulib-tool: Use "test -h", not "test -L", for portability
118633         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
118634         (tags_regexp): Remove, since \| doesn't conform to POSIX.
118635         (sed_extract_prog): Issue s commands one-by-one, rather than
118636         using \| in one s command.
118638 2003-09-16  Paul Eggert  <eggert@twinsun.com>
118640         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
118641         input error, instead of returning NULL the next time we are called
118642         (and therefore losing track of errno).
118644 2003-09-16  Bruno Haible  <bruno@clisp.org>
118646         * gnulib-tool (func_create_testdir): Warn about duplicated
118647         dependencies.
118649 2003-09-15  Paul Eggert  <eggert@twinsun.com>
118651         * modules/argmatch, modules/fatal, modules/obstack,
118652         modules/xalloc, modules/xgethostname: Sort dependencies by
118653         importance, not alphabetically.
118655 2003-09-15  Paul Eggert  <eggert@twinsun.com>
118657         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
118658         fails, so that the caller gets the proper errno.
118660         * lib/readutmp.c (read_utmp): Likewise.
118661         Check for fstat error.  Close stream and free storage
118662         when failing.
118664 2003-09-14  Karl Berry  <karl@gnu.org>
118666         * config/srclist.txt (strdup.c): disable for c89 changes.
118668 2003-09-14  Jim Meyering  <jim@meyering.net>
118670         * lib/getloadavg.c: Correct cpp indentation.
118671         * lib/strdup.c: Likewise.
118672         * lib/vasnprintf.c: Likewise.
118674 2003-09-14  Bruno Haible  <bruno@clisp.org>
118676         * modules/fwriteerror: New file.
118677         * MODULES.html.sh (func_all_modules): Add fwriteerror.
118679 2003-09-14  Bruno Haible  <bruno@clisp.org>
118681         * lib/fwriteerror.h: New file.
118682         * lib/fwriteerror.c: New file.
118684 2003-09-12  Paul Eggert  <eggert@twinsun.com>
118686         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
118687         modules/xgethostname, modules/xalloc: Depend on exit.
118689 2003-09-12  Paul Eggert  <eggert@twinsun.com>
118691         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
118693         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
118694         and AC_MINIX, too, so that their extensions are available.
118696         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
118697         This macro has been superseded by gl_BACKUPFILE.
118699         More patches to assume C89 or better.
118701         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
118703         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
118704         unconditionally.
118705         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
118706         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
118707         Include <string.h>, <stdlib.h> unconditionally.
118708         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
118709         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
118710         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
118711         headers or for string.h.
118712         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
118713         or strtoul.
118715         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
118716         headers.
118717         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
118718         * m4/userspec.m4 (gl_USERSPEC): Likewise.
118719         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
118720         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
118721         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
118722         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
118723         memcpy, memset.
118724         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
118725         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
118726         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
118727         strtol.
118728         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
118729         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
118730         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
118731         strtoul.
118733 2003-09-12  Paul Eggert  <eggert@twinsun.com>
118735         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
118736         * lib/obstack.c [!defined _LIBC]: Likewise.
118737         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
118738         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
118739         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
118741         More changes to assume C89 or better.
118743         * lib/error.c (error_tail): Assume vprintf.
118745         * lib/argmatch.c (getenv): Remove decl.
118746         * lib/progreloc.c (get_full_program_name): Define via prototype.
118747         * lib/setenv.c (clearenv): Likewise.
118748         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
118749         needed.
118750         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
118751         (malloc, memcpy): Remove decls.
118752         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
118753         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
118754         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
118755         (memcpy): Remove macro.
118756         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
118757         (__P): Remove.  All uses removed.
118758         (PTR): Remove.  All uses changed to void *.
118759         (CHAR_BIT, NULL): Remove.
118760         (spaces, zeros, memset_space, memset_zero)
118761         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
118762         Remove.
118763         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
118764         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
118765         Define with prototype.
118766         Remove now-unnecessary prototype decl.
118767         (extra_args_spec): Assume ANSI C.  All uses changed.
118768         (extra_args_spec_iso): Remove.
118769         (my_strftime, emacs_strftimeu): Define via prototype.
118770         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
118771         unconditionally.
118772         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
118773         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
118774         (strtoul, strtol): Remove decls.
118775         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
118776         LONG_MAX): Remove.
118777         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
118778         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
118779         (LOCALE_PARAM_PROTO): New macro.
118780         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
118781         (INTERNAL (strtol), strtol): Define with a prototype.
118782         (PARAMS): Remove.  All uses removed.
118783         * lib/tempname.c: Include <string.h> unconditionally.
118784         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
118785         * lib/xgethostname.c (main): Define with a prototype.
118786         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
118787         Include <stdlib.h> unconditionally.
118788         (calloc, malloc, realloc, free): Remove decls.
118789         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
118790         Include <stdlib.h> unconditionally.  Sort include file names.
118791         (strtod): Remove.
118792         (xstrtod): Define with a prototype.
118793         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
118794         (strtol, strtoul): Remove decls.
118796 2003-09-11  Paul Eggert  <eggert@twinsun.com>
118798         More patches to assume C89 or better.
118799         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
118800         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
118801         string.h, memchr, STDC_HEADERS.
118803 2003-09-11  Paul Eggert  <eggert@twinsun.com>
118805         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
118806         Include <stdlib.h>, <string.h> unconditionally.
118807         Remove now-unnecessary cast to char *.
118808         * lib/strnlen.c: Include <string.h> unconditionally.
118809         * lib/yesno.c (yesno): Define with a prototype.
118811 2003-09-11  Bruno Haible  <bruno@clisp.org>
118813         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
118815 2003-09-10  Jim Meyering  <jim@meyering.net>
118817         * lib/error.c: Correct indentation of cpp directives.
118819 2003-09-10  Bruno Haible  <bruno@clisp.org>
118821         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
118822         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
118823         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
118824         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
118825         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
118826         <stdlib.h> and <string.h> checks.
118827         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
118828         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
118830 2003-09-10  Bruno Haible  <bruno@clisp.org>
118832         * lib/strcspn.c: Include <string.h> unconditionally.
118833         * lib/strpbrk.c: Include <string.h> unconditionally.
118834         * lib/strstr.c: Include <string.h> unconditionally.
118835         * lib/unicodeio.c: Include <string.h> unconditionally.
118836         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
118837         * lib/unsetenv.c: Likewise.
118838         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
118839         * lib/yesno.c: Include <stdlib.h> unconditionally.
118840         (rpmatch): Add prototype.
118842 2003-09-09  Paul Eggert  <eggert@twinsun.com>
118844         More patches to assume C89 or better.
118845         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
118846         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
118847         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
118848         or for string.h.
118849         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
118850         stdlib.h.
118851         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
118852         C headers.
118853         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
118854         string.h.
118855         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
118856         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
118857         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
118858         or for string.h.
118859         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
118860         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
118861         C headers.
118862         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
118863         memcpy.
118864         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
118865         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
118866         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
118867         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
118868         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
118869         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
118870         string.h, free.
118871         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
118872         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
118873         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
118874         C headers, or for string.h.
118875         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
118876         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
118877         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
118878         headers, memory.h, stdlib.h, string.h, strings.h.
118879         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
118880         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
118881         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
118882         strchr.
118883         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
118884         headers, memory.h, string.h.
118885         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
118886         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
118887         free.
118888         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
118889         headers.
118890         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
118891         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
118892         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
118893         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
118894         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
118896 2003-09-09  Paul Eggert  <eggert@twinsun.com>
118898         More K&R removal.
118900         * lib/acosl.c (main): Use a prototype.
118901         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
118902         tanl.c: Likewise.
118904         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
118906         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
118907         (getopt, etopt_long, getopt_long_only, _getopt_internal)
118908         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
118909         with a prototype.
118910         * lib/getopt.c (const): Remove macro.
118911         Include <string.h> unconditionally.
118912         (my_index): Remove; all uses changed to strchr.
118913         (strlen): Remove decl.
118914         (exchange): Remove forward decl; no longer needed.
118915         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
118916         Define with prototype.
118917         * lib/getopt1.c (const): Remove macro.
118918         (getopt_long, getopt_long_only, main): Define with prototype.
118920         * lib/getugroups.c: Include <string.h> unconditionally.
118922         * lib/getusershell.c: Include <stdlib.h> unconditionally.
118923         (getusershell, setusershell, endusershell, readname, main):
118924         Define with prototypes.
118926         * lib/group-member.c: Include group-member.h first.
118927         Include <stdlib.h> unconditionally.
118929         * lib/hard-locale.c: Include hard-locale.h first.
118930         Include <stdlib.h>, <string.h> unconditionally.
118932         * lib/hash.c (free, malloc): Remove decls.
118933         Include <stdlib.h> unconditionally.
118935         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
118936         (getenv): Do not declare.
118938         * lib/idcache.c: Include <string.h> unconditionally.
118940         * lib/long-options.c: Include long-options.h first, to test interface.
118941         Include <stdlib.h> unconditionally.
118943         * lib/makepath.c: Include makepath.h first, to test interface.
118944         Include <stdlib.h> and <string.h> unconditionally.
118946         * lib/linebuffer.c: Include <stdlib.h>.
118947         (free): Remove decl.
118949         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
118950         stddef.h. rpl_malloc returns void *, not char *.
118951         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
118952         prototype.
118954         * lib/md5.h: Include <limits.h> unconditionally.
118955         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
118956         (__P): Remove; all uses removed.
118957         * lib/md5.c: Include "md5.h" first.
118958         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
118959         md5_buffer, md5_process_bytes, md5_process_block):
118960         Define with prototypes.
118961         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
118962         * lib/sha.c: Include "sha.h" first.
118963         Include <stdlib.h>, <string.h> unconditionally.
118965         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
118966         * lib/memcmp.c (__ptr_t): Likewise.
118967         * lib/memrchr.c (__ptr_t): Likewise.
118968         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
118969         Include <string.h> unconditionally.
118970         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
118971         * lib/memchr.c: Include <stdlib.h> unconditionally.
118972         * lib/memchr.c (LONG_MAX): Remove.
118973         * lib/memrchr.c (LONG_MAX): Likewise.
118974         * lib/memchr.c (__memchr): Define via a prototype.
118975         * lib/memrchr.c (__memrchr): Likewise.
118976         * lib/memcmp.c (__P): Remove, and remove all uses.
118977         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
118978         Remove forward decls; no longer needed.
118979         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
118980         Use types required by C89 in prototype.
118982         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
118983         * lib/savedir.c: Likewise.
118984         * lib/mkdir.c (free): Remove decl.
118985         * lib/rmdir.c (rmdir): Define with a prototype.
118986         * lib/savedir.c: Include savedir.h first, to test interface.
118988         * lib/mktime.c (STDC_HEADERS): Remove.
118989         Include <stdlib.h>, <string.h> unconditionally.
118991         * lib/modechange.c: Include <stdlib.h> unconditionally.
118992         (malloc): Remove decl.
118994         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
118995         (free): Remove decl.
118997         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
118998         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
118999         (This type really should be intptr_t, but that's a C99ism.)
119000         (_obstack_memcpy): Remove: all uses changed to memcpy.
119001         Include <string.h> unconditionally.
119002         (struct obstack): Assume __STDC__ for types of members
119003         chunkfun, freefun, extra_arg.
119004         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
119005         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
119006         obstack_begin, obstack_specify_allocation,
119007         obstack_specify_allocation_with_arg, obstack_chunkfun,
119008         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
119009         Remove unprototyped decls and the macros that use them.
119010         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
119011         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
119012         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
119013         (defined __STDC__ && __STDC__)]:
119014         Remove nonprototyped code.
119015         Include <stdlib.h> unconditionally.
119016         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
119017         _obstack_allocated_p, _obstack_free, obstack_free,
119018         _obstack_memory_used, print_and_abort):
119019         Define using prototypes.
119020         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
119021         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
119022         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
119023         obstack_next_free, obstack_object_size, obstack_room) [0]:
119024         Remove unused, unprototyped code.
119026         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
119028         * lib/physmem.c (physmem_total, physmem_available, main): Define
119029         with prototypes.
119031         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
119032         (main): Define with a prototype.
119034         * lib/posixver.c (getenv): Remove decl.
119036         * lib/putenv.c (malloc): Returns void *, not char *.
119037         Include <string.h> unconditionally.
119038         (strchr, memcpy, NULL): Do not define.
119040         * lib/readtokens.c: Include readtokens.h first, to test interface.
119041         Include <stdlib.h>, <string.h> unconditionally.
119042         (init_tokenbuffer): Define with a prototype.
119044         * lib/regex.c (PARAMS): Remove.  All uses removed.
119045         All uses of _RE_ARGS removed, too.
119046         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
119047         unconditionally.
119048         (bzero): Assume memset exists.
119049         (memcmp, memcpy, NULL): Remove.
119050         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
119051         char, or assignments to local vars of type signed char.
119052         (init_syntax_once, PREFIX(extract_number_and_incr),
119053         PREFIX(print_partial_compiled_pattern),
119054         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
119055         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
119056         PREFIX(regex_grow_registers), PREFIX(regex_compile),
119057         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
119058         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
119059         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
119060         wcs_compile_range, byte_compile_range, truncate_wchar,
119061         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
119062         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
119063         count_mbs_length, wcs_re_match_2_internal,
119064         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
119065         PREFIX(alt_match_null_string_p),
119066         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
119067         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
119068         regfree, PREFIX(extract_number)): Define with prototype.  Remove
119069         now-unnecessary declaration, if any.
119070         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
119071         regcomp, regexec):
119072         Remove now-unnecessary casts among pointer types.
119073         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
119075         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
119076         (free): Remove decl.
119078         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
119080         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
119081         (free): Remove decl.
119083         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
119084         * lib/xgetcwd.c: Likewise.
119086         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
119087         (free): Remove decl.
119089         * lib/strchrnul.c (strchrnul): Define with a prototype.
119090         Fix bug: c_in was not converted to char before searching.
119092         The following changes are not K&R related:
119094         * lib/group-member.h: Include <sys/types.h>, so that this file is
119095         self-contained.
119096         * lib/makepath.h: Likewise.
119098         * lib/getusershell.c (readname, default_index, line_size, readname):
119099         Use size_t, not int, for sizes.
119100         (readname): If the size overflows, report an error instead of
119101         looping forever.
119103 2003-09-09  Paul Eggert  <eggert@twinsun.com>
119105         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
119106         libc.
119108 2003-09-09  Paul Eggert  <eggert@twinsun.com>
119110         * README: New section: portability guidelines.
119112 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
119114         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
119115         C89 spec.
119117 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
119119         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
119121 2003-09-08  Paul Eggert  <eggert@twinsun.com>
119123         Assume C89 or better; remove K&R cruft.
119124         A few of these changes were first proposed by Derek Robert Price
119125         in <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00105.html>.
119127         * lib/addext.c: Include <string.h> unconditionally.
119128         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
119129         Don't declare getenv or malloc.
119131         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
119132         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
119133         (NULL): Remove.
119134         (find_stack_direction, alloca): Use prototypes.
119136         * lib/atexit.c (atexit): Define using a prototype.
119138         * lib/basename.c, dirname.c, stripslash.c:
119139         Include <string.h> unconditionally.
119141         * lib/bcopy.c: Include <stddef.h>.
119142         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
119144         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
119146         * lib/error.h (error, error_at_line, error_print_progname)
119147         [! (defined (__STDC__) && __STDC__)]: Remove decls.
119148         * lib/error.c: Include error.h first, to check interface.
119149         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
119150         (VA_START): Remove; all uses changeed to va_start.
119151         (exit, strerror): Remove decls.
119152         (error_print_progname): Prototype uncondionally.
119153         Don't include <errno.h>; no longer needed.
119154         (private_strerror): Remove.
119155         (error_tail): Always define.
119156         (error, error_at_line): Assume C89 or better; always use prototypes.
119157         * lib/fatal.c: Include "fatal.h" first, to test interface.
119158         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
119159         (VA_START): Remove; all uses changed to va_start.
119160         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
119161         this case.
119162         (exit): Remove decl.
119163         (fatal): Prototype unconditionally.  Assume va_start works.
119164         Abort at end, to pacify gcc.
119166         * lib/euidaccess.c (main): Define with a prototype.
119168         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
119170         * lib/exitfail.c: Include <stdlib.h> unconditionally.
119172         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
119173         prototypes.
119174         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
119175         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
119176         (getenv): Remove decl.
119177         (fnmatch): Define using a prototype.
119178         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
119179         (FCT): Define using a prototype.
119181         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
119183         * lib/gethostname.c: Include <stddef.h>.
119184         (gethostname): Define with prototype.  Length is size_t, not int.
119186 2003-09-08  Paul Eggert  <eggert@twinsun.com>
119188         Assume C89 or better; remove K&R cruft.
119189         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
119190         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
119191         string.h, getenv, malloc.
119192         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
119193         headers.
119194         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
119195         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
119196         do not check for strerror.
119197         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
119198         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
119199         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
119200         do not check for doprnt or vprintf.
119201         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
119202         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
119204 2003-09-08  Paul Eggert  <eggert@twinsun.com>
119206         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
119207         getversion.c should have been removed then, but was accidentally
119208         preserved.
119210         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
119211         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
119213 2003-09-08  Karl Berry  <karl@gnu.org>
119215         * config/config.sub, config.guess, srclistvars.sh: update from savannah
119216                 config, forget about prep.
119218         * config/depcomp, missing: update from automake.
119220 2003-09-07  Paul Eggert  <eggert@twinsun.com>
119222         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
119223         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
119225 2003-09-07  Paul Eggert  <eggert@twinsun.com>
119227         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
119228         copy_tm_result.  Bug reported by Simon Josefsson in
119229         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
119231 2003-09-06  Paul Eggert  <eggert@twinsun.com>
119233         * m4/time_r.m4: New file.
119234         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
119235         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
119236         is. Check for timegm declaration.
119237         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
119238         Do not check for gmtime_r.
119239         Replace mktime if __mktime_internal does not exist and if mktime
119240         hasn't been replaced already.
119242 2003-09-06  Paul Eggert  <eggert@twinsun.com>
119244         * lib/time_r.c, lib/time_r.h: New files.
119246         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
119247         __localtime_r.
119248         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
119249         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
119251         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
119252         __gmtime_r.
119253         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
119254         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
119255         Include <time_r.h>.
119257         * lib/timegm.c: Switch to glibc implementation, with the following
119258         changes:
119259         [defined HAVE_CONFIG_H]: Include <config.h>.
119260         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
119261         (__mktime_internal) [!defined _LIBC]: New decl.
119262         (__gmtime_r) [!defined _LIBC]: New macro and function.
119263         (timegm): Use a prototype, since gnulib assumes C89.
119264         Do not bother declaring tmp to be const, as it's not really usefu.
119265         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
119266         (timegm): Declare only if HAVE_DECL_TIMEGM.
119268 2003-09-06  Paul Eggert  <eggert@twinsun.com>
119270         * MODULES.html.sh (func_all_modules): Add time_r.
119271         * modules/time_r: New file.
119272         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
119273         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
119275 2003-09-03  Paul Eggert  <eggert@twinsun.com>
119277         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
119278         Bug reported by Lute Kamstra in
119279         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00003.html>.
119281         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
119282         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
119283         course with correspondingly smaller numbers for tomorrow and
119284         yesterday.  From Tadayoshi Funaba.  Originally installed into
119285         sh-utils on 1999-08-07, but the patch got lost (I guess during the
119286         coreutils merge?).
119288 2003-08-31  Simon Josefsson  <jas@extundo.com>
119290         * modules/timegm: New file.
119291         * MODULES.html.sh (func_all_modules): Add timegm.
119293 2003-08-31  Simon Josefsson  <jas@extundo.com>
119295         * m4/timegm.m4: New file.
119297 2003-08-31  Simon Josefsson  <jas@extundo.com>
119299         * lib/timegm.h: New file.
119300         * lib/timegm.c: New file.  Based on
119301         wget-1.8.2/src/http.c:mktime_from_utc.
119303 2003-08-31  Karl Berry  <karl@gnu.org>
119305         * lib/argp.h: update from libc.
119307 2003-08-28  Bruno Haible  <bruno@clisp.org>
119309         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
119310         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
119311         followed by '#define fnmatch fnmatch_posix' gives an error.
119313 2003-08-28  Bruno Haible  <bruno@clisp.org>
119315         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
119316         warning on QNX, which defines O_BINARY to 000000.
119318 2003-08-27  Jim Meyering  <jim@meyering.net>
119320         * m4/mkstemp.m4: Require that the system mkstemp be able to create
119321         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
119322         would fail after 32.  Reported by Danny Levinson.  Details here:
119323         http://mail.gnu.org/r/bug-coreutils/2003-08/msg00124.html
119325 2003-08-24  Bruno Haible  <bruno@clisp.org>
119327         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
119328         MSVC7 <stdio.h> is included later.
119330 2003-08-22  Simon Josefsson  <jas@extundo.com>
119332         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
119334 2003-08-20  Karl Berry  <karl@gnu.org>
119336         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
119338 2003-08-20  Bruno Haible  <bruno@clisp.org>
119340         * modules/progname: New file.
119341         * MODULES.html.sh (func_all_modules): Add progname.
119343 2003-08-20  Bruno Haible  <bruno@clisp.org>
119345         * lib/progname.h: New file, from GNU gettext.
119346         * lib/progname.c: New file, from GNU gettext.
119347         * lib/progreloc.c: New file, from GNU gettext.
119349 2003-08-19  Jim Meyering  <jim@meyering.net>
119351         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
119352         http://mail.gnu.org/r/bug-gnulib/2003-08/msg00155.html
119354 2003-08-19  Bruno Haible  <bruno@clisp.org>
119356         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
119357         more.
119359 2003-08-19  Bruno Haible  <bruno@clisp.org>
119361         * lib/xstrdup.c: Assume <string.h> exists.
119363 2003-08-18  Paul Eggert  <eggert@twinsun.com>
119365         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
119366         in makefile rules.
119368 2003-08-18  Jim Meyering  <jim@meyering.net>
119370         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
119371         * m4/lib-ld.m4: Likewise.
119373 2003-08-18  Jim Meyering  <jim@meyering.net>
119375         * lib/setenv.h: Indent nested cpp directive.
119376         * lib/vasnprintf.c: Remove trailing blanks.
119378 2003-08-17  Simon Josefsson  <jas@extundo.com>
119380         * modules/xstrndup: New file.
119381         * MODULES.html.sh (func_all_modules): Add xstrndup.
119383 2003-08-17  Simon Josefsson  <jas@extundo.com>
119385         * modules/argp: Fix autoconf macro name. Add more dependencies.
119387 2003-08-17  Simon Josefsson  <jas@extundo.com>
119389         * m4/xstrndup.m4: New file.
119391 2003-08-17  Simon Josefsson  <jas@extundo.com>
119393         * m4/argp.m4: New file.
119395 2003-08-17  Simon Josefsson  <jas@extundo.com>
119396             Bruno Haible  <bruno@clisp.org>
119398         * lib/xstrndup.h: New file.
119399         * lib/xstrndup.c: New file.
119401 2003-08-17  Bruno Haible  <bruno@clisp.org>
119403         * modules/strndup (Files, Include): Add lib/strndup.h.
119405 2003-08-17  Bruno Haible  <bruno@clisp.org>
119407         * modules/euidaccess (Files): Add lib/euidaccess.h.
119409 2003-08-17  Bruno Haible  <bruno@clisp.org>
119411         * lib/strndup.h: New file.
119413 2003-08-17  Bruno Haible  <bruno@clisp.org>
119415         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
119416         like AC_GNU_SOURCE.
119417         * modules/extensions (configure.ac): Comment out the invocation of
119418         gl_USE_SYSTEM_EXTENSIONS.
119420 2003-08-16  Paul Eggert  <eggert@twinsun.com>
119422         Merges from coreutils, etc.
119423         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
119424         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
119425         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
119426         fixing a typo.
119427         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
119428         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
119430 2003-08-16  Paul Eggert  <eggert@twinsun.com>
119432         Document merge from coreutils.
119433         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
119434         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
119435         * modules/utime: Add m4/utimes-null.m4.
119437 2003-08-16  Paul Eggert  <eggert@twinsun.com>
119439         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
119440         space, undoing this 2003-08-12 change:
119441         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
119443 2003-08-16  Paul Eggert  <eggert@twinsun.com>
119445         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
119446         strtoul.c from libc, undoing this 2003-08-12 change:
119447         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
119449 2003-08-16  Jim Meyering  <jim@meyering.net>
119451         Merges from coreutils.
119452         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
119453         prefix.  Adjust cache variables similarly.  Create 500 rather than
119454         just 300 files, to exercise bug on Darwin6.5, too.
119455         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
119456         $missing_dir.
119457         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
119458         AM_SYS_POSIX_TERMIOS.
119459         Reported by mkc@mathdogs.com.
119460         Also change use of $am_cv_sys_posix_termios
119461         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
119462         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
119463         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
119464         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
119465         in /proc/mounts until it finds one with matching device number.  This
119466         is unnecessary when the FILE argument *is* a mount point.  No stat call
119467         is necessary in that case.  So, disable the statvfs-testing code on
119468         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
119469         as RedHat bug# 84846.
119470         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
119471         to 1MB, so as not to render systems with no stack size limit (e.g.,
119472         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
119473         Include <unistd.h>.  On some systems,
119474         it is required for the definition of _SC_PAGESIZE.
119476 2003-08-16  Jim Meyering  <jim@meyering.net>
119478         Merge from coreutils.
119479         * lib/xstrtoimax.c: #else #if -> #elif.
119480         * lib/xstrtoumax.c: Likewise.
119482 2003-08-16  Jim Meyering  <jim@meyering.net>
119484         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
119485         * m4/utimes.m4: Removed.
119486         * m4/utimes-null.m4: Renamed from utimes.m4.
119488         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
119489         to 1MB, so as not to render systems with no stack size limit (e.g.,
119490         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
119491         Include <unistd.h>.  On some systems,
119492         it is required for the definition of _SC_PAGESIZE.
119494 2003-08-16  Jim Meyering  <jim@meyering.net>
119495         and Paul Eggert  <eggert@cs.ucla.edu>
119497         Merges from coreutils, etc.
119499         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
119500         using the latest version from cvs.  This avoids problems with #line
119501         directives using a vendor (Sun) compiler.
119502         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
119503         Don't set GETGROUPS_LIB here; now it's
119504         done via getgroups.m4's wrapper function.
119505         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
119506         rather than just in sh-util/configure.in, so that the
119507         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
119508         same.
119509         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
119510         AC_FUNC_GETLOADAVG where to find getloadavg.c.
119511         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
119512         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
119513         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
119514         Remove code that is now done by the newly-required macros.
119515         Append $(EXEEXT) to DF_PROG.
119516         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
119517         Do not invoke or require the following here,
119518         since prereq.m4 or some gnulib .m4 now does this for us:
119519         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
119520         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
119521         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
119522         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
119523         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
119524         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
119525         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
119526         AC_FUNC_OBSTACK.
119527         Do not replace the following functions, as this is now the job
119528         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
119529         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
119530         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
119531         atexit getpass, strdup, getpagesize.
119532         Replace 'raise'.
119533         Do not check for the following functions, as this is now the job
119534         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
119535         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
119536         setregid.
119537         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
119538         Check for sys/sysctl.h.
119539         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
119540         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
119541         of checking for ssize_t ourselves.
119543         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
119544         Require every macro that gnulib/modules/* suggests for us.
119545         (jm_PREREQ_ADDEXT): New macro.
119546         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
119547         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
119549         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
119550         (gl_PHYSMEM): Use it.
119551         Also check for `table' function.
119552         Check for new headers and functions.
119553         Add check for sys/sysmp.h.
119554         With suggestions from Kaveh Ghazi.
119555         Ignore headers that are present but cannot be compiled.  This
119556         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
119557         C 5.4.
119559 2003-08-15  Paul Eggert  <eggert@twinsun.com>
119561         Document merge from coreutils.
119562         * modules/userspec: Depend on posixver.
119563         * modules/strftime: Depend on tzset.
119565 2003-08-15  Paul Eggert  <eggert@twinsun.com>
119567         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
119568         rather than tab, after '#' in shell-script copyright notices.
119569         Suggested by Bruno Haible.
119571 2003-08-15  Paul Eggert  <eggert@twinsun.com>
119573         * config/srclist-update: Use three spaces, rather than tab, after '#'
119574         in shell-script copyright notices.  Suggested by Bruno Haible.
119575         Remove unnecessary parenthesization in regular expression.
119577 2003-08-15  Jim Meyering  <jim@meyering.net>
119579         Merge from coreutils.
119580         * lib/xgethostname.c: Include <stdlib.h>.
119581         (xghostname): Don't exit for anything other than memory-related
119582         failure; just return NULL.
119583         * lib/userspec.c: Include "posixver.h".
119584         (parse_user_spec): Accept `.' as a separator only
119585         in pre-POSIX-200112 mode.
119586         * lib/strtoimax.c: Use #elif rather than #else #if.
119587         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
119588         Remove function, now that we can rely on a working tzset function.
119589         [!_LIBC]: Ensure that the required autoconf test has been run.
119590         [!defined _NL_CURRENT && HAVE_STRFTIME]:
119591         Use underlying_strftime for %r.
119592         * lib/sha.c: Merge in some clean-up and optimization changes from
119593         glibc.
119594         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
119595         Ensure that it is a multiple of 64.
119596         Rearrange loop exit tests so as to avoid performing an
119597         additional fread after encountering an error or EOF.
119598         * lib/realloc.c: Update copyright date.
119600 2003-08-15  Jim Meyering  <jim@meyering.net>
119601         and Paul Eggert  <eggert@twinsun.com>
119603         Merge from coreutils.
119604         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
119605         member but strut utmpx does not.  Needed for AIX 4.3.3.
119606         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
119608 2003-08-15  Jim Meyering  <jim@meyering.net>
119609         and Paul Eggert  <eggert@cs.ucla.edu>
119611         Merges from coreutils, etc.
119612         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
119613         Require gl_FUNC_TZSET_CLOBBER.
119614         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
119615         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
119616         members.
119618 2003-08-14  Paul Eggert  <eggert@twinsun.com>
119620         Help the merge from coreutils.
119621         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
119622         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
119623         * m4/tzset.m4: Use it too.
119625 2003-08-14  Paul Eggert  <eggert@twinsun.com>
119627         * modules/tzset: New file.
119629 2003-08-14  Jim Meyering  <jim@meyering.net>
119631         Merges from coreutils.
119632         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
119633         variable names, rather than @FNMATCH_H@.
119634         * modules/alloca: Likewise for $(ALLOCA_H).
119636         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
119637         the three copies of the literal target, `fnmatch.h'.
119638         * modules/alloca (alloca.h): Likewise.
119640 2003-08-14  Jim Meyering  <jim@meyering.net>
119642         Merge from coreutils.
119643         * m4/tzset.m4: New file.
119644         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
119645         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
119646         otherwise, AIX 5.1 systems would end up using the latter.
119647         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
119648         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
119649         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
119650         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
119652 2003-08-14  Jim Meyering  <jim@meyering.net>
119654         Merge from coreutils.
119655         * lib/obstack.h: Whitespace changes.
119656         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
119657         and xcalloc return values.
119658         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
119659         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
119660         hang on OSF/1 5.1 for DIR on both local and remote file systems.
119661         Reported by (and fix confirmed by) Nelson H. F. Beebe.
119662         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
119663         error from mntctl.
119664         Use mntctl's return value to drive the entry-processing loop, since
119665         we can't rely on the value of the vmt_length member in the last
119666         entry.  On some systems doing so could result in exhausting
119667         virtual memory.  Based in part on a patch from Mike Jetzer.
119669 2003-08-14  Jim Meyering  <jim@meyering.net>
119670         and Paul Eggert  <eggert@twinsun.com>
119672         Merges from coreutils, plus other fixes.
119673         * lib/physmem.c: Merge in portability changes from gcc/libiberty
119674         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
119675         for credits and details.  Thanks to Kaveh Ghazi for helping
119676         to keep these files in sync.
119677         (ARRAY_SIZE): Define it.
119678         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
119679         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
119680         (memcasecmp): Don't assume size_t fits in unsigned int.
119681         Remove casts and duplicate code.
119682         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
119683         (memcpy): Remove definition.
119684         Merge in some clean-up and optimization changes from glibc.
119685         [BLOCKSIZE]: Move definition to top of file.
119686         Ensure that it is a multiple of 64.
119687         Rearrange loop exit tests so as to avoid performing an
119688         additional fread after encountering an error or EOF.
119689         * lib/md5.h (md5_uintptr): Define.
119690         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
119691         return to the initial working directory.  Preserve errno
119692         for caller.
119693         * lib/idcache.c: Include "xalloc.h".
119694         (xmalloc, xrealloc): Remove decls.
119695         (getuser): Remove casts no longer required in C89.
119696         * lib/human.c: Include stdio.h, for sprintf.
119697         * lib/group-member.c: Include "xalloc.h".
119698         (xmalloc, xrealloc): Remove decls.
119699         (get_group_info): Remove casts no longer required in C89.
119700         * lib/getusershell.c (readname): Remove casts no longer required in
119701         C89.
119702         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
119703         * lib/getline.c: Whitespace fix, from coreutils.
119705 2003-08-13  Paul Eggert  <eggert@twinsun.com>
119707         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
119708         Check for isascii.
119710         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
119711         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
119712         Undo previous (whitespace-only) change.
119714 2003-08-13  Paul Eggert  <eggert@twinsun.com>
119716         * lib/exclude.c: Include <ctype.h>
119717         (IN_CTYPE_DOMAIN): New macro.
119718         (is_space): New fn.
119719         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
119720         and empty lines.
119722         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
119723         Undo previous (whitespace-only) change.
119725 2003-08-13  Paul Eggert  <eggert@twinsun.com>
119727         * config/srclist-update: Change update back to the old behavior,
119728         leaving whitespace alone.  Use one 'sed' command rather than a
119729         pipeline.
119730         (fixlicense): Now a variable, not a function.
119731         (remove_trailing_blanks): Remove.
119732         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
119733         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
119734         Undo previous (whitespace-only) change.
119736 2003-08-12  Paul Eggert  <eggert@twinsun.com>
119738         Merge from coreutils.
119739         * modules/euidaccess: Add lib_SOURCES, include for new
119740         file euidaccess.h
119742 2003-08-12  Paul Eggert  <eggert@twinsun.com>
119744         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
119745         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
119746         Normalize leading white space and remove trailing white space.
119748         Merge from coreutils
119749         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
119751         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
119752         0.12.1.  These files are now being upgraded automatically by
119753         ../config/srclist-update.
119755 2003-08-12  Paul Eggert  <eggert@twinsun.com>
119757         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
119758         Normalize leading white space and remove trailing white space.
119759         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
119760         notice, as per ../config/srclist-update.
119762         Merge from coreutils.
119763         * lib/euidaccess.h: New file.
119764         * lib/euidaccess.c: Include it.
119765         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
119766         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
119767         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
119769 2003-08-12  Paul Eggert  <eggert@twinsun.com>
119771         * config/srclist-update: Add copyright notice.
119772         (remove_id_lines, remove_trailing_blanks): New constants.
119773         (fixfile): Use them to normalize spacing a bit in copied files.
119774         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
119775         Normalize leading white space and remove trailing white space.
119777         * config/texinfo.tex: Sync with texinfo.
119779         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
119780         strtoul.c from libc, to merge coreutils whitespace changes.
119782         * config/srclist.txt: Get the following m4 files from gettext:
119783         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
119784         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
119785         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
119786         wint_t.m4.
119788 2003-08-12  Karl Berry  <karl@gnu.org>
119790         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
119791         been made.
119793 2003-08-11  Paul Eggert  <eggert@twinsun.com>
119795         * modules/gnu-source, m4/gnu-source.m4:
119796         Remove; we're assuming Autoconf 2.54 or later now.
119797         Suggested by Bruno Haible.
119798         * MODULES.html.sh (func_all_modules): Remove gnu-source.
119800 2003-08-11  Bruno Haible  <bruno@clisp.org>
119802         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
119804 2003-08-11  Bruno Haible  <bruno@clisp.org>
119806         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
119807         (vasnprintf): Use it instead of wcslen.
119809 2003-08-11  Bruno Haible  <bruno@clisp.org>
119811         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
119812         value to ensure that _Bool promotes to int. Use #define for _Bool when
119813         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
119815 2003-08-10  Karl Berry  <karl@gnu.org>
119817         * lib/regex.h: update from libc (whitespace fix).
119819 2003-08-09  Paul Eggert  <eggert@twinsun.com>
119821         Merge some files from coreutils.  These changes were
119822         originally made by Jim Meyering.
119823         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
119824         many older Unixes require this.
119825         * lib/alloca.c (alloca): Remove cast to argument of free;
119826         no longer needed in C89.
119827         * lib/alloca_.h, regex.h: Fix white space to match
119828         what GNU indent does.
119830 2003-08-09  Paul Eggert  <eggert@twinsun.com>
119832         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
119833         apparently Emacs's Unicode mode got confused before my 2003-08-05
119834         checkin.
119836 2003-08-08  Paul Eggert  <eggert@twinsun.com>
119838         * m4/extensions.m4: New file.
119839         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
119840         Require gl_USE_SYSTEM_EXTENSIONS.
119841         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
119842         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
119844 2003-08-08  Paul Eggert  <eggert@twinsun.com>
119846         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
119847         * modules/extensions, modules/gnu-source: New files.
119848         * modules/timespec, modules/unlocked-io: Depend on extensions.
119850 2003-08-07  Paul Eggert  <eggert@twinsun.com>
119852         * modules/restrict: New file.
119853         * MODULES.html.sh (func_all_modules): Add restrict.
119854         * modules/regex: Depend on restrict.
119856 2003-08-07  Paul Eggert  <eggert@twinsun.com>
119858         * m4/restrict.m4: New file.
119859         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
119861 2003-08-07  Bruno Haible  <bruno@clisp.org>
119863         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
119864         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
119866 2003-08-07  Bruno Haible  <bruno@clisp.org>
119868         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
119869         makes the module 'getndelim2' compatible with the module 'getline'.
119871 2003-08-05  Paul Eggert  <eggert@twinsun.com>
119873         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
119874         byte with "\201" to avoid glitches when editing that source file
119875         with multi-gnome-terminal.
119877 2003-08-05  Paul Eggert  <eggert@twinsun.com>
119879         * lib/bumpalloc.h: Remove.
119881 2003-08-05  Paul Eggert  <eggert@twinsun.com>
119883         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
119884         * modules/bumpalloc: Remove.
119886 2003-08-04  Paul Eggert  <eggert@twinsun.com>
119888         * lib/getloadavg.c: Change copyright notice and spacing to conform to
119889         GNU coding style.
119891         Merge from coreutils.
119892         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
119893         1. From glibc.
119894         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
119895         from Karl Berry, implemented by Jim Meyering.
119896         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
119897         from Dmitry V. Levin.
119898         Remove anachronistic cast of xrealloc.
119899         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
119900         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
119901         type. Otherwise, it wouldn't compile with at least /bin/cc on
119902         ymp-cray-unicos9.0.2.X.
119903         Combine two mostly-identical uses of alloca into one.
119904         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
119906 2003-08-04  Dave Love  <d.love@dl.ac.uk>
119908         [From Emacs.]
119910         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
119911         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
119912         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
119913         obsolete NLIST_NAME_UNION.
119914         [__GNU__]: Undef BSD and FSCALE.
119915         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
119917 2003-08-03  Paul Eggert  <eggert@twinsun.com>
119919         * lib/stdbool_.h (_Bool): Make it signed char, instead of
119920         an enum type, so that it's guaranteed to promote to int.  See:
119921         <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00124.html>
119923 2003-08-03  Karl Berry  <karl@gnu.org>
119925         * config/depcomp: update from automake.
119927 2003-07-31  Paul Eggert  <eggert@twinsun.com>
119929         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
119930         (strerror): Don't assume that a printable int fits in 14 bytes.
119932 2003-07-31  Bruno Haible  <bruno@clisp.org>
119934         * modules/getpass-gnu: New file.
119935         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
119937 2003-07-31  Bruno Haible  <bruno@clisp.org>
119939         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
119941 2003-07-24  Karl Berry  <karl@gnu.org>
119943         * config/missing: update from automake.
119945 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
119946             Bruno Haible  <bruno@clisp.org>
119948         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
119949         * lib/getline.c (getline, getdelim): Likewise.
119950         Remove _GNU_SOURCE define; now it's defined in config.h through
119951         m4/getline.m4.
119953 2003-07-23  Karl Berry  <karl@gnu.org>
119955         * config/config.sub: update from prep.
119957 2003-07-22  Paul Eggert  <eggert@twinsun.com>
119959         * modules/xalloc (Depends-on): Add exitfail.
119960         * modules/xmemcoll: Likewise.
119962 2003-07-22  Paul Eggert  <eggert@twinsun.com>
119964         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
119965         over-parenthesization in macros.
119967         Sync with coreutils.
119969         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
119970         required by C99.
119972         Use `exit_failure' for xalloc and xmemcoll instead of their own
119973         private exit-failure variables.
119974         * lib/xalloc.h (xalloc_exit_failure): Remove.
119975         * lib/xmalloc.c: Likewise.  Include exitfail.h.
119976         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
119977         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
119978         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
119979         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
119981 2003-07-20  Jim Meyering  <jim@meyering.net>
119983         * modules/closeout (Depends-on): Add exitfail.
119984         Suggestion from Bruno Haible.
119986 2003-07-19  Karl Berry  <karl@gnu.org>
119988         * config/config.sub: update from prep.
119990 2003-07-18  Paul Eggert  <eggert@twinsun.com>
119992         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
119993         Remove.
119994         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
119995         to test that it can stand by itself.  Include "exitfail.h".
119996         Clients should set exit_failure instead.
119997         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
119999 2003-07-18  Bruno Haible  <bruno@clisp.org>
120001         * modules/getndelim2: New file.
120002         * modules/getline: Share files with module getndelim2.
120003         * modules/getnline: Depend on getndelim2 instead of sharing files with
120004         it. Add getnline.c to lib_SOURCES.
120005         * MODULES.html.sh (func_all_modules): Add getndelim2.
120007 2003-07-18  Bruno Haible  <bruno@clisp.org>
120009         * m4/getndelim2.m4: New file.
120010         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
120011         invoke gl_PREREQ_GETNDELIM2.
120012         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
120013         gl_PREREQ_GETNDELIM2.
120014         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
120015         gl_GETNDELIM2.
120017 2003-07-18  Bruno Haible  <bruno@clisp.org>
120019         * lib/getndelim2.h: New file.
120020         * lib/getndelim2.c: Make into a module of its own. Include config.h,
120021         getndelim2.h.
120022         (getndelim2): Make non-static. Change return type to ssize_t.
120023         * lib/getline.h: Change argument names.
120024         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
120025         * lib/getnline.c: Include getndelim2.h.
120027 2003-07-18  Andreas Schwab  <schwab@suse.de>
120029         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
120031 2003-07-17  Karl Berry  <karl@gnu.org>
120033         * config/config.sub: update from prep.
120035 2003-07-17  Bruno Haible  <bruno@clisp.org>
120037         * modules/getnline: New file.
120038         * modules/getline: Add lib/getndelim2.c to source file list.
120039         * MODULES.html.sh (func_all_modules): Add getnline.
120041 2003-07-17  Bruno Haible  <bruno@clisp.org>
120043         * m4/getnline.m4: New file.
120045 2003-07-17  Bruno Haible  <bruno@clisp.org>
120047         * m4/Makefile.am.in: Remove file.
120048         * m4/Makefile.am: Remove file.
120049         * m4/Makefile.in: Remove file.
120051 2003-07-17  Bruno Haible  <bruno@clisp.org>
120053         * lib/getnline.h: New file.
120054         * lib/getnline.c: New file.
120055         * lib/getndelim2.c: New file, extracted from getline.c.
120056         (getndelim2): Renamed from getdelim2, with added nmax argument.
120057         * lib/getline.c: Include getndelim2.c.
120058         (getdelim2): Moved out to getndelim2.c.
120059         (getline, getdelim): Update.
120061 2003-07-17  Bruno Haible  <bruno@clisp.org>
120063         * lib/Makefile.am: Remove file.
120064         * lib/Makefile.in: Remove file.
120066 2003-07-17  Bruno Haible  <bruno@clisp.org>
120068         * configure.in: Remove file.
120069         * Makefile.in: Remove file.
120071 2003-07-17  Bruno Haible  <bruno@clisp.org>
120073         * MODULES.html.sh: Put the </BODY> right before </HTML>.
120075 2003-07-16  Karl Berry  <karl@gnu.org>
120077         * config/srclist-update: was running fixlicense twice, which caused
120078                 texinfo.tex to be nullified for some reason.  Simplify,
120079                 $gplsrc is no longer needed as far as I can see?
120081 2003-07-16  Jim Meyering  <jim@meyering.net>
120083         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
120085 2003-07-15  Paul Eggert  <eggert@twinsun.com>
120087         * config/srclist.txt: Get the following files from gettext-runtime/intl
120088         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
120089         ref-del.sin.  From Bruno Haible.
120090         * config/srclist-update (fixfile): Change grep pattern again, since the
120091         previous fix didn't work (there was another trailing $).  Use
120092         '[$]' to escape the $s.
120094 2003-07-15  Karl Berry  <karl@gnu.org>
120096         * lib/vasnprintf.c: update from gettext.
120098 2003-07-15  Karl Berry  <karl@gnu.org>
120100         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
120101         gets expanded when surrounded by '$'.
120103 2003-07-15  Jim Meyering  <jim@meyering.net>
120105         * modules/save-cwd: Don't depend on error.  From Derek Price.
120107 2003-07-15  Jim Meyering  <jim@meyering.net>
120109         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
120111 2003-07-14  Simon Josefsson  <jas@extundo.com>
120113         * modules/mempcpy: New file.
120114         * MODULES.html.sh (func_all_modules): Add mempcpy.
120116 2003-07-14  Simon Josefsson  <jas@extundo.com>
120118         * m4/mempcpy.m4: New file.
120120 2003-07-14  Simon Josefsson  <jas@extundo.com>
120122         * lib/mempcpy.h: New file.
120123         * lib/mempcpy.c: New file.
120125 2003-07-14  Paul Eggert  <eggert@twinsun.com>
120127         * modules/getdate, modules/posixtm: Depend on mktime.
120129 2003-07-14  Paul Eggert  <eggert@twinsun.com>
120131         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
120132         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
120133         unicodeio.c, unicodeio.h, unlocked-io.h:
120134         Switch from LGPL to GPL.
120136 2003-07-14  Paul Eggert  <eggert@twinsun.com>
120138         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
120139         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
120140         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
120141         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
120142         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
120143         updated automatically by ../config/srclist-update.  This changes
120144         their license from LPGL to GPL.
120146 2003-07-14  Paul Eggert  <eggert@twinsun.com>
120148         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
120149         assumed to refer to the root of the most recent stable gettext version.
120150         * config/srclistvars.sh: Add defaults for eggert.
120151         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
120152         Match "This program" as well as "The program".  This is needed
120153         for gettext.
120155 2003-07-14  Jim Meyering  <jim@meyering.net>
120157         Don't emit diagnostics.  Let callers do that.
120158         * lib/save-cwd.c: Don't include "error.h".
120159         (save_cwd): Don't call error.  Ensure that errno is valid
120160         when returning nonzero.
120162         * lib/save-cwd.h (restore_cwd): Update prototype.
120163         * lib/save-cwd.c (restore_cwd): Remove two parameters.
120164         Simplify.  Don't call error upon failure.  Let callers do that.
120165         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
120166         when auditing is enabled.  But don't bother updating the #if.
120168 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
120170         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
120171         it breaks C++ compilation.
120172         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
120174 2003-07-10  Simon Josefsson  <jas@extundo.com>
120176         * modules/strchrnul (Makefile.am): Add strchrnul.h.
120178 2003-07-10  Jim Meyering  <jim@meyering.net>
120180         * m4/clock_time.m4: Remove trailing blank.
120181         * m4/intmax_t.m4: Likewise.
120183 2003-07-10  Jim Meyering  <jim@meyering.net>
120185         * lib/vasnprintf.c: Remove trailing blanks.
120186         Make cpp indentation consistent.
120188 2003-07-09  Paul Eggert  <eggert@twinsun.com>
120190         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
120191         posixver.c, strftime.c, strnlen.c, strverscmp.c:
120192         Switch from LGPL to GPL.
120194 2003-07-09  Paul Eggert  <eggert@twinsun.com>
120196         * config/srclist.txt: Sort sublists.  Add
120197         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
120198         that differ from gnulib for one reason or another; we'd like this list
120199         to be smaller but for now let's document what we have.
120201 2003-07-08  Paul Eggert  <eggert@twinsun.com>
120203         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
120204         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
120205         and sweeter "eval x=$x".
120206         * config/srclist.txt: Get lib/argp* from glibc.
120208 2003-07-07  Paul Eggert  <eggert@twinsun.com>
120210         * lib/mktime.c: Fix some boundary cases and remove need for floating
120211         point.
120213         Issue a compile-time diagnostic if time_t is floating point, or if
120214         two's complement arithmetic is not in effect, or if arithmetic
120215         right shift does not propagate the sign.  These assumptions were
120216         all in the original code but they weren't checked.
120218         (TIME_T_MIDPOINT, verify): New macros.
120219         (__isleap): Remove; it has integer overflow problems.
120220         (leapyear): New function, without those problems.
120221         (ydhms_tm_diff): Remove; splitting into two parts.
120222         (ydhms_diff): New function, containing the arithmetic part of
120223         the old ydhms_tm_diff function.  Issue a compile-time
120224         diagnostic if we are not using C99 integer division.
120225         Avoid casts when possible.
120226         (guess_time_tm): New function, containing the checking part of
120227         the old ydhms_tm_diff function.  Return the new value, rather than
120228         the difference between it and the old.  Accept a new argument T
120229         so that *T specifies the old value.  Check for overflow in the result.
120231         (__mktime_internal): Use a time_t offset, not a long int offset.
120232         This undoes the 2003-06-04 change, which is no longer needed now
120233         that we have better overflow checking.
120234         (localtime_offset): Likewise.
120236         (__mktime_internal): Avoid harmful overflow on hosts where time_t
120237         and long are 64-bit but int is only 32-bit.
120238         (ydhms_diff): Use long int to store year1 and yday1.
120239         Issue a compile-time diagnostic if long int is not wide enough.
120241         (__mktime_internal): Use long int to store adjusted year and yday.
120242         Use plain C rather than preprocessor commands, if that doesn't
120243         affect efficiency.
120244         Check for overflow (and try to repair) after each probe
120245         rather than checking only at the very end.  This avoids some bugs
120246         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
120247         does not equal GMT offset at maximum time).
120248         Use integer to check for overflow rather than floating point; this
120249         is more portable to non-IEEE hosts, and is a tad faster.
120250         When we detect that we are oscillating between two values,
120251         don't check whether tm_isdst has the requested value, since
120252         we already know the answer.  When tm_isdst has the wrong value,
120253         use a different heuristic to find the right one, based on the
120254         extreme values actually observed in practice in tz2003a,
120255         rather than the (overly optimistic) "previous 3 calendar quarters".
120257         (not_equal_tm, print_tm, check_result): Use "const T" rather than
120258         "T const" to accommodate glibc style.
120259         (check_result): Use less-confusing report format.  "long" -> "long int.
120260         (main): Likewise.
120261         Don't loop if the iteration overflows time_t.
120262         Allow a negative step in the iteration.
120264 2003-07-06  Karl Berry  <karl@gnu.org>
120266         * config/depcomp: update from automake.
120267         * config/config.sub: update from prep.
120269 2003-07-03  Karl Berry  <karl@gnu.org>
120271         * config/config.guess: update from prep.
120273 2003-07-01  Paul Eggert  <eggert@twinsun.com>
120275         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
120276         xreadlink.c now includes it unconditionally.
120278 2003-07-01  Paul Eggert  <eggert@twinsun.com>
120280         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
120281         having it depend on HAVE_SYS_TYPES_H.
120283 2003-07-01  Bruno Haible  <bruno@clisp.org>
120285         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
120286         <sys/types.h> should be sufficient.
120287         Reported by Paul Eggert.
120289 2003-06-26  Karl Berry  <karl@gnu.org>
120291         * config/depcomp: update from automake.
120293 2003-06-26  Bruno Haible  <bruno@clisp.org>
120295         * modules/human: Depend on module stdbool.
120297 2003-06-25  Bruno Haible  <bruno@clisp.org>
120299         * modules/readlink: New file.
120300         * modules/xreadlink: Depend on it.
120301         * MODULES.html.sh (func_all_modules): Add readlink.
120303 2003-06-25  Bruno Haible  <bruno@clisp.org>
120305         * m4/readlink.m4: New file.
120307 2003-06-25  Bruno Haible  <bruno@clisp.org>
120309         * lib/readlink.c: New file.
120311 2003-06-22  Karl Berry  <karl@gnu.org>
120313         * config/srclist.txt: update mkinstalldirs from automake.
120314         * config/mkinstalldirs: update.
120316 2003-06-22  Bruno Haible  <bruno@clisp.org>
120318         Portability to mingw32.
120319         * m4/ssize_t.m4: New file, from GNU gettext.
120320         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
120321         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
120323 2003-06-22  Bruno Haible  <bruno@clisp.org>
120325         * modules/safe-read: Add m4/ssize_t.m4.
120326         * modules/xreadlink: Add m4/ssize_t.m4.
120328 2003-06-20  Bruno Haible  <bruno@clisp.org>
120330         Assume C89, so PARAMS isn't needed.
120331         * lib/unicodeio.h (PARAMS): Remove.
120332         * lib/unicodeio.c: Don't use PARAMS.
120334 2003-06-18  Karl Berry  <karl@gnu.org>
120336         * config/config.{guess,sub}: update from prep.
120338 2003-06-18  Jim Meyering  <jim@meyering.net>
120340         Merge changes from coreutils.
120341         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
120342         Remove explicit declarations of xmalloc and realloc.
120343         Include xalloc.h.
120344         (read_utmp): Remove anachronistic cast of xmalloc.
120346 2003-06-17  Paul Eggert  <eggert@twinsun.com>
120348         Assume C89, so PARAMS isn't needed.
120349         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
120350         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
120351         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
120352         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
120353         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
120354         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
120355         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
120356         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
120357         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
120358         lib/xstrtod.h, lib/xstrtol.h: Likewise.
120359         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
120360         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
120361         no longer needed. Anyway, config.h should always be included before any
120362         other file.
120364 2003-06-11  Simon Josefsson  <jas@extundo.com>
120366         * modules/sysexits: New file.
120367         * MODULES.html.sh (func_all_modules): Add sysexits.
120369 2003-06-11  Simon Josefsson  <jas@extundo.com>
120371         * lib/sysexit_.h: New file.
120373 2003-06-11  Derek Price  <derek@ximbiot.com>
120375         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
120376         necessary.
120378 2003-06-11  Bruno Haible  <bruno@clisp.org>
120380         * m4/sysexits.m4: New file.
120382 2003-06-10  Simon Josefsson  <jas@extundo.com>
120384         * lib/argp.h: New file, from glibc.
120385         * lib/argp-ba.c: New file, from glibc.
120386         * lib/argp-eexst.c: New file, from glibc.
120387         * lib/argp-fmtstream.c: New file, from glibc.
120388         * lib/argp-fmtstream.h: New file, from glibc.
120389         * lib/argp-fs-xinl.c: New file, from glibc.
120390         * lib/argp-help.c: New file, from glibc.
120391         * lib/argp-namefrob.h: New file, from glibc.
120392         * lib/argp-parse.c: New file, from glibc.
120393         * lib/argp-pv.c: New file, from glibc.
120394         * lib/argp-pvh.c: New file, from glibc.
120395         * lib/argp-xinl.c: New file, from glibc.
120397 2003-06-10  Simon Josefsson  <jas@extundo.com>
120399         * modules/strchrnul: New file.
120401 2003-06-10  Simon Josefsson  <jas@extundo.com>
120403         * modules/argp: New file.
120405 2003-06-10  Simon Josefsson  <jas@extundo.com>
120407         * m4/strchrnul.m4: New file.
120409 2003-06-10  Simon Josefsson  <jas@extundo.com>
120411         * lib/strchrnul.h: New file.
120412         * lib/strchrnul.c: New file.
120414 2003-06-10  Bruno Haible  <bruno@clisp.org>
120416         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
120418 2003-06-07  Karl Berry  <karl@gnu.org>
120420         * config/config.{guess,sub}: update from prep.
120422 2003-06-07  Jim Meyering  <jim@meyering.net>
120424         * modules/strtod: Use $(...) notation, not @...@ for
120425         AC_REPLACE'd variables.
120426         * modules/localcharset: Likewise.
120428 2003-06-07  Jim Meyering  <jim@meyering.net>
120430         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
120431         in place of my name in the copyright comment.
120432         Remove definition and uses of __P.
120434         From coreutils.
120435         * lib/stat.c: Don't declare xmalloc explicitly.
120436         Instead, include "xalloc.h".
120437         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
120438         xrealloc, and xcalloc return values.
120439         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
120440         Improve comment.
120441         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
120443 2003-06-07  Bruno Haible  <bruno@clisp.org>
120445         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
120446         avoid AC_CONFIG_LINKS.
120447         * modules/fnmatch (Makefile.am): Use explicit creation rule for
120448         fnmatch.h, to avoid AC_CONFIG_LINKS.
120449         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
120451 2003-06-07  Bruno Haible  <bruno@clisp.org>
120453         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
120454         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
120455         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
120456         directory.
120457         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
120458         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
120459         directory.
120461 2003-06-06  Jim Meyering  <jim@meyering.net>
120463         Merge from coreutils.
120464         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
120465         Consolidate declarations and initializations of *_base* locals.
120467         Merge from coreutils.
120468         This avoids a core dump on systems without GNU putenv,
120469         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
120470         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
120471         (unsetenv): New static function, from GNU libc.
120472         (rpl_putenv): Use it.
120474         * lib/modechange.c: Remove trailing blanks.
120476         Merge from coreutils.
120477         * lib/fsusage.c: Remove declaration of statfs.
120478         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
120480         * lib/posixtm.c: Include <stdbool.h> unconditionally.
120482 2003-06-06  Jim Meyering  <jim@meyering.net>
120484         * lib/stdbool_.h: Renamed from stdbool.h.in.
120486 2003-06-06  Jim Meyering  <jim@meyering.net>
120487             Bruno Haible  <bruno@clisp.org>
120489         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
120490         Adjust Makefile.am snippet not to redirect directly to target.
120491         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
120493 2003-06-05  Paul Eggert  <eggert@twinsun.com>
120495         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
120496         mismatch, look in future quarters as well as past.  This fixes a
120497         bug when processing fall-backwards gaps immediately after a long
120498         period of daylight-saving time.
120500         * lib/mktime.c: Assume freestanding C89 or better.
120501         (HAVE_LIMITS_H): Remove.  Assume it's 1.
120502         (__P): Remove; not used.
120503         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
120504         (mktime, not_equal_tm, print_tm, check_result,
120505         main): Use prototypes.  Use const * where appropriate.
120506         (main): Fix typo in testing code that uncovered by above changes.
120507         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
120509 2003-06-04  Paul Eggert  <eggert@twinsun.com>
120511         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
120512         locale.h, localeconv.  This merges changes from coreutils.
120514         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
120515         It can be removed after the next Autoconf is released.
120516         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
120517         needed.
120519 2003-06-04  Paul Eggert  <eggert@twinsun.com>
120521         * lib/mktime.c: Fix Debian bug 177940
120522         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
120523         (localtime_offset): Now long int, not time_t, because we want it
120524         to be guaranteed to be signed.  All uses changed.
120525         (__mktime_internal): If overflow would occur when adding offset,
120526         don't add it.
120528         Merge 'human' changes from coreutils.  Rewrite to support
120529         locale-specific notations like thousands separators.
120530         * lib/human.c: Simplify authorship notice.
120531         Include human.h immediately after config.h.
120532         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
120533         <limits.h>: Do not include, since human.h does.
120534         (SIZE_MAX, UINTMAX_MAX): New macros.
120535         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
120536         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
120537         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
120538         (power_letter): Renamed from suffixes.
120539         (generate_suffix_backwards): Remove.
120540         (adjust_value): Now takes int style (because of human.h changes)
120541         and long double value (for greater precision on some platforms).
120542         (group_number): New function.
120543         (human_readable): Use it.  Use integer options, not enum.
120544         Put the options before the sizes in the arg list.
120545         Support all the new options.
120546         The old human_readable function has been removed;
120547         use inttostr.h instead.
120548         (human_readable, default_block_size, humblock):
120549         Use uintmax_t, not int, for block sizes.
120550         (human_readable_inexact, block_size_types): Remove.
120551         (block_size_opts): New constant.
120552         (human_options): Renamed from human_block_size, with new signature
120553         that allows block sizes up to UINTMAX_MAX.  All callers changed.
120554         * lib/human.h: Add copyright and authorship notice.
120555         Include <limits.h> and <stdbool.h> unconditionally.
120556         (PARAMS): Remove.  All uses removed.
120557         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
120558         (enum human_inexact_style): Remove tag; now a nameless enum.
120559         (human_floor, human_ceiling, human_round_to_even): Now have
120560         values 2, 0, 1 rather than -1, 1, 0.
120561         (human_group_digits, human_suppress_point_zero, human_autoscale,
120562         human_base_1024, human_SI, human_B): New constants.
120563         (human_readable_inexact, human_block_size): Remove.
120564         (human_readable): Size args are now uintmax_t, not int.
120565         (human_options): New decl.
120567         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
120568         unnecessary now that we assume C89 or better.  This change
120569         imported from coreutils.
120571         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
120572         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
120573         in the 2003-05-30 sync from glibc.
120575         .h files should stand alone, but we shouldn't include <sys/types.h>
120576         if we can get away with just <stddef.h>.
120578         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
120579         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
120580         rather than <sys/types.h>, as we merely need size_t.
120581         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
120582         to get size_t.
120583         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
120584         Include <stdio.h>, to get FILE.
120585         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
120586         memcasecmp.h has included <stddef.h> and all we need is size_t.
120587         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
120588         our interface, instead of including <sys/types.h>
120590 2003-06-04  Paul Eggert  <eggert@twinsun.com>
120592         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
120593         now, as glibc mktime is buggy on non-glibc systems.
120595 2003-06-03  Karl Berry  <karl@gnu.org>
120597         * config/config.sub: update from prep.
120599 2003-06-02  Paul Eggert  <eggert@twinsun.com>
120601         [from coreutils]
120602         Fix some minor time-related bugs with POSIX time arguments.
120603         Some valid time stamps were being rejected (notably -1, and
120604         time stamps before 1900 on 64-bit hosts).  And some invalid
120605         time stamps were being accepted, e.g. September 31.
120607         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
120608         that we can return (time_t) -1 successfully.
120609         * lib/posixtm.c: Likewise.
120610         [HAVE_STDBOOL_H]: Include <stdbool.h>.
120611         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
120612         (t): Remove static var.
120613         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
120614         of static var.  All uses changed.
120615         (year): Do not reject years before 1900; they can occur with
120616         64-bit time_t.
120617         (posix_time_parse): Do not check for out-of-range components;
120618         that is now the caller's responsibility, since our checks were
120619         only approximations.
120620         (posixtime): Use mktime to check for out-of-range components,
120621         since it knows them exactly.
120622         If mktime returns (time_t) -1, check whether an error actually occurred
120623         by invoking localtime on -1.
120624         (main) [TEST_POSIXTIME]: Check for input data errors, and report
120625         posixtime failures better.
120626         Improve the test data (in comments only).
120628 2003-06-02  Karl Berry  <karl@gnu.org>
120630         * config/mkinstalldirs (version): new variable.
120631         (--version): new option.
120632         (usage): improve message.
120634 2003-05-30  Karl Berry  <karl@gnu.org>
120636         * lib/mktime.c: update from libc.
120638 2003-05-30  Bruno Haible  <bruno@clisp.org>
120640         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
120641         * config/config.rpath: Upgrade to gettext-0.12.1.
120643 2003-05-30  Bruno Haible  <bruno@clisp.org>
120645         * m4/gettext.m4: Upgrade to gettext-0.12.1.
120646         * m4/nls.m4: New file, from gettext-0.12.1.
120647         * m4/po.m4: New file, from gettext-0.12.1.
120648         * m4/progtest.m4: Upgrade to gettext-0.12.1.
120650 2003-05-30  Bruno Haible  <bruno@clisp.org>
120652         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
120653         * lib/localcharset.h: Likewise.
120654         * lib/localcharset.c: Likewise.
120656 2003-05-29  Karl Berry  <karl@gnu.org>
120658         * config/config.rpath: update from gettext.
120660 2003-05-28  Paul Eggert  <eggert@twinsun.com>
120662         Assume the headers required for C89 freestanding compilers.
120663         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
120664         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
120665         * m4/human.m4 (gl_HUMAN): Likewise.
120666         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
120667         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
120668         * m4/userspec.m4 (gl_USERSPEC): Likewise.
120669         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
120670         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
120671         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
120673 2003-05-28  Paul Eggert  <eggert@twinsun.com>
120675         Assume the headers required for C89 freestanding compilers.
120676         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
120677         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
120678         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
120679         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
120680         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
120681         define, since <limits.h> is guaranteed to do that.
120682         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
120683         * lib/exclude.c: Include <stdbool.h> unconditionally.
120684         * lib/tempname.c: Include <stddef.h> unconditionally.
120685         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
120686         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
120687         <stddef.h> does that.
120688         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
120689         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
120690         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
120691         needed.
120692         * lib/xstrtol.c: Likewise.
120693         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
120694         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
120696         * lib/addext.c (addext): Use assignment rather than cast, to avoid
120697         warnings on some platforms.
120699         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
120700         arbitrarily.
120702 2003-05-26  Jim Meyering  <jim@meyering.net>
120704         Merge in a change from coreutils:
120705         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
120706         that is guaranteed to be `no'.  Use `no_such_member' to indicate
120707         that condition, rather than `-1' which is slightly misleading.
120708         Change the name of the cache variable to have the gl_ prefix.
120709         Prompted by a patch from Richard Dawe for DJGPP.
120711 2003-05-24  Karl Berry  <karl@gnu.org>
120713         * config/config.guess: update from prep.
120715 2003-05-22  Karl Berry  <karl@gnu.org>
120717         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
120719 2003-05-20  Karl Berry  <karl@gnu.org>
120721         * config/config.guess: update from prep.
120723 2003-05-18  Karl Berry  <karl@gnu.org>
120725         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
120726         might actually be set by the user.
120728         * config/depcomp, install-sh, mdate-sh: update from automake.
120730 2003-05-17  Bruno Haible  <bruno@clisp.org>
120732         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
120733         invalid expansion for AC_EGREP_CPP.
120734         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
120735         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
120736         Suggested by Akim Demaille <akim@epita.fr> in
120737         http://mail.gnu.org/r/bug-autoconf/2003-05/threads.html
120739 2003-05-12  Jim Meyering  <jim@meyering.net>
120741         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
120742         the space-padded-by-default conversion specifiers, %e, %k, %l.
120744 2003-05-12  Bruno Haible  <bruno@clisp.org>
120746         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
120747         the string is longer than 4 KB.
120749 2003-05-11  Karl Berry  <karl@gnu.org>
120751         * config/config.{guess,sub}: update from prep.
120753 2003-05-09  Bruno Haible  <bruno@clisp.org>
120755         * modules/error: Add m4/strerror_r.m4 to file list.
120757 2003-05-03  Bruno Haible  <bruno@clisp.org>
120759         Upgrade to Unicode-4.0.
120760         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
120761         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
120762         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
120763         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
120764         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
120765         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
120766         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
120767         Change width of U+E0100..U+E01EF from 1 to 0.
120769 2003-04-25  Jim Meyering  <jim@meyering.net>
120771         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
120772         of type size_t, not int.
120774 2003-04-25  Bruno Haible  <bruno@clisp.org>
120776         * lib/copy-file.c: Include <stddef.h>, for size_t.
120778 2003-04-21  Paul Eggert  <eggert@twinsun.com>
120780         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
120781         code which expansion is under static control.  Patch imported from
120782         Akim Demaille's patch to Bison; see
120783         <http://mail.gnu.org/r/bison-patches/2003-03/msg00057.html>.
120785 2003-04-14  Bruno Haible  <bruno@clisp.org>
120787         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
120789 2003-04-11  Jim Meyering  <jim@meyering.net>
120791         Merge changes from Coreutils.
120793         2003-03-22  Jim Meyering  <jim@meyering.net>
120795         * lib/strftime.c (widen): Cast alloca return value to proper type.
120797         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
120799         From GNU libc.
120800         * lib/strftime.c (my_strftime): Handle very large width
120801         specifications for numeric values correctly.  Improve checks for
120802         overflow.
120804         2003-01-19  Jim Meyering  <jim@meyering.net>
120806         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
120807         definitions.
120808         (nl_get_alt_digit) [! defined my_strftime]: Define.
120809         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
120810         _nl_get_alt_digit and _nl_get_walt_digit.
120812         * lib/strftime.c (my_strftime): Merge in locale-related changes from
120813         libc. These changes have no effect outside of _LIBC.
120815 2003-04-10  Bruno Haible  <bruno@clisp.org>
120817         * modules/findprog: New file.
120818         * MODULES.html.sh (func_all_modules): Add it.
120820 2003-04-10  Bruno Haible  <bruno@clisp.org>
120822         * m4/findprog.m4: New file.
120823         * m4/eaccess.m4: New file.
120825 2003-04-10  Bruno Haible  <bruno@clisp.org>
120827         * lib/findprog.h: New file, from GNU gettext.
120828         * lib/findprog.c: New file, from GNU gettext.
120830 2003-04-05  Jim Meyering  <jim@meyering.net>
120832         Merge changes from Coreutils.
120834         * lib/exclude.h (PARAMS): Remove definition and uses.
120835         * lib/exclude.c: Remove uses of `PARAMS'.
120837         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
120838         Add test-cases for DOS filenames. Declare program_name.
120839         (main): Set up program_name.  Patch by Rich Dawe.
120841         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
120842         error from mntctl.
120843         Use mntctl's return value to drive the entry-processing loop, since
120844         we can't rely on the value of the vmt_length member in the last
120845         entry.  On some systems doing so could result in exhausting
120846         virtual memory.  Based in part on a patch from Mike Jetzer.
120848 2003-04-04  Bruno Haible  <bruno@clisp.org>
120850         * modules/linebreak: New file.
120851         * MODULES.html.sh (func_all_modules): Add it.
120853 2003-04-04  Bruno Haible  <bruno@clisp.org>
120855         * m4/linebreak.m4: New file.
120857 2003-04-04  Bruno Haible  <bruno@clisp.org>
120859         * lib/linebreak.h: New file, from GNU gettext.
120860         * lib/linebreak.c: New file, from GNU gettext with slight
120861         modifications.
120862         * lib/lbrkprop.h: New file, from GNU gettext.
120864 2003-04-03  Bruno Haible  <bruno@clisp.org>
120866         * modules/utf8-ucs4: New file.
120867         * modules/utf16-ucs4: New file.
120868         * modules/ucs4-utf8: New file.
120869         * modules/ucs4-utf16: New file.
120870         * MODULES.html.sh (func_all_modules): Add them.
120872 2003-04-03  Bruno Haible  <bruno@clisp.org>
120874         * m4/utf-ucs4.m4: New file.
120875         * m4/ucs4-utf.m4: New file.
120877 2003-04-03  Bruno Haible  <bruno@clisp.org>
120879         * lib/utf8-ucs4.h: New file, from GNU gettext.
120880         * lib/utf16-ucs4.h: New file, from GNU gettext.
120881         * lib/ucs4-utf8.h: New file, from GNU gettext.
120882         * lib/ucs4-utf16.h: New file, from GNU gettext.
120884 2003-04-02  Bruno Haible  <bruno@clisp.org>
120886         * modules/binary-io: New file.
120887         * MODULES.html.sh (func_all_modules): Add it.
120889 2003-04-02  Bruno Haible  <bruno@clisp.org>
120891         * lib/binary-io.h: New file, from GNU gettext.
120893 2003-04-01  Bruno Haible  <bruno@clisp.org>
120895         * modules/pathname: New file.
120896         * MODULES.html.sh (func_all_modules): Add it.
120898 2003-04-01  Bruno Haible  <bruno@clisp.org>
120900         * lib/pathname.h: New file, from GNU gettext.
120901         * lib/concatpath.c: New file, from GNU gettext.
120903 2003-03-30  Bruno Haible  <bruno@clisp.org>
120905         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
120907 2003-03-30  Bruno Haible  <bruno@clisp.org>
120909         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
120910         function chown() doesn't exist.
120912 2003-03-28  Bruno Haible  <bruno@clisp.org>
120914         * modules/copy-file: New file.
120915         * MODULES.html.sh (func_all_modules): Add it.
120917 2003-03-28  Bruno Haible  <bruno@clisp.org>
120919         * m4/copy-file.m4: New file.
120921 2003-03-28  Bruno Haible  <bruno@clisp.org>
120923         * lib/copy-file.h: New file, from GNU gettext.
120924         * lib/copy-file.c: New file, from GNU gettext.
120926 2003-03-18  Jim Meyering  <jim@meyering.net>
120928         * lib/quote.c (quote_n): Fix typo in comment.
120930 2003-03-18  Bruno Haible  <bruno@clisp.org>
120932         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
120933         checking.
120934         * m4/onceonly_2_57.m4: Likewise.
120936 2003-03-17  Bruno Haible  <bruno@clisp.org>
120938         * m4/onceonly.m4: Require autoconf 2.54 or newer.
120939         (m4_quote): Remove macro.
120940         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
120942 2003-03-14  Jim Meyering  <jim@meyering.net>
120944         Merge changes from Coreutils.
120945         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
120946         to be const, in order to avoid warnings.
120947         (obstack_room): Likewise.
120948         (obstack_empty_p): Likewise.
120950 2003-03-14  Bruno Haible  <bruno@clisp.org>
120952         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
120953         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
120955 2003-03-13  Paul Eggert  <eggert@twinsun.com>
120957         Merge changes from Bison.
120958         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
120959         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
120960         when compiling Bison 1.875's `bitset bset = obstack_alloc
120961         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
120962         * lib/hash.c: Include <stdbool.h> unconditionally.
120964 2003-03-13  Paul Eggert  <eggert@twinsun.com>
120966         * m4/onceonly.m4 (m4_quote): New macro.
120967         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
120968         Quote AC_FOREACH variable-expansions properly.
120970 2003-03-13  Paul Eggert  <eggert@twinsun.com>
120972         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
120974 2003-03-09  Paul Eggert  <eggert@twinsun.com>
120976         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
120977         Reported by Bruce Becker; see:
120978         http://mail.gnu.org/r/bug-bison/2003-03/msg00017.html
120980 2003-03-03  Paul Eggert  <eggert@twinsun.com>
120981             Bruno Haible  <bruno@clisp.org>
120983         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
120984         Reported by John Hughes, see
120985         http://mail.gnu.org/r/bug-bison/2003-02/msg00030.html
120987 2003-02-20  Bruno Haible  <bruno@clisp.org>
120989         * MODULES.html.sh (func_all_modules): Add poll.
120991 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
120993         * modules/poll: New file.
120995 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
120997         * lib/poll_.h: New file.
120998         * lib/poll.c: New file.
121000 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
121002         * m4/poll.m4: New file.
121004 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
121006         * modules/mathl: New file.
121008 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
121010         * lib/mathl.h: New file.
121011         * lib/acosl.c: New file.
121012         * lib/asinl.c: New file.
121013         * lib/atanl.c: New file.
121014         * lib/ceill.c: New file.
121015         * lib/cosl.c: New file.
121016         * lib/expl.c: New file.
121017         * lib/floorl.c: New file.
121018         * lib/frexpl.c: New file.
121019         * lib/ldexpl.c: New file.
121020         * lib/logl.c: New file.
121021         * lib/sincosl.c: New file.
121022         * lib/sinl.c: New file.
121023         * lib/sqrtl.c: New file.
121024         * lib/tanl.c: New file.
121025         * lib/trigl.c: New file.
121026         * lib/trigl.h: New file.
121028 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
121030         * m4/mathl.m4: New file.
121032 2003-02-18  Bruno Haible  <bruno@clisp.org>
121034         * MODULES.html.sh (func_all_modules): Add mathl.
121036 2003-02-17  Bruno Haible  <bruno@clisp.org>
121038         * modules/mkdtemp: New module.
121039         * MODULES.html.sh (func_all_modules): Add it.
121041 2003-02-17  Bruno Haible  <bruno@clisp.org>
121043         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
121045 2003-02-17  Bruno Haible  <bruno@clisp.org>
121047         * lib/mkdtemp.h: New file, from GNU gettext.
121048         * lib/mkdtemp.c: New file, from GNU gettext.
121050 2003-02-02  Jim Meyering  <jim@meyering.net>
121052         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
121053         e.g. glibc-2.2.93.
121055 2003-01-31  Bruno Haible  <bruno@clisp.org>
121057         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
121058         'rpl_rename'.
121059         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
121060         'rpl_strnlen'.
121061         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
121062         'rpl_strtod'.
121063         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
121064         'rpl_utime'.
121066 2003-01-31  Bruno Haible  <bruno@clisp.org>
121068         * lib/rename.c: #undef rename before defining rpl_rename.
121069         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
121071 2003-01-30  Bruno Haible  <bruno@clisp.org>
121073         * modules/vasnprintf, modules/vasprintf: New modules.
121074         * MODULES.html.sh (func_all_modules): Add them.
121076 2003-01-30  Bruno Haible  <bruno@clisp.org>
121078         * m4/signed.m4: New file, from GNU gettext.
121079         * m4/longdouble.m4: New file, from GNU gettext.
121080         * m4/wchar_t.m4: New file, from GNU gettext.
121081         * m4/wint_t.m4: New file, from GNU gettext.
121082         * m4/vasnprintf.m4: New file.
121083         * m4/vasprintf.m4: New file.
121085 2003-01-30  Bruno Haible  <bruno@clisp.org>
121087         * lib/printf-args.h: New file, from GNU gettext.
121088         * lib/printf-args.c: New file, from GNU gettext.
121089         * lib/printf-parse.h: New file, from GNU gettext.
121090         * lib/printf-parse.c: New file, from GNU gettext.
121091         * lib/vasnprintf.h: New file, from GNU gettext.
121092         * lib/vasnprintf.c: New file, from GNU gettext.
121093         * lib/asnprintf.c: New file, from GNU gettext.
121094         * lib/vasprintf.h: New file, from GNU gettext with modifications.
121095         * lib/vasprintf.c: New file, from GNU gettext.
121096         * lib/asprintf.c: New file, from GNU gettext.
121098 2003-01-29  Bruno Haible  <bruno@clisp.org>
121100         * modules/stpncpy: New module.
121101         * MODULES.html.sh (func_all_modules): Add it.
121103 2003-01-29  Bruno Haible  <bruno@clisp.org>
121105         * m4/stpncpy.m4: New file.
121107 2003-01-29  Bruno Haible  <bruno@clisp.org>
121109         * lib/stpncpy.h: New file, from GNU gettext with modifications.
121110         * lib/stpncpy.c: New file, from GNU gettext with modifications.
121112 2003-01-28  Bruno Haible  <bruno@clisp.org>
121114         * modules/c-ctype: New module.
121115         * MODULES.html.sh (func_all_modules): Add it.
121117 2003-01-28  Bruno Haible  <bruno@clisp.org>
121119         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
121120         Paul Eggert.
121121         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
121122         Paul Eggert.
121124 2003-01-27  Bruno Haible  <bruno@clisp.org>
121126         * modules/xsetenv: New module.
121127         * MODULES.html.sh (func_all_modules): Add it.
121129 2003-01-27  Bruno Haible  <bruno@clisp.org>
121131         * lib/xsetenv.h: New file, from GNU gettext.
121132         * lib/xsetenv.c: New file, from GNU gettext.
121134 2003-01-23  Jim Meyering  <jim@meyering.net>
121136         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
121137         from working on systems without dirfd (at least Irix and OSF1/Tru64).
121139 2003-01-23  Bruno Haible  <bruno@clisp.org>
121141         * modules/minmax: New module.
121142         * MODULES.html.sh (func_all_modules): Add it.
121144 2003-01-23  Bruno Haible  <bruno@clisp.org>
121146         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
121147         Eggert.
121149 2003-01-22  Bruno Haible  <bruno@clisp.org>
121151         * modules/exit: New module.
121152         * MODULES.html.sh (func_all_modules): Add it.
121154 2003-01-22  Bruno Haible  <bruno@clisp.org>
121156         * lib/exit.h: New file, from GNU gettext.
121158 2003-01-19  Bruno Haible  <bruno@clisp.org>
121160         * gnulib-tool: Recognize option --extract-maintainer.
121161         (func_get_maintainer): New function.
121162         * modules/*: Add Maintainer entry.
121164 2003-01-16  Jim Meyering  <jim@meyering.net>
121166         * m4/regex.m4: The `regex' struct is both input and output.
121167         Initialize it before each use.  Patch by Tim Waugh.
121169 2003-01-16  Bruno Haible  <bruno@clisp.org>
121171         * MODULES.html.sh: Add a table of contents. Add the module name as
121172         leftmost column. Add hyperlinks.
121174 2003-01-15  Bruno Haible  <bruno@clisp.org>
121176         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
121178 2003-01-15  Bruno Haible  <bruno@clisp.org>
121180         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
121181         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
121182         suffix.
121184 2003-01-15  Bruno Haible  <bruno@clisp.org>
121186         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
121188 2003-01-15  Bruno Haible  <bruno@clisp.org>
121190         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
121191         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
121193 2003-01-14  Jim Meyering  <jim@meyering.net>
121195         * lib/same.c (same_name): Tweak a comment.
121197 2003-01-14  Bruno Haible  <bruno@clisp.org>
121199         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
121200         when a string comparison is sufficient.
121202 2003-01-14  Bruno Haible  <bruno@clisp.org>
121204         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
121205         'unsigned int'.
121207 2003-01-14  Bruno Haible  <bruno@clisp.org>
121209         * lib/hash-pjw.c: Add comment about low quality of this function.
121211 2003-01-13  Bruno Haible  <bruno@clisp.org>
121213         * modules/stpcpy: Distribute lib/stpcpy.h.
121214         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
121216 2003-01-13  Bruno Haible  <bruno@clisp.org>
121218         * modules/*: Add a description.
121219         * modules/strpbrk: Fix Makefile.am snippet.
121220         * modules/strtoimax: Fix dependencies.
121221         * modules/strtoumax: Likewise.
121223 2003-01-13  Bruno Haible  <bruno@clisp.org>
121225         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
121226         * modules/alloca (Makefile.am): All object files depend on alloca.h.
121227         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
121229 2003-01-13  Bruno Haible  <bruno@clisp.org>
121231         * gnulib-tool (func_create_testdir): Store config/* files in the main
121232         directory.
121233         * config.rpath: Move to ...
121234         * config/config.rpath: ... here.
121235         * modules/gettext: Contains config/config.rpath, not config.rpath.
121236         * modules/iconv: Likewise.
121238 2003-01-12  Paul Eggert  <eggert@twinsun.com>
121240         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
121241         to avoid collisions with libcurses and libreadline.
121243         * m4/getstr.m4: Remove.
121244         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
121246 2003-01-12  Paul Eggert  <eggert@twinsun.com>
121248         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
121249         to avoid collisions with libcurses and libreadline.
121251         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
121252         * lib/getstr.h, getstr.c: Remove.
121253         * lib/getline.c: Include "getline.h", to check interface.
121254         Move body of old getstr.c here: this defines MIN_CHUNK and
121255         declares getdelim2, which is renamed from getstr.
121256         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
121258         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
121259         All uses changed.
121260         * lib/linebuffer.h: Likewise.
121261         (readline): Remove backward-compatibility macro.
121263 2003-01-12  Paul Eggert  <eggert@twinsun.com>
121265         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
121266         to avoid collisions with libcurses and libreadline.
121267         * getstr: Remove.
121268         * MODULES.html.sh: Remove getstr.
121269         * modules/getline: Depend on unlocked-io, not getstr.
121271 2003-01-12  Jim Meyering  <jim@meyering.net>
121273         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
121275 2003-01-10  Bruno Haible  <bruno@clisp.org>
121277         * modules/alloca: Change Makefile.am requirements. Simplify Include
121278         requirements. Add lib/alloca_.h to file list.
121280 2003-01-10  Bruno Haible  <bruno@clisp.org>
121282         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
121284 2003-01-10  Bruno Haible  <bruno@clisp.org>
121286         * lib/alloca_.h: New file.
121287         * lib/getdate.y: Unconditionally include alloca.h.
121288         * lib/makepath.c: Likewise.
121289         * lib/setenv.c: Likewise.
121290         * lib/userspec.c: Likewise.
121292 2003-01-09  Karl Berry  <karl@gnu.org>
121294         * MODULES.html.sh: include `dirname $0` in PATH, to find
121295         gnulib-tool.
121297 2003-01-09  Bruno Haible  <bruno@clisp.org>
121299         * modules/stdbool: Change configure.ac, Makefile.am requirements.
121300         Simplify Include requirements. Add lib/stdbool.h.in to file list.
121302 2003-01-09  Bruno Haible  <bruno@clisp.org>
121304         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
121306 2003-01-09  Bruno Haible  <bruno@clisp.org>
121308         * lib/stdbool.h.in: New file.
121310 2003-01-09  Bruno Haible  <bruno@clisp.org>
121312         * gnulib-tool (func_all_modules): Ignore files ending in ~.
121313         * MODULES.html.sh: Likewise.
121315 2003-01-08  Jim Meyering  <jim@meyering.net>
121317         * lib/full-write.c: Undefine and define-away `const' after inclusion
121318         of errno.h, not before.  Suggestion from Bruno Haible.
121320 2003-01-08  Bruno Haible  <bruno@clisp.org>
121322         * modules/full-read: Depend on full-write.
121324 2003-01-08  Bruno Haible  <bruno@clisp.org>
121326         * lib/safe-read.c: Include specification header first, to ensure its
121327         selfcontainedness.
121328         * lib/full-write.c: Likewise.
121330 2003-01-07  Jim Meyering  <jim@meyering.net>
121332         * lib/full-write.c: Rework so that it may serve to define full_read,
121333         too.
121334         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
121336 2003-01-07  Bruno Haible  <bruno@clisp.org>
121338         * lib/strtoimax.c: Include <stdint.h> as an alternative to
121339         <inttypes.h>.
121340         * lib/xstrtol.h: Likewise.
121341         * lib/xstrtoimax.c: Likewise.
121342         * lib/xstrtoumax.c: Likewise.
121343         * lib/human.h: Likewise.
121345         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
121346         on systems that have <inttypes.h> but not <stdint.h>.
121348 2003-01-07  Bruno Haible  <bruno@clisp.org>
121350         * MODULES.html.sh: Add copyright notice.
121351         (missed_files): Omit CVS directory entries.
121352         (func_module): Make it work with sed-3.02.
121353         * MODULES.txt: Remove file.
121355 2003-01-06  Jim Meyering  <jim@meyering.net>
121357         * lib/version-etc.c: Update year in translatable copyright string.
121359 2003-01-03  Karl Berry  <karl@gnu.org>
121361         * config/config.{guess,sub}: update from prep.
121363 2003-01-02  Karl Berry  <karl@gnu.org>
121365         * doc/COPYING.DOC: belatedly updated to 1.2.
121367 2003-01-01  Karl Berry  <karl@gnu.org>
121369         * gnulib-tool (func_verify_module): report module name $module in
121370         error message, not $1.
121371         * gnulib-tool (create-testdir): don't complain if destdir couldn't
121372         be created, only if it doesn't exist.
121373         * gnulib-tool (last_checkin_date): don't expand the $Date here.
121375 2002-12-31  Paul Eggert  <eggert@twinsun.com>
121377         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
121379 2002-12-31  Paul Eggert  <eggert@twinsun.com>
121381         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
121382         memcmp if strcoll doesn't work.
121384 2002-12-31  Bruno Haible  <bruno@clisp.org>
121386         * lib/utime.c (utime_null): No need to call ftruncate if the file was
121387         nonempty.
121389 2002-12-31  Bruno Haible  <bruno@clisp.org>
121391         * lib/memcoll.c (STRCOLL): New macro.
121392         (memcoll): Use it.
121394 2002-12-31  Bruno Haible  <bruno@clisp.org>
121396         * lib/localcharset.h: New file.
121397         * lib/localcharset.c: Include it.
121398         * lib/unicodeio.c: Likewise.
121400 2002-12-31  Bruno Haible  <bruno@clisp.org>
121402         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
121403         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
121405 2002-12-31  Bruno Haible  <bruno@clisp.org>
121407         * lib/getline.h: Include <stddef.h>, for size_t.
121409         * lib/unicodeio.h: Include <stddef.h>, for size_t.
121410         * lib/unicodeio.c: Don't include <stddef.h>.
121412 2002-12-31  Bruno Haible  <bruno@clisp.org>
121414         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
121415         HAVE_TM_ZONE.
121417 2002-12-24  Karl Berry  <karl@gnu.org>
121419         * config/config.guess: update from prep.
121421 2002-12-24  Bruno Haible  <bruno@clisp.org>
121423         General infrasructure.
121424         * m4/README: Rewritten.
121425         * m4/onceonly.m4: New file.
121426         * m4/onceonly_2_57.m4: New file.
121428         Module atexit.
121429         * m4/atexit.m4: New file.
121431         Module strtod.
121432         * m4/strtod.m4: New file.
121434         Module strtol.
121435         * m4/strtol.m4: New file.
121437         Module strtoul.
121438         * m4/strtoul.m4: New file.
121440         Module memchr.
121441         * m4/memchr.m4: New file.
121443         Module memcmp.
121444         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
121445         (jm_FUNC_MEMCMP): Invoke it.
121447         Module memcpy.
121448         * m4/memcpy.m4: New file.
121450         Module memmove.
121451         * m4/memmove.m4: New file.
121453         Module memset.
121454         * m4/memset.m4: New file.
121456         Module strcspn.
121457         * m4/strcspn.m4: New file.
121459         Module strpbrk.
121460         * m4/strpbrk.m4: New file.
121462         Module strstr.
121463         * m4/strstr.m4: New file.
121465         Module strerror.
121466         * m4/strerror.m4: New file.
121468         Module mktime.
121469         * m4/mktime.m4: Renamed from jm-mktime.m4.
121470         (gl_PREREQ_MKTIME): New macro.
121471         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
121473         Module malloc.
121474         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
121475         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
121476         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
121478         Module realloc.
121479         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
121480         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
121481         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
121483         Module strftime.
121484         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
121485         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
121486         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
121487         gl_TM_GMTOFF.
121488         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
121490         Module xalloc.
121491         * m4/xalloc.m4: New file.
121493         Module alloca.
121494         * m4/alloca.m4: New file.
121496         Module putenv.
121497         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
121498         (jm_FUNC_PUTENV): Invoke it.
121500         Module setenv.
121501         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
121502         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
121503         when invoked twice.
121504         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
121505         gt_FUNC_SETENV.
121507         Module memrchr.
121508         * m4/memrchr.m4: New file.
121510         Module stpcpy.
121511         * m4/stpcpy.m4: New file.
121513         Module strcase.
121514         * m4/strcase.m4: New file.
121516         Module strdup.
121517         * m4/strdup.m4: New file.
121519         Module strnlen.
121520         * m4/strnlen.m4: New file.
121522         Module strndup.
121523         * m4/strndup.m4: New file.
121525         Module xstrtod.
121526         * m4/xstrtod.m4: New file.
121528         Module xstrtol.
121529         * m4/xstrtol.m4: New file.
121531         Module getdate.
121532         * m4/getdate.m4: New file.
121534         Module unlocked-io.
121535         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
121536         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
121537         * m4/jm-glibc-io.m4n: Remove file.
121539         Module long-options.
121540         * m4/long-options.m4: New file.
121542         Module md5.
121543         * m4/md5.m4: New file.
121545         Module sha.
121546         * m4/sha.m4: New file.
121548         Module getstr.
121549         * m4/getstr.m4: New file.
121551         Module getline.
121552         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
121553         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
121554         <sys/types.h>, for size_t. Use the function name gnu_getline, not
121555         simply getline. Infoke gl_PREREQ_GETLINE.
121557         Module obstack.
121558         * m4/obstack.m4: New file.
121560         Module hash.
121561         * m4/hash.m4: New file.
121563         Module readtokens.
121564         * m4/readtokens.m4: New file.
121566         Module strverscmp.
121567         * m4/strverscmp.m4: New file.
121569         Module stdbool.
121570         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
121571         OSF/1.
121573         Module strtoll.
121574         * m4/strtoll.m4: New file.
121576         Module strtoull.
121577         * m4/strtoull.m4: New file.
121579         Module strtoimax.
121580         * m4/strtoimax.m4: New file.
121582         Module strtoumax.
121583         * m4/strtoumax.m4: New file.
121585         Module xstrtoimax.
121586         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
121587         jm_AC_PREREQ_XSTRTOIMAX.
121588         Moved the strtol prerequisites to strtol.m4.
121589         Moved the strtoll prerequisites to strtoll.m4.
121590         Moved the strtoimax prerequisites to strtoimax.m4.
121592         Module xstrtoumax.
121593         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
121594         jm_AC_PREREQ_XSTRTOUMAX.
121595         Moved the strtoul prerequisites to strtoul.m4.
121596         Moved the strtoull prerequisites to strtoull.m4.
121597         Moved the strtoumax prerequisites to strtoumax.m4.
121599         Module chown.
121600         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
121601         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
121603         Module dup2.
121604         * m4/dup2.m4: New file.
121606         Module ftruncate.
121607         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
121608         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
121610         Module getgroups.
121611         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
121612         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
121614         Module gettimeofday.
121615         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
121616         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
121617         gl_PREREQ_GETTIMEOFDAY.
121619         Module mkdir.
121620         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
121621         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
121623         Module mkstemp.
121624         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
121625         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
121626         jm_AC_TYPE_UINTMAX_T.
121627         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
121629         Module stat.
121630         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
121631         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
121633         Module lstat.
121634         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
121635         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
121637         Module timespec.
121638         * m4/timespec.m4 (gl_TIMESPEC): New macro.
121639         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
121640         * m4/st_mtim.m4: Indentation.
121642         Module nanosleep.
121643         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
121644         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
121645         gl_PREREQ_NANOSLEEP.
121647         Module regex.
121648         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
121649         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
121650         (gl_REGEX): New macro.
121652         Module rename.
121653         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
121654         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
121656         Module rmdir.
121657         * m4/rmdir.m4: New file.
121659         Module utime.
121660         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
121661         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
121662         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
121664         Module dirname.
121665         * m4/dirname.m4: New file.
121667         Module getopt.
121668         * m4/getopt.m4: New file.
121670         Module unistd-safer.
121671         * m4/unistd-safer.m4: New file.
121673         Module fnmatch.
121674         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
121675         declaration.
121676         (gl_PREREQ_FNMATCH_EXTRA): New macro.
121677         (gl_FUNC_FNMATCH_POSIX): New macro.
121678         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
121679         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
121680         simply fnmatch.
121682         Module exclude.
121683         * m4/exclude.m4: New file.
121685         Module human.
121686         * m4/human.m4: New file.
121688         Module acl.
121689         * m4/acl.m4: Nop.
121691         Module backupfile.
121692         * m4/backupfile.m4: New file.
121693         * m4/d-ino.m4: Indentation.
121695         Module fsusage.
121696         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
121697         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
121698         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
121700         Module dirfd.
121701         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
121702         requirements.
121704         Module euidaccess.
121705         * m4/euidaccess.m4: New file.
121707         Module file-type.
121708         * m4/file-type.m4: New file.
121710         Module fileblocks.
121711         * m4/fileblocks.m4: New file.
121713         Module filemode.
121714         * m4/filemode.m4: New file.
121716         Module isdir.
121717         * m4/isdir.m4: New file.
121719         Module lchown.
121720         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
121721         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
121723         Module makepath.
121724         * m4/makepath.m4: New file.
121726         Module modechange.
121727         * m4/modechange.m4: New file.
121729         Module mountlist.
121730         * m4/mountlist.m4: New file.
121731         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
121732         Indentation.
121734         Module path-concat.
121735         * m4/path-concat.m4: New file.
121737         Module pathmax.
121738         * m4/pathmax.m4: New file.
121740         Module same.
121741         * m4/same.m4: New file.
121743         Module save-cwd.
121744         * m4/save-cwd.m4: New file.
121746         Module savedir.
121747         * m4/savedir.m4: New file.
121749         Module xgetcwd.
121750         * m4/xgetcwd.m4: New file.
121751         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
121753         Module xreadlink.
121754         * m4/xreadlink.m4: New file.
121756         Module safe-read.
121757         * m4/safe-read.m4: New file.
121759         Module safe-write.
121760         * m4/safe-write.m4: New file.
121762         Module closeout.
121763         * m4/closeout.m4: New file.
121765         Module stdio-safer.
121766         * m4/stdio-safer.m4: New file.
121768         Module getpass.
121769         * m4/getpass.m4: New file.
121771         Module getugroups.
121772         * m4/getugroups.m4: New file.
121774         Module group-member.
121775         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
121776         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
121778         Module idcache.
121779         * m4/idcache.m4: New file.
121781         Module userspec.
121782         * m4/userspec.m4: New file.
121784         Module gettime.
121785         * m4/clock_time.m4: New file.
121786         * m4/gettime.m4: New file.
121788         Module settime.
121789         * m4/settime.m4: New file.
121791         Module posixtm.
121792         * m4/posixtm.m4: New file.
121794         Module gethostname.
121795         * m4/gethostname.m4: New file.
121797         Module canon-host.
121798         * m4/canon-host.m4: New file.
121800         Module gettext.
121801         * m4/codeset.m4: New file, from gettext-0.11.5.
121802         * m4/gettext.m4: New file, from gettext-0.11.5.
121803         * m4/glibc21.m4: New file, from gettext-0.11.5.
121804         * m4/iconv.m4: New file, from gettext-0.11.5.
121805         * m4/intdiv0.m4: New file, from gettext-0.11.5.
121806         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
121807         * m4/inttypes.m4: New file, from gettext-0.11.5.
121808         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
121809         * m4/isc-posix.m4: New file, from gettext-0.11.5.
121810         * m4/lcmessage.m4: New file, from gettext-0.11.5.
121811         * m4/lib-ld.m4: New file, from gettext-0.11.5.
121812         * m4/lib-link.m4: New file, from gettext-0.11.5.
121813         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
121814         * m4/progtest.m4: New file, from gettext-0.11.5.
121815         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
121816         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
121817         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
121819         Module localcharset.
121820         * m4/localcharset.m4: New file.
121822         Module hard-locale.
121823         * m4/hard-locale.m4: New file.
121825         Module mbswidth.
121826         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
121827         onceonly macros.
121828         * m4/mbrtowc.m4: Add comment.
121830         Module memcasecmp.
121831         * m4/memcasecmp.m4: New file.
121833         Module memcoll.
121834         * m4/memcoll.m4: New file.
121836         Module unicodeio.
121837         * m4/unicodeio.m4: New file.
121839         Module rpmatch.
121840         * m4/rpmatch.m4: New file.
121842         Module yesno.
121843         * m4/yesno.m4: New file.
121845         Module exitfail.
121846         * m4/exitfail.m4: New file.
121848         Module c-stack.
121849         * m4/c-stack.m4 (gl_C_STACK): New macro.
121850         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
121852         Module error.
121853         * m4/error.m4 (gl_ERROR): New macro.
121854         (jm_PREREQ_ERROR): Use onceonly macros.
121856         Module fatal.
121857         * m4/fatal.m4: New file.
121859         Module getloadavg.
121860         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
121861         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
121863         Module getpagesize.
121864         * m4/getpagesize.m4: New file.
121866         Module getusershell.
121867         * m4/getusershell.m4: New file.
121869         Module physmem.
121870         * m4/physmem.m4: New file.
121872         Module posixver.
121873         * m4/posixver.m4: New file.
121875         Module quotearg.
121876         * m4/quotearg.m4: New file.
121878         Module quote.
121879         * m4/quote.m4: New file.
121881         Module readutmp.
121882         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
121884         Module sig2str.
121885         * m4/sig2str.m4: New file.
121887         Other.
121888         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
121889         ulonglong.m4.
121890         * m4/intmax_t.m4: New file.
121891         * m4/d-type.m4: Indentation.
121892         * m4/jm-macros.m4: Update.
121893         * m4/prereq.m4 (jm_PREREQ): Update.
121894         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
121895         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
121896         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
121897         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
121898         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
121899         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
121900         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
121901         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
121902         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
121903         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
121904         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
121905         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
121906         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
121907         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
121908         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
121909         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
121910         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
121911         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
121912         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
121914 2002-12-24  Bruno Haible  <bruno@clisp.org>
121916         * MODULES.txt: Update according to m4/ changes.
121918         Module gettext.
121919         * config.rpath: New file, from gettext-0.11.5.
121921         * modules/*: New module descriptions.
121922         * gnulib-tool: New file.
121923         * MODULES.html.sh: New file.
121925 2002-12-21  Karl Berry  <karl@gnu.org>
121927         * doc/fdl.texi: update to version 1.2.
121929 2002-12-19  Karl Berry  <karl@gnu.org>
121931         * config/config.guess: update from prep.
121933 2002-12-18  Bruno Haible  <bruno@clisp.org>
121935         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
121936         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
121938 2002-12-17  Bruno Haible  <bruno@clisp.org>
121940         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
121941         stdlib.h, string.h.
121943 2002-12-17  Bruno Haible  <bruno@clisp.org>
121945         * lib/canon-host.c (strdup): Remove unused declaration.
121947         * lib/fsusage.c: Include full_read.h.
121948         (get_fs_usage): Use full_read instead of safe_read.
121950         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
121952 2002-12-12  Karl Berry  <karl@gnu.org>
121954         * config/config.guess: update from prep.
121956 2002-12-11  Bruno Haible  <bruno@clisp.org>
121958         * m4/setenv.m4: New file, from gettext-0.11.5.
121960 2002-12-11  Bruno Haible  <bruno@clisp.org>
121962         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
121963         not unsetenv().
121964         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
121965         modifications:
121967         2002-12-11  Bruno Haible  <bruno@clisp.org>
121969                 * setenv.c (alloca): Fall back to malloc.
121970                 (freea): New macro.
121971                 (setenv): Use freea() to free memory allocated with alloca().
121973         2002-11-13  Bruno Haible  <bruno@clisp.org>
121975                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
121976                 function declarations.
121977                 * unsetenv.c (unsetenv): Likewise.
121979         2002-03-04  Bruno Haible  <bruno@clisp.org>
121981                 Portability to AIX 4.3.3.
121982                 * unsetenv.c: New file, extracted from setenv.c.
121983                 * setenv.c: Move the unsetenv() function to unsetenv.c.
121985         2001-12-20  Bruno Haible  <bruno@clisp.org>
121987                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
121988                 use malloc instead. For SunOS 4.
121990         2001-12-11  Bruno Haible  <bruno@clisp.org>
121992                 * setenv.c: Declare alloca.
121993                 (compar_fn_t): New typedef.
121994                 (KNOWN_VALUE, STORE_VALUE): Use it.
121996         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
121997         setenv.h.
121999 2002-12-10  Paul Eggert  <eggert@twinsun.com>
122001         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
122002         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
122003         Choose values that are less likely to collide with system fnmatch
122004         options.
122005         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
122006         defined (e.g., a pure POSIX system).
122007         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
122008         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
122010 2002-12-06  Paul Eggert  <eggert@twinsun.com>
122012         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
122013         a pain in practice to deal with generated m4 files.  This change
122014         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
122016         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
122017         and jm-glibc-io.m4, as they are no longer a special case.
122018         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
122019         kludge and the auto-generation stuff.  Check only whether the
122020         functions are declared, not whether they exist, since older hosts
122021         that don't declare the functions can't use the optimization anyway.
122023 2002-12-06  Jim Meyering  <jim@meyering.net>
122025         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
122027         Merge in changes from libc's misc/error.c, in preparation
122028         for the merge of gnulib's changes back into libc.
122030         * lib/error.c (_): Define only if not already defined.
122031         Move definition to follow all #include directives.
122032         Include unlocked-io.h only if !_LIBC.
122033         [_LIBC]: Include <libio/libioP.h>.
122034         [USE_IN_LIBIO]: Include <libio/iolibio.h>
122035         (fflush): Tweak definition to use INTUSE.
122036         (putc): Define.
122038 2002-12-05  Paul Eggert  <eggert@twinsun.com>
122040         * lib/alloca.c [defined emacs]: Include "lisp.h".
122041         (xalloc_die) [defined emacs]: New macro.
122042         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
122043         [! defined emacs]: Include <xalloc.h>.
122044         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
122045         (pointer): Typedef to POINTER_TYPE *.
122046         (malloc): Remove decl; we now always use xmalloc.
122047         (alloca): Use old-style definition, since Emacs needs this.
122048         Check for arithmetic overflow when computing combined size.
122050 2002-12-04  Paul Eggert  <eggert@twinsun.com>
122052         Do not generate unlocked-io.h automatically, since it's easier to
122053         maintain it by hand.
122055         * lib/unlocked-io.h: New file, from GNU diffutils,
122056         but with proper copyright notice and attribution.
122057         * lib/gen-uio: Remove.
122058         * lib/Makefile.am: Add copyright notice.
122059         (libfetish_a_SOURCES): Add unlocked-io.h.
122060         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
122061         (DISTCLEANFILES, io_functions): Remove macros.
122062         (EXTRA_DIST): Remove gen_uio.
122063         (unlocked-io.h): Remove rule.
122065 2002-12-04  Jim Meyering  <jim@meyering.net>
122067         Reflect the fact that stat.c and lstat.c are no longer generated.
122068         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
122069         (DISTCLEANFILES): Likewise.
122070         (EXTRA_DIST): Likewise.
122071         (all_local): Don't depend on stat.c or lstat.c.
122072         (stat.c, lstat.c): Remove rules.
122073         (EXTRA_DIST): Remove xstat.in.
122075         * lib/xstat.in: Remove file.  Contents moved into stat.c.
122076         * lib/stat.c: New file.  Contents mostly from xstat.in.
122077         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
122078         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
122080         * lib/safe-read.c: Rework so that it may serve to define safe_write,
122081         too.
122082         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
122084 2002-12-03  Jim Meyering  <jim@meyering.net>
122086         * lib/safe-read.c, safe-write.c: Change variable names and comments,
122087         but not semantics, to minimize the differences between these two files.
122088         (safe_read): Change comment to mention SAFE_READ_ERROR.
122090         * lib/safe-read.c (IS_EINTR): Define.
122091         (safe_read): Use IS_EINTR in place of in-function cpp directives.
122093 2002-12-02  Jim Meyering  <jim@meyering.net>
122095         * lib/safe-read.c (EINTR): Define.
122096         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
122097         (INT_MAX): Provide fallback.
122098         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
122100         * lib/safe-read.h (SAFE_READ_ERROR): Define.
122102 2002-12-02  Bruno Haible  <bruno@clisp.org>
122104         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
122105         Define, taken from safe-read.c.
122106         (INT_MAX): Provide fallback.
122107         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
122108         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
122110         * lib/safe-read.c (EINTR): Remove definition.
122111         (safe_read): Don't use EINTR if it is absent.
122113 2002-12-01  Jim Meyering  <jim@meyering.net>
122115         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
122116         zero.
122117         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
122119 2002-11-27  Paul Eggert  <eggert@twinsun.com>
122121         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
122122         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
122123         with `if (! (value < limit)) abort ();', for readability.
122125 2002-11-26  Karl Berry  <karl@gnu.org>
122127         * lib/strdup.c: copy from libc again, with jim's ok.
122128         * lib/.cppi-disable: re-add strdup.c
122130 2002-11-25  Karl Berry  <karl@gnu.org>
122132         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
122133         instead of "strtol.c".
122135 2002-11-25  Karl Berry  <karl@gnu.org>
122137         * config/install-sh: update from automake for variable quoting, $0 in
122138         error msgs, etc.
122140         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
122141         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
122142         entry.
122144 2002-11-25  Jim Meyering  <jim@meyering.net>
122146         * lib/mktime.c: Sync from libc, now that it has the latest fix.
122148 2002-11-24  Karl Berry  <karl@gnu.org>
122150         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
122151         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
122153 2002-11-24  Jim Meyering  <jim@meyering.net>
122155         Update from coreutils:
122157         * lib/mktime.c: Merge in changes from libc.
122159         Avoid a link-time failure on some Linux systems.
122160         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
122161         (otherwise).
122162         (__mon_yday): Declare with the STATIC attribute.
122163         (__mktime_internal): Likewise.
122164         Based on a report from Greg Schafer.
122166 2002-11-23  Jim Meyering  <jim@meyering.net>
122168         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
122169         Use `unsigned', not `int', as type of index.
122171         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
122173         * lib/fsusage.c: Remove unneeded parentheses around operands of
122174         `defined'.
122176 2002-11-22  Paul Eggert  <eggert@twinsun.com>
122178         * lib/quotearg.h: Allow multiple inclusion by surrounding with
122179         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
122180         so that we can be included first.
122181         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
122182         * lib/quotearg.c: Include quotearg.h immediately after config.h.
122183         No need to include stddef.h or sys/types.h any more.
122184         Surround local include files with "", not "<>".
122185         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
122186         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
122187         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
122188         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
122189         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
122190         (ISPRINT): Remove; no longer needed now that we assume C89.
122192         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
122193         Preserve errno.
122195         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
122196         quotearg_char): Use SIZE_MAX rather than
122197         (size_t) -1 when we are talking about "infinity".
122199         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
122201 2002-11-22  Paul Eggert  <eggert@twinsun.com>
122203         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
122204         hint that one should use `if (! x) abort ();' rather than `assert
122205         (x);', and anyway it's one less thing to worry about configuring.
122206         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
122207         hash_rehash, hash_insert): Use abort rather than assert.
122209 2002-11-22  Bruno Haible  <bruno@clisp.org>
122211         * lib/safe-read.h: Assume C89. Add comments.
122212         (safe_read): Change return type to size_t.
122213         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
122214         byte counts > SSIZE_MAX correctly.
122215         * lib/safe-write.h: New file.
122216         * lib/safe-write.c: New file.
122217         * lib/full-read.h: New file.
122218         * lib/full-read.c: New file.
122219         * lib/full-write.h: Assume C89. Add comments.
122220         * lib/full-write.c: Include safe-write.h.
122221         (full_write): Rewritten to use safe_write.
122222         Suggested by Jim Meyering and Paul Eggert.
122224 2002-11-21  Jim Meyering  <jim@meyering.net>
122226         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
122228         Merge in changes from the coreutils.
122230         2002-09-25  Paul Eggert  <eggert@twinsun.com>
122231         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
122232         <stdint.h>.
122233         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
122234         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
122235         int.  Work more efficiently if X is the same width as uintmax_t.
122236         Do not compare X to -1, to avoid bogus compiler warning.
122237         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
122238         Don't assume that f_frsize and f_bsize are the same type.
122240         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
122241         warning on FreeBSD.
122243         * lib/makepath.c (make_path): Restore umask *before* creating the final
122244         component.
122245         (make_path): Minor reformatting.
122247         * lib/xmalloc.c: Adjust to work with new autoconf macros,
122248         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
122249         HAVE_MALLOC/HAVE_REALLOC.
122251         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
122252         dummy ones.  At least on GNU/Linux systems, `auto' means something
122253         else.
122254         From Michael Stone.
122256 2002-11-21  Bruno Haible  <bruno@clisp.org>
122258         Remove case insensitive option matching.
122259         * lib/argmatch.h (argcasematch): Remove declaration.
122260         (ARGCASEMATCH): Remove macro.
122261         (__xargmatch_internal): Remove case_sensitive argument.
122262         (XARGMATCH): Update.
122263         (XARGCASEMATCH): Remove macro.
122264         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
122265         case_sensitive argument.
122266         (argcasematch): Remove function.
122267         (__xargmatch_internal): Remove case_sensitive argument.
122268         (main): Use XARGMATCH instead of XARGCASEMATCH.
122270         * lib/xmalloc.c: Change compile-time error message. Add comment about
122271         required autoconf version.
122273 2002-11-20  Paul Eggert  <eggert@twinsun.com>
122275         Merge argmatch cleanups from Bison.  Assume C89.
122277         * lib/argmatch.c: Include config.h here, not in argmatch.h.
122278         Include stdlib.h, for EXIT_FAILURE.
122279         Always include <string.h>, since we assume C89.
122280         (EXIT_FAILURE): Remove pre-C89 bug workaround.
122281         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
122282         Include <stddef.h> instead, since it's all we need for size_t.
122283         (PARAMS): Remove.  All uses removed.
122284         (ARRAY_CARDINALITY): Do not bother to #undef.
122285         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
122286         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
122287         Remove unnecessary parentheses.
122288         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
122289         Insert necessary parentheses.
122290         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
122291         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
122293 2002-11-19  Bruno Haible  <bruno@clisp.org>
122295         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
122296         * lib/mbswidth.h: Include <stddef.h>, for size_t.
122298         * lib/mbswidth.h (PARAMS): Remove macro.
122299         (mbswidth, mbsnwidth): Use ANSI C function declarations.
122300         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
122302         * lib/gcd.h (PARAMS): Remove macro.
122303         (gcd): Use ANSI C function declarations.
122304         * lib/gcd.c (gcd): Likewise.
122306 2002-11-15  Bruno Haible  <bruno@clisp.org>
122308         * lib/strcspn.c: Include <stddef.h>.
122309         (strcspn): Use ANSI C function declaration. Change return type to
122310         size_t. Use NULL.
122311         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
122312         (strpbrk): Use NULL.
122313         * lib/strpbrk.h (PARAMS): Remove macro.
122314         (strpbrk): Use ANSI C function declaration.
122315         * lib/strstr.c: Don't include <sys/types.h>.
122316         * lib/strstr.h (PARAMS): Remove macro.
122317         (strstr): Use ANSI C function declarations.
122319 2002-11-14  Karl Berry  <karl@gnu.org>
122321         * config/mkinstalldirs: `do' on separate line, instead of
122322         `for var; do'.
122324 2002-11-06  Bruno Haible  <bruno@clisp.org>
122326         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
122327         * lib/gcd.c (gcd): Likewise.
122329 2002-11-05  Bruno Haible  <bruno@clisp.org>
122331         * lib/gcd.h: New file, from gettext-0.11.5.
122332         * lib/gcd.c: New file, from gettext-0.11.5.
122334 2002-11-05  Bruno Haible  <bruno@clisp.org>
122336         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
122337         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
122338         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
122339         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
122341         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
122342         <libintl.h>.
122343         * lib/makepath.c: Include gettext.h instead of <locale.h> and
122344         <libintl.h>.
122346         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
122347         * lib/human.c: Include gettext.h instead of <libintl.h>.
122348         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
122349         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
122350         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
122351         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
122352         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
122353         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
122354         (textdomain): Remove definition.
122355         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
122357         * lib/long-options.c: Remove include of <libintl.h> and definition of
122358         _.
122359         * lib/same.c: Remove include of <libintl.h> and definition of _.
122361 2002-11-04  Owen Taylor  <otaylor@redhat.com>
122363         * lib/config.charset: A few additions for Solaris.
122365 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
122367         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
122368         * lib/localcharset.c (locale_charset): Declare as extern "C".
122370 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
122372         * lib/config.charset: msdos in uk_UA uses CP1125.
122374 2002-11-04  Bruno Haible  <bruno@clisp.org>
122376         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
122377         * lib/strcase.h: New file, from GNU gettext-0.11.5.
122378         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
122379         * lib/strstr.h: New file, from GNU gettext-0.11.5.
122380         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
122382 2002-11-04  Bruno Haible  <bruno@clisp.org>
122384         * lib/localcharset.c (locale_charset): Don't return an empty string.
122386 2002-11-04  Bruno Haible  <bruno@clisp.org>
122388         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
122389         aliases.
122391 2002-11-04  Bruno Haible  <bruno@clisp.org>
122393         * lib/config.charset: Update for newest glibc. Add canonical names
122394         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
122396 2002-11-04  Bruno Haible  <bruno@clisp.org>
122398         * lib/config.charset: Add support for NetBSD.
122400 2002-11-04  Bruno Haible  <bruno@clisp.org>
122402         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
122404 2002-11-01  Bruno Haible  <bruno@clisp.org>
122406         * configure.in: Add AC_CONFIG_AUX_DIR call.
122407         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
122408         test/Makefile.
122409         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
122411 2002-09-28  Karl Berry  <karl@gnu.org>
122413         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
122414         installed automake until the next release, since changes have been
122415         made.
122417 2002-09-25  Karl Berry  <karl@gnu.org>
122419         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
122420         * lib/getopt*: copy from libc/posix.
122421         * lib/gettext.h: copy from gettext.
122422         * lib/.cppi-disable: add strdup.c, gettext.h.
122424 2002-09-25  Karl Berry  <karl@gnu.org>
122426         * config/srclist.txt: enable gettext.h check.
122427         * config/config.{guess,sub}: update from prep.
122428         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
122429                 from automake 1.6.3.
122430         See srclist*.
122432 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
122434         * regex.c (PATFETCH): Remove the translating fetch.
122435         (PATFETCH_RAW): Rename to PATFETCH.
122436         (set_image_of_range): New fun.
122437         (SET_RANGE_TABLE_WORK_AREA): Use it.
122438         (regex_compile): Don't translate the pattern chars so eagerly.
122439         Only do it when inserting an `exactn' bytecode or when handling
122440         a char-range.
122441         (mutually_exclusive_p): Avoid empty statement.
122443 2002-07-06  Jim Meyering  <meyering@lucent.com>
122445         * m4/README: Don't mention Makefile.am.in.
122446         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
122448 2002-07-01  Jim Meyering  <meyering@lucent.com>
122450         * lib/c-stack.c: Include sys/time.h.
122451         From Volker Borchert.
122453 2002-06-26  Paul Eggert  <eggert@twinsun.com>
122455         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
122457 2002-06-26  Paul Eggert  <eggert@twinsun.com>
122459         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
122460         New macro.  Use it uniformly instead of
122461         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
122462         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
122463         reported by Vin Shelton.
122465 2002-06-22  Paul Eggert  <eggert@twinsun.com>
122467         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
122468         Do not assume SA_SIGINFO behavior.
122469         Bug reported by Jim Meyering on NetBSD 1.5.2.
122471 2002-06-22  Jim Meyering  <meyering@lucent.com>
122473         * m4/c-stack.m4: New file, from diffutils-2.8.2.
122474         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
122476         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
122477         now that configure.ac uses AC_GNU_SOURCE.
122478         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
122479         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
122481         Update to latest tools.  Suggestions from Paul Eggert.
122482         * m4/stdbool.m4: New file, from diffutils-2.8.2.
122483         * m4/gnu-source.m4: Update from diffutils-2.8.2.
122484         * m4/fnmatch.m4: Likewise.
122485         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
122486         to AC_HEADER_STDBOOL
122488 2002-06-22  Jim Meyering  <meyering@lucent.com>
122490         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
122491         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
122493 2002-06-22  Jim Meyering  <meyering@lucent.com>
122495         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
122497         * lib/exitfail.c, exitfail.h: Likewise.
122498         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
122500         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
122501         of fnmatch.h.
122502         (EXTRA_DIST): Add fnmatch_loop.c.
122503         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
122505         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
122506         * lib/fnmatch.c: Update from diffutils-2.8.2.
122507         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
122508         * lib/fnmatch.h: Remove file.
122510 2002-06-21  Jim Meyering  <meyering@lucent.com>
122512         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
122513         * m4/mbrtowc.m4: Likewise.
122515         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
122516         * m4/mbswidth.m4: Reflect name change:
122517         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
122518         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
122520         * m4/lib-link.m4: Update from gettext-0.11.2.
122521         * m4/gettext.m4: Likewise.
122523         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
122524         From Alfred M. Szmidt.
122526 2002-06-18  Paul Eggert  <eggert@twinsun.com>
122528         * lib/file-type.h: Report an error if neither S_ISREG nor
122529         S_IFREG is defined, instead of using a test specific to glibc
122530         2.2.  This should be safe, since POSIX requires S_ISREG and
122531         Unix Version 7 had S_IFREG.  We don't need to check for
122532         <sys/types.h> since we don't use any symbols that it defines.
122534 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
122536         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
122537         $@-t, so that each temporary file name is unique and valid in the first
122538         8 characters, for operation under DOS.
122540 2002-06-15  Paul Eggert  <eggert@twinsun.com>
122542         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
122544 2002-06-15  Jim Meyering  <meyering@lucent.com>
122546         Work even with DJGPP 2.03, which lacks support for symlinks.
122547         From Richard Dawe.
122548         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
122549         is defined.
122550         * lib/lchown.c (S_ISLNK): Likewise.
122552 2002-06-15  Jim Meyering  <meyering@lucent.com>
122554         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
122555         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
122556         have been included before this file.
122558 2002-06-14  Jim Meyering  <meyering@lucent.com>
122560         * lib/file-type.h: Use the version from diffutils-2.8.2.
122561         * lib/file-type.c: Likewise.
122563 2002-06-07  Jim Meyering  <meyering@lucent.com>
122565         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
122566         They're needed at least for NetBSD 1.5.2.
122567         ($statxfs_includes): Include those same headers.
122568         ($statxfs_includes): Include sys/vfs.h if available.
122569         ($statxfs_includes): Likewise for sys/statvfs.h.
122570         Check for the following members in both structs statfs and statvfs:
122571         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
122573 2002-06-01  Jim Meyering  <meyering@lucent.com>
122575         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
122576         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
122578 2002-05-28  Jim Meyering  <meyering@lucent.com>
122580         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
122581         Reported by Volker Borchert.
122583 2002-05-27  Jim Meyering  <meyering@lucent.com>
122585         Fix a problem seen only on nonconforming systems whereby ls.c's
122586         use of localtime, and then of gettimeofday would cause trouble:
122587         the localtime call used to initialize rpl_gettimeofday's save
122588         mechanism would clobber ls's current local time information so
122589         that in any long listing the first file would always be listed
122590         with date 1970-01-01.  Analysis by Volker Borchert.
122592         * lib/gettimeofday.c (localtime): Undefine.
122593         (rpl_localtime): New function.
122595 2002-05-27  Jim Meyering  <meyering@lucent.com>
122597         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
122598         localtime.
122600         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
122601         use the replacement function; it wouldn't resolve at link time.
122602         Reported by Volker Borchert.
122604 2002-05-22  Jim Meyering  <meyering@lucent.com>
122606         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
122607         file-type.h.
122608         * lib/file-type.h: New file.
122609         * lib/file-type.c (file_type): New file/function.  Extracted from
122610         diffutils.
122612 2002-04-30  Jim Meyering  <meyering@lucent.com>
122614         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
122616 2002-04-29  Paul Eggert  <eggert@twinsun.com>
122618         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
122620 2002-04-29  Paul Eggert  <eggert@twinsun.com>
122622         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
122623         Do not check for alloca.h (no longer used) or stdbool.h (was never
122624         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
122626 2002-04-29  Paul Eggert  <eggert@twinsun.com>
122628         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
122630 2002-04-29  Jim Meyering  <meyering@lucent.com>
122632         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
122633         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
122634         Use AC_FUNC_STRNLEN here instead.
122636         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
122637         With autoconf-2.53a, it's part of AC_PROG_CC.
122639 2002-04-28  Paul Eggert  <eggert@twinsun.com>
122641         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
122642         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
122644 2002-04-28  Paul Eggert  <eggert@twinsun.com>
122646         * lib/sig2str.h, lib/sig2str.c: New files.
122647         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
122649 2002-04-28  Paul Eggert  <eggert@twinsun.com>
122651         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
122652         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
122653         of 127, since 64 is the largest conceivable number for ancient
122654         nonstandard hosts.
122655         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
122657 2002-04-28  Jim Meyering  <meyering@lucent.com>
122659         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
122661 2002-04-24  Jim Meyering  <meyering@lucent.com>
122663         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
122664         (jm_PREREQ): Use it.
122666         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
122667         mach/mach.h fcntl.h.
122668         Check for this function: setlocale.
122670 2002-04-24  Jim Meyering  <meyering@lucent.com>
122672         * lib/gettext.h: New file, from Gettext.
122673         * lib/Makefile.am (INCLUDES): Remove -I../intl.
122674         (libfetish_a_SOURCES): Add gettext.h.
122676 2002-04-16  Jim Meyering  <meyering@lucent.com>
122678         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
122679         ut_pid, ut_id, ut_exit.
122681 2002-04-16  Jim Meyering  <meyering@lucent.com>
122683         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
122684         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
122685         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
122687 2002-04-12  Jim Meyering  <meyering@lucent.com>
122689         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
122690         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
122691         existence of the getmntinfo function.  Needed for Darwin 5.3.
122693         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
122694         This is necessary at least on Darwin 5.3.
122696         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
122697         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
122698         strnlen.o in the library, and that makes some versions of ranlib
122699         object.
122701 2002-04-12  Jim Meyering  <meyering@lucent.com>
122703         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
122705 2002-04-09  Jim Meyering  <meyering@lucent.com>
122707         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
122708         to be more precise.  Rather than saying we're checking whether the
122709         function `works', say what we're testing.
122710         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
122711         Reported by Bruno Haible.
122713 2002-03-10  Jim Meyering  <meyering@lucent.com>
122715         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
122716         Suggestion from Santiago Vila.
122718 2002-03-08  Jim Meyering  <meyering@lucent.com>
122720         * lib/rename.c: Mention that this wrapper is needed also on
122721         mips-dec-ultrix4.4 systems.
122723 2002-03-02  Jim Meyering  <meyering@lucent.com>
122725         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
122726         not HAVE_CLOCK_SETTIME.
122728 2002-02-27  Paul Eggert  <eggert@twinsun.com>
122730         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
122731         Check for clock_settime.
122733 2002-02-27  Paul Eggert  <eggert@twinsun.com>
122735         * lib/nanosleep.h: Rename to....
122736         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
122738         * lib/gettime.c: New file.
122739         * lib/settime.c: New file.
122740         * lib/stime.c: Remove.
122742         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
122743         timespec.h.  Remove nanosleep.h.
122745 2002-02-25  Paul Eggert  <eggert@twinsun.com>
122747         * m4/acl.m4: New file.
122748         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
122749         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
122751 2002-02-25  Paul Eggert  <eggert@twinsun.com>
122753         * lib/acl.c, lib/acl.h: New files.
122754         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
122756 2002-02-24  Jim Meyering  <meyering@lucent.com>
122758         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
122759         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
122760         cause trouble.  Reported by Nelson Beebe.
122762 2002-02-23  Paul Eggert  <eggert@twinsun.com>
122764         * lib/path-concat.c (xpath_concat): Reorder code to pacify
122765         compilers that don't know that xalloc_die never returns.
122767 2002-02-20  Jim Meyering  <meyering@lucent.com>
122769         * lib/getdate.c: Regenerate using bison-1.33.
122771 2002-02-17  Jim Meyering  <meyering@lucent.com>
122773         * config/config.guess (main): Don't use `head -1'; it's no longer
122774         portable. Use `sed 1q' instead.
122776 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
122778         * m4/codeset.m4: Upgrade to gettext-0.11.
122779         * m4/gettext.m4: Upgrade to gettext-0.11.
122780         * m4/glibc21.m4: Upgrade to gettext-0.11.
122781         * m4/iconv.m4: Upgrade to gettext-0.11.
122782         * m4/isc-posix.m4: Upgrade to gettext-0.11.
122783         * m4/lcmessage.m4: Upgrade to gettext-0.11.
122784         * m4/lib-ld.m4: New file, from gettext-0.11.
122785         * m4/lib-link.m4: New file, from gettext-0.11.
122786         * m4/lib-prefix.m4: New file, from gettext-0.11.
122787         * m4/progtest.m4: Upgrade to gettext-0.11.
122789 2002-02-15  Paul Eggert  <eggert@twinsun.com>
122791         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
122792         (jm_PREREQ): Use it.
122794 2002-02-15  Paul Eggert  <eggert@twinsun.com>
122796         * lib/posixver.c, lib/posixver.h: New files.
122797         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
122799 2002-02-02  Paul Eggert  <eggert@twinsun.com>
122800             Bruno Haible  <bruno@clisp.org>
122802         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
122803         (fwrite_success_callback): New declaration.
122804         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
122805         print_unicode_char. Call failure callback instead of error.
122806         (fwrite_success_callback): New function.
122807         (exit_failure_callback): New function.
122808         (fallback_failure_callback): New function.
122809         (print_unicode_char): Call unicode_to_mb.
122811 2002-01-26  Jim Meyering  <meyering@lucent.com>
122813         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
122814         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
122816 2002-01-26  Jim Meyering  <meyering@lucent.com>
122818         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
122820 2002-01-22  Paul Eggert  <eggert@twinsun.com>
122822         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
122824 2002-01-22  Jim Meyering  <meyering@lucent.com>
122826         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
122827         Otherwise, some versions of automake would omit the rule that makes
122828         Makefile from Makefile.in.
122830 2002-01-21  Paul Eggert  <eggert@twinsun.com>
122832         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
122833         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
122834         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
122835         (memcoll): Set errno to zero if there is no error.
122837         * lib/quotearg.c (quotearg_buffer_restyled):
122838         Fix bug with quoting buffers containing NUL when backslashing escapes.
122839         This bug was exposed by the other changes in this patch.
122840         (quotearg_n_options): New arg ARGSIZE.
122841         All callers changed.
122842         (quoting_options_from_style): New function.
122843         (quotearg_n_style): Use it.
122844         (quotearg_n_style_mem): New function.
122846         * lib/quotearg.h (quotearg_n_style_mem): New function.
122848 2002-01-19  Jim Meyering  <meyering@lucent.com>
122850         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
122851         Remove useless quotes: DF_PROG="df".
122852         * m4/strnlen.m4: New file.
122854 2002-01-16  Paul Eggert  <eggert@twinsun.com>
122856         * lib/backupfile.c (ISDIGIT): Comment fix.
122857         * lib/getdate.y (ISDIGIT): Likewise.
122858         * lib/posixtm.c (ISDIGIT, year): Likewise.
122859         * lib/strverscmp.c (ISDIGIT): Likewise.
122860         * lib/userspec.c (ISDIGIT): Likewise.
122862 2002-01-16  Jim Meyering  <meyering@lucent.com>
122864         * lib/getdate.y: Add three semicolons, each just before a closing
122865         brace. Bison (as of version 1.31) no longer papers over that mistake.
122867 2002-01-05  Jim Meyering  <meyering@lucent.com>
122869         * lib/version-etc.c (version_etc_copyright): Update copyright year.
122871 2001-12-19  Paul Eggert  <eggert@twinsun.com>
122873         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
122874         not silently exit merely because the output buffer happens to
122875         have nothing pending.
122877 2001-12-18  Paul Eggert  <eggert@twinsun.com>
122879         See the big note in ../ChangeLog.
122880         * lib/human.c (suffixes): Prefer K to k for 1024.
122881         (generate_suffix_backwards): New function.
122882         (human_readable_inexact): Use it.
122883         * lib/xstrtol.c (__xstrtol): If there is no number but there
122884         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
122885         Accept 'K' as well as 'k'.
122887 2001-12-15  Jim Meyering  <meyering@lucent.com>
122889         * lib/regex.h (__restrict_arr): Update from libc.
122891         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
122892         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
122893         (STREQ): Define.
122895 2001-12-14  Jim Meyering  <meyering@lucent.com>
122897         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
122898         Suggestion from Bruno Haible.
122900 2001-12-10  Jim Meyering  <meyering@lucent.com>
122902         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
122903         xrealloc, Instead, include "xalloc.h".
122904         (initbuffer): Don't cast xmalloc return value to char*.
122905         (readline): Reword comment.
122906         Don't cast xrealloc return value to char*
122907         Return NULL, not 0.
122909 2001-12-09  Jim Meyering  <meyering@lucent.com>
122911         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
122912         about `signed and unsigned type in conditional expression'.
122913         * lib/posixtm.c (posix_time_parse): Likewise.
122915         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
122917         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
122918         to avoid a pedantic warning.
122920         * lib/getstr.c: Don't include assert.h.
122921         (getstr): Remove warning-evoking assertions.
122922         Return -1 if offset parameter is out of bounds.
122923         Change the type of a local from int to size_t.
122925         * lib/strftime.c (my_strftime_localtime_r): Include this function
122926         definition in the `#if ! HAVE_TM_GMTOFF' block.
122928         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
122929         Include xalloc.h instead.
122931 2001-12-02  Jim Meyering  <meyering@lucent.com>
122933         * lib/tempname.c: Don't declare getenv, thus reverting the change of
122934         2001-11-18.  It's no longer necessary, now that stdlib.h is always
122935         included.
122937         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
122938         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
122940 2001-11-30  Akim Demaille  <akim@epita.fr>
122942         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
122943         before being defined.
122945 2001-11-27  Paul Eggert  <eggert@twinsun.com>
122947         * lib/quotearg.h (quotearg_n, quotearg_n_style):
122948         First arg is int, not unsigned.
122949         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
122950         (SIZE_MAX, UINT_MAX): New macros.
122951         (quotearg_n_options): Abort if N is negative.
122952         Avoid overflow check on hosts where size_t is 64 bits and int
122953         is 32 bits, as overflow is impossible there.
122954         Fix off-by-one typo that caused unnecessary reallocation.
122956 2001-11-27  Jim Meyering  <meyering@lucent.com>
122958         * lib/tempname.c: Merge with version from libc.
122959         * lib/regex.c: Likewise.
122961         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
122962         systems for which STDC_HEADERS is 0, it was not included, resulting in
122963         a warning about an integer-to-pointer conversion problem with getenv.
122964         Reported by Volker Borchert.
122966 2001-11-26  Jim Meyering  <meyering@lucent.com>
122968         * lib/gtod.h: Remove file.
122969         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
122970         * lib/gettimeofday.c: Don't include gtod.h.
122971         (GTOD_init): Remove function.
122972         (rpl_gettimeofday): Do its job here instead, rather than aborting.
122973         Suggestion from Volker Borchert.
122975 2001-11-23  Jim Meyering  <meyering@lucent.com>
122977         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
122978         it.
122979         * lib/hash.c (struct hash_table): Define it here instead.
122981 2001-11-22  Jim Meyering  <meyering@lucent.com>
122983         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
122985 2001-11-20  Jim Meyering  <meyering@lucent.com>
122987         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
122988         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
122990 2001-11-19  Jim Meyering  <meyering@lucent.com>
122992         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
122993         directory.  Use "conftestXXXXXX" as the template.
122994         Suggestion from Paul Eggert.
122996         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
122997         immediately, so the test doesn't mistakenly hit the max-open-files
122998         limit.
123000 2001-11-18  Paul Eggert  <eggert@twinsun.com>
123002         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
123003         (TEMPORARIES): New macro.
123004         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
123005         removes an artificial limitation (e.g. HP-UX 10.20, where
123006         TMP_MAX is 17576).
123008 2001-11-18  Jim Meyering  <meyering@lucent.com>
123010         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
123012 2001-11-18  Jim Meyering  <meyering@lucent.com>
123014         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
123015         on SunOS 4.
123017         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
123018         files will be created before anything else.
123020 2001-11-17  Paul Eggert  <eggert@twinsun.com>
123022         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
123023         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
123025 2001-11-17  Jim Meyering  <meyering@lucent.com>
123027         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
123028         Prompted by a report from Bob Proulx.
123030         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
123031         Instead, require UTILS_FUNC_MKSTEMP.
123033 2001-11-17  Jim Meyering  <meyering@lucent.com>
123035         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
123036         Now, that's done as part of AC_FUNC_STRTOD.
123038 2001-11-17  Jim Meyering  <meyering@lucent.com>
123040         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
123041         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
123042         rather than group writable.  Patch by Juan F. Codagnone.
123044         * lib/readtokens.c: Remove explicit declarations of xmalloc and
123045         xrealloc, Instead, include "xalloc.h".
123047         * lib/mountlist.c: Include unlocked-io.h after all system headers.
123048         Remove explicit declarations of xmalloc, xrealloc,
123049         and xstrdup.  Instead, include "xalloc.h".
123051         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
123052         unlocked-io.h.
123053         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
123054         Likewise.
123055         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
123057         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
123058         Reported by Padraig Brady.
123060         * lib/mkstemp.c: #undef mkstemp.
123061         Include config.h.
123062         (rpl_mkstemp): Rename from mkstemp.
123063         Protoize.
123065 2001-11-16  Jim Meyering  <meyering@lucent.com>
123067         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
123068         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
123069         determine the amount of total physical memory, use pstat_getstatic.
123070         HPUX-11 doesn't define _SC_PHYS_PAGES.
123071         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
123072         If sysconf couldn't be used to determine the amount of available
123073         physical memory, use both pstat_getstatic and pstat_getdynamic.
123074         Based on a patch from Bob Proulx.
123076 2001-11-10  Jim Meyering  <meyering@lucent.com>
123078         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
123079         (jm_PREREQ): Use it.
123081 2001-11-09  Jim Meyering  <meyering@lucent.com>
123083         * m4/jm-macros.m4: Require autoconf-2.52f.
123084         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
123085         Use these AC_-prefixed names, not the AM_-prefixed ones.
123087         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
123089 2001-11-05  Jim Meyering  <meyering@lucent.com>
123091         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
123093 2001-11-04  Jim Meyering  <meyering@lucent.com>
123095         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
123096         $DEFS.
123098 2001-11-03  Jim Meyering  <meyering@lucent.com>
123100         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
123101         of AC_DEFUN.
123103         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
123104         know the name of the variable in the macro definition.
123106 2001-11-03  Jim Meyering  <meyering@lucent.com>
123108         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
123109         in argmatch_to_argument call.
123111         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
123112         argument.
123114         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
123115         e.g., a fault due to an attempt to free a NULL pointer.
123117 2001-11-01  Jim Meyering  <meyering@lucent.com>
123119         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
123120         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
123122 2001-11-01  Jim Meyering  <meyering@lucent.com>
123124         * lib/dirfd.c, lib/dirfd.h: New files.
123125         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
123127         * lib/hash.c (hash_print) [TESTING]: Clean up.
123129 2001-10-22  Paul Eggert  <eggert@twinsun.com>
123131         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
123132         to avoid a warning if -Wall.
123134 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
123136         * README: New file
123137         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
123138         (per RMS's instructions, this is now the canonical source)
123139         * lgpl/, gpl/: New directories.
123141 2001-10-21  Paul Eggert  <eggert@twinsun.com>
123143         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
123145 2001-10-21  Jim Meyering  <meyering@lucent.com>
123147         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
123148         this code would end up calling gettext even in packages built
123149         with --disable-nls.
123150         * lib/getopt.c (_): Likewise.
123151         * lib/regex.c (_): Likewise.
123153 2001-10-20  Paul Eggert  <eggert@twinsun.com>
123155         * m4/error.m4 (jm_PREREQ_ERROR):
123156         Do not invoke AC_CHECK_FUNCS with strerror_r, as
123157         AC_FUNC_STRERROR_R does that.
123158         Check for strerror declaration.
123160         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
123161         are supposed to have them these days.
123162         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
123163         Merge changes from latest Autoconf CVS.
123164         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
123165         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
123166         POSIX decided to standardize on the int flavor of strerror_r.
123168 2001-10-20  Paul Eggert  <eggert@twinsun.com>
123170         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
123171         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
123172         Use strerror_r that is only a macro, even if it is not a function.
123173         (strerror): Check for HAVE_DECL_STRERROR before declaring.
123174         (private_strerror): Use prototypes, not old-style function definition.
123175         (print_errno_message): New function.
123176         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
123177         char*-flavored one.
123178         (error_tail, error, error_at_line): Use it.
123180 2001-10-11  Jim Meyering  <meyering@lucent.com>
123182         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
123183         and quote_n (1, ... to avoid clobbering a buffer.
123185 2001-10-05  Jim Meyering  <meyering@lucent.com>
123187         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
123188         hash-pjw.h.
123189         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
123190         * lib/hash-pjw.h: New file.
123192 2001-09-30  Jim Meyering  <meyering@lucent.com>
123194         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
123195         `struct fsstat' has the `f_fstypename' member.
123196         Use that to define FS_TYPE, which is now used to make
123197         the getfsstat link test tighter.
123199 2001-09-30  Jim Meyering  <meyering@lucent.com>
123201         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
123202         Include <sys/ucred.h>, for Apple Darwin.
123203         Include sys/mount.h and sys/fs_types.h only if available.
123204         (FS_TYPE): Define.
123205         (read_filesystem_list): Use FS_TYPE.
123207 2001-09-29  Paul Eggert  <eggert@twinsun.com>
123209         * lib/exclude.c (excluded_filename): 0 -> false, since it's
123210         a boolean context.
123212 2001-09-29  Jim Meyering  <meyering@lucent.com>
123214         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
123215         [one-argument getmntent function]): Include stdio.h before mntent.h.
123216         SunOS 4.1.x needs it for the declaration of `FILE'.
123217         Patch by Volker Borchert.
123219         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
123220         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
123221         sys/fs_types.h, and make the link-test for getfsstat guard #include
123222         directives with appropriate #if HAVE_*_H tests so that we can
123223         detect getfsstat on Apple Darwin1.3.7 systems.
123224         Reported by Nelson Beebe.
123225         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
123227 2001-09-28  Paul Eggert  <eggert@twinsun.com>
123229         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
123230         #defines strtoimax.  Also treat the other strto* functions
123231         like strtoimax.
123233         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
123234         Check for strtoul and strtoumax,
123235         as those declarations are made even in the signed case.
123236         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
123237         Likewise, for strtol and strtoimax.
123239 2001-09-28  Paul Eggert  <eggert@twinsun.com>
123241         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
123242         #defines strtoimax.  Also treat the other strto* functions
123243         like strtoimax.
123245         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
123246         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
123247         (strtoimax, strtoumax): Do not declare if already defined as a macro.
123249 2001-09-26  Jim Meyering  <meyering@lucent.com>
123251         Most macros in unlocked-io.h had the wrong number of arguments.
123252         * lib/gen-uio: New script.
123253         (USE_UNLOCKED_IO): Define to 1 if not already defined.
123254         * lib/unlocked-io.hin: Remove file.
123255         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
123256         rather than trying to embed it here.
123257         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
123258         Reported by Padraig Brady.
123260 2001-09-25  Volker Borchert  <bt@teknon.de>
123262         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
123263         `result'.
123265 2001-09-24  Jim Meyering  <meyering@lucent.com>
123267         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
123269 2001-09-23  Jim Meyering  <meyering@lucent.com>
123271         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
123272         instead of the mere test for existence of mntent.h.  The latter
123273         would get a false-positive on AIX 3.4 systems.
123274         In the outer getmntent if-block, don't die if neither of the getmntent
123275         tests succeeds.  Instead, just fall through and continue with the
123276         remaining tests.
123278 2001-09-23  Jim Meyering  <meyering@lucent.com>
123280         * lib/mountlist.c: Remove useless parentheses in #if directives.
123281         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
123282         the deprecated MOUNTED symbol is no longer defined in mntent.h.
123284 2001-09-22  Jim Meyering  <meyering@lucent.com>
123286         * m4/gettext.m4: New file.  From gettext.
123287         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
123288         * m4/progtest.m4: Likewise
123289         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
123290         * m4/glibc21.m4: Likewise.
123292         * m4/libintl.m4: Remove.  No longer used.
123294 2001-09-22  Jim Meyering  <meyering@lucent.com>
123296         * lib/localcharset.c: Update from latest gettext.
123297         * lib/config.charset: Likewise.
123299 2001-09-20  Jim Meyering  <meyering@lucent.com>
123301         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
123302         strtoimax.
123303         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
123304         strtoumax.
123306 2001-09-20  Jim Meyering  <meyering@lucent.com>
123308         * lib/xstrtol.c (strtoimax): Guard declaration with
123309         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
123310         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
123311         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
123312         (strtoumax): Likewise, for completeness (it wasn't necessary).
123314 2001-09-17  Paul Eggert  <eggert@twinsun.com>
123316         * lib/strtoimax.c (HAVE_LONG_LONG):
123317         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
123318         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
123319         to work around bug in IBM C compiler.
123321 2001-09-17  Jim Meyering  <meyering@lucent.com>
123323         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
123324         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
123325         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
123326         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
123327         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
123328         whenever the right hand side need not be expanded by the shell.
123330 2001-09-16  Paul Eggert  <eggert@twinsun.com>
123332         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
123333         library.  It's not correct, as some older glibcs are buggy.
123334         fnmatch wasn't fixed until glibc 2.2.
123336         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
123337         special shell magic here.
123339 2001-09-16  Jim Meyering  <meyering@lucent.com>
123341         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
123342         * m4/jm-macros.m4: Require it.
123344 2001-09-16  Jim Meyering  <meyering@lucent.com>
123346         * lib/mkdir.c: New file.
123348 2001-09-15  Jim Meyering  <meyering@lucent.com>
123350         * m4/jm-macros.m4: Check for help2man.
123352 2001-09-11  Jim Meyering  <meyering@lucent.com>
123354         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
123355         The body, by Paul Eggert, was moved here from configure.in.
123356         * m4/jm-macros.m4: Require UTILS_HOST_OS.
123358 2001-09-04  Paul Eggert  <eggert@twinsun.com>
123360         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
123361         (jm_PREREQ): Use it.
123363 2001-09-04  Paul Eggert  <eggert@twinsun.com>
123365         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
123366         Use ssize_t, not int, to store result of readlink.
123367         Check for ssize_t overflow as well as size_t overflow,
123368         as POSIX says the result of readlink is implementation-defined
123369         when ssize_t overflows.
123370         Remove unnecessary cast to char*.
123371         Use free+malloc instead of realloc, as the storage doesn't need
123372         to be preserved and it's clearer and can be more efficient that way.
123373         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
123374         * lib/xreadlink.h (xreadlink): Update prototype.
123376 2001-09-04  Paul Eggert  <eggert@twinsun.com>
123378         * lib/xgetcwd.c: Revert some of the previous change; intead,
123379         fix the HAVE_GETCWD_NULL code to behave more like the
123380         !HAVE_GETCWD_NULL code used to.
123382         Include "xalloc.h".
123383         (xgetcwd): Do not return NULL when memory is exhausted; instead,
123384         invoke xalloc_die.
123386 2001-09-03  Paul Eggert  <eggert@twinsun.com>
123388         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
123389         sys/param.h, as pathmax.h includes them.
123391 2001-09-03  Paul Eggert  <eggert@twinsun.com>
123393         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
123394         (jm_PREREQ_XGETCWD): New macro.
123396         * m4/getcwd.m4: New file.
123398 2001-09-03  Paul Eggert  <eggert@twinsun.com>
123400         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
123401         like the HAVE_GETCWD_NULL code.
123402         Include pathmax.h if not HAVE_GETCWD.
123403         Do not include xalloc.h.
123404         (INITIAL_BUFFER_SIZE): New symbol.
123405         Do not use xmalloc / xrealloc, since the caller is responsible for
123406         handling errors.  Preserve errno around `free' during failure.
123407         Do not overrun buffer when using getwd.
123409 2001-09-03  Paul Eggert  <eggert@twinsun.com>
123411         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
123412         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
123413         getcwd (NULL, 0).
123415 2001-09-03  Paul Eggert  <eggert@twinsun.com>
123417         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
123418         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
123419         spotted by Jim Meyering.
123421 2001-09-03  Jim Meyering  <meyering@lucent.com>
123423         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
123424         failure.
123426 2001-09-02  Jim Meyering  <meyering@lucent.com>
123428         * lib/error.c: Update from GNU libc.
123430 2001-09-01  Jim Meyering  <meyering@lucent.com>
123432         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
123433         Used by df.
123435 2001-09-01  Jim Meyering  <meyering@lucent.com>
123437         * lib/xreadlink.c: New file.
123438         * lib/xreadlink.h: New file.
123439         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
123440         xreadlink.h.
123442         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
123443         doesn't conflict with sparc Solaris 7's definition in
123444         /usr/include/sys/int_types.h.
123446         * lib/exclude.c: Use `""', not `<>' to #include non-system header
123447         files.
123448         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
123449         and strncasecmp as r-values.  Unixware didn't have declarations.
123451 2001-08-31  Paul Eggert  <eggert@twinsun.com>
123453         * lib/xstrtol.h: Add copyright notice.
123454         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
123455         LONGINT_INVALID_SUFFIX_CHAR.
123457 2001-08-31  Paul Eggert  <eggert@twinsun.com>
123459         * lib/xstrtol.c (strtoimax): New decl.
123461 2001-08-31  Paul Eggert  <eggert@twinsun.com>
123463         * lib/xgetcwd.c: Don't include pathmax.h.
123464         Include stdlib.h and unistd.h if available.
123465         Include xalloc.h.
123466         (xmalloc, xstrdup, free): Remove decls.
123467         (xgetcwd): Don't assume sizes fit in unsigned.
123468         Check for overflow when computing sizes.
123469         Simplify reallocation code.
123471 2001-08-31  Paul Eggert  <eggert@twinsun.com>
123473         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
123474         a directory's st_size can have an arbitrary value, so the old
123475         usage could waste an arbitrary amount of memory.  All uses
123476         changed.
123477         * lib/savedir.h: Update prototype.
123479 2001-08-31  Paul Eggert  <eggert@twinsun.com>
123481         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
123483         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
123484         old strtoimax.c.
123486         Also, make the following further changes to make this file's
123487         configuration more similar to that of strtol.c:
123488         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
123489         (strtoumax, uintmax_t, strtoull, strtol): Remove.
123490         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
123491         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
123492         changed to signed values.
123494         And make the following changes as well:
123495         Fix copyright notice, as 1999 was missing.
123496         (verify): New macro.
123497         (strtoimax): Check sizes at compile-time, not run-time.
123498         Prefer strtol to strtoll if both work.
123499         (main): Remove; it was not that useful and was a pain to maintain.
123501         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
123503 2001-08-31  Jim Meyering  <meyering@lucent.com>
123505         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
123506         Use an initial, malloc'd, buffer of length 128 rather than
123507         a statically allocated one of length 1024.
123509 2001-08-30  Paul Eggert  <eggert@twinsun.com>
123511         Simplify code, partly by assuming autoconf 2.52 semantics.
123513         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
123515         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
123516         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
123517         All uses removed.
123518         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
123519         Move AC_REQUIRE to next-to-top level, to avoid confusion.
123520         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
123521         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
123522         jm_AC_HEADER_INTTYPES_H.
123523         * m4/jm-macros.m4 (jm_MACROS): Likewise.
123525         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
123527         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
123528         Quote first arg of AC_DEFUN.
123529         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
123530         since they are needed to parse the include file even if we need
123531         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
123532         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
123533         but with opposite signedness.
123535 2001-08-30  Paul Eggert  <eggert@twinsun.com>
123537         Merge 'exclude' changes from tar 1.13.22.
123538         This fixes one or two unlikely storage allocation overflow bugs,
123539         but doesn't change user-visible behavior otherwise.
123541 2001-08-30  Paul Eggert  <eggert@twinsun.com>
123543         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
123544         (jm_PREREQ_EXCLUDE): New macro.
123546 2001-08-30  Paul Eggert  <eggert@twinsun.com>
123548         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
123549         tm to be declared.
123551 2001-08-30  Paul Eggert  <eggert@twinsun.com>
123553         * lib/hash.c: Remove '2001' from copyright notice.
123555 2001-08-30  Paul Eggert  <eggert@twinsun.com>
123557         * lib/full-write.h: New file.
123558         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
123559         * lib/full-write.c: Correct credits, as cccp.c no longer
123560         exists and anyway it was so heavily changed from the old cccp
123561         code as to be unrecognizable.  Include full-write.h.
123562         (full_write): Return size_t, with short writes meaning failure.
123563         All callers changed.  This fixes a bug with large buffers
123564         on 64-bit hosts.
123565         * lib/utime.c: Include full-write.h.
123567 2001-08-30  Paul Eggert  <eggert@twinsun.com>
123569         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
123570         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
123571         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
123572         Include if available.
123573         (<xalloc.h>): Include
123574         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
123575         (verify): New macro.  Use it to verify that EXCLUDE macros do not
123576         collide with FNM macros.
123577         (struct patopts): New struct.
123578         (struct exclude): Use it, as exclude patterns now come with options.
123579         (new_exclude): Support above changes.
123580         (new_exclude, add_exclude_file):
123581         Initial size must now be a power of two to simplify overflow checking.
123582         (free_exclude, fnmatch_no_wildcards): New function.
123583         (excluded_filename): No longer requires options arg, as the options
123584         are determined by add_exclude.  Now returns bool, not int.
123585         (excluded_filename, add_exclude):
123586         Add support for the fancy new exclusion options.
123587         (add_exclude, add_exclude_file): Now takes int options arg.
123588         Check for arithmetic overflow when computing sizes.
123589         (add_exclude_file): xrealloc might modify errno, so don't
123590         realloc until after errno might be used.
123592         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
123593         New macros.
123594         (free_exclude): New decl.
123595         (add_exclude, add_exclude_file): Now takes int options arg.
123596         (excluded_filename): No longer requires options arg, as the options
123597         are determined by add_exclude.  Now returns bool, not int.
123599 2001-08-30  Paul Eggert  <eggert@twinsun.com>
123601         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
123603 2001-08-27  Jim Meyering  <meyering@lucent.com>
123605         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
123607         * lib/version-etc.c (N_): Remove definition.
123608         Revert most of last change.
123609         Instead, simply don't mark the `Copyright...' string for translation.
123610         Based on advice from Paul Eggert.
123612         * lib/strtoxmax.c: Tweak comment.
123614 2001-08-26  Jim Meyering  <meyering@lucent.com>
123616         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
123618         * m4/xstrtoimax.m4: New file.
123619         * m4/xstrtoumax.m4: Add comments explaining why we
123620         AC_REPLACE_FUNCS(strtol).
123622 2001-08-26  Jim Meyering  <meyering@lucent.com>
123624         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
123625         of copyright with `%s' so translators don't get an untranslated
123626         message in 2002.
123627         (COPYRIGHT_YEAR): Define.
123628         (version_etc): Use fprintf rather than fputs.
123629         Suggestion from Ulrich Drepper.
123631         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
123633         * lib/strtoll.c: New file, from GNU libc.
123634         * lib/xstrtoimax.c: New file.
123636         * lib/xstrtol.h: Add xstrtoimax.
123637         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
123638         * lib/strtoimax.c: New file.  Likewise, but first define
123639         STRTOUXMAX_SIGNED.
123641         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
123642         ...
123643         * lib/strtoxmax.c: ... then renamed to this.
123645 2001-08-18  Paul Eggert  <eggert@twinsun.com>
123647         * m4/inttypes.m4: Add AC_PREREQ(2.13).
123648         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
123649         (jm_AC_TYPE_INTMAX_T): New macro.
123650         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
123652         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
123654         * m4/longlong.m4: Renamed from ulonglong.m4.
123655         * m4/inttypes.m4: Renamed from inttypes_h.m4.
123656         * m4/uintmax_t.m4: Removed.
123658 2001-08-13  Paul Eggert  <eggert@twinsun.com>
123660         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
123661         Port to Solaris 8, where 'sed' requires a space after the 'r'
123662         command, and where sh dislikes "$/".  Clean up the spacing a bit.
123663         Redirect output to $tmp just once.
123665 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
123667         * lib/addext.c (<errno.h>): Include.
123668         (errno): Declare if not defined.
123669         (addext): Work correctly when pathconf returns -1 and leaves
123670         errno alone because there is no limit.  Also, work even if
123671         pathconf returns a value greater than SIZE_MAX.
123673 2001-08-12  Jim Meyering  <meyering@lucent.com>
123675         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
123676         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
123677         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
123678         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
123679         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
123680         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
123681         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
123682         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
123683         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
123684         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
123685         utime.m4, utimes.m4, xstrtoumax.m4:
123686         Quote the first argument in each use of AC_DEFUN.
123688 2001-08-12  Jim Meyering  <meyering@lucent.com>
123690         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
123691         Simply `return getcwd (NULL, 0);'.
123692         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
123693         Use 1300 as initial value for length, not PATH_MAX.
123695         * lib/pathmax.h: Clean up cpp syntax.
123697 2001-08-12  Jim Meyering  <meyering@lucent.com>
123699         * lib/gettimeofday.c: New file.
123700         * lib/gtod.h: New file.
123701         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
123703 2001-08-05  Jim Meyering  <meyering@lucent.com>
123705         * m4/jm-macros.m4: Require autoconf-2.52.
123707 2001-08-04  Jim Meyering  <meyering@lucent.com>
123709         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
123710         stmt, to get in sync with glibc.
123712 2001-08-03  Paul Eggert  <eggert@twinsun.com>
123714         The following changes are from gettext 0.10.39 as maintained by
123715         Bruno Haible.
123717         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
123718         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
123719         with inverted sense.  All uses changed.
123721         * lib/mbswidth.c: Don't include <limits.h>.
123722         Include <stdlib.h> and <string.h> unconditionally.
123723         (iswcntrl, mbsinit, ISCNTRL): New macros.
123724         (mbsnwidth): Use K&R style function declarations.
123725         Don't bother checking for MB_LEN_MAX == 1, since the compiler
123726         can optimize it when MB_CUR_MAX == 1.
123727         The width of control characters is zero, not 1.
123729 2001-08-03  Paul Eggert  <eggert@twinsun.com>
123731         The following changes are from gettext 0.10.39 as maintained by
123732         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
123734         * m4/codeset.m4: Upgrade to serial AM1.
123735         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
123736         all uses changed.  Quote first arg of AC_DEFUN.
123737         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
123739         * m4/iconv.m4: Upgrade to serial AM2.
123740         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
123741         Add --with-libconv-prefix.
123742         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
123743         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
123744         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
123745         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
123746         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
123748         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
123749         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
123750         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
123751         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
123752         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
123753         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
123754         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
123755         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
123756         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
123758         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
123759         string.h any more.
123761         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
123762         not the default value.
123764         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
123765         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
123766         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
123767         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
123768         Also check for iswcntrl, used for wcwidth fallback.
123769         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
123770         to Autoconf 2.13.
123772 2001-08-03  Jim Meyering  <meyering@lucent.com>
123774         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
123775         as it was in the original.  Reported by Paul Eggert.
123777 2001-07-16  Jim Meyering  <meyering@lucent.com>
123779         * m4/gettimeofday.m4: New file.
123780         Prompted by a report from Bernhard Baehr.
123782 2001-07-15  Jim Meyering  <meyering@lucent.com>
123784         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
123785         stuff. Now it's in ../Makefile.cfg.
123787 2001-07-15  Jim Meyering  <meyering@lucent.com>
123789         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
123790         (BUILT_SOURCES): Add unlocked-io.h.
123791         (io_functions): Define.
123792         (unlocked-io.h): New rule.
123793         (DISTCLEANFILES): Add unlocked-io.h.
123794         (all-local): Depend on unlocked-io.h, to ensure it is created.
123796         * lib/unlocked-io.hin: New file
123798         * lib/regex.c: Update from glibc.
123800 2001-07-05  Jim Meyering  <meyering@lucent.com>
123802         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
123803         recommendation.
123804         (libfetish_a_SOURCES): Put all .h files here instead.
123805         Remove a thus-exposed (better checks in automake) duplicate and
123806         two unnecessary .h files.
123808 2001-07-04  Jim Meyering  <meyering@lucent.com>
123810         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
123811         that generates jm-glibc-io.m4 so that it doesn't trigger any make
123812         distcheck failure.
123814 2001-07-02  Jim Meyering  <meyering@lucent.com>
123816         The following changes were prompted by suggestions from Bruno Haible.
123818         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
123819         is now generated.
123820         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
123821         definition of EXTRA_DIST.
123822         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
123823         ensure that the generated file is created/updated whenever the list
123824         of $(unlocked_functions) is changed.
123825         (jm-glibc-io.m4): New rule.
123826         (unlocked-io.h): New rule -- currently unused.
123828 2001-06-24  Jim Meyering  <meyering@lucent.com>
123830         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
123831         unmatched right bracket, rather than kludging it with an extra,
123832         falsely-matching quote in a comment.  Patch by Akim Demaille.
123834 2001-06-11  Jim Meyering  <meyering@lucent.com>
123836         * lib/regex.c: Update from GNU libc.
123838 2001-05-27  Jim Meyering  <meyering@lucent.com>
123840         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
123841         Check for ut_type in struct utmp.
123843 2001-05-27  Jim Meyering  <meyering@lucent.com>
123845         * lib/readutmp.h (UT_TYPE): Define.
123847 2001-05-24  Jim Meyering  <meyering@lucent.com>
123849         * lib/argmatch.c: Include "quote.h".
123850         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
123851         quote function.  Reported by Göran Uddeborg.
123853 2001-05-22  Jim Meyering  <meyering@lucent.com>
123855         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
123856         now that we use the package-supplied version unconditionally.
123857         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
123859 2001-05-21  Jim Meyering  <meyering@lucent.com>
123861         * m4/regex.m4: Change a couple backticks to single quotes to avoid
123862         shell syntax errors.
123864 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
123866         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
123868 2001-05-20  Paul Eggert  <eggert@twinsun.com>
123870         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
123871         Don't bother to check library strftime, since
123872         we'll be using our own my_strftime function anyway.
123873         Define my_strftime instead of strftime.
123875 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
123877         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
123878         which is not yet declared.
123880 2001-05-15  Jim Meyering  <meyering@lucent.com>
123882         * m4/regex.m4: Use proper quoting so brackets appear in the test
123883         program.
123884         Reported by, and with help from, Bruno Haible.
123886 2001-05-13  Jim Meyering  <meyering@lucent.com>
123888         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
123889         undefined.
123891 2001-05-11  Paul Eggert  <eggert@twinsun.com>
123893         dirname code cleanup.  base_name now behaves more compatibly
123894         with POSIX basename when given file names that have trailing
123895         slashes, and similarly for dir_name.  Add new primitives
123896         base_len and dir_len.  Put the directory-name-related decls
123897         into dirname.h.
123899         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
123900         * lib/backupfile.c (base_name): Likewise.
123901         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
123902         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
123903         * lib/makepath.c (strip_trailing_slashes): Likewise.
123904         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
123905         ISSLASH): Likewise.
123906         * lib/rename.c (strip_trailing_slashes): Likewise.
123907         * lib/same.c (base_name): Likewise.
123908         * lib/stripslash.c (ISSLASH): Likewise.
123910         * lib/addext.c: Include <dirname.h> after size_t is defined.
123911         * lib/backupfile.c: Likewise.
123913         * lib/addext.c (addext): Use base_len to trim redundant
123914         trailing slashes instead of doing it ourselves.
123915         But do not trim the last slash if it is not redundant.
123917         * lib/backupfile.c (find_backup_file_name,
123918         max_backup_version): Use base_len instead of rolling it ourselves.
123919         Handle the case of "" and (on DOS) "C:" correctly.
123921         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
123922         needed. Include <string.h>, <dirname.h>.
123923         (base_name): Allow file names ending in slashes, other than names
123924         that are all slashes.  In this case, return the basename followed
123925         by the slashes.  This is more general, and can be used in places
123926         where the original base_name purposely had an assertion failure.
123927         (base_len): New function.
123929         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
123930         Do not include <assert.h>; no longer needed.
123931         Include xalloc.h.
123932         (memrchr): Remove decl.
123933         (dir_name_r): Remove.
123934         (dir_len): Renamed from dirlen.  All callers changed.
123935         Rewrite in terms of base_name, for simplicity and consistency.
123936         (dir_name): Never return NULL.  All callers changed.
123937         Do not include <stdlib.h> in test program; no longer needed.
123938         return 0; is fine for test program.
123940         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
123941         New macros.
123942         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
123944         * lib/path-concat.c (path_concat): Use base_len to compute
123945         base length, not strlen; this means we cannot rely on memcpy
123946         to null-terminate.
123948         * lib/same.c (STREQ): Remove.
123949         (same_name): Handle the case where the basename ends in trailing '/'.
123951         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
123952         a slash was stripped.  Do not strip the last slash after a
123953         file system prefix.
123955 2001-05-11  Paul Eggert  <eggert@twinsun.com>
123957         * lib/Makefile.am (libfetish_a_SOURCES):
123958         Add strftime.c, since we now compile it on all hosts.
123960         * lib/strftime.c (my_strftime):
123961         Define to nstrftime if emacs, but only if my_strftime is not defined.
123962         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
123963         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
123964         Add one more extra argument: a nanoseconds value.
123965         All uses changed.
123966         (ns): New macro.
123967         (my_strftime function): Add %N format.
123968         (emacs_strftimeu): Renamed from emacs_strftime,
123969         with extra ut argument.
123971 2001-05-09  Paul Eggert  <eggert@twinsun.com>
123973         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
123975 2001-04-21  Jim Meyering  <meyering@lucent.com>
123977         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
123978         doesn't interfere.
123980 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
123982         * m4/ftruncate.m4: Check for chsize.
123983         Link with ftruncate.o unconditionally if ftruncate is missing.
123984         This was required when cross-compiling to i586-mingw32msvc.
123986 2001-04-08  Jim Meyering  <meyering@lucent.com>
123988         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
123989         recomputed; that's necessary when the offset spans a DST transition.
123990         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
123992 2001-04-02  Jim Meyering  <meyering@lucent.com>
123994         * lib/regex.h, regex.c: Update from GNU libc.
123996 2001-03-24  Jim Meyering  <meyering@lucent.com>
123998         * m4/jm-macros.m4: Require autoconf-2.49d.
124000 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
124002         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
124004 2001-03-19  Paul Eggert  <eggert@twinsun.com>
124006         * lib/version-etc.c (version_etc_copyright): Update to 2001.
124008 2001-03-17  Jim Meyering  <meyering@lucent.com>
124010         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
124011         now that the version in autoconf is equivalent.
124012         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
124014         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
124015         Suggestion from Akim Demaille.
124017         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
124018         (jm_PREREQ_TEMPNAME): New function.
124020 2001-03-16  Paul Eggert  <eggert@twinsun.com>
124022         * lib/tempname.c (uint64_t): Define to uintmax_t if
124023         not defined, and if UINT64_MAX is not defined.
124024         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
124025         Reported by John David Anglin.
124027 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
124029         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
124030         resolve alias if codeset is empty.
124031         * lib/config.charset (BeOS): Use wildcard syntax.
124033 2001-03-13  Jim Meyering  <meyering@lucent.com>
124035         * lib/path-concat.c (path_concat)
124036         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
124037         concatenating e.g., `C:' and `foo'.
124038         From Bruno Haible.
124040 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
124042         * lib/localcharset.c (locale_charset): Don't use
124043         setlocale(LC_CTYPE,NULL). Don't return NULL.
124044         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
124046 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
124048         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
124049         support for DOS/DJGPP.
124051 2001-03-01  Paul Eggert  <eggert@twinsun.com>
124053         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
124054         lacks mkstemp.  Compile our own tempname.c if we compile our own
124055         mkstemp.c, as mkstemp relies on tempname.
124057 2001-03-01  Jim Meyering  <meyering@lucent.com>
124059         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
124060         AH_VERBATIM really does output its argument verbatim.
124062 2001-02-28  Paul Eggert  <eggert@twinsun.com>
124064         * lib/Makefile.am (libfetish_a_SOURCES):
124065         Add dup-safer.c, fopen-safer.c.
124066         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
124068         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
124069         * lib/unistd-safer.h: New files.
124071 2001-02-25  Paul Eggert  <eggert@twinsun.com>
124073         The mkstemp replacement is taken from glibc 2.2.2, with some
124074         portability fixes for use outside glibc, as follows:
124076         * lib/tempname.c (struct_stat64): New macro.
124077         (direxists, __gen_tempname): Use it.
124078         This avoids a portability problem with Solaris 8.
124080         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
124081         (<stddef.h>, <stdint.h>, <string.h>):
124082         Include only if STDC_HEADERS || _LIBC.
124083         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
124084         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
124085         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
124086         (__set_errno): Define this macro if <errno.h> doesn't.
124087         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
124088         Define these macros if <stdio.h> doesn't.
124089         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
124090         Define these macros if <sys/stat.h>
124091         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
124092         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
124093         __xstat64): Define if not _LIBC.
124094         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
124095         (__gen_tempname): Invoke gettimeofday only if
124096         HAVE_GETTIMEOFDAY || _LIBC;
124097         otherwise, fall back on plain "time".
124098         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
124100         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
124102         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
124104 2001-02-18  Paul Eggert  <eggert@twinsun.com>
124106         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
124108 2001-02-17  Paul Eggert  <eggert@twinsun.com>
124110         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
124111         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
124112         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
124113         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
124115 2001-02-17  Paul Eggert  <eggert@twinsun.com>
124117         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
124118         Remove workaround macros for hosts that have mbrtowc but not
124119         mbstate_t, as we now insist on proper declarations for both
124120         before using mbrtowc.
124122 2001-02-17  Jim Meyering  <meyering@lucent.com>
124124         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
124125         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
124126         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
124127         UnixWare 7.1.1.
124129         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
124130         rather than AC_CACHE_VAL.
124132 2001-02-17  Jim Meyering  <meyering@lucent.com>
124134         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
124135         around included file name.
124137         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
124139         * lib/strftime.c: Update from GNU libc (the only changes were to
124140         comments).
124142 2001-02-17  Jim Meyering  <meyering@lucent.com>
124144         * lib/regex.c: Update from libc.
124146 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
124148         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
124149         clash.
124151 2001-02-16  Paul Eggert  <eggert@twinsun.com>
124153         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
124154         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
124155         Reported by Mark Hounschell via Paul Eggert.
124157 2001-02-07  Jim Meyering  <meyering@lucent.com>
124159         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
124161 2001-02-05  Jim Meyering  <meyering@lucent.com>
124163         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
124164         it includes the patch required for `large file' support with at least
124165         HP-UX's 10.20 /bin/cc.
124167 2001-02-03  Jim Meyering  <meyering@lucent.com>
124169         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
124170         AS_IF, now that it works once again (mysteriously).
124171         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
124173 2001-01-30  Jim Meyering  <meyering@lucent.com>
124175         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
124176         * m4/chown.m4: Rename conftestchown to conftest.chown.
124177         * m4/rename.m4: s/conftestdir/conftest.d1/ and
124178         s/conftestdir2/conftest.d2/.
124179         * m4/utimes.m4: s/conftestdata/conftest.data/
124180         Inspired by Pavel Roskin's change in autoconf.
124182 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
124184         * lib/config.charset: Update for FreeBSD 4.2.
124186 2001-01-27  Jim Meyering  <meyering@lucent.com>
124188         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
124189         a use of AS_IF.
124190         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
124192 2001-01-26  Jim Meyering  <meyering@lucent.com>
124194         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
124195         quotearg.c includes it.
124197 2001-01-26  Jim Meyering  <meyering@lucent.com>
124199         * lib/quotearg.c: Include stddef.h.
124200         * lib/quote.c: Include stddef.h.
124201         Reported by Axel Kittenberger.
124203         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
124204         line in double quotes so that it evokes a better diagnostic.
124205         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
124206         Reported by Axel Kittenberger.
124208 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
124210         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
124211         as if it was a `charset'.
124213 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
124215         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
124216         has const.
124218 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
124220         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
124221         to avoid a warning.  Add back 'const' to inptr.
124223 2001-01-20  Jim Meyering  <meyering@lucent.com>
124225         Be sure that headers are checked before used in code compiled
124226         for the type checks.
124227         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
124228         In place of that, invoke jm_CHECK_ALL_TYPES.
124229         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
124230         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
124231         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
124232         The check for ssize_t was mistakenly run before the test for unistd.h.
124234         The configure-time check for stdbool.h was missing.
124235         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
124236         (jm_PREREQ_HASH): New function.
124238 2001-01-17  Jim Meyering  <meyering@lucent.com>
124240         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
124241         for autoconf-2.49c.
124242         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
124244 2001-01-16  Jim Meyering  <meyering@lucent.com>
124246         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
124247         From Bruno Haible.
124249 2001-01-14  Jim Meyering  <meyering@lucent.com>
124251         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
124252         foo and bar.  Create conftestdir/ in the script, not in the C code.
124253         Remove directories in the script, not in the C code.
124254         Remove conftestdir{,2} before trying to create the directory.
124255         Make the entire configure script fail if the mkdir fails.
124257 2001-01-14  Jim Meyering  <meyering@lucent.com>
124259         * lib/rename.c: New file.  From Volker Borchert.
124260         Include stdlib.h, string.h or strings.h, and xalloc.h.
124261         Use strip_trailing_slashes rather than open-coding it.
124263 2001-01-03  Paul Eggert  <eggert@twinsun.com>
124265         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
124267 2001-01-03  Jim Meyering  <meyering@lucent.com>
124269         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
124270         of local `inptr' to avoid warning with some system declarations of
124271         iconv.
124273 2001-01-02  Volker Borchert  <bt@teknon.de>
124275         * m4/rename.m4: New file.
124276         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
124278 2001-01-01  Jim Meyering  <meyering@lucent.com>
124280         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
124281         even on systems with utmpx.h.  It's necessary for the declaration of
124282         utmp's ut_user member.  Reported by Andreas Jaeger.
124284         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
124285         available. They are required for the declarations of getgrgid and
124286         getpwuid resp.
124287         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
124288         Reported by Andreas Jaeger.
124290 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
124292         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
124293         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
124294         so `make install' also works in VPATH builds.
124296 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
124298         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
124299         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
124300         can be used in subdirectories.
124302 2000-12-29  Paul Eggert  <eggert@twinsun.com>
124304         * lib/modechange.c: Do not assume that mode_t uses the
124305         traditional octal encoding.  E.g. "chmod 1 FOO" should set
124306         the other-execute bit of FOO even if S_IXOTH != 1.
124308         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
124309         WOTH, XOTH, ALLM): New macros.
124310         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
124311          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
124312         Use them.
124313         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
124314         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
124315         (mode_compile):
124316         No need to use uintmax_t; unsigned long is long enough.
124317         Don't bother to get suffix since we don't use it.
124319 2000-12-26  Jim Meyering  <meyering@lucent.com>
124321         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
124322         better with autoheader.
124324 2000-12-24  Jim Meyering  <meyering@lucent.com>
124326         * lib/hash.c (is_prime): Return explicit boolean values.
124327         (hash_get_first): Return NULL to appease Irix5.6's 89.
124328         Reported by Nelson Beebe.
124330 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
124332         * lib/localcharset.c (locale_charset): Add support for Win32.
124334 2000-12-18  Paul Eggert  <eggert@twinsun.com>
124336         * lib/physmem.h, lib/physmem.c: New files.
124338         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
124339         (noinst_HEADERS): Add physmem.h.
124341         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
124342         't' for compatibility with Solaris 8 sort.
124344 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
124346         * lib/config.charset: Add support for BeOS.
124348 2000-12-17  Jim Meyering  <meyering@lucent.com>
124350         * m4/dos.m4 (jm_AC_DOS): New file and macro.
124351         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
124353 2000-12-16  Jim Meyering  <meyering@lucent.com>
124355         This bug had a serious impact on chown: `chown N:M FILE' (for integer
124356         N and M) would have treated it like `chown N:N FILE'.
124358         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
124360 2000-12-16  Jim Meyering  <meyering@lucent.com>
124362         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
124363         SHELLS_FILE to a file name that's useful on djgpp systems.
124364         Include stdlib.h.
124365         (ADDITIONAL_DEFAULT_SHELLS): Define.
124366         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
124367         Based mostly on a patch from Prashant TR.
124369 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
124371         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
124372         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
124373         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
124375 2000-12-08  Andreas Schwab  <schwab@suse.de>
124377         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
124378         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
124380 2000-12-07  Jim Meyering  <meyering@lucent.com>
124382         * lib/stripslash.c (ISSLASH): Define.
124383         (strip_trailing_slashes): Use ISSLASH rather than comparing against
124384         `/'.
124385         From Prashant TR.
124387         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
124388         (dir_name_r): Declare this function as static.
124389         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
124390         manifest itself on a name containing a mix of slashes and
124391         backslashes.
124392         Make this function work with names starting with a DOS-style
124393         drive letter and colon prefix.
124394         (dir_name): Append `.' if necessary.
124395         Based mostly on patches from Prashant TR and Eli Zaretskii.
124397         * lib/dirname.h (dir_name_r): Remove prototype.
124399 2000-12-06  Paul Eggert  <eggert@twinsun.com>
124401         * m4/off_t-format.m4: Remove this file.
124402         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
124404 2000-12-06  Jim Meyering  <meyering@lucent.com>
124406         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
124407         replacement strtoull, we may well need the replacement strtoul, too.
124408         Check for declarations of strtoul and strtoull.
124409         Check for strtol.  Mainly as a cue to cause automake to include
124410         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
124411         Check for limits.h -- strtol.c needs it.
124413 2000-12-05  Jim Meyering  <meyering@lucent.com>
124415         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
124417 2000-12-04  Jim Meyering  <meyering@lucent.com>
124419         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
124420         Also include memory.h, stdlib.h, unistd.h if appropriate.
124421         Reported by Andreas Jaeger (conflicting declaration of malloc).
124423 2000-12-02  Jim Meyering  <meyering@lucent.com>
124425         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
124426         * m4/jm-macros.m4 (jm_MACROS): require it.
124428 2000-12-02  Jim Meyering  <meyering@lucent.com>
124430         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
124432 2000-12-01  Paul Eggert  <eggert@twinsun.com>
124434         * lib/memrchr.c: Include <config.h> before any system include file.
124436 2000-11-30  Jim Meyering  <meyering@lucent.com>
124438         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
124440 2000-11-30  Jim Meyering  <meyering@lucent.com>
124442         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
124444 2000-11-29  Paul Eggert  <eggert@twinsun.com>
124446         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
124448 2000-11-26  Jim Meyering  <meyering@lucent.com>
124450         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
124452 2000-11-22  Paul Eggert  <eggert@twinsun.com>
124454         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
124455         size of (size_t) -1; it's not portable.
124457 2000-11-17  Jim Meyering  <meyering@lucent.com>
124459         * lib/strstr.c: Update from GNU libc.
124461 2000-11-17  Akim Demaille  <akim@epita.fr>
124463         * lib/obstack.h: Formatting changes.
124464         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
124465         prevent type checking.
124466         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
124467         cast the value to (void *): assigning a `foo *' to a `void *'
124468         variable is valid.
124469         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
124471 2000-11-16  Jim Meyering  <meyering@lucent.com>
124473         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
124475 2000-11-11  Jim Meyering  <meyering@lucent.com>
124477         * lib/error.c: Add a couple #includes, merging from GNU libc version.
124479 2000-11-10  Jim Meyering  <meyering@lucent.com>
124481         * lib/obstack.h: Update from GNU libc.
124482         * lib/obstack.c: Likewise.
124484 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
124486         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
124488 2000-11-06  Paul Eggert  <eggert@twinsun.com>
124490         * lib/getusershell.c (setusershell): Use rewind rather than
124491         fseek/fseeko, to avoid configuration hassles with fseeko.
124492         Don't bother opening SHELLS_FILE if shellstream is NULL;
124493         it's not necessary.
124495 2000-11-05  Jim Meyering  <meyering@lucent.com>
124497         * lib/makepath.h (make_dir): Declare.
124498         * lib/makepath.c (make_dir): Remove `static' attribute.
124499         Tweak a comment.
124501 2000-11-04  Jim Meyering  <meyering@lucent.com>
124503         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
124505 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
124507         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
124508         last one in a bucket, advance to the next bucket.
124510 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
124512         * lib/fnmatch.c: Do not comment out all the code if we are using
124513         the GNU C library, because in some cases we are replacing buggy
124514         code in the GNU C library itself.
124516 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
124518         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
124519         (regex_compile): Catch bogus \(\1\).
124521 2000-10-30  Paul Eggert  <eggert@twinsun.com>
124523         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
124524         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
124525         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
124527 2000-10-30  Paul Eggert  <eggert@twinsun.com>
124529         * lib/error.h, getline.h, modechange.h:
124530         Remove "2000" from Copyright line, as the file hasn't been
124531         changed this year other than in the copyright notice.
124533         * lib/xalloc.h: Add "2000" to Copyright line, as this file
124534         was changed this year.
124536 2000-10-29  Jim Meyering  <meyering@lucent.com>
124538         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
124539         renaming.
124540         * m4/ls-mntd-fs.m4: Likewise
124542 2000-10-29  Jim Meyering  <meyering@lucent.com>
124544         * lib/xstat.in: Fix grammar in comment.
124546 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
124548         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
124549         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
124550         doesn't define __restrict_arr.
124552 2000-10-28  Jim Meyering  <meyering@lucent.com>
124554         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
124555         (jm_PREREQ_MEMCHR): New function.
124557 2000-10-28  Jim Meyering  <meyering@lucent.com>
124559         * lib/memchr.c: Update from libc.
124560         Adjust for portability:
124561         [HAVE_STDLIB_H]: Include stdlib.h.
124562         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
124563         Undef __memchr, too.
124564         [!weak_alias]: Define __memchr to memchr.
124566         * lib/regex.c: Update from libc.
124567         * lib/regex.h: Likewise.
124568         * lib/getopt1.c: Likewise.
124569         * lib/memcmp.c: Likewise.
124571         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
124572         Avoid using fseek, when possible -- it's broken by design.
124573         Patch by Ulrich Drepper.
124575 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
124577         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
124578         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
124579         Giving in to popular pressure to shut up the compiler with casts.
124581 2000-10-26  Jim Meyering  <meyering@lucent.com>
124583         * lib/strftime.c: Update from libc.
124585 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
124587         * regex.c: More `unsigned char' -> `re_char' changes.
124588         Also change several `int' into `re_wchar_t'.
124589         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
124590         (PUSH_FAILURE_POINTER): Don't cast any more.
124591         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
124592         We want GCC to complain, since this piece of code makes
124593         re_match non-reentrant, which *should* be fixed.
124594         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
124595         (EXTEND_BUFFER): Use RETALLOC.
124596         (SET_LIST_BIT): Don't cast.
124597         (re_wchar_t): New type.
124598         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
124599         that those two functions will always properly return.
124600         (IMMEDIATE_QUIT_CHECK): Cast to void.
124601         (analyse_first): Use recursion rather than an explicit stack.
124602         (re_compile_fastmap): Can't fail anymore.
124603         (re_search_2): Don't check re_compile_fastmap for failure.
124604         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
124605         Now also sets the new value (passed in a new argument).
124606         (re_match_2_internal): Use it.
124607         Also, use a new var `reg' of type size_t when looping through regs
124608         rather than reuse the inappropriate `mcnt'.
124610 2000-10-25  Jim Meyering  <meyering@lucent.com>
124612         * lib/obstack.c: Update from libc.
124614 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
124616         * regex.c (regex_compile): Change the way of handling a range from
124617         a char less than 256 to a char not less than 256.
124619 2000-10-24  Andrew Innes  <andrewi@gnu.org>
124621         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
124622         NT-Emacs only.
124623         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
124624         so that re_search functions only quit when callers expect them to.
124626 2000-10-23  Jim Meyering  <meyering@lucent.com>
124628         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
124629         wrong.  That set_locale call must not have any side effects.
124630         From Paul Eggert.
124632 2000-10-22  Jim Meyering  <meyering@lucent.com>
124634         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
124635         [CYCLIC]: Remove now-unused definition.
124637         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
124638         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
124639         Suggestion from Ulrich Drepper.
124641 2000-10-21  Jim Meyering  <meyering@lucent.com>
124643         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
124644         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
124645         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
124647 2000-10-21  Jim Meyering  <meyering@lucent.com>
124649         * lib/dirname.c (memrchr): Declare if necessary.
124650         (dir_name): Remove the restriction that there be no
124651         trailing slashes.  Now, this code skips past them, effectively
124652         ignoring them.
124653         [TEST_DIRNAME] (main): New unit tests.
124655         * lib/memrchr.c: New file from GNU libc.
124656         Undef __memrchr, too.
124657         [!weak_alias]: Define __memrchr to memrchr.
124658         Guard weak_alias use with `#ifdef weak_alias'.
124660 2000-10-21  Jim Meyering  <meyering@lucent.com>
124662         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
124663         (dir_name): Use dir_name_r.
124664         * lib/dirname.h (dir_name_r): Declare it.
124666 2000-10-17  Jim Meyering  <meyering@lucent.com>
124668         * lib/quote.h (PARAMS): Define and use.
124669         Reported by Akim Demaille.
124671         * lib/getopt.c: Update from libc.
124673 2000-10-16  Jim Meyering  <meyering@lucent.com>
124675         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
124676         setlocale.
124677         From Jan Fedak.
124679 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
124681         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
124683 2000-09-25  Jim Meyering  <meyering@lucent.com>
124685         * lib/md5.h (rol): Define (from GnuPG).
124687         * lib/sha.c: Give credit (GnuPG) where due.
124688         (M): Use rol rather than open-coding it.
124689         Add a FIXME comment.
124691 2000-09-21  Jim Meyering  <meyering@lucent.com>
124693         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
124694         Reported by Michael Stone.
124696 2000-09-20  Jim Meyering  <meyering@lucent.com>
124698         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
124699         (noinst_HEADERS): Add sha.h.
124700         Based on code from Scott G. Miller and from GnuPG.
124702 2000-09-18  Jim Meyering  <meyering@lucent.com>
124704         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
124705         LIBS. Otherwise, everyone ends up linking with -lelf for some
124706         configurations.
124707         Reported by Mike Stone.
124709 2000-09-15  Jim Meyering  <meyering@lucent.com>
124711         * lib/regex.c: Update from libc.
124713 2000-09-10  Jim Meyering  <meyering@lucent.com>
124715         * lib/getopt.c (_getopt_internal): Update from glibc.
124717 2000-09-09  Jim Meyering  <meyering@lucent.com>
124719         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
124720         think it should be used as a general replacement for isascii.
124721         * lib/fnmatch.c: Likewise.
124722         * lib/mbswidth.c: Likewise
124723         * lib/regex.c: Likewise.
124725         Don't use atoi.
124726         * lib/userspec.c: Include sys/param.h and limits.h.
124727         Include xstrtol.h.
124728         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
124729         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
124730         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
124731         UID, GID.  Check range.
124733 2000-09-06  Jim Meyering  <meyering@lucent.com>
124735         * lib/getopt.c (_getopt_internal): Update from glibc.
124737 2000-08-30  Jim Meyering  <meyering@lucent.com>
124739         * lib/strftime.c: Merge in changes from GNU libc.
124741 2000-08-26  Jim Meyering  <meyering@lucent.com>
124743         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
124744         * m4/fpending.m4: New file.
124746 2000-08-26  Jim Meyering  <meyering@lucent.com>
124748         * lib/closeout.c: Include "__fpending.h".
124749         (close_stdout_status): Return right away if there's nothing to flush.
124751         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
124752         * lib/__fpending.c: New file.
124753         * lib/__fpending.h: New file.
124755 2000-08-20  Jim Meyering  <meyering@lucent.com>
124757         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
124758         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
124759         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
124761 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
124763         Improve fileutils installation on systems where running
124764         programs (like install) can't be unlinked.
124765         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
124766         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
124768 2000-08-07  Paul Eggert  <eggert@twinsun.com>
124770         Standardize on "memory exhausted" instead of "Memory exhausted"
124771         or "virtual memory exhausted".
124772         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
124773         "virtual memory exhausted".
124774         * lib/same.c (same_name): Invoke xalloc_die instead of printing
124775         our own message.
124776         * lib/userspec.c (parse_user_spec): Likewise.
124777         * lib/bumpalloc.h: comment fix
124778         * lib/same.c, userspec.c: Include xalloc.h.
124780         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
124781         not char *const and pointing to a constant array.
124782         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
124783         (xrealloc): Comment fix.
124785         * lib/userspec.c (parse_user_spec):
124786         Don't translate a message until just before returning,
124787         to avoid unnecessary translation.
124789 2000-08-07  Jim Meyering  <meyering@lucent.com>
124791         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
124792         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
124793         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
124794         getgroups.c, gethostname.c, getopt.h, group-member.c,
124795         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
124796         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
124797         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
124798         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
124799         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
124800         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
124801         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
124802         yesno.c: Back out Copyright date changes for each file with no change
124803         this year.  This eases coordination with other programs using the same
124804         source code modules.  From Paul Eggert.
124806 2000-08-06  Paul Eggert  <eggert@twinsun.com>
124808         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
124809         not char, for compatibility with glibc 2.1.3 strftime.c.
124811 2000-08-03  Greg McGary  <greg@mcgary.org>
124813         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
124814         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
124815         (EXTEND_BUFFER): Use them.
124817 2000-08-01  Jim Meyering  <meyering@lucent.com>
124819         * lib/dirname.c (ISSLASH): Define.
124820         (BACKSLASH_IS_PATH_SEPARATOR): Define.
124821         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
124822         both `\' and `/' may be use as path separators.
124823         Based on a patch from Prashant TR.
124825 2000-07-31  Paul Eggert  <eggert@twinsun.com>
124827         * lib/quotearg.c (quotearg_n_options): Don't make the initial
124828         slot vector a constant, since it might get modified.
124830 2000-07-31  Jim Meyering  <meyering@lucent.com>
124832         * lib/xmalloc.c: Use `virtual memory exhausted', not
124833         `Memory exhausted'.
124834         * lib/obstack.c (print_and_abort): Likewise.
124836 2000-07-30  Paul Eggert  <eggert@twinsun.com>
124838         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
124839         buffer, so that the caller can always quote one small
124840         component of a "memory exhausted" message in slot 0.
124841         From a suggestion by Jim Meyering.
124843 2000-07-30  Jim Meyering  <meyering@lucent.com>
124845         * lib/makepath.c (make_path): Quote the other instance, too.
124847         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
124848         (STATIC_BUF_SIZE): Define.
124849         (quotearg_n_options): Use only statically allocated storage when
124850         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
124851         than STATIC_BUF_SIZE.
124853 2000-07-29  Jim Meyering  <meyering@lucent.com>
124855         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
124856         * lib/dirname.c (dir_name): Likewise.
124858         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
124859         `/'.
124861         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
124862         (dir_name): Assert that there are no trailing slashes.
124864 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
124866         * lib/mbswidth.h (mbswidth): Add a flags argument.
124867         (mbswidth): New declaration.
124868         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
124869         * lib/mbswidth.c (mbswidth): Add a flags argument.
124870         (mbsnwidth): New function.
124872 2000-07-24  Jim Meyering  <meyering@lucent.com>
124874         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
124876 2000-07-23  Paul Eggert  <eggert@twinsun.com>
124878         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
124880 2000-07-23  Paul Eggert  <eggert@twinsun.com>
124882         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
124883         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
124884         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
124885         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
124886         invoke multibyte primitives.
124888 2000-07-23  Paul Eggert  <eggert@twinsun.com>
124890         * lib/quotearg.c:
124891         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
124892         so that mbstate_t is always defined.
124894         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
124895         be 1 in at least one GCC installation, and this configuration
124896         error is likely to be common.  Ignoring MB_LEN_MAX hurts
124897         performance on hosts that have mbrtowc but have only unibyte
124898         locales, but I assume these hosts are rare.
124900 2000-07-23  Paul Eggert  <eggert@twinsun.com>
124902         * lib/mbswidth.c (_XOPEN_SOURCE):
124903         Don't define; this causes problems on Solaris 7.
124904         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
124906 2000-07-23  Jim Meyering  <meyering@lucent.com>
124908         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
124909         too: getgrgid, getpwuid, getuid.
124911 2000-07-23  Jim Meyering  <meyering@lucent.com>
124913         * lib/basename.c (base_name): Add an assertion.
124915 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
124917         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
124918         shadow its mbsinit function.
124920 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
124922         * lib/mbswidth.h: New file.
124923         * lib/mbswidth.c: New file.
124924         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
124925         (noinst_HEADERS): Add mbswidth.h.
124927 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
124929         * lib/config.charset: Add support for FreeBSD. Improve support for
124930         HP-UX and IRIX 6.
124932 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
124934         * m4/mbswidth.m4: New file.
124935         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
124937 2000-07-15  Jim Meyering  <meyering@lucent.com>
124939         * lib/makepath.c: Include quote.h.
124940         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
124941         corresponding argument in a `quote (...)' call.
124942         Give better diagnostics.
124944         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
124945         (noinst_HEADERS): Add quote.h.
124947         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
124948         from tar's src/misc.c.
124949         * lib/quote.h: New file.  Prototypes for same.
124951 2000-07-14  Paul Eggert  <eggert@twinsun.com>
124953         From a suggestion by Bruno Haible.
124954         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
124955         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
124956         to decide whether to define the BeOS workaround macro;
124957         this adjusts to the change to AC_MBSTATE_T.
124959 2000-07-14  Jim Meyering  <meyering@lucent.com>
124961         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
124962         jm_AC_TYPE_UINTMAX_T.
124964 2000-07-13  Paul Eggert  <eggert@twinsun.com>
124966         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
124968         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
124969         quotearg_buffer_restyled): Add support for
124970         clocale_quoting_style.  Undo previous change to
124971         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
124972         and "{RIGHT QUOTATION MARK}" msgids.
124974 2000-07-10  Paul Eggert  <eggert@twinsun.com>
124976         From a suggestion by Bruno Haible.
124977         * m4/mbstate_t.m4 (AC_MBSTATE_T):
124978         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
124979         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
124980         and mbstate_t, to a single-part test that simply defines mbstate_t.
124981         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
124982         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
124984 2000-07-10  Jim Meyering  <meyering@lucent.com>
124986         * m4/strerror_r.m4: Mirror the correction made in autoconf.
124988         * m4/gnu-source.m4: Output to confdefs.h directly.
124989         Suggestion from Akim Demaille.
124991 2000-07-09  Paul Eggert  <eggert@twinsun.com>
124993         The old behavior of quoting `like this' doesn't look good with
124994         newer, ISO-style fonts.  See:
124995         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
124997         Instead, quote "like this" by default.  Let the translator
124998         tailor the locale-specific quoting behavior by providing
124999         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
125001         * lib/quotearg.c (N_): New macro.
125002         (gettext_default): New function.
125003         (quotearg_buffer_restyled): Use
125004         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
125005         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
125007 2000-07-09  Jim Meyering  <meyering@lucent.com>
125009         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
125010         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
125012         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
125013         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
125015 2000-07-09  Jim Meyering  <meyering@lucent.com>
125017         * lib/Most files: Update copyright dates to include 2000.
125019 2000-07-08  Jim Meyering  <meyering@lucent.com>
125021         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
125022         if not defined.
125023         (xgethostname): Remove now-unnecessary #ifdef.
125024         Move declaration of `err' into loop where it's used.
125026 2000-07-05  Paul Eggert  <eggert@twinsun.com>
125027         and Bruno Haible  <haible@clisp.cons.org>
125029         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
125030         only if the test for an object-type mbstate_t fails.  This
125031         prevents us from mistakenly reporting that mbstate_t is a
125032         system object type after we "#define mbstate_t int" to work
125033         around its lack.
125035 2000-07-05  Paul Eggert  <eggert@twinsun.com>
125036         and Bruno Haible  <haible@clisp.cons.org>
125038         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
125040 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
125042         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
125043         to strerror_r.
125044         Include <ctype.h> for use of isalpha.
125046 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
125048         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
125049         by allocating a larger buffer. Test the gethostname return value for
125050         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
125051         returns an error and ENAMETOOLONG isn't defined.
125053 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
125055         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
125056         dimension.
125058 2000-07-04  Jim Meyering  <meyering@lucent.com>
125060         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
125061         of the deprecated AC_CHECKING.
125063 2000-07-04  Jim Meyering  <meyering@lucent.com>
125065         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
125066         Reported by Bruno Haible.
125068 2000-07-04  Jim Meyering  <meyering@lucent.com>
125070         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
125071         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
125072         lacks mbrtowc.
125074 2000-07-03  Paul Eggert  <eggert@twinsun.com>
125076         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
125077         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
125079 2000-07-03  Paul Eggert  <eggert@twinsun.com>
125080         and Bruno Haible  <haible@clisp.cons.org>
125082         * lib/quotearg.c (mbrtowc):
125083         Assign to *pwc, and return 1 only if result is nonzero.
125084         (iswprint): Use ISPRINT when substituting our own mbrtowc.
125086 2000-07-03  Jim Meyering  <meyering@lucent.com>
125088         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
125090 2000-07-03  Jim Meyering  <meyering@lucent.com>
125092         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
125093         This is necessary to get a definition of e.g., UTMP_FILE on
125094         HP-UX 10.20.
125095         From Bob Proulx.
125097 2000-07-02  Jim Meyering  <meyering@lucent.com>
125099         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
125101         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
125102         AC_LIBOBJ(function_name).
125103         * m4/chown.m4: Likewise.
125104         * m4/fnmatch.m4: Likewise.
125105         * m4/ftruncate.m4: Likewise.
125106         * m4/getgroups.m4: Likewise.
125107         * m4/getline.m4: Likewise.
125108         * m4/group-member.m4: Likewise.
125109         * m4/jm-macros.m4: Likewise.
125110         * m4/lstat.m4: Likewise.
125111         * m4/malloc.m4: Likewise.
125112         * m4/memcmp.m4: Likewise.
125113         * m4/nanosleep.m4: Likewise.
125114         * m4/putenv.m4: Likewise.
125115         * m4/realloc.m4: Likewise.
125116         * m4/regex.m4: Likewise.
125117         * m4/stat.m4: Likewise.
125118         * m4/strftime.m4: Likewise.
125120 2000-07-02  Jim Meyering  <meyering@lucent.com>
125122         * lib/quotearg.c (mbstate_t): Don't define here.
125124 2000-07-02  Jim Meyering  <meyering@lucent.com>
125126         * lib/nanosleep.c (SIGCONT): Define if not already defined.
125128 2000-07-01  Jim Meyering  <meyering@lucent.com>
125130         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
125132 2000-07-01  Jim Meyering  <meyering@lucent.com>
125134         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
125135         problem.
125137 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
125139         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
125140         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
125142 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
125144         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
125145         per change in ../m4/ls-mntd-fs.m4.
125146         (read_filesystem_list): Ignore symbolic links.
125148 2000-06-29  Jim Meyering  <meyering@lucent.com>
125150         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
125151         for declaration of strcmp.
125153         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
125155         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
125156         Avoid warning by casting result to `char *' to remove `const'.
125158 2000-06-28  Jim Meyering  <meyering@lucent.com>
125160         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
125161         included by quotearg.c, for which we perform this test.  From
125162         Bruno Haible.
125164 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
125166         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
125167         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
125168         <utmpx.h> exists, put readutmp.o into LIBOBJS.
125170 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
125172         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
125174 2000-06-26  Paul Eggert  <eggert@twinsun.com>
125176         savedir now sets errno on failure and invokes xmalloc to get memory.
125177         Fix a couple of other minor bugs while we're at it.
125179         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
125180         (NAMLEN): Remove macro.
125181         (malloc, realloc): Remove decls.
125182         (stpcpy): Likewise.
125183         ("xalloc.h"): Include.
125184         (NAME_SIZE_DEFAULT): New macro.
125185         (savedir): Use xmalloc / xrealloc to allocate memory.
125186         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
125187         Skip "" directory entries.
125188         Use strlen to calculate directory entry length, since the old method
125189         is rarely used these days and isn't worth supporting.
125190         Don't use a pointer after freeing it.
125191         Check for integer overflow when calculating allocation size.
125192         Use memcpy to copy entries, instead of stpcpy.
125193         Set errno properly when returning NULL.
125194         Check for readdir error.
125196 2000-06-26  Jim Meyering  <meyering@lucent.com>
125198         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
125200 2000-06-25  Jim Meyering  <meyering@lucent.com>
125202         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
125203         Linux header bug when _XOPEN_SOURCE is defined to 500.
125205 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
125207         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
125208         deficiency.
125210 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
125212         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
125213         Include xalloc.h.
125214         Don't include <stdlib.h>.  Don't declare malloc, realloc.
125216 2000-06-24  Jim Meyering  <meyering@lucent.com>
125218         * m4/strerror_r.m4: Revive this file -- to try out an experimental
125219         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
125220         for which strerror does return char*, but which lacks a conveniently
125221         accessible declaration of the function.  If the compile-test says
125222         strerror_r doesn't work, then resort to a `run'-test that works on
125223         BeOS and segfaults on DEC Unix.
125225 2000-06-24  Jim Meyering  <meyering@lucent.com>
125227         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
125229 2000-06-23  Paul Eggert  <eggert@twinsun.com>
125231         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
125232         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
125234 2000-06-23  Paul Eggert  <eggert@twinsun.com>
125236         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
125237         (mbrtowc, mbstate_t): Define substitutes if
125238         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
125239         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
125240         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
125242 2000-06-23  Jim Meyering  <meyering@lucent.com>
125244         * m4/afs.m4: Add missing AC_MSG_RESULT.
125245         Reported by Bruno Haible.
125247         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
125248         Suggestion from Bruno Haible.
125250 2000-06-23  Jim Meyering  <meyering@lucent.com>
125252         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
125254 2000-06-21  Jim Meyering  <meyering@lucent.com>
125256         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
125258 2000-06-21  Jim Meyering  <meyering@lucent.com>
125260         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
125261         (noinst_HEADERS): Add getstr.h.
125263         * lib/getline.c (getstr): Move into a separate file.
125264         * lib/getstr.c (getstr): New file, extracted from getline.c, with
125265         the following changes: new parameter, delim2; both delim[12]
125266         parameters have type `int', not `char'.  The latter would lose
125267         with 8-bit delimiters.
125268         * lib/getstr.h: New file.
125270 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
125272         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
125273         than 1024, return a memory chunk of least possible size, instead
125274         of size PATH_MAX + 2. In the loop, increment the size proportionally.
125275         Use free/xmalloc instead of xrealloc to avoid copying for very long
125276         paths.
125278 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
125280         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
125281         the empty string.
125283 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
125285         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
125286         address, not strdup.  Include <stdlib.h> and don't declare free().
125288 2000-06-19  Jim Meyering  <meyering@lucent.com>
125290         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
125292 2000-06-18  Jim Meyering  <meyering@lucent.com>
125294         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
125296         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
125297         `checking whether...' message to be consistent with that of the
125298         lstat test.
125300 2000-06-18  Jim Meyering  <meyering@lucent.com>
125302         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
125303         Besides, these days every porting target provides a mkdir function.
125305         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
125306         needed. (this snippet comes from src/system.h).
125308 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
125310         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
125312 2000-06-15  Paul Eggert  <eggert@twinsun.com>
125314         * lib/human.c (adjust_value): New function.
125315         (human_readable_inexact): Apply rounding style even when
125316         printing approximate values.
125318 2000-06-14  Paul Eggert  <eggert@twinsun.com>
125320         * lib/human.c (human_readable_inexact): Allow an input block
125321         size that is not a multiple of the output block size, and vice versa.
125322         Reported by Piergiorgio Sartor.
125324 2000-06-14  Paul Eggert  <eggert@twinsun.com>
125326         * lib/getdate.y (get_date): Apply relative times after time
125327         zone indicator, not before.  Reported by Todd A. Jacobs.
125329 2000-06-13  Jim Meyering  <meyering@lucent.com>
125331         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
125333         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
125335 2000-06-12  Paul Eggert  <eggert@twinsun.com>
125337         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
125339 2000-06-12  Jim Meyering  <meyering@lucent.com>
125341         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
125342         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
125343         optional argument.
125344         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
125345         the optional argument, `lib'.
125347 2000-06-08  Jim Meyering  <meyering@lucent.com>
125349         * m4/largefile.m4: Remove file (now that it's part of autoconf).
125351 2000-06-04  Paul Eggert  <eggert@twinsun.com>
125353         Rewrite largefile configuration so that we don't need to run
125354         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
125355         AC_CANONICAL_HOST in configure.in -- jmm]
125357         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
125358         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
125359         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
125360         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
125361         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
125362         All uses changed.
125363         Instead of inspecting the output of getconf, try to compile the
125364         test program without and with the macro definition.
125365         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
125366         for getconf.  Instead, check for the needed flags by compiling
125367         test programs.
125369 2000-06-04  Paul Eggert  <eggert@twinsun.com>
125371         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
125373 2000-06-04  Jim Meyering  <meyering@lucent.com>
125375         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
125376         SunOS 4.1.4 for which gid_t is an unsigned type.
125378 2000-06-03  Jim Meyering  <meyering@lucent.com>
125380         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
125381         now that autoconf requires that.
125383         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
125384         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
125385         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
125387 2000-06-03  Jim Meyering  <meyering@lucent.com>
125389         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
125391 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
125393         * m4/glibc21.m4: New file.
125394         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
125396 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
125398         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
125399         newer, don't install charset.alias.
125400         * lib/config.charset: Change the Linux/glibc rules so they become empty
125401         on glibc-2.1 or newer.
125403 2000-06-02  Jim Meyering  <meyering@lucent.com>
125405         * lib/mountlist.c: Back out last change.  Instead, do this...
125406         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
125407         me_dummy member using the same `ignore'-testing code.
125408         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
125409         fs_type strings.
125410         From Mark D. Roth.
125412 2000-05-29  Jim Meyering  <meyering@lucent.com>
125414         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
125415         mounts with the `ignore' attribute.  Based on a patch from
125416         Mark D. Roth.
125418 2000-05-28  Jim Meyering  <meyering@lucent.com>
125420         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
125421         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
125422         * m4/stat.m4: Likewise.
125423         * m4/lstat.m4: Likewise.
125424         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
125426         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
125427         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
125429 2000-05-26  Jim Meyering  <meyering@lucent.com>
125431         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
125433 2000-05-24  Jim Meyering  <meyering@lucent.com>
125435         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
125436         autoconf requires that.
125437         * m4/lib-check.m4: Likewise.
125438         * m4/jm-macros.m4: Likewise.
125439         * m4/strftime.m4: Likewise.
125441         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
125442         AC_CHECK_DECLS, now that autoconf requires that.
125444 2000-05-22  Jim Meyering  <meyering@lucent.com>
125446         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
125447         * m4/lstat.m4: Likewise.
125449 2000-05-22  Jim Meyering  <meyering@lucent.com>
125451         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
125453 2000-05-20  Jim Meyering  <meyering@lucent.com>
125455         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
125456         (jm_PREREQ): Use it.
125458 2000-05-18  Jim Meyering  <meyering@lucent.com>
125460         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
125461         back, too, since it may have been modified by allocate_entry.
125462         (hash_delete): Rewrite to use neither the assignment operator
125463         nor the comma operator in an if-expression.
125465 2000-05-15  Paul Eggert  <eggert@twinsun.com>
125467         * lib/closeout.c:
125468         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
125469         Remove; no longer needed.
125470         "quotearg.h": Add include.
125471         (file_name): Do not bother to explicitly initialize to NULL; it's less
125472         efficient on some hosts.
125473         (close_stdout_status): Remove test as to whether stdout was already
125474         closed; it breaks for the case "echo x | sort >&-".
125475         Quote file name colons.
125476         Do not assume that _("write error") lacks format strings.
125478 2000-05-15  Jim Meyering  <meyering@lucent.com>
125480         * lib/version-etc.c (version_etc_copyright): Update the copyright
125481         string used in all --version output.
125483 2000-05-14  Jim Meyering  <meyering@lucent.com>
125485         * lib/closeout.c (close_stdout_set_file_name): New function.
125486         (close_stdout_status): Use new file-scoped global.
125487         Return right away if fstat says the stdout file descriptor is invalid.
125488         * lib/closeout.h (close_stdout_set_file_name): Declare.
125490 2000-05-10  Jim Meyering  <meyering@lucent.com>
125492         * lib/closeout.c [default_exit_status]: New file-scoped variable.
125493         (close_stdout_set_status): New function.
125494         * lib/closeout.h (close_stdout_set_status): Declare.
125496 2000-05-09  Jim Meyering  <meyering@lucent.com>
125498         * m4/gettext.m4: Rename this...
125499         * m4/libintl.m4: ...to this.
125501 2000-05-08  Jim Meyering  <meyering@lucent.com>
125503         * lib/long-options.c: Don't include closeout.h.
125504         (parse_long_options): Don't call close_stdout for --version.
125506 2000-05-06  Paul Eggert  <eggert@twinsun.com>
125508         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
125509         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
125510         2.1.3 bug.  This avoids a clash when files like regex.c define
125511         _GNU_SOURCE.
125513 2000-05-06  Jim Meyering  <meyering@lucent.com>
125515         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
125516         (AC_REPLACE_FUNCS): Add strnlen.
125518         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
125519         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
125521         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
125522         AC_SEARCH_LIBS call for nanosleep.
125523         (LIB_NANOSLEEP): Set and AC_SUBST.
125525 2000-05-06  Jim Meyering  <meyering@lucent.com>
125527         * lib/strnlen.c: Undefine __strnlen and strnlen.
125528         [!weak_alias]: Define __strnlen to strnlen.
125530         * lib/atexit.c: New file, from libiberty.
125532 2000-05-06  Jim Meyering  <meyering@lucent.com>
125534         * lib/closeout.c (close_stdout_status): Also check for errors on the
125535         stderr stream.
125537 2000-05-05  Jim Meyering  <meyering@lucent.com>
125539         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
125540         AC_SEARCH_LIBS call for clock_gettime.
125541         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
125543         * m4/search-libs.m4: Update from autoconf.
125545         su doesn't work on Solaris 2.6.
125546         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
125547         <shadow.h>.  Reported by Dragos Harabor.
125549 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
125551         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
125552         memcpy instead of xmalloc, xrealloc, path_concat.
125553         (locale_charset): Treat empty environment variables as absent.
125554         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
125556 2000-05-04  Jim Meyering  <meyering@lucent.com>
125558         * lib/getopt.c: Update from glibc.
125559         * lib/obstack.c: Likewise.
125560         * lib/obstack.h: Likewise.
125561         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
125562         file
125564         * lib/regex.h: Likewise.
125565         * lib/strndup.c: Likewise.
125566         * lib/strnlen.c: New file, from glibc.
125568 2000-05-03  Jim Meyering  <meyering@lucent.com>
125570         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
125572 2000-05-02  Paul Eggert  <eggert@twinsun.com>
125574         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
125575         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
125576         compile-time test, rather than inspecting host and OS, to
125577         decide whether to define _LARGEFILE_SOURCE.
125579 2000-05-01  Jim Meyering  <meyering@lucent.com>
125581         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
125583         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
125584         Based on a patch from Bruno Haible.
125586 2000-05-01  Jim Meyering  <meyering@lucent.com>
125588         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
125590 2000-04-29  Jim Meyering  <meyering@lucent.com>
125592         * lib/path-concat.c: Declare strdup only if it's not defined.
125593         * lib/canon-host.c: Likewise.
125595 2000-04-28  Jim Meyering  <meyering@lucent.com>
125597         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
125598         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
125599         is included first, then limits.h is included by locale.h by libintl.h.
125600         From John David Anglin.
125602 2000-04-25  Jim Meyering  <meyering@lucent.com>
125604         * lib/makepath.c (S_IRWXUGO): Define.
125605         (make_path): Always perform explicit chmod if MODE specifies any
125606         of the `special' permission bits.  Prompted by a bug report against
125607         install from Mate Wierdl and Joost van Baal.
125609 2000-04-18  Jim Meyering  <meyering@lucent.com>
125611         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
125612         (jm_PREREQ): Use it.
125614 2000-04-18  Jim Meyering  <meyering@lucent.com>
125616         * lib/README: New file.
125618         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
125619         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
125621 2000-04-17  Jim Meyering  <meyering@lucent.com>
125623         Get it right :-)
125624         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
125625         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
125626         Suggestion from Akim Demaille.
125628 2000-04-17  Jim Meyering  <meyering@lucent.com>
125630         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
125631         the definition of it to rpl_strftime also defined-away the system's
125632         declaration.
125634 2000-04-15  Jim Meyering  <meyering@lucent.com>
125636         Use `C' to denote so-called `contiguous' files, the same way
125637         that tar does.
125638         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
125639         (ftypelet): Use S_ISCTG.
125640         From Michael Deutschmann.
125642 2000-04-14  Jim Meyering  <meyering@lucent.com>
125644         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
125645         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
125646         clobbered.
125648 2000-04-14  Jim Meyering  <meyering@lucent.com>
125650         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
125652 2000-04-13  Jim Meyering  <meyering@lucent.com>
125654         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
125655         AH_VERBATIM to insert required #ifndef into config.h.in.
125656         Suggestion from Akim Demaille.
125658 2000-04-12  Jim Meyering  <meyering@lucent.com>
125660         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
125661         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
125662         Christian Krackowizer.
125664         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
125665         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
125666         (AC_SYS_LARGEFILE): Require.
125667         (AM_C_PROTOTYPES): Require.
125669 2000-04-08  Jim Meyering  <meyering@lucent.com>
125671         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
125672         names don't conflict.  Reported by Eli Zaretskii.
125674 2000-04-07  Jim Meyering  <meyering@lucent.com>
125676         * lib/putenv.c: Move inclusion of errno.h so it follows that of
125677         sys/types.h, to work around system header problems on AIX 3.2.5.
125678         From Bruno Haible.
125680 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
125682         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
125683         bug.  Deal with the different error behavior of Irix iconv.
125685 2000-04-05  Paul Eggert  <eggert@twinsun.com>
125687         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
125688         IRIX if the installer said otherwise.
125690 2000-04-05  Jim Meyering  <meyering@lucent.com>
125692         Portability tweaks required for ultrix4.3.
125693         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
125694         (jm_CHECK_DECLS): Add getutent to the list of functions.
125695         (_jm_DECL_HEADERS): Add utmpx.h.
125696         From John David Anglin.
125698         * m4/strftime.m4: Back out the 2000-04-02 change.
125699         Instead of that change, simply undefine putenv in the test program.
125701 2000-04-05  Jim Meyering  <meyering@lucent.com>
125703         Portability tweaks required for ultrix4.3.
125704         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
125705         getutent.
125706         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
125707         * lib/canon-host.c: Declare strdup.
125708         * lib/path-concat.c: Likewise.
125709         From John David Anglin.
125711 2000-04-04  Jim Meyering  <meyering@lucent.com>
125713         Be more DOS 8.3-friendly.
125714         * lib/ref-add.sin: Renamed from ref-add.sed.in.
125715         * lib/ref-del.sin: Renamed from ref-del.sed.in.
125716         * lib/Makefile.am: Reflect renaming.
125717         Reported by Eli Zaretskii.
125719         Use a temporary file name that won't clash with `charset.alias'
125720         in the DOS 8.3 name space.
125721         * lib/Makefile.am (charset_tmp): Define.
125722         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
125723         (uninstall-local): Likewise.
125724         Reported by Eli Zaretskii.
125726 2000-04-03  Jim Meyering  <meyering@lucent.com>
125728         * m4/gettext.m4: Fix typo in comment.
125730         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
125731         textutils/configure.in).  Suggestion from Paul Eggert.
125732         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
125734 2000-04-02  Paul Eggert  <eggert@twinsun.com>
125736         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
125737         variable in the shell rather than using putenv, which isn't
125738         portable.  This avoids the configure-time inter-test dependency
125739         on the potentially-renamed putenv function.
125741 2000-03-30  Paul Eggert  <eggert@twinsun.com>
125743         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
125744         before checking struct stat.st_blksize, so that
125745         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
125747 2000-03-29  Paul Eggert  <eggert@twinsun.com>
125749         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
125750         since strftime.c uses HAVE_STRFTIME to decide whether to use
125751         the underlying strftime.
125753 2000-03-29  Paul Eggert  <eggert@twinsun.com>
125755         * lib/time/strftime.c (my_strftime): Make sure we call the system
125756         strftime, not ourselves, when invoking the underlying strftime.
125758 2000-03-24  Jim Meyering  <meyering@lucent.com>
125760         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
125761         (charset_alias): Define.
125762         (install-exec-local): Factor out common code.
125763         (uninstall-local): Split lines longer than 80.
125764         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
125765         (SUFFIXES): Define.
125766         (.sed.in.sed): New rule.  Don't redirect directly to $@.
125767         (CLEANFILES): Add ref-add.sed and ref-del.sed.
125769 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
125771         * lib/config.charset: Output a line containing "Packages using this
125772         file".
125773         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
125774         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
125775         ref-del.sed): New rules.
125777 2000-03-17  Jim Meyering  <meyering@lucent.com>
125779         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
125780         Otherwise, include <strings.h>
125782 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
125784         * lib/unicodeio.c (utf8_wctomb): New function.
125785         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
125786         format instead of in UCS-4 with platform dependent endianness.
125788 2000-03-10  Jim Meyering  <meyering@lucent.com>
125790         * m4/lib-check.m4: Look for getspnam in -lgen, too.
125791         From Marco Franzen.
125793 2000-03-07  Paul Eggert  <eggert@twinsun.com>
125795         * lib/savedir.c (savedir): Work even if directory size is
125796         negative; this can happen with some screwy NFS configurations.
125798 2000-03-06  Jim Meyering  <meyering@lucent.com>
125800         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
125801         if it's NULL (because we ran out of memory).  From Bruno Haible.
125803 2000-03-05  Jim Meyering  <meyering@lucent.com>
125805         * lib/localcharset.c ("path-concat.h"): Include.
125806         (get_charset_aliases): Use path_concat instead of ANSI string
125807         concatenation.
125809         * lib/unicodeio.h (PARAMS): Define.
125810         Use it to guard prototype.
125812 2000-03-04  Jim Meyering  <meyering@lucent.com>
125814         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
125815         for lib/localcharset.c.
125817 2000-03-04  Jim Meyering  <meyering@lucent.com>
125819         * lib/Makefile.am (install-exec-local): Create $(libdir) before
125820         installing into it.
125821         (uninstall-local): Uncomment this rule so `make distcheck' works
125822         once again.
125824         * lib/unicodeio.c (<errno.h>): Include it.
125825         (errno): Declare if not defined.
125827         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
125829         * lib/config.charset: New version, incorporating remarks from a linux
125830         i18n mailing list.  From Bruno Haible.
125832 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
125834         * m4/codeset.m4: New file.
125835         * m4/iconv.m4: New file.
125836         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
125838 2000-03-03  Jim Meyering  <meyering@lucent.com>
125840         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
125842 2000-03-02  Jim Meyering  <meyering@lucent.com>
125844         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
125845         the messages come out on separate lines.
125847         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
125848         rather than jm_CHECK_DECLARATIONS.
125849         * m4/decl.m4: Remove now-unused file.
125851         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
125852         geteuid.
125854 2000-03-02  Jim Meyering  <meyering@lucent.com>
125856         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
125858 2000-03-01  Jim Meyering  <meyering@lucent.com>
125860         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
125861         * lib/unicodeio.c: Likewise.
125863 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
125865         * lib/config.charset: New file.
125866         * lib/localcharset.c: New file.
125867         * lib/unicodeio.h, lib/unicodeio.c: New files.
125868         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
125869         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
125870         (noinst_HEADERS): Add unicodeio.h.
125871         (all-local, install-exec-local, charset.alias): New targets.
125873 2000-02-28  Paul Eggert  <eggert@twinsun.com>
125875         * lib/quotearg.c (ALERT_CHAR): New macro.
125876         (quotearg_buffer_restyled): Use it.
125878 2000-02-27  Jim Meyering  <meyering@lucent.com>
125880         * m4/check-decl.m4: Add getenv to the list.
125882 2000-02-27  Jim Meyering  <meyering@lucent.com>
125884         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
125885         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
125887         * lib/backupfile.c: Guard inclusion of stdlib.h with
125888         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
125889         Declare malloc if needed.
125891         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
125892         `#ifndef HAVE_DECL..'
125893         now that autoconf always defines the HAVE_DECL_ symbols.
125894         * lib/human.c: Likewise.
125895         * lib/same.c: Likewise.
125896         * lib/strtoumax.c: Likewise.
125898         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
125899         declaration check was not run.
125900         * lib/hash.c: Likewise.
125901         * lib/human.c: Likewise.
125902         * lib/same.c: Likewise.
125903         * lib/strtoumax.c: Likewise.
125905         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
125906         `.', then first look up the entire `.'-containing string as a login
125907         name.
125909 2000-02-23  Jim Meyering  <meyering@lucent.com>
125911         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
125912         in place of my hack.
125914 2000-02-18  Paul Eggert  <eggert@twinsun.com>
125916         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
125917         (textint): New typedef.
125918         (parser_control): Member year changed from int to textint.
125919         All uses changed.
125920         (YYSTYPE): Removed; replaced by %union with int and textint members.
125921         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
125922         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
125923         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
125924         (tSNUMBER, tUNUMBER): Now of type <textintval>.
125925         (date, number, to_year): Use width of number in digits, not its value,
125926         to determine whether it's a 2-digit year, or a 2-digit time.
125927         (yylex): Store number of digits of numeric tokens.
125928         Reported by John Kendall.
125930         (parser_control): Changed from struct parser_control to typedef (for
125931         consistency).  All uses changed.
125933         (tID): Removed; not used.
125934         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
125936 2000-02-14  Paul Eggert  <eggert@twinsun.com>
125938         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
125939         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
125941 2000-02-12  Jim Meyering  <meyering@lucent.com>
125943         * lib/userspec.c (ISDIGIT): Define it.
125944         (isdigit): Remove definition.
125945         (is_number): Use ISDIGIT, not isdigit.
125946         <libintl.h>: Include.
125947         (_ and N_): Define.
125948         (parse_user_spec): Mark translatable strings.
125950 2000-02-10  Jim Meyering  <meyering@lucent.com>
125952         With these changes, nanosleep.[ch] are finally enough like the other
125953         lib/* replacement files to compile on a few more losing systems.
125955         * lib/nanosleep.h: Don't include config.h.
125956         Remove prototype from declaration of nanosleep.
125957         (PARAMS): Remove now-unneeded definition.
125958         * lib/nanosleep.c: #undef nanosleep.
125959         (rpl_nanosleep): Rename from nanosleep.
125961 2000-02-10  Jim Meyering  <meyering@lucent.com>
125963         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
125964         gnu_nanosleep to rpl_nanosleep.
125966 2000-02-09  Jim Meyering  <meyering@lucent.com>
125968         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
125969         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
125971 2000-02-08  Akim Demaille  <akim@epita.fr>
125973         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
125974         `[' and `]' and remove uses of `changequote'.
125975         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
125976         (AC_SYS_LARGEFILE): Likewise.
125977         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
125978         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
125979         of changequote.
125980         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
125981         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
125982         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
125983         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
125985 2000-02-05  Jim Meyering  <meyering@lucent.com>
125987         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
125988         Remove explicit use of AC_HEADER_TIME.  It is required by
125989         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
125990         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
125991         in autoconf whereby the expansion of the latter ended up preceding
125992         the expansion of its prerequisite, AC_HEADER_TIME.
125993         Reported by Volker Borchert.
125995 2000-02-03  Jim Meyering  <meyering@lucent.com>
125997         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
125999 2000-02-03  Jim Meyering  <meyering@lucent.com>
126001         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
126002         rather than with `#if HAVE_UTMPNAME'.
126004 2000-02-02  Jim Meyering  <meyering@lucent.com>
126006         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
126007         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
126008         Reported by Eli Zaretskii.
126010 2000-02-01  Jim Meyering  <meyering@lucent.com>
126012         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
126014 2000-01-31  Jim Meyering  <meyering@lucent.com>
126016         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
126017         functions.  Add the time.h and sys/time.h headers along with the
126018         AC_REQUIRE'ment of AC_HEADER_TIME.
126020 2000-01-31  Jim Meyering  <meyering@lucent.com>
126022         * lib/nanosleep.h (nanosleep): Guard declaration with
126023         `#if ! HAVE_DECL_NANOSLEEP'.
126024         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
126025         the declaration in that vendor's sys/timers.h.
126026         Reported by Christian Krackowizer.
126028         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
126029         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
126030         (ISPRINT): Likewise.
126031         Reported by Tom Tromey.
126033 2000-01-30  Jim Meyering  <meyering@lucent.com>
126035         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
126037         * m4/prereq.m4 (utmp_includes): Define.
126038         Check for ut_user and ut_name members in both struct utmpx
126039         and struct utmp.
126041 2000-01-30  Jim Meyering  <meyering@lucent.com>
126043         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
126044         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
126045         header files where only utmpx.ut_user is declared.
126047         * lib/readutmp.h (UT_USER): Define.
126049 2000-01-29  Jim Meyering  <meyering@lucent.com>
126051         * m4/lib-check.m4: New file containing library-related checks from
126052         fileutils and sh-utils (textutils had none).
126054 2000-01-28  Jim Meyering  <meyering@lucent.com>
126056         * m4/perl.m4: Change format of warning message to look more like that
126057         from the missing script.  Suggestion from François Pinard.
126059 2000-01-25  Jim Meyering  <meyering@lucent.com>
126061         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
126062         well as time.h in the compile check.
126063         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
126064         Fix typo in cross-compiling case: s/yes/no/.
126066 2000-01-23  Jim Meyering  <meyering@lucent.com>
126068         * m4/jm-macros.m4: Move df-related tests here from
126069         fileutils/configure.in
126071         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
126072         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
126074         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
126075         s/space/ac_fsusage_space/.
126076         (jm_FILE_SYSTEM_USAGE): Take two parameters.
126078         * m4/ftruncate.m4: New file (derived from part of
126079         fileutils/configure.in).
126080         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
126081         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
126083         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
126084         AC_SUBST these here, rather than just in sh-util/configure.in, so
126085         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
126086         all the same.
126087         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
126088         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
126089         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
126090         (AC_SUBST(POW_LIBM)): Likewise.
126091         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
126093 2000-01-23  Jim Meyering  <meyering@lucent.com>
126095         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
126096         obstack.c.
126098 2000-01-22  Jim Meyering  <meyering@lucent.com>
126100         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
126102         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
126104         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
126105         configure.in
126106         (AC_CHECK_HEADERS): Likewise for sh-utils.
126107         (AC_CHECK_HEADERS): Likewise for textutils.
126108         Merge the three lists of headers.
126110         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
126111         from fileutils' configure.in.
126113         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
126114         code. Moved tests into their own function (_jm_DECL_HEADERS) in
126115         check-decl.m4.
126117         * m4/check-decl.m4: Use #if rather than #ifdef.
126118         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
126119         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
126120         (_jm_DECL_HEADERS): Define new function.
126121         (jm_CHECK_DECLARATIONS): Require it.
126123 2000-01-22  Jim Meyering  <meyering@lucent.com>
126125         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
126126         [! HAVE_DECL_STRTOULL]: Declare strtoull.
126127         Required for some AIX systems.  Reported by Christian Krackowizer.
126128         [TESTING] (main): New function.
126130         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
126131         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
126132         letters.
126134         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
126135         iswprint.
126137         * lib/strverscmp.c (ISDIGIT): Define.
126138         (strverscmp): Use ISDIGIT, not isdigit.
126140 2000-01-19  Jim Meyering  <meyering@lucent.com>
126142         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
126143         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
126144         defines `struct timespec' in <sys/time.h>
126146         * m4/c-bs-a.m4: Remove uses of changequote altogether.
126147         Thanks to Akim for explaining.
126149 2000-01-17  Paul Eggert  <eggert@twinsun.com>
126151         * lib/nanosleep.c (nanosleep):
126152         Don't use SA_INTERRUPT to decide whether to call sigaction, as
126153         POSIX.1 doesn't require SA_INTERRUPT and some systems
126154         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
126155         it's been part of POSIX.1 since day 1 (in 1988).
126157 2000-01-17  Jim Meyering  <meyering@lucent.com>
126159         * lib/interlock: Remove unused file.  Reported by François Pinard.
126161 2000-01-16  Paul Eggert  <eggert@twinsun.com>
126163         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
126164         alert, backslash, formfeed, and vertical tab unnecessarily in
126165         shell quoting style.
126167 2000-01-16  Jim Meyering  <meyering@lucent.com>
126169         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
126170         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
126171         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
126172         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
126174 2000-01-16  Jim Meyering  <meyering@lucent.com>
126176         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
126177         because the latter didn't work.
126179 2000-01-15  Jim Meyering  <meyering@lucent.com>
126181         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
126182         (AC_REPLACE_FUNCS): Add memcpy and memset.
126183         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
126184         Add strpbrk.
126185         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
126187 2000-01-12  Jim Meyering  <meyering@lucent.com>
126189         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
126190         (jm_PREREQ): Use it.
126191         (jm_PREREQ_READUTMP): New macro.
126192         (jm_PREREQ): Use it.
126194 2000-01-11  Paul Eggert  <eggert@twinsun.com>
126196         Quote multibyte characters correctly.
126197         * m4/c-bs-a.m4: New file.
126198         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
126199         (jm_PREREQ): Use it.
126201 2000-01-11  Paul Eggert  <eggert@twinsun.com>
126203         * m4/uintmax_t.m4: Port to autoconf 2.13.
126205 2000-01-08  Jim Meyering  <meyering@ascend.com>
126207         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
126208         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
126210 2000-01-04  Jim Meyering  <meyering@ascend.com>
126212         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
126213         jm_STRUCT_DIRENT_D_TYPE.
126214         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
126215         jm_STRUCT_DIRENT_D_INO.
126216         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
126217         jm_STRUCT_UTIMBUF.
126218         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
126219         renamings.
126220         * m4/utime.m4: Likewise.
126222         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
126223         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
126225 2000-01-03  Paul Eggert  <eggert@twinsun.com>
126227         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
126228         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
126230 2000-01-02  Jim Meyering  <meyering@ascend.com>
126232         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
126233         remember if this is necessary.
126235 1999-12-26  Jim Meyering  <meyering@ascend.com>
126237         * m4/jm-macros.m4: Use it here.
126238         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
126240 1999-12-23  Jim Meyering  <meyering@ascend.com>
126242         * m4/jm-macros.m4: Check for clock_gettime (moved from
126243         fileutils/configure.in)
126244         Check for gettimeofday.
126246 1999-12-20  Jim Meyering  <meyering@ascend.com>
126248         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
126249         autoconf-2.14a-1999-12-20.
126251 1999-12-19  Jim Meyering  <meyering@ascend.com>
126253         * m4/lstat-slash.m4: New file.
126254         * m4/jm-macros.m4: Use the new macro:
126255         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
126257 1999-12-07  Jim Meyering  <meyering@ascend.com>
126259         * m4/perl.m4: Require that File::Compare be available, too.
126260         Too many systems seem to lack it.
126262         * m4/strftime.m4: Add checks for most of the cpp macros tested in
126263         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
126265 1999-11-18  Paul Eggert  <eggert@twinsun.com>
126267         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
126268         problem with the QNX 4.25 shell, which doesn't propagate exit
126269         status of failed commands inside shell assignments.
126271 1999-11-17  Jim Meyering  <meyering@ascend.com>
126273         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
126275 1999-11-07  Jim Meyering  <meyering@ascend.com>
126277         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
126279 1999-11-06  Jim Meyering  <meyering@ascend.com>
126281         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
126282         * m4/jm-macros.m4 (jm_MACROS): Use it here.
126284 1999-11-05  Jim Meyering  <meyering@ascend.com>
126286         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
126287         configure.in of textutils, fileutils, and sh-utils into this one
126288         (shared between those packages) file.
126289         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
126290         AC_STRUCT_ST_BLKSIZE.
126292 1999-11-03  Jim Meyering  <meyering@ascend.com>
126294         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
126295         of AC_CHECK_TYPE checks includes unistd.h.
126296         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
126297         Suggestion from Akim Demaille.
126299 1999-10-30  Jim Meyering  <meyering@ascend.com>
126301         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
126302         m4-quoted string.
126303         * m4/ls-mntd-fs.m4: Likewise.
126304         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
126305         * m4/jm-winsz1.m4: Likewise.
126307         * m4/const.m4: Remove file, since the fix made it into the experimental
126308         version of autoconf.
126309         * m4/mktime.m4: Likewise.
126311         * m4/check-type.m4: Remove file, now that the latest version of
126312         AC_CHECK_TYPE takes a third arg to specify additional #includes.
126314         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
126315         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
126316         AC_CHECK_TYPE.
126318 1999-10-04  Jim Meyering  <meyering@ascend.com>
126320         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
126322 1999-09-22  Paul Eggert  <eggert@twinsun.com>
126324         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
126325         2.95.1 bug with HP-UX 10.20.
126327 1999-09-17  Jim Meyering  <meyering@ascend.com>
126329         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
126330         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
126331         due to missing strdup (against sh-utils-2.0).
126333 1999-08-29  Jim Meyering  <meyering@ascend.com>
126335         * m4/jm-macros.m4: Require jm_BISON.
126336         * m4/bison.m4: New file.
126338 1999-08-17  Paul Eggert  <eggert@twinsun.com>
126340         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
126341         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
126343 1999-08-05  Jim Meyering  <meyering@ascend.com>
126345         * m4/getline.m4: Rename test file from conftestdata to conftest.data
126346         to avoid conflicts with `conftest' on 8+3 filesystems.
126347         Suggestion from Eli Zaretskii.
126349 1999-08-04  Jim Meyering  <meyering@ascend.com>
126351         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
126352         fileutils and sh-utils (textutils's getline test was inadequate).
126353         (AM_FUNC_GETLINE): Run this test.
126354         (AC_CHECK_FUNCS): Check for getdelim.
126355         Reported by Bob Proulx.
126357 1999-08-02  Jim Meyering  <meyering@ascend.com>
126359         * m4/jm-macros.m4: Add a comment.
126361 1999-08-01  Paul Eggert  <eggert@twinsun.com>
126363         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
126364         <inttypes.h> defines strtoumax as a macro (and not as a
126365         function).
126367 1999-08-01  Paul Eggert  <eggert@twinsun.com>
126369         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
126370         that we can shift, multiply and divide unsigned long long
126371         values; Ultrix cc can't do it.
126373 1999-08-01  Paul Eggert  <eggert@twinsun.com>
126375         * m4/mktime.m4: New file, which is a preview of what should appear
126376         in the next public autoconf release.
126378 1999-08-01  Paul Eggert  <eggert@twinsun.com>
126380         * m4/lfs.m4: Remove this file.
126381         * m4/largefile.m4: New file.  It contains the old contents of
126382         lfs.m4, except that all names with prefix AC_LFS have been
126383         changed to use the prefix AC_SYS_LARGEFILE instead, to be
126384         compatible with future autoconf versions.  Also, some minor m4
126385         quoting problems have been fixed.
126387 1999-08-01  Paul Eggert  <eggert@twinsun.com>
126389         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
126390         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
126391         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
126392         and simplify the shell code.
126394 1999-08-01  Jim Meyering  <meyering@ascend.com>
126396         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
126397         m4.
126399 1999-07-20  Jim Meyering  <meyering@ascend.com>
126401         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
126403 1999-07-15  Jim Meyering  <meyering@ascend.com>
126405         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
126407 1999-05-22  Jim Meyering  <meyering@ascend.com>
126409         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
126411 1999-05-20  Jim Meyering  <meyering@ascend.com>
126413         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
126414         Add a colon after each `then' in case $4 is empty.
126416 1999-05-16  Jim Meyering  <meyering@ascend.com>
126418         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
126420 1999-05-10  Jim Meyering  <meyering@ascend.com>
126422         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
126424         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
126425         AC_FUNC_MKTIME.
126427 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
126429         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
126431 1999-05-04  Paul Eggert  <eggert@twinsun.com>
126433         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
126434         not CPPFLAGS, so that linking works correctly in IRIX.
126436 1999-04-30  Paul Eggert  <eggert@twinsun.com>
126438         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
126440 1999-04-20  Paul Eggert  <eggert@twinsun.com>
126442         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
126443         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
126444         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
126445         jm_AC_TYPE_UNSIGNED_LONG_LONG.
126446         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
126448         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
126450 1999-04-20  Jim Meyering  <meyering@ascend.com>
126452         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
126453         AC_REPLACE xstroull if necessary.  From Paul Eggert.
126454         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
126456 1999-04-18  Jim Meyering  <meyering@ascend.com>
126458         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
126459         * m4/jm-macros.m4: Use it.
126461 1999-04-06  Jim Meyering  <meyering@ascend.com>
126463         * m4/strftime.m4: Remove test for %f.
126465 1999-03-29  Jim Meyering  <meyering@ascend.com>
126467         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
126468         superset of the AC_TYPE_* checks in the textutils, fileutils,
126469         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
126470         AC_TYPE_PID_T.
126472 1999-03-28  Jim Meyering  <meyering@ascend.com>
126474         * m4/jm-macros.m4: Define GNU_PACKAGE here.
126475         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
126476         replaced e.g., in the *.sh files of the sh-utils.
126478 1999-03-20  Jim Meyering  <meyering@ascend.com>
126480         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
126481         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
126482         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
126484 1999-03-19  Jim Meyering  <meyering@ascend.com>
126486         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
126488 1999-03-12  Jim Meyering  <meyering@ascend.com>
126490         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
126492 1999-03-07  Jim Meyering  <meyering@ascend.com>
126494         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
126495         declared.
126497 1999-02-17  Jim Meyering  <meyering@ascend.com>
126499         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
126500         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
126502 1999-02-07  Jim Meyering  <meyering@ascend.com>
126504         * m4/group-member.m4: New file -- extracted from sh-utils'
126505         configure.in.
126507         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
126508         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
126510 1999-02-06  Jim Meyering  <meyering@ascend.com>
126512         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
126513         * m4/fnmatch.m4: Likewise.
126514         * m4/getgroups.m4: Likewise.
126515         * m4/lstat.m4: Likewise.
126516         * m4/malloc.m4: Likewise.
126517         * m4/putenv.m4: Likewise.
126518         * m4/realloc.m4: Likewise.
126519         * m4/regex.m4: Likewise.
126520         * m4/stat.m4: Likewise.
126521         * m4/strftime.m4: Likewise.
126522         Suggestion from Alain Magloire.
126524         * m4/chown.m4: Use `.$ac_objext', not `.o'.
126525         * m4/fnmatch.m4: Likewise.
126526         * m4/getgroups.m4: Likewise.
126527         * m4/getline.m4: Likewise.
126528         * m4/lstat.m4: Likewise.
126529         * m4/malloc.m4: Likewise.
126530         * m4/memcmp.m4: Likewise.
126531         * m4/putenv.m4: Likewise.
126532         * m4/realloc.m4: Likewise.
126533         * m4/regex.m4: Likewise.
126534         * m4/stat.m4: Likewise.
126535         * m4/strftime.m4: Likewise.
126536         Suggestion from Alain Magloire.
126538         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
126539         an argument.
126541         * m4/regex.m4: Add a run-time Test for proper operation of
126542         re_compile_pattern.
126544 1999-01-31  Jim Meyering  <meyering@ascend.com>
126546         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
126548 1999-01-30  Jim Meyering  <meyering@ascend.com>
126550         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
126552         * m4/jm-mktime.m4: Make this a wrapper around the official
126553         AM_FUNC_MKTIME rather than my private copy, now that the official one
126554         is up to date.
126555         * m4/mktime.m4: Remove file.
126557         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
126558         * m4/uptime.m4: Likewise.
126559         * m4/uintmax_t.m4: Likewise.
126561 1999-01-28  Jim Meyering  <meyering@ascend.com>
126563         * m4/jm-macros.m4: Use jm_AFS.
126564         * m4/afs.m4: New file (from fileutils' configure.in).
126566         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
126567         * m4/chown.m4: Likewise.
126568         * m4/d-ino.m4: Likewise.
126569         * m4/d-type.m4: Likewise.
126570         * m4/fnmatch.m4: Likewise.
126571         * m4/getgroups.m4: Likewise.
126572         * m4/gettext.m4: Likewise.
126573         * m4/jm-mktime.m4: Likewise.
126574         * m4/jm-winsz2.m4: Likewise.
126575         * m4/lcmessage.m4: Likewise.
126576         * m4/ls-mntd-fs.m4: Likewise.
126577         * m4/malloc.m4: Likewise.
126578         * m4/memcmp.m4: Likewise.
126579         * m4/putenv.m4: Likewise.
126580         * m4/realloc.m4: Likewise.
126581         * m4/st_mtim.m4: Likewise.
126582         * m4/strftime.m4: Likewise.
126584 1999-01-16  Jim Meyering  <meyering@ascend.com>
126586         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
126587         (ARGMATCH_DIE_DECL): Define.
126589 1999-01-12  Jim Meyering  <meyering@ascend.com>
126591         * m4/Makefile.am.in: Rewrite to avoid using fmt.
126592         Reported by Lars Hecking.
126594 1999-01-10  Jim Meyering  <meyering@ascend.com>
126596         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
126597         gross kludge.
126598         * m4/inttypes_h.m4: Likewise.
126599         * m4/lstat.m4: Likewise.
126600         * m4/malloc.m4: Likewise.
126601         * m4/readdir.m4: Likewise.
126602         * m4/realloc.m4: Likewise.
126603         * m4/st_dm_mode.m4: Likewise.
126604         * m4/stat.m4: Likewise.
126605         * m4/utimbuf.m4: Likewise.
126606         * m4/utimes.m4: Likewise.
126608         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
126609         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
126610         comments in config.h.in are meaningful.
126612         * m4/jm-macros.m4: Require autoconf-2.13 here.
126614         * m4/regex.m4: By default, don't use the included regex.c on systems
126615         with glibc 2.  Suggestion from Uli Drepper.
126617 1999-01-02  Jim Meyering  <meyering@ascend.com>
126619         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
126621 1998-12-18  Jim Meyering  <meyering@ascend.com>
126623         * m4/Makefile.am.in (Makefile.am): Simplify rule.
126624         Based on a suggestion from Lars Hecking.
126626 1998-11-16  Paul Eggert  <eggert@twinsun.com>
126628         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
126630 1998-11-16  Jim Meyering  <meyering@ascend.com>
126632         * m4/lfs.m4: Double-quote the `uname...` expression.
126634 1998-11-14  Jim Meyering  <meyering@ascend.com>
126636         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
126637         * m4/stat.m4: Likewise.
126639 1998-11-03  Jim Meyering  <meyering@ascend.com>
126641         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
126642         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
126644 1998-10-18  Jim Meyering  <meyering@ascend.com>
126646         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
126648 1998-10-17  Jim Meyering  <meyering@ascend.com>
126650         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
126651         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
126652         calls for those previously hard-coded headers.  Instead, take a new
126653         parameter.
126654         (jm_CHECK_DECLARATIONS): Reflect interface change.
126655         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
126656         (jm_CHECK_DECL_LOCALTIME_R): New macro.
126658         * m4/mktime.m4: Test for spring-forward gap before long-running test.
126660 1998-10-14  Jim Meyering  <meyering@ascend.com>
126662         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
126663         instead of "TZ=America/Vancouver".  From Paul Eggert.
126665 1998-10-11  Jim Meyering  <meyering@ascend.com>
126667         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
126668         This adds a test for a recently added compatibility fix for mktime.c.
126669         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
126671 1998-09-27  Jim Meyering  <meyering@ascend.com>
126673         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
126675         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
126676         ../configure.in, including a change from Gordon Matzigkeit to allow
126677         cross-compiling for the Hurd.
126679         * m4/glibc.m4: New file/macro to test for the GNU C Library
126680         versions 1 and 2.  From Gordon Matzigkeit.
126681         Indent.
126683 1998-09-21  Jim Meyering  <meyering@ascend.com>
126685         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
126687 1998-08-18  Paul Eggert  <eggert@twinsun.com>
126689         Port nanosecond-resolution times to UnixWare 2.1.2 and
126690         pedantic Solaris 2.6.
126692         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
126693         AC_STRUCT_ST_MTIM.
126694         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
126695         Generate name of ns member, instead of just 1 or undef.
126696         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
126698 1998-08-15  Jim Meyering  <meyering@ascend.com>
126700         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
126701         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
126702         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
126703         instead of jm_TYPE_SSIZE_T.
126705 1998-08-12  Jim Meyering  <meyering@ascend.com>
126707         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
126709 1998-08-02  Jim Meyering  <meyering@ascend.com>
126711         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
126712         in acconfig.h manually.
126714 1998-07-31  Paul Eggert  <eggert@twinsun.com>
126716         * m4/st_mtim.m4: New file.
126718 1998-07-28  Jim Meyering  <meyering@ascend.com>
126720         * m4/utimes.m4: Undef stat.
126722 1998-07-25  Jim Meyering  <meyering@ascend.com>
126724         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
126725         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
126727 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
126729         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
126730         uid and gid actually remain unchanged.
126732 1998-07-07  Jim Meyering  <meyering@ascend.com>
126734         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
126736 1998-07-04  Jim Meyering  <meyering@ascend.com>
126738         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
126739         to prove that this macro can be used in packages without regex.c.
126741 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
126743         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
126744         is to be used.
126746 1998-07-03  Jim Meyering  <meyering@ascend.com>
126748         * m4/gettext.m4: Add -lintl if it's found to be necessary.
126750         * m4/gettext.m4: New file -- from gettext-0.10.35.
126751         * m4/lcmessage.m4: Likewise.
126752         * m4/progtest.m4: Likewise.
126754         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
126755         * m4/jm-macros.m4: Require the new macro.
126757 1998-06-29  Jim Meyering  <meyering@ascend.com>
126759         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
126760         for the definition of NGROUPS (used in a system header included
126761         by sys/mount.h).
126763 1998-06-28  Jim Meyering  <meyering@ascend.com>
126765         * m4/ls-mntd-fs.m4: New file.
126766         * m4/fstypename.m4: New file.
126768         * m4/jm-macros.m4: Require the new macro.
126769         * m4/jm-glibc-io.m4: New file.
126771 1998-05-19  Jim Meyering  <meyering@ascend.com>
126773         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
126774         * m4/lchown.m4: New file.
126776         * m4/Makefile.am.in: New file.
126777         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
126779 1998-05-14  Jim Meyering  <meyering@ascend.com>
126781         * m4/Makefile.am (EXTRA_DIST): Add them.
126782         * m4/jm-macros.m4: New file.
126783         * m4/utimbuf.m4: New file.
126785 1998-05-12  Jim Meyering  <meyering@ascend.com>
126787         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
126789 1998-05-11  Jim Meyering  <meyering@ascend.com>
126791         * m4/isc-posix.m4: New file.
126793 1998-05-10  Jim Meyering  <meyering@ascend.com>
126795         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
126797 1998-05-09  Jim Meyering  <meyering@ascend.com>
126799         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
126800         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
126801         with automake.
126803         * m4/ssize_t.m4: New file.
126804         * m4/mktime.m4: Remove file -- the new automake has this now.
126806 1998-04-26  Jim Meyering  <meyering@ascend.com>
126808         * m4/assert.m4: New file.
126809         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
126811 1998-04-05  Jim Meyering  <meyering@ascend.com>
126813         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
126814         (jm_PREREQ): Use it here.
126816 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
126818         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
126819         in acconfig.h.
126821 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
126823         * m4/prereq.m4: New file.
126824         * m4/error.m4: New file.
126825         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
126827 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
126829         * m4/getline.m4: Don't set am_cv_func_working_getline before the
126830         cache-check for the same variable -- that defeated the purpose of
126831         the test; the test program was never run.  This was a problem only
126832         on systems with losing getline functions -- HP-UX 10.20 is one.
126833         Reported by Bjorn Helgaas.
126835 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
126837         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
126839 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
126841         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
126843         * m4/const.m4: New file.  Use an initializer in this declaration
126844         typedef int charset[2]; const charset x;
126845         Reported by Bob Glickstein.
126847 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
126849         * m4/chown.m4: Fix reversed types on -1 args to chown.
126850         From Kaveh Ghazi.
126852 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
126854         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
126855         Add lseek and memchr.
126857         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
126858         T.E.Dickey <dickey@clark.net> said that some older preprocessors
126859         have a 20-character limit on names.
126861 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
126863         * m4/inttypes_h.m4: New file.
126864         * m4/uintmax_t.m4: New file.
126865         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
126868         -----
126870         Local Variables:
126871         coding: utf-8
126872         End:
126874         Copyright (C) 1997-2020 Free Software Foundation, Inc.
126876         Copying and distribution of this file, with or without
126877         modification, are permitted provided the copyright notice
126878         and this notice are preserved.